@ckeditor/ckeditor5-document-outline 48.2.0 → 48.3.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/dist/augmentation.d.ts +31 -31
  2. package/dist/documentoutline/documentoutlineui.d.ts +43 -43
  3. package/dist/documentoutline/documentoutlineutils.d.ts +58 -60
  4. package/dist/documentoutline/ui/documentoutlineitemview.d.ts +43 -43
  5. package/dist/documentoutline/ui/documentoutlineview.d.ts +49 -49
  6. package/dist/documentoutline/utils.d.ts +11 -11
  7. package/dist/documentoutline.d.ts +91 -91
  8. package/dist/index.d.ts +14 -14
  9. package/dist/index.js +1 -1
  10. package/dist/legacyerrors.d.ts +0 -4
  11. package/dist/tableofcontents/headingid.d.ts +22 -22
  12. package/dist/tableofcontents/tableofcontentscommand.d.ts +17 -17
  13. package/dist/tableofcontents/tableofcontentsediting.d.ts +40 -40
  14. package/dist/tableofcontents/tableofcontentsui.d.ts +23 -23
  15. package/dist/tableofcontents.d.ts +68 -68
  16. package/dist/translations/af.js +1 -1
  17. package/dist/translations/af.umd.js +1 -1
  18. package/dist/translations/ar.js +1 -1
  19. package/dist/translations/ar.umd.js +1 -1
  20. package/dist/translations/ast.js +1 -1
  21. package/dist/translations/ast.umd.js +1 -1
  22. package/dist/translations/az.js +1 -1
  23. package/dist/translations/az.umd.js +1 -1
  24. package/dist/translations/be.js +1 -1
  25. package/dist/translations/be.umd.js +1 -1
  26. package/dist/translations/bg.js +1 -1
  27. package/dist/translations/bg.umd.js +1 -1
  28. package/dist/translations/bn.js +1 -1
  29. package/dist/translations/bn.umd.js +1 -1
  30. package/dist/translations/bs.js +1 -1
  31. package/dist/translations/bs.umd.js +1 -1
  32. package/dist/translations/ca.js +1 -1
  33. package/dist/translations/ca.umd.js +1 -1
  34. package/dist/translations/cs.js +1 -1
  35. package/dist/translations/cs.umd.js +1 -1
  36. package/dist/translations/da.js +1 -1
  37. package/dist/translations/da.umd.js +1 -1
  38. package/dist/translations/de-ch.js +1 -1
  39. package/dist/translations/de-ch.umd.js +1 -1
  40. package/dist/translations/de.js +1 -1
  41. package/dist/translations/de.umd.js +1 -1
  42. package/dist/translations/el.js +1 -1
  43. package/dist/translations/el.umd.js +1 -1
  44. package/dist/translations/en-au.js +1 -1
  45. package/dist/translations/en-au.umd.js +1 -1
  46. package/dist/translations/en-gb.js +1 -1
  47. package/dist/translations/en-gb.umd.js +1 -1
  48. package/dist/translations/en.js +1 -1
  49. package/dist/translations/en.umd.js +1 -1
  50. package/dist/translations/eo.js +1 -1
  51. package/dist/translations/eo.umd.js +1 -1
  52. package/dist/translations/es-co.js +1 -1
  53. package/dist/translations/es-co.umd.js +1 -1
  54. package/dist/translations/es.js +1 -1
  55. package/dist/translations/es.umd.js +1 -1
  56. package/dist/translations/et.js +1 -1
  57. package/dist/translations/et.umd.js +1 -1
  58. package/dist/translations/eu.js +1 -1
  59. package/dist/translations/eu.umd.js +1 -1
  60. package/dist/translations/fa.js +1 -1
  61. package/dist/translations/fa.umd.js +1 -1
  62. package/dist/translations/fi.js +1 -1
  63. package/dist/translations/fi.umd.js +1 -1
  64. package/dist/translations/fr.js +1 -1
  65. package/dist/translations/fr.umd.js +1 -1
  66. package/dist/translations/gl.js +1 -1
  67. package/dist/translations/gl.umd.js +1 -1
  68. package/dist/translations/gu.js +1 -1
  69. package/dist/translations/gu.umd.js +1 -1
  70. package/dist/translations/he.js +1 -1
  71. package/dist/translations/he.umd.js +1 -1
  72. package/dist/translations/hi.js +1 -1
  73. package/dist/translations/hi.umd.js +1 -1
  74. package/dist/translations/hr.js +1 -1
  75. package/dist/translations/hr.umd.js +1 -1
  76. package/dist/translations/hu.js +1 -1
  77. package/dist/translations/hu.umd.js +1 -1
  78. package/dist/translations/hy.js +1 -1
  79. package/dist/translations/hy.umd.js +1 -1
  80. package/dist/translations/id.js +1 -1
  81. package/dist/translations/id.umd.js +1 -1
  82. package/dist/translations/it.js +1 -1
  83. package/dist/translations/it.umd.js +1 -1
  84. package/dist/translations/ja.js +1 -1
  85. package/dist/translations/ja.umd.js +1 -1
  86. package/dist/translations/jv.js +1 -1
  87. package/dist/translations/jv.umd.js +1 -1
  88. package/dist/translations/kk.js +1 -1
  89. package/dist/translations/kk.umd.js +1 -1
  90. package/dist/translations/km.js +1 -1
  91. package/dist/translations/km.umd.js +1 -1
  92. package/dist/translations/kn.js +1 -1
  93. package/dist/translations/kn.umd.js +1 -1
  94. package/dist/translations/ko.js +1 -1
  95. package/dist/translations/ko.umd.js +1 -1
  96. package/dist/translations/ku.js +1 -1
  97. package/dist/translations/ku.umd.js +1 -1
  98. package/dist/translations/lt.js +1 -1
  99. package/dist/translations/lt.umd.js +1 -1
  100. package/dist/translations/lv.js +1 -1
  101. package/dist/translations/lv.umd.js +1 -1
  102. package/dist/translations/ms.js +1 -1
  103. package/dist/translations/ms.umd.js +1 -1
  104. package/dist/translations/nb.js +1 -1
  105. package/dist/translations/nb.umd.js +1 -1
  106. package/dist/translations/ne.js +1 -1
  107. package/dist/translations/ne.umd.js +1 -1
  108. package/dist/translations/nl.js +1 -1
  109. package/dist/translations/nl.umd.js +1 -1
  110. package/dist/translations/no.js +1 -1
  111. package/dist/translations/no.umd.js +1 -1
  112. package/dist/translations/oc.js +1 -1
  113. package/dist/translations/oc.umd.js +1 -1
  114. package/dist/translations/pl.js +1 -1
  115. package/dist/translations/pl.umd.js +1 -1
  116. package/dist/translations/pt-br.js +1 -1
  117. package/dist/translations/pt-br.umd.js +1 -1
  118. package/dist/translations/pt.js +1 -1
  119. package/dist/translations/pt.umd.js +1 -1
  120. package/dist/translations/ro.js +1 -1
  121. package/dist/translations/ro.umd.js +1 -1
  122. package/dist/translations/ru.js +1 -1
  123. package/dist/translations/ru.umd.js +1 -1
  124. package/dist/translations/si.js +1 -1
  125. package/dist/translations/si.umd.js +1 -1
  126. package/dist/translations/sk.js +1 -1
  127. package/dist/translations/sk.umd.js +1 -1
  128. package/dist/translations/sl.js +1 -1
  129. package/dist/translations/sl.umd.js +1 -1
  130. package/dist/translations/sq.js +1 -1
  131. package/dist/translations/sq.umd.js +1 -1
  132. package/dist/translations/sr-latn.js +1 -1
  133. package/dist/translations/sr-latn.umd.js +1 -1
  134. package/dist/translations/sr.js +1 -1
  135. package/dist/translations/sr.umd.js +1 -1
  136. package/dist/translations/sv.js +1 -1
  137. package/dist/translations/sv.umd.js +1 -1
  138. package/dist/translations/th.js +1 -1
  139. package/dist/translations/th.umd.js +1 -1
  140. package/dist/translations/ti.js +1 -1
  141. package/dist/translations/ti.umd.js +1 -1
  142. package/dist/translations/tk.js +1 -1
  143. package/dist/translations/tk.umd.js +1 -1
  144. package/dist/translations/tr.js +1 -1
  145. package/dist/translations/tr.umd.js +1 -1
  146. package/dist/translations/tt.js +1 -1
  147. package/dist/translations/tt.umd.js +1 -1
  148. package/dist/translations/ug.js +1 -1
  149. package/dist/translations/ug.umd.js +1 -1
  150. package/dist/translations/uk.js +1 -1
  151. package/dist/translations/uk.umd.js +1 -1
  152. package/dist/translations/ur.js +1 -1
  153. package/dist/translations/ur.umd.js +1 -1
  154. package/dist/translations/uz.js +1 -1
  155. package/dist/translations/uz.umd.js +1 -1
  156. package/dist/translations/vi.js +1 -1
  157. package/dist/translations/vi.umd.js +1 -1
  158. package/dist/translations/zh-cn.js +1 -1
  159. package/dist/translations/zh-cn.umd.js +1 -1
  160. package/dist/translations/zh.js +1 -1
  161. package/dist/translations/zh.umd.js +1 -1
  162. package/dist/utils/common-translations.d.ts +6 -6
  163. package/package.json +8 -8
@@ -1,99 +1,99 @@
1
1
  /**
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
- */
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
- * @module document-outline/documentoutline
7
- * @publicApi
8
- */
9
- import { Plugin } from '@ckeditor/ckeditor5-core';
10
- import { DocumentOutlineUtils } from './documentoutline/documentoutlineutils.js';
11
- import { DocumentOutlineUI } from './documentoutline/documentoutlineui.js';
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
- * The document outline feature.
14
- * It allows for an easy access to a predefined list of headings in the document.
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
- * @inheritDoc
19
- */
20
- static get requires(): readonly [typeof DocumentOutlineUtils, typeof DocumentOutlineUI];
21
- /**
22
- * @inheritDoc
23
- */
24
- static get pluginName(): "DocumentOutline";
25
- /**
26
- * @inheritDoc
27
- */
28
- static get isOfficialPlugin(): true;
29
- /**
30
- * @inheritDoc
31
- */
32
- static get isPremiumPlugin(): true;
33
- init(): void;
34
- /**
35
- * @inheritDoc
36
- */
37
- destroy(): void;
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
- * 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
- */
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
- * 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;
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
- * @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
- */
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
- * @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';
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 _0x4ec52c,Plugin as _0x464a3a}from'@ckeditor/ckeditor5-core';import{debounce as _0x31503c,throttle as _0x586193}from'es-toolkit/compat';import{ModelText as _0x345c52,ModelTreeWalker as _0x45f338}from'@ckeditor/ckeditor5-engine';import{CKEditorError as _0x16bb33,Rect as _0x23e40b,diff as _0x15f264,diffToChanges as _0x3cace0,global as _0x565fe4,priorities as _0x15bf35,scrollAncestorsToShowTarget as _0x548d1e,uid as _0x8d5b21}from'@ckeditor/ckeditor5-utils';import{ButtonView as _0x123b34,MenuBarMenuListItemButtonView as _0x3b1daf,View as _0x2529f8}from'@ckeditor/ckeditor5-ui';import{Widget as _0x1bc01e,toWidget as _0x49ab46}from'@ckeditor/ckeditor5-widget';import{IconTableOfContents as _0x204e27}from'@ckeditor/ckeditor5-icons';function b(_0x4f7808){let _0x37531c='';for(const _0x1760b1 of _0x4f7808['getChildren']())_0x1760b1 instanceof _0x345c52&&(_0x37531c+=_0x1760b1['data']);return _0x37531c;}var I=class extends _0x464a3a{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x158f6e=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x2aff7a=[];_0x158f6e['model']['document']['on']('change',_0x31503c(()=>{const _0x4f2d7e=_0x2aff7a;_0x2aff7a=this['_getOutlineDefinitions']();const _0x5d226b=_0x3cace0(_0x15f264(_0x4f2d7e,_0x2aff7a,(_0x32ac72,_0x3c0231)=>_0x32ac72['level']===_0x3c0231['level']&&_0x32ac72['text']===_0x3c0231['text']&&_0x32ac72['modelElement']===_0x3c0231['modelElement']),_0x2aff7a),_0x34305d=this['_getActiveHeading'](),_0x309808=_0x2aff7a['findIndex'](_0x580503=>_0x580503['modelElement']===_0x34305d);_0x5d226b['length']&&this['fire']('change',{'outlineDefinitions':_0x2aff7a,'activeItemIndex':_0x309808,'outlineChanges':_0x5d226b}),this['fire']('activeItemIndex',{'index':_0x309808});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x33afde=this['editor'],_0x3d668e=[],_0x3f5235=this['_headingNames'];for(const _0x3c5f38 of _0x33afde['model']['document']['getRootNames']())_0x81c3b4(_0x33afde['model']['document']['getRoot'](_0x3c5f38));function _0x81c3b4(_0x46a43c){for(const _0x38f91e of _0x46a43c['getChildren']())_0x38f91e['is']('element')&&(_0x3f5235['includes'](_0x38f91e['name'])&&_0x3d668e['push']({'level':_0x3f5235['indexOf'](_0x38f91e['name'])+0x1,'text':b(_0x38f91e),'modelElement':_0x38f91e}),_0x81c3b4(_0x38f91e));}return _0x3d668e;}['_getActiveHeading'](){const _0x2cb3ac=new _0x45f338({'direction':'backward','startPosition':this['editor']['model']['document']['selection']['getFirstPosition']()});for(const _0x48d5c5 of _0x2cb3ac)if(_0x48d5c5['item']['is']('element')&&this['_headingNames']['includes'](_0x48d5c5['item']['name']))return _0x48d5c5['item'];}['_getHeadingNames'](){const _0x33aec8=this['editor']['config']['get']('documentOutline.headings');return _0x33aec8||function(_0x39ee30){const _0x482390=_0x39ee30['config']['get']('heading.options');return _0x482390?_0x482390['reduce']((_0x2cb0b7,_0x4706f8)=>('paragraph'!==_0x4706f8['model']&&_0x2cb0b7['push'](_0x4706f8['model']),_0x2cb0b7),[]):_0x39ee30['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x2e1e6c=this['editor'],_0xd29d1e=['h1','h2','h3','h4','h5','h6'],_0x33b4ea=[];for(const _0x102dd1 of _0xd29d1e){const _0x5a7128=_0x2e1e6c['editing']['view']['domConverter']['domToView'](document['createElement'](_0x102dd1)),_0x383a66=_0x2e1e6c['data']['toModel'](_0x5a7128)['getChild'](0x0);_0x383a66?.['is']('element')&&_0x33b4ea['push'](_0x383a66['name']);}this['_headingNames']=_0x33b4ea;}};function L(_0x3582dc,_0x4d1456){const t=_0x3582dc['t'];switch(_0x4d1456){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 _0x4d1456;}}var C=class extends _0x2529f8{constructor(_0x180149,_0x40dcb2=!0x1){super(_0x180149);const _0x2d7794=this['bindTemplate'],_0x64f8d6=_0x40dcb2?'['+L(_0x180149,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x1f06f4=>!_0x1f06f4),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x2d7794['to']('level',_0x5723e2=>'ck-document-outline__item_level-'+_0x5723e2),_0x2d7794['if']('isActive','ck-document-outline__item_active'),_0x2d7794['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x2d7794['to']('text')},'children':[{'text':_0x2d7794['to']('text',_0x190e6f=>_0x190e6f||_0x64f8d6)}],'on':{'click':_0x2d7794['to']('click')}});}},_=class extends _0x2529f8{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x188a48,_0x4a52eb=!0x1,_0x3a82f8){super(_0x188a48),this['showEmptyHeadingText']=_0x4a52eb,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x3a82f8,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x44714f,_0x1cd6f6,_0x5ce786,_0x26e9c7)=>{this['_setActiveItem'](_0x26e9c7,_0x5ce786);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x188a48['contentLanguageDirection'],'data-document-outline-empty-placeholder':L(_0x188a48,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x536323){_0x536323['forEach'](_0x5925e9=>{'insert'==_0x5925e9['type']?this['_insertItem'](_0x5925e9['index'],..._0x5925e9['values']):'delete'==_0x5925e9['type']&&this['_deleteItem'](_0x5925e9['index'],_0x5925e9['howMany']);});}['_setActiveItem'](_0x1ed1ac,_0x225500){if(-0x1!==_0x1ed1ac){const _0x434c3c=this['items']['get'](_0x1ed1ac);_0x434c3c&&(_0x434c3c['isActive']=!0x1);}-0x1!==_0x225500&&(this['items']['get'](_0x225500)['isActive']=!0x0,this['_scrollToItem'](_0x225500));}['_insertItem'](_0x4365b9,..._0x45e6f2){const _0xd9b163=_0x45e6f2['map']((_0x5834ed,_0x192598)=>{const _0x59ff30=new C(this['locale'],this['showEmptyHeadingText']);return _0x59ff30['text']=_0x5834ed['text'],_0x59ff30['level']=_0x5834ed['level'],_0x4365b9+_0x192598===this['activeItemIndex']&&(_0x59ff30['isActive']=!0x0),_0x59ff30;});this['items']['addMany'](_0xd9b163,_0x4365b9);}['_deleteItem'](_0x29087d,_0x514800){do{this['items']['remove'](_0x29087d);}while(--_0x514800);}['_handleItemClick'](_0x577628){const _0x2a9d1f=this['items']['getIndex'](_0x577628['source']);this['fire']('itemSelected',_0x2a9d1f);}['_scrollToItem'](_0x31bbad){_0x548d1e(this['items']['get'](_0x31bbad)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}},x=class extends _0x464a3a{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ee879){super(_0x3ee879),this['view']=new _(_0x3ee879['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0x586193(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x1b31d3=this['editor'],_0x5628ea=_0x1b31d3['plugins']['get']('DocumentOutlineUtils');let _0x161689=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x1b31d3['config']['get']('documentOutline.container'))throw new _0x16bb33('document-outline-container-not-provided',{'editor':_0x1b31d3});_0x1b31d3['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x5628ea['on']('change',this['_handleOutlineChange']['bind'](this)),_0x5628ea['on']('activeItemIndex',(_0x3ffd72,{index:_0x24e63d})=>this['_setActiveViewItem'](_0x24e63d)),this['view']['on']('itemSelected',(_0x14c941,_0x2642a4)=>{_0x161689=!0x0,this['_handleItemSelected'](_0x2642a4);}),this['view']['listenTo'](_0x565fe4['document'],'scroll',()=>{_0x161689?_0x161689=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x565fe4['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0x53a625){const _0x53079c='aWxlPG0A3CDdHBsZEqwULojOrgMXVTRvu1bI2487ptzJKQeihfNkYS9n6y5mcF',_0x12b76c=0x78de0,_0xef4dc5=window['Date']['now'](),_0x559dab=_0x53a625['editor'],_0x6b633=new window['Promise'](_0x3f0af5=>{_0x559dab['once']('ready',_0x3f0af5);}),_0x472d5d={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x90ae36=_0x559dab['config']['get']('licenseKey');async function _0x215e55(){let _0x24e8d9,_0x34cfa6=null,_0x5c3f85=null;try{return'GPL'==_0x90ae36?'NotAllowed':(_0x24e8d9=_0x12b978(),_0x24e8d9?(_0x24e8d9['usageEndpoint']&&(_0x5c3f85=_0x1d3515(_0x24e8d9['usageEndpoint'],_0x24e8d9['jti'])),await _0x7a1403()?_0x190048()?_0x2ce7b3()?'Expired':_0x577c40()?('evaluation'==_0x24e8d9['licenseType']&&(_0x34cfa6=_0x25a7f8('EvaluationLimit')),await _0xee395a()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x2ce7b3(){const _0x15bab3=['evaluation','trial']['includes'](_0x24e8d9['licenseType'])?_0xef4dc5/0x3e8:0xe10*_0x12b76c;return _0x24e8d9['exp']<_0x15bab3;}function _0x190048(){const _0x56b385=_0x24e8d9['features'];return!!_0x56b385&&(!!_0x56b385['includes']('*')||(!!_0x56b385['includes']('DO')||(!!_0x56b385['includes']('PP')||!(!_0x56b385['includes']('TRILIUM')||!_0x5dd56b()))));}function _0x577c40(){const _0x5230b5=_0x24e8d9['licensedHosts'];if(!_0x5230b5||0x0==_0x5230b5['length'])return!0x0;const {hostname:_0x1c36cb}=new URL(window['location']['href']);if(_0x5230b5['includes'](_0x1c36cb))return!0x0;const _0x46e464=_0x1c36cb['split']('.');return _0x5230b5['filter'](_0x19bffd=>_0x19bffd['includes']('*'))['map'](_0xe8b4d4=>_0xe8b4d4['split']('.'))['filter'](_0x2f796e=>_0x2f796e['length']<=_0x46e464['length'])['map'](_0x4b692e=>Array(_0x46e464['length']-_0x4b692e['length'])['fill']('*'===_0x4b692e[0x0]?'*':'')['concat'](_0x4b692e))['some'](_0x375dba=>_0x46e464['every']((_0x10aa41,_0x2be36b)=>_0x375dba[_0x2be36b]===_0x10aa41||'*'===_0x375dba[_0x2be36b]));}function _0xee395a(){return _0x34cfa6&&_0x5c3f85?new window['Promise']((_0x23023b,_0x32e948)=>{_0x34cfa6['then'](_0x23023b,_0x32e948),_0x5c3f85['then'](_0x38d32d=>{'Valid'!=_0x38d32d&&_0x23023b(_0x38d32d);},_0x32e948);}):_0x34cfa6||_0x5c3f85||'Valid';}}function _0x1d3515(_0x22fa06,_0x4ea46d){return new window['Promise'](_0x36a02d=>{if(_0x2ea93f())return _0x36a02d('Valid');_0x486396(),_0x559dab['decorate']('_sendUsageRequest');let _0x41d2a4=!0x1;const _0x2cdffc=_0x8d5b21();function _0x1a276f(_0x5c6d12){return!!_0x5c6d12&&('object'==typeof _0x5c6d12||'function'==typeof _0x5c6d12)&&'function'==typeof _0x5c6d12['then']&&'function'==typeof _0x5c6d12['catch'];}function _0x52b6a4(_0x30eabf){_0x2f95d8(_0x30eabf)['then'](_0x89604a=>_0x89604a&&'ok'==_0x89604a['status']?_0x294239(_0x191e04(_0x2cdffc+_0x4ea46d))!=_0x89604a['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x2e2da4=>(_0xace23(),_0x2e2da4),()=>{const _0x112278=_0x5e453d();return null==_0x112278?(_0xace23(),'Valid'):_0xef4dc5-_0x112278>0x240c8400?'UsageLimit':'Valid';})['then'](_0x36a02d)['catch'](()=>{_0x36a02d('UsageLimit');});const _0x27b589=0x36ee80;function _0xace23(){const _0x46f78e='llct-'+_0x294239(_0x191e04(_0x22fa06)),_0x4684f8=_0x1c351d(_0x294239(window['Math']['ceil'](_0xef4dc5/_0x27b589)));window['localStorage']['setItem'](_0x46f78e,_0x4684f8);}function _0x5e453d(){const _0x337b6c='llct-'+_0x294239(_0x191e04(_0x22fa06)),_0x4fa50b=window['localStorage']['getItem'](_0x337b6c);return _0x4fa50b?window['parseInt'](_0x1c351d(_0x4fa50b),0x10)*_0x27b589:null;}function _0x2f95d8(_0x3658e0){return new window['Promise']((_0x2bb8bb,_0x22fe70)=>{_0x3658e0['then'](_0x2bb8bb,_0x22fe70),window['setTimeout'](_0x22fe70,0x1d4c0);});}}_0x559dab['on']('_sendUsageRequest',(_0x4436a7,_0x16dd80)=>{if(_0x16dd80[0x0]!=_0x22fa06)return _0x36a02d('UsageLimit');_0x16dd80[0x1]={..._0x16dd80[0x1],'requestId':_0x2cdffc};},{'priority':'high'}),_0x559dab['on']('_sendUsageRequest',_0x325c09=>{_0x1a276f(_0x325c09['return'])&&(_0x41d2a4=!0x0,_0x52b6a4(_0x325c09['return']));},{'priority':'low'}),_0x6b633['then'](()=>{_0x41d2a4||_0x36a02d('UsageLimit');});});function _0x2ea93f(){return'auto'==_0x559dab['editing']['view']['_overlayModeHint'];}function _0x486396(){_0x559dab['editing']['view']['_overlayModeHint']='auto';}}function _0x25a7f8(_0x1d4890){const _0x385dc2=[new window['Promise'](_0xa07dce=>setTimeout(_0xa07dce,0x93ecc)),_0x6b633['then'](()=>new window['Promise'](_0x563986=>{let _0x11a948=0x0;_0x559dab['model']['on']('applyOperation',(_0x5c2e14,_0x44768f)=>{_0x44768f[0x0]['isDocumentOperation']&&_0x11a948++,0x5e8==_0x11a948&&(_0x563986(),_0x5c2e14['off']());});}))];return window['Promise']['race'](_0x385dc2)['then'](()=>_0x1d4890);}async function _0x5d0062(){await _0x6b633,_0x559dab['model']['change']=_0x27977f,_0x559dab['model']['enqueueChange']=_0x27977f,_0x559dab['enableReadOnlyMode']('model');}function _0x5dd56b(){return window['glob']&&window['glob']['triliumVersion'];}function _0x4412b0(_0x2bde25){const _0x513067=_0x50cfca();_0x559dab[_0x513067]='documentOutlineLicenseKey'+_0x2bde25,'Valid'!=_0x2bde25&&_0x5d0062();}function _0x50cfca(){const _0x1693d6=window['String'](window['performance']['now']())['replace']('.','');let _0x1a3bf0='a';for(let _0x3b40ec=0x0;_0x3b40ec<_0x1693d6['length'];_0x3b40ec+=0x2){let _0x51007d=window['parseInt'](_0x1693d6['substring'](_0x3b40ec,_0x3b40ec+0x2));_0x51007d>=0x3e&&(_0x51007d-=0x3e),_0x1a3bf0+=_0x53079c[_0x51007d];}return _0x1a3bf0;}function _0x12b978(){const _0x50239c=_0x90ae36['split']('.');if(0x3!=_0x50239c['length'])return null;return _0x424571(_0x50239c[0x1]);function _0x424571(_0x408bcc){const _0x4b5c7b=_0x4e29a2(_0x408bcc);return _0x4b5c7b&&_0x3d773c()?_0x4b5c7b:null;function _0x3d773c(){const _0x209b37=_0x4b5c7b['jti'],_0x324bbd=window['parseInt'](_0x209b37['substring'](_0x209b37['length']-0x8),0x10),_0x44e8ef={..._0x4b5c7b,'jti':_0x209b37['substring'](0x0,_0x209b37['length']-0x8)};return delete _0x44e8ef['vc'],_0x191e04(_0x44e8ef)==_0x324bbd;}}}async function _0x7a1403(){let _0xa88012=!0x0;try{const [_0x511a57,_0x398e8b,_0x5b6dbc]=_0x90ae36['split']('.');return _0xf6ace8(_0x511a57),await _0x44868d(_0x511a57,_0x398e8b,_0x5b6dbc),_0xa88012;}catch{return!0x1;}function _0xf6ace8(_0x3df43f){const _0xba5590=_0x4e29a2(_0x3df43f);_0xba5590&&'ES256'==_0xba5590['alg']||(_0xa88012=!0x1);}async function _0x44868d(_0x5932a2,_0x401b0d,_0x51af8c){const _0x38b395=window['Uint8Array']['from'](_0x5d26b3(_0x51af8c),_0x2b1481=>_0x2b1481['charCodeAt'](0x0)),_0x2260c3=new window['TextEncoder']()['encode'](_0x5932a2+'.'+_0x401b0d),_0x12d3c5=window['crypto']['subtle'];if(!_0x12d3c5)return;const _0x4da3d6=await _0x12d3c5['importKey']('jwk',_0x472d5d,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x12d3c5['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x4da3d6,_0x38b395,_0x2260c3)||(_0xa88012=!0x1);}}function _0x4e29a2(_0x523d2c){return _0x523d2c['startsWith']('ey')?JSON['parse'](_0x5d26b3(_0x523d2c)):null;}function _0x5d26b3(_0x3bc502){return window['atob'](_0x3bc502['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x191e04(_0x305d64){let _0x109900=0x1505;function _0x27edd3(_0x5ba319){for(let _0x21eb32=0x0;_0x21eb32<_0x5ba319['length'];_0x21eb32++){const _0x18c32f=_0x5ba319['charCodeAt'](_0x21eb32);_0x109900=(_0x109900<<0x5)+_0x109900+_0x18c32f,_0x109900&=_0x109900;}}function _0x4e16e4(_0x34f70b){Array['isArray'](_0x34f70b)?_0x34f70b['forEach'](_0x4e16e4):_0x34f70b&&'object'==typeof _0x34f70b?Object['entries'](_0x34f70b)['sort']()['forEach'](([_0x3852d2,_0x2af0c7])=>{_0x27edd3(_0x3852d2),_0x4e16e4(_0x2af0c7);}):_0x27edd3(window['String'](_0x34f70b));}return _0x4e16e4(_0x305d64),_0x109900>>>0x0;}function _0x294239(_0x5ccd6e){return _0x5ccd6e['toString'](0x10)['padStart'](0x8,'0');}function _0x1c351d(_0x2bac5e){return _0x2bac5e['split']('')['reverse']()['join']('');}function _0x27977f(){}_0x4412b0(await _0x215e55());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x41bf0c,{outlineDefinitions:_0x487e4c,outlineChanges:_0x490228}){this['_currentOutlineDefinitions']=_0x487e4c,this['view']['sync'](_0x490228);}['_setActiveViewItem'](_0x424889){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x424889]&&(this['view']['activeItemIndex']=_0x424889);}['_handleItemSelected'](_0x5d367c){const _0x3efad1=this['_currentOutlineDefinitions'][_0x5d367c]['modelElement'];this['editor']['model']['change'](_0x391c06=>{_0x391c06['setSelection'](_0x3efad1,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x5d367c);}['_updateActiveDefinitionOnViewportChange'](){const _0x38eca3=this['editor'];let _0x5159c5;for(const _0x2dde65 of _0x38eca3['model']['document']['getRootNames']()){const _0x3e34b6=_0x38eca3['editing']['view']['getDomRoot'](_0x2dde65),_0x4f1564=_0x3e34b6&&new _0x23e40b(_0x3e34b6)['getVisible']();if(_0x4f1564){const _0xbd4202=new _0x23e40b(_0x565fe4['window'])['getIntersection'](_0x4f1564);_0xbd4202&&(_0x5159c5=_0xbd4202['top']+0.25*_0xbd4202['height']);}}if(void 0x0===_0x5159c5)return;const _0x1674b3=k(_0x38eca3['editing'],this['_currentOutlineDefinitions'],_0x5159c5);_0x1674b3?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x1674b3)):this['_setActiveViewItem'](-0x1);}};function k(_0xcfaddc,_0x274d54,_0x23060e,_0xf70980=0x0,_0x79c2b8=_0x274d54['length']-0x1){const _0x497dc0=Math['floor'](_0xf70980+(_0x79c2b8-_0xf70980)/0x2);if(_0x79c2b8>=_0xf70980){const _0x515132=_0x274d54[_0x497dc0],_0x290c79=_0xcfaddc['mapper']['toViewElement'](_0x515132['modelElement']);return _0x290c79?new _0x23e40b(_0xcfaddc['view']['domConverter']['mapViewToDom'](_0x290c79))['bottom']>_0x23060e?k(_0xcfaddc,_0x274d54,_0x23060e,_0xf70980,_0x497dc0-0x1):k(_0xcfaddc,_0x274d54,_0x23060e,_0x497dc0+0x1,_0x79c2b8):null;}return _0x497dc0<0x0?null:_0x274d54[_0x497dc0];}var E=class extends _0x464a3a{['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 _0x85f5d8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1ed149;for(const _0x3f260f in _0x85f5d8){const _0x356ead=_0x3f260f,_0x126b8f=_0x85f5d8[_0x356ead];if('documentOutlineLicenseKeyValid'==_0x126b8f||'documentOutlineLicenseKeyInvalid'==_0x126b8f||'documentOutlineLicenseKeyExpired'==_0x126b8f||'documentOutlineLicenseKeyDomainLimit'==_0x126b8f||'documentOutlineLicenseKeyNotAllowed'==_0x126b8f||'documentOutlineLicenseKeyEvaluationLimit'==_0x126b8f||'documentOutlineLicenseKeyUsageLimit'==_0x126b8f){delete _0x85f5d8[_0x356ead],_0x1ed149=_0x126b8f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x1ed149&&_0x85f5d8['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x1ed149&&_0x85f5d8['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x1ed149&&_0x85f5d8['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x1ed149&&_0x85f5d8['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x1ed149&&_0x85f5d8['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x1ed149&&_0x85f5d8['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},K=class extends _0x4ec52c{['execute'](){this['editor']['model']['change'](_0x439efd=>{this['editor']['model']['insertObject'](_0x439efd['createElement']('tableOfContents'));});}['refresh'](){const _0x527b98=this['editor']['model'],_0xbf64ad=_0x527b98['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0xbf64ad&&_0x527b98['schema']['findAllowedParent'](_0xbf64ad,'tableOfContents'));}},A=class extends _0x464a3a{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x19c04f=this['editor'];if(_0x19c04f['config']['get']('headingId.modelAttributeName'))return;const {viewNames:_0x49bb30,modelNames:_0x1481c8}=function(_0x4ab1e1){const _0x21393d=new Set(),_0x4e8e3b=new Set();if(!_0x4ab1e1)return{'viewNames':_0x21393d,'modelNames':_0x4e8e3b};for(const _0x1d6a57 of _0x4ab1e1){if('paragraph'===_0x1d6a57['model'])continue;const _0x2f898a='string'==typeof _0x1d6a57['view']?_0x1d6a57['view']:_0x1d6a57['view']['name'];_0x21393d['add'](_0x2f898a),_0x4e8e3b['add'](_0x1d6a57['model']);}return _0x21393d['has']('h1')||(_0x21393d['add']('h1'),_0x4e8e3b['add']('heading1')),{'viewNames':_0x21393d,'modelNames':_0x4e8e3b};}(this['editor']['config']['get']('heading.options'));for(const _0xd81ee1 of _0x49bb30)this['_customUpcastHeadingsConversion'](_0xd81ee1);for(const _0x382ab2 of _0x1481c8)this['_customDataDowncastHeadingsConversion'](_0x382ab2),_0x19c04f['model']['schema']['isRegistered'](_0x382ab2)&&_0x19c04f['model']['schema']['extend'](_0x382ab2,{'allowAttributes':'headingId'});this['_registerHeadingIdAttributePostfixer'](_0x1481c8);}['_customUpcastHeadingsConversion'](_0x44df6a){this['editor']['conversion']['for']('upcast')['add'](_0x3571be=>_0x3571be['on']('element:'+_0x44df6a,(_0x3d9aa4,_0x4bbafc,_0x1ae474)=>{const {consumable:_0xb37ade,writer:_0x48d9c2}=_0x1ae474,_0x1296f1=_0x4bbafc['viewItem']['getAttribute']('id'),_0x19ce1c=_0x4bbafc['modelRange']?.['getContainedElement']();if(_0x19ce1c)return _0x1296f1&&_0x1296f1['length']||_0x19ce1c['hasAttribute']('headingId')?void(_0xb37ade['consume'](_0x4bbafc['viewItem'],{'attributes':['id']})&&_0x48d9c2['setAttribute']('headingId',_0x1296f1,_0x19ce1c)):(_0xb37ade['consume'](_0x4bbafc['viewItem'],{'attributes':['id']}),void _0x48d9c2['setAttribute']('headingId',_0x8d5b21(),_0x19ce1c));},{'priority':_0x15bf35['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x3880ab){this['editor']['conversion']['for']('downcast')['add'](_0x5103d4=>_0x5103d4['on']('attribute:headingId:'+_0x3880ab,(_0x4a37c7,_0x570966,_0x8bd5a8)=>{if(!_0x8bd5a8['consumable']['consume'](_0x570966['item'],_0x4a37c7['name']))return;const _0x464ca9=_0x570966['item']['getAttribute']('headingId'),_0x455254=_0x8bd5a8['mapper']['toViewElement'](_0x570966['item']);_0x8bd5a8['writer']['setAttribute']('id',_0x464ca9,_0x455254);}));}['_registerHeadingIdAttributePostfixer'](_0x4e5653){const _0x2ac76f=this['editor'],_0x181cac=new Set(),_0x2982c3=new Set();function _0x59bb9b(_0xdf7ac7,_0x36a65f){const _0xe696e0=_0x8d5b21();return _0x2982c3['add'](_0xe696e0),_0xdf7ac7['setAttribute']('headingId',_0xe696e0,_0x36a65f),_0xe696e0;}function _0x1b07f4(_0x18eddb,_0x162966){_0x18eddb['removeAttribute']('headingId',_0x162966);}_0x2ac76f['model']['document']['registerPostFixer'](_0x5b6fc5=>{const _0x367156=_0x2ac76f['model']['document']['differ']['getChanges']();let _0x23bcbd=!0x1;for(const _0x193b9d of _0x367156)if('insert'==_0x193b9d['type']&&_0x193b9d['name']){if(_0x4e5653['has'](_0x193b9d['name'])){const _0x2166b7=_0x193b9d['attributes']['get']('headingId');'string'==typeof _0x2166b7?_0x181cac['has'](_0x2166b7)?(_0x59bb9b(_0x5b6fc5,_0x193b9d['position']['nodeAfter']),_0x23bcbd=!0x0):_0x2982c3['add'](_0x2166b7):(_0x59bb9b(_0x5b6fc5,_0x193b9d['position']['nodeAfter']),_0x23bcbd=!0x0);}else'string'==typeof _0x193b9d['attributes']['get']('headingId')&&(_0x1b07f4(_0x5b6fc5,_0x193b9d['position']['nodeAfter']),_0x23bcbd=!0x0);}else{if('remove'==_0x193b9d['type']){const _0x3bb198=_0x193b9d['attributes']['get']('headingId');'string'==typeof _0x3bb198&&_0x181cac['delete'](_0x3bb198);}}return _0x23bcbd;}),_0x2ac76f['model']['document']['on']('change',()=>{_0x2982c3['forEach'](_0x140005=>_0x181cac['add'](_0x140005)),_0x2982c3['clear']();});}},N=class extends _0x464a3a{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1bc01e,I,A];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x649544){super(_0x649544),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x38fab1=this['editor'],_0x59290b=_0x38fab1['editing']['view']['document'];_0x38fab1['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x38fab1['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x59290b,'click',(_0x247031,_0x3ade20)=>{if(!_0x3ade20['target'])return;const _0x105164=_0x3ade20['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x105164)&&(_0x3ade20['domEvent']['preventDefault'](),_0x247031['stop'](),this['_handleScrollToHeading'](_0x105164));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x38fab1['commands']['add']('insertTableOfContents',new K(_0x38fab1));const _0x35b7ad=_0x38fab1['config']['get']('tableOfContents.headings');_0x35b7ad&&_0x35b7ad['length']?this['listenTo'](_0x38fab1['model']['document'],'change:data',()=>{this['_currentOutlineDefinitions']=this['_getOutlineDefinitions'](_0x35b7ad),this['_updateTableOfContentsElements']();}):_0x38fab1['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0xb30544,_0x33f54b)=>{this['_currentOutlineDefinitions']=_0x33f54b['outlineDefinitions'],this['_updateTableOfContentsElements']();}),this['listenTo'](_0x38fab1['model']['document'],'change',()=>{this['_trackNewToCElements']();});}['afterInit'](){!async function(_0x5ca1e1){const _0x156491='mr4z2yakM3x0phtD7jBw1T6qRfeUuZcOLNKVgQSPE9iGIHoXlJW8YsCb5AndFv',_0x5f4c0e=0x78de0,_0x9289e1=window['Date']['now'](),_0x9b2c8=_0x5ca1e1['editor'],_0x255380=new window['Promise'](_0x8e4c08=>{_0x9b2c8['once']('ready',_0x8e4c08);}),_0x5e1892={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x14b7ed=_0x9b2c8['config']['get']('licenseKey');async function _0xe5c1a9(){let _0x2d5c85,_0x24e848=null,_0x436f22=null;try{return'GPL'==_0x14b7ed?'NotAllowed':(_0x2d5c85=_0x146c3c(),_0x2d5c85?(_0x2d5c85['usageEndpoint']&&(_0x436f22=_0x3dbe4e(_0x2d5c85['usageEndpoint'],_0x2d5c85['jti'])),await _0x279c48()?_0x590018()?_0x2c6400()?'Expired':_0x313359()?('evaluation'==_0x2d5c85['licenseType']&&(_0x24e848=_0x4965fd('EvaluationLimit')),await _0x3cb66f()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x2c6400(){const _0x242bac=['evaluation','trial']['includes'](_0x2d5c85['licenseType'])?_0x9289e1/0x3e8:0xe10*_0x5f4c0e;return _0x2d5c85['exp']<_0x242bac;}function _0x590018(){const _0x596b98=_0x2d5c85['features'];return!!_0x596b98&&(!!_0x596b98['includes']('*')||(!!_0x596b98['includes']('TOC')||(!!_0x596b98['includes']('PP')||!(!_0x596b98['includes']('TRILIUM')||!_0x2452ee()))));}function _0x313359(){const _0x3e16fa=_0x2d5c85['licensedHosts'];if(!_0x3e16fa||0x0==_0x3e16fa['length'])return!0x0;const {hostname:_0x419a17}=new URL(window['location']['href']);if(_0x3e16fa['includes'](_0x419a17))return!0x0;const _0x199b30=_0x419a17['split']('.');return _0x3e16fa['filter'](_0xdc6da7=>_0xdc6da7['includes']('*'))['map'](_0x538a31=>_0x538a31['split']('.'))['filter'](_0x31e806=>_0x31e806['length']<=_0x199b30['length'])['map'](_0x4c2a64=>Array(_0x199b30['length']-_0x4c2a64['length'])['fill']('*'===_0x4c2a64[0x0]?'*':'')['concat'](_0x4c2a64))['some'](_0x1599dd=>_0x199b30['every']((_0x523dfd,_0x4bc3b0)=>_0x1599dd[_0x4bc3b0]===_0x523dfd||'*'===_0x1599dd[_0x4bc3b0]));}function _0x3cb66f(){return _0x24e848&&_0x436f22?new window['Promise']((_0x2ee80b,_0x53042d)=>{_0x24e848['then'](_0x2ee80b,_0x53042d),_0x436f22['then'](_0xa425a8=>{'Valid'!=_0xa425a8&&_0x2ee80b(_0xa425a8);},_0x53042d);}):_0x24e848||_0x436f22||'Valid';}}function _0x3dbe4e(_0x5a95b9,_0x26a4d9){return new window['Promise'](_0xd57d20=>{if(_0x543154())return _0xd57d20('Valid');_0x5ad6f5(),_0x9b2c8['decorate']('_sendUsageRequest');let _0x180fa3=!0x1;const _0x11ed29=_0x8d5b21();function _0x519898(_0x288215){return!!_0x288215&&('object'==typeof _0x288215||'function'==typeof _0x288215)&&'function'==typeof _0x288215['then']&&'function'==typeof _0x288215['catch'];}function _0x52c172(_0x2e6873){_0x31cac9(_0x2e6873)['then'](_0xac641e=>_0xac641e&&'ok'==_0xac641e['status']?_0xcc1d4f(_0x3f03d5(_0x11ed29+_0x26a4d9))!=_0xac641e['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0xa324d2=>(_0x5d8f06(),_0xa324d2),()=>{const _0x3794f6=_0x222bed();return null==_0x3794f6?(_0x5d8f06(),'Valid'):_0x9289e1-_0x3794f6>0x240c8400?'UsageLimit':'Valid';})['then'](_0xd57d20)['catch'](()=>{_0xd57d20('UsageLimit');});const _0x5cb359=0x36ee80;function _0x5d8f06(){const _0x1e5043='llct-'+_0xcc1d4f(_0x3f03d5(_0x5a95b9)),_0x31891e=_0x45d0d1(_0xcc1d4f(window['Math']['ceil'](_0x9289e1/_0x5cb359)));window['localStorage']['setItem'](_0x1e5043,_0x31891e);}function _0x222bed(){const _0x24e615='llct-'+_0xcc1d4f(_0x3f03d5(_0x5a95b9)),_0x76b19c=window['localStorage']['getItem'](_0x24e615);return _0x76b19c?window['parseInt'](_0x45d0d1(_0x76b19c),0x10)*_0x5cb359:null;}function _0x31cac9(_0x531a55){return new window['Promise']((_0x5e5db8,_0x5e2b15)=>{_0x531a55['then'](_0x5e5db8,_0x5e2b15),window['setTimeout'](_0x5e2b15,0x1d4c0);});}}_0x9b2c8['on']('_sendUsageRequest',(_0x4b8364,_0x4d05b7)=>{if(_0x4d05b7[0x0]!=_0x5a95b9)return _0xd57d20('UsageLimit');_0x4d05b7[0x1]={..._0x4d05b7[0x1],'requestId':_0x11ed29};},{'priority':'high'}),_0x9b2c8['on']('_sendUsageRequest',_0xb1fbc3=>{_0x519898(_0xb1fbc3['return'])&&(_0x180fa3=!0x0,_0x52c172(_0xb1fbc3['return']));},{'priority':'low'}),_0x255380['then'](()=>{_0x180fa3||_0xd57d20('UsageLimit');});});function _0x543154(){return'auto'==_0x9b2c8['editing']['view']['_overlayModeHint'];}function _0x5ad6f5(){_0x9b2c8['editing']['view']['_overlayModeHint']='auto';}}function _0x4965fd(_0x4ae6d3){const _0x3f1a8b=[new window['Promise'](_0x56c04f=>setTimeout(_0x56c04f,0x93ecc)),_0x255380['then'](()=>new window['Promise'](_0x20d084=>{let _0xa1282=0x0;_0x9b2c8['model']['on']('applyOperation',(_0x36d072,_0x42fb69)=>{_0x42fb69[0x0]['isDocumentOperation']&&_0xa1282++,0x5e8==_0xa1282&&(_0x20d084(),_0x36d072['off']());});}))];return window['Promise']['race'](_0x3f1a8b)['then'](()=>_0x4ae6d3);}async function _0x271a70(){await _0x255380,_0x9b2c8['model']['change']=_0x1b96ea,_0x9b2c8['model']['enqueueChange']=_0x1b96ea,_0x9b2c8['enableReadOnlyMode']('model');}function _0x2452ee(){return window['glob']&&window['glob']['triliumVersion'];}function _0x36a180(_0x3a2c34){const _0x110a3f=_0x36d6de();_0x9b2c8[_0x110a3f]='tableOfContentsLicenseKey'+_0x3a2c34,'Valid'!=_0x3a2c34&&_0x271a70();}function _0x36d6de(){const _0x1adf7c=window['String'](window['performance']['now']())['replace']('.','');let _0x2cd65b='m';for(let _0x3d44ca=0x0;_0x3d44ca<_0x1adf7c['length'];_0x3d44ca+=0x2){let _0x381391=window['parseInt'](_0x1adf7c['substring'](_0x3d44ca,_0x3d44ca+0x2));_0x381391>=0x3e&&(_0x381391-=0x3e),_0x2cd65b+=_0x156491[_0x381391];}return _0x2cd65b;}function _0x146c3c(){const _0x4b72a2=_0x14b7ed['split']('.');if(0x3!=_0x4b72a2['length'])return null;return _0x4c76b0(_0x4b72a2[0x1]);function _0x4c76b0(_0xab9449){const _0x187e88=_0x18dbbe(_0xab9449);return _0x187e88&&_0x1831af()?_0x187e88:null;function _0x1831af(){const _0x583548=_0x187e88['jti'],_0x2941f4=window['parseInt'](_0x583548['substring'](_0x583548['length']-0x8),0x10),_0x586007={..._0x187e88,'jti':_0x583548['substring'](0x0,_0x583548['length']-0x8)};return delete _0x586007['vc'],_0x3f03d5(_0x586007)==_0x2941f4;}}}async function _0x279c48(){let _0x2a2522=!0x0;try{const [_0x467c31,_0x2a064b,_0x14a2d6]=_0x14b7ed['split']('.');return _0x527636(_0x467c31),await _0x147897(_0x467c31,_0x2a064b,_0x14a2d6),_0x2a2522;}catch{return!0x1;}function _0x527636(_0x54f728){const _0x33cfa3=_0x18dbbe(_0x54f728);_0x33cfa3&&'ES256'==_0x33cfa3['alg']||(_0x2a2522=!0x1);}async function _0x147897(_0x452e69,_0x3bc17a,_0x1557c9){const _0x2c66d3=window['Uint8Array']['from'](_0x454a76(_0x1557c9),_0x361908=>_0x361908['charCodeAt'](0x0)),_0x4857aa=new window['TextEncoder']()['encode'](_0x452e69+'.'+_0x3bc17a),_0x4e5931=window['crypto']['subtle'];if(!_0x4e5931)return;const _0x3dd3cf=await _0x4e5931['importKey']('jwk',_0x5e1892,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x4e5931['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x3dd3cf,_0x2c66d3,_0x4857aa)||(_0x2a2522=!0x1);}}function _0x18dbbe(_0xbe335c){return _0xbe335c['startsWith']('ey')?JSON['parse'](_0x454a76(_0xbe335c)):null;}function _0x454a76(_0x84b113){return window['atob'](_0x84b113['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x3f03d5(_0x595b18){let _0x22dd7b=0x1505;function _0x1854d6(_0x5e19dc){for(let _0x15c13a=0x0;_0x15c13a<_0x5e19dc['length'];_0x15c13a++){const _0x58348c=_0x5e19dc['charCodeAt'](_0x15c13a);_0x22dd7b=(_0x22dd7b<<0x5)+_0x22dd7b+_0x58348c,_0x22dd7b&=_0x22dd7b;}}function _0x393a10(_0x48fc94){Array['isArray'](_0x48fc94)?_0x48fc94['forEach'](_0x393a10):_0x48fc94&&'object'==typeof _0x48fc94?Object['entries'](_0x48fc94)['sort']()['forEach'](([_0x5628d5,_0x23aa3b])=>{_0x1854d6(_0x5628d5),_0x393a10(_0x23aa3b);}):_0x1854d6(window['String'](_0x48fc94));}return _0x393a10(_0x595b18),_0x22dd7b>>>0x0;}function _0xcc1d4f(_0x249a28){return _0x249a28['toString'](0x10)['padStart'](0x8,'0');}function _0x45d0d1(_0x59cc52){return _0x59cc52['split']('')['reverse']()['join']('');}function _0x1b96ea(){}_0x36a180(await _0xe5c1a9());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x2e6232=>{'$graveyard'!==_0x2e6232['rootName']&&this['editor']['editing']['reconvertItem'](_0x2e6232);});}['_trackNewToCElements'](){for(const _0x391795 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x391795['type']||'tableOfContents'!==_0x391795['name'])return;this['_tableOfContentsElements']['add'](_0x391795['position']['nodeAfter']);}}['_getOutlineDefinitions'](_0x4eeb13){const _0x3a8ef3=this['editor'],_0x35727c=[];for(const _0x2be758 of _0x3a8ef3['model']['document']['getRootNames']())_0x398d85(_0x3a8ef3['model']['document']['getRoot'](_0x2be758));function _0x398d85(_0x25022d){for(const _0x3e29ef of _0x25022d['getChildren']())_0x3e29ef['is']('element')&&(_0x4eeb13['includes'](_0x3e29ef['name'])&&_0x35727c['push']({'level':_0x4eeb13['indexOf'](_0x3e29ef['name'])+0x1,'text':b(_0x3e29ef),'modelElement':_0x3e29ef}),_0x398d85(_0x3e29ef));}return _0x35727c;}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x3dd656=this['editor']['conversion'];_0x3dd656['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x3dd656['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x4df076,{writer:_0x7361ae})=>this['_createTableOfContents'](_0x7361ae,!0x0)}),_0x3dd656['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x17e525,{writer:_0x336c42})=>(this['_tableOfContentsElements']['add'](_0x17e525),_0x49ab46(this['_createTableOfContents'](_0x336c42),_0x336c42,{'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'](_0x5ca1d7,_0x102593=!0x1){const {locale:_0x3f2b8f}=this['editor'],_0x116768=_0x5ca1d7['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x102593&&{'data-table-of-contents-label':L(_0x3f2b8f,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x102593&&_0x5ca1d7['insert'](_0x5ca1d7['createPositionAt'](_0x116768,'end'),_0x5ca1d7['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x5ca1d7['createText'](L(_0x3f2b8f,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x360b59=_0x102593?'':'['+L(_0x3f2b8f,'Empty\x20heading')+']';let _0x1106b5=_0x116768;return this['_currentOutlineDefinitions']['forEach']((_0x316061,_0x4e5c58,_0x2e4380)=>{const _0x342564=this['editor']['model']['hasContent'](_0x316061['modelElement'],{'ignoreWhitespaces':!0x0}),_0x4d11de=_0x342564?_0x316061['text']:_0x360b59,_0x57a578=_0x316061['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x2a6e74=_0x5ca1d7['createContainerElement']('a',{'href':'#'+_0x57a578,...!_0x102593&&{'tabindex':'-1'}},[_0x5ca1d7['createText'](_0x4d11de)]),_0x2fca0f=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x5ca1d7['setCustomProperty']('tableOfContentsHeadingIndex',_0x4e5c58,_0x2a6e74);const _0xba389a=_0x5ca1d7['createContainerElement']('li',null,[_0x342564||!_0x102593&&_0x2fca0f?_0x2a6e74:_0x5ca1d7['createText']('')]),_0x50eb4e=_0x4e5c58?_0x2e4380[_0x4e5c58-0x1]['level']:0x0,_0x315124=Math['abs'](_0x316061['level']-_0x50eb4e);if(_0x316061['level']>_0x50eb4e){const _0x35f519=P(_0xba389a,_0x315124,_0x5ca1d7);_0x5ca1d7['insert'](_0x5ca1d7['createPositionAt'](_0x1106b5,'end'),_0x35f519);}else{const _0x590965=function(_0x2db7fa,_0x9a57cf){return _0x2db7fa['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x2232be=>_0x2232be['is']('element','ol'))[_0x9a57cf];}(_0x1106b5,_0x315124);_0x5ca1d7['insert'](_0x5ca1d7['createPositionAt'](_0x590965,'end'),_0xba389a);}_0x1106b5=_0xba389a;}),_0x116768;}['_handleScrollToHeading'](_0x19c93c){const _0x5dc6b4=this['_currentOutlineDefinitions'][_0x19c93c]['modelElement'];this['editor']['model']['change'](_0x191c4c=>{_0x191c4c['setSelection'](_0x5dc6b4,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x15d044,_0x2821ea)=>{const _0x1f4d0c=_0x2821ea['mapper'],_0x4bb686=_0x1f4d0c['findMappedViewAncestor'](_0x2821ea['viewPosition']),_0x54a366=_0x1f4d0c['toModelElement'](_0x4bb686);_0x54a366['is']('element','tableOfContents')&&(_0x2821ea['modelPosition']=this['editor']['model']['createPositionAt'](_0x54a366,0x0),_0x15d044['stop']());};}};function P(_0x2c0c07,_0x5e4c66,_0x8c5e81){return 0x1===_0x5e4c66?_0x8c5e81['createContainerElement']('ol',null,[_0x2c0c07]):_0x8c5e81['createContainerElement']('ol',null,[_0x8c5e81['createContainerElement']('li',null,[P(_0x2c0c07,_0x5e4c66-0x1,_0x8c5e81)])]);}var U=class extends _0x464a3a{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2ebce6=this['editor'];_0x2ebce6['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x34f617=this['_createButton'](_0x123b34);return _0x34f617['tooltip']=!0x0,_0x34f617;}),_0x2ebce6['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x3b1daf)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x19eaa8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1da1dc;for(const _0x1d8f50 in _0x19eaa8){const _0x196494=_0x1d8f50,_0x2fd2a6=_0x19eaa8[_0x196494];if('tableOfContentsLicenseKeyValid'==_0x2fd2a6||'tableOfContentsLicenseKeyInvalid'==_0x2fd2a6||'tableOfContentsLicenseKeyExpired'==_0x2fd2a6||'tableOfContentsLicenseKeyDomainLimit'==_0x2fd2a6||'tableOfContentsLicenseKeyNotAllowed'==_0x2fd2a6||'tableOfContentsLicenseKeyEvaluationLimit'==_0x2fd2a6||'tableOfContentsLicenseKeyUsageLimit'==_0x2fd2a6){delete _0x19eaa8[_0x196494],_0x1da1dc=_0x2fd2a6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x1da1dc&&_0x19eaa8['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x1da1dc&&_0x19eaa8['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x1da1dc&&_0x19eaa8['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x1da1dc&&_0x19eaa8['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x1da1dc&&_0x19eaa8['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x1da1dc&&_0x19eaa8['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x55ffb4){const _0x1f38d5=this['editor'],_0x17b8b6=_0x1f38d5['locale'],_0x2b0c0b=_0x1f38d5['commands']['get']('insertTableOfContents'),_0x42f9d9=new _0x55ffb4(_0x17b8b6);return _0x42f9d9['set']({'label':L(_0x17b8b6,'Table\x20of\x20contents'),'icon':_0x204e27}),_0x42f9d9['bind']('isEnabled')['to'](_0x2b0c0b,'isEnabled'),this['listenTo'](_0x42f9d9,'execute',()=>{_0x1f38d5['execute']('insertTableOfContents'),_0x1f38d5['editing']['view']['focus']();}),_0x42f9d9;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},D=class extends _0x464a3a{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};
@@ -1,5 +1 @@
1
- /**
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
1
  export {};
@@ -1,26 +1,26 @@
1
1
  /**
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';
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
- * 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
- */
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
- * @inheritDoc
12
- */
13
- static get pluginName(): "HeadingId";
14
- /**
15
- * @inheritDoc
16
- */
17
- static get isOfficialPlugin(): true;
18
- /**
19
- * @inheritDoc
20
- */
21
- static get isPremiumPlugin(): true;
22
- /**
23
- * @inheritDoc
24
- */
25
- afterInit(): void;
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
  }