@ckeditor/ckeditor5-document-outline 0.0.0-internal-20241017.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.
- package/CHANGELOG.md +4 -0
- package/LICENSE.md +22 -0
- package/README.md +44 -0
- package/build/document-outline.js +5 -0
- package/build/translations/ar.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/ckeditor5-metadata.json +45 -0
- package/dist/augmentation.d.ts +31 -0
- package/dist/documentoutline/documentoutlineui.d.ts +52 -0
- package/dist/documentoutline/documentoutlineutils.d.ts +78 -0
- package/dist/documentoutline/ui/documentoutlineitemview.d.ts +55 -0
- package/dist/documentoutline/ui/documentoutlineview.d.ts +56 -0
- package/dist/documentoutline/utils.d.ts +21 -0
- package/dist/documentoutline.d.ts +103 -0
- package/dist/index-content.css +44 -0
- package/dist/index-editor.css +147 -0
- package/dist/index.css +206 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +23 -0
- package/dist/legacyerrors.d.ts +36 -0
- package/dist/tableofcontents/headingid.d.ts +30 -0
- package/dist/tableofcontents/tableofcontentscommand.d.ts +25 -0
- package/dist/tableofcontents/tableofcontentsediting.d.ts +49 -0
- package/dist/tableofcontents/tableofcontentsui.d.ts +31 -0
- package/dist/tableofcontents.d.ts +38 -0
- package/dist/translations/ar.d.ts +8 -0
- package/dist/translations/ar.js +23 -0
- package/dist/translations/ar.umd.js +23 -0
- package/dist/translations/bg.d.ts +8 -0
- package/dist/translations/bg.js +23 -0
- package/dist/translations/bg.umd.js +23 -0
- package/dist/translations/bn.d.ts +8 -0
- package/dist/translations/bn.js +23 -0
- package/dist/translations/bn.umd.js +23 -0
- package/dist/translations/ca.d.ts +8 -0
- package/dist/translations/ca.js +23 -0
- package/dist/translations/ca.umd.js +23 -0
- package/dist/translations/cs.d.ts +8 -0
- package/dist/translations/cs.js +23 -0
- package/dist/translations/cs.umd.js +23 -0
- package/dist/translations/da.d.ts +8 -0
- package/dist/translations/da.js +23 -0
- package/dist/translations/da.umd.js +23 -0
- package/dist/translations/de.d.ts +8 -0
- package/dist/translations/de.js +23 -0
- package/dist/translations/de.umd.js +23 -0
- package/dist/translations/el.d.ts +8 -0
- package/dist/translations/el.js +23 -0
- package/dist/translations/el.umd.js +23 -0
- package/dist/translations/en-au.d.ts +8 -0
- package/dist/translations/en-au.js +23 -0
- package/dist/translations/en-au.umd.js +23 -0
- package/dist/translations/en.d.ts +8 -0
- package/dist/translations/en.js +23 -0
- package/dist/translations/en.umd.js +23 -0
- package/dist/translations/es.d.ts +8 -0
- package/dist/translations/es.js +23 -0
- package/dist/translations/es.umd.js +23 -0
- package/dist/translations/et.d.ts +8 -0
- package/dist/translations/et.js +23 -0
- package/dist/translations/et.umd.js +23 -0
- package/dist/translations/fi.d.ts +8 -0
- package/dist/translations/fi.js +23 -0
- package/dist/translations/fi.umd.js +23 -0
- package/dist/translations/fr.d.ts +8 -0
- package/dist/translations/fr.js +23 -0
- package/dist/translations/fr.umd.js +23 -0
- package/dist/translations/gl.d.ts +8 -0
- package/dist/translations/gl.js +23 -0
- package/dist/translations/gl.umd.js +23 -0
- package/dist/translations/he.d.ts +8 -0
- package/dist/translations/he.js +23 -0
- package/dist/translations/he.umd.js +23 -0
- package/dist/translations/hi.d.ts +8 -0
- package/dist/translations/hi.js +23 -0
- package/dist/translations/hi.umd.js +23 -0
- package/dist/translations/hr.d.ts +8 -0
- package/dist/translations/hr.js +23 -0
- package/dist/translations/hr.umd.js +23 -0
- package/dist/translations/hu.d.ts +8 -0
- package/dist/translations/hu.js +23 -0
- package/dist/translations/hu.umd.js +23 -0
- package/dist/translations/id.d.ts +8 -0
- package/dist/translations/id.js +23 -0
- package/dist/translations/id.umd.js +23 -0
- package/dist/translations/it.d.ts +8 -0
- package/dist/translations/it.js +23 -0
- package/dist/translations/it.umd.js +23 -0
- package/dist/translations/ja.d.ts +8 -0
- package/dist/translations/ja.js +23 -0
- package/dist/translations/ja.umd.js +23 -0
- package/dist/translations/ko.d.ts +8 -0
- package/dist/translations/ko.js +23 -0
- package/dist/translations/ko.umd.js +23 -0
- package/dist/translations/lt.d.ts +8 -0
- package/dist/translations/lt.js +23 -0
- package/dist/translations/lt.umd.js +23 -0
- package/dist/translations/lv.d.ts +8 -0
- package/dist/translations/lv.js +23 -0
- package/dist/translations/lv.umd.js +23 -0
- package/dist/translations/ms.d.ts +8 -0
- package/dist/translations/ms.js +23 -0
- package/dist/translations/ms.umd.js +23 -0
- package/dist/translations/nl.d.ts +8 -0
- package/dist/translations/nl.js +23 -0
- package/dist/translations/nl.umd.js +23 -0
- package/dist/translations/no.d.ts +8 -0
- package/dist/translations/no.js +23 -0
- package/dist/translations/no.umd.js +23 -0
- package/dist/translations/pl.d.ts +8 -0
- package/dist/translations/pl.js +23 -0
- package/dist/translations/pl.umd.js +23 -0
- package/dist/translations/pt-br.d.ts +8 -0
- package/dist/translations/pt-br.js +23 -0
- package/dist/translations/pt-br.umd.js +23 -0
- package/dist/translations/pt.d.ts +8 -0
- package/dist/translations/pt.js +23 -0
- package/dist/translations/pt.umd.js +23 -0
- package/dist/translations/ro.d.ts +8 -0
- package/dist/translations/ro.js +23 -0
- package/dist/translations/ro.umd.js +23 -0
- package/dist/translations/ru.d.ts +8 -0
- package/dist/translations/ru.js +23 -0
- package/dist/translations/ru.umd.js +23 -0
- package/dist/translations/sk.d.ts +8 -0
- package/dist/translations/sk.js +23 -0
- package/dist/translations/sk.umd.js +23 -0
- package/dist/translations/sr-latn.d.ts +8 -0
- package/dist/translations/sr-latn.js +23 -0
- package/dist/translations/sr-latn.umd.js +23 -0
- package/dist/translations/sr.d.ts +8 -0
- package/dist/translations/sr.js +23 -0
- package/dist/translations/sr.umd.js +23 -0
- package/dist/translations/sv.d.ts +8 -0
- package/dist/translations/sv.js +23 -0
- package/dist/translations/sv.umd.js +23 -0
- package/dist/translations/th.d.ts +8 -0
- package/dist/translations/th.js +23 -0
- package/dist/translations/th.umd.js +23 -0
- package/dist/translations/tr.d.ts +8 -0
- package/dist/translations/tr.js +23 -0
- package/dist/translations/tr.umd.js +23 -0
- package/dist/translations/ug.d.ts +8 -0
- package/dist/translations/ug.js +23 -0
- package/dist/translations/ug.umd.js +23 -0
- package/dist/translations/uk.d.ts +8 -0
- package/dist/translations/uk.js +23 -0
- package/dist/translations/uk.umd.js +23 -0
- package/dist/translations/vi.d.ts +8 -0
- package/dist/translations/vi.js +23 -0
- package/dist/translations/vi.umd.js +23 -0
- package/dist/translations/zh-cn.d.ts +8 -0
- package/dist/translations/zh-cn.js +23 -0
- package/dist/translations/zh-cn.umd.js +23 -0
- package/dist/translations/zh.d.ts +8 -0
- package/dist/translations/zh.js +23 -0
- package/dist/translations/zh.umd.js +23 -0
- package/dist/utils/common-translations.d.ts +13 -0
- package/lang/contexts.json +6 -0
- package/lang/translations/ar.po +34 -0
- package/lang/translations/bg.po +34 -0
- package/lang/translations/bn.po +34 -0
- package/lang/translations/ca.po +34 -0
- package/lang/translations/cs.po +34 -0
- package/lang/translations/da.po +34 -0
- package/lang/translations/de.po +34 -0
- package/lang/translations/el.po +34 -0
- package/lang/translations/en-au.po +34 -0
- package/lang/translations/en.po +34 -0
- package/lang/translations/es.po +34 -0
- package/lang/translations/et.po +34 -0
- package/lang/translations/fi.po +34 -0
- package/lang/translations/fr.po +34 -0
- package/lang/translations/gl.po +34 -0
- package/lang/translations/he.po +34 -0
- package/lang/translations/hi.po +34 -0
- package/lang/translations/hr.po +34 -0
- package/lang/translations/hu.po +34 -0
- package/lang/translations/id.po +34 -0
- package/lang/translations/it.po +34 -0
- package/lang/translations/ja.po +34 -0
- package/lang/translations/ko.po +34 -0
- package/lang/translations/lt.po +34 -0
- package/lang/translations/lv.po +34 -0
- package/lang/translations/ms.po +34 -0
- package/lang/translations/nl.po +34 -0
- package/lang/translations/no.po +34 -0
- package/lang/translations/pl.po +34 -0
- package/lang/translations/pt-br.po +34 -0
- package/lang/translations/pt.po +34 -0
- package/lang/translations/ro.po +34 -0
- package/lang/translations/ru.po +34 -0
- package/lang/translations/sk.po +34 -0
- package/lang/translations/sr-latn.po +34 -0
- package/lang/translations/sr.po +34 -0
- package/lang/translations/sv.po +34 -0
- package/lang/translations/th.po +34 -0
- package/lang/translations/tr.po +34 -0
- package/lang/translations/ug.po +34 -0
- package/lang/translations/uk.po +34 -0
- package/lang/translations/vi.po +34 -0
- package/lang/translations/zh-cn.po +34 -0
- package/lang/translations/zh.po +34 -0
- package/package.json +41 -0
- package/src/augmentation.d.ts +27 -0
- package/src/augmentation.js +23 -0
- package/src/documentoutline/documentoutlineui.d.ts +48 -0
- package/src/documentoutline/documentoutlineui.js +23 -0
- package/src/documentoutline/documentoutlineutils.d.ts +74 -0
- package/src/documentoutline/documentoutlineutils.js +23 -0
- package/src/documentoutline/ui/documentoutlineitemview.d.ts +51 -0
- package/src/documentoutline/ui/documentoutlineitemview.js +23 -0
- package/src/documentoutline/ui/documentoutlineview.d.ts +52 -0
- package/src/documentoutline/ui/documentoutlineview.js +23 -0
- package/src/documentoutline/utils.d.ts +17 -0
- package/src/documentoutline/utils.js +23 -0
- package/src/documentoutline.d.ts +99 -0
- package/src/documentoutline.js +23 -0
- package/src/index.d.ts +16 -0
- package/src/index.js +23 -0
- package/src/legacyerrors.d.ts +32 -0
- package/src/legacyerrors.js +23 -0
- package/src/tableofcontents/headingid.d.ts +26 -0
- package/src/tableofcontents/headingid.js +23 -0
- package/src/tableofcontents/tableofcontentscommand.d.ts +21 -0
- package/src/tableofcontents/tableofcontentscommand.js +23 -0
- package/src/tableofcontents/tableofcontentsediting.d.ts +45 -0
- package/src/tableofcontents/tableofcontentsediting.js +23 -0
- package/src/tableofcontents/tableofcontentsui.d.ts +27 -0
- package/src/tableofcontents/tableofcontentsui.js +23 -0
- package/src/tableofcontents.d.ts +34 -0
- package/src/tableofcontents.js +23 -0
- package/src/utils/common-translations.d.ts +9 -0
- package/src/utils/common-translations.js +23 -0
- package/theme/documentoutline.css +104 -0
- package/theme/tableofcontents.css +86 -0
package/dist/index.css
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/*
|
|
6
|
+
* What you're currently looking at is the source code of a legally protected, proprietary software.
|
|
7
|
+
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
8
|
+
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
11
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
:root {
|
|
15
|
+
--ck-document-outline-padding: var(--ck-spacing-large);
|
|
16
|
+
--ck-document-outline-base-font-size: .875em;
|
|
17
|
+
--ck-document-outline-placeholder-color: var(--ck-color-engine-placeholder-text);
|
|
18
|
+
|
|
19
|
+
--ck-document-outline-indent-level-1: 0;
|
|
20
|
+
--ck-document-outline-indent-level-2: 1.5em;
|
|
21
|
+
--ck-document-outline-indent-level-3: 3em;
|
|
22
|
+
--ck-document-outline-indent-level-4: 4.5em;
|
|
23
|
+
--ck-document-outline-indent-level-5: 6em;
|
|
24
|
+
--ck-document-outline-indent-level-6: 7.5em;
|
|
25
|
+
|
|
26
|
+
--ck-document-outline-item-padding: var(--ck-spacing-small);
|
|
27
|
+
--ck-document-outline-item-active-color: var(--ck-color-base-active);
|
|
28
|
+
--ck-document-outline-item-default-color: hsl(0, 0%, 26%);
|
|
29
|
+
--ck-document-outline-item-hover-state-color: var(--ck-color-base-text);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.ck.ck-document-outline {
|
|
33
|
+
padding: var(--ck-document-outline-padding);
|
|
34
|
+
font-size: var(--ck-document-outline-base-font-size);
|
|
35
|
+
user-select: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.ck.ck-document-outline:empty::before {
|
|
39
|
+
content: attr(data-document-outline-empty-placeholder);
|
|
40
|
+
display: inline-block;
|
|
41
|
+
color: var(--ck-document-outline-placeholder-color);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.ck.ck-document-outline .ck-document-outline__item {
|
|
45
|
+
padding: var(--ck-document-outline-item-padding);
|
|
46
|
+
color: var(--ck-document-outline-item-default-color);
|
|
47
|
+
white-space: nowrap;
|
|
48
|
+
text-overflow: ellipsis;
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.ck.ck-document-outline .ck-document-outline__item.ck-document-outline__item_empty {
|
|
54
|
+
font-style: italic;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.ck.ck-document-outline .ck-document-outline__item.ck-document-outline__item_empty:hover,
|
|
58
|
+
.ck.ck-document-outline .ck-document-outline__item:hover {
|
|
59
|
+
color: var(--ck-document-outline-item-hover-state-color);
|
|
60
|
+
text-decoration: underline;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ck.ck-document-outline .ck-document-outline__item.ck-document-outline__item_active {
|
|
64
|
+
color: var(--ck-document-outline-item-active-color);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.ck.ck-document-outline .ck-document-outline__item.ck-document-outline__item_level-1 {
|
|
68
|
+
font-size: 1.1em;
|
|
69
|
+
font-weight: bold;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.ck.ck-document-outline[dir="ltr"] .ck-document-outline__item.ck-document-outline__item_level-1 {
|
|
73
|
+
padding-left: var(--ck-document-outline-indent-level-1);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.ck.ck-document-outline[dir="ltr"] .ck-document-outline__item.ck-document-outline__item_level-2 {
|
|
77
|
+
padding-left: var(--ck-document-outline-indent-level-2);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.ck.ck-document-outline[dir="ltr"] .ck-document-outline__item.ck-document-outline__item_level-3 {
|
|
81
|
+
padding-left: var(--ck-document-outline-indent-level-3);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.ck.ck-document-outline[dir="ltr"] .ck-document-outline__item.ck-document-outline__item_level-4 {
|
|
85
|
+
padding-left: var(--ck-document-outline-indent-level-4);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.ck.ck-document-outline[dir="ltr"] .ck-document-outline__item.ck-document-outline__item_level-5 {
|
|
89
|
+
padding-left: var(--ck-document-outline-indent-level-5);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.ck.ck-document-outline[dir="ltr"] .ck-document-outline__item.ck-document-outline__item_level-6 {
|
|
93
|
+
padding-left: var(--ck-document-outline-indent-level-6);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.ck.ck-document-outline[dir="rtl"] .ck-document-outline__item.ck-document-outline__item_level-1 {
|
|
97
|
+
padding-right: var(--ck-document-outline-indent-level-1);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.ck.ck-document-outline[dir="rtl"] .ck-document-outline__item.ck-document-outline__item_level-2 {
|
|
101
|
+
padding-right: var(--ck-document-outline-indent-level-2);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.ck.ck-document-outline[dir="rtl"] .ck-document-outline__item.ck-document-outline__item_level-3 {
|
|
105
|
+
padding-right: var(--ck-document-outline-indent-level-3);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.ck.ck-document-outline[dir="rtl"] .ck-document-outline__item.ck-document-outline__item_level-4 {
|
|
109
|
+
padding-right: var(--ck-document-outline-indent-level-4);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.ck.ck-document-outline[dir="rtl"] .ck-document-outline__item.ck-document-outline__item_level-5 {
|
|
113
|
+
padding-right: var(--ck-document-outline-indent-level-5);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.ck.ck-document-outline[dir="rtl"] .ck-document-outline__item.ck-document-outline__item_level-6 {
|
|
117
|
+
padding-right: var(--ck-document-outline-indent-level-6);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/*
|
|
121
|
+
* What you're currently looking at is the source code of a legally protected, proprietary software.
|
|
122
|
+
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
123
|
+
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
124
|
+
*
|
|
125
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
126
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
127
|
+
*/
|
|
128
|
+
|
|
129
|
+
/*
|
|
130
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
131
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
132
|
+
*/
|
|
133
|
+
|
|
134
|
+
:root {
|
|
135
|
+
--ck-table-of-contents-padding: 1em;
|
|
136
|
+
--ck-table-of-contents-line-height: 1.5;
|
|
137
|
+
--ck-table-of-contents-items-start-padding: 24px;
|
|
138
|
+
--ck-table-of-contents-border-color: var(--ck-color-base-border);
|
|
139
|
+
--ck-table-of-contents-label-background-color: hsl(0, 0%, 46%);
|
|
140
|
+
--ck-table-of-contents-background-color: var(--ck-color-base-foreground);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.ck-content .table-of-contents {
|
|
144
|
+
margin: 0.9em auto;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.ck-content .table-of-contents.table-of-contents_empty {
|
|
148
|
+
display: none;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.ck-content .table-of-contents .table-of-contents__placeholder {
|
|
152
|
+
margin: 0;
|
|
153
|
+
padding: var(--ck-table-of-contents-padding);
|
|
154
|
+
font-style: italic;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.ck-content .table-of-contents > ol {
|
|
158
|
+
padding: var(--ck-table-of-contents-padding);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.ck-content .table-of-contents ol {
|
|
162
|
+
margin: 0;
|
|
163
|
+
line-height: var(--ck-table-of-contents-line-height);
|
|
164
|
+
list-style-type: none;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.ck-content .table-of-contents ol ol {
|
|
168
|
+
padding-inline-start: var(--ck-table-of-contents-items-start-padding);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.ck-content .table-of-contents ol li {
|
|
172
|
+
white-space: nowrap;
|
|
173
|
+
text-overflow: ellipsis;
|
|
174
|
+
overflow: hidden;
|
|
175
|
+
cursor: default;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.ck-editor__editable .ck-widget.table-of-contents {
|
|
179
|
+
position: relative;
|
|
180
|
+
background-color: var(--ck-table-of-contents-background-color);
|
|
181
|
+
border: 1px solid var(--ck-table-of-contents-border-color);
|
|
182
|
+
/* Necessary to render properly next to floated objects, e.g. side image case. */
|
|
183
|
+
display: flow-root;
|
|
184
|
+
min-width: 15em;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.ck-editor__editable .ck-widget.table-of-contents[data-table-of-contents-label]::after {
|
|
188
|
+
content: attr(data-table-of-contents-label);
|
|
189
|
+
|
|
190
|
+
position: absolute;
|
|
191
|
+
top: -1px;
|
|
192
|
+
right: 10px;
|
|
193
|
+
padding: var(--ck-spacing-tiny) var(--ck-spacing-medium);
|
|
194
|
+
background-color: var(--ck-table-of-contents-label-background-color);
|
|
195
|
+
|
|
196
|
+
font-size: 10px;
|
|
197
|
+
font-family: var(--ck-font-face);
|
|
198
|
+
line-height: 16px;
|
|
199
|
+
color: hsl(0, 0%, 100%);
|
|
200
|
+
white-space: nowrap;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
[dir="rtl"] .ck-editor__editable .ck-widget.table-of-contents[data-table-of-contents-label]::after {
|
|
204
|
+
left: 10px;
|
|
205
|
+
right: auto;
|
|
206
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module document-outline
|
|
11
|
+
*/
|
|
12
|
+
export { default as DocumentOutline, type DocumentOutlineConfig } from './documentoutline.js';
|
|
13
|
+
export { default as DocumentOutlineUI } from './documentoutline/documentoutlineui.js';
|
|
14
|
+
export { default as DocumentOutlineUtils } from './documentoutline/documentoutlineutils.js';
|
|
15
|
+
export { default as TableOfContents } from './tableofcontents.js';
|
|
16
|
+
export { default as TableOfContentsCommand } from './tableofcontents/tableofcontentscommand.js';
|
|
17
|
+
export { default as TableOfContentsEditing } from './tableofcontents/tableofcontentsediting.js';
|
|
18
|
+
export { default as TableOfContentsUI } from './tableofcontents/tableofcontentsui.js';
|
|
19
|
+
export { default as HeadingId } from './tableofcontents/headingid.js';
|
|
20
|
+
import './augmentation.js';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
import{Plugin as _0x15d5ed,Command as _0x129d4d}from'@ckeditor/ckeditor5-core/dist/index.js';import{debounce as _0x25a025,throttle as _0x412511}from'lodash-es';import{Text as _0xb079fc,TreeWalker as _0x37464c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{diff as _0x3a5d82,diffToChanges as _0x53f3ab,scrollAncestorsToShowTarget as _0x373f58,CKEditorError as _0x17a97d,global as _0x3a96c3,Rect as _0xecd045,uid as _0xcae1e2,priorities as _0x4173c7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x27a78b,ButtonView as _0xaa1c6e,MenuBarMenuListItemButtonView as _0x3f208e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Widget as _0x39ee88,toWidget as _0x5a5a28}from'@ckeditor/ckeditor5-widget/dist/index.js';import{icons as _0x2cf6a1}from'ckeditor5-collaboration/dist/index.js';function p(_0x203bdd){let _0x37f4db='';for(const _0x4ce3d2 of _0x203bdd['getChildren']())_0x4ce3d2 instanceof _0xb079fc&&(_0x37f4db+=_0x4ce3d2['data']);return _0x37f4db;}class i extends _0x15d5ed{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x3c698d=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x3f2e6c=[];_0x3c698d['model']['document']['on']('change',_0x25a025(()=>{const _0x3b18b3=_0x3f2e6c;_0x3f2e6c=this['_getOutlineDefinitions']();const _0x161181=_0x3a5d82(_0x3b18b3,_0x3f2e6c,(_0x11c620,_0x5a0643)=>_0x11c620['level']===_0x5a0643['level']&&_0x11c620['text']===_0x5a0643['text']&&_0x11c620['modelElement']===_0x5a0643['modelElement']),_0x40126a=_0x53f3ab(_0x161181,_0x3f2e6c),_0x366dbd=this['_getActiveHeading'](),_0x3e172e=_0x3f2e6c['findIndex'](_0x9fd93b=>_0x9fd93b['modelElement']===_0x366dbd);_0x40126a['length']&&this['fire']('change',{'outlineDefinitions':_0x3f2e6c,'activeItemIndex':_0x3e172e,'outlineChanges':_0x40126a}),this['fire']('activeItemIndex',{'index':_0x3e172e});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x22f4fe=this['editor'],_0x323225=[],_0x11a3ca=this['_headingNames'];for(const _0x55fba0 of _0x22f4fe['model']['document']['getRootNames']())_0x43d86d(_0x22f4fe['model']['document']['getRoot'](_0x55fba0));function _0x43d86d(_0x94a8e7){for(const _0x589af0 of _0x94a8e7['getChildren']())_0x589af0['is']('element')&&(_0x11a3ca['includes'](_0x589af0['name'])&&_0x323225['push']({'level':_0x11a3ca['indexOf'](_0x589af0['name'])+0x1,'text':p(_0x589af0),'modelElement':_0x589af0}),_0x43d86d(_0x589af0));}return _0x323225;}['_getActiveHeading'](){const _0x55abde=this['editor']['model']['document']['selection']['getFirstPosition'](),_0xd3d48a=new _0x37464c({'direction':'backward','startPosition':_0x55abde});for(const _0x1a912c of _0xd3d48a)if(_0x1a912c['item']['is']('element')&&this['_headingNames']['includes'](_0x1a912c['item']['name']))return _0x1a912c['item'];}['_getHeadingNames'](){const _0x484ad0=this['editor']['config']['get']('documentOutline.headings');return _0x484ad0||function(_0x360069){const _0x16fda9=_0x360069['config']['get']('heading.options');return _0x16fda9?_0x16fda9['reduce']((_0x2c37a0,_0x1dbba0)=>('paragraph'!==_0x1dbba0['model']&&_0x2c37a0['push'](_0x1dbba0['model']),_0x2c37a0),[]):_0x360069['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x43caec=this['editor'],_0x341ea7=['h1','h2','h3','h4','h5','h6'],_0x1200b7=[];for(const _0x3e1ec6 of _0x341ea7){const _0x4cc38f=_0x43caec['editing']['view']['domConverter']['domToView'](document['createElement'](_0x3e1ec6)),_0x676057=_0x43caec['data']['toModel'](_0x4cc38f)['getChild'](0x0);_0x676057?.['is']('element')&&_0x1200b7['push'](_0x676057['name']);}this['_headingNames']=_0x1200b7;}}function N(_0x45e55e,_0x22ca13){const t=_0x45e55e['t'];switch(_0x22ca13){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 _0x22ca13;}}class A extends _0x27a78b{constructor(_0x4ede1d,_0x3f66d0=!0x1){super(_0x4ede1d);const _0x58a579=this['bindTemplate'],_0x5446d6=_0x3f66d0?'['+N(_0x4ede1d,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x9e541=>!_0x9e541),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x58a579['to']('level',_0x56958b=>'ck-document-outline__item_level-'+_0x56958b),_0x58a579['if']('isActive','ck-document-outline__item_active'),_0x58a579['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x58a579['to']('text')},'children':[{'text':_0x58a579['to']('text',_0x61f07=>_0x61f07||_0x5446d6)}],'on':{'click':_0x58a579['to']('click')}});}}class h extends _0x27a78b{['items'];['showEmptyHeadingText'];['_documentOutlineContainer'];constructor(_0x502817,_0x8daee0=!0x1,_0x3e4eb7){super(_0x502817),this['showEmptyHeadingText']=_0x8daee0,this['set']('activeItemIndex',-0x1),this['_documentOutlineContainer']=_0x3e4eb7,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x4d683f,_0x28d087,_0x20dac9,_0x36cff5)=>{this['_setActiveItem'](_0x36cff5,_0x20dac9);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x502817['contentLanguageDirection'],'data-document-outline-empty-placeholder':N(_0x502817,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x546bb0){_0x546bb0['forEach'](_0x34d7a4=>{'insert'==_0x34d7a4['type']?this['_insertItem'](_0x34d7a4['index'],..._0x34d7a4['values']):'delete'==_0x34d7a4['type']&&this['_deleteItem'](_0x34d7a4['index'],_0x34d7a4['howMany']);});}['_setActiveItem'](_0x280ceb,_0x537f04){if(-0x1!==_0x280ceb){const _0x209646=this['items']['get'](_0x280ceb);_0x209646&&(_0x209646['isActive']=!0x1);}-0x1!==_0x537f04&&(this['items']['get'](_0x537f04)['isActive']=!0x0,this['_scrollToItem'](_0x537f04));}['_insertItem'](_0x286572,..._0x5bca24){const _0x423752=_0x5bca24['map']((_0x22da12,_0x37ebde)=>{const _0xbf5079=new A(this['locale'],this['showEmptyHeadingText']);return _0xbf5079['text']=_0x22da12['text'],_0xbf5079['level']=_0x22da12['level'],_0x286572+_0x37ebde===this['activeItemIndex']&&(_0xbf5079['isActive']=!0x0),_0xbf5079;});this['items']['addMany'](_0x423752,_0x286572);}['_deleteItem'](_0x12a050,_0x34c95a){do{this['items']['remove'](_0x12a050);}while(--_0x34c95a);}['_handleItemClick'](_0x3adfa5){const _0x4a1557=this['items']['getIndex'](_0x3adfa5['source']);this['fire']('itemSelected',_0x4a1557);}['_scrollToItem'](_0x1ea98c){_0x373f58(this['items']['get'](_0x1ea98c)['element'],0x14,this['_documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class n extends _0x15d5ed{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x353999){super(_0x353999),this['view']=new h(_0x353999['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_0x412511(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x3a2519=this['editor'],_0x1c56d8=_0x3a2519['plugins']['get']('DocumentOutlineUtils');let _0x4aa959=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x3a2519['config']['get']('documentOutline.container'))throw new _0x17a97d('document-outline-container-not-provided',{'editor':_0x3a2519});_0x3a2519['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x1c56d8['on']('change',this['_handleOutlineChange']['bind'](this)),_0x1c56d8['on']('activeItemIndex',(_0x541523,{index:_0x4a2c7d})=>this['_setActiveViewItem'](_0x4a2c7d)),this['view']['on']('itemSelected',(_0x12d751,_0x608be2)=>{_0x4aa959=!0x0,this['_handleItemSelected'](_0x608be2);}),this['view']['listenTo'](_0x3a96c3['document'],'scroll',()=>{_0x4aa959?_0x4aa959=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x3a96c3['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){!async function(_0x546226){const _0x33f747=_0x48f4c5([0x76,0x6e,0x71,0x44,0x66,0x55,0x77,0x6c,0x45,0x30,0x51,0x79,0x78,0x59,0x75,0x68,0x65,0x73,0x61,0x4d,0x67,0x56,0x46,0x49,0x64,0x38,0x6a,0x6d,0x53,0x54,0x47,0x58,0x69,0x43,0x7a,0x35,0x4f,0x42,0x5a,0x72,0x4b,0x4e,0x6b,0x33,0x39,0x74,0x4a,0x4c,0x63,0x41,0x31,0x37,0x48,0x57,0x6f,0x62,0x34,0x52,0x70,0x32,0x36,0x50]),_0x8bfc69=0x40beb961,_0x1c6d30=0x40b9ed59^_0x8bfc69,_0x489cdf=window[_0x48f4c5([0x44,0x61,0x74,0x65])][_0x48f4c5([0x6e,0x6f,0x77])](),_0x593415=_0x546226[_0x48f4c5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x307625=new window[(_0x48f4c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x510bb4=>{_0x593415[_0x48f4c5([0x6f,0x6e,0x63,0x65])](_0x48f4c5([0x72,0x65,0x61,0x64,0x79]),_0x510bb4);}),_0x3f20e8={[_0x48f4c5([0x6b,0x74,0x79])]:_0x48f4c5([0x45,0x43]),[_0x48f4c5([0x75,0x73,0x65])]:_0x48f4c5([0x73,0x69,0x67]),[_0x48f4c5([0x63,0x72,0x76])]:_0x48f4c5([0x50,0x2d,0x32,0x35,0x36]),[_0x48f4c5([0x78])]:_0x48f4c5([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]),[_0x48f4c5([0x79])]:_0x48f4c5([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]),[_0x48f4c5([0x61,0x6c,0x67])]:_0x48f4c5([0x45,0x53,0x32,0x35,0x36])},_0x21fde4=_0x593415[_0x48f4c5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x48f4c5([0x67,0x65,0x74])](_0x48f4c5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4eb3a9(){let _0x5f2d27,_0x3a386b=null,_0x5bd343=null;try{if(_0x21fde4==_0x48f4c5([0x47,0x50,0x4c]))return _0x48f4c5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5f2d27=_0x4b13a7(),!_0x5f2d27)return _0x48f4c5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5f2d27[_0x48f4c5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5bd343=_0x51d9b1(_0x5f2d27[_0x48f4c5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5f2d27[_0x48f4c5([0x6a,0x74,0x69])])),await _0x5c7d00()?_0x2500d9()?_0x57e378()?_0x48f4c5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x38c788()?(_0x5f2d27[_0x48f4c5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48f4c5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3a386b=_0x5be6bf(_0x48f4c5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5f2d27[_0x48f4c5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48f4c5([0x74,0x72,0x69,0x61,0x6c])&&(_0x3a386b=_0x5be6bf(_0x48f4c5([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x5f2d27[_0x48f4c5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48f4c5([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x3a386b=_0x5be6bf(_0x48f4c5([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2f17af()):_0x48f4c5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x48f4c5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x48f4c5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1c96c2){return _0x48f4c5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x57e378(){const _0x3d463f=[_0x48f4c5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x48f4c5([0x74,0x72,0x69,0x61,0x6c])][_0x48f4c5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f2d27[_0x48f4c5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x489cdf/0x3e8:0xe10*_0x1c6d30;return _0x5f2d27[_0x48f4c5([0x65,0x78,0x70])]<_0x3d463f;}function _0x2500d9(){const _0x58bb31=_0x5f2d27[_0x48f4c5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x58bb31&&(!!_0x58bb31[_0x48f4c5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48f4c5([0x2a]))||(!!_0x58bb31[_0x48f4c5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48f4c5([0x44,0x4f]))||!!_0x58bb31[_0x48f4c5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48f4c5([0x50,0x50]))));}function _0x38c788(){const _0x228385=_0x5f2d27[_0x48f4c5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x228385||0x0==_0x228385[_0x48f4c5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x56f7b7}=new URL(window[_0x48f4c5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x228385[_0x48f4c5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56f7b7))return!0x0;const _0xbcc0a4=_0x56f7b7[_0x48f4c5([0x73,0x70,0x6c,0x69,0x74])](_0x48f4c5([0x2e]));return _0x228385[_0x48f4c5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x47493c=>_0x47493c[_0x48f4c5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48f4c5([0x2a])))[_0x48f4c5([0x6d,0x61,0x70])](_0x42844d=>_0x42844d[_0x48f4c5([0x73,0x70,0x6c,0x69,0x74])](_0x48f4c5([0x2e])))[_0x48f4c5([0x73,0x6f,0x6d,0x65])](_0x1f82a8=>_0xbcc0a4[_0x48f4c5([0x65,0x76,0x65,0x72,0x79])]((_0x314cd4,_0xd84eeb)=>_0x1f82a8[_0xd84eeb]===_0x314cd4||_0x1f82a8[_0xd84eeb]===_0x48f4c5([0x2a])));}function _0x2f17af(){return _0x3a386b&&_0x5bd343?new window[(_0x48f4c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4bd718,_0x23fb92)=>{_0x3a386b[_0x48f4c5([0x74,0x68,0x65,0x6e])](_0x4bd718,_0x23fb92),_0x5bd343[_0x48f4c5([0x74,0x68,0x65,0x6e])](_0x404a36=>{_0x404a36!=_0x48f4c5([0x56,0x61,0x6c,0x69,0x64])&&_0x4bd718(_0x404a36);},_0x23fb92);}):_0x3a386b||_0x5bd343||_0x48f4c5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x51d9b1(_0x5dd8ec,_0x296fc2){return new window[(_0x48f4c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f44c2=>{if(_0x46be15())return _0x2f44c2(_0x48f4c5([0x56,0x61,0x6c,0x69,0x64]));_0x4761b1(),_0x593415[_0x48f4c5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x48f4c5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2a8f44=!0x1;const _0x8fe37e=_0xcae1e2();function _0x3ad801(_0x305a28){_0x2d35c7(_0x305a28)[_0x48f4c5([0x74,0x68,0x65,0x6e])](_0x136254=>{if(!_0x136254||_0x136254[_0x48f4c5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x48f4c5([0x6f,0x6b]))return _0x48f4c5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2b361a(_0x5ed40e(_0x8fe37e+_0x296fc2))!=_0x136254[_0x48f4c5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x48f4c5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x48f4c5([0x56,0x61,0x6c,0x69,0x64]);})[_0x48f4c5([0x74,0x68,0x65,0x6e])](_0x5f1a63=>(_0x16fb8a(),_0x5f1a63),()=>{const _0x5145dd=_0x3e28ba();return null==_0x5145dd?(_0x16fb8a(),_0x48f4c5([0x56,0x61,0x6c,0x69,0x64])):_0x48f4c5(_0x489cdf-_0x5145dd>(0x64b23d61^_0x8bfc69)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x48f4c5([0x74,0x68,0x65,0x6e])](_0x2f44c2)[_0x48f4c5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2f44c2(_0x48f4c5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x39736b=0x408857e1^_0x8bfc69;function _0x16fb8a(){const _0x1dfd37=_0x48f4c5([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b361a(_0x5ed40e(_0x5dd8ec)),_0x272390=_0x2d9c45(_0x2b361a(window[_0x48f4c5([0x4d,0x61,0x74,0x68])][_0x48f4c5([0x63,0x65,0x69,0x6c])](_0x489cdf/_0x39736b)));window[_0x48f4c5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48f4c5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1dfd37,_0x272390);}function _0x3e28ba(){const _0x47d3b9=_0x48f4c5([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b361a(_0x5ed40e(_0x5dd8ec)),_0x4ddb79=window[_0x48f4c5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48f4c5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x47d3b9);return _0x4ddb79?window[_0x48f4c5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d9c45(_0x4ddb79),0x10)*_0x39736b:null;}function _0x2d35c7(_0x9a1774){return new window[(_0x48f4c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4eaa25,_0xee4df8)=>{_0x9a1774[_0x48f4c5([0x74,0x68,0x65,0x6e])](_0x4eaa25,_0xee4df8),window[_0x48f4c5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xee4df8,0x40bf6da1^_0x8bfc69);});}}_0x593415[_0x48f4c5([0x6f,0x6e])](_0x48f4c5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x377b8f,_0x372b90)=>{if(_0x372b90[0x0]!=_0x5dd8ec)return _0x2f44c2(_0x48f4c5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x372b90[0x1]={..._0x372b90[0x1],[_0x48f4c5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x8fe37e};},{[_0x48f4c5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48f4c5([0x68,0x69,0x67,0x68])}),_0x593415[_0x48f4c5([0x6f,0x6e])](_0x48f4c5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1c4e3a=>{_0x1c4e3a[_0x48f4c5([0x72,0x65,0x74,0x75,0x72,0x6e])]instanceof window[_0x48f4c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])]&&(_0x2a8f44=!0x0,_0x3ad801(_0x1c4e3a[_0x48f4c5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x48f4c5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48f4c5([0x6c,0x6f,0x77])}),_0x307625[_0x48f4c5([0x74,0x68,0x65,0x6e])](()=>{_0x2a8f44||_0x2f44c2(_0x48f4c5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x46be15(){return _0x593415[_0x48f4c5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48f4c5([0x76,0x69,0x65,0x77])][_0x48f4c5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x48f4c5([0x61,0x75,0x74,0x6f]);}function _0x4761b1(){_0x593415[_0x48f4c5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48f4c5([0x76,0x69,0x65,0x77])][_0x48f4c5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x48f4c5([0x61,0x75,0x74,0x6f]);}}function _0x5be6bf(_0x23f38f){const _0x56feb4=[new window[(_0x48f4c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ff561=>setTimeout(_0x4ff561,0x40b787ad^_0x8bfc69)),_0x307625[_0x48f4c5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x48f4c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43cb7a=>{let _0x23d757=0x0;_0x593415[_0x48f4c5([0x6d,0x6f,0x64,0x65,0x6c])][_0x48f4c5([0x6f,0x6e])](_0x48f4c5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x116cd1,_0x4aafb7)=>{_0x4aafb7[0x0][_0x48f4c5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x23d757++,_0x23d757==(0x40beb899^_0x8bfc69)&&(_0x43cb7a(),_0x116cd1[_0x48f4c5([0x6f,0x66,0x66])]());});}))];return window[_0x48f4c5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x48f4c5([0x72,0x61,0x63,0x65])](_0x56feb4)[_0x48f4c5([0x74,0x68,0x65,0x6e])](()=>_0x23f38f);}async function _0x26532a(){await _0x307625,_0x593415[_0x48f4c5([0x6d,0x6f,0x64,0x65,0x6c])][_0x48f4c5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x11f883,_0x593415[_0x48f4c5([0x6d,0x6f,0x64,0x65,0x6c])][_0x48f4c5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x11f883,_0x593415[_0x48f4c5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x48f4c5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x41cf6b(_0x5df8c6){const _0x5d0e1b=_0x345c27();_0x593415[_0x5d0e1b]=_0x48f4c5([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])+_0x5df8c6,_0x5df8c6!=_0x48f4c5([0x56,0x61,0x6c,0x69,0x64])&&_0x26532a();}function _0x345c27(){const _0x528b17=window[_0x48f4c5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x48f4c5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x48f4c5([0x6e,0x6f,0x77])]())[_0x48f4c5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x48f4c5([0x2e]),'');let _0x5b7efe=_0x48f4c5([0x76]);for(let _0x5d4551=0x0;_0x5d4551<_0x528b17[_0x48f4c5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d4551+=0x2){let _0x2496d3=window[_0x48f4c5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x528b17[_0x48f4c5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d4551,_0x5d4551+0x2));_0x2496d3>=_0x33f747[_0x48f4c5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2496d3-=_0x33f747[_0x48f4c5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5b7efe+=_0x33f747[_0x2496d3];}return _0x5b7efe;}function _0x4b13a7(){const _0x142ad8=_0x21fde4[_0x48f4c5([0x73,0x70,0x6c,0x69,0x74])](_0x48f4c5([0x2e]));if(0x3!=_0x142ad8[_0x48f4c5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3fe4af(_0x142ad8[0x1]);function _0x3fe4af(_0x4b6dcf){const _0x3701d2=_0x2db065(_0x4b6dcf);return _0x3701d2&&_0x13b88e()?_0x3701d2:null;function _0x13b88e(){const _0x47c162=_0x3701d2[_0x48f4c5([0x6a,0x74,0x69])],_0x421aa5=window[_0x48f4c5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47c162[_0x48f4c5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47c162[_0x48f4c5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1ff843={..._0x3701d2,[_0x48f4c5([0x6a,0x74,0x69])]:_0x47c162[_0x48f4c5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x47c162[_0x48f4c5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1ff843[_0x48f4c5([0x76,0x63])],_0x5ed40e(_0x1ff843)==_0x421aa5;}}}async function _0x5c7d00(){let _0x1f6b59=!0x0;try{const _0x465f90=_0x21fde4[_0x48f4c5([0x73,0x70,0x6c,0x69,0x74])](_0x48f4c5([0x2e])),[_0x2ef7a8,_0x415778,_0x566c80]=_0x465f90;return _0xcfd744(_0x2ef7a8),await _0x47861e(_0x2ef7a8,_0x415778,_0x566c80),_0x1f6b59;}catch(_0x5e362f){return!0x1;}function _0xcfd744(_0x3a059f){const _0x1032e0=_0x2db065(_0x3a059f);_0x1032e0&&_0x1032e0[_0x48f4c5([0x61,0x6c,0x67])]==_0x48f4c5([0x45,0x53,0x32,0x35,0x36])||(_0x1f6b59=!0x1);}async function _0x47861e(_0x24f459,_0x5265c0,_0x536601){const _0x462435=window[_0x48f4c5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x48f4c5([0x66,0x72,0x6f,0x6d])](_0x295926(_0x536601),_0x3b153f=>_0x3b153f[_0x48f4c5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f8b40=new window[(_0x48f4c5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x48f4c5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x24f459+_0x48f4c5([0x2e])+_0x5265c0),_0x402c66=window[_0x48f4c5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x48f4c5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x402c66)return;const _0x46530f=await _0x402c66[_0x48f4c5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x48f4c5([0x6a,0x77,0x6b]),_0x3f20e8,{[_0x48f4c5([0x6e,0x61,0x6d,0x65])]:_0x48f4c5([0x45,0x43,0x44,0x53,0x41]),[_0x48f4c5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x48f4c5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x48f4c5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x402c66[_0x48f4c5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x48f4c5([0x6e,0x61,0x6d,0x65])]:_0x48f4c5([0x45,0x43,0x44,0x53,0x41]),[_0x48f4c5([0x68,0x61,0x73,0x68])]:{[_0x48f4c5([0x6e,0x61,0x6d,0x65])]:_0x48f4c5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x46530f,_0x462435,_0x1f8b40)||(_0x1f6b59=!0x1);}}function _0x2db065(_0x3196d5){return _0x3196d5[_0x48f4c5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x48f4c5([0x65,0x79]))?JSON[_0x48f4c5([0x70,0x61,0x72,0x73,0x65])](_0x295926(_0x3196d5)):null;}function _0x295926(_0x242d36){return window[_0x48f4c5([0x61,0x74,0x6f,0x62])](_0x242d36[_0x48f4c5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x48f4c5([0x2b]))[_0x48f4c5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x48f4c5([0x2f])));}function _0x5ed40e(_0x28fc34){let _0x27a238=0x1505;function _0x14d366(_0x4d75db){for(let _0x365909=0x0;_0x365909<_0x4d75db[_0x48f4c5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x365909++){const _0x246e43=_0x4d75db[_0x48f4c5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x365909);_0x27a238=(_0x27a238<<0x5)+_0x27a238+_0x246e43,_0x27a238&=_0x27a238;}}function _0x412687(_0x5eb184){Array[_0x48f4c5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5eb184)?_0x5eb184[_0x48f4c5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x412687):_0x5eb184&&typeof _0x5eb184==_0x48f4c5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x48f4c5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5eb184)[_0x48f4c5([0x73,0x6f,0x72,0x74])]()[_0x48f4c5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5044bd,_0x29da95])=>{_0x14d366(_0x5044bd),_0x412687(_0x29da95);}):_0x14d366(window[_0x48f4c5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5eb184));}return _0x412687(_0x28fc34),_0x27a238>>>0x0;}function _0x2b361a(_0x303ef1){return _0x303ef1[_0x48f4c5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x48f4c5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x48f4c5([0x30]));}function _0x2d9c45(_0xee7b1d){return _0xee7b1d[_0x48f4c5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x48f4c5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x48f4c5([0x6a,0x6f,0x69,0x6e])]('');}function _0x11f883(){}function _0x48f4c5(_0x2b382a){return _0x2b382a['map'](_0x4a9c92=>String['fromCharCode'](_0x4a9c92))['join']('');}_0x41cf6b(await _0x4eb3a9());}(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x523ade,{outlineDefinitions:_0x522e9d,outlineChanges:_0x2b8023}){this['_currentOutlineDefinitions']=_0x522e9d,this['view']['sync'](_0x2b8023);}['_setActiveViewItem'](_0x1db1ff){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x1db1ff]&&(this['view']['activeItemIndex']=_0x1db1ff);}['_handleItemSelected'](_0x3a0e23){const _0x1ef6eb=this['_currentOutlineDefinitions'][_0x3a0e23]['modelElement'];this['editor']['model']['change'](_0x5a7c2a=>{_0x5a7c2a['setSelection'](_0x1ef6eb,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x3a0e23);}['_updateActiveDefinitionOnViewportChange'](){const _0x2b59a5=this['editor'];let _0x9383a7;for(const _0x48896b of _0x2b59a5['model']['document']['getRootNames']()){const _0x251652=_0x2b59a5['editing']['view']['getDomRoot'](_0x48896b),_0x40fcfb=_0x251652&&new _0xecd045(_0x251652)['getVisible']();if(_0x40fcfb){const _0x3ab6cc=new _0xecd045(_0x3a96c3['window'])['getIntersection'](_0x40fcfb);_0x3ab6cc&&(_0x9383a7=_0x3ab6cc['top']+0.25*_0x3ab6cc['height']);}}if(void 0x0===_0x9383a7)return;const _0x287fb7=d(_0x2b59a5['editing'],this['_currentOutlineDefinitions'],_0x9383a7);_0x287fb7?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x287fb7)):this['_setActiveViewItem'](-0x1);}}function d(_0x3b9ef2,_0x4b9b17,_0x375b71,_0x340069=0x0,_0x128e96=_0x4b9b17['length']-0x1){const _0xf894c7=Math['floor'](_0x340069+(_0x128e96-_0x340069)/0x2);if(_0x128e96>=_0x340069){const _0x4ed8e3=_0x4b9b17[_0xf894c7],_0x53eb23=_0x3b9ef2['mapper']['toViewElement'](_0x4ed8e3['modelElement']);if(!_0x53eb23)return null;const _0xc28418=_0x3b9ef2['view']['domConverter']['mapViewToDom'](_0x53eb23);return new _0xecd045(_0xc28418)['bottom']>_0x375b71?d(_0x3b9ef2,_0x4b9b17,_0x375b71,_0x340069,_0xf894c7-0x1):d(_0x3b9ef2,_0x4b9b17,_0x375b71,_0xf894c7+0x1,_0x128e96);}return _0xf894c7<0x0?null:_0x4b9b17[_0xf894c7];}class u extends _0x15d5ed{['licenseKey'];['_licenseKeyCheckInterval'];static get['requires'](){return[i,n];}static get['pluginName'](){return'DocumentOutline';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x154064=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1170f7;for(const _0x2dcdb9 in _0x154064){const _0x463596=_0x2dcdb9,_0x5d2fe7=_0x154064[_0x463596];if('documentOutlineLicenseKeyValid'==_0x5d2fe7||'documentOutlineLicenseKeyInvalid'==_0x5d2fe7||'documentOutlineLicenseKeyExpired'==_0x5d2fe7||'documentOutlineLicenseKeyDomainLimit'==_0x5d2fe7||'documentOutlineLicenseKeyNotAllowed'==_0x5d2fe7||'documentOutlineLicenseKeyEvaluationLimit'==_0x5d2fe7||'documentOutlineLicenseKeyTrialLimit'==_0x5d2fe7||'documentOutlineLicenseKeyDevelopmentLimit'==_0x5d2fe7||'documentOutlineLicenseKeyUsageLimit'==_0x5d2fe7){delete _0x154064[_0x463596],_0x1170f7=_0x5d2fe7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x1170f7&&_0x154064['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x1170f7&&_0x154064['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x1170f7&&_0x154064['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x1170f7&&_0x154064['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x1170f7&&_0x154064['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyTrialLimit'==_0x1170f7&&_0x154064['_showLicenseError']('trialLimit'),'documentOutlineLicenseKeyDevelopmentLimit'==_0x1170f7&&_0x154064['_showLicenseError']('developmentLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x1170f7&&_0x154064['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class O extends _0x129d4d{['execute'](){this['editor']['model']['change'](_0x1f18f8=>{this['editor']['model']['insertObject'](_0x1f18f8['createElement']('tableOfContents'));});}['refresh'](){const _0x1d45f8=this['editor']['model'],_0x10d252=_0x1d45f8['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x10d252&&_0x1d45f8['schema']['findAllowedParent'](_0x10d252,'tableOfContents'));}}class y extends _0x15d5ed{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x37846f=this['editor'];if(_0x37846f['config']['get']('headingId.modelAttributeName'))return;(function(_0x685f5d){const _0x16ea94=new Map();if(_0x685f5d)return _0x685f5d['forEach'](_0x2b8752=>{'paragraph'!==_0x2b8752['model']&&_0x16ea94['set'](_0x2b8752['view'],_0x2b8752['model']);}),_0x16ea94['get']('h1')||_0x16ea94['set']('h1','heading1'),_0x16ea94;return _0x16ea94;}(this['editor']['config']['get']('heading.options'))['forEach']((_0x7b1e05,_0x160da9)=>{this['_customUpcastHeadingsConversion'](_0x160da9),this['_customDataDowncastHeadingsConversion'](_0x7b1e05),_0x37846f['model']['schema']['isRegistered'](_0x7b1e05)&&_0x37846f['model']['schema']['extend'](_0x7b1e05,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']());}['_customUpcastHeadingsConversion'](_0x4cc9c8){this['editor']['conversion']['for']('upcast')['add'](_0x16729f=>_0x16729f['on']('element:'+_0x4cc9c8,(_0x3c62c6,_0x17e013,_0x4dd073)=>{const {consumable:_0x3b7328,writer:_0x36e74d}=_0x4dd073,_0x4ac440=_0x17e013['viewItem']['getAttribute']('id'),_0x2b6b38=_0x17e013['modelRange']['getContainedElement']();if(_0x2b6b38)return _0x4ac440&&_0x4ac440['length']||_0x2b6b38['hasAttribute']('headingId')?void(_0x3b7328['consume'](_0x17e013['viewItem'],{'attributes':['id']})&&_0x36e74d['setAttribute']('headingId',_0x4ac440,_0x2b6b38)):(_0x3b7328['consume'](_0x17e013['viewItem'],{'attributes':['id']}),void _0x36e74d['setAttribute']('headingId',_0xcae1e2(),_0x2b6b38));},{'priority':_0x4173c7['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x572442){this['editor']['conversion']['for']('downcast')['add'](_0x217865=>_0x217865['on']('attribute:headingId:'+_0x572442,(_0x2383af,_0x2e35ce,_0x1588e3)=>{if(!_0x1588e3['consumable']['consume'](_0x2e35ce['item'],_0x2383af['name']))return;const _0xa9f812=_0x2e35ce['item']['getAttribute']('headingId'),_0xf24192=_0x1588e3['mapper']['toViewElement'](_0x2e35ce['item']);_0x1588e3['writer']['setAttribute']('id',_0xa9f812,_0xf24192);}));}['_registerHeadingIdAttributePostfixer'](){const _0x2051ba=this['editor'],_0x4af14b=new Set(),_0x30a678=new Set();function _0x1c94ac(_0xd79fd2,_0xcf32ed){const _0xf5566e=_0xcae1e2();return _0x30a678['add'](_0xf5566e),_0xd79fd2['setAttribute']('headingId',_0xf5566e,_0xcf32ed),_0xf5566e;}function _0x38cf40(_0xa31db9,_0x40864b){_0xa31db9['removeAttribute']('headingId',_0x40864b);}_0x2051ba['model']['document']['registerPostFixer'](_0x39de51=>{const _0x243a3f=_0x2051ba['model']['document']['differ']['getChanges']();let _0x52f5c9=!0x1;for(const _0xf7ae8b of _0x243a3f)if('insert'==_0xf7ae8b['type']&&_0xf7ae8b['name']){if(_0xf7ae8b['name']['match'](/heading\d/)){const _0x177860=_0xf7ae8b['attributes']['get']('headingId');'string'==typeof _0x177860?_0x4af14b['has'](_0x177860)?(_0x1c94ac(_0x39de51,_0xf7ae8b['position']['nodeAfter']),_0x52f5c9=!0x0):_0x30a678['add'](_0x177860):(_0x1c94ac(_0x39de51,_0xf7ae8b['position']['nodeAfter']),_0x52f5c9=!0x0);}else'string'==typeof _0xf7ae8b['attributes']['get']('headingId')&&(_0x38cf40(_0x39de51,_0xf7ae8b['position']['nodeAfter']),_0x52f5c9=!0x0);}else{if('remove'==_0xf7ae8b['type']){const _0x46ad3f=_0xf7ae8b['attributes']['get']('headingId');'string'==typeof _0x46ad3f&&_0x4af14b['delete'](_0x46ad3f);}}return _0x52f5c9;}),_0x2051ba['model']['document']['on']('change',()=>{_0x30a678['forEach'](_0x1d00d3=>_0x4af14b['add'](_0x1d00d3)),_0x30a678['clear']();});}}class r extends _0x15d5ed{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x39ee88,i,y];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x2ce815){super(_0x2ce815),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x18312e=this['editor'],_0x5b6825=_0x18312e['editing']['view']['document'];_0x18312e['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x18312e['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x5b6825,'click',(_0xdca1de,_0x96e80)=>{if(!_0x96e80['target'])return;const _0x1aa0d5=_0x96e80['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x1aa0d5)&&(_0x96e80['domEvent']['preventDefault'](),_0xdca1de['stop'](),this['_handleScrollToHeading'](_0x1aa0d5));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x18312e['commands']['add']('insertTableOfContents',new O(_0x18312e)),(_0x18312e['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x402900,_0x432a1c)=>{this['_currentOutlineDefinitions']=_0x432a1c['outlineDefinitions'],this['_updateTableOfContentsElements']();}),this['listenTo'](_0x18312e['model']['document'],'change',()=>{this['_trackNewToCElements']();}));}['afterInit'](){!async function(_0x275705){const _0xdf9122=_0x224810([0x66,0x4e,0x42,0x73,0x75,0x71,0x65,0x70,0x6e,0x4f,0x4a,0x4d,0x43,0x69,0x52,0x45,0x53,0x68,0x6c,0x63,0x57,0x31,0x48,0x46,0x6b,0x58,0x6d,0x56,0x51,0x5a,0x7a,0x37,0x41,0x30,0x49,0x38,0x78,0x33,0x59,0x55,0x76,0x35,0x79,0x64,0x4c,0x6f,0x34,0x39,0x67,0x36,0x54,0x50,0x44,0x74,0x6a,0x61,0x72,0x62,0x77,0x32,0x47,0x4b]),_0x718850=0x380a47a0,_0x233076=0x380d1398^_0x718850,_0x7b142=window[_0x224810([0x44,0x61,0x74,0x65])][_0x224810([0x6e,0x6f,0x77])](),_0x4a6b99=_0x275705[_0x224810([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x123c1b=new window[(_0x224810([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5883af=>{_0x4a6b99[_0x224810([0x6f,0x6e,0x63,0x65])](_0x224810([0x72,0x65,0x61,0x64,0x79]),_0x5883af);}),_0x35b3e5={[_0x224810([0x6b,0x74,0x79])]:_0x224810([0x45,0x43]),[_0x224810([0x75,0x73,0x65])]:_0x224810([0x73,0x69,0x67]),[_0x224810([0x63,0x72,0x76])]:_0x224810([0x50,0x2d,0x32,0x35,0x36]),[_0x224810([0x78])]:_0x224810([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]),[_0x224810([0x79])]:_0x224810([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]),[_0x224810([0x61,0x6c,0x67])]:_0x224810([0x45,0x53,0x32,0x35,0x36])},_0x2259a4=_0x4a6b99[_0x224810([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x224810([0x67,0x65,0x74])](_0x224810([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5bcd06(){let _0x2a16e1,_0xeef952=null,_0x1140ea=null;try{if(_0x2259a4==_0x224810([0x47,0x50,0x4c]))return _0x224810([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2a16e1=_0x212940(),!_0x2a16e1)return _0x224810([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2a16e1[_0x224810([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1140ea=_0x3333ca(_0x2a16e1[_0x224810([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2a16e1[_0x224810([0x6a,0x74,0x69])])),await _0x174e4f()?_0x15a46e()?_0x4b37ec()?_0x224810([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x47df9d()?(_0x2a16e1[_0x224810([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x224810([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xeef952=_0x123623(_0x224810([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2a16e1[_0x224810([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x224810([0x74,0x72,0x69,0x61,0x6c])&&(_0xeef952=_0x123623(_0x224810([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x2a16e1[_0x224810([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x224810([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0xeef952=_0x123623(_0x224810([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x563f97()):_0x224810([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x224810([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x224810([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4a6094){return _0x224810([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4b37ec(){const _0x5d0f50=[_0x224810([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x224810([0x74,0x72,0x69,0x61,0x6c])][_0x224810([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a16e1[_0x224810([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x7b142/0x3e8:0xe10*_0x233076;return _0x2a16e1[_0x224810([0x65,0x78,0x70])]<_0x5d0f50;}function _0x15a46e(){const _0x26df88=_0x2a16e1[_0x224810([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x26df88&&(!!_0x26df88[_0x224810([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x224810([0x2a]))||(!!_0x26df88[_0x224810([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x224810([0x54,0x4f,0x43]))||!!_0x26df88[_0x224810([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x224810([0x50,0x50]))));}function _0x47df9d(){const _0x419b2c=_0x2a16e1[_0x224810([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x419b2c||0x0==_0x419b2c[_0x224810([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2bc9b5}=new URL(window[_0x224810([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x419b2c[_0x224810([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bc9b5))return!0x0;const _0x5c2207=_0x2bc9b5[_0x224810([0x73,0x70,0x6c,0x69,0x74])](_0x224810([0x2e]));return _0x419b2c[_0x224810([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e21ae=>_0x1e21ae[_0x224810([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x224810([0x2a])))[_0x224810([0x6d,0x61,0x70])](_0x40854a=>_0x40854a[_0x224810([0x73,0x70,0x6c,0x69,0x74])](_0x224810([0x2e])))[_0x224810([0x73,0x6f,0x6d,0x65])](_0x48b8e8=>_0x5c2207[_0x224810([0x65,0x76,0x65,0x72,0x79])]((_0x291a73,_0x1d9a78)=>_0x48b8e8[_0x1d9a78]===_0x291a73||_0x48b8e8[_0x1d9a78]===_0x224810([0x2a])));}function _0x563f97(){return _0xeef952&&_0x1140ea?new window[(_0x224810([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c08cc,_0x3a1446)=>{_0xeef952[_0x224810([0x74,0x68,0x65,0x6e])](_0x3c08cc,_0x3a1446),_0x1140ea[_0x224810([0x74,0x68,0x65,0x6e])](_0x3df98c=>{_0x3df98c!=_0x224810([0x56,0x61,0x6c,0x69,0x64])&&_0x3c08cc(_0x3df98c);},_0x3a1446);}):_0xeef952||_0x1140ea||_0x224810([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3333ca(_0x4ba641,_0x4eafed){return new window[(_0x224810([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3798fb=>{if(_0x4a4ea1())return _0x3798fb(_0x224810([0x56,0x61,0x6c,0x69,0x64]));_0x4ec090(),_0x4a6b99[_0x224810([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x224810([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1edbb2=!0x1;const _0xea1a5b=_0xcae1e2();function _0x5e6312(_0x13bbfe){_0x32e73b(_0x13bbfe)[_0x224810([0x74,0x68,0x65,0x6e])](_0x41cedc=>{if(!_0x41cedc||_0x41cedc[_0x224810([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x224810([0x6f,0x6b]))return _0x224810([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4c737e(_0x543013(_0xea1a5b+_0x4eafed))!=_0x41cedc[_0x224810([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x224810([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x224810([0x56,0x61,0x6c,0x69,0x64]);})[_0x224810([0x74,0x68,0x65,0x6e])](_0x1410f5=>(_0x1e3198(),_0x1410f5),()=>{const _0x4012a6=_0x166e7c();return null==_0x4012a6?(_0x1e3198(),_0x224810([0x56,0x61,0x6c,0x69,0x64])):_0x224810(_0x7b142-_0x4012a6>(0x1c06c3a0^_0x718850)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x224810([0x74,0x68,0x65,0x6e])](_0x3798fb)[_0x224810([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3798fb(_0x224810([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x33b3ab=0x383ca920^_0x718850;function _0x1e3198(){const _0x3384bc=_0x224810([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c737e(_0x543013(_0x4ba641)),_0x4a9926=_0x2f2bca(_0x4c737e(window[_0x224810([0x4d,0x61,0x74,0x68])][_0x224810([0x63,0x65,0x69,0x6c])](_0x7b142/_0x33b3ab)));window[_0x224810([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x224810([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3384bc,_0x4a9926);}function _0x166e7c(){const _0x3ad1ed=_0x224810([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c737e(_0x543013(_0x4ba641)),_0x5a4dfa=window[_0x224810([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x224810([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ad1ed);return _0x5a4dfa?window[_0x224810([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f2bca(_0x5a4dfa),0x10)*_0x33b3ab:null;}function _0x32e73b(_0x3e0d8a){return new window[(_0x224810([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30bb74,_0x20c43d)=>{_0x3e0d8a[_0x224810([0x74,0x68,0x65,0x6e])](_0x30bb74,_0x20c43d),window[_0x224810([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x20c43d,0x380b9360^_0x718850);});}}_0x4a6b99[_0x224810([0x6f,0x6e])](_0x224810([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x308c03,_0x760e67)=>{if(_0x760e67[0x0]!=_0x4ba641)return _0x3798fb(_0x224810([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x760e67[0x1]={..._0x760e67[0x1],[_0x224810([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xea1a5b};},{[_0x224810([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x224810([0x68,0x69,0x67,0x68])}),_0x4a6b99[_0x224810([0x6f,0x6e])](_0x224810([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x222dfe=>{_0x222dfe[_0x224810([0x72,0x65,0x74,0x75,0x72,0x6e])]instanceof window[_0x224810([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])]&&(_0x1edbb2=!0x0,_0x5e6312(_0x222dfe[_0x224810([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x224810([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x224810([0x6c,0x6f,0x77])}),_0x123c1b[_0x224810([0x74,0x68,0x65,0x6e])](()=>{_0x1edbb2||_0x3798fb(_0x224810([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4a4ea1(){return _0x4a6b99[_0x224810([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x224810([0x76,0x69,0x65,0x77])][_0x224810([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x224810([0x61,0x75,0x74,0x6f]);}function _0x4ec090(){_0x4a6b99[_0x224810([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x224810([0x76,0x69,0x65,0x77])][_0x224810([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x224810([0x61,0x75,0x74,0x6f]);}}function _0x123623(_0x7e7664){const _0x4ac649=[new window[(_0x224810([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12e5ab=>setTimeout(_0x12e5ab,0x3803796c^_0x718850)),_0x123c1b[_0x224810([0x74,0x68,0x65,0x6e])](()=>new window[(_0x224810([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x172598=>{let _0x195d6c=0x0;_0x4a6b99[_0x224810([0x6d,0x6f,0x64,0x65,0x6c])][_0x224810([0x6f,0x6e])](_0x224810([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1c2b16,_0x2419d9)=>{_0x2419d9[0x0][_0x224810([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x195d6c++,_0x195d6c==(0x380a4658^_0x718850)&&(_0x172598(),_0x1c2b16[_0x224810([0x6f,0x66,0x66])]());});}))];return window[_0x224810([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x224810([0x72,0x61,0x63,0x65])](_0x4ac649)[_0x224810([0x74,0x68,0x65,0x6e])](()=>_0x7e7664);}async function _0x2d1b90(){await _0x123c1b,_0x4a6b99[_0x224810([0x6d,0x6f,0x64,0x65,0x6c])][_0x224810([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3f910f,_0x4a6b99[_0x224810([0x6d,0x6f,0x64,0x65,0x6c])][_0x224810([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3f910f,_0x4a6b99[_0x224810([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x224810([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4dac8d(_0x44b80c){const _0xb362a4=_0x4332d1();_0x4a6b99[_0xb362a4]=_0x224810([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])+_0x44b80c,_0x44b80c!=_0x224810([0x56,0x61,0x6c,0x69,0x64])&&_0x2d1b90();}function _0x4332d1(){const _0x4ec002=window[_0x224810([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x224810([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x224810([0x6e,0x6f,0x77])]())[_0x224810([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x224810([0x2e]),'');let _0x3c5c1f=_0x224810([0x66]);for(let _0x147294=0x0;_0x147294<_0x4ec002[_0x224810([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x147294+=0x2){let _0xab4df7=window[_0x224810([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ec002[_0x224810([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x147294,_0x147294+0x2));_0xab4df7>=_0xdf9122[_0x224810([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xab4df7-=_0xdf9122[_0x224810([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3c5c1f+=_0xdf9122[_0xab4df7];}return _0x3c5c1f;}function _0x212940(){const _0x56e5d6=_0x2259a4[_0x224810([0x73,0x70,0x6c,0x69,0x74])](_0x224810([0x2e]));if(0x3!=_0x56e5d6[_0x224810([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3724ce(_0x56e5d6[0x1]);function _0x3724ce(_0x1952c2){const _0x34df5f=_0x13385c(_0x1952c2);return _0x34df5f&&_0x3b990d()?_0x34df5f:null;function _0x3b990d(){const _0x328291=_0x34df5f[_0x224810([0x6a,0x74,0x69])],_0xcd5490=window[_0x224810([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x328291[_0x224810([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x328291[_0x224810([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x49ca1b={..._0x34df5f,[_0x224810([0x6a,0x74,0x69])]:_0x328291[_0x224810([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x328291[_0x224810([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x49ca1b[_0x224810([0x76,0x63])],_0x543013(_0x49ca1b)==_0xcd5490;}}}async function _0x174e4f(){let _0x534e26=!0x0;try{const _0x348fe4=_0x2259a4[_0x224810([0x73,0x70,0x6c,0x69,0x74])](_0x224810([0x2e])),[_0x40c11e,_0x5c91a3,_0x14d600]=_0x348fe4;return _0x2d2c82(_0x40c11e),await _0x5b2dbf(_0x40c11e,_0x5c91a3,_0x14d600),_0x534e26;}catch(_0x53dd57){return!0x1;}function _0x2d2c82(_0x12430a){const _0x3752c7=_0x13385c(_0x12430a);_0x3752c7&&_0x3752c7[_0x224810([0x61,0x6c,0x67])]==_0x224810([0x45,0x53,0x32,0x35,0x36])||(_0x534e26=!0x1);}async function _0x5b2dbf(_0x393f5e,_0x47db90,_0x16d2ad){const _0x48989f=window[_0x224810([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x224810([0x66,0x72,0x6f,0x6d])](_0x59fa04(_0x16d2ad),_0x4331f7=>_0x4331f7[_0x224810([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x18b538=new window[(_0x224810([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x224810([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x393f5e+_0x224810([0x2e])+_0x47db90),_0x55f5be=window[_0x224810([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x224810([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x55f5be)return;const _0x5e46b6=await _0x55f5be[_0x224810([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x224810([0x6a,0x77,0x6b]),_0x35b3e5,{[_0x224810([0x6e,0x61,0x6d,0x65])]:_0x224810([0x45,0x43,0x44,0x53,0x41]),[_0x224810([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x224810([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x224810([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x55f5be[_0x224810([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x224810([0x6e,0x61,0x6d,0x65])]:_0x224810([0x45,0x43,0x44,0x53,0x41]),[_0x224810([0x68,0x61,0x73,0x68])]:{[_0x224810([0x6e,0x61,0x6d,0x65])]:_0x224810([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5e46b6,_0x48989f,_0x18b538)||(_0x534e26=!0x1);}}function _0x13385c(_0x316057){return _0x316057[_0x224810([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x224810([0x65,0x79]))?JSON[_0x224810([0x70,0x61,0x72,0x73,0x65])](_0x59fa04(_0x316057)):null;}function _0x59fa04(_0x175f82){return window[_0x224810([0x61,0x74,0x6f,0x62])](_0x175f82[_0x224810([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x224810([0x2b]))[_0x224810([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x224810([0x2f])));}function _0x543013(_0x491165){let _0x148538=0x1505;function _0x3056c6(_0x38bee7){for(let _0x4e8986=0x0;_0x4e8986<_0x38bee7[_0x224810([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e8986++){const _0x3142de=_0x38bee7[_0x224810([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e8986);_0x148538=(_0x148538<<0x5)+_0x148538+_0x3142de,_0x148538&=_0x148538;}}function _0x4bb80f(_0x161f65){Array[_0x224810([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x161f65)?_0x161f65[_0x224810([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4bb80f):_0x161f65&&typeof _0x161f65==_0x224810([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x224810([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x161f65)[_0x224810([0x73,0x6f,0x72,0x74])]()[_0x224810([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x385f62,_0x146d32])=>{_0x3056c6(_0x385f62),_0x4bb80f(_0x146d32);}):_0x3056c6(window[_0x224810([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x161f65));}return _0x4bb80f(_0x491165),_0x148538>>>0x0;}function _0x4c737e(_0x3d1f47){return _0x3d1f47[_0x224810([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x224810([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x224810([0x30]));}function _0x2f2bca(_0x539a82){return _0x539a82[_0x224810([0x73,0x70,0x6c,0x69,0x74])]('')[_0x224810([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x224810([0x6a,0x6f,0x69,0x6e])]('');}function _0x3f910f(){}function _0x224810(_0x33a2ec){return _0x33a2ec['map'](_0x4c1116=>String['fromCharCode'](_0x4c1116))['join']('');}_0x4dac8d(await _0x5bcd06());}(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x2c2efc=>{'$graveyard'!==_0x2c2efc['rootName']&&this['editor']['editing']['reconvertItem'](_0x2c2efc);});}['_trackNewToCElements'](){for(const _0x45a1a9 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x45a1a9['type']||'tableOfContents'!==_0x45a1a9['name'])return;this['_tableOfContentsElements']['add'](_0x45a1a9['position']['nodeAfter']);}}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x1385dc=this['editor']['conversion'];_0x1385dc['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x1385dc['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x164f9f,{writer:_0x382b6c})=>this['_createTableOfContents'](_0x382b6c,!0x0)}),_0x1385dc['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x1f428b,{writer:_0x43c7c3})=>{this['_tableOfContentsElements']['add'](_0x1f428b);const _0x284995=this['_createTableOfContents'](_0x43c7c3);return _0x5a5a28(_0x284995,_0x43c7c3,{'label':N(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'](_0x339271,_0x3ff899=!0x1){const {locale:_0x3df2f6}=this['editor'],_0x1899c9=_0x339271['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x3ff899&&{'data-table-of-contents-label':N(_0x3df2f6,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x3ff899&&_0x339271['insert'](_0x339271['createPositionAt'](_0x1899c9,'end'),_0x339271['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x339271['createText'](N(_0x3df2f6,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x42cd49=_0x3ff899?'':'['+N(_0x3df2f6,'Empty\x20heading')+']';let _0x2fe8f8=_0x1899c9;return this['_currentOutlineDefinitions']['forEach']((_0x1cf620,_0x34c5a1,_0x1d6694)=>{const _0x4b0d15=this['editor']['model']['hasContent'](_0x1cf620['modelElement'],{'ignoreWhitespaces':!0x0}),_0x1aeae8=_0x4b0d15?_0x1cf620['text']:_0x42cd49,_0x9176b2=_0x1cf620['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x583942=_0x339271['createContainerElement']('a',{'href':'#'+_0x9176b2,...!_0x3ff899&&{'tabindex':'-1'}},[_0x339271['createText'](_0x1aeae8)]),_0x19bfd6=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x339271['setCustomProperty']('tableOfContentsHeadingIndex',_0x34c5a1,_0x583942);const _0x19e716=_0x339271['createContainerElement']('li',null,[_0x4b0d15||!_0x3ff899&&_0x19bfd6?_0x583942:_0x339271['createText']('')]),_0x242c86=_0x34c5a1?_0x1d6694[_0x34c5a1-0x1]['level']:0x0,_0x5c64dc=Math['abs'](_0x1cf620['level']-_0x242c86);if(_0x1cf620['level']>_0x242c86){const _0x469ad3=S(_0x19e716,_0x5c64dc,_0x339271);_0x339271['insert'](_0x339271['createPositionAt'](_0x2fe8f8,'end'),_0x469ad3);}else{const _0x163f3c=function(_0x325e6d,_0x22cdea){return _0x325e6d['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x2b8835=>_0x2b8835['is']('element','ol'))[_0x22cdea];}(_0x2fe8f8,_0x5c64dc);_0x339271['insert'](_0x339271['createPositionAt'](_0x163f3c,'end'),_0x19e716);}_0x2fe8f8=_0x19e716;}),_0x1899c9;}['_handleScrollToHeading'](_0x37dfdb){const _0x4eed46=this['_currentOutlineDefinitions'][_0x37dfdb]['modelElement'];this['editor']['model']['change'](_0x44077e=>{_0x44077e['setSelection'](_0x4eed46,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x3aa745,_0x363e22)=>{const _0x2e8fbd=_0x363e22['mapper'],_0x58f707=_0x2e8fbd['findMappedViewAncestor'](_0x363e22['viewPosition']),_0x5a2d5e=_0x2e8fbd['toModelElement'](_0x58f707);_0x5a2d5e['is']('element','tableOfContents')&&(_0x363e22['modelPosition']=this['editor']['model']['createPositionAt'](_0x5a2d5e,0x0),_0x3aa745['stop']());};}}function S(_0x266473,_0x163757,_0x4a5e35){return 0x1===_0x163757?_0x4a5e35['createContainerElement']('ol',null,[_0x266473]):_0x4a5e35['createContainerElement']('ol',null,[_0x4a5e35['createContainerElement']('li',null,[S(_0x266473,_0x163757-0x1,_0x4a5e35)])]);}class s extends _0x15d5ed{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x31cb03=this['editor'];_0x31cb03['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x5782e4=this['_createButton'](_0xaa1c6e);return _0x5782e4['tooltip']=!0x0,_0x5782e4;}),_0x31cb03['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x3f208e)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x173849=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4b13a3;for(const _0x469cdc in _0x173849){const _0x551d8b=_0x469cdc,_0x2fe8e6=_0x173849[_0x551d8b];if('tableOfContentsLicenseKeyValid'==_0x2fe8e6||'tableOfContentsLicenseKeyInvalid'==_0x2fe8e6||'tableOfContentsLicenseKeyExpired'==_0x2fe8e6||'tableOfContentsLicenseKeyDomainLimit'==_0x2fe8e6||'tableOfContentsLicenseKeyNotAllowed'==_0x2fe8e6||'tableOfContentsLicenseKeyEvaluationLimit'==_0x2fe8e6||'tableOfContentsLicenseKeyTrialLimit'==_0x2fe8e6||'tableOfContentsLicenseKeyDevelopmentLimit'==_0x2fe8e6||'tableOfContentsLicenseKeyUsageLimit'==_0x2fe8e6){delete _0x173849[_0x551d8b],_0x4b13a3=_0x2fe8e6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x4b13a3&&_0x173849['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x4b13a3&&_0x173849['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x4b13a3&&_0x173849['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x4b13a3&&_0x173849['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x4b13a3&&_0x173849['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyTrialLimit'==_0x4b13a3&&_0x173849['_showLicenseError']('trialLimit'),'tableOfContentsLicenseKeyDevelopmentLimit'==_0x4b13a3&&_0x173849['_showLicenseError']('developmentLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x4b13a3&&_0x173849['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x3775e2){const _0x9da6c6=this['editor'],_0x2aca70=_0x9da6c6['locale'],_0x4e07f4=_0x9da6c6['commands']['get']('insertTableOfContents'),_0x4999c9=new _0x3775e2(_0x2aca70);return _0x4999c9['set']({'label':N(_0x2aca70,'Table\x20of\x20contents'),'icon':_0x2cf6a1['tableOfContents']}),_0x4999c9['bind']('isEnabled')['to'](_0x4e07f4,'isEnabled'),this['listenTo'](_0x4999c9,'execute',()=>{_0x9da6c6['execute']('insertTableOfContents'),_0x9da6c6['editing']['view']['focus']();}),_0x4999c9;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class o extends _0x15d5ed{static get['requires'](){return[r,s];}static get['pluginName'](){return'TableOfContents';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as DocumentOutline,n as DocumentOutlineUI,i as DocumentOutlineUtils,y as HeadingId,o as TableOfContents,O as TableOfContentsCommand,r as TableOfContentsEditing,s as TableOfContentsUI};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module document-outline/legacyerrors
|
|
11
|
+
* @publicApi
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Invalid license key. Please contact our customer support at https://ckeditor.com/contact/.
|
|
15
|
+
*
|
|
16
|
+
* @error document-outline-invalid-license-key
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* You have exhausted the trial usage limit (reason: reached document changes limit). Restart the editor.
|
|
20
|
+
*
|
|
21
|
+
* Please contact our customer support to get a full access at https://ckeditor.com/contact/.
|
|
22
|
+
*
|
|
23
|
+
* @error document-outline-trial-license-key-reached-limit-changes
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* Invalid license key. Please contact our customer support at https://ckeditor.com/contact/.
|
|
27
|
+
*
|
|
28
|
+
* @error table-of-contents-invalid-license-key
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* You have exhausted the trial usage limit (reason: reached document changes limit). Restart the editor.
|
|
32
|
+
*
|
|
33
|
+
* Please contact our customer support to get a full access at https://ckeditor.com/contact/.
|
|
34
|
+
*
|
|
35
|
+
* @error table-of-contents-trial-license-key-reached-limit-changes
|
|
36
|
+
*/
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
/**
|
|
11
|
+
* The heading ID plugin. It adds support for the ID attribute on the heading[1-6] (model) and h[1-6] (data/view) elements.
|
|
12
|
+
*/
|
|
13
|
+
export default class HeadingId extends Plugin {
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
static get pluginName(): "HeadingId";
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get isOfficialPlugin(): true;
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get isPremiumPlugin(): true;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
afterInit(): void;
|
|
30
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module document-outline/tableofcontents/tableofcontentscommand
|
|
11
|
+
* @publicApi
|
|
12
|
+
*/
|
|
13
|
+
import { Command } from 'ckeditor5/src/core.js';
|
|
14
|
+
export default class TableOfContentsCommand extends Command {
|
|
15
|
+
/**
|
|
16
|
+
* Executes the command. Inserts the table of content into the model.
|
|
17
|
+
*
|
|
18
|
+
* @fires execute
|
|
19
|
+
*/
|
|
20
|
+
execute(): void;
|
|
21
|
+
/**
|
|
22
|
+
* If the selection is wrong, the command is not enabled.
|
|
23
|
+
*/
|
|
24
|
+
refresh(): void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module document-outline/tableofcontents/tableofcontentsediting
|
|
11
|
+
*/
|
|
12
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
13
|
+
import { Widget } from 'ckeditor5/src/widget.js';
|
|
14
|
+
import '../../theme/tableofcontents.css';
|
|
15
|
+
import DocumentOutlineUtils from '../documentoutline/documentoutlineutils.js';
|
|
16
|
+
import HeadingId from './headingid.js';
|
|
17
|
+
/**
|
|
18
|
+
* The table of contents editing plugin.
|
|
19
|
+
*/
|
|
20
|
+
export default class TableOfContentsEditing extends Plugin {
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
static get pluginName(): "TableOfContentsEditing";
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
static get isOfficialPlugin(): true;
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
static get isPremiumPlugin(): true;
|
|
33
|
+
/**
|
|
34
|
+
* @inheritDoc
|
|
35
|
+
*/
|
|
36
|
+
static get requires(): readonly [typeof Widget, typeof DocumentOutlineUtils, typeof HeadingId];
|
|
37
|
+
/**
|
|
38
|
+
* @inheritDoc
|
|
39
|
+
*/
|
|
40
|
+
constructor(editor: Editor);
|
|
41
|
+
/**
|
|
42
|
+
* @inheritDoc
|
|
43
|
+
*/
|
|
44
|
+
init(): void;
|
|
45
|
+
/**
|
|
46
|
+
* @inheritDoc
|
|
47
|
+
*/
|
|
48
|
+
afterInit(): void;
|
|
49
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
/**
|
|
11
|
+
* The UI plugin of the table of contents feature.
|
|
12
|
+
*/
|
|
13
|
+
export default class TableOfContentsUI extends Plugin {
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
static get pluginName(): "TableOfContentsUI";
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get isOfficialPlugin(): true;
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get isPremiumPlugin(): true;
|
|
26
|
+
init(): void;
|
|
27
|
+
/**
|
|
28
|
+
* @inheritDoc
|
|
29
|
+
*/
|
|
30
|
+
destroy(): void;
|
|
31
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module document-outline/tableofcontents
|
|
11
|
+
* @publicApi
|
|
12
|
+
*/
|
|
13
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
14
|
+
import TableOfContentsEditing from './tableofcontents/tableofcontentsediting.js';
|
|
15
|
+
import TableOfContentsUI from './tableofcontents/tableofcontentsui.js';
|
|
16
|
+
/**
|
|
17
|
+
* The table of contents feature.
|
|
18
|
+
*
|
|
19
|
+
* For a detailed overview, check the {@glink features/table-of-contents Table of contents} feature documentation.
|
|
20
|
+
*/
|
|
21
|
+
export default class TableOfContents extends Plugin {
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get requires(): readonly [typeof TableOfContentsEditing, typeof TableOfContentsUI];
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static get pluginName(): "TableOfContents";
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
static get isOfficialPlugin(): true;
|
|
34
|
+
/**
|
|
35
|
+
* @inheritDoc
|
|
36
|
+
*/
|
|
37
|
+
static get isPremiumPlugin(): true;
|
|
38
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Translations } from '@ckeditor/ckeditor5-utils';
|
|
7
|
+
declare const translations: Translations;
|
|
8
|
+
export default translations;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export default{'ar':{'dictionary':{'Empty\x20heading':'رأس\x20فارغ','Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.':'تظهر\x20رؤوس\x20المحرر\x20هنا\x20أثناء\x20الكتابة.','No\x20headings\x20were\x20found\x20in\x20the\x20document.':'لم\x20نعثر\x20على\x20رؤوس\x20في\x20المستند.','Table\x20of\x20contents':'جدول\x20المحتويات'},'getPluralForm':_0x31a1d8=>0x0==_0x31a1d8?0x0:0x1==_0x31a1d8?0x1:0x2==_0x31a1d8?0x2:_0x31a1d8%0x64>=0x3&&_0x31a1d8%0x64<=0xa?0x3:_0x31a1d8%0x64>=0xb&&_0x31a1d8%0x64<=0x63?0x4:0x5}};
|