@ckeditor/ckeditor5-document-outline 48.2.0 → 48.3.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/augmentation.d.ts +31 -31
- package/dist/documentoutline/documentoutlineui.d.ts +43 -43
- package/dist/documentoutline/documentoutlineutils.d.ts +58 -60
- package/dist/documentoutline/ui/documentoutlineitemview.d.ts +43 -43
- package/dist/documentoutline/ui/documentoutlineview.d.ts +49 -49
- package/dist/documentoutline/utils.d.ts +11 -11
- package/dist/documentoutline.d.ts +91 -91
- package/dist/index.d.ts +14 -14
- package/dist/index.js +1 -1
- package/dist/legacyerrors.d.ts +0 -4
- package/dist/tableofcontents/headingid.d.ts +22 -22
- package/dist/tableofcontents/tableofcontentscommand.d.ts +17 -17
- package/dist/tableofcontents/tableofcontentsediting.d.ts +40 -40
- package/dist/tableofcontents/tableofcontentsui.d.ts +23 -23
- package/dist/tableofcontents.d.ts +68 -68
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/utils/common-translations.d.ts +6 -6
- package/package.json +8 -8
|
@@ -1,99 +1,99 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Plugin } from
|
|
10
|
-
import { DocumentOutlineUtils } from
|
|
11
|
-
import { DocumentOutlineUI } from
|
|
6
|
+
* @module document-outline/documentoutline
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import { DocumentOutlineUtils } from "./documentoutline/documentoutlineutils.js";
|
|
11
|
+
import { DocumentOutlineUI } from "./documentoutline/documentoutlineui.js";
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
* The document outline feature.
|
|
14
|
+
* It allows for an easy access to a predefined list of headings in the document.
|
|
15
|
+
*/
|
|
16
16
|
export declare class DocumentOutline extends Plugin {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
static get requires(): PluginDependenciesOf<[DocumentOutlineUtils, DocumentOutlineUI]>;
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
static get pluginName(): "DocumentOutline";
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
static override get isOfficialPlugin(): true;
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
static override get isPremiumPlugin(): true;
|
|
33
|
+
init(): void;
|
|
34
|
+
/**
|
|
35
|
+
* @inheritDoc
|
|
36
|
+
*/
|
|
37
|
+
override destroy(): void;
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
40
|
+
* The configuration of the {@link module:document-outline/documentoutline~DocumentOutline document outline feature}.
|
|
41
|
+
*
|
|
42
|
+
* ```ts
|
|
43
|
+
* ClassicEditor
|
|
44
|
+
* .create( {
|
|
45
|
+
* documentOutline: ... // Document outline feature configuration.
|
|
46
|
+
* } )
|
|
47
|
+
* .then( /* ... *\/ )
|
|
48
|
+
* .catch( /* ... *\/ );
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
52
|
+
*/
|
|
53
53
|
export interface DocumentOutlineConfig {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
54
|
+
/**
|
|
55
|
+
* The container element for the document outline to render. This should be a reference to an existing
|
|
56
|
+
* container element in the DOM.
|
|
57
|
+
*/
|
|
58
|
+
container?: HTMLElement;
|
|
59
|
+
/**
|
|
60
|
+
* An array of {@glink framework/architecture/editing-engine#model model} element names considered
|
|
61
|
+
* as headings in the document outline.
|
|
62
|
+
*
|
|
63
|
+
* The index of the heading in the array reflects the heading nesting level. It can be used e.g. for reducing
|
|
64
|
+
* the number of visible headings.
|
|
65
|
+
*
|
|
66
|
+
* ```ts
|
|
67
|
+
* ClassicEditor
|
|
68
|
+
* .create( {
|
|
69
|
+
* plugins: [ DocumentOutline, /* ... *\/ ],
|
|
70
|
+
* documentOutline: {
|
|
71
|
+
* headings: [ 'heading1', 'heading2', /* ... *\/ ],
|
|
72
|
+
* // ...
|
|
73
|
+
* }
|
|
74
|
+
* } )
|
|
75
|
+
* .then( /* ... *\/ )
|
|
76
|
+
* .catch( /* ... *\/ );
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* If this configuration is not defined, the feature will use the following defaults instead:
|
|
80
|
+
*
|
|
81
|
+
* 1. If the {@glink features/headings Headings feature} is loaded, it equals
|
|
82
|
+
* * {@link module:heading/headingconfig~HeadingConfig#options `config.heading.options`}.
|
|
83
|
+
* * `[ 'heading1', 'heading2', 'heading3' ]` if `config.heading.options` is not defined.
|
|
84
|
+
* 2. If the {@glink features/html/general-html-support General HTML Support} feature is loaded, it equals
|
|
85
|
+
* `[ 'htmlH1', 'htmlH2', 'htmlH3', 'htmlH4', 'htmlH5', 'htmlH6' ]`.
|
|
86
|
+
*
|
|
87
|
+
* **Note**: The Headings feature takes precedence over the General HTML Support feature when
|
|
88
|
+
* both are loaded.
|
|
89
|
+
*/
|
|
90
|
+
headings?: Array<string>;
|
|
91
|
+
/**
|
|
92
|
+
* Allows you to display a placeholder text: [Empty heading] for empty headings.
|
|
93
|
+
*
|
|
94
|
+
* By default, the display of a placeholder is disabled. To enable it, set this parameter to true.
|
|
95
|
+
*
|
|
96
|
+
* **Note**: This setting also affects Table of contents feature.
|
|
97
|
+
*/
|
|
98
|
+
showEmptyHeadings?: boolean;
|
|
99
99
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export { DocumentOutline, type DocumentOutlineConfig } from
|
|
9
|
-
export { DocumentOutlineUI } from
|
|
10
|
-
export { DocumentOutlineUtils } from
|
|
11
|
-
export { TableOfContents, type DocumentOutlineTableOfContentsConfig } from
|
|
12
|
-
export { TableOfContentsCommand } from
|
|
13
|
-
export { TableOfContentsEditing } from
|
|
14
|
-
export { TableOfContentsUI } from
|
|
15
|
-
export { HeadingId } from
|
|
16
|
-
import
|
|
6
|
+
* @module document-outline
|
|
7
|
+
*/
|
|
8
|
+
export { DocumentOutline, type DocumentOutlineConfig } from "./documentoutline.js";
|
|
9
|
+
export { DocumentOutlineUI } from "./documentoutline/documentoutlineui.js";
|
|
10
|
+
export { DocumentOutlineUtils } from "./documentoutline/documentoutlineutils.js";
|
|
11
|
+
export { TableOfContents, type DocumentOutlineTableOfContentsConfig } from "./tableofcontents.js";
|
|
12
|
+
export { TableOfContentsCommand } from "./tableofcontents/tableofcontentscommand.js";
|
|
13
|
+
export { TableOfContentsEditing } from "./tableofcontents/tableofcontentsediting.js";
|
|
14
|
+
export { TableOfContentsUI } from "./tableofcontents/tableofcontentsui.js";
|
|
15
|
+
export { HeadingId } from "./tableofcontents/headingid.js";
|
|
16
|
+
import "./augmentation.js";
|
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x4f89e1,Command as _0x4d5722}from'@ckeditor/ckeditor5-core/dist/index.js';import{debounce as _0x5d79c3,throttle as _0x5b7a89}from'es-toolkit/compat';import{ModelText as _0x4b5308,ModelTreeWalker as _0x3e22e6}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diff as _0x47195f,diffToChanges as _0x31c8d1,scrollAncestorsToShowTarget as _0x11ba20,CKEditorError as _0x5647ba,global as _0x170ce9,Rect as _0x30ca9e,uid as _0x4c816d,priorities as _0x2a7c48}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0xb3e205,ButtonView as _0x4e1e7b,MenuBarMenuListItemButtonView as _0x16da01}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Widget as _0x382cec,toWidget as _0x35e11d}from'@ckeditor/ckeditor5-widget/dist/index.js';import{IconTableOfContents as _0x5da3d5}from'@ckeditor/ckeditor5-icons/dist/index.js';function I(_0x4c53bf){let _0x183956='';for(const _0x5ce4ed of _0x4c53bf['getChildren']())_0x5ce4ed instanceof _0x4b5308&&(_0x183956+=_0x5ce4ed['data']);return _0x183956;}class DocumentOutlineUtils extends _0x4f89e1{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x4aeeab=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x350d4a=[];_0x4aeeab['model']['document']['on']('change',_0x5d79c3(()=>{const _0x333560=_0x350d4a;_0x350d4a=this['_getOutlineDefinitions']();const _0x7bd9d8=_0x47195f(_0x333560,_0x350d4a,(_0x5f228f,_0xaccc71)=>_0x5f228f['level']===_0xaccc71['level']&&_0x5f228f['text']===_0xaccc71['text']&&_0x5f228f['modelElement']===_0xaccc71['modelElement']),_0x1c559c=_0x31c8d1(_0x7bd9d8,_0x350d4a),_0x16a33b=this['_getActiveHeading'](),_0x5b7d61=_0x350d4a['findIndex'](_0x3323e2=>_0x3323e2['modelElement']===_0x16a33b);_0x1c559c['length']&&this['fire']('change',{'outlineDefinitions':_0x350d4a,'activeItemIndex':_0x5b7d61,'outlineChanges':_0x1c559c}),this['fire']('activeItemIndex',{'index':_0x5b7d61});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x2312f1=this['editor'],_0x6e6961=[],_0x313a31=this['_headingNames'];for(const _0x571b39 of _0x2312f1['model']['document']['getRootNames']())_0x4a558a(_0x2312f1['model']['document']['getRoot'](_0x571b39));function _0x4a558a(_0x2d1bcf){for(const _0x342b2f of _0x2d1bcf['getChildren']())_0x342b2f['is']('element')&&(_0x313a31['includes'](_0x342b2f['name'])&&_0x6e6961['push']({'level':_0x313a31['indexOf'](_0x342b2f['name'])+0x1,'text':I(_0x342b2f),'modelElement':_0x342b2f}),_0x4a558a(_0x342b2f));}return _0x6e6961;}['_getActiveHeading'](){const _0x1ab8d2=this['editor']['model']['document']['selection']['getFirstPosition'](),_0x43f8f8=new _0x3e22e6({'direction':'backward','startPosition':_0x1ab8d2});for(const _0x5edc06 of _0x43f8f8)if(_0x5edc06['item']['is']('element')&&this['_headingNames']['includes'](_0x5edc06['item']['name']))return _0x5edc06['item'];}['_getHeadingNames'](){const _0x49c3fe=this['editor']['config']['get']('documentOutline.headings');return _0x49c3fe||function(_0x276971){const _0x49c74d=_0x276971['config']['get']('heading.options');return _0x49c74d?_0x49c74d['reduce']((_0x2b5e53,_0xf47f38)=>('paragraph'!==_0xf47f38['model']&&_0x2b5e53['push'](_0xf47f38['model']),_0x2b5e53),[]):_0x276971['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x26df6b=this['editor'],_0x45e0e4=['h1','h2','h3','h4','h5','h6'],_0x1b3b3b=[];for(const _0x3761fa of _0x45e0e4){const _0x42da14=_0x26df6b['editing']['view']['domConverter']['domToView'](document['createElement'](_0x3761fa)),_0x2a5e41=_0x26df6b['data']['toModel'](_0x42da14)['getChild'](0x0);_0x2a5e41?.['is']('element')&&_0x1b3b3b['push'](_0x2a5e41['name']);}this['_headingNames']=_0x1b3b3b;}}function C(_0x1d54f2,_0x3773e4){const t=_0x1d54f2['t'];switch(_0x3773e4){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 _0x3773e4;}}class DocumentOutlineItemView extends _0xb3e205{constructor(_0x327319,_0x35c5b8=!0x1){super(_0x327319);const _0x3947c1=this['bindTemplate'],_0x5719cb=_0x35c5b8?'['+C(_0x327319,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x43db24=>!_0x43db24),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x3947c1['to']('level',_0x15b7df=>'ck-document-outline__item_level-'+_0x15b7df),_0x3947c1['if']('isActive','ck-document-outline__item_active'),_0x3947c1['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x3947c1['to']('text')},'children':[{'text':_0x3947c1['to']('text',_0x109f6d=>_0x109f6d||_0x5719cb)}],'on':{'click':_0x3947c1['to']('click')}});}}class DocumentOutlineView extends _0xb3e205{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x480c7e,_0x3cd62b=!0x1,_0x2a313a){super(_0x480c7e),this['showEmptyHeadingText']=_0x3cd62b,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x2a313a,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x24c557,_0x53047d,_0x377ed3,_0x4ef3b0)=>{this['_setActiveItem'](_0x4ef3b0,_0x377ed3);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x480c7e['contentLanguageDirection'],'data-document-outline-empty-placeholder':C(_0x480c7e,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0xec91d3){_0xec91d3['forEach'](_0x287daa=>{'insert'==_0x287daa['type']?this['_insertItem'](_0x287daa['index'],..._0x287daa['values']):'delete'==_0x287daa['type']&&this['_deleteItem'](_0x287daa['index'],_0x287daa['howMany']);});}['_setActiveItem'](_0x5822b1,_0x182ac6){if(-0x1!==_0x5822b1){const _0x106871=this['items']['get'](_0x5822b1);_0x106871&&(_0x106871['isActive']=!0x1);}-0x1!==_0x182ac6&&(this['items']['get'](_0x182ac6)['isActive']=!0x0,this['_scrollToItem'](_0x182ac6));}['_insertItem'](_0x30ebb7,..._0x585688){const _0x5cdc00=_0x585688['map']((_0x1b4ecd,_0x1002b6)=>{const _0xf4bcb9=new DocumentOutlineItemView(this['locale'],this['showEmptyHeadingText']);return _0xf4bcb9['text']=_0x1b4ecd['text'],_0xf4bcb9['level']=_0x1b4ecd['level'],_0x30ebb7+_0x1002b6===this['activeItemIndex']&&(_0xf4bcb9['isActive']=!0x0),_0xf4bcb9;});this['items']['addMany'](_0x5cdc00,_0x30ebb7);}['_deleteItem'](_0x28fd35,_0x1b8675){do{this['items']['remove'](_0x28fd35);}while(--_0x1b8675);}['_handleItemClick'](_0x413b89){const _0x1fdc1f=this['items']['getIndex'](_0x413b89['source']);this['fire']('itemSelected',_0x1fdc1f);}['_scrollToItem'](_0x3af72d){_0x11ba20(this['items']['get'](_0x3af72d)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class DocumentOutlineUI extends _0x4f89e1{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x396af6){super(_0x396af6),this['view']=new DocumentOutlineView(_0x396af6['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0x5b7a89(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x3c15d2=this['editor'],_0x5f0d3f=_0x3c15d2['plugins']['get']('DocumentOutlineUtils');let _0x5eab42=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x3c15d2['config']['get']('documentOutline.container'))throw new _0x5647ba('document-outline-container-not-provided',{'editor':_0x3c15d2});_0x3c15d2['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x5f0d3f['on']('change',this['_handleOutlineChange']['bind'](this)),_0x5f0d3f['on']('activeItemIndex',(_0x3c37bb,{index:_0x9073c})=>this['_setActiveViewItem'](_0x9073c)),this['view']['on']('itemSelected',(_0x58d284,_0x3d82e3)=>{_0x5eab42=!0x0,this['_handleItemSelected'](_0x3d82e3);}),this['view']['listenTo'](_0x170ce9['document'],'scroll',()=>{_0x5eab42?_0x5eab42=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x170ce9['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0x22c799){const _0x4a0539=_0x3e2681([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]),_0xeff29c=0x1cb264a3,_0xce5e9=0x1cb5ef73^_0xeff29c,_0x26b4bf=window[_0x3e2681([0x44,0x61,0x74,0x65])][_0x3e2681([0x6e,0x6f,0x77])](),_0x1dd0d0=_0x22c799[_0x3e2681([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5a9136=new window[(_0x3e2681([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcd5239=>{_0x1dd0d0[_0x3e2681([0x6f,0x6e,0x63,0x65])](_0x3e2681([0x72,0x65,0x61,0x64,0x79]),_0xcd5239);}),_0x19f05a={[_0x3e2681([0x6b,0x74,0x79])]:_0x3e2681([0x45,0x43]),[_0x3e2681([0x75,0x73,0x65])]:_0x3e2681([0x73,0x69,0x67]),[_0x3e2681([0x63,0x72,0x76])]:_0x3e2681([0x50,0x2d,0x32,0x35,0x36]),[_0x3e2681([0x78])]:_0x3e2681([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]),[_0x3e2681([0x79])]:_0x3e2681([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]),[_0x3e2681([0x61,0x6c,0x67])]:_0x3e2681([0x45,0x53,0x32,0x35,0x36])},_0x39855d=_0x1dd0d0[_0x3e2681([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3e2681([0x67,0x65,0x74])](_0x3e2681([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x30ff90(){let _0x135fd2,_0x464892=null,_0x10e361=null;try{if(_0x39855d==_0x3e2681([0x47,0x50,0x4c]))return _0x3e2681([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x135fd2=_0x551831(),!_0x135fd2)return _0x3e2681([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x135fd2[_0x3e2681([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x10e361=_0x1f8d07(_0x135fd2[_0x3e2681([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x135fd2[_0x3e2681([0x6a,0x74,0x69])])),await _0x5f3092()?_0x381640()?_0x55871e()?_0x3e2681([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3d137c()?(_0x135fd2[_0x3e2681([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e2681([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x464892=_0x3d46b1(_0x3e2681([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x53b024()):_0x3e2681([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3e2681([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3e2681([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3e2681([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x55871e(){const _0x469166=[_0x3e2681([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3e2681([0x74,0x72,0x69,0x61,0x6c])][_0x3e2681([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x135fd2[_0x3e2681([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x26b4bf/0x3e8:0xe10*_0xce5e9;return _0x135fd2[_0x3e2681([0x65,0x78,0x70])]<_0x469166;}function _0x381640(){const _0xa3569a=_0x135fd2[_0x3e2681([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xa3569a&&(!!_0xa3569a[_0x3e2681([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e2681([0x2a]))||(!!_0xa3569a[_0x3e2681([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e2681([0x44,0x4f]))||(!!_0xa3569a[_0x3e2681([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e2681([0x50,0x50]))||!(!_0xa3569a[_0x3e2681([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e2681([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x457c89()))));}function _0x3d137c(){const _0x55cf29=_0x135fd2[_0x3e2681([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x55cf29||0x0==_0x55cf29[_0x3e2681([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x323a46}=new URL(window[_0x3e2681([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x55cf29[_0x3e2681([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x323a46))return!0x0;const _0x10e3da=_0x323a46[_0x3e2681([0x73,0x70,0x6c,0x69,0x74])](_0x3e2681([0x2e]));return _0x55cf29[_0x3e2681([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x50e44e=>_0x50e44e[_0x3e2681([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e2681([0x2a])))[_0x3e2681([0x6d,0x61,0x70])](_0x350685=>_0x350685[_0x3e2681([0x73,0x70,0x6c,0x69,0x74])](_0x3e2681([0x2e])))[_0x3e2681([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x361ca7=>_0x361ca7[_0x3e2681([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x10e3da[_0x3e2681([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3e2681([0x6d,0x61,0x70])](_0x2037d2=>Array(_0x10e3da[_0x3e2681([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2037d2[_0x3e2681([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3e2681([0x66,0x69,0x6c,0x6c])](_0x2037d2[0x0]===_0x3e2681([0x2a])?_0x3e2681([0x2a]):'')[_0x3e2681([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2037d2))[_0x3e2681([0x73,0x6f,0x6d,0x65])](_0x3dcd0e=>_0x10e3da[_0x3e2681([0x65,0x76,0x65,0x72,0x79])]((_0x5236ea,_0x583955)=>_0x3dcd0e[_0x583955]===_0x5236ea||_0x3dcd0e[_0x583955]===_0x3e2681([0x2a])));}function _0x53b024(){return _0x464892&&_0x10e361?new window[(_0x3e2681([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1388bb,_0xc8e0dd)=>{_0x464892[_0x3e2681([0x74,0x68,0x65,0x6e])](_0x1388bb,_0xc8e0dd),_0x10e361[_0x3e2681([0x74,0x68,0x65,0x6e])](_0x218816=>{_0x218816!=_0x3e2681([0x56,0x61,0x6c,0x69,0x64])&&_0x1388bb(_0x218816);},_0xc8e0dd);}):_0x464892||_0x10e361||_0x3e2681([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1f8d07(_0x3e0526,_0x3effd8){return new window[(_0x3e2681([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f506f=>{if(_0x21c3a5())return _0x1f506f(_0x3e2681([0x56,0x61,0x6c,0x69,0x64]));_0x188694(),_0x1dd0d0[_0x3e2681([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3e2681([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x339183=!0x1;const _0x1c8101=_0x4c816d();function _0x3295dc(_0x20ad1c){return!!_0x20ad1c&&(typeof _0x20ad1c===_0x3e2681([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x20ad1c===_0x3e2681([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x20ad1c[_0x3e2681([0x74,0x68,0x65,0x6e])]===_0x3e2681([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x20ad1c[_0x3e2681([0x63,0x61,0x74,0x63,0x68])]===_0x3e2681([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5c84c9(_0x256ad5){_0x3afb1b(_0x256ad5)[_0x3e2681([0x74,0x68,0x65,0x6e])](_0x40bdac=>{if(!_0x40bdac||_0x40bdac[_0x3e2681([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3e2681([0x6f,0x6b]))return _0x3e2681([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2881ba(_0x37297b(_0x1c8101+_0x3effd8))!=_0x40bdac[_0x3e2681([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3e2681([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3e2681([0x56,0x61,0x6c,0x69,0x64]);})[_0x3e2681([0x74,0x68,0x65,0x6e])](_0x5bb0b1=>(_0x974233(),_0x5bb0b1),()=>{const _0x1ee7e0=_0x4e77d7();return null==_0x1ee7e0?(_0x974233(),_0x3e2681([0x56,0x61,0x6c,0x69,0x64])):_0x3e2681(_0x26b4bf-_0x1ee7e0>(0x38bee0a3^_0xeff29c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3e2681([0x74,0x68,0x65,0x6e])](_0x1f506f)[_0x3e2681([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1f506f(_0x3e2681([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5ae6d2=0x1c848a23^_0xeff29c;function _0x974233(){const _0x549371=_0x3e2681([0x6c,0x6c,0x63,0x74,0x2d])+_0x2881ba(_0x37297b(_0x3e0526)),_0x2f3b93=_0x2ee93e(_0x2881ba(window[_0x3e2681([0x4d,0x61,0x74,0x68])][_0x3e2681([0x63,0x65,0x69,0x6c])](_0x26b4bf/_0x5ae6d2)));window[_0x3e2681([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e2681([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x549371,_0x2f3b93);}function _0x4e77d7(){const _0x446f98=_0x3e2681([0x6c,0x6c,0x63,0x74,0x2d])+_0x2881ba(_0x37297b(_0x3e0526)),_0x31c18e=window[_0x3e2681([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e2681([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x446f98);return _0x31c18e?window[_0x3e2681([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ee93e(_0x31c18e),0x10)*_0x5ae6d2:null;}function _0x3afb1b(_0x52abd6){return new window[(_0x3e2681([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6b6567,_0x35bc61)=>{_0x52abd6[_0x3e2681([0x74,0x68,0x65,0x6e])](_0x6b6567,_0x35bc61),window[_0x3e2681([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x35bc61,0x1cb3b063^_0xeff29c);});}}_0x1dd0d0[_0x3e2681([0x6f,0x6e])](_0x3e2681([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5369c0,_0x220217)=>{if(_0x220217[0x0]!=_0x3e0526)return _0x1f506f(_0x3e2681([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x220217[0x1]={..._0x220217[0x1],[_0x3e2681([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1c8101};},{[_0x3e2681([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e2681([0x68,0x69,0x67,0x68])}),_0x1dd0d0[_0x3e2681([0x6f,0x6e])](_0x3e2681([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x202452=>{_0x3295dc(_0x202452[_0x3e2681([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x339183=!0x0,_0x5c84c9(_0x202452[_0x3e2681([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3e2681([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e2681([0x6c,0x6f,0x77])}),_0x5a9136[_0x3e2681([0x74,0x68,0x65,0x6e])](()=>{_0x339183||_0x1f506f(_0x3e2681([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x21c3a5(){return _0x1dd0d0[_0x3e2681([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e2681([0x76,0x69,0x65,0x77])][_0x3e2681([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3e2681([0x61,0x75,0x74,0x6f]);}function _0x188694(){_0x1dd0d0[_0x3e2681([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e2681([0x76,0x69,0x65,0x77])][_0x3e2681([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e2681([0x61,0x75,0x74,0x6f]);}}function _0x3d46b1(_0x3efc47){const _0x184657=[new window[(_0x3e2681([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f61bb=>setTimeout(_0x3f61bb,0x1cbb5a6f^_0xeff29c)),_0x5a9136[_0x3e2681([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3e2681([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1075dd=>{let _0x4c3cae=0x0;_0x1dd0d0[_0x3e2681([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e2681([0x6f,0x6e])](_0x3e2681([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x123ec0,_0x3deb44)=>{_0x3deb44[0x0][_0x3e2681([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4c3cae++,_0x4c3cae==(0x1cb2614b^_0xeff29c)&&(_0x1075dd(),_0x123ec0[_0x3e2681([0x6f,0x66,0x66])]());});}))];return window[_0x3e2681([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e2681([0x72,0x61,0x63,0x65])](_0x184657)[_0x3e2681([0x74,0x68,0x65,0x6e])](()=>_0x3efc47);}async function _0x35edd7(){await _0x5a9136,_0x1dd0d0[_0x3e2681([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e2681([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x31bb09,_0x1dd0d0[_0x3e2681([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e2681([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x31bb09,_0x1dd0d0[_0x3e2681([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3e2681([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x457c89(){return window[_0x3e2681([0x67,0x6c,0x6f,0x62])]&&window[_0x3e2681([0x67,0x6c,0x6f,0x62])][_0x3e2681([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x1bd5d9(_0x4f9dbd){const _0xea71c8=_0x57a49e();_0x1dd0d0[_0xea71c8]=_0x3e2681([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])+_0x4f9dbd,_0x4f9dbd!=_0x3e2681([0x56,0x61,0x6c,0x69,0x64])&&_0x35edd7();}function _0x57a49e(){const _0x453953=window[_0x3e2681([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3e2681([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3e2681([0x6e,0x6f,0x77])]())[_0x3e2681([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3e2681([0x2e]),'');let _0x145609=_0x3e2681([0x61]);for(let _0x13032e=0x0;_0x13032e<_0x453953[_0x3e2681([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x13032e+=0x2){let _0x4e8bee=window[_0x3e2681([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x453953[_0x3e2681([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13032e,_0x13032e+0x2));_0x4e8bee>=_0x4a0539[_0x3e2681([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4e8bee-=_0x4a0539[_0x3e2681([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x145609+=_0x4a0539[_0x4e8bee];}return _0x145609;}function _0x551831(){const _0x37cf38=_0x39855d[_0x3e2681([0x73,0x70,0x6c,0x69,0x74])](_0x3e2681([0x2e]));if(0x3!=_0x37cf38[_0x3e2681([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xf720de(_0x37cf38[0x1]);function _0xf720de(_0x3055dc){const _0x488884=_0x1df222(_0x3055dc);return _0x488884&&_0x1e9dfa()?_0x488884:null;function _0x1e9dfa(){const _0x474afa=_0x488884[_0x3e2681([0x6a,0x74,0x69])],_0x133094=window[_0x3e2681([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x474afa[_0x3e2681([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x474afa[_0x3e2681([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x449e83={..._0x488884,[_0x3e2681([0x6a,0x74,0x69])]:_0x474afa[_0x3e2681([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x474afa[_0x3e2681([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x449e83[_0x3e2681([0x76,0x63])],_0x37297b(_0x449e83)==_0x133094;}}}async function _0x5f3092(){let _0x1ea378=!0x0;try{const _0x51f481=_0x39855d[_0x3e2681([0x73,0x70,0x6c,0x69,0x74])](_0x3e2681([0x2e])),[_0x456566,_0x56e650,_0x4c9aaf]=_0x51f481;return _0x5bd0af(_0x456566),await _0x48b251(_0x456566,_0x56e650,_0x4c9aaf),_0x1ea378;}catch{return!0x1;}function _0x5bd0af(_0x511d97){const _0x40a5c1=_0x1df222(_0x511d97);_0x40a5c1&&_0x40a5c1[_0x3e2681([0x61,0x6c,0x67])]==_0x3e2681([0x45,0x53,0x32,0x35,0x36])||(_0x1ea378=!0x1);}async function _0x48b251(_0x5eeb48,_0x276761,_0x3ba5a7){const _0x3c99f1=window[_0x3e2681([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3e2681([0x66,0x72,0x6f,0x6d])](_0x13df83(_0x3ba5a7),_0x4086ea=>_0x4086ea[_0x3e2681([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2d4b80=new window[(_0x3e2681([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3e2681([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5eeb48+_0x3e2681([0x2e])+_0x276761),_0x348f60=window[_0x3e2681([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3e2681([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x348f60)return;const _0x197eac=await _0x348f60[_0x3e2681([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3e2681([0x6a,0x77,0x6b]),_0x19f05a,{[_0x3e2681([0x6e,0x61,0x6d,0x65])]:_0x3e2681([0x45,0x43,0x44,0x53,0x41]),[_0x3e2681([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3e2681([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3e2681([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x348f60[_0x3e2681([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3e2681([0x6e,0x61,0x6d,0x65])]:_0x3e2681([0x45,0x43,0x44,0x53,0x41]),[_0x3e2681([0x68,0x61,0x73,0x68])]:{[_0x3e2681([0x6e,0x61,0x6d,0x65])]:_0x3e2681([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x197eac,_0x3c99f1,_0x2d4b80)||(_0x1ea378=!0x1);}}function _0x1df222(_0x3c8458){return _0x3c8458[_0x3e2681([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3e2681([0x65,0x79]))?JSON[_0x3e2681([0x70,0x61,0x72,0x73,0x65])](_0x13df83(_0x3c8458)):null;}function _0x13df83(_0x4d9fdc){return window[_0x3e2681([0x61,0x74,0x6f,0x62])](_0x4d9fdc[_0x3e2681([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3e2681([0x2b]))[_0x3e2681([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3e2681([0x2f])));}function _0x37297b(_0xb1d9ad){let _0x22bdd8=0x1505;function _0x513463(_0x20d0a0){for(let _0x19dc17=0x0;_0x19dc17<_0x20d0a0[_0x3e2681([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19dc17++){const _0x316d32=_0x20d0a0[_0x3e2681([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x19dc17);_0x22bdd8=(_0x22bdd8<<0x5)+_0x22bdd8+_0x316d32,_0x22bdd8&=_0x22bdd8;}}function _0x9b8af9(_0x349888){Array[_0x3e2681([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x349888)?_0x349888[_0x3e2681([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x9b8af9):_0x349888&&typeof _0x349888==_0x3e2681([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3e2681([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x349888)[_0x3e2681([0x73,0x6f,0x72,0x74])]()[_0x3e2681([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5ef44c,_0x3ef642])=>{_0x513463(_0x5ef44c),_0x9b8af9(_0x3ef642);}):_0x513463(window[_0x3e2681([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x349888));}return _0x9b8af9(_0xb1d9ad),_0x22bdd8>>>0x0;}function _0x2881ba(_0x1172d0){return _0x1172d0[_0x3e2681([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3e2681([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3e2681([0x30]));}function _0x2ee93e(_0x218390){return _0x218390[_0x3e2681([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3e2681([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3e2681([0x6a,0x6f,0x69,0x6e])]('');}function _0x31bb09(){}function _0x3e2681(_0x35e8a6){return _0x35e8a6['map'](_0x1ef63e=>String['fromCharCode'](_0x1ef63e))['join']('');}_0x1bd5d9(await _0x30ff90());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x2f2cbe,{outlineDefinitions:_0x2eff08,outlineChanges:_0x1f17e8}){this['_currentOutlineDefinitions']=_0x2eff08,this['view']['sync'](_0x1f17e8);}['_setActiveViewItem'](_0x19a1d7){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x19a1d7]&&(this['view']['activeItemIndex']=_0x19a1d7);}['_handleItemSelected'](_0x59bb44){const _0x34229f=this['_currentOutlineDefinitions'][_0x59bb44]['modelElement'];this['editor']['model']['change'](_0x3d3048=>{_0x3d3048['setSelection'](_0x34229f,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x59bb44);}['_updateActiveDefinitionOnViewportChange'](){const _0xd7d3f1=this['editor'];let _0xbfe0b3;for(const _0x274e9b of _0xd7d3f1['model']['document']['getRootNames']()){const _0x5b5454=_0xd7d3f1['editing']['view']['getDomRoot'](_0x274e9b),_0x4957db=_0x5b5454&&new _0x30ca9e(_0x5b5454)['getVisible']();if(_0x4957db){const _0x4bbd69=new _0x30ca9e(_0x170ce9['window'])['getIntersection'](_0x4957db);_0x4bbd69&&(_0xbfe0b3=_0x4bbd69['top']+0.25*_0x4bbd69['height']);}}if(void 0x0===_0xbfe0b3)return;const _0x153e45=v(_0xd7d3f1['editing'],this['_currentOutlineDefinitions'],_0xbfe0b3);_0x153e45?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x153e45)):this['_setActiveViewItem'](-0x1);}}function v(_0x4cdb98,_0x4859a1,_0x386923,_0x4d4027=0x0,_0x28b6da=_0x4859a1['length']-0x1){const _0x23a9b8=Math['floor'](_0x4d4027+(_0x28b6da-_0x4d4027)/0x2);if(_0x28b6da>=_0x4d4027){const _0x4db9b0=_0x4859a1[_0x23a9b8],_0x3ad59a=_0x4cdb98['mapper']['toViewElement'](_0x4db9b0['modelElement']);if(!_0x3ad59a)return null;const _0x3372a9=_0x4cdb98['view']['domConverter']['mapViewToDom'](_0x3ad59a);return new _0x30ca9e(_0x3372a9)['bottom']>_0x386923?v(_0x4cdb98,_0x4859a1,_0x386923,_0x4d4027,_0x23a9b8-0x1):v(_0x4cdb98,_0x4859a1,_0x386923,_0x23a9b8+0x1,_0x28b6da);}return _0x23a9b8<0x0?null:_0x4859a1[_0x23a9b8];}class DocumentOutline extends _0x4f89e1{['licenseKey'];['_licenseKeyCheckInterval'];static get['requires'](){return[DocumentOutlineUtils,DocumentOutlineUI];}static get['pluginName'](){return'DocumentOutline';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1c568d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x34d25e;for(const _0x4cf2d2 in _0x1c568d){const _0x23a0c8=_0x4cf2d2,_0x23b9af=_0x1c568d[_0x23a0c8];if('documentOutlineLicenseKeyValid'==_0x23b9af||'documentOutlineLicenseKeyInvalid'==_0x23b9af||'documentOutlineLicenseKeyExpired'==_0x23b9af||'documentOutlineLicenseKeyDomainLimit'==_0x23b9af||'documentOutlineLicenseKeyNotAllowed'==_0x23b9af||'documentOutlineLicenseKeyEvaluationLimit'==_0x23b9af||'documentOutlineLicenseKeyUsageLimit'==_0x23b9af){delete _0x1c568d[_0x23a0c8],_0x34d25e=_0x23b9af,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x34d25e&&_0x1c568d['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x34d25e&&_0x1c568d['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x34d25e&&_0x1c568d['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x34d25e&&_0x1c568d['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x34d25e&&_0x1c568d['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x34d25e&&_0x1c568d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContentsCommand extends _0x4d5722{['execute'](){this['editor']['model']['change'](_0x2acc27=>{this['editor']['model']['insertObject'](_0x2acc27['createElement']('tableOfContents'));});}['refresh'](){const _0x4e5667=this['editor']['model'],_0x44de53=_0x4e5667['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x44de53&&_0x4e5667['schema']['findAllowedParent'](_0x44de53,'tableOfContents'));}}class HeadingId extends _0x4f89e1{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x4d8cb9=this['editor'];if(_0x4d8cb9['config']['get']('headingId.modelAttributeName'))return;const {viewNames:_0x2c07a3,modelNames:_0x5e5160}=function(_0x25f6b8){const _0xe82167=new Set(),_0x7f4316=new Set();if(!_0x25f6b8)return{'viewNames':_0xe82167,'modelNames':_0x7f4316};for(const _0x4bbadb of _0x25f6b8){if('paragraph'===_0x4bbadb['model'])continue;const _0xae3a8b='string'==typeof _0x4bbadb['view']?_0x4bbadb['view']:_0x4bbadb['view']['name'];_0xe82167['add'](_0xae3a8b),_0x7f4316['add'](_0x4bbadb['model']);}return _0xe82167['has']('h1')||(_0xe82167['add']('h1'),_0x7f4316['add']('heading1')),{'viewNames':_0xe82167,'modelNames':_0x7f4316};}(this['editor']['config']['get']('heading.options'));for(const _0x15fe9b of _0x2c07a3)this['_customUpcastHeadingsConversion'](_0x15fe9b);for(const _0x5884c0 of _0x5e5160)this['_customDataDowncastHeadingsConversion'](_0x5884c0),_0x4d8cb9['model']['schema']['isRegistered'](_0x5884c0)&&_0x4d8cb9['model']['schema']['extend'](_0x5884c0,{'allowAttributes':'headingId'});this['_registerHeadingIdAttributePostfixer'](_0x5e5160);}['_customUpcastHeadingsConversion'](_0x5c5ec3){this['editor']['conversion']['for']('upcast')['add'](_0x44f927=>_0x44f927['on']('element:'+_0x5c5ec3,(_0x49b8f9,_0xf65f21,_0x3d71fe)=>{const {consumable:_0x1356a4,writer:_0x375ff2}=_0x3d71fe,_0x5be9aa=_0xf65f21['viewItem']['getAttribute']('id'),_0x328557=_0xf65f21['modelRange']?.['getContainedElement']();if(_0x328557)return _0x5be9aa&&_0x5be9aa['length']||_0x328557['hasAttribute']('headingId')?void(_0x1356a4['consume'](_0xf65f21['viewItem'],{'attributes':['id']})&&_0x375ff2['setAttribute']('headingId',_0x5be9aa,_0x328557)):(_0x1356a4['consume'](_0xf65f21['viewItem'],{'attributes':['id']}),void _0x375ff2['setAttribute']('headingId',_0x4c816d(),_0x328557));},{'priority':_0x2a7c48['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x5958e1){this['editor']['conversion']['for']('downcast')['add'](_0x315543=>_0x315543['on']('attribute:headingId:'+_0x5958e1,(_0xa92305,_0x33d49a,_0x1996f3)=>{if(!_0x1996f3['consumable']['consume'](_0x33d49a['item'],_0xa92305['name']))return;const _0x156169=_0x33d49a['item']['getAttribute']('headingId'),_0x44d95d=_0x1996f3['mapper']['toViewElement'](_0x33d49a['item']);_0x1996f3['writer']['setAttribute']('id',_0x156169,_0x44d95d);}));}['_registerHeadingIdAttributePostfixer'](_0x1fe441){const _0x218686=this['editor'],_0x47280c=new Set(),_0x325cfe=new Set();function _0x57b6aa(_0x5c6192,_0x4f36e9){const _0x4c2b42=_0x4c816d();return _0x325cfe['add'](_0x4c2b42),_0x5c6192['setAttribute']('headingId',_0x4c2b42,_0x4f36e9),_0x4c2b42;}function _0x1268eb(_0x2f6451,_0x3bc2f0){_0x2f6451['removeAttribute']('headingId',_0x3bc2f0);}_0x218686['model']['document']['registerPostFixer'](_0x3b8e9f=>{const _0x59e1d0=_0x218686['model']['document']['differ']['getChanges']();let _0x5c9dd6=!0x1;for(const _0x296e10 of _0x59e1d0)if('insert'==_0x296e10['type']&&_0x296e10['name']){if(_0x1fe441['has'](_0x296e10['name'])){const _0x1d9717=_0x296e10['attributes']['get']('headingId');'string'==typeof _0x1d9717?_0x47280c['has'](_0x1d9717)?(_0x57b6aa(_0x3b8e9f,_0x296e10['position']['nodeAfter']),_0x5c9dd6=!0x0):_0x325cfe['add'](_0x1d9717):(_0x57b6aa(_0x3b8e9f,_0x296e10['position']['nodeAfter']),_0x5c9dd6=!0x0);}else'string'==typeof _0x296e10['attributes']['get']('headingId')&&(_0x1268eb(_0x3b8e9f,_0x296e10['position']['nodeAfter']),_0x5c9dd6=!0x0);}else{if('remove'==_0x296e10['type']){const _0x79ef01=_0x296e10['attributes']['get']('headingId');'string'==typeof _0x79ef01&&_0x47280c['delete'](_0x79ef01);}}return _0x5c9dd6;}),_0x218686['model']['document']['on']('change',()=>{_0x325cfe['forEach'](_0x2506d2=>_0x47280c['add'](_0x2506d2)),_0x325cfe['clear']();});}}class TableOfContentsEditing extends _0x4f89e1{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x382cec,DocumentOutlineUtils,HeadingId];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x2b0945){super(_0x2b0945),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x56c384=this['editor'],_0x3214fc=_0x56c384['editing']['view']['document'];_0x56c384['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x56c384['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x3214fc,'click',(_0x48dd70,_0x32f34e)=>{if(!_0x32f34e['target'])return;const _0x17a743=_0x32f34e['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x17a743)&&(_0x32f34e['domEvent']['preventDefault'](),_0x48dd70['stop'](),this['_handleScrollToHeading'](_0x17a743));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x56c384['commands']['add']('insertTableOfContents',new TableOfContentsCommand(_0x56c384));const _0x1d0243=_0x56c384['config']['get']('tableOfContents.headings');if(_0x1d0243&&_0x1d0243['length'])this['listenTo'](_0x56c384['model']['document'],'change:data',()=>{this['_currentOutlineDefinitions']=this['_getOutlineDefinitions'](_0x1d0243),this['_updateTableOfContentsElements']();});else _0x56c384['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x10a927,_0x1c75ae)=>{this['_currentOutlineDefinitions']=_0x1c75ae['outlineDefinitions'],this['_updateTableOfContentsElements']();});this['listenTo'](_0x56c384['model']['document'],'change',()=>{this['_trackNewToCElements']();});}['afterInit'](){!async function(_0x56507e){const _0x25aa9b=_0x9f5425([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]),_0x489866=0x6b9b05fd,_0x3a334f=0x6b9c8e2d^_0x489866,_0x2523ee=window[_0x9f5425([0x44,0x61,0x74,0x65])][_0x9f5425([0x6e,0x6f,0x77])](),_0x3ddebb=_0x56507e[_0x9f5425([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3e7415=new window[(_0x9f5425([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15f59d=>{_0x3ddebb[_0x9f5425([0x6f,0x6e,0x63,0x65])](_0x9f5425([0x72,0x65,0x61,0x64,0x79]),_0x15f59d);}),_0x27cd2d={[_0x9f5425([0x6b,0x74,0x79])]:_0x9f5425([0x45,0x43]),[_0x9f5425([0x75,0x73,0x65])]:_0x9f5425([0x73,0x69,0x67]),[_0x9f5425([0x63,0x72,0x76])]:_0x9f5425([0x50,0x2d,0x32,0x35,0x36]),[_0x9f5425([0x78])]:_0x9f5425([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]),[_0x9f5425([0x79])]:_0x9f5425([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]),[_0x9f5425([0x61,0x6c,0x67])]:_0x9f5425([0x45,0x53,0x32,0x35,0x36])},_0x5996c7=_0x3ddebb[_0x9f5425([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x9f5425([0x67,0x65,0x74])](_0x9f5425([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1a114d(){let _0x1cb9a0,_0x494672=null,_0x2a7f75=null;try{if(_0x5996c7==_0x9f5425([0x47,0x50,0x4c]))return _0x9f5425([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1cb9a0=_0x34af88(),!_0x1cb9a0)return _0x9f5425([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1cb9a0[_0x9f5425([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2a7f75=_0x3a7513(_0x1cb9a0[_0x9f5425([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1cb9a0[_0x9f5425([0x6a,0x74,0x69])])),await _0x116b15()?_0x4fbc6b()?_0x50ab27()?_0x9f5425([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x29ad86()?(_0x1cb9a0[_0x9f5425([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9f5425([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x494672=_0x44bca8(_0x9f5425([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4218a9()):_0x9f5425([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x9f5425([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x9f5425([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x9f5425([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x50ab27(){const _0x16a7d6=[_0x9f5425([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x9f5425([0x74,0x72,0x69,0x61,0x6c])][_0x9f5425([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cb9a0[_0x9f5425([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2523ee/0x3e8:0xe10*_0x3a334f;return _0x1cb9a0[_0x9f5425([0x65,0x78,0x70])]<_0x16a7d6;}function _0x4fbc6b(){const _0x570a20=_0x1cb9a0[_0x9f5425([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x570a20&&(!!_0x570a20[_0x9f5425([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9f5425([0x2a]))||(!!_0x570a20[_0x9f5425([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9f5425([0x54,0x4f,0x43]))||(!!_0x570a20[_0x9f5425([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9f5425([0x50,0x50]))||!(!_0x570a20[_0x9f5425([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9f5425([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x2235de()))));}function _0x29ad86(){const _0xf2666d=_0x1cb9a0[_0x9f5425([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xf2666d||0x0==_0xf2666d[_0x9f5425([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x475979}=new URL(window[_0x9f5425([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xf2666d[_0x9f5425([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x475979))return!0x0;const _0x5975ba=_0x475979[_0x9f5425([0x73,0x70,0x6c,0x69,0x74])](_0x9f5425([0x2e]));return _0xf2666d[_0x9f5425([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x56365d=>_0x56365d[_0x9f5425([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9f5425([0x2a])))[_0x9f5425([0x6d,0x61,0x70])](_0x93041c=>_0x93041c[_0x9f5425([0x73,0x70,0x6c,0x69,0x74])](_0x9f5425([0x2e])))[_0x9f5425([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4433d6=>_0x4433d6[_0x9f5425([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5975ba[_0x9f5425([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9f5425([0x6d,0x61,0x70])](_0x71cfad=>Array(_0x5975ba[_0x9f5425([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x71cfad[_0x9f5425([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9f5425([0x66,0x69,0x6c,0x6c])](_0x71cfad[0x0]===_0x9f5425([0x2a])?_0x9f5425([0x2a]):'')[_0x9f5425([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x71cfad))[_0x9f5425([0x73,0x6f,0x6d,0x65])](_0x3c2a7b=>_0x5975ba[_0x9f5425([0x65,0x76,0x65,0x72,0x79])]((_0x73b91e,_0x11435f)=>_0x3c2a7b[_0x11435f]===_0x73b91e||_0x3c2a7b[_0x11435f]===_0x9f5425([0x2a])));}function _0x4218a9(){return _0x494672&&_0x2a7f75?new window[(_0x9f5425([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2dfdcf,_0x102c25)=>{_0x494672[_0x9f5425([0x74,0x68,0x65,0x6e])](_0x2dfdcf,_0x102c25),_0x2a7f75[_0x9f5425([0x74,0x68,0x65,0x6e])](_0x3ea135=>{_0x3ea135!=_0x9f5425([0x56,0x61,0x6c,0x69,0x64])&&_0x2dfdcf(_0x3ea135);},_0x102c25);}):_0x494672||_0x2a7f75||_0x9f5425([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3a7513(_0x1a0a24,_0x249403){return new window[(_0x9f5425([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49747a=>{if(_0x35a598())return _0x49747a(_0x9f5425([0x56,0x61,0x6c,0x69,0x64]));_0x37947b(),_0x3ddebb[_0x9f5425([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x9f5425([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x21fc5c=!0x1;const _0x5d9916=_0x4c816d();function _0x41f329(_0x2fa9d0){return!!_0x2fa9d0&&(typeof _0x2fa9d0===_0x9f5425([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2fa9d0===_0x9f5425([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2fa9d0[_0x9f5425([0x74,0x68,0x65,0x6e])]===_0x9f5425([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2fa9d0[_0x9f5425([0x63,0x61,0x74,0x63,0x68])]===_0x9f5425([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c7037(_0x2e58ac){_0x2f0792(_0x2e58ac)[_0x9f5425([0x74,0x68,0x65,0x6e])](_0x480407=>{if(!_0x480407||_0x480407[_0x9f5425([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x9f5425([0x6f,0x6b]))return _0x9f5425([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x223a01(_0x16468b(_0x5d9916+_0x249403))!=_0x480407[_0x9f5425([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x9f5425([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x9f5425([0x56,0x61,0x6c,0x69,0x64]);})[_0x9f5425([0x74,0x68,0x65,0x6e])](_0x2a88e3=>(_0x4171db(),_0x2a88e3),()=>{const _0x4d45eb=_0x66b4b3();return null==_0x4d45eb?(_0x4171db(),_0x9f5425([0x56,0x61,0x6c,0x69,0x64])):_0x9f5425(_0x2523ee-_0x4d45eb>(0x4f9781fd^_0x489866)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x9f5425([0x74,0x68,0x65,0x6e])](_0x49747a)[_0x9f5425([0x63,0x61,0x74,0x63,0x68])](()=>{_0x49747a(_0x9f5425([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x314fa9=0x6badeb7d^_0x489866;function _0x4171db(){const _0x195c0d=_0x9f5425([0x6c,0x6c,0x63,0x74,0x2d])+_0x223a01(_0x16468b(_0x1a0a24)),_0x1fd45b=_0x49b04a(_0x223a01(window[_0x9f5425([0x4d,0x61,0x74,0x68])][_0x9f5425([0x63,0x65,0x69,0x6c])](_0x2523ee/_0x314fa9)));window[_0x9f5425([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9f5425([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x195c0d,_0x1fd45b);}function _0x66b4b3(){const _0x5ea4c2=_0x9f5425([0x6c,0x6c,0x63,0x74,0x2d])+_0x223a01(_0x16468b(_0x1a0a24)),_0x769b72=window[_0x9f5425([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9f5425([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ea4c2);return _0x769b72?window[_0x9f5425([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49b04a(_0x769b72),0x10)*_0x314fa9:null;}function _0x2f0792(_0x357728){return new window[(_0x9f5425([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x496ed4,_0x2a4bcc)=>{_0x357728[_0x9f5425([0x74,0x68,0x65,0x6e])](_0x496ed4,_0x2a4bcc),window[_0x9f5425([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2a4bcc,0x6b9ad13d^_0x489866);});}}_0x3ddebb[_0x9f5425([0x6f,0x6e])](_0x9f5425([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xc4e47a,_0x4ea6c7)=>{if(_0x4ea6c7[0x0]!=_0x1a0a24)return _0x49747a(_0x9f5425([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ea6c7[0x1]={..._0x4ea6c7[0x1],[_0x9f5425([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d9916};},{[_0x9f5425([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9f5425([0x68,0x69,0x67,0x68])}),_0x3ddebb[_0x9f5425([0x6f,0x6e])](_0x9f5425([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5aee38=>{_0x41f329(_0x5aee38[_0x9f5425([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x21fc5c=!0x0,_0x1c7037(_0x5aee38[_0x9f5425([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x9f5425([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9f5425([0x6c,0x6f,0x77])}),_0x3e7415[_0x9f5425([0x74,0x68,0x65,0x6e])](()=>{_0x21fc5c||_0x49747a(_0x9f5425([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x35a598(){return _0x3ddebb[_0x9f5425([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9f5425([0x76,0x69,0x65,0x77])][_0x9f5425([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x9f5425([0x61,0x75,0x74,0x6f]);}function _0x37947b(){_0x3ddebb[_0x9f5425([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9f5425([0x76,0x69,0x65,0x77])][_0x9f5425([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x9f5425([0x61,0x75,0x74,0x6f]);}}function _0x44bca8(_0x258478){const _0x1cfeeb=[new window[(_0x9f5425([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34e6e2=>setTimeout(_0x34e6e2,0x6b923b31^_0x489866)),_0x3e7415[_0x9f5425([0x74,0x68,0x65,0x6e])](()=>new window[(_0x9f5425([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x561f15=>{let _0x24f30c=0x0;_0x3ddebb[_0x9f5425([0x6d,0x6f,0x64,0x65,0x6c])][_0x9f5425([0x6f,0x6e])](_0x9f5425([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x433dd4,_0x31295d)=>{_0x31295d[0x0][_0x9f5425([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x24f30c++,_0x24f30c==(0x6b9b0015^_0x489866)&&(_0x561f15(),_0x433dd4[_0x9f5425([0x6f,0x66,0x66])]());});}))];return window[_0x9f5425([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x9f5425([0x72,0x61,0x63,0x65])](_0x1cfeeb)[_0x9f5425([0x74,0x68,0x65,0x6e])](()=>_0x258478);}async function _0x5a36f6(){await _0x3e7415,_0x3ddebb[_0x9f5425([0x6d,0x6f,0x64,0x65,0x6c])][_0x9f5425([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x489322,_0x3ddebb[_0x9f5425([0x6d,0x6f,0x64,0x65,0x6c])][_0x9f5425([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x489322,_0x3ddebb[_0x9f5425([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x9f5425([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2235de(){return window[_0x9f5425([0x67,0x6c,0x6f,0x62])]&&window[_0x9f5425([0x67,0x6c,0x6f,0x62])][_0x9f5425([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x392308(_0x5e26b0){const _0x284198=_0x8839d6();_0x3ddebb[_0x284198]=_0x9f5425([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])+_0x5e26b0,_0x5e26b0!=_0x9f5425([0x56,0x61,0x6c,0x69,0x64])&&_0x5a36f6();}function _0x8839d6(){const _0x1a1c68=window[_0x9f5425([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x9f5425([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x9f5425([0x6e,0x6f,0x77])]())[_0x9f5425([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x9f5425([0x2e]),'');let _0x1eed17=_0x9f5425([0x6d]);for(let _0x4f845d=0x0;_0x4f845d<_0x1a1c68[_0x9f5425([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f845d+=0x2){let _0xb8f016=window[_0x9f5425([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a1c68[_0x9f5425([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f845d,_0x4f845d+0x2));_0xb8f016>=_0x25aa9b[_0x9f5425([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb8f016-=_0x25aa9b[_0x9f5425([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1eed17+=_0x25aa9b[_0xb8f016];}return _0x1eed17;}function _0x34af88(){const _0x5dc79f=_0x5996c7[_0x9f5425([0x73,0x70,0x6c,0x69,0x74])](_0x9f5425([0x2e]));if(0x3!=_0x5dc79f[_0x9f5425([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x430cbf(_0x5dc79f[0x1]);function _0x430cbf(_0xf86c73){const _0x152acc=_0x4ea908(_0xf86c73);return _0x152acc&&_0x17ad25()?_0x152acc:null;function _0x17ad25(){const _0x1d050f=_0x152acc[_0x9f5425([0x6a,0x74,0x69])],_0x8fbd30=window[_0x9f5425([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d050f[_0x9f5425([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d050f[_0x9f5425([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4abea1={..._0x152acc,[_0x9f5425([0x6a,0x74,0x69])]:_0x1d050f[_0x9f5425([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1d050f[_0x9f5425([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4abea1[_0x9f5425([0x76,0x63])],_0x16468b(_0x4abea1)==_0x8fbd30;}}}async function _0x116b15(){let _0x5e96ac=!0x0;try{const _0x43e9cf=_0x5996c7[_0x9f5425([0x73,0x70,0x6c,0x69,0x74])](_0x9f5425([0x2e])),[_0x46e289,_0x20e381,_0x59bd7c]=_0x43e9cf;return _0x3beb69(_0x46e289),await _0x3bec44(_0x46e289,_0x20e381,_0x59bd7c),_0x5e96ac;}catch{return!0x1;}function _0x3beb69(_0xa6c691){const _0x41d8c9=_0x4ea908(_0xa6c691);_0x41d8c9&&_0x41d8c9[_0x9f5425([0x61,0x6c,0x67])]==_0x9f5425([0x45,0x53,0x32,0x35,0x36])||(_0x5e96ac=!0x1);}async function _0x3bec44(_0x4b1f63,_0x26f4cf,_0x44ac9c){const _0x47d4d2=window[_0x9f5425([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x9f5425([0x66,0x72,0x6f,0x6d])](_0x33ff95(_0x44ac9c),_0x4f0fd6=>_0x4f0fd6[_0x9f5425([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x107dc1=new window[(_0x9f5425([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x9f5425([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4b1f63+_0x9f5425([0x2e])+_0x26f4cf),_0x42a358=window[_0x9f5425([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x9f5425([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x42a358)return;const _0x5100ca=await _0x42a358[_0x9f5425([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x9f5425([0x6a,0x77,0x6b]),_0x27cd2d,{[_0x9f5425([0x6e,0x61,0x6d,0x65])]:_0x9f5425([0x45,0x43,0x44,0x53,0x41]),[_0x9f5425([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x9f5425([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x9f5425([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x42a358[_0x9f5425([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x9f5425([0x6e,0x61,0x6d,0x65])]:_0x9f5425([0x45,0x43,0x44,0x53,0x41]),[_0x9f5425([0x68,0x61,0x73,0x68])]:{[_0x9f5425([0x6e,0x61,0x6d,0x65])]:_0x9f5425([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5100ca,_0x47d4d2,_0x107dc1)||(_0x5e96ac=!0x1);}}function _0x4ea908(_0x18fdce){return _0x18fdce[_0x9f5425([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x9f5425([0x65,0x79]))?JSON[_0x9f5425([0x70,0x61,0x72,0x73,0x65])](_0x33ff95(_0x18fdce)):null;}function _0x33ff95(_0x9d3be){return window[_0x9f5425([0x61,0x74,0x6f,0x62])](_0x9d3be[_0x9f5425([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x9f5425([0x2b]))[_0x9f5425([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x9f5425([0x2f])));}function _0x16468b(_0xc65050){let _0x6f4e8f=0x1505;function _0x341e14(_0x24b792){for(let _0xfecd13=0x0;_0xfecd13<_0x24b792[_0x9f5425([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xfecd13++){const _0x6fdf6f=_0x24b792[_0x9f5425([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xfecd13);_0x6f4e8f=(_0x6f4e8f<<0x5)+_0x6f4e8f+_0x6fdf6f,_0x6f4e8f&=_0x6f4e8f;}}function _0x374d00(_0x3c282e){Array[_0x9f5425([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3c282e)?_0x3c282e[_0x9f5425([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x374d00):_0x3c282e&&typeof _0x3c282e==_0x9f5425([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x9f5425([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3c282e)[_0x9f5425([0x73,0x6f,0x72,0x74])]()[_0x9f5425([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x574dca,_0x18b4a3])=>{_0x341e14(_0x574dca),_0x374d00(_0x18b4a3);}):_0x341e14(window[_0x9f5425([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3c282e));}return _0x374d00(_0xc65050),_0x6f4e8f>>>0x0;}function _0x223a01(_0x4c85d0){return _0x4c85d0[_0x9f5425([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x9f5425([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x9f5425([0x30]));}function _0x49b04a(_0x1d2d14){return _0x1d2d14[_0x9f5425([0x73,0x70,0x6c,0x69,0x74])]('')[_0x9f5425([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x9f5425([0x6a,0x6f,0x69,0x6e])]('');}function _0x489322(){}function _0x9f5425(_0x29346a){return _0x29346a['map'](_0x4f4ffa=>String['fromCharCode'](_0x4f4ffa))['join']('');}_0x392308(await _0x1a114d());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0xc7fc84=>{'$graveyard'!==_0xc7fc84['rootName']&&this['editor']['editing']['reconvertItem'](_0xc7fc84);});}['_trackNewToCElements'](){for(const _0x10ea94 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x10ea94['type']||'tableOfContents'!==_0x10ea94['name'])return;this['_tableOfContentsElements']['add'](_0x10ea94['position']['nodeAfter']);}}['_getOutlineDefinitions'](_0x59f1af){const _0x121b1d=this['editor'],_0x30fee3=[];for(const _0x12a9bc of _0x121b1d['model']['document']['getRootNames']())_0x30809b(_0x121b1d['model']['document']['getRoot'](_0x12a9bc));function _0x30809b(_0x55268e){for(const _0x59f2ed of _0x55268e['getChildren']())_0x59f2ed['is']('element')&&(_0x59f1af['includes'](_0x59f2ed['name'])&&_0x30fee3['push']({'level':_0x59f1af['indexOf'](_0x59f2ed['name'])+0x1,'text':I(_0x59f2ed),'modelElement':_0x59f2ed}),_0x30809b(_0x59f2ed));}return _0x30fee3;}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x5b50d7=this['editor']['conversion'];_0x5b50d7['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x5b50d7['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x36e940,{writer:_0x4f99d6})=>this['_createTableOfContents'](_0x4f99d6,!0x0)}),_0x5b50d7['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x418d03,{writer:_0x237409})=>{this['_tableOfContentsElements']['add'](_0x418d03);const _0x40cf4c=this['_createTableOfContents'](_0x237409);return _0x35e11d(_0x40cf4c,_0x237409,{'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'](_0x16a662,_0x4e6351=!0x1){const {locale:_0x9563b5}=this['editor'],_0x37c756=_0x16a662['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x4e6351&&{'data-table-of-contents-label':C(_0x9563b5,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x4e6351&&_0x16a662['insert'](_0x16a662['createPositionAt'](_0x37c756,'end'),_0x16a662['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x16a662['createText'](C(_0x9563b5,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x21e8ef=_0x4e6351?'':'['+C(_0x9563b5,'Empty\x20heading')+']';let _0x3a54fc=_0x37c756;return this['_currentOutlineDefinitions']['forEach']((_0x22a022,_0x5453a0,_0x3ba633)=>{const _0x54747a=this['editor']['model']['hasContent'](_0x22a022['modelElement'],{'ignoreWhitespaces':!0x0}),_0x54ac02=_0x54747a?_0x22a022['text']:_0x21e8ef,_0x361365=_0x22a022['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x50ac0c=_0x16a662['createContainerElement']('a',{'href':'#'+_0x361365,...!_0x4e6351&&{'tabindex':'-1'}},[_0x16a662['createText'](_0x54ac02)]),_0x5172e1=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x16a662['setCustomProperty']('tableOfContentsHeadingIndex',_0x5453a0,_0x50ac0c);const _0x404f1f=_0x16a662['createContainerElement']('li',null,[_0x54747a||!_0x4e6351&&_0x5172e1?_0x50ac0c:_0x16a662['createText']('')]),_0x5d1be6=_0x5453a0?_0x3ba633[_0x5453a0-0x1]['level']:0x0,_0x4a75be=Math['abs'](_0x22a022['level']-_0x5d1be6);if(_0x22a022['level']>_0x5d1be6){const _0x1052c6=_(_0x404f1f,_0x4a75be,_0x16a662);_0x16a662['insert'](_0x16a662['createPositionAt'](_0x3a54fc,'end'),_0x1052c6);}else{const _0x5d1691=function(_0x5a3163,_0x556b2e){return _0x5a3163['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x1a6695=>_0x1a6695['is']('element','ol'))[_0x556b2e];}(_0x3a54fc,_0x4a75be);_0x16a662['insert'](_0x16a662['createPositionAt'](_0x5d1691,'end'),_0x404f1f);}_0x3a54fc=_0x404f1f;}),_0x37c756;}['_handleScrollToHeading'](_0x2fbde5){const _0x59efc0=this['_currentOutlineDefinitions'][_0x2fbde5]['modelElement'];this['editor']['model']['change'](_0x42f42d=>{_0x42f42d['setSelection'](_0x59efc0,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x231f01,_0x2e9f3f)=>{const _0x451434=_0x2e9f3f['mapper'],_0x3e7055=_0x451434['findMappedViewAncestor'](_0x2e9f3f['viewPosition']),_0x3f16d1=_0x451434['toModelElement'](_0x3e7055);_0x3f16d1['is']('element','tableOfContents')&&(_0x2e9f3f['modelPosition']=this['editor']['model']['createPositionAt'](_0x3f16d1,0x0),_0x231f01['stop']());};}}function _(_0x267b8f,_0x44562d,_0x37537e){return 0x1===_0x44562d?_0x37537e['createContainerElement']('ol',null,[_0x267b8f]):_0x37537e['createContainerElement']('ol',null,[_0x37537e['createContainerElement']('li',null,[_(_0x267b8f,_0x44562d-0x1,_0x37537e)])]);}class TableOfContentsUI extends _0x4f89e1{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5048cd=this['editor'];_0x5048cd['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x1ed285=this['_createButton'](_0x4e1e7b);return _0x1ed285['tooltip']=!0x0,_0x1ed285;}),_0x5048cd['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x16da01)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x16e529=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x560a59;for(const _0x2e38a1 in _0x16e529){const _0x10698c=_0x2e38a1,_0x300710=_0x16e529[_0x10698c];if('tableOfContentsLicenseKeyValid'==_0x300710||'tableOfContentsLicenseKeyInvalid'==_0x300710||'tableOfContentsLicenseKeyExpired'==_0x300710||'tableOfContentsLicenseKeyDomainLimit'==_0x300710||'tableOfContentsLicenseKeyNotAllowed'==_0x300710||'tableOfContentsLicenseKeyEvaluationLimit'==_0x300710||'tableOfContentsLicenseKeyUsageLimit'==_0x300710){delete _0x16e529[_0x10698c],_0x560a59=_0x300710,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x560a59&&_0x16e529['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x560a59&&_0x16e529['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x560a59&&_0x16e529['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x560a59&&_0x16e529['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x560a59&&_0x16e529['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x560a59&&_0x16e529['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x3627f0){const _0x43d6f7=this['editor'],_0x378d2c=_0x43d6f7['locale'],_0x3c8fc3=_0x43d6f7['commands']['get']('insertTableOfContents'),_0x310960=new _0x3627f0(_0x378d2c);return _0x310960['set']({'label':C(_0x378d2c,'Table\x20of\x20contents'),'icon':_0x5da3d5}),_0x310960['bind']('isEnabled')['to'](_0x3c8fc3,'isEnabled'),this['listenTo'](_0x310960,'execute',()=>{_0x43d6f7['execute']('insertTableOfContents'),_0x43d6f7['editing']['view']['focus']();}),_0x310960;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContents extends _0x4f89e1{static get['requires'](){return[TableOfContentsEditing,TableOfContentsUI];}static get['pluginName'](){return'TableOfContents';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{DocumentOutline,DocumentOutlineUI,DocumentOutlineUtils,HeadingId,TableOfContents,TableOfContentsCommand,TableOfContentsEditing,TableOfContentsUI};
|
|
23
|
+
import{Command as _0x3335d0,Plugin as _0x548b1f}from'@ckeditor/ckeditor5-core';import{debounce as _0x43c5a8,throttle as _0x709743}from'es-toolkit/compat';import{ModelText as _0x4a040b,ModelTreeWalker as _0x222346}from'@ckeditor/ckeditor5-engine';import{CKEditorError as _0x3345a9,Rect as _0x4de28e,diff as _0x5299b8,diffToChanges as _0xdf80ec,global as _0x587805,priorities as _0x5e30bf,scrollAncestorsToShowTarget as _0x259d2c,uid as _0x1c535f}from'@ckeditor/ckeditor5-utils';import{ButtonView as _0x258ddc,MenuBarMenuListItemButtonView as _0x1b5155,View as _0x50178f}from'@ckeditor/ckeditor5-ui';import{Widget as _0x3092e2,toWidget as _0x1b7424}from'@ckeditor/ckeditor5-widget';import{IconTableOfContents as _0x38c57b}from'@ckeditor/ckeditor5-icons';function b(_0xd62201){let _0x5ab25e='';for(const _0x5433c6 of _0xd62201['getChildren']())_0x5433c6 instanceof _0x4a040b&&(_0x5ab25e+=_0x5433c6['data']);return _0x5ab25e;}var I=class extends _0x548b1f{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x446219=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0xc6a75b=[];_0x446219['model']['document']['on']('change',_0x43c5a8(()=>{const _0x5e3f83=_0xc6a75b;_0xc6a75b=this['_getOutlineDefinitions']();const _0x55ad33=_0xdf80ec(_0x5299b8(_0x5e3f83,_0xc6a75b,(_0x4ac888,_0x13a9b2)=>_0x4ac888['level']===_0x13a9b2['level']&&_0x4ac888['text']===_0x13a9b2['text']&&_0x4ac888['modelElement']===_0x13a9b2['modelElement']),_0xc6a75b),_0x58fef5=this['_getActiveHeading'](),_0x1ccecc=_0xc6a75b['findIndex'](_0x224a6e=>_0x224a6e['modelElement']===_0x58fef5);_0x55ad33['length']&&this['fire']('change',{'outlineDefinitions':_0xc6a75b,'activeItemIndex':_0x1ccecc,'outlineChanges':_0x55ad33}),this['fire']('activeItemIndex',{'index':_0x1ccecc});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x2a66f3=this['editor'],_0x183c39=[],_0x1a38cb=this['_headingNames'];for(const _0xd2bfee of _0x2a66f3['model']['document']['getRootNames']())_0x16e6d6(_0x2a66f3['model']['document']['getRoot'](_0xd2bfee));function _0x16e6d6(_0x105fa8){for(const _0x530151 of _0x105fa8['getChildren']())_0x530151['is']('element')&&(_0x1a38cb['includes'](_0x530151['name'])&&_0x183c39['push']({'level':_0x1a38cb['indexOf'](_0x530151['name'])+0x1,'text':b(_0x530151),'modelElement':_0x530151}),_0x16e6d6(_0x530151));}return _0x183c39;}['_getActiveHeading'](){const _0x1081ff=new _0x222346({'direction':'backward','startPosition':this['editor']['model']['document']['selection']['getFirstPosition']()});for(const _0xad3738 of _0x1081ff)if(_0xad3738['item']['is']('element')&&this['_headingNames']['includes'](_0xad3738['item']['name']))return _0xad3738['item'];}['_getHeadingNames'](){const _0xbd807b=this['editor']['config']['get']('documentOutline.headings');return _0xbd807b||function(_0x4cf935){const _0x1f52da=_0x4cf935['config']['get']('heading.options');return _0x1f52da?_0x1f52da['reduce']((_0x59b758,_0x1a028b)=>('paragraph'!==_0x1a028b['model']&&_0x59b758['push'](_0x1a028b['model']),_0x59b758),[]):_0x4cf935['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x12b4ec=this['editor'],_0x3f736a=['h1','h2','h3','h4','h5','h6'],_0xf31f98=[];for(const _0x22ace9 of _0x3f736a){const _0x55b18b=_0x12b4ec['editing']['view']['domConverter']['domToView'](document['createElement'](_0x22ace9)),_0x4c1971=_0x12b4ec['data']['toModel'](_0x55b18b)['getChild'](0x0);_0x4c1971?.['is']('element')&&_0xf31f98['push'](_0x4c1971['name']);}this['_headingNames']=_0xf31f98;}};function L(_0x1f03f6,_0x15fa22){const t=_0x1f03f6['t'];switch(_0x15fa22){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 _0x15fa22;}}var C=class extends _0x50178f{constructor(_0x8d9d6f,_0x2fe077=!0x1){super(_0x8d9d6f);const _0x9ee740=this['bindTemplate'],_0x453025=_0x2fe077?'['+L(_0x8d9d6f,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x3d52ca=>!_0x3d52ca),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x9ee740['to']('level',_0x5e13be=>'ck-document-outline__item_level-'+_0x5e13be),_0x9ee740['if']('isActive','ck-document-outline__item_active'),_0x9ee740['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x9ee740['to']('text')},'children':[{'text':_0x9ee740['to']('text',_0x4835a8=>_0x4835a8||_0x453025)}],'on':{'click':_0x9ee740['to']('click')}});}},_=class extends _0x50178f{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x3bac5d,_0x46550a=!0x1,_0x5b43b4){super(_0x3bac5d),this['showEmptyHeadingText']=_0x46550a,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x5b43b4,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0xde4336,_0x50de44,_0x242f4b,_0x3645d0)=>{this['_setActiveItem'](_0x3645d0,_0x242f4b);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x3bac5d['contentLanguageDirection'],'data-document-outline-empty-placeholder':L(_0x3bac5d,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x263c53){_0x263c53['forEach'](_0x2cc1de=>{'insert'==_0x2cc1de['type']?this['_insertItem'](_0x2cc1de['index'],..._0x2cc1de['values']):'delete'==_0x2cc1de['type']&&this['_deleteItem'](_0x2cc1de['index'],_0x2cc1de['howMany']);});}['_setActiveItem'](_0x46de0b,_0x14f0e9){if(-0x1!==_0x46de0b){const _0x1b27d9=this['items']['get'](_0x46de0b);_0x1b27d9&&(_0x1b27d9['isActive']=!0x1);}-0x1!==_0x14f0e9&&(this['items']['get'](_0x14f0e9)['isActive']=!0x0,this['_scrollToItem'](_0x14f0e9));}['_insertItem'](_0x36c2d6,..._0x530aa2){const _0x42efb4=_0x530aa2['map']((_0x57a8b7,_0x4eb8ae)=>{const _0x127fae=new C(this['locale'],this['showEmptyHeadingText']);return _0x127fae['text']=_0x57a8b7['text'],_0x127fae['level']=_0x57a8b7['level'],_0x36c2d6+_0x4eb8ae===this['activeItemIndex']&&(_0x127fae['isActive']=!0x0),_0x127fae;});this['items']['addMany'](_0x42efb4,_0x36c2d6);}['_deleteItem'](_0x3d1fb7,_0x58a66d){do{this['items']['remove'](_0x3d1fb7);}while(--_0x58a66d);}['_handleItemClick'](_0x1aeda4){const _0x3378db=this['items']['getIndex'](_0x1aeda4['source']);this['fire']('itemSelected',_0x3378db);}['_scrollToItem'](_0x4f0339){_0x259d2c(this['items']['get'](_0x4f0339)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}},x=class extends _0x548b1f{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1cf582){super(_0x1cf582),this['view']=new _(_0x1cf582['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0x709743(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x371616=this['editor'],_0x3feb32=_0x371616['plugins']['get']('DocumentOutlineUtils');let _0x5223c5=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x371616['config']['get']('documentOutline.container'))throw new _0x3345a9('document-outline-container-not-provided',{'editor':_0x371616});_0x371616['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x3feb32['on']('change',this['_handleOutlineChange']['bind'](this)),_0x3feb32['on']('activeItemIndex',(_0x18f786,{index:_0x4e1d4c})=>this['_setActiveViewItem'](_0x4e1d4c)),this['view']['on']('itemSelected',(_0x5b9301,_0x2abe53)=>{_0x5223c5=!0x0,this['_handleItemSelected'](_0x2abe53);}),this['view']['listenTo'](_0x587805['document'],'scroll',()=>{_0x5223c5?_0x5223c5=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x587805['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0xccf265){const _0x59a236='aWxlPG0A3CDdHBsZEqwULojOrgMXVTRvu1bI2487ptzJKQeihfNkYS9n6y5mcF',_0x4e6e2c=0x78df8,_0x28b24b=window['Date']['now'](),_0x9c5532=_0xccf265['editor'],_0x139a75=new window['Promise'](_0xcb865b=>{_0x9c5532['once']('ready',_0xcb865b);}),_0x426a55={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x4a6b1e=_0x9c5532['config']['get']('licenseKey');async function _0x5479b8(){let _0x4830da,_0x7b8104=null,_0x278768=null;try{return'GPL'==_0x4a6b1e?'NotAllowed':(_0x4830da=_0x4b8dbb(),_0x4830da?(_0x4830da['usageEndpoint']&&(_0x278768=_0x64e941(_0x4830da['usageEndpoint'],_0x4830da['jti'])),await _0x2dbdba()?_0x5d7ddd()?_0x1fe64e()?'Expired':_0x21601e()?('evaluation'==_0x4830da['licenseType']&&(_0x7b8104=_0x15a335('EvaluationLimit')),await _0x1dfd65()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x1fe64e(){const _0x53af0d=['evaluation','trial']['includes'](_0x4830da['licenseType'])?_0x28b24b/0x3e8:0xe10*_0x4e6e2c;return _0x4830da['exp']<_0x53af0d;}function _0x5d7ddd(){const _0x4a4e73=_0x4830da['features'];return!!_0x4a4e73&&(!!_0x4a4e73['includes']('*')||(!!_0x4a4e73['includes']('DO')||(!!_0x4a4e73['includes']('PP')||!(!_0x4a4e73['includes']('TRILIUM')||!_0x565f15()))));}function _0x21601e(){const _0x44fcd4=_0x4830da['licensedHosts'];if(!_0x44fcd4||0x0==_0x44fcd4['length'])return!0x0;const {hostname:_0x298f53}=new URL(window['location']['href']);if(_0x44fcd4['includes'](_0x298f53))return!0x0;const _0x116f2b=_0x298f53['split']('.');return _0x44fcd4['filter'](_0x399a30=>_0x399a30['includes']('*'))['map'](_0xb40e3c=>_0xb40e3c['split']('.'))['filter'](_0xd0c3d0=>_0xd0c3d0['length']<=_0x116f2b['length'])['map'](_0x1f91a3=>Array(_0x116f2b['length']-_0x1f91a3['length'])['fill']('*'===_0x1f91a3[0x0]?'*':'')['concat'](_0x1f91a3))['some'](_0x19e20c=>_0x116f2b['every']((_0x1f7ce4,_0x2dedd5)=>_0x19e20c[_0x2dedd5]===_0x1f7ce4||'*'===_0x19e20c[_0x2dedd5]));}function _0x1dfd65(){return _0x7b8104&&_0x278768?new window['Promise']((_0x1482a5,_0x501590)=>{_0x7b8104['then'](_0x1482a5,_0x501590),_0x278768['then'](_0x2acb67=>{'Valid'!=_0x2acb67&&_0x1482a5(_0x2acb67);},_0x501590);}):_0x7b8104||_0x278768||'Valid';}}function _0x64e941(_0x186dd4,_0x169154){return new window['Promise'](_0x48d0fb=>{if(_0x4c7ac8())return _0x48d0fb('Valid');_0x4a062f(),_0x9c5532['decorate']('_sendUsageRequest');let _0x54eaf1=!0x1;const _0x3873f0=_0x1c535f();function _0x53bf5f(_0x38c088){return!!_0x38c088&&('object'==typeof _0x38c088||'function'==typeof _0x38c088)&&'function'==typeof _0x38c088['then']&&'function'==typeof _0x38c088['catch'];}function _0x1f0952(_0x5dd6b1){_0x4f6b6b(_0x5dd6b1)['then'](_0x22c558=>_0x22c558&&'ok'==_0x22c558['status']?_0x21086c(_0x4af66e(_0x3873f0+_0x169154))!=_0x22c558['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x16bf60=>(_0x5c1b83(),_0x16bf60),()=>{const _0x4e7fe5=_0x2ec05d();return null==_0x4e7fe5?(_0x5c1b83(),'Valid'):_0x28b24b-_0x4e7fe5>0x240c8400?'UsageLimit':'Valid';})['then'](_0x48d0fb)['catch'](()=>{_0x48d0fb('UsageLimit');});const _0x520573=0x36ee80;function _0x5c1b83(){const _0x4d155d='llct-'+_0x21086c(_0x4af66e(_0x186dd4)),_0x338229=_0x15d9c5(_0x21086c(window['Math']['ceil'](_0x28b24b/_0x520573)));window['localStorage']['setItem'](_0x4d155d,_0x338229);}function _0x2ec05d(){const _0x42cb34='llct-'+_0x21086c(_0x4af66e(_0x186dd4)),_0x272076=window['localStorage']['getItem'](_0x42cb34);return _0x272076?window['parseInt'](_0x15d9c5(_0x272076),0x10)*_0x520573:null;}function _0x4f6b6b(_0x10e8f3){return new window['Promise']((_0x53a242,_0x3664b9)=>{_0x10e8f3['then'](_0x53a242,_0x3664b9),window['setTimeout'](_0x3664b9,0x1d4c0);});}}_0x9c5532['on']('_sendUsageRequest',(_0x4a864a,_0x433806)=>{if(_0x433806[0x0]!=_0x186dd4)return _0x48d0fb('UsageLimit');_0x433806[0x1]={..._0x433806[0x1],'requestId':_0x3873f0};},{'priority':'high'}),_0x9c5532['on']('_sendUsageRequest',_0x3103d0=>{_0x53bf5f(_0x3103d0['return'])&&(_0x54eaf1=!0x0,_0x1f0952(_0x3103d0['return']));},{'priority':'low'}),_0x139a75['then'](()=>{_0x54eaf1||_0x48d0fb('UsageLimit');});});function _0x4c7ac8(){return'auto'==_0x9c5532['editing']['view']['_overlayModeHint'];}function _0x4a062f(){_0x9c5532['editing']['view']['_overlayModeHint']='auto';}}function _0x15a335(_0x12f0fc){const _0x130ce2=[new window['Promise'](_0x4e4873=>setTimeout(_0x4e4873,0x93ecc)),_0x139a75['then'](()=>new window['Promise'](_0x32ec10=>{let _0x1127d3=0x0;_0x9c5532['model']['on']('applyOperation',(_0x4195dc,_0x88cfd8)=>{_0x88cfd8[0x0]['isDocumentOperation']&&_0x1127d3++,0x5e8==_0x1127d3&&(_0x32ec10(),_0x4195dc['off']());});}))];return window['Promise']['race'](_0x130ce2)['then'](()=>_0x12f0fc);}async function _0x2b69c9(){await _0x139a75,_0x9c5532['model']['change']=_0x15c5c2,_0x9c5532['model']['enqueueChange']=_0x15c5c2,_0x9c5532['enableReadOnlyMode']('model');}function _0x565f15(){return window['glob']&&window['glob']['triliumVersion'];}function _0x4c8b8e(_0x5b238d){const _0x493e85=_0x1e22c6();_0x9c5532[_0x493e85]='documentOutlineLicenseKey'+_0x5b238d,'Valid'!=_0x5b238d&&_0x2b69c9();}function _0x1e22c6(){const _0x679ce4=window['String'](window['performance']['now']())['replace']('.','');let _0x34987a='a';for(let _0x8db829=0x0;_0x8db829<_0x679ce4['length'];_0x8db829+=0x2){let _0x1ff633=window['parseInt'](_0x679ce4['substring'](_0x8db829,_0x8db829+0x2));_0x1ff633>=0x3e&&(_0x1ff633-=0x3e),_0x34987a+=_0x59a236[_0x1ff633];}return _0x34987a;}function _0x4b8dbb(){const _0x2a7ccd=_0x4a6b1e['split']('.');if(0x3!=_0x2a7ccd['length'])return null;return _0x5b09c1(_0x2a7ccd[0x1]);function _0x5b09c1(_0x4927c0){const _0x19ca82=_0x3ed057(_0x4927c0);return _0x19ca82&&_0x1ad1f6()?_0x19ca82:null;function _0x1ad1f6(){const _0x12ca29=_0x19ca82['jti'],_0x568667=window['parseInt'](_0x12ca29['substring'](_0x12ca29['length']-0x8),0x10),_0x1288a7={..._0x19ca82,'jti':_0x12ca29['substring'](0x0,_0x12ca29['length']-0x8)};return delete _0x1288a7['vc'],_0x4af66e(_0x1288a7)==_0x568667;}}}async function _0x2dbdba(){let _0x5dfe77=!0x0;try{const [_0x33797e,_0x9242be,_0x398685]=_0x4a6b1e['split']('.');return _0x46ce17(_0x33797e),await _0x29099b(_0x33797e,_0x9242be,_0x398685),_0x5dfe77;}catch{return!0x1;}function _0x46ce17(_0x356bc4){const _0xfb80c4=_0x3ed057(_0x356bc4);_0xfb80c4&&'ES256'==_0xfb80c4['alg']||(_0x5dfe77=!0x1);}async function _0x29099b(_0x4d2f50,_0x397d52,_0x4771fd){const _0xe1879=window['Uint8Array']['from'](_0x2af3b9(_0x4771fd),_0x440144=>_0x440144['charCodeAt'](0x0)),_0x24f0be=new window['TextEncoder']()['encode'](_0x4d2f50+'.'+_0x397d52),_0x5178b6=window['crypto']['subtle'];if(!_0x5178b6)return;const _0x2f06e0=await _0x5178b6['importKey']('jwk',_0x426a55,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5178b6['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x2f06e0,_0xe1879,_0x24f0be)||(_0x5dfe77=!0x1);}}function _0x3ed057(_0x5ee585){return _0x5ee585['startsWith']('ey')?JSON['parse'](_0x2af3b9(_0x5ee585)):null;}function _0x2af3b9(_0x1c2f6e){return window['atob'](_0x1c2f6e['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x4af66e(_0x3fcafa){let _0x190a1e=0x1505;function _0x26b99e(_0x362fba){for(let _0x17fb8f=0x0;_0x17fb8f<_0x362fba['length'];_0x17fb8f++){const _0x424e38=_0x362fba['charCodeAt'](_0x17fb8f);_0x190a1e=(_0x190a1e<<0x5)+_0x190a1e+_0x424e38,_0x190a1e&=_0x190a1e;}}function _0x6d74e3(_0x168947){Array['isArray'](_0x168947)?_0x168947['forEach'](_0x6d74e3):_0x168947&&'object'==typeof _0x168947?Object['entries'](_0x168947)['sort']()['forEach'](([_0xad97b5,_0x25aecd])=>{_0x26b99e(_0xad97b5),_0x6d74e3(_0x25aecd);}):_0x26b99e(window['String'](_0x168947));}return _0x6d74e3(_0x3fcafa),_0x190a1e>>>0x0;}function _0x21086c(_0x10b514){return _0x10b514['toString'](0x10)['padStart'](0x8,'0');}function _0x15d9c5(_0x1940aa){return _0x1940aa['split']('')['reverse']()['join']('');}function _0x15c5c2(){}_0x4c8b8e(await _0x5479b8());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0xf1102a,{outlineDefinitions:_0x3544ae,outlineChanges:_0x4322b5}){this['_currentOutlineDefinitions']=_0x3544ae,this['view']['sync'](_0x4322b5);}['_setActiveViewItem'](_0x5f33aa){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x5f33aa]&&(this['view']['activeItemIndex']=_0x5f33aa);}['_handleItemSelected'](_0x131209){const _0x435339=this['_currentOutlineDefinitions'][_0x131209]['modelElement'];this['editor']['model']['change'](_0x636b51=>{_0x636b51['setSelection'](_0x435339,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x131209);}['_updateActiveDefinitionOnViewportChange'](){const _0x302bd5=this['editor'];let _0x539ccb;for(const _0xb1c376 of _0x302bd5['model']['document']['getRootNames']()){const _0x2e583e=_0x302bd5['editing']['view']['getDomRoot'](_0xb1c376),_0x54386e=_0x2e583e&&new _0x4de28e(_0x2e583e)['getVisible']();if(_0x54386e){const _0xdb0c5b=new _0x4de28e(_0x587805['window'])['getIntersection'](_0x54386e);_0xdb0c5b&&(_0x539ccb=_0xdb0c5b['top']+0.25*_0xdb0c5b['height']);}}if(void 0x0===_0x539ccb)return;const _0x1e902d=k(_0x302bd5['editing'],this['_currentOutlineDefinitions'],_0x539ccb);_0x1e902d?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x1e902d)):this['_setActiveViewItem'](-0x1);}};function k(_0x4fe048,_0xb1bc73,_0x340cbe,_0x22fad5=0x0,_0x2813e5=_0xb1bc73['length']-0x1){const _0x2e4b0e=Math['floor'](_0x22fad5+(_0x2813e5-_0x22fad5)/0x2);if(_0x2813e5>=_0x22fad5){const _0x9038bb=_0xb1bc73[_0x2e4b0e],_0x4bfe0d=_0x4fe048['mapper']['toViewElement'](_0x9038bb['modelElement']);return _0x4bfe0d?new _0x4de28e(_0x4fe048['view']['domConverter']['mapViewToDom'](_0x4bfe0d))['bottom']>_0x340cbe?k(_0x4fe048,_0xb1bc73,_0x340cbe,_0x22fad5,_0x2e4b0e-0x1):k(_0x4fe048,_0xb1bc73,_0x340cbe,_0x2e4b0e+0x1,_0x2813e5):null;}return _0x2e4b0e<0x0?null:_0xb1bc73[_0x2e4b0e];}var E=class extends _0x548b1f{['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 _0x3c6189=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x15e8cd;for(const _0x322ce3 in _0x3c6189){const _0x8b7e99=_0x322ce3,_0x5f25f2=_0x3c6189[_0x8b7e99];if('documentOutlineLicenseKeyValid'==_0x5f25f2||'documentOutlineLicenseKeyInvalid'==_0x5f25f2||'documentOutlineLicenseKeyExpired'==_0x5f25f2||'documentOutlineLicenseKeyDomainLimit'==_0x5f25f2||'documentOutlineLicenseKeyNotAllowed'==_0x5f25f2||'documentOutlineLicenseKeyEvaluationLimit'==_0x5f25f2||'documentOutlineLicenseKeyUsageLimit'==_0x5f25f2){delete _0x3c6189[_0x8b7e99],_0x15e8cd=_0x5f25f2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x15e8cd&&_0x3c6189['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x15e8cd&&_0x3c6189['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x15e8cd&&_0x3c6189['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x15e8cd&&_0x3c6189['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x15e8cd&&_0x3c6189['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x15e8cd&&_0x3c6189['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},K=class extends _0x3335d0{['execute'](){this['editor']['model']['change'](_0x4db49b=>{this['editor']['model']['insertObject'](_0x4db49b['createElement']('tableOfContents'));});}['refresh'](){const _0x2f6787=this['editor']['model'],_0x27310d=_0x2f6787['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x27310d&&_0x2f6787['schema']['findAllowedParent'](_0x27310d,'tableOfContents'));}},A=class extends _0x548b1f{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x2f0a63=this['editor'];if(_0x2f0a63['config']['get']('headingId.modelAttributeName'))return;const {viewNames:_0x17afd3,modelNames:_0x1e9733}=function(_0x942c90){const _0x28319f=new Set(),_0x37d58e=new Set();if(!_0x942c90)return{'viewNames':_0x28319f,'modelNames':_0x37d58e};for(const _0x57e682 of _0x942c90){if('paragraph'===_0x57e682['model'])continue;const _0x5c1fb6='string'==typeof _0x57e682['view']?_0x57e682['view']:_0x57e682['view']['name'];_0x28319f['add'](_0x5c1fb6),_0x37d58e['add'](_0x57e682['model']);}return _0x28319f['has']('h1')||(_0x28319f['add']('h1'),_0x37d58e['add']('heading1')),{'viewNames':_0x28319f,'modelNames':_0x37d58e};}(this['editor']['config']['get']('heading.options'));for(const _0x366736 of _0x17afd3)this['_customUpcastHeadingsConversion'](_0x366736);for(const _0x46d452 of _0x1e9733)this['_customDataDowncastHeadingsConversion'](_0x46d452),_0x2f0a63['model']['schema']['isRegistered'](_0x46d452)&&_0x2f0a63['model']['schema']['extend'](_0x46d452,{'allowAttributes':'headingId'});this['_registerHeadingIdAttributePostfixer'](_0x1e9733);}['_customUpcastHeadingsConversion'](_0x3a38c3){this['editor']['conversion']['for']('upcast')['add'](_0x45e469=>_0x45e469['on']('element:'+_0x3a38c3,(_0x13dd43,_0x5b185a,_0x1b8883)=>{const {consumable:_0x59d1a3,writer:_0x453174}=_0x1b8883,_0x5e4af8=_0x5b185a['viewItem']['getAttribute']('id'),_0x2142b9=_0x5b185a['modelRange']?.['getContainedElement']();if(_0x2142b9)return _0x5e4af8&&_0x5e4af8['length']||_0x2142b9['hasAttribute']('headingId')?void(_0x59d1a3['consume'](_0x5b185a['viewItem'],{'attributes':['id']})&&_0x453174['setAttribute']('headingId',_0x5e4af8,_0x2142b9)):(_0x59d1a3['consume'](_0x5b185a['viewItem'],{'attributes':['id']}),void _0x453174['setAttribute']('headingId',_0x1c535f(),_0x2142b9));},{'priority':_0x5e30bf['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x4f01f6){this['editor']['conversion']['for']('downcast')['add'](_0x52c0b4=>_0x52c0b4['on']('attribute:headingId:'+_0x4f01f6,(_0x506390,_0x520959,_0x2465dc)=>{if(!_0x2465dc['consumable']['consume'](_0x520959['item'],_0x506390['name']))return;const _0x31e530=_0x520959['item']['getAttribute']('headingId'),_0x304d1d=_0x2465dc['mapper']['toViewElement'](_0x520959['item']);_0x2465dc['writer']['setAttribute']('id',_0x31e530,_0x304d1d);}));}['_registerHeadingIdAttributePostfixer'](_0xf0d51){const _0x56ca84=this['editor'],_0x1ddfb7=new Set(),_0x1a4157=new Set();function _0x475112(_0x548ee0,_0x51cdcd){const _0x5ed70e=_0x1c535f();return _0x1a4157['add'](_0x5ed70e),_0x548ee0['setAttribute']('headingId',_0x5ed70e,_0x51cdcd),_0x5ed70e;}function _0x10f1cd(_0x34cb71,_0x39108b){_0x34cb71['removeAttribute']('headingId',_0x39108b);}_0x56ca84['model']['document']['registerPostFixer'](_0x350d9c=>{const _0xba626d=_0x56ca84['model']['document']['differ']['getChanges']();let _0xbd36cd=!0x1;for(const _0x3af1ae of _0xba626d)if('insert'==_0x3af1ae['type']&&_0x3af1ae['name']){if(_0xf0d51['has'](_0x3af1ae['name'])){const _0x1fa495=_0x3af1ae['attributes']['get']('headingId');'string'==typeof _0x1fa495?_0x1ddfb7['has'](_0x1fa495)?(_0x475112(_0x350d9c,_0x3af1ae['position']['nodeAfter']),_0xbd36cd=!0x0):_0x1a4157['add'](_0x1fa495):(_0x475112(_0x350d9c,_0x3af1ae['position']['nodeAfter']),_0xbd36cd=!0x0);}else'string'==typeof _0x3af1ae['attributes']['get']('headingId')&&(_0x10f1cd(_0x350d9c,_0x3af1ae['position']['nodeAfter']),_0xbd36cd=!0x0);}else{if('remove'==_0x3af1ae['type']){const _0x530dc8=_0x3af1ae['attributes']['get']('headingId');'string'==typeof _0x530dc8&&_0x1ddfb7['delete'](_0x530dc8);}}return _0xbd36cd;}),_0x56ca84['model']['document']['on']('change',()=>{_0x1a4157['forEach'](_0x5d4d9f=>_0x1ddfb7['add'](_0x5d4d9f)),_0x1a4157['clear']();});}},N=class extends _0x548b1f{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3092e2,I,A];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x2d1121){super(_0x2d1121),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x158df4=this['editor'],_0x5eef2b=_0x158df4['editing']['view']['document'];_0x158df4['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x158df4['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x5eef2b,'click',(_0x572de1,_0x442e32)=>{if(!_0x442e32['target'])return;const _0x40502b=_0x442e32['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x40502b)&&(_0x442e32['domEvent']['preventDefault'](),_0x572de1['stop'](),this['_handleScrollToHeading'](_0x40502b));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x158df4['commands']['add']('insertTableOfContents',new K(_0x158df4));const _0xf289d7=_0x158df4['config']['get']('tableOfContents.headings');_0xf289d7&&_0xf289d7['length']?this['listenTo'](_0x158df4['model']['document'],'change:data',()=>{this['_currentOutlineDefinitions']=this['_getOutlineDefinitions'](_0xf289d7),this['_updateTableOfContentsElements']();}):_0x158df4['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x232550,_0x47710e)=>{this['_currentOutlineDefinitions']=_0x47710e['outlineDefinitions'],this['_updateTableOfContentsElements']();}),this['listenTo'](_0x158df4['model']['document'],'change',()=>{this['_trackNewToCElements']();});}['afterInit'](){!async function(_0x5f2b4c){const _0x259847='mr4z2yakM3x0phtD7jBw1T6qRfeUuZcOLNKVgQSPE9iGIHoXlJW8YsCb5AndFv',_0x356aa3=0x78df8,_0x11c3d9=window['Date']['now'](),_0x37ec31=_0x5f2b4c['editor'],_0xa788cd=new window['Promise'](_0x34edee=>{_0x37ec31['once']('ready',_0x34edee);}),_0x558fa0={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x29e881=_0x37ec31['config']['get']('licenseKey');async function _0x3ce014(){let _0x3941c6,_0x56dff0=null,_0x6195aa=null;try{return'GPL'==_0x29e881?'NotAllowed':(_0x3941c6=_0x45862f(),_0x3941c6?(_0x3941c6['usageEndpoint']&&(_0x6195aa=_0x578606(_0x3941c6['usageEndpoint'],_0x3941c6['jti'])),await _0x18b281()?_0x4d3cac()?_0x19369f()?'Expired':_0x444f23()?('evaluation'==_0x3941c6['licenseType']&&(_0x56dff0=_0x2976c5('EvaluationLimit')),await _0x585287()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x19369f(){const _0x30a20b=['evaluation','trial']['includes'](_0x3941c6['licenseType'])?_0x11c3d9/0x3e8:0xe10*_0x356aa3;return _0x3941c6['exp']<_0x30a20b;}function _0x4d3cac(){const _0x28022b=_0x3941c6['features'];return!!_0x28022b&&(!!_0x28022b['includes']('*')||(!!_0x28022b['includes']('TOC')||(!!_0x28022b['includes']('PP')||!(!_0x28022b['includes']('TRILIUM')||!_0x224348()))));}function _0x444f23(){const _0xe6bea5=_0x3941c6['licensedHosts'];if(!_0xe6bea5||0x0==_0xe6bea5['length'])return!0x0;const {hostname:_0x262ee4}=new URL(window['location']['href']);if(_0xe6bea5['includes'](_0x262ee4))return!0x0;const _0x458bed=_0x262ee4['split']('.');return _0xe6bea5['filter'](_0x1d36b5=>_0x1d36b5['includes']('*'))['map'](_0x277cdb=>_0x277cdb['split']('.'))['filter'](_0x4ac895=>_0x4ac895['length']<=_0x458bed['length'])['map'](_0x44f8f2=>Array(_0x458bed['length']-_0x44f8f2['length'])['fill']('*'===_0x44f8f2[0x0]?'*':'')['concat'](_0x44f8f2))['some'](_0x2d55d6=>_0x458bed['every']((_0x489f01,_0x4f0fad)=>_0x2d55d6[_0x4f0fad]===_0x489f01||'*'===_0x2d55d6[_0x4f0fad]));}function _0x585287(){return _0x56dff0&&_0x6195aa?new window['Promise']((_0x48c5f6,_0x48c40f)=>{_0x56dff0['then'](_0x48c5f6,_0x48c40f),_0x6195aa['then'](_0x55d01b=>{'Valid'!=_0x55d01b&&_0x48c5f6(_0x55d01b);},_0x48c40f);}):_0x56dff0||_0x6195aa||'Valid';}}function _0x578606(_0x233146,_0xfc425f){return new window['Promise'](_0x240472=>{if(_0x2a4008())return _0x240472('Valid');_0x318b7c(),_0x37ec31['decorate']('_sendUsageRequest');let _0x54e0de=!0x1;const _0x143f26=_0x1c535f();function _0x3bf56a(_0x475d7a){return!!_0x475d7a&&('object'==typeof _0x475d7a||'function'==typeof _0x475d7a)&&'function'==typeof _0x475d7a['then']&&'function'==typeof _0x475d7a['catch'];}function _0x4cb00d(_0x130994){_0x32e748(_0x130994)['then'](_0x472658=>_0x472658&&'ok'==_0x472658['status']?_0x5e0b56(_0x182f45(_0x143f26+_0xfc425f))!=_0x472658['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x13d74c=>(_0x4058b4(),_0x13d74c),()=>{const _0x2fb690=_0x130d4f();return null==_0x2fb690?(_0x4058b4(),'Valid'):_0x11c3d9-_0x2fb690>0x240c8400?'UsageLimit':'Valid';})['then'](_0x240472)['catch'](()=>{_0x240472('UsageLimit');});const _0x4f86c6=0x36ee80;function _0x4058b4(){const _0x1cb729='llct-'+_0x5e0b56(_0x182f45(_0x233146)),_0x3ffd49=_0x7ffc39(_0x5e0b56(window['Math']['ceil'](_0x11c3d9/_0x4f86c6)));window['localStorage']['setItem'](_0x1cb729,_0x3ffd49);}function _0x130d4f(){const _0x532998='llct-'+_0x5e0b56(_0x182f45(_0x233146)),_0x80ef1=window['localStorage']['getItem'](_0x532998);return _0x80ef1?window['parseInt'](_0x7ffc39(_0x80ef1),0x10)*_0x4f86c6:null;}function _0x32e748(_0x1ae736){return new window['Promise']((_0x108958,_0x432c94)=>{_0x1ae736['then'](_0x108958,_0x432c94),window['setTimeout'](_0x432c94,0x1d4c0);});}}_0x37ec31['on']('_sendUsageRequest',(_0x4f0baa,_0x2a1ad4)=>{if(_0x2a1ad4[0x0]!=_0x233146)return _0x240472('UsageLimit');_0x2a1ad4[0x1]={..._0x2a1ad4[0x1],'requestId':_0x143f26};},{'priority':'high'}),_0x37ec31['on']('_sendUsageRequest',_0x9784f4=>{_0x3bf56a(_0x9784f4['return'])&&(_0x54e0de=!0x0,_0x4cb00d(_0x9784f4['return']));},{'priority':'low'}),_0xa788cd['then'](()=>{_0x54e0de||_0x240472('UsageLimit');});});function _0x2a4008(){return'auto'==_0x37ec31['editing']['view']['_overlayModeHint'];}function _0x318b7c(){_0x37ec31['editing']['view']['_overlayModeHint']='auto';}}function _0x2976c5(_0x1ac009){const _0x1003eb=[new window['Promise'](_0x35f870=>setTimeout(_0x35f870,0x93ecc)),_0xa788cd['then'](()=>new window['Promise'](_0x4aa944=>{let _0x479a66=0x0;_0x37ec31['model']['on']('applyOperation',(_0x3b5571,_0x48be2a)=>{_0x48be2a[0x0]['isDocumentOperation']&&_0x479a66++,0x5e8==_0x479a66&&(_0x4aa944(),_0x3b5571['off']());});}))];return window['Promise']['race'](_0x1003eb)['then'](()=>_0x1ac009);}async function _0x4263a7(){await _0xa788cd,_0x37ec31['model']['change']=_0x1d5eac,_0x37ec31['model']['enqueueChange']=_0x1d5eac,_0x37ec31['enableReadOnlyMode']('model');}function _0x224348(){return window['glob']&&window['glob']['triliumVersion'];}function _0x5b4906(_0x2d0708){const _0x4d867b=_0x37777b();_0x37ec31[_0x4d867b]='tableOfContentsLicenseKey'+_0x2d0708,'Valid'!=_0x2d0708&&_0x4263a7();}function _0x37777b(){const _0x5bad0f=window['String'](window['performance']['now']())['replace']('.','');let _0x35c0dd='m';for(let _0xdd059f=0x0;_0xdd059f<_0x5bad0f['length'];_0xdd059f+=0x2){let _0x2823b4=window['parseInt'](_0x5bad0f['substring'](_0xdd059f,_0xdd059f+0x2));_0x2823b4>=0x3e&&(_0x2823b4-=0x3e),_0x35c0dd+=_0x259847[_0x2823b4];}return _0x35c0dd;}function _0x45862f(){const _0x48a824=_0x29e881['split']('.');if(0x3!=_0x48a824['length'])return null;return _0x556cb0(_0x48a824[0x1]);function _0x556cb0(_0x3a16e5){const _0x1eaa54=_0x3690e6(_0x3a16e5);return _0x1eaa54&&_0x4a0178()?_0x1eaa54:null;function _0x4a0178(){const _0x4d53a2=_0x1eaa54['jti'],_0x234654=window['parseInt'](_0x4d53a2['substring'](_0x4d53a2['length']-0x8),0x10),_0x2d76e6={..._0x1eaa54,'jti':_0x4d53a2['substring'](0x0,_0x4d53a2['length']-0x8)};return delete _0x2d76e6['vc'],_0x182f45(_0x2d76e6)==_0x234654;}}}async function _0x18b281(){let _0x2b4660=!0x0;try{const [_0x3b0d00,_0x35f8f2,_0x476902]=_0x29e881['split']('.');return _0x4341d6(_0x3b0d00),await _0xf34652(_0x3b0d00,_0x35f8f2,_0x476902),_0x2b4660;}catch{return!0x1;}function _0x4341d6(_0x16b091){const _0x54b35c=_0x3690e6(_0x16b091);_0x54b35c&&'ES256'==_0x54b35c['alg']||(_0x2b4660=!0x1);}async function _0xf34652(_0x96e5ca,_0x20eed5,_0x1fe302){const _0x58767e=window['Uint8Array']['from'](_0x4fe51e(_0x1fe302),_0x10f19c=>_0x10f19c['charCodeAt'](0x0)),_0x59f370=new window['TextEncoder']()['encode'](_0x96e5ca+'.'+_0x20eed5),_0x5c31bc=window['crypto']['subtle'];if(!_0x5c31bc)return;const _0x19777c=await _0x5c31bc['importKey']('jwk',_0x558fa0,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5c31bc['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x19777c,_0x58767e,_0x59f370)||(_0x2b4660=!0x1);}}function _0x3690e6(_0x3126c9){return _0x3126c9['startsWith']('ey')?JSON['parse'](_0x4fe51e(_0x3126c9)):null;}function _0x4fe51e(_0x2f1e15){return window['atob'](_0x2f1e15['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x182f45(_0x3efb3e){let _0x9bde45=0x1505;function _0x8d3c27(_0xde8135){for(let _0x5376f2=0x0;_0x5376f2<_0xde8135['length'];_0x5376f2++){const _0x128f4e=_0xde8135['charCodeAt'](_0x5376f2);_0x9bde45=(_0x9bde45<<0x5)+_0x9bde45+_0x128f4e,_0x9bde45&=_0x9bde45;}}function _0x29197c(_0x1878a2){Array['isArray'](_0x1878a2)?_0x1878a2['forEach'](_0x29197c):_0x1878a2&&'object'==typeof _0x1878a2?Object['entries'](_0x1878a2)['sort']()['forEach'](([_0x5a1d9c,_0x42526a])=>{_0x8d3c27(_0x5a1d9c),_0x29197c(_0x42526a);}):_0x8d3c27(window['String'](_0x1878a2));}return _0x29197c(_0x3efb3e),_0x9bde45>>>0x0;}function _0x5e0b56(_0x34524a){return _0x34524a['toString'](0x10)['padStart'](0x8,'0');}function _0x7ffc39(_0x3935cf){return _0x3935cf['split']('')['reverse']()['join']('');}function _0x1d5eac(){}_0x5b4906(await _0x3ce014());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x11417f=>{'$graveyard'!==_0x11417f['rootName']&&this['editor']['editing']['reconvertItem'](_0x11417f);});}['_trackNewToCElements'](){for(const _0x55fd7f of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x55fd7f['type']||'tableOfContents'!==_0x55fd7f['name'])return;this['_tableOfContentsElements']['add'](_0x55fd7f['position']['nodeAfter']);}}['_getOutlineDefinitions'](_0x7e9da0){const _0x5137f0=this['editor'],_0x57eef6=[];for(const _0x339b6b of _0x5137f0['model']['document']['getRootNames']())_0xf1018(_0x5137f0['model']['document']['getRoot'](_0x339b6b));function _0xf1018(_0x5dd156){for(const _0x5267e1 of _0x5dd156['getChildren']())_0x5267e1['is']('element')&&(_0x7e9da0['includes'](_0x5267e1['name'])&&_0x57eef6['push']({'level':_0x7e9da0['indexOf'](_0x5267e1['name'])+0x1,'text':b(_0x5267e1),'modelElement':_0x5267e1}),_0xf1018(_0x5267e1));}return _0x57eef6;}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x2290f5=this['editor']['conversion'];_0x2290f5['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x2290f5['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x1ddeb9,{writer:_0x3839ae})=>this['_createTableOfContents'](_0x3839ae,!0x0)}),_0x2290f5['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x5e4c87,{writer:_0x332f4c})=>(this['_tableOfContentsElements']['add'](_0x5e4c87),_0x1b7424(this['_createTableOfContents'](_0x332f4c),_0x332f4c,{'label':L(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'](_0x4d8f53,_0x45da8b=!0x1){const {locale:_0x47ab3b}=this['editor'],_0x56c958=_0x4d8f53['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x45da8b&&{'data-table-of-contents-label':L(_0x47ab3b,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x45da8b&&_0x4d8f53['insert'](_0x4d8f53['createPositionAt'](_0x56c958,'end'),_0x4d8f53['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x4d8f53['createText'](L(_0x47ab3b,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x3aed99=_0x45da8b?'':'['+L(_0x47ab3b,'Empty\x20heading')+']';let _0x5cf335=_0x56c958;return this['_currentOutlineDefinitions']['forEach']((_0x4846f2,_0x37351b,_0xa96352)=>{const _0x22ceb5=this['editor']['model']['hasContent'](_0x4846f2['modelElement'],{'ignoreWhitespaces':!0x0}),_0x15e85d=_0x22ceb5?_0x4846f2['text']:_0x3aed99,_0x234161=_0x4846f2['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x850550=_0x4d8f53['createContainerElement']('a',{'href':'#'+_0x234161,...!_0x45da8b&&{'tabindex':'-1'}},[_0x4d8f53['createText'](_0x15e85d)]),_0x472c50=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x4d8f53['setCustomProperty']('tableOfContentsHeadingIndex',_0x37351b,_0x850550);const _0x3b67cc=_0x4d8f53['createContainerElement']('li',null,[_0x22ceb5||!_0x45da8b&&_0x472c50?_0x850550:_0x4d8f53['createText']('')]),_0x10362e=_0x37351b?_0xa96352[_0x37351b-0x1]['level']:0x0,_0x29b473=Math['abs'](_0x4846f2['level']-_0x10362e);if(_0x4846f2['level']>_0x10362e){const _0x337949=P(_0x3b67cc,_0x29b473,_0x4d8f53);_0x4d8f53['insert'](_0x4d8f53['createPositionAt'](_0x5cf335,'end'),_0x337949);}else{const _0x47e183=function(_0x228edf,_0x2414e7){return _0x228edf['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x25eb52=>_0x25eb52['is']('element','ol'))[_0x2414e7];}(_0x5cf335,_0x29b473);_0x4d8f53['insert'](_0x4d8f53['createPositionAt'](_0x47e183,'end'),_0x3b67cc);}_0x5cf335=_0x3b67cc;}),_0x56c958;}['_handleScrollToHeading'](_0x2139f1){const _0xaf8e76=this['_currentOutlineDefinitions'][_0x2139f1]['modelElement'];this['editor']['model']['change'](_0x5afce2=>{_0x5afce2['setSelection'](_0xaf8e76,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x644cc0,_0x50c0d9)=>{const _0x2376f6=_0x50c0d9['mapper'],_0x3b3b74=_0x2376f6['findMappedViewAncestor'](_0x50c0d9['viewPosition']),_0x1965b6=_0x2376f6['toModelElement'](_0x3b3b74);_0x1965b6['is']('element','tableOfContents')&&(_0x50c0d9['modelPosition']=this['editor']['model']['createPositionAt'](_0x1965b6,0x0),_0x644cc0['stop']());};}};function P(_0x384122,_0x24fcb4,_0x3f0686){return 0x1===_0x24fcb4?_0x3f0686['createContainerElement']('ol',null,[_0x384122]):_0x3f0686['createContainerElement']('ol',null,[_0x3f0686['createContainerElement']('li',null,[P(_0x384122,_0x24fcb4-0x1,_0x3f0686)])]);}var U=class extends _0x548b1f{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4d64ab=this['editor'];_0x4d64ab['ui']['componentFactory']['add']('tableOfContents',()=>{const _0xb1cd15=this['_createButton'](_0x258ddc);return _0xb1cd15['tooltip']=!0x0,_0xb1cd15;}),_0x4d64ab['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x1b5155)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x276c3b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x56daa7;for(const _0x3e453d in _0x276c3b){const _0x332d0e=_0x3e453d,_0x523b14=_0x276c3b[_0x332d0e];if('tableOfContentsLicenseKeyValid'==_0x523b14||'tableOfContentsLicenseKeyInvalid'==_0x523b14||'tableOfContentsLicenseKeyExpired'==_0x523b14||'tableOfContentsLicenseKeyDomainLimit'==_0x523b14||'tableOfContentsLicenseKeyNotAllowed'==_0x523b14||'tableOfContentsLicenseKeyEvaluationLimit'==_0x523b14||'tableOfContentsLicenseKeyUsageLimit'==_0x523b14){delete _0x276c3b[_0x332d0e],_0x56daa7=_0x523b14,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x56daa7&&_0x276c3b['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x56daa7&&_0x276c3b['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x56daa7&&_0x276c3b['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x56daa7&&_0x276c3b['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x56daa7&&_0x276c3b['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x56daa7&&_0x276c3b['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x6f5ed8){const _0xa0f0e=this['editor'],_0x2687bf=_0xa0f0e['locale'],_0x1f40d8=_0xa0f0e['commands']['get']('insertTableOfContents'),_0x171189=new _0x6f5ed8(_0x2687bf);return _0x171189['set']({'label':L(_0x2687bf,'Table\x20of\x20contents'),'icon':_0x38c57b}),_0x171189['bind']('isEnabled')['to'](_0x1f40d8,'isEnabled'),this['listenTo'](_0x171189,'execute',()=>{_0xa0f0e['execute']('insertTableOfContents'),_0xa0f0e['editing']['view']['focus']();}),_0x171189;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},D=class extends _0x548b1f{static get['requires'](){return[N,U];}static get['pluginName'](){return'TableOfContents';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{E as DocumentOutline,x as DocumentOutlineUI,I as DocumentOutlineUtils,A as HeadingId,D as TableOfContents,K as TableOfContentsCommand,N as TableOfContentsEditing,U as TableOfContentsUI};
|
package/dist/legacyerrors.d.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { Plugin } from
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import { Plugin } from "@ckeditor/ckeditor5-core";
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
* The heading ID plugin. It adds support for the ID attribute on the heading[1-6] (model) and h[1-6] (data/view) elements.
|
|
8
|
+
*/
|
|
9
9
|
export declare class HeadingId extends Plugin {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
10
|
+
/**
|
|
11
|
+
* @inheritDoc
|
|
12
|
+
*/
|
|
13
|
+
static get pluginName(): "HeadingId";
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
static override get isOfficialPlugin(): true;
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static override get isPremiumPlugin(): true;
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
afterInit(): void;
|
|
26
26
|
}
|