@ckeditor/ckeditor5-slash-command 48.8.1-alpha.4 → 49.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/dist/augmentation.d.ts +19 -19
  2. package/dist/index-editor.css +53 -51
  3. package/dist/index.css +46 -44
  4. package/dist/index.d.ts +14 -12
  5. package/dist/index.js +1 -1
  6. package/dist/legacyerrors.d.ts +0 -4
  7. package/dist/slashcommand.d.ts +33 -33
  8. package/dist/slashcommandconfig.d.ts +248 -248
  9. package/dist/slashcommandediting.d.ts +31 -31
  10. package/dist/slashcommandeditorconfig.d.ts +91 -91
  11. package/dist/slashcommandui.d.ts +35 -36
  12. package/dist/translations/af.js +1 -1
  13. package/dist/translations/af.umd.js +1 -1
  14. package/dist/translations/ar.js +1 -1
  15. package/dist/translations/ar.umd.js +1 -1
  16. package/dist/translations/ast.js +1 -1
  17. package/dist/translations/ast.umd.js +1 -1
  18. package/dist/translations/az.js +1 -1
  19. package/dist/translations/az.umd.js +1 -1
  20. package/dist/translations/be.js +1 -1
  21. package/dist/translations/be.umd.js +1 -1
  22. package/dist/translations/bg.js +1 -1
  23. package/dist/translations/bg.umd.js +1 -1
  24. package/dist/translations/bn.js +1 -1
  25. package/dist/translations/bn.umd.js +1 -1
  26. package/dist/translations/bs.js +1 -1
  27. package/dist/translations/bs.umd.js +1 -1
  28. package/dist/translations/ca.js +1 -1
  29. package/dist/translations/ca.umd.js +1 -1
  30. package/dist/translations/cs.js +1 -1
  31. package/dist/translations/cs.umd.js +1 -1
  32. package/dist/translations/da.js +1 -1
  33. package/dist/translations/da.umd.js +1 -1
  34. package/dist/translations/de-ch.js +1 -1
  35. package/dist/translations/de-ch.umd.js +1 -1
  36. package/dist/translations/de.js +1 -1
  37. package/dist/translations/de.umd.js +1 -1
  38. package/dist/translations/el.js +1 -1
  39. package/dist/translations/el.umd.js +1 -1
  40. package/dist/translations/en-au.js +1 -1
  41. package/dist/translations/en-au.umd.js +1 -1
  42. package/dist/translations/en-gb.js +1 -1
  43. package/dist/translations/en-gb.umd.js +1 -1
  44. package/dist/translations/en.js +1 -1
  45. package/dist/translations/en.umd.js +1 -1
  46. package/dist/translations/eo.js +1 -1
  47. package/dist/translations/eo.umd.js +1 -1
  48. package/dist/translations/es-co.js +1 -1
  49. package/dist/translations/es-co.umd.js +1 -1
  50. package/dist/translations/es.js +1 -1
  51. package/dist/translations/es.umd.js +1 -1
  52. package/dist/translations/et.js +1 -1
  53. package/dist/translations/et.umd.js +1 -1
  54. package/dist/translations/eu.js +1 -1
  55. package/dist/translations/eu.umd.js +1 -1
  56. package/dist/translations/fa.js +1 -1
  57. package/dist/translations/fa.umd.js +1 -1
  58. package/dist/translations/fi.js +1 -1
  59. package/dist/translations/fi.umd.js +1 -1
  60. package/dist/translations/fr.js +1 -1
  61. package/dist/translations/fr.umd.js +1 -1
  62. package/dist/translations/gl.js +1 -1
  63. package/dist/translations/gl.umd.js +1 -1
  64. package/dist/translations/gu.js +1 -1
  65. package/dist/translations/gu.umd.js +1 -1
  66. package/dist/translations/he.js +1 -1
  67. package/dist/translations/he.umd.js +1 -1
  68. package/dist/translations/hi.js +1 -1
  69. package/dist/translations/hi.umd.js +1 -1
  70. package/dist/translations/hr.js +1 -1
  71. package/dist/translations/hr.umd.js +1 -1
  72. package/dist/translations/hu.js +1 -1
  73. package/dist/translations/hu.umd.js +1 -1
  74. package/dist/translations/hy.js +1 -1
  75. package/dist/translations/hy.umd.js +1 -1
  76. package/dist/translations/id.js +1 -1
  77. package/dist/translations/id.umd.js +1 -1
  78. package/dist/translations/it.js +1 -1
  79. package/dist/translations/it.umd.js +1 -1
  80. package/dist/translations/ja.js +1 -1
  81. package/dist/translations/ja.umd.js +1 -1
  82. package/dist/translations/jv.js +1 -1
  83. package/dist/translations/jv.umd.js +1 -1
  84. package/dist/translations/kk.js +1 -1
  85. package/dist/translations/kk.umd.js +1 -1
  86. package/dist/translations/km.js +1 -1
  87. package/dist/translations/km.umd.js +1 -1
  88. package/dist/translations/kn.js +1 -1
  89. package/dist/translations/kn.umd.js +1 -1
  90. package/dist/translations/ko.js +1 -1
  91. package/dist/translations/ko.umd.js +1 -1
  92. package/dist/translations/ku.js +1 -1
  93. package/dist/translations/ku.umd.js +1 -1
  94. package/dist/translations/lt.js +1 -1
  95. package/dist/translations/lt.umd.js +1 -1
  96. package/dist/translations/lv.js +1 -1
  97. package/dist/translations/lv.umd.js +1 -1
  98. package/dist/translations/ms.js +1 -1
  99. package/dist/translations/ms.umd.js +1 -1
  100. package/dist/translations/nb.js +1 -1
  101. package/dist/translations/nb.umd.js +1 -1
  102. package/dist/translations/ne.js +1 -1
  103. package/dist/translations/ne.umd.js +1 -1
  104. package/dist/translations/nl.js +1 -1
  105. package/dist/translations/nl.umd.js +1 -1
  106. package/dist/translations/no.js +1 -1
  107. package/dist/translations/no.umd.js +1 -1
  108. package/dist/translations/oc.js +1 -1
  109. package/dist/translations/oc.umd.js +1 -1
  110. package/dist/translations/pl.js +1 -1
  111. package/dist/translations/pl.umd.js +1 -1
  112. package/dist/translations/pt-br.js +1 -1
  113. package/dist/translations/pt-br.umd.js +1 -1
  114. package/dist/translations/pt.js +1 -1
  115. package/dist/translations/pt.umd.js +1 -1
  116. package/dist/translations/ro.js +1 -1
  117. package/dist/translations/ro.umd.js +1 -1
  118. package/dist/translations/ru.js +1 -1
  119. package/dist/translations/ru.umd.js +1 -1
  120. package/dist/translations/si.js +1 -1
  121. package/dist/translations/si.umd.js +1 -1
  122. package/dist/translations/sk.js +1 -1
  123. package/dist/translations/sk.umd.js +1 -1
  124. package/dist/translations/sl.js +1 -1
  125. package/dist/translations/sl.umd.js +1 -1
  126. package/dist/translations/sq.js +1 -1
  127. package/dist/translations/sq.umd.js +1 -1
  128. package/dist/translations/sr-latn.js +1 -1
  129. package/dist/translations/sr-latn.umd.js +1 -1
  130. package/dist/translations/sr.js +1 -1
  131. package/dist/translations/sr.umd.js +1 -1
  132. package/dist/translations/sv.js +1 -1
  133. package/dist/translations/sv.umd.js +1 -1
  134. package/dist/translations/th.js +1 -1
  135. package/dist/translations/th.umd.js +1 -1
  136. package/dist/translations/ti.js +1 -1
  137. package/dist/translations/ti.umd.js +1 -1
  138. package/dist/translations/tk.js +1 -1
  139. package/dist/translations/tk.umd.js +1 -1
  140. package/dist/translations/tr.js +1 -1
  141. package/dist/translations/tr.umd.js +1 -1
  142. package/dist/translations/tt.js +1 -1
  143. package/dist/translations/tt.umd.js +1 -1
  144. package/dist/translations/ug.js +1 -1
  145. package/dist/translations/ug.umd.js +1 -1
  146. package/dist/translations/uk.js +1 -1
  147. package/dist/translations/uk.umd.js +1 -1
  148. package/dist/translations/ur.js +1 -1
  149. package/dist/translations/ur.umd.js +1 -1
  150. package/dist/translations/uz.js +1 -1
  151. package/dist/translations/uz.umd.js +1 -1
  152. package/dist/translations/vi.js +1 -1
  153. package/dist/translations/vi.umd.js +1 -1
  154. package/dist/translations/zh-cn.js +1 -1
  155. package/dist/translations/zh-cn.umd.js +1 -1
  156. package/dist/translations/zh.js +1 -1
  157. package/dist/translations/zh.umd.js +1 -1
  158. package/dist/ui/slashcommandbuttonview.d.ts +26 -26
  159. package/dist/utils/common-translations.d.ts +6 -6
  160. package/package.json +9 -9
@@ -1,21 +1,21 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- import type { SlashCommand, SlashCommandConfig, SlashCommandEditing, SlashCommandUI, SlashCommandEditorConfig } from './index.js';
6
- declare module '@ckeditor/ckeditor5-core' {
7
- interface EditorConfig {
8
- /**
9
- * The configuration of the {@link module:slash-command/slashcommand~SlashCommand} feature.
10
- *
11
- * Read more in {@link module:slash-command/slashcommandeditorconfig~SlashCommandEditorConfig}.
12
- */
13
- slashCommand?: SlashCommandEditorConfig;
14
- }
15
- interface PluginsMap {
16
- [SlashCommand.pluginName]: SlashCommand;
17
- [SlashCommandConfig.pluginName]: SlashCommandConfig;
18
- [SlashCommandEditing.pluginName]: SlashCommandEditing;
19
- [SlashCommandUI.pluginName]: SlashCommandUI;
20
- }
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ import type { SlashCommand, SlashCommandConfig, SlashCommandEditing, SlashCommandUI, SlashCommandEditorConfig } from "./index.js";
6
+ declare module "@ckeditor/ckeditor5-core" {
7
+ interface EditorConfig {
8
+ /**
9
+ * The configuration of the {@link module:slash-command/slashcommand~SlashCommand} feature.
10
+ *
11
+ * Read more in {@link module:slash-command/slashcommandeditorconfig~SlashCommandEditorConfig}.
12
+ */
13
+ slashCommand?: SlashCommandEditorConfig;
14
+ }
15
+ interface PluginsMap {
16
+ [SlashCommand.pluginName]: SlashCommand;
17
+ [SlashCommandConfig.pluginName]: SlashCommandConfig;
18
+ [SlashCommandEditing.pluginName]: SlashCommandEditing;
19
+ [SlashCommandUI.pluginName]: SlashCommandUI;
20
+ }
21
21
  }
@@ -2,68 +2,70 @@
2
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- :root{
6
- --ck-slash-command-button-width:250px;
7
- --ck-slash-command-description-width:200px;
5
+ :root, :host {
6
+ --ck-slash-command-button-width: 250px;
7
+ --ck-slash-command-description-width: 200px;
8
+ --ck-slash-command-button-radius: var(--ck-list-dropdown-button-border-radius, 0);
8
9
  }
9
10
 
10
- .ck-mentions .ck.ck-button.ck-slash-command-button{
11
- width:var(--ck-slash-command-button-width);
12
- padding:calc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base));
13
- justify-content:flex-start;
14
- display:flex;
15
- }
11
+ .ck-mentions .ck.ck-button.ck-slash-command-button {
12
+ width: var(--ck-slash-command-button-width);
13
+ padding: calc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base));
14
+ border-radius: var(--ck-slash-command-button-radius);
15
+ justify-content: flex-start;
16
+ display: flex;
16
17
 
17
- .ck-mentions .ck.ck-button.ck-slash-command-button .ck.ck-icon{
18
- color:var(--ck-color-base-text);
19
- background-color:var(--ck-color-base-background);
20
- box-sizing:initial;
21
- border-radius:2px;
22
- flex-shrink:0;
23
- margin-left:0;
24
- padding:5px;
25
- }
18
+ & .ck.ck-icon {
19
+ color: var(--ck-color-text);
20
+ background-color: var(--ck-color-surface-container);
21
+ box-sizing: initial;
22
+ border-radius: 2px;
23
+ flex-shrink: 0;
24
+ margin-left: 0;
25
+ padding: 5px;
26
26
 
27
- [dir="ltr"] :is(.ck-mentions .ck.ck-button.ck-slash-command-button .ck.ck-icon){
28
- margin:0 var(--ck-spacing-small) 0 0;
29
- }
27
+ [dir="ltr"] & {
28
+ margin: 0 var(--ck-spacing-gap-compact) 0 0;
29
+ }
30
30
 
31
- [dir="rtl"] :is(.ck-mentions .ck.ck-button.ck-slash-command-button .ck.ck-icon){
32
- margin:0 0 0 var(--ck-spacing-small);
33
- }
31
+ [dir="rtl"] & {
32
+ margin: 0 0 0 var(--ck-spacing-gap-compact);
33
+ }
34
+ }
34
35
 
35
- .ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part{
36
- flex-direction:column;
37
- display:flex;
38
- }
36
+ & > .ck-slash-command-button__text-part {
37
+ flex-direction: column;
38
+ display: flex;
39
39
 
40
- [dir="ltr"] :is(.ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part){
41
- margin-left:var(--ck-spacing-small);
42
- }
40
+ [dir="ltr"] & {
41
+ margin-left: var(--ck-spacing-gap-compact);
42
+ }
43
43
 
44
- [dir="rtl"] :is(.ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part){
45
- margin-right:var(--ck-spacing-small);
46
- }
44
+ [dir="rtl"] & {
45
+ margin-right: var(--ck-spacing-gap-compact);
46
+ }
47
47
 
48
- .ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part > span{
49
- line-height:1.2em;
50
- }
48
+ & > span {
49
+ line-height: 1.2em;
50
+ }
51
51
 
52
- .ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part > .ck-button__label, .ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part > .ck-slash-command-button__description{
53
- width:var(--ck-slash-command-description-width);
54
- text-overflow:ellipsis;
55
- overflow:hidden;
56
- }
52
+ & > .ck-button__label, & > .ck-slash-command-button__description {
53
+ width: var(--ck-slash-command-description-width);
54
+ text-overflow: ellipsis;
55
+ overflow: hidden;
56
+ }
57
57
 
58
- .ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part > .ck-button__label{
59
- font-weight:bold;
60
- }
58
+ & > .ck-button__label {
59
+ font-weight: bold;
60
+ }
61
61
 
62
- .ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part > .ck-slash-command-button__description{
63
- font-size:var(--ck-font-size-small);
64
- opacity:.75;
65
- }
62
+ & > .ck-slash-command-button__description {
63
+ font-size: var(--ck-font-size-small, var(--ck-font-size-sm));
64
+ opacity: .75;
65
+ }
66
+ }
66
67
 
67
- .ck-mentions .ck.ck-button.ck-slash-command-button.ck-on > .ck-slash-command-button__text-part > span{
68
- color:var(--ck-color-list-button-on-text);
68
+ &.ck-on > .ck-slash-command-button__text-part > span {
69
+ color: var(--ck-list-button-on-text-color);
70
+ }
69
71
  }
package/dist/index.css CHANGED
@@ -2,68 +2,70 @@
2
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- :root {
5
+ :root, :host {
6
6
  --ck-slash-command-button-width: 250px;
7
7
  --ck-slash-command-description-width: 200px;
8
+ --ck-slash-command-button-radius: var(--ck-list-dropdown-button-border-radius, 0);
8
9
  }
9
10
 
10
11
  .ck-mentions .ck.ck-button.ck-slash-command-button {
11
12
  width: var(--ck-slash-command-button-width);
12
13
  padding: calc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base));
14
+ border-radius: var(--ck-slash-command-button-radius);
13
15
  justify-content: flex-start;
14
16
  display: flex;
15
- }
16
17
 
17
- .ck-mentions .ck.ck-button.ck-slash-command-button .ck.ck-icon {
18
- color: var(--ck-color-base-text);
19
- background-color: var(--ck-color-base-background);
20
- box-sizing: initial;
21
- border-radius: 2px;
22
- flex-shrink: 0;
23
- margin-left: 0;
24
- padding: 5px;
25
- }
18
+ & .ck.ck-icon {
19
+ color: var(--ck-color-text);
20
+ background-color: var(--ck-color-surface-container);
21
+ box-sizing: initial;
22
+ border-radius: 2px;
23
+ flex-shrink: 0;
24
+ margin-left: 0;
25
+ padding: 5px;
26
26
 
27
- [dir="ltr"] :is(.ck-mentions .ck.ck-button.ck-slash-command-button .ck.ck-icon) {
28
- margin: 0 var(--ck-spacing-small) 0 0;
29
- }
27
+ [dir="ltr"] & {
28
+ margin: 0 var(--ck-spacing-gap-compact) 0 0;
29
+ }
30
30
 
31
- [dir="rtl"] :is(.ck-mentions .ck.ck-button.ck-slash-command-button .ck.ck-icon) {
32
- margin: 0 0 0 var(--ck-spacing-small);
33
- }
31
+ [dir="rtl"] & {
32
+ margin: 0 0 0 var(--ck-spacing-gap-compact);
33
+ }
34
+ }
34
35
 
35
- .ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part {
36
- flex-direction: column;
37
- display: flex;
38
- }
36
+ & > .ck-slash-command-button__text-part {
37
+ flex-direction: column;
38
+ display: flex;
39
39
 
40
- [dir="ltr"] :is(.ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part) {
41
- margin-left: var(--ck-spacing-small);
42
- }
40
+ [dir="ltr"] & {
41
+ margin-left: var(--ck-spacing-gap-compact);
42
+ }
43
43
 
44
- [dir="rtl"] :is(.ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part) {
45
- margin-right: var(--ck-spacing-small);
46
- }
44
+ [dir="rtl"] & {
45
+ margin-right: var(--ck-spacing-gap-compact);
46
+ }
47
47
 
48
- .ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part > span {
49
- line-height: 1.2em;
50
- }
48
+ & > span {
49
+ line-height: 1.2em;
50
+ }
51
51
 
52
- .ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part > .ck-button__label, .ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part > .ck-slash-command-button__description {
53
- width: var(--ck-slash-command-description-width);
54
- text-overflow: ellipsis;
55
- overflow: hidden;
56
- }
52
+ & > .ck-button__label, & > .ck-slash-command-button__description {
53
+ width: var(--ck-slash-command-description-width);
54
+ text-overflow: ellipsis;
55
+ overflow: hidden;
56
+ }
57
57
 
58
- .ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part > .ck-button__label {
59
- font-weight: bold;
60
- }
58
+ & > .ck-button__label {
59
+ font-weight: bold;
60
+ }
61
61
 
62
- .ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part > .ck-slash-command-button__description {
63
- font-size: var(--ck-font-size-small);
64
- opacity: .75;
65
- }
62
+ & > .ck-slash-command-button__description {
63
+ font-size: var(--ck-font-size-small, var(--ck-font-size-sm));
64
+ opacity: .75;
65
+ }
66
+ }
66
67
 
67
- .ck-mentions .ck.ck-button.ck-slash-command-button.ck-on > .ck-slash-command-button__text-part > span {
68
- color: var(--ck-color-list-button-on-text);
68
+ &.ck-on > .ck-slash-command-button__text-part > span {
69
+ color: var(--ck-list-button-on-text-color);
70
+ }
69
71
  }
package/dist/index.d.ts CHANGED
@@ -1,14 +1,16 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module slash-command
7
- */
8
- export { SlashCommand } from './slashcommand.js';
9
- export { SlashCommandConfig } from './slashcommandconfig.js';
10
- export { SlashCommandEditing } from './slashcommandediting.js';
11
- export { SlashCommandUI } from './slashcommandui.js';
12
- export type { SlashCommandEditorConfig } from './slashcommandeditorconfig.js';
13
- export type { SlashCommandDefinition } from './slashcommandconfig.js';
14
- import './augmentation.js';
6
+ * @module slash-command
7
+ */
8
+ export { SlashCommand } from "./slashcommand.js";
9
+ export { SlashCommandConfig } from "./slashcommandconfig.js";
10
+ export { SlashCommandEditing } from "./slashcommandediting.js";
11
+ export { SlashCommandUI } from "./slashcommandui.js";
12
+ export type { SlashCommandEditorConfig } from "./slashcommandeditorconfig.js";
13
+ export type { SlashCommandDefinition } from "./slashcommandconfig.js";
14
+ import "../theme/index-editor.css";
15
+ import "../theme/index-content.css";
16
+ import "./augmentation.js";
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x2b4222}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x1943ff}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x1c85fe,uid as _0x1cb5f3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x5b0c42,IconQuote as _0x1c3f1a,IconBulletedList as _0xaafba2,IconCodeBlock as _0x56099e,IconBrowseFiles as _0x3eead4,IconEmoji as _0x292be2,IconHeading1 as _0x348bd8,IconHeading2 as _0x990e9d,IconHeading3 as _0x58aea4,IconHeading4 as _0x3324a7,IconHeading5 as _0x3d9194,IconHeading6 as _0x35da7f,IconHorizontalLine as _0x31a580,IconHtml as _0x488b49,IconIndent as _0x48dc69,IconTable as _0x475088,IconTableOfContents as _0x1ddd5d,IconNumberedList as _0x334fe0,IconOutdent as _0x458113,IconParagraph as _0x4129fe,IconTodoList as _0x3461b5,IconFootnote as _0x21a3ee,IconPlay as _0x567d26}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1ed206,View as _0x3f3bb2}from'@ckeditor/ckeditor5-ui/dist/index.js';class SlashCommandConfig extends _0x2b4222{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12774e){super(_0x12774e),this['_allowedCommands']=null;}['afterInit'](){const _0x460e1b=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x28fd68=function(_0x5f5620){let _0x1cc8ee=['heading4','heading5','heading6'];if(_0x5f5620){const _0x44a66a=_0x5f5620['map'](_0x3ecc4f=>_0x3ecc4f['model']);_0x1cc8ee=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x360f3a=>!_0x44a66a['includes'](_0x360f3a));}return _0x1cc8ee;}(this['editor']['config']['get']('heading.options'));let _0x386fa3=this['getDefaultCommands']()['filter'](_0x42b518=>!_0x28fd68['includes'](_0x42b518['id']))['filter'](_0x12842e=>!_0x460e1b['includes'](_0x12842e['commandName']));const _0x1a20f8=this['editor']['config']['get']('slashCommand.extraCommands');_0x1a20f8&&_0x1a20f8['length']&&(_0x386fa3=_0x386fa3['concat'](_0x1a20f8));const _0x3c69b9=this['editor']['config']['get']('template.definitions');_0x3c69b9&&_0x3c69b9['length']&&(_0x386fa3=_0x386fa3['concat'](function(_0x183b46){return _0x183b46['map'](_0x515746=>{const {title:_0x52cce5,icon:_0x3ad72,description:_0x5163d4,data:_0x3d57d4}=_0x515746,_0x97cf4e={'id':O(_0x52cce5,'template'),'commandName':'insertTemplate','execute':_0x43e03e=>{_0x43e03e['execute']('insertTemplate',_0x3d57d4);},'description':_0x5163d4,'icon':_0x3ad72,'title':_0x52cce5};return _0x3ad72&&(_0x97cf4e['isIconColorInherited']=!0x1),_0x97cf4e;});}(_0x3c69b9)));const _0x2b2235=this['editor']['config']['get']('style.definitions');_0x2b2235&&_0x2b2235['length']&&(_0x386fa3=_0x386fa3['concat'](function(_0x141dca){return _0x141dca['map'](_0x23257c=>({'id':O(_0x23257c['name'],'style'),'commandName':'style','execute':_0xf56212=>{_0xf56212['execute']('style',{'styleName':_0x23257c['name']});},'isEnabled':_0x2329ca=>{const _0x3d93cd=_0x2329ca['commands']['get']('style');return _0x3d93cd['isEnabled']&&_0x3d93cd['enabledStyles']['includes'](_0x23257c['name']);},'title':_0x23257c['name']}));}(_0x2b2235)));const _0x43d17a=_0x386fa3['filter'](_0x249fff=>!_0x249fff['commandName']||void 0x0!==this['editor']['commands']['get'](_0x249fff['commandName'])),_0x390f0e=[];for(const _0xa67cae of _0x43d17a)_0x390f0e['push']({'id':_0xa67cae['id'],'commandName':_0xa67cae['commandName'],'title':'function'==typeof _0xa67cae['title']?_0xa67cae['title'](this['editor']):_0xa67cae['title'],'description':_0xa67cae['description'],'icon':_0xa67cae['icon'],'isIconColorInherited':_0xa67cae['isIconColorInherited'],'aliases':_0xa67cae['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0xa67cae),'execute':()=>this['_proxyExecute'](_0xa67cae)});this['_allowedCommands']=_0x390f0e['sort'](S),async function(_0x16e996){const _0x4819e9=_0x1697f3([0x75,0x6d,0x67,0x6c,0x31,0x46,0x34,0x59,0x6b,0x41,0x56,0x45,0x74,0x76,0x30,0x54,0x63,0x4e,0x36,0x6e,0x4b,0x69,0x58,0x43,0x72,0x68,0x4f,0x44,0x64,0x32,0x50,0x61,0x47,0x4d,0x53,0x49,0x4a,0x62,0x73,0x70,0x79,0x7a,0x39,0x51,0x4c,0x42,0x6f,0x57,0x78,0x55,0x66,0x6a,0x35,0x48,0x5a,0x65,0x77,0x37,0x33,0x38,0x52,0x71]),_0xb6cb4c=0x305505ed,_0x7f28df=0x30528f6d^_0xb6cb4c,_0x23c96a=window[_0x1697f3([0x44,0x61,0x74,0x65])][_0x1697f3([0x6e,0x6f,0x77])](),_0x3a6880=_0x16e996[_0x1697f3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x112fd2=new window[(_0x1697f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59e033=>{_0x3a6880[_0x1697f3([0x6f,0x6e,0x63,0x65])](_0x1697f3([0x72,0x65,0x61,0x64,0x79]),_0x59e033);}),_0x45e5cc={[_0x1697f3([0x6b,0x74,0x79])]:_0x1697f3([0x45,0x43]),[_0x1697f3([0x75,0x73,0x65])]:_0x1697f3([0x73,0x69,0x67]),[_0x1697f3([0x63,0x72,0x76])]:_0x1697f3([0x50,0x2d,0x32,0x35,0x36]),[_0x1697f3([0x78])]:_0x1697f3([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]),[_0x1697f3([0x79])]:_0x1697f3([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]),[_0x1697f3([0x61,0x6c,0x67])]:_0x1697f3([0x45,0x53,0x32,0x35,0x36])},_0x2194bc=_0x3a6880[_0x1697f3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1697f3([0x67,0x65,0x74])](_0x1697f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1b467b(){let _0xa071df,_0x565c67=null,_0x51bc9f=null;try{if(_0x2194bc==_0x1697f3([0x47,0x50,0x4c]))return _0x1697f3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xa071df=_0x10ab65(),!_0xa071df)return _0x1697f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xa071df[_0x1697f3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x51bc9f=_0x175e5c(_0xa071df[_0x1697f3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xa071df[_0x1697f3([0x6a,0x74,0x69])])),await _0x42eb3c()?_0x2e8b02()?_0x2e5295()?_0x1697f3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x24ac2e()?(_0xa071df[_0x1697f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1697f3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x565c67=_0x16ea0b(_0x1697f3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x487fca()):_0x1697f3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1697f3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1697f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1697f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2e5295(){const _0x54e166=[_0x1697f3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1697f3([0x74,0x72,0x69,0x61,0x6c])][_0x1697f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa071df[_0x1697f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x23c96a/0x3e8:0xe10*_0x7f28df;return _0xa071df[_0x1697f3([0x65,0x78,0x70])]<_0x54e166;}function _0x2e8b02(){const _0x1b4543=_0xa071df[_0x1697f3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b4543&&(!!_0x1b4543[_0x1697f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1697f3([0x2a]))||(!!_0x1b4543[_0x1697f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1697f3([0x53,0x43]))||(!!_0x1b4543[_0x1697f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1697f3([0x50,0x50]))||!(!_0x1b4543[_0x1697f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1697f3([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0xd7b199()))));}function _0x24ac2e(){const _0x1163c7=_0xa071df[_0x1697f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1163c7||0x0==_0x1163c7[_0x1697f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x644299}=new URL(window[_0x1697f3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1163c7[_0x1697f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x644299))return!0x0;const _0x144f54=_0x644299[_0x1697f3([0x73,0x70,0x6c,0x69,0x74])](_0x1697f3([0x2e]));return _0x1163c7[_0x1697f3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b2cfd=>_0x4b2cfd[_0x1697f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1697f3([0x2a])))[_0x1697f3([0x6d,0x61,0x70])](_0x46b429=>_0x46b429[_0x1697f3([0x73,0x70,0x6c,0x69,0x74])](_0x1697f3([0x2e])))[_0x1697f3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13bac8=>_0x13bac8[_0x1697f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x144f54[_0x1697f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1697f3([0x6d,0x61,0x70])](_0x34c44b=>Array(_0x144f54[_0x1697f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x34c44b[_0x1697f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1697f3([0x66,0x69,0x6c,0x6c])](_0x34c44b[0x0]===_0x1697f3([0x2a])?_0x1697f3([0x2a]):'')[_0x1697f3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x34c44b))[_0x1697f3([0x73,0x6f,0x6d,0x65])](_0x341830=>_0x144f54[_0x1697f3([0x65,0x76,0x65,0x72,0x79])]((_0x30fdc7,_0x61a08e)=>_0x341830[_0x61a08e]===_0x30fdc7||_0x341830[_0x61a08e]===_0x1697f3([0x2a])));}function _0x487fca(){return _0x565c67&&_0x51bc9f?new window[(_0x1697f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x344d56,_0x35e70d)=>{_0x565c67[_0x1697f3([0x74,0x68,0x65,0x6e])](_0x344d56,_0x35e70d),_0x51bc9f[_0x1697f3([0x74,0x68,0x65,0x6e])](_0xc21c97=>{_0xc21c97!=_0x1697f3([0x56,0x61,0x6c,0x69,0x64])&&_0x344d56(_0xc21c97);},_0x35e70d);}):_0x565c67||_0x51bc9f||_0x1697f3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x175e5c(_0x221682,_0x550973){return new window[(_0x1697f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b86b7=>{if(_0x2aa99d())return _0x4b86b7(_0x1697f3([0x56,0x61,0x6c,0x69,0x64]));_0x1d4ebf(),_0x3a6880[_0x1697f3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1697f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x52b026=!0x1;const _0x408041=_0x1cb5f3();function _0x44bd5e(_0x45ff80){return!!_0x45ff80&&(typeof _0x45ff80===_0x1697f3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x45ff80===_0x1697f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x45ff80[_0x1697f3([0x74,0x68,0x65,0x6e])]===_0x1697f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x45ff80[_0x1697f3([0x63,0x61,0x74,0x63,0x68])]===_0x1697f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x25cf6f(_0x40ce51){_0x434f12(_0x40ce51)[_0x1697f3([0x74,0x68,0x65,0x6e])](_0x5515a9=>{if(!_0x5515a9||_0x5515a9[_0x1697f3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1697f3([0x6f,0x6b]))return _0x1697f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb723c5(_0x43fc82(_0x408041+_0x550973))!=_0x5515a9[_0x1697f3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1697f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1697f3([0x56,0x61,0x6c,0x69,0x64]);})[_0x1697f3([0x74,0x68,0x65,0x6e])](_0x25072d=>(_0x4a4a7e(),_0x25072d),()=>{const _0x137187=_0x35eadd();return null==_0x137187?(_0x4a4a7e(),_0x1697f3([0x56,0x61,0x6c,0x69,0x64])):_0x1697f3(_0x23c96a-_0x137187>(0x145981ed^_0xb6cb4c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1697f3([0x74,0x68,0x65,0x6e])](_0x4b86b7)[_0x1697f3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4b86b7(_0x1697f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2b62a0=0x3063eb6d^_0xb6cb4c;function _0x4a4a7e(){const _0x5ca20a=_0x1697f3([0x6c,0x6c,0x63,0x74,0x2d])+_0xb723c5(_0x43fc82(_0x221682)),_0x3df65f=_0x1b19f8(_0xb723c5(window[_0x1697f3([0x4d,0x61,0x74,0x68])][_0x1697f3([0x63,0x65,0x69,0x6c])](_0x23c96a/_0x2b62a0)));window[_0x1697f3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1697f3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ca20a,_0x3df65f);}function _0x35eadd(){const _0x400a9f=_0x1697f3([0x6c,0x6c,0x63,0x74,0x2d])+_0xb723c5(_0x43fc82(_0x221682)),_0x37478c=window[_0x1697f3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1697f3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x400a9f);return _0x37478c?window[_0x1697f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b19f8(_0x37478c),0x10)*_0x2b62a0:null;}function _0x434f12(_0x472e58){return new window[(_0x1697f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33c492,_0x2d496b)=>{_0x472e58[_0x1697f3([0x74,0x68,0x65,0x6e])](_0x33c492,_0x2d496b),window[_0x1697f3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d496b,0x3054d12d^_0xb6cb4c);});}}_0x3a6880[_0x1697f3([0x6f,0x6e])](_0x1697f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3e8f8f,_0x4140fe)=>{if(_0x4140fe[0x0]!=_0x221682)return _0x4b86b7(_0x1697f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4140fe[0x1]={..._0x4140fe[0x1],[_0x1697f3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x408041};},{[_0x1697f3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1697f3([0x68,0x69,0x67,0x68])}),_0x3a6880[_0x1697f3([0x6f,0x6e])](_0x1697f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2ca4bf=>{_0x44bd5e(_0x2ca4bf[_0x1697f3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x52b026=!0x0,_0x25cf6f(_0x2ca4bf[_0x1697f3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1697f3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1697f3([0x6c,0x6f,0x77])}),_0x112fd2[_0x1697f3([0x74,0x68,0x65,0x6e])](()=>{_0x52b026||_0x4b86b7(_0x1697f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2aa99d(){return _0x3a6880[_0x1697f3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1697f3([0x76,0x69,0x65,0x77])][_0x1697f3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1697f3([0x61,0x75,0x74,0x6f]);}function _0x1d4ebf(){_0x3a6880[_0x1697f3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1697f3([0x76,0x69,0x65,0x77])][_0x1697f3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1697f3([0x61,0x75,0x74,0x6f]);}}function _0x16ea0b(_0x384c81){const _0x52b6c1=[new window[(_0x1697f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19508b=>setTimeout(_0x19508b,0x305c3b21^_0xb6cb4c)),_0x112fd2[_0x1697f3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1697f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2272f0=>{let _0x583aba=0x0;_0x3a6880[_0x1697f3([0x6d,0x6f,0x64,0x65,0x6c])][_0x1697f3([0x6f,0x6e])](_0x1697f3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2a24a2,_0x258906)=>{_0x258906[0x0][_0x1697f3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x583aba++,_0x583aba==(0x30550005^_0xb6cb4c)&&(_0x2272f0(),_0x2a24a2[_0x1697f3([0x6f,0x66,0x66])]());});}))];return window[_0x1697f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1697f3([0x72,0x61,0x63,0x65])](_0x52b6c1)[_0x1697f3([0x74,0x68,0x65,0x6e])](()=>_0x384c81);}async function _0x29d5bd(){await _0x112fd2,_0x3a6880[_0x1697f3([0x6d,0x6f,0x64,0x65,0x6c])][_0x1697f3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x37fe1f,_0x3a6880[_0x1697f3([0x6d,0x6f,0x64,0x65,0x6c])][_0x1697f3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x37fe1f,_0x3a6880[_0x1697f3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1697f3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xd7b199(){return window[_0x1697f3([0x67,0x6c,0x6f,0x62])]&&window[_0x1697f3([0x67,0x6c,0x6f,0x62])][_0x1697f3([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x4de109(_0x23bf8d){const _0x594748=_0x5c5ec4();_0x3a6880[_0x594748]=_0x1697f3([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x23bf8d,_0x23bf8d!=_0x1697f3([0x56,0x61,0x6c,0x69,0x64])&&_0x29d5bd();}function _0x5c5ec4(){const _0x329b83=window[_0x1697f3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1697f3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1697f3([0x6e,0x6f,0x77])]())[_0x1697f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1697f3([0x2e]),'');let _0x1e3344=_0x1697f3([0x75]);for(let _0x3dddde=0x0;_0x3dddde<_0x329b83[_0x1697f3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3dddde+=0x2){let _0x1d0074=window[_0x1697f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x329b83[_0x1697f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3dddde,_0x3dddde+0x2));_0x1d0074>=_0x4819e9[_0x1697f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1d0074-=_0x4819e9[_0x1697f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1e3344+=_0x4819e9[_0x1d0074];}return _0x1e3344;}function _0x10ab65(){const _0x15b2a2=_0x2194bc[_0x1697f3([0x73,0x70,0x6c,0x69,0x74])](_0x1697f3([0x2e]));if(0x3!=_0x15b2a2[_0x1697f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x32a1f6(_0x15b2a2[0x1]);function _0x32a1f6(_0x2272b7){const _0x39d58b=_0x5c0895(_0x2272b7);return _0x39d58b&&_0x1a6628()?_0x39d58b:null;function _0x1a6628(){const _0x5b262c=_0x39d58b[_0x1697f3([0x6a,0x74,0x69])],_0x2b1dfb=window[_0x1697f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b262c[_0x1697f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b262c[_0x1697f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2fb93a={..._0x39d58b,[_0x1697f3([0x6a,0x74,0x69])]:_0x5b262c[_0x1697f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5b262c[_0x1697f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2fb93a[_0x1697f3([0x76,0x63])],_0x43fc82(_0x2fb93a)==_0x2b1dfb;}}}async function _0x42eb3c(){let _0x53dac9=!0x0;try{const _0x2a566d=_0x2194bc[_0x1697f3([0x73,0x70,0x6c,0x69,0x74])](_0x1697f3([0x2e])),[_0x128189,_0x314cd9,_0x53efe0]=_0x2a566d;return _0xf58f91(_0x128189),await _0x4977c6(_0x128189,_0x314cd9,_0x53efe0),_0x53dac9;}catch{return!0x1;}function _0xf58f91(_0x5d6905){const _0x2f51b9=_0x5c0895(_0x5d6905);_0x2f51b9&&_0x2f51b9[_0x1697f3([0x61,0x6c,0x67])]==_0x1697f3([0x45,0x53,0x32,0x35,0x36])||(_0x53dac9=!0x1);}async function _0x4977c6(_0x124e7a,_0x16b651,_0x27016f){const _0x357d81=window[_0x1697f3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1697f3([0x66,0x72,0x6f,0x6d])](_0x1eff99(_0x27016f),_0x7e0486=>_0x7e0486[_0x1697f3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3194c4=new window[(_0x1697f3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1697f3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x124e7a+_0x1697f3([0x2e])+_0x16b651),_0x23362c=window[_0x1697f3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1697f3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x23362c)return;const _0x52ed6c=await _0x23362c[_0x1697f3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1697f3([0x6a,0x77,0x6b]),_0x45e5cc,{[_0x1697f3([0x6e,0x61,0x6d,0x65])]:_0x1697f3([0x45,0x43,0x44,0x53,0x41]),[_0x1697f3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1697f3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1697f3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x23362c[_0x1697f3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1697f3([0x6e,0x61,0x6d,0x65])]:_0x1697f3([0x45,0x43,0x44,0x53,0x41]),[_0x1697f3([0x68,0x61,0x73,0x68])]:{[_0x1697f3([0x6e,0x61,0x6d,0x65])]:_0x1697f3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x52ed6c,_0x357d81,_0x3194c4)||(_0x53dac9=!0x1);}}function _0x5c0895(_0x281c37){return _0x281c37[_0x1697f3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1697f3([0x65,0x79]))?JSON[_0x1697f3([0x70,0x61,0x72,0x73,0x65])](_0x1eff99(_0x281c37)):null;}function _0x1eff99(_0x320284){return window[_0x1697f3([0x61,0x74,0x6f,0x62])](_0x320284[_0x1697f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1697f3([0x2b]))[_0x1697f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1697f3([0x2f])));}function _0x43fc82(_0x2ca59a){let _0x233a2f=0x1505;function _0x5846cc(_0x471ff0){for(let _0x35de10=0x0;_0x35de10<_0x471ff0[_0x1697f3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35de10++){const _0x4f034a=_0x471ff0[_0x1697f3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x35de10);_0x233a2f=(_0x233a2f<<0x5)+_0x233a2f+_0x4f034a,_0x233a2f&=_0x233a2f;}}function _0xa77cd0(_0x2d845a){Array[_0x1697f3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d845a)?_0x2d845a[_0x1697f3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xa77cd0):_0x2d845a&&typeof _0x2d845a==_0x1697f3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1697f3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d845a)[_0x1697f3([0x73,0x6f,0x72,0x74])]()[_0x1697f3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x102ed6,_0x122ec1])=>{_0x5846cc(_0x102ed6),_0xa77cd0(_0x122ec1);}):_0x5846cc(window[_0x1697f3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d845a));}return _0xa77cd0(_0x2ca59a),_0x233a2f>>>0x0;}function _0xb723c5(_0x3af057){return _0x3af057[_0x1697f3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1697f3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1697f3([0x30]));}function _0x1b19f8(_0x2bef77){return _0x2bef77[_0x1697f3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1697f3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1697f3([0x6a,0x6f,0x69,0x6e])]('');}function _0x37fe1f(){}function _0x1697f3(_0x38d88d){return _0x38d88d['map'](_0x2609b4=>String['fromCharCode'](_0x2609b4))['join']('');}_0x4de109(await _0x1b467b());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x5df85=_0x1ad56e=>function(_0x28bc42,_0xd68f6e){const t=_0x28bc42['t'],_0x294039=_0x28bc42['t'];switch(_0xd68f6e){case'AI\x20Assistant':return _0x294039('AI\x20Assistant');case'Block\x20quote':return _0x294039('Block\x20quote');case'Bulleted\x20List':return _0x294039('Bulleted\x20List');case'Insert\x20code\x20block':return _0x294039('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x294039('Open\x20file\x20manager');case'Insert\x20image':return _0x294039('Insert\x20image');case'Heading\x201':return _0x294039('Heading\x201');case'Heading\x202':return _0x294039('Heading\x202');case'Heading\x203':return _0x294039('Heading\x203');case'Heading\x204':return _0x294039('Heading\x204');case'Heading\x205':return _0x294039('Heading\x205');case'Heading\x206':return _0x294039('Heading\x206');case'Horizontal\x20line':return _0x294039('Horizontal\x20line');case'Insert\x20HTML':return _0x294039('Insert\x20HTML');case'Increase\x20indent':return _0x294039('Increase\x20indent');case'Insert\x20table':return _0x294039('Insert\x20table');case'Table\x20of\x20contents':return _0x294039('Table\x20of\x20contents');case'Numbered\x20List':return _0x294039('Numbered\x20List');case'Decrease\x20indent':return _0x294039('Decrease\x20indent');case'Paragraph':return _0x294039('Paragraph');case'To-do\x20List':return _0x294039('To-do\x20List');case'Create\x20a\x20block\x20quote':return t('Create\x20a\x20block\x20quote');case'Create\x20a\x20bulleted\x20list':return t('Create\x20a\x20bulleted\x20list');case'Create\x20a\x20code\x20block':return t('Create\x20a\x20code\x20block');case'Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Create\x20a\x20heading\x20level\x201':return t('Create\x20a\x20heading\x20level\x201');case'Create\x20a\x20heading\x20level\x202':return t('Create\x20a\x20heading\x20level\x202');case'Create\x20a\x20heading\x20level\x203':return t('Create\x20a\x20heading\x20level\x203');case'Create\x20a\x20heading\x20level\x204':return t('Create\x20a\x20heading\x20level\x204');case'Create\x20a\x20heading\x20level\x205':return t('Create\x20a\x20heading\x20level\x205');case'Create\x20a\x20heading\x20level\x206':return t('Create\x20a\x20heading\x20level\x206');case'Insert\x20a\x20horizontal\x20line':return t('Insert\x20a\x20horizontal\x20line');case'Insert\x20an\x20HTML\x20snippet':return t('Insert\x20an\x20HTML\x20snippet');case'Increase\x20the\x20indentation':return t('Increase\x20the\x20indentation');case'Insert\x20Mermaid\x20diagram':return t('Insert\x20Mermaid\x20diagram');case'Insert\x20the\x20Mermaid\x20diagram':return t('Insert\x20the\x20Mermaid\x20diagram');case'Create\x20a\x20table':return t('Create\x20a\x20table');case'Insert\x20table\x20of\x20contents':return t('Insert\x20table\x20of\x20contents');case'Create\x20a\x20numbered\x20list':return t('Create\x20a\x20numbered\x20list');case'Decrease\x20the\x20indentation':return t('Decrease\x20the\x20indentation');case'Insert\x20a\x20paragraph':return t('Insert\x20a\x20paragraph');case'Create\x20a\x20to-do\x20list':return t('Create\x20a\x20to-do\x20list');case'Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content':return t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content');case'Insert\x20an\x20emoji':return t('Insert\x20an\x20emoji');case'Insert\x20a\x20footnote':return t('Insert\x20a\x20footnote');default:return _0xd68f6e;}}(this['editor']['locale'],_0x1ad56e);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x5b0c42,'title':_0x5df85('AI\x20Assistant'),'description':_0x5df85('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x3257d9=>{setTimeout(()=>_0x3257d9['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x1c3f1a,'title':_0x5df85('Block\x20quote'),'description':_0x5df85('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0xaafba2,'title':_0x5df85('Bulleted\x20List'),'description':_0x5df85('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x56099e,'title':_0x5df85('Insert\x20code\x20block'),'description':_0x5df85('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x3eead4,'title':_0x5df85('Open\x20file\x20manager'),'description':_0x5df85('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x3eead4,'title':_0x5df85('Insert\x20image'),'description':_0x5df85('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x292be2,'title':_0x5df85('Emoji'),'description':_0x5df85('Insert\x20an\x20emoji'),'execute':_0x3cad15=>{setTimeout(()=>_0x3cad15['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x348bd8,'title':_0x5df85('Heading\x201'),'description':_0x5df85('Create\x20a\x20heading\x20level\x201'),'execute':_0x5310e2=>{_0x5310e2['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x990e9d,'title':_0x5df85('Heading\x202'),'description':_0x5df85('Create\x20a\x20heading\x20level\x202'),'execute':_0x3f3ecb=>{_0x3f3ecb['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x58aea4,'title':_0x5df85('Heading\x203'),'description':_0x5df85('Create\x20a\x20heading\x20level\x203'),'execute':_0x560d3a=>{_0x560d3a['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x3324a7,'title':_0x5df85('Heading\x204'),'description':_0x5df85('Create\x20a\x20heading\x20level\x204'),'execute':_0x45ae14=>{_0x45ae14['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x3d9194,'title':_0x5df85('Heading\x205'),'description':_0x5df85('Create\x20a\x20heading\x20level\x205'),'execute':_0x463ef0=>{_0x463ef0['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x35da7f,'title':_0x5df85('Heading\x206'),'description':_0x5df85('Create\x20a\x20heading\x20level\x206'),'execute':_0x347541=>{_0x347541['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x31a580,'title':_0x5df85('Horizontal\x20line'),'description':_0x5df85('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x488b49,'title':_0x5df85('Insert\x20HTML'),'description':_0x5df85('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x48dc69,'title':_0x5df85('Increase\x20indent'),'description':_0x5df85('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x5df85('Insert\x20Mermaid\x20diagram'),'description':_0x5df85('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x475088,'title':_0x5df85('Insert\x20table'),'description':_0x5df85('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x1ddd5d,'title':_0x5df85('Table\x20of\x20contents'),'description':_0x5df85('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x334fe0,'title':_0x5df85('Numbered\x20List'),'description':_0x5df85('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x458113,'title':_0x5df85('Decrease\x20indent'),'description':_0x5df85('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x4129fe,'title':_0x5df85('Paragraph'),'description':_0x5df85('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x3461b5,'title':_0x5df85('To-do\x20List'),'description':_0x5df85('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x21a3ee,'title':_0x5df85('Footnote'),'description':_0x5df85('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x12dc3d){return _0x12dc3d['isEnabled']?_0x12dc3d['isEnabled'](this['editor']):!_0x12dc3d['commandName']||this['editor']['commands']['get'](_0x12dc3d['commandName'])['isEnabled'];}['_proxyExecute'](_0x335b38){if(_0x335b38['execute'])_0x335b38['execute'](this['editor']);else{if(!_0x335b38['commandName'])throw new _0x1c85fe('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x335b38});this['editor']['execute'](_0x335b38['commandName']);}}}function S(_0x432c0d,_0x5dca2f){return _0x432c0d['title']<_0x5dca2f['title']?-0x1:_0x432c0d['title']>_0x5dca2f['title']?0x1:0x0;}function O(_0x343bb5,_0x273e9c){return _0x273e9c+'-'+_0x343bb5['toLowerCase']()['split']('\x20')['join']('-');}class SlashCommandEditing extends _0x2b4222{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SlashCommandConfig];}['getMatchingCommands'](_0x5d42e8){const _0x59fbac=_0x5d42e8&&_0x5d42e8['toLowerCase']();let _0x1a80f8=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x1a80f8=_0x1a80f8['filter'](_0x1dd568=>_0x1dd568['isEnabled']()),_0x59fbac){const _0x4f55a8=[],_0x30f9cb=[],_0x2f8593=[],_0x2aca1e=[];for(const _0x2ca191 of _0x1a80f8)_0x2ca191['id']['toLowerCase']()['includes'](_0x59fbac)?_0x4f55a8['push'](_0x2ca191):_0x2ca191['title']['toLowerCase']()['includes'](_0x59fbac)?_0x30f9cb['push'](_0x2ca191):_0x2ca191['aliases']&&_0x2ca191['aliases']['some'](_0x6174d=>_0x6174d['toLowerCase']()['includes'](_0x59fbac))?_0x2f8593['push'](_0x2ca191):_0x2ca191['description']&&_0x2ca191['description']['toLowerCase']()['includes'](_0x59fbac)&&_0x2aca1e['push'](_0x2ca191);_0x1a80f8=_0x4f55a8['concat'](_0x30f9cb,_0x2f8593,_0x2aca1e);}return _0x1a80f8;}}class SlashCommandButtonView extends _0x1ed206{constructor(_0x857231,_0x120ee9){super(_0x857231),this['textPartView']=this['_createTextPartView'](_0x857231,_0x120ee9),void 0x0!==_0x120ee9['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x120ee9['isIconColorInherited']),this['set']({'icon':_0x120ee9['icon']||_0x567d26,'withText':!0x0,'label':_0x120ee9['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x360f44,_0x24c43d){const _0x152402=new _0x3f3bb2(_0x360f44);return _0x152402['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x24c43d['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x24c43d['description']}]}]:[this['labelView']]}),_0x152402;}}class SlashCommandUI extends _0x2b4222{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x48e0ab){super(_0x48e0ab),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x371f19=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3d876c;for(const _0x53b92c in _0x371f19){const _0x20f329=_0x53b92c,_0x400a8c=_0x371f19[_0x20f329];if('slashCommandLicenseKeyValid'==_0x400a8c||'slashCommandLicenseKeyInvalid'==_0x400a8c||'slashCommandLicenseKeyExpired'==_0x400a8c||'slashCommandLicenseKeyDomainLimit'==_0x400a8c||'slashCommandLicenseKeyNotAllowed'==_0x400a8c||'slashCommandLicenseKeyEvaluationLimit'==_0x400a8c||'slashCommandLicenseKeyUsageLimit'==_0x400a8c){delete _0x371f19[_0x20f329],_0x3d876c=_0x400a8c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x3d876c&&_0x371f19['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x3d876c&&_0x371f19['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x3d876c&&_0x371f19['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x3d876c&&_0x371f19['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x3d876c&&_0x371f19['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x3d876c&&_0x371f19['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0xf0508b=this['editor'],_0x2b1ba7=this['editor']['plugins']['get']('SlashCommandEditing'),_0x4b7b37=_0xf0508b['config']['get']('mention.feeds');_0x4b7b37['push']({'marker':'/','feed':_0x36edc6=>_0x2b1ba7['getMatchingCommands'](_0x36edc6),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0xf0508b['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0xf0508b['config']['set']('mention.feeds',_0x4b7b37);}['_overrideMentionExecuteListener'](){const _0x5715ec=this['editor'];_0x5715ec['commands']['get']('mention')['on']('execute',(_0x45ba44,_0x174210)=>{const _0x268fcc=_0x174210[0x0],_0x322706=_0x5715ec['model'];'/'===_0x268fcc['marker']&&_0x322706['change'](_0x3d7909=>{_0x3d7909['remove'](_0x268fcc['range']),_0x268fcc['mention']['execute'](),_0x45ba44['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x524303){const _0x8ad1f6=this['editor']['locale'],_0x3c472f=new SlashCommandButtonView(_0x8ad1f6,_0x524303);return _0x3c472f['render'](),_0x3c472f['element'];}}class SlashCommand extends _0x2b4222{static get['requires'](){return[_0x1943ff,SlashCommandEditing,SlashCommandUI];}static get['pluginName'](){return'SlashCommand';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{SlashCommand,SlashCommandConfig,SlashCommandEditing,SlashCommandUI};
23
+ import{Plugin as _0x59521b}from'@ckeditor/ckeditor5-core';import{Mention as _0x30e252}from'@ckeditor/ckeditor5-mention';import{CKEditorError as _0x5c1de1,uid as _0x45f9e0}from'@ckeditor/ckeditor5-utils';import{IconBrowseFiles as _0x396cb8,IconBulletedList as _0x592979,IconCodeBlock as _0x414e69,IconEmoji as _0x3e7779,IconFootnote as _0x1f5619,IconHeading1 as _0x124667,IconHeading2 as _0x223e69,IconHeading3 as _0x36987c,IconHeading4 as _0x260541,IconHeading5 as _0x2d05d2,IconHeading6 as _0xf91cbf,IconHorizontalLine as _0x29ba52,IconHtml as _0x1195fa,IconIndent as _0xf88175,IconNumberedList as _0x473175,IconOutdent as _0x135bc3,IconParagraph as _0x26ca32,IconPlay as _0x4beb22,IconQuote as _0x1dd0d3,IconRobotPencil as _0x201eec,IconTable as _0x3a1377,IconTableOfContents as _0x52e7f0,IconTodoList as _0x239913}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x5378b8,View as _0x22dc31}from'@ckeditor/ckeditor5-ui';var O=class extends _0x59521b{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x35696b){super(_0x35696b),this['_allowedCommands']=null;}afterInit(){const _0x6a6eaa=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x1b9f00=function(_0x41ce2f){let _0x264e79=['heading4','heading5','heading6'];if(_0x41ce2f){const _0x504808=_0x41ce2f['map'](_0x38c439=>_0x38c439['model']);_0x264e79=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x529e49=>!_0x504808['includes'](_0x529e49));}return _0x264e79;}(this['editor']['config']['get']('heading.options'));let _0x21bf39=this['getDefaultCommands']()['filter'](_0x4ee863=>!_0x1b9f00['includes'](_0x4ee863['id']))['filter'](_0x4385a6=>!_0x6a6eaa['includes'](_0x4385a6['commandName']));const _0x25b145=this['editor']['config']['get']('slashCommand.extraCommands');_0x25b145&&_0x25b145['length']&&(_0x21bf39=_0x21bf39['concat'](_0x25b145));const _0x3948e2=this['editor']['config']['get']('template.definitions');_0x3948e2&&_0x3948e2['length']&&(_0x21bf39=_0x21bf39['concat'](function(_0x277f2b){return _0x277f2b['map'](_0x5c4785=>{const {title:_0x30e9d7,icon:_0xcb50d4,description:_0x17bfc9,data:_0x51605a}=_0x5c4785,_0x34708d={'id':P(_0x30e9d7,'template'),'commandName':'insertTemplate','execute':_0x117a85=>{_0x117a85['execute']('insertTemplate',_0x51605a);},'description':_0x17bfc9,'icon':_0xcb50d4,'title':_0x30e9d7};return _0xcb50d4&&(_0x34708d['isIconColorInherited']=!0x1),_0x34708d;});}(_0x3948e2)));const _0x16a358=this['editor']['config']['get']('style.definitions');_0x16a358&&_0x16a358['length']&&(_0x21bf39=_0x21bf39['concat'](function(_0xbf5ddc){return _0xbf5ddc['map'](_0x108637=>({'id':P(_0x108637['name'],'style'),'commandName':'style','execute':_0x241613=>{_0x241613['execute']('style',{'styleName':_0x108637['name']});},'isEnabled':_0x40a879=>{const _0x416ca3=_0x40a879['commands']['get']('style');return _0x416ca3['isEnabled']&&_0x416ca3['enabledStyles']['includes'](_0x108637['name']);},'title':_0x108637['name']}));}(_0x16a358)));const _0x5ddf96=_0x21bf39['filter'](_0x347867=>!_0x347867['commandName']||void 0x0!==this['editor']['commands']['get'](_0x347867['commandName'])),_0x1877e5=[];for(const _0x425f2d of _0x5ddf96)_0x1877e5['push']({'id':_0x425f2d['id'],'commandName':_0x425f2d['commandName'],'title':'function'==typeof _0x425f2d['title']?_0x425f2d['title'](this['editor']):_0x425f2d['title'],'description':_0x425f2d['description'],'icon':_0x425f2d['icon'],'isIconColorInherited':_0x425f2d['isIconColorInherited'],'aliases':_0x425f2d['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x425f2d),'execute':()=>this['_proxyExecute'](_0x425f2d)});this['_allowedCommands']=_0x1877e5['sort'](E),async function(_0x496bb7){const _0x2a9164='5goNZRxHzmBfrl0Fq6Cks1ahDGS2LUEWiby3wKvu4IVPdeT8jn9MOQJtcAY7Xp',_0x16e15a=0x79710,_0x4c5f56={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x22aba4(_0x43112d){const _0x2471a1=new window['Promise'](_0x2eb707=>{_0x43112d['once']('ready',_0x2eb707);}),_0x12d20c=window['Date']['now'](),_0x1a49ad=_0x43112d['config']['get']('licenseKey');async function _0x13af7a(){let _0x5a20b4,_0x155087=null,_0x1bfe96=null;try{return'GPL'==_0x1a49ad?'NotAllowed':(_0x5a20b4=_0x2f63d4(),_0x5a20b4?(_0x5a20b4['usageEndpoint']&&(_0x1bfe96=_0x2b1f39(_0x5a20b4['usageEndpoint'],_0x5a20b4['jti'])),await _0x202618()?_0x5112ea()?_0x4c3994()?'Expired':_0xde86a()?('evaluation'==_0x5a20b4['licenseType']&&(_0x155087=_0x2a0ed2('EvaluationLimit')),await _0x523a2f()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4c3994(){const _0x40f114=['evaluation','trial']['includes'](_0x5a20b4['licenseType'])?_0x12d20c/0x3e8:0xe10*_0x16e15a;return _0x5a20b4['exp']<_0x40f114;}function _0x5112ea(){const _0x4ca51d=_0x5a20b4['features'];return!!_0x4ca51d&&(!!_0x4ca51d['includes']('*')||(!!_0x4ca51d['includes']('SC')||(!!_0x4ca51d['includes']('PP')||!(!_0x4ca51d['includes']('TRILIUM')||!_0x5bd240()))));}function _0xde86a(){const _0x1b6674=_0x5a20b4['licensedHosts'];if(!_0x1b6674||0x0==_0x1b6674['length'])return!0x0;const {hostname:_0x2791d0}=new URL(window['location']['href']);if(_0x1b6674['includes'](_0x2791d0))return!0x0;const _0x3aa05d=_0x2791d0['split']('.');return _0x1b6674['filter'](_0x184559=>_0x184559['includes']('*'))['map'](_0x308086=>_0x308086['split']('.'))['filter'](_0x2b5029=>_0x2b5029['length']<=_0x3aa05d['length'])['map'](_0x38faeb=>Array(_0x3aa05d['length']-_0x38faeb['length'])['fill']('*'===_0x38faeb[0x0]?'*':'')['concat'](_0x38faeb))['some'](_0x4cf338=>_0x3aa05d['every']((_0x2bac3e,_0x57fd7b)=>_0x4cf338[_0x57fd7b]===_0x2bac3e||'*'===_0x4cf338[_0x57fd7b]));}function _0x523a2f(){return _0x155087&&_0x1bfe96?new window['Promise']((_0x3418a3,_0x242682)=>{_0x155087['then'](_0x3418a3,_0x242682),_0x1bfe96['then'](_0x521e22=>{'Valid'!=_0x521e22&&_0x3418a3(_0x521e22);},_0x242682);}):_0x155087||_0x1bfe96||'Valid';}}function _0x2b1f39(_0x3de0cd,_0x3c5202){return new window['Promise'](_0x3eec44=>{if(_0x583429())return _0x3eec44('Valid');_0x5350f5(),_0x43112d['decorate']('_sendUsageRequest');let _0x55dbc7=!0x1;const _0x5fe3bc=_0x45f9e0();function _0x5285ce(_0x10438d){return!!_0x10438d&&('object'==typeof _0x10438d||'function'==typeof _0x10438d)&&'function'==typeof _0x10438d['then']&&'function'==typeof _0x10438d['catch'];}function _0x14eda9(_0x7601a1){_0x590d4f(_0x7601a1)['then'](_0x4f1d2d=>_0x4f1d2d&&'ok'==_0x4f1d2d['status']?_0x333ef9(_0x215398(_0x5fe3bc+_0x3c5202))!=_0x4f1d2d['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x307395=>(_0x70943(),_0x307395),()=>{const _0x19749f=_0x363c36();return null==_0x19749f?(_0x70943(),'Valid'):_0x12d20c-_0x19749f>0x240c8400?'UsageLimit':'Valid';})['then'](_0x3eec44)['catch'](()=>{_0x3eec44('UsageLimit');});const _0x3a8224=0x36ee80;function _0x70943(){const _0x4b5f11='llct-'+_0x333ef9(_0x215398(_0x3de0cd)),_0x5cb417=_0x4a40a7(_0x333ef9(window['Math']['ceil'](_0x12d20c/_0x3a8224)));window['localStorage']['setItem'](_0x4b5f11,_0x5cb417);}function _0x363c36(){const _0x1940f8='llct-'+_0x333ef9(_0x215398(_0x3de0cd)),_0x4a3a49=window['localStorage']['getItem'](_0x1940f8);return _0x4a3a49?window['parseInt'](_0x4a40a7(_0x4a3a49),0x10)*_0x3a8224:null;}function _0x590d4f(_0x245a4e){return new window['Promise']((_0x56f601,_0x16b399)=>{_0x245a4e['then'](_0x56f601,_0x16b399),window['setTimeout'](_0x16b399,0x1d4c0);});}}_0x43112d['on']('_sendUsageRequest',(_0xf18640,_0x39158c)=>{if(_0x39158c[0x0]!=_0x3de0cd)return _0x3eec44('UsageLimit');_0x39158c[0x1]={..._0x39158c[0x1],'requestId':_0x5fe3bc};},{'priority':'high'}),_0x43112d['on']('_sendUsageRequest',_0x51b90b=>{_0x5285ce(_0x51b90b['return'])&&(_0x55dbc7=!0x0,_0x14eda9(_0x51b90b['return']));},{'priority':'low'}),_0x2471a1['then'](()=>{_0x55dbc7||_0x3eec44('UsageLimit');});});function _0x583429(){return'auto'==_0x43112d['editing']['view']['_overlayModeHint'];}function _0x5350f5(){_0x43112d['editing']['view']['_overlayModeHint']='auto';}}function _0x2a0ed2(_0x17eb29){const _0x1c6f5e=[new window['Promise'](_0x4c1bbd=>setTimeout(_0x4c1bbd,0x93ecc)),_0x2471a1['then'](()=>new window['Promise'](_0x1bb782=>{let _0x2e4d71=0x0;_0x43112d['model']['on']('applyOperation',(_0x1e8e7d,_0x5b5688)=>{_0x5b5688[0x0]['isDocumentOperation']&&_0x2e4d71++,0x5e8==_0x2e4d71&&(_0x1bb782(),_0x1e8e7d['off']());});}))];return window['Promise']['race'](_0x1c6f5e)['then'](()=>_0x17eb29);}async function _0x54a009(){await _0x2471a1,_0x43112d['model']['change']=_0x4de402,_0x43112d['model']['enqueueChange']=_0x4de402,_0x43112d['enableReadOnlyMode']('model');}function _0x5bd240(){return window['glob']&&window['glob']['triliumVersion'];}function _0x1db939(_0x22e233){const _0x19c8b9=_0x107d57();_0x43112d[_0x19c8b9]='slashCommandLicenseKey'+_0x22e233,'Valid'!=_0x22e233&&_0x54a009();}function _0x107d57(){const _0x1fa93d=window['String'](window['performance']['now']())['replace']('.','');let _0x1c5b40='g';for(let _0x5c705f=0x0;_0x5c705f<_0x1fa93d['length'];_0x5c705f+=0x2){let _0x217f59=window['parseInt'](_0x1fa93d['substring'](_0x5c705f,_0x5c705f+0x2));_0x217f59>=0x3e&&(_0x217f59-=0x3e),_0x1c5b40+=_0x2a9164[_0x217f59];}return _0x1c5b40;}function _0x2f63d4(){const _0x4151e2=_0x1a49ad['split']('.');if(0x3!=_0x4151e2['length'])return null;return _0x92da09(_0x4151e2[0x1]);function _0x92da09(_0x19751e){const _0x2d7008=_0x3e822f(_0x19751e);return _0x2d7008&&_0x1df5fe()?_0x2d7008:null;function _0x1df5fe(){const _0x4d45f2=_0x2d7008['jti'],_0x2d6225=window['parseInt'](_0x4d45f2['substring'](_0x4d45f2['length']-0x8),0x10),_0x20b441={..._0x2d7008,'jti':_0x4d45f2['substring'](0x0,_0x4d45f2['length']-0x8)};return delete _0x20b441['vc'],_0x215398(_0x20b441)==_0x2d6225;}}}async function _0x202618(){let _0x567cc6=!0x0;try{const [_0x236015,_0x2aa3eb,_0x5edbc4]=_0x1a49ad['split']('.');return _0x233584(_0x236015),await _0x471d4d(_0x236015,_0x2aa3eb,_0x5edbc4),_0x567cc6;}catch{return!0x1;}function _0x233584(_0x4eac53){const _0x3a44fa=_0x3e822f(_0x4eac53);_0x3a44fa&&'ES256'==_0x3a44fa['alg']||(_0x567cc6=!0x1);}async function _0x471d4d(_0x5a3a4c,_0x461736,_0x1215ba){const _0x58b92f=window['Uint8Array']['from'](_0x4334e9(_0x1215ba),_0x4d0e17=>_0x4d0e17['charCodeAt'](0x0)),_0x5ce1d8=new window['TextEncoder']()['encode'](_0x5a3a4c+'.'+_0x461736),_0x3759be=window['crypto']['subtle'];if(!_0x3759be)return;const _0x6346fd=await _0x3759be['importKey']('jwk',_0x4c5f56,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x3759be['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x6346fd,_0x58b92f,_0x5ce1d8)||(_0x567cc6=!0x1);}}function _0x3e822f(_0x5b74e3){return _0x5b74e3['startsWith']('ey')?JSON['parse'](_0x4334e9(_0x5b74e3)):null;}function _0x4334e9(_0x3aa64b){return window['atob'](_0x3aa64b['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x215398(_0x2d4f94){let _0x2313d2=0x1505;function _0x1e9dca(_0x428745){for(let _0x3c04d0=0x0;_0x3c04d0<_0x428745['length'];_0x3c04d0++){const _0x436cec=_0x428745['charCodeAt'](_0x3c04d0);_0x2313d2=(_0x2313d2<<0x5)+_0x2313d2+_0x436cec,_0x2313d2&=_0x2313d2;}}function _0x5d5bc3(_0x2e42c4){Array['isArray'](_0x2e42c4)?_0x2e42c4['forEach'](_0x5d5bc3):_0x2e42c4&&'object'==typeof _0x2e42c4?Object['entries'](_0x2e42c4)['sort']()['forEach'](([_0x36a785,_0x3273d7])=>{_0x1e9dca(_0x36a785),_0x5d5bc3(_0x3273d7);}):_0x1e9dca(window['String'](_0x2e42c4));}return _0x5d5bc3(_0x2d4f94),_0x2313d2>>>0x0;}function _0x333ef9(_0x588209){return _0x588209['toString'](0x10)['padStart'](0x8,'0');}function _0x4a40a7(_0x1793f2){return _0x1793f2['split']('')['reverse']()['join']('');}function _0x4de402(){}_0x1db939(await _0x13af7a());}_0x22aba4(_0x496bb7['editor']);}(this);}getAllowedCommands(){return this['_allowedCommands'];}getDefaultCommands(){const _0xc647dc=_0x31f186=>function(_0x183551,_0x2ad6b4){const t=_0x183551['t'],_0x5fbd22=_0x183551['t'];switch(_0x2ad6b4){case'AI\x20Assistant':return _0x5fbd22('AI\x20Assistant');case'Block\x20quote':return _0x5fbd22('Block\x20quote');case'Bulleted\x20List':return _0x5fbd22('Bulleted\x20List');case'Insert\x20code\x20block':return _0x5fbd22('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x5fbd22('Open\x20file\x20manager');case'Insert\x20image':return _0x5fbd22('Insert\x20image');case'Heading\x201':return _0x5fbd22('Heading\x201');case'Heading\x202':return _0x5fbd22('Heading\x202');case'Heading\x203':return _0x5fbd22('Heading\x203');case'Heading\x204':return _0x5fbd22('Heading\x204');case'Heading\x205':return _0x5fbd22('Heading\x205');case'Heading\x206':return _0x5fbd22('Heading\x206');case'Horizontal\x20line':return _0x5fbd22('Horizontal\x20line');case'Insert\x20HTML':return _0x5fbd22('Insert\x20HTML');case'Increase\x20indent':return _0x5fbd22('Increase\x20indent');case'Insert\x20table':return _0x5fbd22('Insert\x20table');case'Table\x20of\x20contents':return _0x5fbd22('Table\x20of\x20contents');case'Numbered\x20List':return _0x5fbd22('Numbered\x20List');case'Decrease\x20indent':return _0x5fbd22('Decrease\x20indent');case'Paragraph':return _0x5fbd22('Paragraph');case'To-do\x20List':return _0x5fbd22('To-do\x20List');case'Create\x20a\x20block\x20quote':return t('Create\x20a\x20block\x20quote');case'Create\x20a\x20bulleted\x20list':return t('Create\x20a\x20bulleted\x20list');case'Create\x20a\x20code\x20block':return t('Create\x20a\x20code\x20block');case'Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Create\x20a\x20heading\x20level\x201':return t('Create\x20a\x20heading\x20level\x201');case'Create\x20a\x20heading\x20level\x202':return t('Create\x20a\x20heading\x20level\x202');case'Create\x20a\x20heading\x20level\x203':return t('Create\x20a\x20heading\x20level\x203');case'Create\x20a\x20heading\x20level\x204':return t('Create\x20a\x20heading\x20level\x204');case'Create\x20a\x20heading\x20level\x205':return t('Create\x20a\x20heading\x20level\x205');case'Create\x20a\x20heading\x20level\x206':return t('Create\x20a\x20heading\x20level\x206');case'Insert\x20a\x20horizontal\x20line':return t('Insert\x20a\x20horizontal\x20line');case'Insert\x20an\x20HTML\x20snippet':return t('Insert\x20an\x20HTML\x20snippet');case'Increase\x20the\x20indentation':return t('Increase\x20the\x20indentation');case'Insert\x20Mermaid\x20diagram':return t('Insert\x20Mermaid\x20diagram');case'Insert\x20the\x20Mermaid\x20diagram':return t('Insert\x20the\x20Mermaid\x20diagram');case'Create\x20a\x20table':return t('Create\x20a\x20table');case'Insert\x20table\x20of\x20contents':return t('Insert\x20table\x20of\x20contents');case'Create\x20a\x20numbered\x20list':return t('Create\x20a\x20numbered\x20list');case'Decrease\x20the\x20indentation':return t('Decrease\x20the\x20indentation');case'Insert\x20a\x20paragraph':return t('Insert\x20a\x20paragraph');case'Create\x20a\x20to-do\x20list':return t('Create\x20a\x20to-do\x20list');case'Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content':return t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content');case'Insert\x20an\x20emoji':return t('Insert\x20an\x20emoji');case'Insert\x20a\x20footnote':return t('Insert\x20a\x20footnote');default:return _0x2ad6b4;}}(this['editor']['locale'],_0x31f186);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x201eec,'title':_0xc647dc('AI\x20Assistant'),'description':_0xc647dc('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x3db569=>{setTimeout(()=>_0x3db569['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x1dd0d3,'title':_0xc647dc('Block\x20quote'),'description':_0xc647dc('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x592979,'title':_0xc647dc('Bulleted\x20List'),'description':_0xc647dc('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x414e69,'title':_0xc647dc('Insert\x20code\x20block'),'description':_0xc647dc('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x396cb8,'title':_0xc647dc('Open\x20file\x20manager'),'description':_0xc647dc('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x396cb8,'title':_0xc647dc('Insert\x20image'),'description':_0xc647dc('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x3e7779,'title':_0xc647dc('Emoji'),'description':_0xc647dc('Insert\x20an\x20emoji'),'execute':_0x2e46ea=>{setTimeout(()=>_0x2e46ea['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x124667,'title':_0xc647dc('Heading\x201'),'description':_0xc647dc('Create\x20a\x20heading\x20level\x201'),'execute':_0x7a77e6=>{_0x7a77e6['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x223e69,'title':_0xc647dc('Heading\x202'),'description':_0xc647dc('Create\x20a\x20heading\x20level\x202'),'execute':_0x8d0748=>{_0x8d0748['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x36987c,'title':_0xc647dc('Heading\x203'),'description':_0xc647dc('Create\x20a\x20heading\x20level\x203'),'execute':_0xca7735=>{_0xca7735['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x260541,'title':_0xc647dc('Heading\x204'),'description':_0xc647dc('Create\x20a\x20heading\x20level\x204'),'execute':_0x2b5310=>{_0x2b5310['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x2d05d2,'title':_0xc647dc('Heading\x205'),'description':_0xc647dc('Create\x20a\x20heading\x20level\x205'),'execute':_0x8c5c9c=>{_0x8c5c9c['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0xf91cbf,'title':_0xc647dc('Heading\x206'),'description':_0xc647dc('Create\x20a\x20heading\x20level\x206'),'execute':_0x5072dd=>{_0x5072dd['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x29ba52,'title':_0xc647dc('Horizontal\x20line'),'description':_0xc647dc('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x1195fa,'title':_0xc647dc('Insert\x20HTML'),'description':_0xc647dc('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0xf88175,'title':_0xc647dc('Increase\x20indent'),'description':_0xc647dc('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0xc647dc('Insert\x20Mermaid\x20diagram'),'description':_0xc647dc('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x3a1377,'title':_0xc647dc('Insert\x20table'),'description':_0xc647dc('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x52e7f0,'title':_0xc647dc('Table\x20of\x20contents'),'description':_0xc647dc('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x473175,'title':_0xc647dc('Numbered\x20List'),'description':_0xc647dc('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x135bc3,'title':_0xc647dc('Decrease\x20indent'),'description':_0xc647dc('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x26ca32,'title':_0xc647dc('Paragraph'),'description':_0xc647dc('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x239913,'title':_0xc647dc('To-do\x20List'),'description':_0xc647dc('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x1f5619,'title':_0xc647dc('Footnote'),'description':_0xc647dc('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0xe73615){return _0xe73615['isEnabled']?_0xe73615['isEnabled'](this['editor']):!_0xe73615['commandName']||this['editor']['commands']['get'](_0xe73615['commandName'])['isEnabled'];}_proxyExecute(_0x11f36a){if(_0x11f36a['execute'])_0x11f36a['execute'](this['editor']);else{if(!_0x11f36a['commandName'])throw new _0x5c1de1('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x11f36a});this['editor']['execute'](_0x11f36a['commandName']);}}};function E(_0x45a461,_0x532b2c){return _0x45a461['title']<_0x532b2c['title']?-0x1:_0x45a461['title']>_0x532b2c['title']?0x1:0x0;}function P(_0x2888c7,_0x25aea6){return _0x25aea6+'-'+_0x2888c7['toLowerCase']()['split']('\x20')['join']('-');}var K=class extends _0x59521b{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[O];}getMatchingCommands(_0xb243ef){const _0x437899=_0xb243ef&&_0xb243ef['toLowerCase']();let _0x56c276=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x56c276=_0x56c276['filter'](_0x150c2=>_0x150c2['isEnabled']()),_0x437899){const _0x14bc96=[],_0x27d88d=[],_0x3405ba=[],_0x2cc26d=[];for(const _0x3b4d86 of _0x56c276)_0x3b4d86['id']['toLowerCase']()['includes'](_0x437899)?_0x14bc96['push'](_0x3b4d86):_0x3b4d86['title']['toLowerCase']()['includes'](_0x437899)?_0x27d88d['push'](_0x3b4d86):_0x3b4d86['aliases']&&_0x3b4d86['aliases']['some'](_0x5488c5=>_0x5488c5['toLowerCase']()['includes'](_0x437899))?_0x3405ba['push'](_0x3b4d86):_0x3b4d86['description']&&_0x3b4d86['description']['toLowerCase']()['includes'](_0x437899)&&_0x2cc26d['push'](_0x3b4d86);_0x56c276=_0x14bc96['concat'](_0x27d88d,_0x3405ba,_0x2cc26d);}return _0x56c276;}},M=class extends _0x5378b8{constructor(_0x32727f,_0x522626){super(_0x32727f),this['textPartView']=this['_createTextPartView'](_0x32727f,_0x522626),void 0x0!==_0x522626['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x522626['isIconColorInherited']),this['set']({'icon':_0x522626['icon']||_0x4beb22,'withText':!0x0,'label':_0x522626['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}_createTextPartView(_0x10fe05,_0x108577){const _0x35961a=new _0x22dc31(_0x10fe05);return _0x35961a['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x108577['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x108577['description']}]}]:[this['labelView']]}),_0x35961a;}},S=class extends _0x59521b{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2adc06){super(_0x2adc06),this['_setupMentionConfiguration']();}init(){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x106c88=[this['editor']];for(const _0x3689e2 of _0x106c88){let _0x2bd68d;for(const _0xe63ad6 in _0x3689e2){const _0x5662db=_0xe63ad6,_0x43d54f=_0x3689e2[_0x5662db];if('slashCommandLicenseKeyValid'==_0x43d54f||'slashCommandLicenseKeyInvalid'==_0x43d54f||'slashCommandLicenseKeyExpired'==_0x43d54f||'slashCommandLicenseKeyDomainLimit'==_0x43d54f||'slashCommandLicenseKeyNotAllowed'==_0x43d54f||'slashCommandLicenseKeyEvaluationLimit'==_0x43d54f||'slashCommandLicenseKeyUsageLimit'==_0x43d54f){delete _0x3689e2[_0x5662db],_0x2bd68d=_0x43d54f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x2bd68d&&_0x3689e2['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x2bd68d&&_0x3689e2['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x2bd68d&&_0x3689e2['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x2bd68d&&_0x3689e2['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x2bd68d&&_0x3689e2['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x2bd68d&&_0x3689e2['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}_setupMentionConfiguration(){const _0x1310b9=this['editor'],_0x530182=this['editor']['plugins']['get']('SlashCommandEditing'),_0x45c30f=_0x1310b9['config']['get']('mention.feeds');_0x45c30f['push']({'marker':'/','feed':_0x2fbb9a=>_0x530182['getMatchingCommands'](_0x2fbb9a),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x1310b9['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x1310b9['config']['set']('mention.feeds',_0x45c30f);}_overrideMentionExecuteListener(){const _0x5a4c61=this['editor'];_0x5a4c61['commands']['get']('mention')['on']('execute',(_0x156349,_0x2e83a9)=>{const _0x4b802b=_0x2e83a9[0x0],_0x5cf871=_0x5a4c61['model'];'/'===_0x4b802b['marker']&&_0x5cf871['change'](_0x31cbb2=>{_0x31cbb2['remove'](_0x4b802b['range']),_0x4b802b['mention']['execute'](),_0x156349['stop']();});},{'priority':'high'});}_customItemRenderer(_0x5cff66){const _0x5e3d5a=this['editor']['locale'],_0x177edb=new M(_0x5e3d5a,_0x5cff66);return _0x177edb['render'](),_0x177edb['element'];}},D=class extends _0x59521b{static get requires(){return[_0x30e252,K,S];}static get['pluginName'](){return'SlashCommand';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{D as SlashCommand,O as SlashCommandConfig,K as SlashCommandEditing,S as SlashCommandUI};
@@ -1,5 +1 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
1
  export {};
@@ -1,38 +1,38 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module slash-command/slashcommand
7
- * @publicApi
8
- */
9
- import { Plugin } from '@ckeditor/ckeditor5-core';
10
- import { Mention } from '@ckeditor/ckeditor5-mention';
11
- import { SlashCommandEditing } from './slashcommandediting.js';
12
- import { SlashCommandUI } from './slashcommandui.js';
6
+ * @module slash-command/slashcommand
7
+ * @publicApi
8
+ */
9
+ import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
10
+ import { Mention } from "@ckeditor/ckeditor5-mention";
11
+ import { SlashCommandEditing } from "./slashcommandediting.js";
12
+ import { SlashCommandUI } from "./slashcommandui.js";
13
13
  /**
14
- * The slash command feature.
15
- * It allows for an easy access to a predefined list of editor commands by typing `/` inside the editor.
16
- *
17
- * For a detailed overview, check the {@glink features/slash-commands Slash command} feature guide.
18
- *
19
- * @extends module:core/plugin~Plugin
20
- */
14
+ * The slash command feature.
15
+ * It allows for an easy access to a predefined list of editor commands by typing `/` inside the editor.
16
+ *
17
+ * For a detailed overview, check the {@glink features/slash-commands Slash command} feature guide.
18
+ *
19
+ * @extends module:core/plugin~Plugin
20
+ */
21
21
  export declare class SlashCommand extends Plugin {
22
- /**
23
- * @inheritDoc
24
- */
25
- static get requires(): readonly [typeof Mention, typeof SlashCommandEditing, typeof SlashCommandUI];
26
- /**
27
- * @inheritDoc
28
- */
29
- static get pluginName(): "SlashCommand";
30
- /**
31
- * @inheritDoc
32
- */
33
- static get isOfficialPlugin(): true;
34
- /**
35
- * @inheritDoc
36
- */
37
- static get isPremiumPlugin(): true;
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get requires(): PluginDependenciesOf<[Mention, SlashCommandEditing, SlashCommandUI]>;
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ static get pluginName(): "SlashCommand";
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ static override get isOfficialPlugin(): true;
34
+ /**
35
+ * @inheritDoc
36
+ */
37
+ static override get isPremiumPlugin(): true;
38
38
  }