@ckeditor/ckeditor5-ai 44.3.0-alpha.7 → 45.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 (180) hide show
  1. package/LICENSE.md +1 -1
  2. package/build/ai.js +1 -1
  3. package/build/translations/be.js +1 -0
  4. package/ckeditor5-metadata.json +2 -2
  5. package/dist/index.js +2 -2
  6. package/dist/translations/af.js +1 -1
  7. package/dist/translations/af.umd.js +1 -1
  8. package/dist/translations/ar.js +1 -1
  9. package/dist/translations/ar.umd.js +1 -1
  10. package/dist/translations/ast.js +1 -1
  11. package/dist/translations/ast.umd.js +1 -1
  12. package/dist/translations/az.js +1 -1
  13. package/dist/translations/az.umd.js +1 -1
  14. package/dist/translations/be.d.ts +8 -0
  15. package/dist/translations/be.js +23 -0
  16. package/dist/translations/be.umd.js +23 -0
  17. package/dist/translations/bg.js +1 -1
  18. package/dist/translations/bg.umd.js +1 -1
  19. package/dist/translations/bn.js +1 -1
  20. package/dist/translations/bn.umd.js +1 -1
  21. package/dist/translations/bs.js +1 -1
  22. package/dist/translations/bs.umd.js +1 -1
  23. package/dist/translations/ca.js +1 -1
  24. package/dist/translations/ca.umd.js +1 -1
  25. package/dist/translations/cs.js +1 -1
  26. package/dist/translations/cs.umd.js +1 -1
  27. package/dist/translations/da.js +1 -1
  28. package/dist/translations/da.umd.js +1 -1
  29. package/dist/translations/de-ch.js +1 -1
  30. package/dist/translations/de-ch.umd.js +1 -1
  31. package/dist/translations/de.js +1 -1
  32. package/dist/translations/de.umd.js +1 -1
  33. package/dist/translations/el.js +1 -1
  34. package/dist/translations/el.umd.js +1 -1
  35. package/dist/translations/en-au.js +1 -1
  36. package/dist/translations/en-au.umd.js +1 -1
  37. package/dist/translations/en-gb.js +1 -1
  38. package/dist/translations/en-gb.umd.js +1 -1
  39. package/dist/translations/en.js +1 -1
  40. package/dist/translations/en.umd.js +1 -1
  41. package/dist/translations/eo.js +1 -1
  42. package/dist/translations/eo.umd.js +1 -1
  43. package/dist/translations/es-co.js +1 -1
  44. package/dist/translations/es-co.umd.js +1 -1
  45. package/dist/translations/es.js +1 -1
  46. package/dist/translations/es.umd.js +1 -1
  47. package/dist/translations/et.js +1 -1
  48. package/dist/translations/et.umd.js +1 -1
  49. package/dist/translations/eu.js +1 -1
  50. package/dist/translations/eu.umd.js +1 -1
  51. package/dist/translations/fa.js +1 -1
  52. package/dist/translations/fa.umd.js +1 -1
  53. package/dist/translations/fi.js +1 -1
  54. package/dist/translations/fi.umd.js +1 -1
  55. package/dist/translations/fr.js +1 -1
  56. package/dist/translations/fr.umd.js +1 -1
  57. package/dist/translations/gl.js +1 -1
  58. package/dist/translations/gl.umd.js +1 -1
  59. package/dist/translations/gu.js +1 -1
  60. package/dist/translations/gu.umd.js +1 -1
  61. package/dist/translations/he.js +1 -1
  62. package/dist/translations/he.umd.js +1 -1
  63. package/dist/translations/hi.js +1 -1
  64. package/dist/translations/hi.umd.js +1 -1
  65. package/dist/translations/hr.js +1 -1
  66. package/dist/translations/hr.umd.js +1 -1
  67. package/dist/translations/hu.js +1 -1
  68. package/dist/translations/hu.umd.js +1 -1
  69. package/dist/translations/hy.js +1 -1
  70. package/dist/translations/hy.umd.js +1 -1
  71. package/dist/translations/id.js +1 -1
  72. package/dist/translations/id.umd.js +1 -1
  73. package/dist/translations/it.js +1 -1
  74. package/dist/translations/it.umd.js +1 -1
  75. package/dist/translations/ja.js +1 -1
  76. package/dist/translations/ja.umd.js +1 -1
  77. package/dist/translations/jv.js +1 -1
  78. package/dist/translations/jv.umd.js +1 -1
  79. package/dist/translations/kk.js +1 -1
  80. package/dist/translations/kk.umd.js +1 -1
  81. package/dist/translations/km.js +1 -1
  82. package/dist/translations/km.umd.js +1 -1
  83. package/dist/translations/kn.js +1 -1
  84. package/dist/translations/kn.umd.js +1 -1
  85. package/dist/translations/ko.js +1 -1
  86. package/dist/translations/ko.umd.js +1 -1
  87. package/dist/translations/ku.js +1 -1
  88. package/dist/translations/ku.umd.js +1 -1
  89. package/dist/translations/lt.js +1 -1
  90. package/dist/translations/lt.umd.js +1 -1
  91. package/dist/translations/lv.js +1 -1
  92. package/dist/translations/lv.umd.js +1 -1
  93. package/dist/translations/ms.js +1 -1
  94. package/dist/translations/ms.umd.js +1 -1
  95. package/dist/translations/nb.js +1 -1
  96. package/dist/translations/nb.umd.js +1 -1
  97. package/dist/translations/ne.js +1 -1
  98. package/dist/translations/ne.umd.js +1 -1
  99. package/dist/translations/nl.js +1 -1
  100. package/dist/translations/nl.umd.js +1 -1
  101. package/dist/translations/no.js +1 -1
  102. package/dist/translations/no.umd.js +1 -1
  103. package/dist/translations/oc.js +1 -1
  104. package/dist/translations/oc.umd.js +1 -1
  105. package/dist/translations/pl.js +1 -1
  106. package/dist/translations/pl.umd.js +1 -1
  107. package/dist/translations/pt-br.js +1 -1
  108. package/dist/translations/pt-br.umd.js +1 -1
  109. package/dist/translations/pt.js +1 -1
  110. package/dist/translations/pt.umd.js +1 -1
  111. package/dist/translations/ro.js +1 -1
  112. package/dist/translations/ro.umd.js +1 -1
  113. package/dist/translations/ru.js +1 -1
  114. package/dist/translations/ru.umd.js +1 -1
  115. package/dist/translations/si.js +1 -1
  116. package/dist/translations/si.umd.js +1 -1
  117. package/dist/translations/sk.js +1 -1
  118. package/dist/translations/sk.umd.js +1 -1
  119. package/dist/translations/sl.js +1 -1
  120. package/dist/translations/sl.umd.js +1 -1
  121. package/dist/translations/sq.js +1 -1
  122. package/dist/translations/sq.umd.js +1 -1
  123. package/dist/translations/sr-latn.js +1 -1
  124. package/dist/translations/sr-latn.umd.js +1 -1
  125. package/dist/translations/sr.js +1 -1
  126. package/dist/translations/sr.umd.js +1 -1
  127. package/dist/translations/sv.js +1 -1
  128. package/dist/translations/sv.umd.js +1 -1
  129. package/dist/translations/th.js +1 -1
  130. package/dist/translations/th.umd.js +1 -1
  131. package/dist/translations/ti.js +1 -1
  132. package/dist/translations/ti.umd.js +1 -1
  133. package/dist/translations/tk.js +1 -1
  134. package/dist/translations/tk.umd.js +1 -1
  135. package/dist/translations/tr.js +1 -1
  136. package/dist/translations/tr.umd.js +1 -1
  137. package/dist/translations/tt.js +1 -1
  138. package/dist/translations/tt.umd.js +1 -1
  139. package/dist/translations/ug.js +1 -1
  140. package/dist/translations/ug.umd.js +1 -1
  141. package/dist/translations/uk.js +1 -1
  142. package/dist/translations/uk.umd.js +1 -1
  143. package/dist/translations/ur.js +1 -1
  144. package/dist/translations/ur.umd.js +1 -1
  145. package/dist/translations/uz.js +1 -1
  146. package/dist/translations/uz.umd.js +1 -1
  147. package/dist/translations/vi.js +1 -1
  148. package/dist/translations/vi.umd.js +1 -1
  149. package/dist/translations/zh-cn.js +1 -1
  150. package/dist/translations/zh-cn.umd.js +1 -1
  151. package/dist/translations/zh.js +1 -1
  152. package/dist/translations/zh.umd.js +1 -1
  153. package/lang/translations/be.po +228 -0
  154. package/package.json +10 -10
  155. package/src/adapters/aiadapter.js +1 -1
  156. package/src/adapters/aitextadapter.js +1 -1
  157. package/src/adapters/awstextadapter.js +1 -1
  158. package/src/adapters/openaitextadapter.js +1 -1
  159. package/src/aiassistant.js +1 -1
  160. package/src/aiassistantediting.js +1 -1
  161. package/src/aiassistantui.js +1 -1
  162. package/src/index.js +1 -1
  163. package/src/legacyerrors.js +1 -1
  164. package/src/ui/aiassistantcontroller.js +2 -2
  165. package/src/ui/form/aiformcontentarea.js +1 -1
  166. package/src/ui/form/aiformerrorview.d.ts +1 -4
  167. package/src/ui/form/aiformerrorview.js +1 -1
  168. package/src/ui/form/aiformpromptview.js +1 -1
  169. package/src/ui/form/aiformtoolbarview.js +1 -1
  170. package/src/ui/form/aiformview.js +1 -1
  171. package/src/ui/form/aihistorylistitemview.js +1 -1
  172. package/src/ui/form/aihistorylistview.js +1 -1
  173. package/src/ui/form/prompthistory.js +1 -1
  174. package/src/ui/showaiassistantcommand.js +1 -1
  175. package/src/utils/common-translations.js +1 -1
  176. package/src/utils/normalizecommandsconfig.js +1 -1
  177. package/theme/icons/copy.svg +0 -1
  178. package/theme/icons/error.svg +0 -1
  179. package/theme/icons/magic-wand.svg +0 -1
  180. package/theme/icons/submit.svg +0 -1
@@ -0,0 +1,228 @@
1
+ # Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
+ #
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
+ #
8
+ msgid ""
9
+ msgstr ""
10
+ "Language: be\n"
11
+ "Plural-Forms: nplurals=3; plural=(n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+
14
+ msgctxt "AI command group label for editing and reviewing."
15
+ msgid "Edit or review"
16
+ msgstr ""
17
+
18
+ msgctxt "Label for the AI command to improve the writing of content."
19
+ msgid "Improve writing"
20
+ msgstr ""
21
+
22
+ msgctxt "Label for the AI command to make the content shorter."
23
+ msgid "Make shorter"
24
+ msgstr ""
25
+
26
+ msgctxt "Label for the AI command to make the content longer."
27
+ msgid "Make longer"
28
+ msgstr ""
29
+
30
+ msgctxt "Label for the AI command to simplify the language of content."
31
+ msgid "Simplify language"
32
+ msgstr ""
33
+
34
+ msgctxt "AI command group label for generating content from selection."
35
+ msgid "Generate from selection"
36
+ msgstr ""
37
+
38
+ msgctxt "Label for the AI command to provide a summary of content."
39
+ msgid "Summarize"
40
+ msgstr ""
41
+
42
+ msgctxt "Label for the AI command to continue the content."
43
+ msgid "Continue"
44
+ msgstr ""
45
+
46
+ msgctxt "AI command group label for changing the tone of content."
47
+ msgid "Change tone"
48
+ msgstr ""
49
+
50
+ msgctxt "Label for the AI command to rewrite content in a professional tone."
51
+ msgid "Professional"
52
+ msgstr ""
53
+
54
+ msgctxt "Label for the AI command to rewrite content in a casual tone."
55
+ msgid "Casual"
56
+ msgstr ""
57
+
58
+ msgctxt "Label for the AI command to rewrite content in a direct manner."
59
+ msgid "Direct"
60
+ msgstr ""
61
+
62
+ msgctxt "Label for the AI command to rewrite content in a confident tone."
63
+ msgid "Confident"
64
+ msgstr ""
65
+
66
+ msgctxt "Label for the AI command to rewrite content in a friendly tone."
67
+ msgid "Friendly"
68
+ msgstr ""
69
+
70
+ msgctxt "AI command group label for changing the style of content."
71
+ msgid "Change style"
72
+ msgstr ""
73
+
74
+ msgctxt "Label for the AI command to rewrite content in a business style."
75
+ msgid "Business"
76
+ msgstr ""
77
+
78
+ msgctxt "Label for the AI command to rewrite content in a legal style."
79
+ msgid "Legal"
80
+ msgstr ""
81
+
82
+ msgctxt "Label for the AI command to rewrite content in a journalistic style."
83
+ msgid "Journalism"
84
+ msgstr ""
85
+
86
+ msgctxt "Label for the AI command to rewrite content poetically."
87
+ msgid "Poetic"
88
+ msgstr ""
89
+
90
+ msgctxt "AI command group label for translating the content."
91
+ msgid "Translate"
92
+ msgstr ""
93
+
94
+ msgctxt "Translate to (English)"
95
+ msgid "English"
96
+ msgstr ""
97
+
98
+ msgctxt "Translate to (Spanish)"
99
+ msgid "Spanish"
100
+ msgstr ""
101
+
102
+ msgctxt "Translate to (German)"
103
+ msgid "German"
104
+ msgstr ""
105
+
106
+ msgctxt "Translate to (Portuguese)"
107
+ msgid "Portuguese"
108
+ msgstr ""
109
+
110
+ msgctxt "Translate to (French)"
111
+ msgid "French"
112
+ msgstr ""
113
+
114
+ msgctxt "Translate to (Simplified Chinese)"
115
+ msgid "Simplified Chinese"
116
+ msgstr ""
117
+
118
+ msgctxt "Translate to (Hindi)"
119
+ msgid "Hindi"
120
+ msgstr ""
121
+
122
+ msgctxt "Translate to (Arabic)"
123
+ msgid "Arabic"
124
+ msgstr ""
125
+
126
+ msgctxt "The heading element name displayed in the AI dialog and the button tooltip that opens the dialog."
127
+ msgid "AI Assistant"
128
+ msgstr ""
129
+
130
+ msgctxt "The toolbar button tooltip for the dropdown with predefined AI commands."
131
+ msgid "AI Commands"
132
+ msgstr ""
133
+
134
+ msgctxt "The placeholder for the prompt input to obtain new content."
135
+ msgid "Ask AI to edit or generate"
136
+ msgstr ""
137
+
138
+ msgctxt "The placeholder for the prompt input to improve the generated content."
139
+ msgid "Ask AI to improve generated text"
140
+ msgstr ""
141
+
142
+ msgctxt "The label for the button that copies the text from the textarea."
143
+ msgid "Copy"
144
+ msgstr ""
145
+
146
+ msgctxt "The label for the button that submits the entered AI prompt."
147
+ msgid "Submit"
148
+ msgstr ""
149
+
150
+ msgctxt "The label for the button that inserts the generated AI response below the current selection."
151
+ msgid "Insert below"
152
+ msgstr ""
153
+
154
+ msgctxt "The label for the button that repeats the request to AI."
155
+ msgid "Try again"
156
+ msgstr ""
157
+
158
+ msgctxt "The label for the button that stops the generating of the content by AI."
159
+ msgid "Stop"
160
+ msgstr ""
161
+
162
+ msgctxt "The label that indicates the AI is generating content."
163
+ msgid "AI is writing..."
164
+ msgstr ""
165
+
166
+ msgctxt "Aria status message indicating that the AI is generating content. Example: 'AI busy writing'."
167
+ msgid "AI is writing"
168
+ msgstr ""
169
+
170
+ msgctxt "Aria status message indicating the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
171
+ msgid "Generated content: %0"
172
+ msgstr ""
173
+
174
+ msgctxt "Aria status message indicating that an error has occurred during the generation of AI content. Example: 'Error during AI content generation: [text of an error]'."
175
+ msgid "Error during AI content generation: %0"
176
+ msgstr ""
177
+
178
+ msgctxt "The label of the button that toggles the prompt history pane in the AI dialog."
179
+ msgid "History"
180
+ msgstr ""
181
+
182
+ msgctxt "The primary information text displayed when the prompt history is empty."
183
+ msgid "Empty history"
184
+ msgstr ""
185
+
186
+ msgctxt "The secondary information text displayed when the prompt history is empty."
187
+ msgid "Ask AI and your prompts will be listed here for you to use later."
188
+ msgstr ""
189
+
190
+ msgctxt "The label of the list group that hosts historical user prompts in the AI dialog."
191
+ msgid "Prompt history"
192
+ msgstr ""
193
+
194
+ msgctxt "The default label of the \"ungrouped\" commands group in the AI Commands list."
195
+ msgid "Other"
196
+ msgstr ""
197
+
198
+ msgctxt "The label for the button that replaces the selected content by the generated AI response."
199
+ msgid "AI_REPLACE_CONTENT"
200
+ msgstr ""
201
+
202
+ msgctxt "The label for the button that inserts the generated AI response."
203
+ msgid "AI_INSERT_CONTENT"
204
+ msgstr ""
205
+
206
+ msgctxt "Error message displayed when preparing request headers fails."
207
+ msgid "AI_ERROR_GET_HEADERS"
208
+ msgstr ""
209
+
210
+ msgctxt "Error message displayed when preparing request parameters fails."
211
+ msgid "AI_ERROR_GET_PARAMETERS"
212
+ msgstr ""
213
+
214
+ msgctxt "Error message displayed when the requested AI model is not supported."
215
+ msgid "AI_ERROR_UNSUPPORTED_MODEL"
216
+ msgstr ""
217
+
218
+ msgctxt "Error message displayed when the content selected for AI processing is too long"
219
+ msgid "AI_ERROR_CONTEXT_LENGTH"
220
+ msgstr ""
221
+
222
+ msgctxt "Error message displayed when a request is abusive, harmful or hateful and was rejected due to moderation rules."
223
+ msgid "AI_ERROR_MODERATION"
224
+ msgstr ""
225
+
226
+ msgctxt "Generic error message displayed when the request failed for unspecified reason."
227
+ msgid "AI_ERROR_FAILED"
228
+ msgstr ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ai",
3
- "version": "44.3.0-alpha.7",
3
+ "version": "45.0.0-alpha.0",
4
4
  "description": "AI Assistant feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -24,15 +24,15 @@
24
24
  ],
25
25
  "dependencies": {
26
26
  "@aws-sdk/client-bedrock-runtime": "3.621.0",
27
- "@ckeditor/ckeditor5-clipboard": "44.3.0-alpha.7",
28
- "@ckeditor/ckeditor5-core": "44.3.0-alpha.7",
29
- "@ckeditor/ckeditor5-engine": "44.3.0-alpha.7",
30
- "@ckeditor/ckeditor5-table": "44.3.0-alpha.7",
31
- "@ckeditor/ckeditor5-ui": "44.3.0-alpha.7",
32
- "@ckeditor/ckeditor5-utils": "44.3.0-alpha.7",
33
- "ckeditor5": "44.3.0-alpha.7",
34
- "ckeditor5-collaboration": "44.3.0-alpha.7",
35
- "lodash-es": "4.17.21"
27
+ "@ckeditor/ckeditor5-clipboard": "45.0.0-alpha.0",
28
+ "@ckeditor/ckeditor5-core": "45.0.0-alpha.0",
29
+ "@ckeditor/ckeditor5-engine": "45.0.0-alpha.0",
30
+ "@ckeditor/ckeditor5-icons": "45.0.0-alpha.0",
31
+ "@ckeditor/ckeditor5-table": "45.0.0-alpha.0",
32
+ "@ckeditor/ckeditor5-ui": "45.0.0-alpha.0",
33
+ "@ckeditor/ckeditor5-utils": "45.0.0-alpha.0",
34
+ "ckeditor5": "45.0.0-alpha.0",
35
+ "es-toolkit": "1.32.0"
36
36
  },
37
37
  "type": "module",
38
38
  "main": "src/index.js",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x53ee(){var _0x3e21fd=['9054ZNqmlG','aiadapter-text-adapter-not-set','AIRequestError','5ysZTHX','2646980Dckbyx','name','pluginName','6399970pePFEK','10464228eEryCY','2940004FdxATV','textAdapter','afterInit','isOfficialPlugin','18DRMoxJ','13635728oZZTkb','423729BWnHvd','AIAdapter','isPremiumPlugin','276YWcwgb'];_0x53ee=function(){return _0x3e21fd;};return _0x53ee();}var _0xe2b07c=_0x298f;(function(_0x38f945,_0x24ea6c){var _0x238056=_0x298f,_0x300bf0=_0x38f945();while(!![]){try{var _0x5d1792=parseInt(_0x238056(0x1fa))/0x1+parseInt(_0x238056(0x1eb))/0x2*(-parseInt(_0x238056(0x1fd))/0x3)+-parseInt(_0x238056(0x1f4))/0x4*(parseInt(_0x238056(0x1ee))/0x5)+parseInt(_0x238056(0x1f3))/0x6+parseInt(_0x238056(0x1ef))/0x7+-parseInt(_0x238056(0x1f9))/0x8+parseInt(_0x238056(0x1f8))/0x9*(parseInt(_0x238056(0x1f2))/0xa);if(_0x5d1792===_0x24ea6c)break;else _0x300bf0['push'](_0x300bf0['shift']());}catch(_0x2cd01d){_0x300bf0['push'](_0x300bf0['shift']());}}}(_0x53ee,0xeccde));import{Plugin as _0x381f0a}from'ckeditor5/src/core.js';function _0x298f(_0x2e83cc,_0x4e5ded){var _0x53eef7=_0x53ee();return _0x298f=function(_0x298fc3,_0x4cb5dc){_0x298fc3=_0x298fc3-0x1eb;var _0x450937=_0x53eef7[_0x298fc3];return _0x450937;},_0x298f(_0x2e83cc,_0x4e5ded);}import{CKEditorError as _0xb69323}from'ckeditor5/src/utils.js';export default class K extends _0x381f0a{static get[_0xe2b07c(0x1f1)](){var _0x400b2c=_0xe2b07c;return _0x400b2c(0x1fb);}static get[_0xe2b07c(0x1f7)](){return!0x0;}static get[_0xe2b07c(0x1fc)](){return!0x0;}[_0xe2b07c(0x1f6)](){var _0x54e088=_0xe2b07c;if(!this[_0x54e088(0x1f5)])throw new _0xb69323(_0x54e088(0x1ec),null);}}export class AIRequestError extends Error{constructor(_0x5b3545){var _0x6eec13=_0xe2b07c;super(_0x5b3545),this[_0x6eec13(0x1f0)]=_0x6eec13(0x1ed);}}
23
+ var _0x5f1739=_0x3b8b;(function(_0x3e16e0,_0x26d9e5){var _0x29f895=_0x3b8b,_0x1c9e85=_0x3e16e0();while(!![]){try{var _0x5ecc0a=parseInt(_0x29f895(0xc6))/0x1+parseInt(_0x29f895(0xd1))/0x2*(parseInt(_0x29f895(0xce))/0x3)+parseInt(_0x29f895(0xcd))/0x4+parseInt(_0x29f895(0xca))/0x5+parseInt(_0x29f895(0xc0))/0x6*(-parseInt(_0x29f895(0xc2))/0x7)+parseInt(_0x29f895(0xc7))/0x8+parseInt(_0x29f895(0xc8))/0x9*(-parseInt(_0x29f895(0xcb))/0xa);if(_0x5ecc0a===_0x26d9e5)break;else _0x1c9e85['push'](_0x1c9e85['shift']());}catch(_0xe3e889){_0x1c9e85['push'](_0x1c9e85['shift']());}}}(_0x82b7,0xcb6e0));import{Plugin as _0x1fe3fe}from'ckeditor5/src/core.js';function _0x82b7(){var _0x375298=['isOfficialPlugin','2INAFOq','isPremiumPlugin','6888vlRtKD','AIRequestError','5677HQAVGp','textAdapter','AIAdapter','name','499846iGUhdJ','747032KzeWgk','657ATIyLO','pluginName','654340XlryBR','48610GJtCUP','aiadapter-text-adapter-not-set','2995072yQUiFW','1938804NBfqlX','afterInit'];_0x82b7=function(){return _0x375298;};return _0x82b7();}import{CKEditorError as _0x53b080}from'ckeditor5/src/utils.js';export default class E extends _0x1fe3fe{static get[_0x5f1739(0xc9)](){var _0x15238c=_0x5f1739;return _0x15238c(0xc4);}static get[_0x5f1739(0xd0)](){return!0x0;}static get[_0x5f1739(0xd2)](){return!0x0;}[_0x5f1739(0xcf)](){var _0x3cbf58=_0x5f1739;if(!this[_0x3cbf58(0xc3)])throw new _0x53b080(_0x3cbf58(0xcc),null);}}function _0x3b8b(_0x218a85,_0x1c2f0f){var _0x82b7ad=_0x82b7();return _0x3b8b=function(_0x3b8b43,_0x210e6a){_0x3b8b43=_0x3b8b43-0xc0;var _0x433330=_0x82b7ad[_0x3b8b43];return _0x433330;},_0x3b8b(_0x218a85,_0x1c2f0f);}export class AIRequestError extends Error{constructor(_0x36e78b){var _0x36ed9b=_0x5f1739;super(_0x36e78b),this[_0x36ed9b(0xc5)]=_0x36ed9b(0xc1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x32b4fd=_0x57f8;(function(_0x14689a,_0x49008d){const _0x25dfa6=_0x57f8,_0x178976=_0x14689a();while(!![]){try{const _0x20f883=parseInt(_0x25dfa6(0x83))/0x1*(parseInt(_0x25dfa6(0x6a))/0x2)+-parseInt(_0x25dfa6(0x67))/0x3+-parseInt(_0x25dfa6(0x6f))/0x4*(-parseInt(_0x25dfa6(0x88))/0x5)+-parseInt(_0x25dfa6(0x79))/0x6*(-parseInt(_0x25dfa6(0x7b))/0x7)+-parseInt(_0x25dfa6(0x86))/0x8*(parseInt(_0x25dfa6(0x7c))/0x9)+parseInt(_0x25dfa6(0x66))/0xa+parseInt(_0x25dfa6(0x6d))/0xb*(-parseInt(_0x25dfa6(0x82))/0xc);if(_0x20f883===_0x49008d)break;else _0x178976['push'](_0x178976['shift']());}catch(_0x5abdd9){_0x178976['push'](_0x178976['shift']());}}}(_0x30b7,0xecb7d));import{Plugin as _0x2e8965}from'ckeditor5/src/core.js';import{CKEditorError as _0x54532d}from'ckeditor5/src/utils.js';function _0x30b7(){const _0x3d9976=['editor','132aIMTLO','assign','111027XaferB','145629UPNFnM','signal','abortController','name','AbortError','requires','5501184cCHfTz','12559oWMaAf','_prepareRequestParameters','aborted','392nKHXcd','sendRequest','1055sYYQmW','application/json','catch','get','makeRequest','4838740LrFdMQ','557550aFqqrR','locale','init','302gLrFRA','_prepareRequestHeaders','object','33CucUkx','reject','11268sglMWl','abort','AI_ERROR_GET_HEADERS','AI_ERROR_GET_PARAMETERS','error','textAdapter','aitextadapter-send-request-failed','resolve','plugins'];_0x30b7=function(){return _0x3d9976;};return _0x30b7();}import{default as _0x9c9a63,AIRequestError as _0x4cb9ff}from'./aiadapter.js';function _0x57f8(_0x515ce8,_0x4b1c61){const _0x30b748=_0x30b7();return _0x57f8=function(_0x57f827,_0x27ca14){_0x57f827=_0x57f827-0x65;let _0x53e145=_0x30b748[_0x57f827];return _0x53e145;},_0x57f8(_0x515ce8,_0x4b1c61);}import{getTranslation as _0x4c920c}from'../utils/common-translations.js';export default class P extends _0x2e8965{static get[_0x32b4fd(0x81)](){return[_0x9c9a63];}constructor(_0x6375bf){const _0x23ff5e=_0x32b4fd;super(_0x6375bf),this[_0x23ff5e(0x7e)]=new AbortController();}[_0x32b4fd(0x69)](){const _0x3c6844=_0x32b4fd;this[_0x3c6844(0x78)][_0x3c6844(0x77)][_0x3c6844(0x8b)](_0x9c9a63)[_0x3c6844(0x74)]=this;}[_0x32b4fd(0x70)](){const _0x2f9bc2=_0x32b4fd;this[_0x2f9bc2(0x7e)][_0x2f9bc2(0x7d)][_0x2f9bc2(0x85)]||(this[_0x2f9bc2(0x7e)][_0x2f9bc2(0x70)](),this[_0x2f9bc2(0x7e)]=new AbortController());}async[_0x32b4fd(0x65)](_0x124637){const _0x35a8a3=_0x32b4fd;return this[_0x35a8a3(0x87)](_0x124637)[_0x35a8a3(0x8a)](_0x2f880c=>{const _0x3a497d=_0x35a8a3;if(_0x2f880c instanceof _0x4cb9ff)return Promise[_0x3a497d(0x6e)](_0x2f880c);if(_0x3a497d(0x80)==_0x2f880c[_0x3a497d(0x7f)])return Promise[_0x3a497d(0x76)]();throw console[_0x3a497d(0x73)](_0x2f880c),new _0x54532d(_0x3a497d(0x75),null);});}async[_0x32b4fd(0x6b)](_0x38a059,_0x35d8b8){const _0x13b7ff=_0x32b4fd,_0x113e9d=this[_0x13b7ff(0x78)][_0x13b7ff(0x68)],_0x598d30={'Content-Type':_0x13b7ff(0x89)};if(_0x13b7ff(0x6c)==typeof _0x38a059)Object[_0x13b7ff(0x7a)](_0x598d30,_0x38a059);else{if(_0x38a059)try{const _0x53bdd7=await _0x38a059(_0x35d8b8);Object[_0x13b7ff(0x7a)](_0x598d30,_0x53bdd7);}catch(_0x41488d){return Promise[_0x13b7ff(0x6e)](new _0x4cb9ff(_0x4c920c(_0x113e9d,_0x13b7ff(0x71))));}}return _0x598d30;}async[_0x32b4fd(0x84)](_0x2b14f6,_0x53c2da){const _0x55822c=_0x32b4fd,_0x5e0f82=this[_0x55822c(0x78)][_0x55822c(0x68)];if(_0x55822c(0x6c)==typeof _0x2b14f6)return _0x2b14f6;try{return await _0x2b14f6(_0x53c2da);}catch(_0x458d54){return Promise[_0x55822c(0x6e)](new _0x4cb9ff(_0x4c920c(_0x5e0f82,_0x55822c(0x72))));}}}
23
+ function _0x43c1(){const _0x51ba85=['AI_ERROR_GET_HEADERS','catch','locale','name','aitextadapter-send-request-failed','sendRequest','error','init','object','aborted','7135595KgXXMk','abortController','4601224exxAfk','textAdapter','3690290zDIvex','resolve','202293SXyKFO','176624rBDwMq','8725890CFTAXX','reject','makeRequest','signal','_prepareRequestParameters','AbortError','AI_ERROR_GET_PARAMETERS','abort','requires','get','4pYKdOM','7sfywVY','plugins','editor','assign','77lwpPlM','12144WtAUgk','4311GXFeEG','application/json','_prepareRequestHeaders'];_0x43c1=function(){return _0x51ba85;};return _0x43c1();}const _0x9dce1e=_0x56e5;(function(_0x515559,_0x3814fe){const _0x498b01=_0x56e5,_0x1aecba=_0x515559();while(!![]){try{const _0x32cce8=parseInt(_0x498b01(0x13c))/0x1+-parseInt(_0x498b01(0x121))/0x2*(parseInt(_0x498b01(0x13b))/0x3)+-parseInt(_0x498b01(0x137))/0x4+-parseInt(_0x498b01(0x135))/0x5+parseInt(_0x498b01(0x13d))/0x6*(parseInt(_0x498b01(0x122))/0x7)+parseInt(_0x498b01(0x127))/0x8*(-parseInt(_0x498b01(0x128))/0x9)+-parseInt(_0x498b01(0x139))/0xa*(-parseInt(_0x498b01(0x126))/0xb);if(_0x32cce8===_0x3814fe)break;else _0x1aecba['push'](_0x1aecba['shift']());}catch(_0x615e84){_0x1aecba['push'](_0x1aecba['shift']());}}}(_0x43c1,0xbd24d));import{Plugin as _0x20fae9}from'ckeditor5/src/core.js';function _0x56e5(_0x4d350e,_0x5b8b09){const _0x43c120=_0x43c1();return _0x56e5=function(_0x56e535,_0x4cff0f){_0x56e535=_0x56e535-0x11c;let _0x48054c=_0x43c120[_0x56e535];return _0x48054c;},_0x56e5(_0x4d350e,_0x5b8b09);}import{CKEditorError as _0x4bd015}from'ckeditor5/src/utils.js';import{default as _0x53bd07,AIRequestError as _0x251e4c}from'./aiadapter.js';import{getTranslation as _0x3e14a6}from'../utils/common-translations.js';export default class P extends _0x20fae9{[_0x9dce1e(0x136)];static get[_0x9dce1e(0x11f)](){return[_0x53bd07];}constructor(_0x59a85a){const _0x7fd69d=_0x9dce1e;super(_0x59a85a),this[_0x7fd69d(0x136)]=new AbortController();}[_0x9dce1e(0x132)](){const _0x5a8c68=_0x9dce1e;this[_0x5a8c68(0x124)][_0x5a8c68(0x123)][_0x5a8c68(0x120)](_0x53bd07)[_0x5a8c68(0x138)]=this;}[_0x9dce1e(0x11e)](){const _0x5f582a=_0x9dce1e;this[_0x5f582a(0x136)][_0x5f582a(0x140)][_0x5f582a(0x134)]||(this[_0x5f582a(0x136)][_0x5f582a(0x11e)](),this[_0x5f582a(0x136)]=new AbortController());}async[_0x9dce1e(0x13f)](_0x11f0e5){const _0x3d6b33=_0x9dce1e;return this[_0x3d6b33(0x130)](_0x11f0e5)[_0x3d6b33(0x12c)](_0x46ddb7=>{const _0x1c366b=_0x3d6b33;if(_0x46ddb7 instanceof _0x251e4c)return Promise[_0x1c366b(0x13e)](_0x46ddb7);if(_0x1c366b(0x11c)==_0x46ddb7[_0x1c366b(0x12e)])return Promise[_0x1c366b(0x13a)]();throw console[_0x1c366b(0x131)](_0x46ddb7),new _0x4bd015(_0x1c366b(0x12f),null);});}async[_0x9dce1e(0x12a)](_0x23dd53,_0x458416){const _0x17a175=_0x9dce1e,_0x5a8a73=this[_0x17a175(0x124)][_0x17a175(0x12d)],_0x233e90={'Content-Type':_0x17a175(0x129)};if(_0x17a175(0x133)==typeof _0x23dd53)Object[_0x17a175(0x125)](_0x233e90,_0x23dd53);else{if(_0x23dd53)try{const _0x127f3f=await _0x23dd53(_0x458416);Object[_0x17a175(0x125)](_0x233e90,_0x127f3f);}catch(_0x3e32fa){return Promise[_0x17a175(0x13e)](new _0x251e4c(_0x3e14a6(_0x5a8a73,_0x17a175(0x12b))));}}return _0x233e90;}async[_0x9dce1e(0x141)](_0x20e2df,_0x34e91c){const _0x13a65d=_0x9dce1e,_0x243201=this[_0x13a65d(0x124)][_0x13a65d(0x12d)];if(_0x13a65d(0x133)==typeof _0x20e2df)return _0x20e2df;try{return await _0x20e2df(_0x34e91c);}catch(_0x3906a6){return Promise[_0x13a65d(0x13e)](new _0x251e4c(_0x3e14a6(_0x243201,_0x13a65d(0x11d))));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2562d2=_0x4e0b;(function(_0x4e8235,_0x477297){const _0x3ab073=_0x4e0b,_0x53527b=_0x4e8235();while(!![]){try{const _0x368edc=-parseInt(_0x3ab073(0xdd))/0x1+parseInt(_0x3ab073(0xc2))/0x2*(-parseInt(_0x3ab073(0xa8))/0x3)+-parseInt(_0x3ab073(0xcf))/0x4+parseInt(_0x3ab073(0xa3))/0x5+parseInt(_0x3ab073(0xd8))/0x6+-parseInt(_0x3ab073(0xa1))/0x7+parseInt(_0x3ab073(0xbb))/0x8;if(_0x368edc===_0x477297)break;else _0x53527b['push'](_0x53527b['shift']());}catch(_0xacdff3){_0x53527b['push'](_0x53527b['shift']());}}}(_0x183a,0x6bc1b));function _0x4e0b(_0x3edc3c,_0x3ea2d1){const _0x183a8f=_0x183a();return _0x4e0b=function(_0x4e0bc2,_0x32d861){_0x4e0bc2=_0x4e0bc2-0x8e;let _0x3d298d=_0x183a8f[_0x4e0bc2];return _0x3d298d;},_0x4e0b(_0x3edc3c,_0x3ea2d1);}function _0x183a(){const _0x3d062a=['2537886rEHDWX','_prepareRequestParameters','pluginName','Instruction:\x0a','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','707117vxCMNF','_requestHeaders','resolve','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_prepareRequestHeaders','chunk','filter','_requestParameters','AI_ERROR_UNSUPPORTED_MODEL','_processProxyRequest','_processAWSRequest','anthropic.claude','bedrock-2023-05-31','_readAsyncIterableResponse','split','getReader','meta.llama','body','ai.aws.requestHeaders','_readStreamableResponse','from','2375772xNzFFA','ai.aws.apiUrl','3763795ixDQjx','text','application/json','map','AWSTextAdapter','1442547ydvifM','<<SYS>>\x0a','data','generations','_apiUrl','length','bytes','json','decode','\x0a[/INST]','cohere.command','_readStaticResponse','abortController','locale','ai.aws.requestParameters','ai.aws.bedrockClientConfig','anthropic.claude-v2','preparePrompt','send','9744496byaRxy','POST','define','editor','completion','parse','utf8','2YRHXCl','_getGeneratedText','generation','toString','getModelFamily','_bedrockClientConfig','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','join','\x0a<</SYS>>\x0a[INST]\x0a','test','read','sendRequest','stringify','1700276hctaup','ai21.j2','\x0a\x0aAssistant:','config','get','completions','signal','utf-8','Human:\x0a'];_0x183a=function(){return _0x3d062a;};return _0x183a();}import{default as _0x32fce4}from'./aitextadapter.js';import{AIRequestError as _0x4a4518}from'./aiadapter.js';import{BedrockRuntimeClient as _0x24b04f,InvokeModelCommand as _0x8241dd,InvokeModelWithResponseStreamCommand as _0xadf16a}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0xd53ad}from'../utils/common-translations.js';export default class O extends _0x32fce4{static get[_0x2562d2(0xda)](){const _0x340c4a=_0x2562d2;return _0x340c4a(0xa7);}constructor(_0x3a1f9b){const _0x3f7055=_0x2562d2;super(_0x3a1f9b),_0x3a1f9b[_0x3f7055(0xd2)][_0x3f7055(0xd3)](_0x3f7055(0xb6))||_0x3a1f9b[_0x3f7055(0xd2)][_0x3f7055(0xbd)](_0x3f7055(0xb6),{'model':_0x3f7055(0xb8),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x3f7055(0x98),'stream':!0x0}),this[_0x3f7055(0xac)]=_0x3a1f9b[_0x3f7055(0xd2)][_0x3f7055(0xd3)](_0x3f7055(0xa2)),this[_0x3f7055(0xc7)]=_0x3a1f9b[_0x3f7055(0xd2)][_0x3f7055(0xd3)](_0x3f7055(0xb7)),this[_0x3f7055(0xde)]=_0x3a1f9b[_0x3f7055(0xd2)][_0x3f7055(0xd3)](_0x3f7055(0x9e)),this[_0x3f7055(0x93)]=_0x3a1f9b[_0x3f7055(0xd2)][_0x3f7055(0xd3)](_0x3f7055(0xb6));}async[_0x2562d2(0xcd)]({query:_0x5cf95e,context:_0xaa84ee,onData:_0x51d72a,actionId:_0x399614}){const _0x535a7c=_0x2562d2,{model:_0x5cfe3a,stream:_0x3441a7,..._0x428941}=await this[_0x535a7c(0xd9)](this[_0x535a7c(0x93)],_0x399614),_0x199564={'prompt':await this[_0x535a7c(0xb9)](_0x5cf95e,_0xaa84ee,_0x5cfe3a,_0x399614),..._0x428941};this[_0x535a7c(0xac)]?await this[_0x535a7c(0x95)](_0x199564,_0x5cfe3a,_0x3441a7,_0x51d72a,_0x399614):await this[_0x535a7c(0x96)](_0x199564,_0x5cfe3a,_0x3441a7,_0x51d72a);}async[_0x2562d2(0xb9)](_0x539890,_0x438b1a,_0x495919,_0x106d0f){const _0x45e255=_0x2562d2;let _0x3fcff6,_0x2f3598;return _0x438b1a?(_0x3fcff6=_0x45e255(0xdc),_0x2f3598=_0x45e255(0xdb)+_0x539890+_0x45e255(0x8f)+_0x438b1a):(_0x3fcff6=_0x45e255(0xc8),_0x2f3598=_0x539890),_0x45e255(0x9c)==this[_0x45e255(0xc6)](_0x495919)?_0x45e255(0xa9)+_0x3fcff6+_0x45e255(0xca)+_0x2f3598+_0x45e255(0xb1):_0x45e255(0xd7)+_0x3fcff6+'\x0a'+_0x2f3598+_0x45e255(0xd1);}[_0x2562d2(0xc6)](_0x5ba5ff){const _0x405332=_0x2562d2;if(/^anthropic\.claude/[_0x405332(0xcb)](_0x5ba5ff))return _0x405332(0x97);if(/^ai21\.j2/[_0x405332(0xcb)](_0x5ba5ff))return _0x405332(0xd0);if(/^cohere\.command/[_0x405332(0xcb)](_0x5ba5ff))return _0x405332(0xb2);if(/^meta\.llama/[_0x405332(0xcb)](_0x5ba5ff))return _0x405332(0x9c);throw new _0x4a4518(_0xd53ad(this[_0x405332(0xbe)][_0x405332(0xb5)],_0x405332(0x94),_0x5ba5ff));}async[_0x2562d2(0x95)](_0x9b4116,_0x44fd64,_0x36a054,_0x2149e4,_0x159338){const _0x58fe10=_0x2562d2,_0xa973d={'method':_0x58fe10(0xbc),'headers':await this[_0x58fe10(0x90)](this[_0x58fe10(0xde)],_0x159338),'body':JSON[_0x58fe10(0xce)]({..._0x9b4116,'model':_0x44fd64,'stream':_0x36a054}),'signal':this[_0x58fe10(0xb4)][_0x58fe10(0xd5)]},_0x10d814=await fetch(this[_0x58fe10(0xac)],_0xa973d);_0x36a054?await this[_0x58fe10(0x9f)](_0x10d814,_0x44fd64,_0x2149e4):await this[_0x58fe10(0xb3)](_0x10d814,_0x44fd64,_0x2149e4);}async[_0x2562d2(0x96)](_0x291f7a,_0x3d96d2,_0x406bcb,_0x16147d){const _0x490d8d=_0x2562d2,_0x5d39bd=new _0x24b04f(this[_0x490d8d(0xc7)]),_0x546e39={'body':JSON[_0x490d8d(0xce)](_0x291f7a),'contentType':_0x490d8d(0xa5),'accept':_0x490d8d(0xa5),'modelId':_0x3d96d2};let _0x4624bc;if(_0x406bcb){const _0x45e10e=new _0xadf16a(_0x546e39);_0x4624bc=await _0x5d39bd[_0x490d8d(0xba)](_0x45e10e,{'abortSignal':this[_0x490d8d(0xb4)][_0x490d8d(0xd5)]}),await this[_0x490d8d(0x99)](_0x4624bc,_0x3d96d2,_0x16147d);}else{const _0x13b84f=new _0x8241dd(_0x546e39);_0x4624bc=await _0x5d39bd[_0x490d8d(0xba)](_0x13b84f,{'abortSignal':this[_0x490d8d(0xb4)][_0x490d8d(0xd5)]}),await this[_0x490d8d(0xb3)](_0x4624bc,_0x3d96d2,_0x16147d);}}async[_0x2562d2(0x99)](_0x1f996b,_0x3b4613,_0x5809da){const _0x487177=_0x2562d2,_0x40ef42=_0x1f996b[_0x487177(0x9d)],_0x1faf02=new TextDecoder(_0x487177(0xd6));let _0x47a56c='';for await(const _0x3ac105 of _0x40ef42)if(_0x3ac105[_0x487177(0x91)]){const _0x513583=_0x1faf02[_0x487177(0xb0)](_0x3ac105[_0x487177(0x91)][_0x487177(0xae)]),_0x234a41=JSON[_0x487177(0xc0)](_0x513583);_0x47a56c+=this[_0x487177(0xc3)](_0x234a41,_0x3b4613),_0x5809da(_0x47a56c);}return Promise[_0x487177(0x8e)]();}async[_0x2562d2(0x9f)](_0x3392ca,_0x3005b9,_0x57bd1b){const _0x5683fb=_0x2562d2,_0x58bdb9=_0x3392ca[_0x5683fb(0x9d)],_0x7f6e7d=new TextDecoder(_0x5683fb(0xd6)),_0x12419f=_0x58bdb9[_0x5683fb(0x9b)]();let _0x3cf84b='',_0x89d235='',_0x13d2d6=!0x1;for(;!_0x13d2d6;){const {done:_0x29e2ed,value:_0x495f0a}=await _0x12419f[_0x5683fb(0xcc)]();if(_0x13d2d6=_0x29e2ed,_0x13d2d6)break;const _0x16cd33=(_0x3cf84b+_0x7f6e7d[_0x5683fb(0xb0)](_0x495f0a))[_0x5683fb(0x9a)]('\x0a')[_0x5683fb(0xa6)](_0x1354b0=>{const _0x26b589=_0x5683fb;try{return _0x3cf84b='',JSON[_0x26b589(0xc0)](_0x1354b0);}catch(_0x5b2190){return _0x3cf84b=_0x1354b0,null;}})[_0x5683fb(0x92)](_0xec1d42=>null!==_0xec1d42);_0x16cd33[_0x5683fb(0xad)]&&(_0x89d235+=_0x16cd33[_0x5683fb(0xa6)](_0x5b0f8c=>this[_0x5683fb(0xc3)](_0x5b0f8c,_0x3005b9))[_0x5683fb(0xc9)](''),_0x57bd1b(_0x89d235));}return Promise[_0x5683fb(0x8e)]();}async[_0x2562d2(0xb3)](_0xbba463,_0x405d49,_0xc8254b){const _0x85d663=_0x2562d2;let _0x27e4ce;return _0x27e4ce=_0xbba463 instanceof Response?await _0xbba463[_0x85d663(0xaf)]():JSON[_0x85d663(0xc0)](Buffer[_0x85d663(0xa0)](_0xbba463[_0x85d663(0x9d)])[_0x85d663(0xc5)](_0x85d663(0xc1))),(_0xc8254b(this[_0x85d663(0xc3)](_0x27e4ce,_0x405d49)),Promise[_0x85d663(0x8e)]());}[_0x2562d2(0xc3)](_0x97800e,_0x41f7a2){const _0x26c33e=_0x2562d2;switch(this[_0x26c33e(0xc6)](_0x41f7a2)){case _0x26c33e(0x97):return _0x97800e[_0x26c33e(0xbf)];case _0x26c33e(0xd0):return _0x97800e[_0x26c33e(0xd4)][0x0][_0x26c33e(0xaa)][_0x26c33e(0xa4)];case _0x26c33e(0xb2):return _0x97800e[_0x26c33e(0xab)][0x0][_0x26c33e(0xa4)];case _0x26c33e(0x9c):return _0x97800e[_0x26c33e(0xc4)];}}}
23
+ const _0x56f6f0=_0x1230;(function(_0x1148ea,_0x27342d){const _0x9bee7e=_0x1230,_0x869ae6=_0x1148ea();while(!![]){try{const _0x1c160d=parseInt(_0x9bee7e(0x1df))/0x1+parseInt(_0x9bee7e(0x20e))/0x2+-parseInt(_0x9bee7e(0x205))/0x3*(-parseInt(_0x9bee7e(0x1cd))/0x4)+parseInt(_0x9bee7e(0x1e0))/0x5+-parseInt(_0x9bee7e(0x1be))/0x6+-parseInt(_0x9bee7e(0x1ed))/0x7*(parseInt(_0x9bee7e(0x1d2))/0x8)+parseInt(_0x9bee7e(0x1c2))/0x9*(parseInt(_0x9bee7e(0x1c3))/0xa);if(_0x1c160d===_0x27342d)break;else _0x869ae6['push'](_0x869ae6['shift']());}catch(_0x237d70){_0x869ae6['push'](_0x869ae6['shift']());}}}(_0x2ed9,0x235e5));import{default as _0xe22c4e}from'./aitextadapter.js';import{AIRequestError as _0x1b6e35}from'./aiadapter.js';function _0x2ed9(){const _0x4f049e=['\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','ai.aws.apiUrl','from','test','_readStreamableResponse','filter','749RMfdRL','ai.aws.requestParameters','body','config','sendRequest','application/json','toString','join','<<SYS>>\x0a','read','text','bytes','preparePrompt','getReader','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','locale','completions','Human:\x0a','\x0a[/INST]','generations','_processProxyRequest','data','parse','ai21.j2','321717IifXag','_requestHeaders','AWSTextAdapter','cohere.command','chunk','_apiUrl','generation','Instruction:\x0a','pluginName','369744RiWuPR','_processAWSRequest','resolve','46704EetEyH','\x0a<</SYS>>\x0a[INST]\x0a','_bedrockClientConfig','anthropic.claude','45arYlcV','116430qpPXbk','_prepareRequestHeaders','anthropic.claude-v2','ai.aws.requestHeaders','utf-8','abortController','length','meta.llama','map','editor','4FzrIVY','utf8','_requestParameters','completion','AI_ERROR_UNSUPPORTED_MODEL','16376patpKv','ai.aws.bedrockClientConfig','_readStaticResponse','POST','decode','define','split','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','json','\x0a\x0aAssistant:','_readAsyncIterableResponse','get','bedrock-2023-05-31','13331TtjsfC','40125ASUoPJ','send','_getGeneratedText','_prepareRequestParameters','signal','stringify','getModelFamily'];_0x2ed9=function(){return _0x4f049e;};return _0x2ed9();}import{BedrockRuntimeClient as _0x3193f1,InvokeModelCommand as _0x23244b,InvokeModelWithResponseStreamCommand as _0x3eb6d9}from'@aws-sdk/client-bedrock-runtime';function _0x1230(_0x4cab78,_0x202bb1){const _0x2ed982=_0x2ed9();return _0x1230=function(_0x1230d3,_0x1bd1a4){_0x1230d3=_0x1230d3-0x1be;let _0x5e6d82=_0x2ed982[_0x1230d3];return _0x5e6d82;},_0x1230(_0x4cab78,_0x202bb1);}import{getTranslation as _0x4415b8}from'../utils/common-translations.js';export default class D extends _0xe22c4e{[_0x56f6f0(0x20a)];[_0x56f6f0(0x206)];[_0x56f6f0(0x1c0)];[_0x56f6f0(0x1cf)];static get[_0x56f6f0(0x20d)](){const _0x4b94b1=_0x56f6f0;return _0x4b94b1(0x207);}constructor(_0x3ab63f){const _0x165959=_0x56f6f0;super(_0x3ab63f),_0x3ab63f[_0x165959(0x1f0)][_0x165959(0x1dd)](_0x165959(0x1ee))||_0x3ab63f[_0x165959(0x1f0)][_0x165959(0x1d7)](_0x165959(0x1ee),{'model':_0x165959(0x1c5),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x165959(0x1de),'stream':!0x0}),this[_0x165959(0x20a)]=_0x3ab63f[_0x165959(0x1f0)][_0x165959(0x1dd)](_0x165959(0x1e8)),this[_0x165959(0x1c0)]=_0x3ab63f[_0x165959(0x1f0)][_0x165959(0x1dd)](_0x165959(0x1d3)),this[_0x165959(0x206)]=_0x3ab63f[_0x165959(0x1f0)][_0x165959(0x1dd)](_0x165959(0x1c6)),this[_0x165959(0x1cf)]=_0x3ab63f[_0x165959(0x1f0)][_0x165959(0x1dd)](_0x165959(0x1ee));}async[_0x56f6f0(0x1f1)]({query:_0x1fdcb5,context:_0x4d0157,onData:_0x4b461b,actionId:_0x1cc185}){const _0x3efbe5=_0x56f6f0,{model:_0x611cbb,stream:_0x33da6d,..._0x320300}=await this[_0x3efbe5(0x1e3)](this[_0x3efbe5(0x1cf)],_0x1cc185),_0x24bef1={'prompt':await this[_0x3efbe5(0x1f9)](_0x1fdcb5,_0x4d0157,_0x611cbb,_0x1cc185),..._0x320300};this[_0x3efbe5(0x20a)]?await this[_0x3efbe5(0x201)](_0x24bef1,_0x611cbb,_0x33da6d,_0x4b461b,_0x1cc185):await this[_0x3efbe5(0x20f)](_0x24bef1,_0x611cbb,_0x33da6d,_0x4b461b);}async[_0x56f6f0(0x1f9)](_0x422c84,_0x450971,_0xcd371c,_0x460117){const _0x20e376=_0x56f6f0;let _0x11b90f,_0x78baca;return _0x450971?(_0x11b90f=_0x20e376(0x1fb),_0x78baca=_0x20e376(0x20c)+_0x422c84+_0x20e376(0x1e7)+_0x450971):(_0x11b90f=_0x20e376(0x1d9),_0x78baca=_0x422c84),_0x20e376(0x1ca)==this[_0x20e376(0x1e6)](_0xcd371c)?_0x20e376(0x1f5)+_0x11b90f+_0x20e376(0x1bf)+_0x78baca+_0x20e376(0x1ff):_0x20e376(0x1fe)+_0x11b90f+'\x0a'+_0x78baca+_0x20e376(0x1db);}[_0x56f6f0(0x1e6)](_0x4639a3){const _0x1c48ff=_0x56f6f0;if(/^anthropic\.claude/[_0x1c48ff(0x1ea)](_0x4639a3))return _0x1c48ff(0x1c1);if(/^ai21\.j2/[_0x1c48ff(0x1ea)](_0x4639a3))return _0x1c48ff(0x204);if(/^cohere\.command/[_0x1c48ff(0x1ea)](_0x4639a3))return _0x1c48ff(0x208);if(/^meta\.llama/[_0x1c48ff(0x1ea)](_0x4639a3))return _0x1c48ff(0x1ca);throw new _0x1b6e35(_0x4415b8(this[_0x1c48ff(0x1cc)][_0x1c48ff(0x1fc)],_0x1c48ff(0x1d1),_0x4639a3));}async[_0x56f6f0(0x201)](_0x3fd58d,_0x332b8c,_0xda35c2,_0x3ec5d5,_0x1342a2){const _0x4a58ba=_0x56f6f0,_0x5db878={'method':_0x4a58ba(0x1d5),'headers':await this[_0x4a58ba(0x1c4)](this[_0x4a58ba(0x206)],_0x1342a2),'body':JSON[_0x4a58ba(0x1e5)]({..._0x3fd58d,'model':_0x332b8c,'stream':_0xda35c2}),'signal':this[_0x4a58ba(0x1c8)][_0x4a58ba(0x1e4)]},_0x14107e=await fetch(this[_0x4a58ba(0x20a)],_0x5db878);_0xda35c2?await this[_0x4a58ba(0x1eb)](_0x14107e,_0x332b8c,_0x3ec5d5):await this[_0x4a58ba(0x1d4)](_0x14107e,_0x332b8c,_0x3ec5d5);}async[_0x56f6f0(0x20f)](_0x549110,_0x263430,_0x66a3ee,_0x14e75f){const _0x5b8e96=_0x56f6f0,_0x2c5897=new _0x3193f1(this[_0x5b8e96(0x1c0)]),_0x26de85={'body':JSON[_0x5b8e96(0x1e5)](_0x549110),'contentType':_0x5b8e96(0x1f2),'accept':_0x5b8e96(0x1f2),'modelId':_0x263430};let _0x329029;if(_0x66a3ee){const _0xc0e4e4=new _0x3eb6d9(_0x26de85);_0x329029=await _0x2c5897[_0x5b8e96(0x1e1)](_0xc0e4e4,{'abortSignal':this[_0x5b8e96(0x1c8)][_0x5b8e96(0x1e4)]}),await this[_0x5b8e96(0x1dc)](_0x329029,_0x263430,_0x14e75f);}else{const _0x2d0382=new _0x23244b(_0x26de85);_0x329029=await _0x2c5897[_0x5b8e96(0x1e1)](_0x2d0382,{'abortSignal':this[_0x5b8e96(0x1c8)][_0x5b8e96(0x1e4)]}),await this[_0x5b8e96(0x1d4)](_0x329029,_0x263430,_0x14e75f);}}async[_0x56f6f0(0x1dc)](_0x53191e,_0x2b564e,_0x4bcd91){const _0x7bc396=_0x56f6f0,_0x2bbe22=_0x53191e[_0x7bc396(0x1ef)],_0x5d70b2=new TextDecoder(_0x7bc396(0x1c7));let _0x38d5b3='';for await(const _0x16f1fd of _0x2bbe22)if(_0x16f1fd[_0x7bc396(0x209)]){const _0x375fe4=_0x5d70b2[_0x7bc396(0x1d6)](_0x16f1fd[_0x7bc396(0x209)][_0x7bc396(0x1f8)]),_0x50dc83=JSON[_0x7bc396(0x203)](_0x375fe4);_0x38d5b3+=this[_0x7bc396(0x1e2)](_0x50dc83,_0x2b564e),_0x4bcd91(_0x38d5b3);}return Promise[_0x7bc396(0x210)]();}async[_0x56f6f0(0x1eb)](_0x1b19ce,_0x166b1c,_0x51be21){const _0x43b20c=_0x56f6f0,_0x19e076=_0x1b19ce[_0x43b20c(0x1ef)],_0x3d1cb1=new TextDecoder(_0x43b20c(0x1c7)),_0x5d6ff9=_0x19e076[_0x43b20c(0x1fa)]();let _0x131624='',_0x2e555a='',_0x3a56af=!0x1;for(;!_0x3a56af;){const {done:_0x3f3356,value:_0x1e0cb5}=await _0x5d6ff9[_0x43b20c(0x1f6)]();if(_0x3a56af=_0x3f3356,_0x3a56af)break;const _0x1349cc=(_0x131624+_0x3d1cb1[_0x43b20c(0x1d6)](_0x1e0cb5))[_0x43b20c(0x1d8)]('\x0a')[_0x43b20c(0x1cb)](_0x294e68=>{const _0x586892=_0x43b20c;try{return _0x131624='',JSON[_0x586892(0x203)](_0x294e68);}catch(_0x2cc8aa){return _0x131624=_0x294e68,null;}})[_0x43b20c(0x1ec)](_0x50ce33=>null!==_0x50ce33);_0x1349cc[_0x43b20c(0x1c9)]&&(_0x2e555a+=_0x1349cc[_0x43b20c(0x1cb)](_0x166728=>this[_0x43b20c(0x1e2)](_0x166728,_0x166b1c))[_0x43b20c(0x1f4)](''),_0x51be21(_0x2e555a));}return Promise[_0x43b20c(0x210)]();}async[_0x56f6f0(0x1d4)](_0x5994af,_0x44067d,_0x90664c){const _0x3c14e1=_0x56f6f0;let _0x231af0;return _0x231af0=_0x5994af instanceof Response?await _0x5994af[_0x3c14e1(0x1da)]():JSON[_0x3c14e1(0x203)](Buffer[_0x3c14e1(0x1e9)](_0x5994af[_0x3c14e1(0x1ef)])[_0x3c14e1(0x1f3)](_0x3c14e1(0x1ce))),(_0x90664c(this[_0x3c14e1(0x1e2)](_0x231af0,_0x44067d)),Promise[_0x3c14e1(0x210)]());}[_0x56f6f0(0x1e2)](_0x913cf0,_0xd715e5){const _0x3eb4bc=_0x56f6f0;switch(this[_0x3eb4bc(0x1e6)](_0xd715e5)){case _0x3eb4bc(0x1c1):return _0x913cf0[_0x3eb4bc(0x1d0)];case _0x3eb4bc(0x204):return _0x913cf0[_0x3eb4bc(0x1fd)][0x0][_0x3eb4bc(0x202)][_0x3eb4bc(0x1f7)];case _0x3eb4bc(0x208):return _0x913cf0[_0x3eb4bc(0x200)][0x0][_0x3eb4bc(0x1f7)];case _0x3eb4bc(0x1ca):return _0x913cf0[_0x3eb4bc(0x20b)];}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf5a0fb=_0x46ea;(function(_0x5973ee,_0x54a237){const _0x5c6366=_0x46ea,_0x8874e1=_0x5973ee();while(!![]){try{const _0x4a6f0e=parseInt(_0x5c6366(0x1e1))/0x1*(-parseInt(_0x5c6366(0x1de))/0x2)+-parseInt(_0x5c6366(0x1f6))/0x3*(-parseInt(_0x5c6366(0x1dd))/0x4)+parseInt(_0x5c6366(0x1e7))/0x5*(parseInt(_0x5c6366(0x1f0))/0x6)+-parseInt(_0x5c6366(0x207))/0x7*(-parseInt(_0x5c6366(0x1f7))/0x8)+parseInt(_0x5c6366(0x1db))/0x9*(parseInt(_0x5c6366(0x1ca))/0xa)+-parseInt(_0x5c6366(0x1fe))/0xb+-parseInt(_0x5c6366(0x20d))/0xc*(parseInt(_0x5c6366(0x211))/0xd);if(_0x4a6f0e===_0x54a237)break;else _0x8874e1['push'](_0x8874e1['shift']());}catch(_0x1dec11){_0x8874e1['push'](_0x8874e1['shift']());}}}(_0x33c3,0x86fe5));import{default as _0x2de72c}from'./aitextadapter.js';function _0x33c3(){const _0x362cf8=['content','6136735bqUrob','AI_ERROR_CONTEXT_LENGTH','stringify','_readStreamableResponse','data:\x20','split','filter','config','length','225113KgOvLH','context_length_exceeded','resolve','system','_apiUrl','message','852KIXCNi','replace','getReader','reject','143806khGdWX','text','19830RjeskT','signal','_requestParameters','_requestHeaders','user','ai.openAI.apiUrl','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','define','abortController','read','[DONE]','https://api.openai.com/v1/chat/completions','_readStaticResponse','_prepareRequestHeaders','map','_prepareRequestParameters','Instruction:\x0a','4194MuvJbw','body','1116deBytH','106fdMIaR','parse','delta','5597yiFPTr','sendRequest','pluginName','OpenAITextAdapter','decode','AI_ERROR_MODERATION','15liGWtU','_isBufferIncomplete','editor','json','gpt-3.5-turbo','ai.openAI.requestParameters','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','choices','Moderation','870342VusFLF','_cleanUpData','prepareMessages','locale','stream','POST','6543HybmzD','56ectZih','ai.openAI.requestHeaders','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','join','get','includes'];_0x33c3=function(){return _0x362cf8;};return _0x33c3();}import{AIRequestError as _0x51a830}from'./aiadapter.js';function _0x46ea(_0x5b313d,_0x41534a){const _0x33c3ce=_0x33c3();return _0x46ea=function(_0x46ea9d,_0x311994){_0x46ea9d=_0x46ea9d-0x1ca;let _0x1d298a=_0x33c3ce[_0x46ea9d];return _0x1d298a;},_0x46ea(_0x5b313d,_0x41534a);}import{getTranslation as _0x1bc39b}from'../utils/common-translations.js';export default class H extends _0x2de72c{static get[_0xf5a0fb(0x1e3)](){const _0x577f59=_0xf5a0fb;return _0x577f59(0x1e4);}constructor(_0x3f858d){const _0x4a11eb=_0xf5a0fb;super(_0x3f858d),_0x3f858d[_0x4a11eb(0x205)][_0x4a11eb(0x1d1)](_0x4a11eb(0x1cf),_0x4a11eb(0x1d5)),_0x3f858d[_0x4a11eb(0x205)][_0x4a11eb(0x1fb)](_0x4a11eb(0x1ec))||_0x3f858d[_0x4a11eb(0x205)][_0x4a11eb(0x1d1)](_0x4a11eb(0x1ec),{'model':_0x4a11eb(0x1eb),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x4a11eb(0x20b)]=_0x3f858d[_0x4a11eb(0x205)][_0x4a11eb(0x1fb)](_0x4a11eb(0x1cf)),this[_0x4a11eb(0x1cd)]=_0x3f858d[_0x4a11eb(0x205)][_0x4a11eb(0x1fb)](_0x4a11eb(0x1f8))||{},this[_0x4a11eb(0x1cc)]=_0x3f858d[_0x4a11eb(0x205)][_0x4a11eb(0x1fb)](_0x4a11eb(0x1ec));}async[_0xf5a0fb(0x1e2)]({query:_0xaee947,context:_0x12e0e1,onData:_0x3201fa,actionId:_0x5332d2}){const _0x39756a=_0xf5a0fb,_0x43d0da=this[_0x39756a(0x1e9)][_0x39756a(0x1f3)],_0x589b97=await this[_0x39756a(0x1f2)](_0xaee947,_0x12e0e1,_0x5332d2),_0x14c202=await this[_0x39756a(0x1d7)](this[_0x39756a(0x1cd)],_0x5332d2),_0x2249d6=await this[_0x39756a(0x1d9)](this[_0x39756a(0x1cc)],_0x5332d2),_0x344172={'messages':_0x589b97,..._0x2249d6},_0x1189fa={'method':_0x39756a(0x1f5),'headers':_0x14c202,'body':JSON[_0x39756a(0x200)](_0x344172),'signal':this[_0x39756a(0x1d2)][_0x39756a(0x1cb)]},_0xb8cbbb=await fetch(this[_0x39756a(0x20b)],_0x1189fa);if(_0xb8cbbb['ok'])return _0x2249d6[_0x39756a(0x1f4)]?await this[_0x39756a(0x201)](_0xb8cbbb,_0x3201fa):await this[_0x39756a(0x1d6)](_0xb8cbbb,_0x3201fa),Promise[_0x39756a(0x209)]();{const _0x38647c=await _0xb8cbbb[_0x39756a(0x212)]();return _0x38647c[_0x39756a(0x1fc)](_0x39756a(0x208))?Promise[_0x39756a(0x210)](new _0x51a830(_0x1bc39b(_0x43d0da,_0x39756a(0x1ff)))):_0x38647c[_0x39756a(0x1fc)](_0x39756a(0x1ef))?Promise[_0x39756a(0x210)](new _0x51a830(_0x1bc39b(_0x43d0da,_0x39756a(0x1e6)))):Promise[_0x39756a(0x210)](new Error(_0x38647c));}}async[_0xf5a0fb(0x1f2)](_0x3d38eb,_0xf3d7a8,_0x11ac57){const _0x5693c0=_0xf5a0fb;let _0x417295,_0x1c8ff6;return _0xf3d7a8?(_0x417295=_0x5693c0(0x1f9),_0x1c8ff6=_0x5693c0(0x1da)+_0x3d38eb+_0x5693c0(0x1ed)+_0xf3d7a8):(_0x417295=_0x5693c0(0x1d0),_0x1c8ff6=_0x3d38eb),[{'role':_0x5693c0(0x20a),'content':_0x417295},{'role':_0x5693c0(0x1ce),'content':_0x1c8ff6}];}async[_0xf5a0fb(0x201)](_0x5b9b5c,_0x2fae11){const _0x7eeefe=_0xf5a0fb,_0x9522=_0x5b9b5c[_0x7eeefe(0x1dc)][_0x7eeefe(0x20f)](),_0x36ed7e=new TextDecoder();let _0x329449='',_0x53e342='',_0xb21899='',_0x4bd161=!0x1;for(;!_0x4bd161;){const {done:_0x41bf9c,value:_0x21249d}=await _0x9522[_0x7eeefe(0x1d3)](),_0x105a8c=_0x329449+_0x36ed7e[_0x7eeefe(0x1e5)](_0x21249d);let _0x29075c='';_0x4bd161=_0x41bf9c;try{_0x29075c=this[_0x7eeefe(0x1f1)](_0x105a8c),_0x329449='';}catch(_0x2c8bb6){_0x329449=_0x105a8c;continue;}_0x53e342+=_0x29075c,!_0x4bd161&&this[_0x7eeefe(0x1e8)](_0x53e342)||_0x53e342&&(_0xb21899+=_0x53e342,_0x53e342='',_0x2fae11(_0xb21899));}return Promise[_0x7eeefe(0x209)]();}async[_0xf5a0fb(0x1d6)](_0x5aa137,_0x5a1959){const _0x529289=_0xf5a0fb;return _0x5a1959((await _0x5aa137[_0x529289(0x1ea)]())[_0x529289(0x1ee)][0x0][_0x529289(0x20c)][_0x529289(0x1fd)]),Promise[_0x529289(0x209)]();}[_0xf5a0fb(0x1e8)](_0x2f9852){const _0x26e35c=_0xf5a0fb,_0x232291=_0x2f9852[_0x26e35c(0x203)]('<')[_0x26e35c(0x206)]!==_0x2f9852[_0x26e35c(0x203)]('>')[_0x26e35c(0x206)],_0xb4ecb3=_0x2f9852[_0x26e35c(0x206)]<0x1e;return _0x232291&&_0xb4ecb3;}[_0xf5a0fb(0x1f1)](_0x162895){const _0x1c0f62=_0xf5a0fb;return _0x162895[_0x1c0f62(0x203)](/\n(?![^{]*\})/g)[_0x1c0f62(0x1d8)](_0x5369da=>_0x5369da[_0x1c0f62(0x20e)](_0x1c0f62(0x202),''))[_0x1c0f62(0x204)](_0x4de288=>_0x4de288&&_0x4de288[_0x1c0f62(0x206)]>0x0&&_0x1c0f62(0x1d4)!==_0x4de288)[_0x1c0f62(0x1d8)](_0x47e08c=>{const _0x184daa=_0x1c0f62,{choices:_0x1f707a}=JSON[_0x184daa(0x1df)](_0x47e08c);if(_0x1f707a[0x0]&&_0x1f707a[0x0][_0x184daa(0x1e0)]&&_0x1f707a[0x0][_0x184daa(0x1e0)][_0x184daa(0x1fd)])return _0x1f707a[0x0][_0x184daa(0x1e0)][_0x184daa(0x1fd)];})[_0x1c0f62(0x204)](_0x19b2fa=>_0x19b2fa)[_0x1c0f62(0x1fa)]('');}}
23
+ const _0x4c8277=_0x22f7;function _0x22f7(_0x3b4438,_0x480460){const _0x992109=_0x9921();return _0x22f7=function(_0x22f7f7,_0x4773b0){_0x22f7f7=_0x22f7f7-0x12a;let _0x97bd8e=_0x992109[_0x22f7f7];return _0x97bd8e;},_0x22f7(_0x3b4438,_0x480460);}(function(_0x5883b0,_0x5af63f){const _0x4642be=_0x22f7,_0x6d8397=_0x5883b0();while(!![]){try{const _0x2584a2=-parseInt(_0x4642be(0x14c))/0x1+-parseInt(_0x4642be(0x14a))/0x2*(parseInt(_0x4642be(0x16a))/0x3)+-parseInt(_0x4642be(0x163))/0x4+parseInt(_0x4642be(0x134))/0x5+-parseInt(_0x4642be(0x149))/0x6*(parseInt(_0x4642be(0x16f))/0x7)+parseInt(_0x4642be(0x143))/0x8*(parseInt(_0x4642be(0x12d))/0x9)+parseInt(_0x4642be(0x151))/0xa;if(_0x2584a2===_0x5af63f)break;else _0x6d8397['push'](_0x6d8397['shift']());}catch(_0x18e6f4){_0x6d8397['push'](_0x6d8397['shift']());}}}(_0x9921,0x5f7c0));function _0x9921(){const _0x54432a=['stream','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','sendRequest','POST','filter','160RKAphv','split','user','AI_ERROR_CONTEXT_LENGTH','locale','getReader','426UjtGpj','36306yQzltt','_prepareRequestHeaders','83249VLKwkQ','data:\x20','reject','includes','ai.openAI.apiUrl','11976600rrwBrP','editor','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','AI_ERROR_MODERATION','choices','pluginName','_apiUrl','_isBufferIncomplete','prepareMessages','config','join','_readStreamableResponse','parse','json','read','https://api.openai.com/v1/chat/completions','OpenAITextAdapter','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','263972GVAmtr','gpt-3.5-turbo','ai.openAI.requestHeaders','content','map','_readStaticResponse','system','102jGZWmM','text','message','resolve','body','63266WiGibN','get','define','signal','21123XCwUSF','context_length_exceeded','length','stringify','Moderation','ai.openAI.requestParameters','_cleanUpData','2773230qskkXa','Instruction:\x0a','_requestParameters','[DONE]','_requestHeaders','decode','_prepareRequestParameters','abortController','replace','delta'];_0x9921=function(){return _0x54432a;};return _0x9921();}import{default as _0x30d029}from'./aitextadapter.js';import{AIRequestError as _0x4fc8f2}from'./aiadapter.js';import{getTranslation as _0x49f60d}from'../utils/common-translations.js';export default class O extends _0x30d029{[_0x4c8277(0x157)];[_0x4c8277(0x138)];[_0x4c8277(0x136)];static get[_0x4c8277(0x156)](){const _0x17912b=_0x4c8277;return _0x17912b(0x161);}constructor(_0x46b2dd){const _0x52e694=_0x4c8277;super(_0x46b2dd),_0x46b2dd[_0x52e694(0x15a)][_0x52e694(0x12b)](_0x52e694(0x150),_0x52e694(0x160)),_0x46b2dd[_0x52e694(0x15a)][_0x52e694(0x12a)](_0x52e694(0x132))||_0x46b2dd[_0x52e694(0x15a)][_0x52e694(0x12b)](_0x52e694(0x132),{'model':_0x52e694(0x164),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x52e694(0x157)]=_0x46b2dd[_0x52e694(0x15a)][_0x52e694(0x12a)](_0x52e694(0x150)),this[_0x52e694(0x138)]=_0x46b2dd[_0x52e694(0x15a)][_0x52e694(0x12a)](_0x52e694(0x165))||{},this[_0x52e694(0x136)]=_0x46b2dd[_0x52e694(0x15a)][_0x52e694(0x12a)](_0x52e694(0x132));}async[_0x4c8277(0x140)]({query:_0x38c68,context:_0x5a259a,onData:_0x32572d,actionId:_0x5383ed}){const _0x35a861=_0x4c8277,_0x31b10b=this[_0x35a861(0x152)][_0x35a861(0x147)],_0xc84ca9=await this[_0x35a861(0x159)](_0x38c68,_0x5a259a,_0x5383ed),_0x39c02f=await this[_0x35a861(0x14b)](this[_0x35a861(0x138)],_0x5383ed),_0x4b6498=await this[_0x35a861(0x13a)](this[_0x35a861(0x136)],_0x5383ed),_0x1acbb3={'messages':_0xc84ca9,..._0x4b6498},_0x5587c1={'method':_0x35a861(0x141),'headers':_0x39c02f,'body':JSON[_0x35a861(0x130)](_0x1acbb3),'signal':this[_0x35a861(0x13b)][_0x35a861(0x12c)]},_0x3ab4be=await fetch(this[_0x35a861(0x157)],_0x5587c1);if(_0x3ab4be['ok'])return _0x4b6498[_0x35a861(0x13e)]?await this[_0x35a861(0x15c)](_0x3ab4be,_0x32572d):await this[_0x35a861(0x168)](_0x3ab4be,_0x32572d),Promise[_0x35a861(0x16d)]();{const _0x4f537f=await _0x3ab4be[_0x35a861(0x16b)]();return _0x4f537f[_0x35a861(0x14f)](_0x35a861(0x12e))?Promise[_0x35a861(0x14e)](new _0x4fc8f2(_0x49f60d(_0x31b10b,_0x35a861(0x146)))):_0x4f537f[_0x35a861(0x14f)](_0x35a861(0x131))?Promise[_0x35a861(0x14e)](new _0x4fc8f2(_0x49f60d(_0x31b10b,_0x35a861(0x154)))):Promise[_0x35a861(0x14e)](new Error(_0x4f537f));}}async[_0x4c8277(0x159)](_0x2edab0,_0x12c0a1,_0x28238b){const _0x19e989=_0x4c8277;let _0x26d201,_0x1337fa;return _0x12c0a1?(_0x26d201=_0x19e989(0x153),_0x1337fa=_0x19e989(0x135)+_0x2edab0+_0x19e989(0x13f)+_0x12c0a1):(_0x26d201=_0x19e989(0x162),_0x1337fa=_0x2edab0),[{'role':_0x19e989(0x169),'content':_0x26d201},{'role':_0x19e989(0x145),'content':_0x1337fa}];}async[_0x4c8277(0x15c)](_0x59f48a,_0x1ac640){const _0x50c069=_0x4c8277,_0x490a7e=_0x59f48a[_0x50c069(0x16e)][_0x50c069(0x148)](),_0x516501=new TextDecoder();let _0x14f270='',_0x3045da='',_0x51f9e7='',_0x2c8b09=!0x1;for(;!_0x2c8b09;){const {done:_0x3b92c0,value:_0x368709}=await _0x490a7e[_0x50c069(0x15f)](),_0x551d8d=_0x14f270+_0x516501[_0x50c069(0x139)](_0x368709);let _0x6833c7='';_0x2c8b09=_0x3b92c0;try{_0x6833c7=this[_0x50c069(0x133)](_0x551d8d),_0x14f270='';}catch(_0x3998c4){_0x14f270=_0x551d8d;continue;}_0x3045da+=_0x6833c7,!_0x2c8b09&&this[_0x50c069(0x158)](_0x3045da)||_0x3045da&&(_0x51f9e7+=_0x3045da,_0x3045da='',_0x1ac640(_0x51f9e7));}return Promise[_0x50c069(0x16d)]();}async[_0x4c8277(0x168)](_0x54c7e9,_0x42ea47){const _0xad272a=_0x4c8277;return _0x42ea47((await _0x54c7e9[_0xad272a(0x15e)]())[_0xad272a(0x155)][0x0][_0xad272a(0x16c)][_0xad272a(0x166)]),Promise[_0xad272a(0x16d)]();}[_0x4c8277(0x158)](_0x1d14ff){const _0x42f732=_0x4c8277,_0x1a33b1=_0x1d14ff[_0x42f732(0x144)]('<')[_0x42f732(0x12f)]!==_0x1d14ff[_0x42f732(0x144)]('>')[_0x42f732(0x12f)],_0xb0c927=_0x1d14ff[_0x42f732(0x12f)]<0x1e;return _0x1a33b1&&_0xb0c927;}[_0x4c8277(0x133)](_0x6dface){const _0x3194ef=_0x4c8277;return _0x6dface[_0x3194ef(0x144)](/\n(?![^{]*\})/g)[_0x3194ef(0x167)](_0x1e6f17=>_0x1e6f17[_0x3194ef(0x13c)](_0x3194ef(0x14d),''))[_0x3194ef(0x142)](_0x18918a=>_0x18918a&&_0x18918a[_0x3194ef(0x12f)]>0x0&&_0x3194ef(0x137)!==_0x18918a)[_0x3194ef(0x167)](_0x5ac1d5=>{const _0x3a1cbc=_0x3194ef,{choices:_0x138f18}=JSON[_0x3a1cbc(0x15d)](_0x5ac1d5);if(_0x138f18[0x0]?.[_0x3a1cbc(0x13d)]?.[_0x3a1cbc(0x166)])return _0x138f18[0x0][_0x3a1cbc(0x13d)][_0x3a1cbc(0x166)];})[_0x3194ef(0x142)](_0x4b550c=>_0x4b550c)[_0x3194ef(0x15b)]('');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x588d87=_0x2d60;(function(_0x597cf9,_0x3508d7){const _0x3222bc=_0x2d60,_0x562332=_0x597cf9();while(!![]){try{const _0x5f23e6=-parseInt(_0x3222bc(0x114))/0x1+parseInt(_0x3222bc(0x124))/0x2+-parseInt(_0x3222bc(0x128))/0x3*(-parseInt(_0x3222bc(0x109))/0x4)+parseInt(_0x3222bc(0xe6))/0x5+parseInt(_0x3222bc(0xed))/0x6*(parseInt(_0x3222bc(0xdc))/0x7)+-parseInt(_0x3222bc(0xec))/0x8+-parseInt(_0x3222bc(0xe8))/0x9;if(_0x5f23e6===_0x3508d7)break;else _0x562332['push'](_0x562332['shift']());}catch(_0x58c90a){_0x562332['push'](_0x562332['shift']());}}}(_0x325c,0x693c6));import{Plugin as _0x4b40ba}from'ckeditor5/src/core.js';function _0x2d60(_0x164a80,_0x226829){const _0x325c54=_0x325c();return _0x2d60=function(_0x2d607a,_0x38da51){_0x2d607a=_0x2d607a-0xc8;let _0x13869b=_0x325c54[_0x2d607a];return _0x13869b;},_0x2d60(_0x164a80,_0x226829);}import _0x30c0fd from'./aiassistantui.js';import _0x3e06c8 from'./aiassistantediting.js';import{getTranslation as _0x4fb7a6}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x172fa0}from'./utils/normalizecommandsconfig.js';export default class r extends _0x4b40ba{static get[_0x588d87(0x10f)](){return[_0x30c0fd,_0x3e06c8];}static get[_0x588d87(0xff)](){const _0x5b064d=_0x588d87;return _0x5b064d(0xde);}static get[_0x588d87(0xe1)](){return!0x0;}static get[_0x588d87(0x107)](){return!0x0;}constructor(_0x5b4200){const _0x5ef742=_0x588d87;super(_0x5b4200);const _0x23f724=_0x5b4200[_0x5ef742(0x100)],_0x1af4fe=_0x5b4200[_0x5ef742(0x12b)];_0x23f724[_0x5ef742(0xc9)](_0x5ef742(0x12d),!0x0),_0x23f724[_0x5ef742(0xc9)](_0x5ef742(0xf9),getDefaultCommands(_0x1af4fe)),_0x23f724[_0x5ef742(0xc9)](_0x5ef742(0x134),[]),_0x23f724[_0x5ef742(0xc9)](_0x5ef742(0x110),[]);let _0x55358d=_0x172fa0(_0x23f724[_0x5ef742(0xe7)](_0x5ef742(0xf9)),_0x1af4fe);const _0x2b68e8=_0x23f724[_0x5ef742(0xe7)](_0x5ef742(0x134)),_0x12d5d5=_0x23f724[_0x5ef742(0xe7)](_0x5ef742(0x110));_0x2b68e8[_0x5ef742(0x135)](_0x5095c1=>{const _0x5f3897=_0x5ef742,_0x41a94d=_0x55358d[_0x5f3897(0xee)](_0x2a92d9=>_0x2a92d9[_0x5f3897(0x113)]===_0x5095c1[_0x5f3897(0x113)]);_0x41a94d?_0x41a94d[_0x5f3897(0x11b)]=_0x41a94d[_0x5f3897(0x11b)][_0x5f3897(0x11e)](_0x5095c1[_0x5f3897(0x11b)]):_0x55358d[_0x5f3897(0xf1)](_0x5095c1);}),_0x55358d=_0x55358d[_0x5ef742(0x108)](_0xcc83b9=>!_0x12d5d5[_0x5ef742(0xf7)](_0xcc83b9[_0x5ef742(0x113)])),_0x55358d[_0x5ef742(0x135)](_0x4a5c5b=>{const _0x5bf517=_0x5ef742;_0x4a5c5b[_0x5bf517(0x11b)]=_0x4a5c5b[_0x5bf517(0x11b)][_0x5bf517(0x108)](_0x4de98d=>!_0x12d5d5[_0x5bf517(0xf7)](_0x4de98d['id']));}),_0x23f724[_0x5ef742(0x105)](_0x5ef742(0xf9),_0x55358d);}}function _0x325c(){const _0x330da4=['Hindi','simplifyLanguage','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','friendly','Business','4153667cEPxRX','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','AIAssistant','Continue','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','isOfficialPlugin','Spanish','Translate\x20the\x20content\x20to\x20Spanish\x20language.','English','Translate\x20the\x20content\x20to\x20English\x20language.','1203770QuQibM','get','3505482kPmnqU','makeShorter','casual','Simplified\x20Chinese','1425728CBdhze','6jYCzHk','find','Legal','Simplify\x20language','push','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','translatePortuguese','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Translate\x20the\x20content\x20to\x20French\x20language.','Portuguese','includes','Make\x20longer','ai.aiAssistant.commands','improveWriting','translateFrench','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Change\x20tone','continue','pluginName','config','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','translateChinese','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','generate','set','Casual','isPremiumPlugin','filter','1692bTNELO','editOrReview','translateEnglish','German','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Arabic','requires','ai.aiAssistant.removeCommands','legal','Translate\x20the\x20content\x20to\x20German\x20language.','groupId','105633bqVYPj','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Direct','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','confident','makeLonger','Translate','commands','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','concat','changeStyle','translateArabic','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Confident','poetic','488910ZdXrga','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Summarize','Poetic','183IPSrgF','Professional','Generate\x20from\x20selection','locale','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','ai.aiAssistant.preserveComments','business','Translate\x20the\x20content\x20to\x20Hindi\x20language.','translateGerman','direct','translateHindi','translateSpanish','ai.aiAssistant.extraCommandGroups','forEach','Change\x20style','define','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','translate','Edit\x20or\x20review','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Friendly','Improve\x20writing','journalism','professional','French','changeTone','summarize','Make\x20shorter','Journalism'];_0x325c=function(){return _0x330da4;};return _0x325c();}export function getDefaultCommands(_0x4d82eb){const _0xddba04=_0x588d87;return[{'groupId':_0xddba04(0x10a),'groupLabel':_0x4fb7a6(_0x4d82eb,_0xddba04(0xcc)),'commands':[{'id':_0xddba04(0xfa),'label':_0x4fb7a6(_0x4d82eb,_0xddba04(0xcf)),'prompt':_0xddba04(0x11c)},{'id':_0xddba04(0xe9),'label':_0x4fb7a6(_0x4d82eb,_0xddba04(0xd5)),'prompt':_0xddba04(0x125)},{'id':_0xddba04(0x119),'label':_0x4fb7a6(_0x4d82eb,_0xddba04(0xf8)),'prompt':_0xddba04(0xe0)},{'id':_0xddba04(0xd8),'label':_0x4fb7a6(_0x4d82eb,_0xddba04(0xf0)),'prompt':_0xddba04(0x121)}]},{'groupId':_0xddba04(0x104),'groupLabel':_0x4fb7a6(_0x4d82eb,_0xddba04(0x12a)),'commands':[{'id':_0xddba04(0xd4),'label':_0x4fb7a6(_0x4d82eb,_0xddba04(0x126)),'prompt':_0xddba04(0xca)},{'id':_0xddba04(0xfe),'label':_0x4fb7a6(_0x4d82eb,_0xddba04(0xdf)),'prompt':_0xddba04(0x12c)}]},{'groupId':_0xddba04(0xd3),'groupLabel':_0x4fb7a6(_0x4d82eb,_0xddba04(0xfd)),'commands':[{'id':_0xddba04(0xd1),'label':_0x4fb7a6(_0x4d82eb,_0xddba04(0x129)),'prompt':_0xddba04(0xf2)},{'id':_0xddba04(0xea),'label':_0x4fb7a6(_0x4d82eb,_0xddba04(0x106)),'prompt':_0xddba04(0x115)},{'id':_0xddba04(0x131),'label':_0x4fb7a6(_0x4d82eb,_0xddba04(0x116)),'prompt':_0xddba04(0xd9)},{'id':_0xddba04(0x118),'label':_0x4fb7a6(_0x4d82eb,_0xddba04(0x122)),'prompt':_0xddba04(0xfc)},{'id':_0xddba04(0xda),'label':_0x4fb7a6(_0x4d82eb,_0xddba04(0xce)),'prompt':_0xddba04(0x101)}]},{'groupId':_0xddba04(0x11f),'groupLabel':_0x4fb7a6(_0x4d82eb,_0xddba04(0xc8)),'commands':[{'id':_0xddba04(0x12e),'label':_0x4fb7a6(_0x4d82eb,_0xddba04(0xdb)),'prompt':_0xddba04(0x11d)},{'id':_0xddba04(0x111),'label':_0x4fb7a6(_0x4d82eb,_0xddba04(0xef)),'prompt':_0xddba04(0x10d)},{'id':_0xddba04(0xd0),'label':_0x4fb7a6(_0x4d82eb,_0xddba04(0xd6)),'prompt':_0xddba04(0xdd)},{'id':_0xddba04(0x123),'label':_0x4fb7a6(_0x4d82eb,_0xddba04(0x127)),'prompt':_0xddba04(0x117)}]},{'groupId':_0xddba04(0xcb),'groupLabel':_0x4fb7a6(_0x4d82eb,_0xddba04(0x11a)),'commands':[{'id':_0xddba04(0x10b),'label':_0x4fb7a6(_0x4d82eb,_0xddba04(0xe4)),'prompt':_0xddba04(0xe5)},{'id':_0xddba04(0x133),'label':_0x4fb7a6(_0x4d82eb,_0xddba04(0xe2)),'prompt':_0xddba04(0xe3)},{'id':_0xddba04(0xf3),'label':_0x4fb7a6(_0x4d82eb,_0xddba04(0xf6)),'prompt':_0xddba04(0x103)},{'id':_0xddba04(0x130),'label':_0x4fb7a6(_0x4d82eb,_0xddba04(0x10c)),'prompt':_0xddba04(0x112)},{'id':_0xddba04(0xfb),'label':_0x4fb7a6(_0x4d82eb,_0xddba04(0xd2)),'prompt':_0xddba04(0xf5)},{'id':_0xddba04(0x102),'label':_0x4fb7a6(_0x4d82eb,_0xddba04(0xeb)),'prompt':_0xddba04(0xf4)},{'id':_0xddba04(0x132),'label':_0x4fb7a6(_0x4d82eb,_0xddba04(0xd7)),'prompt':_0xddba04(0x12f)},{'id':_0xddba04(0x120),'label':_0x4fb7a6(_0x4d82eb,_0xddba04(0x10e)),'prompt':_0xddba04(0xcd)}]}];}
23
+ const _0x2eafc1=_0x56af;(function(_0x146da6,_0x1d4383){const _0x493ad2=_0x56af,_0x1068ad=_0x146da6();while(!![]){try{const _0x5942f7=-parseInt(_0x493ad2(0x9f))/0x1+-parseInt(_0x493ad2(0xaf))/0x2+-parseInt(_0x493ad2(0xa2))/0x3*(-parseInt(_0x493ad2(0xf1))/0x4)+parseInt(_0x493ad2(0x105))/0x5*(-parseInt(_0x493ad2(0xe4))/0x6)+parseInt(_0x493ad2(0xc7))/0x7*(-parseInt(_0x493ad2(0xa1))/0x8)+-parseInt(_0x493ad2(0xff))/0x9+parseInt(_0x493ad2(0xd4))/0xa;if(_0x5942f7===_0x1d4383)break;else _0x1068ad['push'](_0x1068ad['shift']());}catch(_0x498f52){_0x1068ad['push'](_0x1068ad['shift']());}}}(_0x2ba8,0x8690c));import{Plugin as _0x35a5b2}from'ckeditor5/src/core.js';import _0x364888 from'./aiassistantui.js';function _0x56af(_0x170d70,_0x492269){const _0x2ba87b=_0x2ba8();return _0x56af=function(_0x56af53,_0x5eb3a5){_0x56af53=_0x56af53-0x99;let _0x1d36d7=_0x2ba87b[_0x56af53];return _0x1d36d7;},_0x56af(_0x170d70,_0x492269);}import _0x3072d3 from'./aiassistantediting.js';import{getTranslation as _0x413d9c}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x4e4ad8}from'./utils/normalizecommandsconfig.js';export default class r extends _0x35a5b2{static get[_0x2eafc1(0xf2)](){return[_0x364888,_0x3072d3];}static get[_0x2eafc1(0x9d)](){const _0x38d5b2=_0x2eafc1;return _0x38d5b2(0xc6);}static get[_0x2eafc1(0xbb)](){return!0x0;}static get[_0x2eafc1(0xf6)](){return!0x0;}constructor(_0x3cf483){const _0x20eb65=_0x2eafc1;super(_0x3cf483);const _0x41c9a4=_0x3cf483[_0x20eb65(0xa9)],_0x100079=_0x3cf483[_0x20eb65(0xbf)];_0x41c9a4[_0x20eb65(0x102)](_0x20eb65(0xae),!0x0),_0x41c9a4[_0x20eb65(0x102)](_0x20eb65(0xe2),getDefaultCommands(_0x100079)),_0x41c9a4[_0x20eb65(0x102)](_0x20eb65(0xcf),[]),_0x41c9a4[_0x20eb65(0x102)](_0x20eb65(0xcb),[]);let _0x259662=_0x4e4ad8(_0x41c9a4[_0x20eb65(0xfc)](_0x20eb65(0xe2)),_0x100079);const _0x3059af=_0x41c9a4[_0x20eb65(0xfc)](_0x20eb65(0xcf)),_0xba34a2=_0x41c9a4[_0x20eb65(0xfc)](_0x20eb65(0xcb));_0x3059af[_0x20eb65(0xfd)](_0x3523c8=>{const _0x4e314b=_0x20eb65,_0x111b92=_0x259662[_0x4e314b(0xec)](_0x433c74=>_0x433c74[_0x4e314b(0xbe)]===_0x3523c8[_0x4e314b(0xbe)]);_0x111b92?_0x111b92[_0x4e314b(0xd2)]=_0x111b92[_0x4e314b(0xd2)][_0x4e314b(0xe1)](_0x3523c8[_0x4e314b(0xd2)]):_0x259662[_0x4e314b(0x99)](_0x3523c8);}),_0x259662=_0x259662[_0x20eb65(0xee)](_0x3ff7da=>!_0xba34a2[_0x20eb65(0xd7)](_0x3ff7da[_0x20eb65(0xbe)])),_0x259662[_0x20eb65(0xfd)](_0x1f21e0=>{const _0x1aff64=_0x20eb65;_0x1f21e0[_0x1aff64(0xd2)]=_0x1f21e0[_0x1aff64(0xd2)][_0x1aff64(0xee)](_0x3efdf5=>!_0xba34a2[_0x1aff64(0xd7)](_0x3efdf5['id']));}),_0x41c9a4[_0x20eb65(0x9e)](_0x20eb65(0xe2),_0x259662);}}export function getDefaultCommands(_0x2a71c0){const _0x396435=_0x2eafc1;return[{'groupId':_0x396435(0xe6),'groupLabel':_0x413d9c(_0x2a71c0,_0x396435(0xc3)),'commands':[{'id':_0x396435(0xf9),'label':_0x413d9c(_0x2a71c0,_0x396435(0xce)),'prompt':_0x396435(0xad)},{'id':_0x396435(0xeb),'label':_0x413d9c(_0x2a71c0,_0x396435(0xbd)),'prompt':_0x396435(0xd8)},{'id':_0x396435(0xf4),'label':_0x413d9c(_0x2a71c0,_0x396435(0xa6)),'prompt':_0x396435(0x9c)},{'id':_0x396435(0xa4),'label':_0x413d9c(_0x2a71c0,_0x396435(0x103)),'prompt':_0x396435(0xab)}]},{'groupId':_0x396435(0xf0),'groupLabel':_0x413d9c(_0x2a71c0,_0x396435(0xba)),'commands':[{'id':_0x396435(0xb2),'label':_0x413d9c(_0x2a71c0,_0x396435(0x9a)),'prompt':_0x396435(0xf7)},{'id':_0x396435(0xd9),'label':_0x413d9c(_0x2a71c0,_0x396435(0x9b)),'prompt':_0x396435(0xf8)}]},{'groupId':_0x396435(0xb0),'groupLabel':_0x413d9c(_0x2a71c0,_0x396435(0xb7)),'commands':[{'id':_0x396435(0xa3),'label':_0x413d9c(_0x2a71c0,_0x396435(0xf3)),'prompt':_0x396435(0xd3)},{'id':_0x396435(0xca),'label':_0x413d9c(_0x2a71c0,_0x396435(0xde)),'prompt':_0x396435(0xdf)},{'id':_0x396435(0xfe),'label':_0x413d9c(_0x2a71c0,_0x396435(0xb9)),'prompt':_0x396435(0xdb)},{'id':_0x396435(0xb3),'label':_0x413d9c(_0x2a71c0,_0x396435(0xd5)),'prompt':_0x396435(0xc8)},{'id':_0x396435(0xfa),'label':_0x413d9c(_0x2a71c0,_0x396435(0xac)),'prompt':_0x396435(0x100)}]},{'groupId':_0x396435(0xdd),'groupLabel':_0x413d9c(_0x2a71c0,_0x396435(0xfb)),'commands':[{'id':_0x396435(0xe7),'label':_0x413d9c(_0x2a71c0,_0x396435(0xda)),'prompt':_0x396435(0xa5)},{'id':_0x396435(0xa7),'label':_0x413d9c(_0x2a71c0,_0x396435(0x101)),'prompt':_0x396435(0xe5)},{'id':_0x396435(0xa8),'label':_0x413d9c(_0x2a71c0,_0x396435(0xb6)),'prompt':_0x396435(0xcd)},{'id':_0x396435(0xc5),'label':_0x413d9c(_0x2a71c0,_0x396435(0xe9)),'prompt':_0x396435(0xb8)}]},{'groupId':_0x396435(0xf5),'groupLabel':_0x413d9c(_0x2a71c0,_0x396435(0xcc)),'commands':[{'id':_0x396435(0xc4),'label':_0x413d9c(_0x2a71c0,_0x396435(0xd1)),'prompt':_0x396435(0xb1)},{'id':_0x396435(0xed),'label':_0x413d9c(_0x2a71c0,_0x396435(0xd6)),'prompt':_0x396435(0xb4)},{'id':_0x396435(0x107),'label':_0x413d9c(_0x2a71c0,_0x396435(0xd0)),'prompt':_0x396435(0xc9)},{'id':_0x396435(0xe0),'label':_0x413d9c(_0x2a71c0,_0x396435(0xa0)),'prompt':_0x396435(0xdc)},{'id':_0x396435(0xea),'label':_0x413d9c(_0x2a71c0,_0x396435(0xb5)),'prompt':_0x396435(0xe8)},{'id':_0x396435(0xaa),'label':_0x413d9c(_0x2a71c0,_0x396435(0xc2)),'prompt':_0x396435(0xef)},{'id':_0x396435(0x104),'label':_0x413d9c(_0x2a71c0,_0x396435(0x106)),'prompt':_0x396435(0xbc)},{'id':_0x396435(0xc1),'label':_0x413d9c(_0x2a71c0,_0x396435(0xc0)),'prompt':_0x396435(0xe3)}]}];}function _0x2ba8(){const _0x96c6fc=['Business','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Translate\x20the\x20content\x20to\x20German\x20language.','changeStyle','Casual','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','translateGerman','concat','ai.aiAssistant.commands','Translate\x20the\x20content\x20to\x20Arabic\x20language.','45456hPrNcl','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','editOrReview','business','Translate\x20the\x20content\x20to\x20French\x20language.','Poetic','translateFrench','makeShorter','find','translateSpanish','filter','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','generate','104KDHlwf','requires','Professional','makeLonger','translate','isPremiumPlugin','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','improveWriting','friendly','Change\x20style','get','forEach','direct','8795457mJJlxs','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Legal','define','Simplify\x20language','translateHindi','85HAPOaO','Hindi','translatePortuguese','push','Summarize','Continue','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','pluginName','set','443260OiQSVy','German','24VAkoWx','6288JDuKgt','professional','simplifyLanguage','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Make\x20longer','legal','journalism','config','translateChinese','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Friendly','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','ai.aiAssistant.preserveComments','1105844JrBOqN','changeTone','Translate\x20the\x20content\x20to\x20English\x20language.','summarize','confident','Translate\x20the\x20content\x20to\x20Spanish\x20language.','French','Journalism','Change\x20tone','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Direct','Generate\x20from\x20selection','isOfficialPlugin','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Make\x20shorter','groupId','locale','Arabic','translateArabic','Simplified\x20Chinese','Edit\x20or\x20review','translateEnglish','poetic','AIAssistant','1737589gdSdmu','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','casual','ai.aiAssistant.removeCommands','Translate','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Improve\x20writing','ai.aiAssistant.extraCommandGroups','Portuguese','English','commands','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','33436120fQvIOa','Confident','Spanish','includes','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','continue'];_0x2ba8=function(){return _0x96c6fc;};return _0x2ba8();}