@ckeditor/ckeditor5-ai 0.0.0-nightly-20240516.1 → 0.0.0-nightly-20240518.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index.js +2 -2
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/translations/ar.po +4 -4
- package/lang/translations/bg.po +4 -4
- package/lang/translations/bn.po +4 -4
- package/lang/translations/ca.po +4 -4
- package/lang/translations/cs.po +4 -4
- package/lang/translations/da.po +4 -4
- package/lang/translations/de.po +4 -4
- package/lang/translations/el.po +4 -4
- package/lang/translations/es.po +4 -4
- package/lang/translations/et.po +4 -4
- package/lang/translations/fi.po +4 -4
- package/lang/translations/fr.po +4 -4
- package/lang/translations/he.po +4 -4
- package/lang/translations/hi.po +4 -4
- package/lang/translations/hu.po +4 -4
- package/lang/translations/id.po +4 -4
- package/lang/translations/it.po +4 -4
- package/lang/translations/ja.po +4 -4
- package/lang/translations/ko.po +4 -4
- package/lang/translations/lt.po +4 -4
- package/lang/translations/lv.po +4 -4
- package/lang/translations/ms.po +4 -4
- package/lang/translations/nl.po +4 -4
- package/lang/translations/no.po +4 -4
- package/lang/translations/pl.po +4 -4
- package/lang/translations/pt-br.po +4 -4
- package/lang/translations/pt.po +4 -4
- package/lang/translations/ro.po +4 -4
- package/lang/translations/ru.po +4 -4
- package/lang/translations/sk.po +4 -4
- package/lang/translations/sr.po +4 -4
- package/lang/translations/sv.po +4 -4
- package/lang/translations/th.po +4 -4
- package/lang/translations/tr.po +4 -4
- package/lang/translations/uk.po +4 -4
- package/lang/translations/vi.po +4 -4
- package/lang/translations/zh-cn.po +4 -4
- package/lang/translations/zh.po +4 -4
- package/package.json +4 -4
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/ui/aiassistantcontroller.js +2 -2
- package/src/ui/dropdown/aicommandslistview.js +1 -1
- package/src/ui/dropdown/buttonlabelwithhighlightview.js +1 -1
- package/src/ui/dropdown/labelwithhighlightview.js +1 -1
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/lang/translations/ru.po
CHANGED
|
@@ -175,15 +175,15 @@ msgstr "ИИ пишет..."
|
|
|
175
175
|
|
|
176
176
|
msgctxt "Aria status message indicating that the AI is generating content. Example: 'AI busy writing'."
|
|
177
177
|
msgid "AI is writing"
|
|
178
|
-
msgstr ""
|
|
178
|
+
msgstr "ИИ пишет"
|
|
179
179
|
|
|
180
180
|
msgctxt "Aria status message indicating that the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
|
-
msgstr ""
|
|
182
|
+
msgstr "Сгенерированный контент: %0"
|
|
183
183
|
|
|
184
184
|
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]'."
|
|
185
185
|
msgid "Error during AI content generation: %0"
|
|
186
|
-
msgstr ""
|
|
186
|
+
msgstr "Ошибка при создании контента ИИ: %0"
|
|
187
187
|
|
|
188
188
|
msgctxt "The label of the button that toggles the prompt history pane in the AI dialog."
|
|
189
189
|
msgid "History"
|
|
@@ -215,7 +215,7 @@ msgstr "Нет доступных команд"
|
|
|
215
215
|
|
|
216
216
|
msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
|
|
217
217
|
msgid "%0 commands found"
|
|
218
|
-
msgstr ""
|
|
218
|
+
msgstr "Найдено команд: %0"
|
|
219
219
|
|
|
220
220
|
msgctxt "The label for the button that replaces the selected content by the generated AI response."
|
|
221
221
|
msgid "AI_REPLACE_CONTENT"
|
package/lang/translations/sk.po
CHANGED
|
@@ -175,15 +175,15 @@ msgstr "AI generuje..."
|
|
|
175
175
|
|
|
176
176
|
msgctxt "Aria status message indicating that the AI is generating content. Example: 'AI busy writing'."
|
|
177
177
|
msgid "AI is writing"
|
|
178
|
-
msgstr ""
|
|
178
|
+
msgstr "AI píše"
|
|
179
179
|
|
|
180
180
|
msgctxt "Aria status message indicating that the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
|
-
msgstr ""
|
|
182
|
+
msgstr "Vygenerovaný obsah: %0"
|
|
183
183
|
|
|
184
184
|
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]'."
|
|
185
185
|
msgid "Error during AI content generation: %0"
|
|
186
|
-
msgstr ""
|
|
186
|
+
msgstr "Chyba pri generovaní obsahu AI: %0"
|
|
187
187
|
|
|
188
188
|
msgctxt "The label of the button that toggles the prompt history pane in the AI dialog."
|
|
189
189
|
msgid "History"
|
|
@@ -215,7 +215,7 @@ msgstr "Nie sú k dispozícii žiadne príkazy"
|
|
|
215
215
|
|
|
216
216
|
msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
|
|
217
217
|
msgid "%0 commands found"
|
|
218
|
-
msgstr ""
|
|
218
|
+
msgstr "Našli sa %0 príkazy"
|
|
219
219
|
|
|
220
220
|
msgctxt "The label for the button that replaces the selected content by the generated AI response."
|
|
221
221
|
msgid "AI_REPLACE_CONTENT"
|
package/lang/translations/sr.po
CHANGED
|
@@ -175,15 +175,15 @@ msgstr "AI piše…"
|
|
|
175
175
|
|
|
176
176
|
msgctxt "Aria status message indicating that the AI is generating content. Example: 'AI busy writing'."
|
|
177
177
|
msgid "AI is writing"
|
|
178
|
-
msgstr ""
|
|
178
|
+
msgstr "AI piše"
|
|
179
179
|
|
|
180
180
|
msgctxt "Aria status message indicating that the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
|
-
msgstr ""
|
|
182
|
+
msgstr "Generisani sadržaj: %0"
|
|
183
183
|
|
|
184
184
|
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]'."
|
|
185
185
|
msgid "Error during AI content generation: %0"
|
|
186
|
-
msgstr ""
|
|
186
|
+
msgstr "Greška tokom generisanja AI sadržaja: %0"
|
|
187
187
|
|
|
188
188
|
msgctxt "The label of the button that toggles the prompt history pane in the AI dialog."
|
|
189
189
|
msgid "History"
|
|
@@ -215,7 +215,7 @@ msgstr "Nije dostupna nijedna komanda"
|
|
|
215
215
|
|
|
216
216
|
msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
|
|
217
217
|
msgid "%0 commands found"
|
|
218
|
-
msgstr ""
|
|
218
|
+
msgstr "%0 pronađenih komandi"
|
|
219
219
|
|
|
220
220
|
msgctxt "The label for the button that replaces the selected content by the generated AI response."
|
|
221
221
|
msgid "AI_REPLACE_CONTENT"
|
package/lang/translations/sv.po
CHANGED
|
@@ -175,15 +175,15 @@ msgstr "AI skriver ..."
|
|
|
175
175
|
|
|
176
176
|
msgctxt "Aria status message indicating that the AI is generating content. Example: 'AI busy writing'."
|
|
177
177
|
msgid "AI is writing"
|
|
178
|
-
msgstr ""
|
|
178
|
+
msgstr "AI skriver"
|
|
179
179
|
|
|
180
180
|
msgctxt "Aria status message indicating that the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
|
-
msgstr ""
|
|
182
|
+
msgstr "Genererat innehåll: %0"
|
|
183
183
|
|
|
184
184
|
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]'."
|
|
185
185
|
msgid "Error during AI content generation: %0"
|
|
186
|
-
msgstr ""
|
|
186
|
+
msgstr "Fel vid generering av AI-innehåll: %0"
|
|
187
187
|
|
|
188
188
|
msgctxt "The label of the button that toggles the prompt history pane in the AI dialog."
|
|
189
189
|
msgid "History"
|
|
@@ -215,7 +215,7 @@ msgstr "Inga kommandon finns"
|
|
|
215
215
|
|
|
216
216
|
msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
|
|
217
217
|
msgid "%0 commands found"
|
|
218
|
-
msgstr ""
|
|
218
|
+
msgstr "%0 kommandon hittades"
|
|
219
219
|
|
|
220
220
|
msgctxt "The label for the button that replaces the selected content by the generated AI response."
|
|
221
221
|
msgid "AI_REPLACE_CONTENT"
|
package/lang/translations/th.po
CHANGED
|
@@ -175,15 +175,15 @@ msgstr "AI กำลังเขียน..."
|
|
|
175
175
|
|
|
176
176
|
msgctxt "Aria status message indicating that the AI is generating content. Example: 'AI busy writing'."
|
|
177
177
|
msgid "AI is writing"
|
|
178
|
-
msgstr ""
|
|
178
|
+
msgstr "AI กำลังเขียน"
|
|
179
179
|
|
|
180
180
|
msgctxt "Aria status message indicating that the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
|
-
msgstr ""
|
|
182
|
+
msgstr "เนื้อหาที่สร้างขึ้น: %0"
|
|
183
183
|
|
|
184
184
|
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]'."
|
|
185
185
|
msgid "Error during AI content generation: %0"
|
|
186
|
-
msgstr ""
|
|
186
|
+
msgstr "เกิดข้อผิดพลาดระหว่างการสร้างเนื้อหาด้วย AI: %0"
|
|
187
187
|
|
|
188
188
|
msgctxt "The label of the button that toggles the prompt history pane in the AI dialog."
|
|
189
189
|
msgid "History"
|
|
@@ -215,7 +215,7 @@ msgstr "ไม่มีคำสั่งให้ใช้"
|
|
|
215
215
|
|
|
216
216
|
msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
|
|
217
217
|
msgid "%0 commands found"
|
|
218
|
-
msgstr ""
|
|
218
|
+
msgstr "พบคำสั่ง %0 รายการ"
|
|
219
219
|
|
|
220
220
|
msgctxt "The label for the button that replaces the selected content by the generated AI response."
|
|
221
221
|
msgid "AI_REPLACE_CONTENT"
|
package/lang/translations/tr.po
CHANGED
|
@@ -175,15 +175,15 @@ msgstr "Yapay Zekâ yazıyor..."
|
|
|
175
175
|
|
|
176
176
|
msgctxt "Aria status message indicating that the AI is generating content. Example: 'AI busy writing'."
|
|
177
177
|
msgid "AI is writing"
|
|
178
|
-
msgstr ""
|
|
178
|
+
msgstr "Yapay zekâ yazıyor"
|
|
179
179
|
|
|
180
180
|
msgctxt "Aria status message indicating that the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
|
-
msgstr ""
|
|
182
|
+
msgstr "Oluşturulan içerik: %0"
|
|
183
183
|
|
|
184
184
|
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]'."
|
|
185
185
|
msgid "Error during AI content generation: %0"
|
|
186
|
-
msgstr ""
|
|
186
|
+
msgstr "Yapay zekâyla içerik oluşturma sırasında hata oluştu: %0"
|
|
187
187
|
|
|
188
188
|
msgctxt "The label of the button that toggles the prompt history pane in the AI dialog."
|
|
189
189
|
msgid "History"
|
|
@@ -215,7 +215,7 @@ msgstr "Kullanılabilir komut yok"
|
|
|
215
215
|
|
|
216
216
|
msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
|
|
217
217
|
msgid "%0 commands found"
|
|
218
|
-
msgstr ""
|
|
218
|
+
msgstr "%0 komut bulundu"
|
|
219
219
|
|
|
220
220
|
msgctxt "The label for the button that replaces the selected content by the generated AI response."
|
|
221
221
|
msgid "AI_REPLACE_CONTENT"
|
package/lang/translations/uk.po
CHANGED
|
@@ -175,15 +175,15 @@ msgstr "ШІ пише..."
|
|
|
175
175
|
|
|
176
176
|
msgctxt "Aria status message indicating that the AI is generating content. Example: 'AI busy writing'."
|
|
177
177
|
msgid "AI is writing"
|
|
178
|
-
msgstr ""
|
|
178
|
+
msgstr "ШІ пише"
|
|
179
179
|
|
|
180
180
|
msgctxt "Aria status message indicating that the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
|
-
msgstr ""
|
|
182
|
+
msgstr "Згенерований контент: %0"
|
|
183
183
|
|
|
184
184
|
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]'."
|
|
185
185
|
msgid "Error during AI content generation: %0"
|
|
186
|
-
msgstr ""
|
|
186
|
+
msgstr "Під час ШІ-генерації контенту сталася помилка: %0"
|
|
187
187
|
|
|
188
188
|
msgctxt "The label of the button that toggles the prompt history pane in the AI dialog."
|
|
189
189
|
msgid "History"
|
|
@@ -215,7 +215,7 @@ msgstr "Немає доступних команд"
|
|
|
215
215
|
|
|
216
216
|
msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
|
|
217
217
|
msgid "%0 commands found"
|
|
218
|
-
msgstr ""
|
|
218
|
+
msgstr "Знайдено %0 команд"
|
|
219
219
|
|
|
220
220
|
msgctxt "The label for the button that replaces the selected content by the generated AI response."
|
|
221
221
|
msgid "AI_REPLACE_CONTENT"
|
package/lang/translations/vi.po
CHANGED
|
@@ -175,15 +175,15 @@ msgstr "AI đang viết..."
|
|
|
175
175
|
|
|
176
176
|
msgctxt "Aria status message indicating that the AI is generating content. Example: 'AI busy writing'."
|
|
177
177
|
msgid "AI is writing"
|
|
178
|
-
msgstr ""
|
|
178
|
+
msgstr "AI đang viết"
|
|
179
179
|
|
|
180
180
|
msgctxt "Aria status message indicating that the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
|
-
msgstr ""
|
|
182
|
+
msgstr "Nội dung đã tạo: %0"
|
|
183
183
|
|
|
184
184
|
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]'."
|
|
185
185
|
msgid "Error during AI content generation: %0"
|
|
186
|
-
msgstr ""
|
|
186
|
+
msgstr "Xảy ra lỗi trong quá trình tạo nội dung AI: %0"
|
|
187
187
|
|
|
188
188
|
msgctxt "The label of the button that toggles the prompt history pane in the AI dialog."
|
|
189
189
|
msgid "History"
|
|
@@ -215,7 +215,7 @@ msgstr "Không có lệnh nào khả dụng"
|
|
|
215
215
|
|
|
216
216
|
msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
|
|
217
217
|
msgid "%0 commands found"
|
|
218
|
-
msgstr ""
|
|
218
|
+
msgstr "Đã tìm thấy %0 lệnh"
|
|
219
219
|
|
|
220
220
|
msgctxt "The label for the button that replaces the selected content by the generated AI response."
|
|
221
221
|
msgid "AI_REPLACE_CONTENT"
|
|
@@ -175,15 +175,15 @@ msgstr "AI 正在撰写……"
|
|
|
175
175
|
|
|
176
176
|
msgctxt "Aria status message indicating that the AI is generating content. Example: 'AI busy writing'."
|
|
177
177
|
msgid "AI is writing"
|
|
178
|
-
msgstr ""
|
|
178
|
+
msgstr "人工智能正在写作"
|
|
179
179
|
|
|
180
180
|
msgctxt "Aria status message indicating that the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
|
-
msgstr ""
|
|
182
|
+
msgstr "生成的内容:%0"
|
|
183
183
|
|
|
184
184
|
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]'."
|
|
185
185
|
msgid "Error during AI content generation: %0"
|
|
186
|
-
msgstr ""
|
|
186
|
+
msgstr "人工智能生成内容时出错:%0"
|
|
187
187
|
|
|
188
188
|
msgctxt "The label of the button that toggles the prompt history pane in the AI dialog."
|
|
189
189
|
msgid "History"
|
|
@@ -215,7 +215,7 @@ msgstr "没有可用的命令"
|
|
|
215
215
|
|
|
216
216
|
msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
|
|
217
217
|
msgid "%0 commands found"
|
|
218
|
-
msgstr ""
|
|
218
|
+
msgstr "找到 %0 个命令"
|
|
219
219
|
|
|
220
220
|
msgctxt "The label for the button that replaces the selected content by the generated AI response."
|
|
221
221
|
msgid "AI_REPLACE_CONTENT"
|
package/lang/translations/zh.po
CHANGED
|
@@ -175,15 +175,15 @@ msgstr "AI 撰寫中..."
|
|
|
175
175
|
|
|
176
176
|
msgctxt "Aria status message indicating that the AI is generating content. Example: 'AI busy writing'."
|
|
177
177
|
msgid "AI is writing"
|
|
178
|
-
msgstr ""
|
|
178
|
+
msgstr "AI 撰寫中"
|
|
179
179
|
|
|
180
180
|
msgctxt "Aria status message indicating that the AI generated content. Example: 'Generated content: [text generated by the AI model]'."
|
|
181
181
|
msgid "Generated content: %0"
|
|
182
|
-
msgstr ""
|
|
182
|
+
msgstr "生成的內容:%0"
|
|
183
183
|
|
|
184
184
|
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]'."
|
|
185
185
|
msgid "Error during AI content generation: %0"
|
|
186
|
-
msgstr ""
|
|
186
|
+
msgstr "AI 內容生成期間發生錯誤:%0"
|
|
187
187
|
|
|
188
188
|
msgctxt "The label of the button that toggles the prompt history pane in the AI dialog."
|
|
189
189
|
msgid "History"
|
|
@@ -215,7 +215,7 @@ msgstr "無可用指令"
|
|
|
215
215
|
|
|
216
216
|
msgctxt "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'."
|
|
217
217
|
msgid "%0 commands found"
|
|
218
|
-
msgstr ""
|
|
218
|
+
msgstr "已找到 %0 個指令"
|
|
219
219
|
|
|
220
220
|
msgctxt "The label for the button that replaces the selected content by the generated AI response."
|
|
221
221
|
msgid "AI_REPLACE_CONTENT"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-ai",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20240518.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/)",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"ckeditor5": "0.0.0-nightly-
|
|
27
|
-
"ckeditor5-collaboration": "0.0.0-nightly-
|
|
26
|
+
"ckeditor5": "0.0.0-nightly-20240518.0",
|
|
27
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20240518.0",
|
|
28
28
|
"@aws-sdk/client-bedrock-runtime": "3.470.0",
|
|
29
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
29
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20240518.0",
|
|
30
30
|
"lodash-es": "4.17.21"
|
|
31
31
|
},
|
|
32
32
|
"type": "module",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x45a6c6=_0x4023;(function(_0x2a28cd,_0x135d5a){var _0x431afd=_0x4023,_0x4f1e3f=_0x2a28cd();while(!![]){try{var _0x11f56f=parseInt(_0x431afd(0x12f))/0x1+parseInt(_0x431afd(0x13a))/0x2+-parseInt(_0x431afd(0x136))/0x3+parseInt(_0x431afd(0x139))/0x4+-parseInt(_0x431afd(0x134))/0x5*(parseInt(_0x431afd(0x13d))/0x6)+-parseInt(_0x431afd(0x13c))/0x7*(parseInt(_0x431afd(0x138))/0x8)+-parseInt(_0x431afd(0x135))/0x9;if(_0x11f56f===_0x135d5a)break;else _0x4f1e3f['push'](_0x4f1e3f['shift']());}catch(_0xb50504){_0x4f1e3f['push'](_0x4f1e3f['shift']());}}}(_0x3368,0x7f5d4));function _0x4023(_0x27dac2,_0x55c618){var _0x3368fb=_0x3368();return _0x4023=function(_0x402309,_0xa0b3e3){_0x402309=_0x402309-0x12e;var _0xc6a55e=_0x3368fb[_0x402309];return _0xc6a55e;},_0x4023(_0x27dac2,_0x55c618);}function _0x3368(){var _0x305dc4=['1583254vRuRxC','afterInit','28119hVDMAA','12NRFJEa','aiadapter-text-adapter-not-set','932491ufnpkW','name','pluginName','AIRequestError','AIAdapter','2179565uJraah','2351097VTwIRI','1623702nvBloP','textAdapter','696KBnPtm','3285352AxTdjy'];_0x3368=function(){return _0x305dc4;};return _0x3368();}import{Plugin as _0x5aa189}from'ckeditor5/src/core.js';import{CKEditorError as _0x296eda}from'ckeditor5/src/utils.js';export default class y extends _0x5aa189{static get[_0x45a6c6(0x131)](){var _0x56af0d=_0x45a6c6;return _0x56af0d(0x133);}[_0x45a6c6(0x13b)](){var _0x5bab08=_0x45a6c6;if(!this[_0x5bab08(0x137)])throw new _0x296eda(_0x5bab08(0x12e),null);}}export class AIRequestError extends Error{constructor(_0x496158){var _0x4e18c5=_0x45a6c6;super(_0x496158),this[_0x4e18c5(0x130)]=_0x4e18c5(0x132);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x37eaa4=_0xb507;(function(_0x5a5027,_0x22d192){const _0x140b97=_0xb507,_0x22f837=_0x5a5027();while(!![]){try{const _0x58fc3f=-parseInt(_0x140b97(0x117))/0x1*(parseInt(_0x140b97(0x124))/0x2)+-parseInt(_0x140b97(0x138))/0x3+-parseInt(_0x140b97(0x119))/0x4*(parseInt(_0x140b97(0x12a))/0x5)+parseInt(_0x140b97(0x12d))/0x6+-parseInt(_0x140b97(0x11b))/0x7+parseInt(_0x140b97(0x11d))/0x8+parseInt(_0x140b97(0x126))/0x9;if(_0x58fc3f===_0x22d192)break;else _0x22f837['push'](_0x22f837['shift']());}catch(_0x105893){_0x22f837['push'](_0x22f837['shift']());}}}(_0x1c36,0x7d096));import{Plugin as _0x24c230}from'ckeditor5/src/core.js';import{CKEditorError as _0x465d89}from'ckeditor5/src/utils.js';import{default as _0x477740,AIRequestError as _0x4f98d1}from'./aiadapter.js';function _0xb507(_0x4bc9e6,_0x365d46){const _0x1c3623=_0x1c36();return _0xb507=function(_0xb50719,_0x19f440){_0xb50719=_0xb50719-0x115;let _0x559e96=_0x1c3623[_0xb50719];return _0x559e96;},_0xb507(_0x4bc9e6,_0x365d46);}import{getTranslation as _0xd943c1}from'../utils/common-translations.js';export default class P extends _0x24c230{static get[_0x37eaa4(0x12f)](){return[_0x477740];}constructor(_0x2a66f){const _0xa801ba=_0x37eaa4;super(_0x2a66f),this[_0xa801ba(0x11a)]=new AbortController();}[_0x37eaa4(0x11e)](){const _0x21bf07=_0x37eaa4;this[_0x21bf07(0x11c)][_0x21bf07(0x120)][_0x21bf07(0x129)](_0x477740)[_0x21bf07(0x122)]=this;}[_0x37eaa4(0x131)](){const _0x56af12=_0x37eaa4;this[_0x56af12(0x11a)][_0x56af12(0x123)][_0x56af12(0x121)]||(this[_0x56af12(0x11a)][_0x56af12(0x131)](),this[_0x56af12(0x11a)]=new AbortController());}async[_0x37eaa4(0x12c)](_0x7885fa){const _0x15e546=_0x37eaa4;return this[_0x15e546(0x125)](_0x7885fa)[_0x15e546(0x115)](_0x5b5733=>{const _0x4acb23=_0x15e546;if(_0x5b5733 instanceof _0x4f98d1)return Promise[_0x4acb23(0x136)](_0x5b5733);if(_0x4acb23(0x128)==_0x5b5733[_0x4acb23(0x116)])return Promise[_0x4acb23(0x134)]();throw console[_0x4acb23(0x11f)](_0x5b5733),new _0x465d89(_0x4acb23(0x12e),null);});}async[_0x37eaa4(0x118)](_0xd0202f,_0x3885e1){const _0xddb0f7=_0x37eaa4,_0x2440ab=this[_0xddb0f7(0x11c)][_0xddb0f7(0x133)],_0x4a5a8b={'Content-Type':_0xddb0f7(0x130)};if(_0xddb0f7(0x137)==typeof _0xd0202f)Object[_0xddb0f7(0x132)](_0x4a5a8b,_0xd0202f);else{if(_0xd0202f)try{const _0x40cea9=await _0xd0202f(_0x3885e1);Object[_0xddb0f7(0x132)](_0x4a5a8b,_0x40cea9);}catch(_0x124453){return Promise[_0xddb0f7(0x136)](new _0x4f98d1(_0xd943c1(_0x2440ab,_0xddb0f7(0x12b))));}}return _0x4a5a8b;}async[_0x37eaa4(0x127)](_0xf9e8e1,_0x20a768){const _0x13f173=_0x37eaa4,_0x1686bb=this[_0x13f173(0x11c)][_0x13f173(0x133)];if(_0x13f173(0x137)==typeof _0xf9e8e1)return _0xf9e8e1;try{return await _0xf9e8e1(_0x20a768);}catch(_0x1ae3c7){return Promise[_0x13f173(0x136)](new _0x4f98d1(_0xd943c1(_0x1686bb,_0x13f173(0x135))));}}}function _0x1c36(){const _0x32470b=['object','2693727kQCTBa','catch','name','45366lDPvBG','_prepareRequestHeaders','19580BOYqFV','abortController','906773ooSFAM','editor','1921400UZPAPZ','init','error','plugins','aborted','textAdapter','signal','18fGYsHY','sendRequest','17692587TtyeYe','_prepareRequestParameters','AbortError','get','345XtVcAO','AI_ERROR_GET_HEADERS','makeRequest','477774tqQVdZ','aitextadapter-send-request-failed','requires','application/json','abort','assign','locale','resolve','AI_ERROR_GET_PARAMETERS','reject'];_0x1c36=function(){return _0x32470b;};return _0x1c36();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xa7ceb3=_0x3335;(function(_0x503e6a,_0x1e0975){const _0x11fd82=_0x3335,_0x456890=_0x503e6a();while(!![]){try{const _0x5ca191=parseInt(_0x11fd82(0x1d8))/0x1+-parseInt(_0x11fd82(0x206))/0x2+-parseInt(_0x11fd82(0x212))/0x3+-parseInt(_0x11fd82(0x218))/0x4*(-parseInt(_0x11fd82(0x1fe))/0x5)+parseInt(_0x11fd82(0x213))/0x6*(-parseInt(_0x11fd82(0x202))/0x7)+parseInt(_0x11fd82(0x210))/0x8*(parseInt(_0x11fd82(0x1ee))/0x9)+parseInt(_0x11fd82(0x1db))/0xa;if(_0x5ca191===_0x1e0975)break;else _0x456890['push'](_0x456890['shift']());}catch(_0xf70713){_0x456890['push'](_0x456890['shift']());}}}(_0x4ab7,0xb1d04));function _0x4ab7(){const _0x21422=['_bedrockClientConfig','1141882JRlKXr','_prepareRequestHeaders','resolve','from','920952hEsvUg','_requestParameters','read','generations','toString','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','preparePrompt','parse','_prepareRequestParameters','data','616nzkAHy','ai.aws.bedrockClientConfig','3178674xyajGw','18myKBoJ','AI_ERROR_UNSUPPORTED_MODEL','Instruction:\x0a','decode','ai.aws.apiUrl','4GRXdGT','join','signal','_apiUrl','_readAsyncIterableResponse','json','_getGeneratedText','\x0a\x0aAssistant:','define','abortController','utf8','body','bytes','getReader','generation','send','anthropic.claude','AWSTextAdapter','getModelFamily','667554zPmNcU','length','get','10582780XDtHHp','split','stringify','config','_readStaticResponse','ai.aws.requestHeaders','POST','\x0a[/INST]','locale','text','Human:\x0a','_processAWSRequest','\x0a<</SYS>>\x0a[INST]\x0a','bedrock-2023-05-31','ai21.j2','utf-8','ai.aws.requestParameters','anthropic.claude-v2','chunk','82107lBypDh','sendRequest','_processProxyRequest','map','application/json','completion','pluginName','filter','meta.llama','_requestHeaders','cohere.command','test','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.','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.','_readStreamableResponse','completions','1547165dsuzzu','editor','<<SYS>>\x0a'];_0x4ab7=function(){return _0x21422;};return _0x4ab7();}function _0x3335(_0xa68c7b,_0x37b849){const _0x4ab7d3=_0x4ab7();return _0x3335=function(_0x33350b,_0x4ac49d){_0x33350b=_0x33350b-0x1d1;let _0x340f78=_0x4ab7d3[_0x33350b];return _0x340f78;},_0x3335(_0xa68c7b,_0x37b849);}import{default as _0x57c4fe}from'./aitextadapter.js';import{AIRequestError as _0x16494e}from'./aiadapter.js';import{BedrockRuntimeClient as _0x508a74,InvokeModelCommand as _0x43fc83,InvokeModelWithResponseStreamCommand as _0x28ae6c}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x34c383}from'../utils/common-translations.js';export default class J extends _0x57c4fe{static get[_0xa7ceb3(0x1f4)](){const _0x1db041=_0xa7ceb3;return _0x1db041(0x1d6);}constructor(_0x1763ca){const _0x1173e5=_0xa7ceb3;super(_0x1763ca),_0x1763ca[_0x1173e5(0x1de)][_0x1173e5(0x1da)](_0x1173e5(0x1eb))||_0x1763ca[_0x1173e5(0x1de)][_0x1173e5(0x220)](_0x1173e5(0x1eb),{'model':_0x1173e5(0x1ec),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x1173e5(0x1e8),'stream':!0x0}),this[_0x1173e5(0x21b)]=_0x1763ca[_0x1173e5(0x1de)][_0x1173e5(0x1da)](_0x1173e5(0x217)),this[_0x1173e5(0x201)]=_0x1763ca[_0x1173e5(0x1de)][_0x1173e5(0x1da)](_0x1173e5(0x211)),this[_0x1173e5(0x1f7)]=_0x1763ca[_0x1173e5(0x1de)][_0x1173e5(0x1da)](_0x1173e5(0x1e0)),this[_0x1173e5(0x207)]=_0x1763ca[_0x1173e5(0x1de)][_0x1173e5(0x1da)](_0x1173e5(0x1eb));}async[_0xa7ceb3(0x1ef)]({query:_0xde7009,context:_0x160adb,onData:_0x2a6832,actionId:_0x4a7164}){const _0x130061=_0xa7ceb3,{model:_0x189dfe,stream:_0x560425,..._0x75ad66}=await this[_0x130061(0x20e)](this[_0x130061(0x207)],_0x4a7164),_0x124ecc={'prompt':await this[_0x130061(0x20c)](_0xde7009,_0x160adb,_0x189dfe,_0x4a7164),..._0x75ad66};this[_0x130061(0x21b)]?await this[_0x130061(0x1f0)](_0x124ecc,_0x189dfe,_0x560425,_0x2a6832,_0x4a7164):await this[_0x130061(0x1e6)](_0x124ecc,_0x189dfe,_0x560425,_0x2a6832);}async[_0xa7ceb3(0x20c)](_0x1748c6,_0x1a7111,_0xab7c2b,_0x3c5fd2){const _0x54dbfd=_0xa7ceb3;let _0x558e9b,_0x2e1619;return _0x1a7111?(_0x558e9b=_0x54dbfd(0x1fa),_0x2e1619=_0x54dbfd(0x215)+_0x1748c6+_0x54dbfd(0x20b)+_0x1a7111):(_0x558e9b=_0x54dbfd(0x1fb),_0x2e1619=_0x1748c6),_0x54dbfd(0x1f6)==this[_0x54dbfd(0x1d7)](_0xab7c2b)?_0x54dbfd(0x200)+_0x558e9b+_0x54dbfd(0x1e7)+_0x2e1619+_0x54dbfd(0x1e2):_0x54dbfd(0x1e5)+_0x558e9b+'\x0a'+_0x2e1619+_0x54dbfd(0x21f);}[_0xa7ceb3(0x1d7)](_0x4efcee){const _0x2d08f5=_0xa7ceb3;if(/^anthropic\.claude/[_0x2d08f5(0x1f9)](_0x4efcee))return _0x2d08f5(0x1d5);if(/^ai21\.j2/[_0x2d08f5(0x1f9)](_0x4efcee))return _0x2d08f5(0x1e9);if(/^cohere\.command/[_0x2d08f5(0x1f9)](_0x4efcee))return _0x2d08f5(0x1f8);if(/^meta\.llama/[_0x2d08f5(0x1f9)](_0x4efcee))return _0x2d08f5(0x1f6);throw new _0x16494e(_0x34c383(this[_0x2d08f5(0x1ff)][_0x2d08f5(0x1e3)],_0x2d08f5(0x214),_0x4efcee));}async[_0xa7ceb3(0x1f0)](_0x4e53d0,_0x3726e9,_0x477ae9,_0x38da97,_0x15c382){const _0x373bf7=_0xa7ceb3,_0x40fcdc={'method':_0x373bf7(0x1e1),'headers':await this[_0x373bf7(0x203)](this[_0x373bf7(0x1f7)],_0x15c382),'body':JSON[_0x373bf7(0x1dd)]({..._0x4e53d0,'model':_0x3726e9,'stream':_0x477ae9}),'signal':this[_0x373bf7(0x221)][_0x373bf7(0x21a)]},_0x53cda8=await fetch(this[_0x373bf7(0x21b)],_0x40fcdc);_0x477ae9?await this[_0x373bf7(0x1fc)](_0x53cda8,_0x3726e9,_0x38da97):await this[_0x373bf7(0x1df)](_0x53cda8,_0x3726e9,_0x38da97);}async[_0xa7ceb3(0x1e6)](_0x532205,_0x4d2e44,_0x9eb82e,_0x12ff2a){const _0x123632=_0xa7ceb3,_0x2282bf=new _0x508a74(this[_0x123632(0x201)]),_0x26773e={'body':JSON[_0x123632(0x1dd)](_0x532205),'contentType':_0x123632(0x1f2),'accept':_0x123632(0x1f2),'modelId':_0x4d2e44};let _0x1fca21;if(_0x9eb82e){const _0x5e9f3c=new _0x28ae6c(_0x26773e);_0x1fca21=await _0x2282bf[_0x123632(0x1d4)](_0x5e9f3c,{'abortSignal':this[_0x123632(0x221)][_0x123632(0x21a)]}),await this[_0x123632(0x21c)](_0x1fca21,_0x4d2e44,_0x12ff2a);}else{const _0x27dc19=new _0x43fc83(_0x26773e);_0x1fca21=await _0x2282bf[_0x123632(0x1d4)](_0x27dc19,{'abortSignal':this[_0x123632(0x221)][_0x123632(0x21a)]}),await this[_0x123632(0x1df)](_0x1fca21,_0x4d2e44,_0x12ff2a);}}async[_0xa7ceb3(0x21c)](_0x2b8b5f,_0x12469a,_0x4c9d9c){const _0x1dba71=_0xa7ceb3,_0x1965e1=_0x2b8b5f[_0x1dba71(0x223)],_0x2dcbc1=new TextDecoder(_0x1dba71(0x1ea));let _0x1eb64e='';for await(const _0x59f7be of _0x1965e1)if(_0x59f7be[_0x1dba71(0x1ed)]){const _0xc117bb=_0x2dcbc1[_0x1dba71(0x216)](_0x59f7be[_0x1dba71(0x1ed)][_0x1dba71(0x1d1)]),_0x97602=JSON[_0x1dba71(0x20d)](_0xc117bb);_0x1eb64e+=this[_0x1dba71(0x21e)](_0x97602,_0x12469a),_0x4c9d9c(_0x1eb64e);}return Promise[_0x1dba71(0x204)]();}async[_0xa7ceb3(0x1fc)](_0x1669a1,_0x2a7f1d,_0x27b366){const _0x444f63=_0xa7ceb3,_0x2eb41e=_0x1669a1[_0x444f63(0x223)],_0x38f6fe=new TextDecoder(_0x444f63(0x1ea)),_0x425cbc=_0x2eb41e[_0x444f63(0x1d2)]();let _0x39acd0='',_0x457294='',_0x4117b9=!0x1;for(;!_0x4117b9;){const {done:_0x488d09,value:_0x1368eb}=await _0x425cbc[_0x444f63(0x208)]();if(_0x4117b9=_0x488d09,_0x4117b9)break;const _0x36bdf9=(_0x39acd0+_0x38f6fe[_0x444f63(0x216)](_0x1368eb))[_0x444f63(0x1dc)]('\x0a')[_0x444f63(0x1f1)](_0x1fd247=>{const _0x187ac9=_0x444f63;try{return _0x39acd0='',JSON[_0x187ac9(0x20d)](_0x1fd247);}catch(_0x218128){return _0x39acd0=_0x1fd247,null;}})[_0x444f63(0x1f5)](_0x1dbe5e=>null!==_0x1dbe5e);_0x36bdf9[_0x444f63(0x1d9)]&&(_0x457294+=_0x36bdf9[_0x444f63(0x1f1)](_0x468565=>this[_0x444f63(0x21e)](_0x468565,_0x2a7f1d))[_0x444f63(0x219)](''),_0x27b366(_0x457294));}return Promise[_0x444f63(0x204)]();}async[_0xa7ceb3(0x1df)](_0x5d9a3e,_0x82750e,_0x20a1bc){const _0x26f1e5=_0xa7ceb3;let _0x5eaa97;return _0x5eaa97=_0x5d9a3e instanceof Response?await _0x5d9a3e[_0x26f1e5(0x21d)]():JSON[_0x26f1e5(0x20d)](Buffer[_0x26f1e5(0x205)](_0x5d9a3e[_0x26f1e5(0x223)])[_0x26f1e5(0x20a)](_0x26f1e5(0x222))),(_0x20a1bc(this[_0x26f1e5(0x21e)](_0x5eaa97,_0x82750e)),Promise[_0x26f1e5(0x204)]());}[_0xa7ceb3(0x21e)](_0xb6c86a,_0x31d7f1){const _0xc83c73=_0xa7ceb3;switch(this[_0xc83c73(0x1d7)](_0x31d7f1)){case _0xc83c73(0x1d5):return _0xb6c86a[_0xc83c73(0x1f3)];case _0xc83c73(0x1e9):return _0xb6c86a[_0xc83c73(0x1fd)][0x0][_0xc83c73(0x20f)][_0xc83c73(0x1e4)];case _0xc83c73(0x1f8):return _0xb6c86a[_0xc83c73(0x209)][0x0][_0xc83c73(0x1e4)];case _0xc83c73(0x1f6):return _0xb6c86a[_0xc83c73(0x1d3)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2c737f=_0x4045;(function(_0x2906a8,_0x203a45){const _0x4e47d5=_0x4045,_0xb5850=_0x2906a8();while(!![]){try{const _0x5e40d6=parseInt(_0x4e47d5(0xe9))/0x1*(-parseInt(_0x4e47d5(0xed))/0x2)+-parseInt(_0x4e47d5(0xd7))/0x3*(parseInt(_0x4e47d5(0xee))/0x4)+-parseInt(_0x4e47d5(0xce))/0x5+-parseInt(_0x4e47d5(0xe0))/0x6+-parseInt(_0x4e47d5(0xd0))/0x7*(-parseInt(_0x4e47d5(0xd6))/0x8)+parseInt(_0x4e47d5(0xe2))/0x9*(parseInt(_0x4e47d5(0x10c))/0xa)+parseInt(_0x4e47d5(0xe7))/0xb;if(_0x5e40d6===_0x203a45)break;else _0xb5850['push'](_0xb5850['shift']());}catch(_0x2cde03){_0xb5850['push'](_0xb5850['shift']());}}}(_0xc695,0xaf0c6));function _0x4045(_0x9f3cec,_0x151901){const _0xc69572=_0xc695();return _0x4045=function(_0x404528,_0x5bc29f){_0x404528=_0x404528-0xcd;let _0x5b25ab=_0xc69572[_0x404528];return _0x5b25ab;},_0x4045(_0x9f3cec,_0x151901);}import{default as _0x5b5bcf}from'./aitextadapter.js';function _0xc695(){const _0x11ac04=['6077856dlvNRy','_prepareRequestHeaders','802593vFxkiQ','prepareMessages','context_length_exceeded','length','pluginName','55201047HqwYHY','data:\x20','3LFtOWO','filter','_apiUrl','json','938130EotlWD','588eFKtqf','decode','define','_requestHeaders','map','Moderation','_readStaticResponse','read','message','ai.openAI.requestHeaders','getReader','config','gpt-3.5-turbo','_isBufferIncomplete','ai.openAI.apiUrl','content','[DONE]','_requestParameters','system','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.','sendRequest','AI_ERROR_CONTEXT_LENGTH','replace','Instruction:\x0a','reject','_prepareRequestParameters','_readStreamableResponse','get','abortController','locale','10dGYkYc','_cleanUpData','POST','choices','stringify','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','ai.openAI.requestParameters','text','includes','4762130Vqwcnh','OpenAITextAdapter','2611YIuPQU','body','split','https://api.openai.com/v1/chat/completions','user','signal','1024hYbBct','21747pfLRnO','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.','delta','AI_ERROR_MODERATION','editor','resolve','parse','join','stream'];_0xc695=function(){return _0x11ac04;};return _0xc695();}import{AIRequestError as _0x42fb60}from'./aiadapter.js';import{getTranslation as _0x654d47}from'../utils/common-translations.js';export default class F extends _0x5b5bcf{static get[_0x2c737f(0xe6)](){const _0x5e8d37=_0x2c737f;return _0x5e8d37(0xcf);}constructor(_0x5757fb){const _0x24b87e=_0x2c737f;super(_0x5757fb),_0x5757fb[_0x24b87e(0xf9)][_0x24b87e(0xf0)](_0x24b87e(0xfc),_0x24b87e(0xd3)),_0x5757fb[_0x24b87e(0xf9)][_0x24b87e(0x109)](_0x24b87e(0x112))||_0x5757fb[_0x24b87e(0xf9)][_0x24b87e(0xf0)](_0x24b87e(0x112),{'model':_0x24b87e(0xfa),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x24b87e(0xeb)]=_0x5757fb[_0x24b87e(0xf9)][_0x24b87e(0x109)](_0x24b87e(0xfc)),this[_0x24b87e(0xf1)]=_0x5757fb[_0x24b87e(0xf9)][_0x24b87e(0x109)](_0x24b87e(0xf7))||{},this[_0x24b87e(0xff)]=_0x5757fb[_0x24b87e(0xf9)][_0x24b87e(0x109)](_0x24b87e(0x112));}async[_0x2c737f(0x102)]({query:_0xb94427,context:_0x3686fb,onData:_0x3a70e5,actionId:_0x3b12f6}){const _0x539428=_0x2c737f,_0x56980f=this[_0x539428(0xdb)][_0x539428(0x10b)],_0x573f80=await this[_0x539428(0xe3)](_0xb94427,_0x3686fb,_0x3b12f6),_0x191b85=await this[_0x539428(0xe1)](this[_0x539428(0xf1)],_0x3b12f6),_0x540a5a=await this[_0x539428(0x107)](this[_0x539428(0xff)],_0x3b12f6),_0x5d7f1c={'messages':_0x573f80,..._0x540a5a},_0x14cf37={'method':_0x539428(0x10e),'headers':_0x191b85,'body':JSON[_0x539428(0x110)](_0x5d7f1c),'signal':this[_0x539428(0x10a)][_0x539428(0xd5)]},_0x473538=await fetch(this[_0x539428(0xeb)],_0x14cf37);if(_0x473538['ok'])return _0x540a5a[_0x539428(0xdf)]?await this[_0x539428(0x108)](_0x473538,_0x3a70e5):await this[_0x539428(0xf4)](_0x473538,_0x3a70e5),Promise[_0x539428(0xdc)]();{const _0x461f4f=await _0x473538[_0x539428(0x113)]();return _0x461f4f[_0x539428(0xcd)](_0x539428(0xe4))?Promise[_0x539428(0x106)](new _0x42fb60(_0x654d47(_0x56980f,_0x539428(0x103)))):_0x461f4f[_0x539428(0xcd)](_0x539428(0xf3))?Promise[_0x539428(0x106)](new _0x42fb60(_0x654d47(_0x56980f,_0x539428(0xda)))):Promise[_0x539428(0x106)](new Error(_0x461f4f));}}async[_0x2c737f(0xe3)](_0xb4e7db,_0x182b25,_0x65f967){const _0x115172=_0x2c737f;let _0x2a7f26,_0x136491;return _0x182b25?(_0x2a7f26=_0x115172(0x101),_0x136491=_0x115172(0x105)+_0xb4e7db+_0x115172(0x111)+_0x182b25):(_0x2a7f26=_0x115172(0xd8),_0x136491=_0xb4e7db),[{'role':_0x115172(0x100),'content':_0x2a7f26},{'role':_0x115172(0xd4),'content':_0x136491}];}async[_0x2c737f(0x108)](_0x43d772,_0x3da834){const _0x36ac07=_0x2c737f,_0x2ce7bc=_0x43d772[_0x36ac07(0xd1)][_0x36ac07(0xf8)](),_0x333ea9=new TextDecoder();let _0x5eeefb='',_0x480a38='',_0x3f094d='',_0x48ad1d=!0x1;for(;!_0x48ad1d;){const {done:_0x54eded,value:_0x2cdbba}=await _0x2ce7bc[_0x36ac07(0xf5)](),_0x151d3=_0x5eeefb+_0x333ea9[_0x36ac07(0xef)](_0x2cdbba);let _0x5980c5='';_0x48ad1d=_0x54eded;try{_0x5980c5=this[_0x36ac07(0x10d)](_0x151d3),_0x5eeefb='';}catch(_0x7733a5){_0x5eeefb=_0x151d3;continue;}_0x480a38+=_0x5980c5,!_0x48ad1d&&this[_0x36ac07(0xfb)](_0x480a38)||_0x480a38&&(_0x3f094d+=_0x480a38,_0x480a38='',_0x3da834(_0x3f094d));}return Promise[_0x36ac07(0xdc)]();}async[_0x2c737f(0xf4)](_0x1481f8,_0x1e783c){const _0x1309fb=_0x2c737f;return _0x1e783c((await _0x1481f8[_0x1309fb(0xec)]())[_0x1309fb(0x10f)][0x0][_0x1309fb(0xf6)][_0x1309fb(0xfd)]),Promise[_0x1309fb(0xdc)]();}[_0x2c737f(0xfb)](_0x586654){const _0x2132bd=_0x2c737f,_0x528b15=_0x586654[_0x2132bd(0xd2)]('<')[_0x2132bd(0xe5)]!==_0x586654[_0x2132bd(0xd2)]('>')[_0x2132bd(0xe5)],_0x324676=_0x586654[_0x2132bd(0xe5)]<0x1e;return _0x528b15&&_0x324676;}[_0x2c737f(0x10d)](_0x1caaec){const _0x229009=_0x2c737f;return _0x1caaec[_0x229009(0xd2)](/\n(?![^{]*\})/g)[_0x229009(0xf2)](_0x2f3c07=>_0x2f3c07[_0x229009(0x104)](_0x229009(0xe8),''))[_0x229009(0xea)](_0x58bcec=>_0x58bcec&&_0x58bcec[_0x229009(0xe5)]>0x0&&_0x229009(0xfe)!==_0x58bcec)[_0x229009(0xf2)](_0x10fe91=>{const _0x144c16=_0x229009,{choices:_0x47a9ce}=JSON[_0x144c16(0xdd)](_0x10fe91);if(_0x47a9ce[0x0]&&_0x47a9ce[0x0][_0x144c16(0xd9)]&&_0x47a9ce[0x0][_0x144c16(0xd9)][_0x144c16(0xfd)])return _0x47a9ce[0x0][_0x144c16(0xd9)][_0x144c16(0xfd)];})[_0x229009(0xea)](_0x65683e=>_0x65683e)[_0x229009(0xde)]('');}}
|
package/src/aiassistant.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x3010(_0x37a7cf,_0x326418){const _0x135bc0=_0x135b();return _0x3010=function(_0x30104e,_0x2298e9){_0x30104e=_0x30104e-0xa2;let _0x2c0eab=_0x135bc0[_0x30104e];return _0x2c0eab;},_0x3010(_0x37a7cf,_0x326418);}const _0xc5c0b0=_0x3010;(function(_0xef22b5,_0x56bf44){const _0xea8bc2=_0x3010,_0x590da1=_0xef22b5();while(!![]){try{const _0x41c3c8=-parseInt(_0xea8bc2(0xf9))/0x1*(-parseInt(_0xea8bc2(0xa4))/0x2)+-parseInt(_0xea8bc2(0xd3))/0x3+parseInt(_0xea8bc2(0x117))/0x4*(parseInt(_0xea8bc2(0xc8))/0x5)+-parseInt(_0xea8bc2(0xea))/0x6*(-parseInt(_0xea8bc2(0xd2))/0x7)+parseInt(_0xea8bc2(0xa5))/0x8+-parseInt(_0xea8bc2(0xfe))/0x9*(parseInt(_0xea8bc2(0x101))/0xa)+parseInt(_0xea8bc2(0xb4))/0xb;if(_0x41c3c8===_0x56bf44)break;else _0x590da1['push'](_0x590da1['shift']());}catch(_0x12f56d){_0x590da1['push'](_0x590da1['shift']());}}}(_0x135b,0x7b61a));import{CKEditorError as _0x3446cd}from'ckeditor5/src/utils.js';import{Plugin as _0x5cb1c6}from'ckeditor5/src/core.js';import _0xd4cd52 from'./aiassistantui.js';import _0x226031 from'./aiassistantediting.js';import{getTranslation as _0x277837}from'./utils/common-translations.js';export default class r extends _0x5cb1c6{static get[_0xc5c0b0(0x10b)](){return[_0xd4cd52,_0x226031];}static get[_0xc5c0b0(0xae)](){const _0x201377=_0xc5c0b0;return _0x201377(0xff);}constructor(_0x3e7871){const _0x1775da=_0xc5c0b0;super(_0x3e7871);const _0x10474b=_0x3e7871[_0x1775da(0xa2)];_0x10474b[_0x1775da(0x107)](_0x1775da(0xee),getDefaultCommands(_0x3e7871[_0x1775da(0xfa)])),_0x10474b[_0x1775da(0x107)](_0x1775da(0xdc),[]),_0x10474b[_0x1775da(0x107)](_0x1775da(0x108),[]);const _0x4e32ad=_0x10474b[_0x1775da(0x10f)](_0x1775da(0xee)),_0x54d488=_0x10474b[_0x1775da(0x10f)](_0x1775da(0xdc)),_0x519644=_0x10474b[_0x1775da(0x10f)](_0x1775da(0x108));_0x54d488[_0x1775da(0xc0)](_0x304543=>{const _0x3bfa79=_0x1775da,_0x236aa9=_0x4e32ad[_0x3bfa79(0xf3)](_0x48524e=>_0x48524e[_0x3bfa79(0xcc)]===_0x304543[_0x3bfa79(0xcc)]);_0x236aa9?_0x236aa9[_0x3bfa79(0xf7)]=_0x236aa9[_0x3bfa79(0xf7)][_0x3bfa79(0xb1)](_0x304543[_0x3bfa79(0xf7)]):_0x4e32ad[_0x3bfa79(0xa3)](_0x304543);}),_0x4e32ad[_0x1775da(0xc0)](_0x2b8c83=>{const _0x24702f=_0x1775da;_0x2b8c83[_0x24702f(0xf7)]=_0x2b8c83[_0x24702f(0xf7)][_0x24702f(0xeb)](_0x4dbe73=>!_0x519644[_0x24702f(0xcb)](_0x4dbe73['id']));}),_0x10474b[_0x1775da(0xe1)](_0x1775da(0xee),_0x4e32ad);}[_0xc5c0b0(0x104)](){const _0x564cac=_0xc5c0b0,_0x21f9a9=this[_0x564cac(0x100)];this[_0x564cac(0xb7)]=_0x21f9a9[_0x564cac(0xa2)][_0x564cac(0x10f)](_0x564cac(0xb7)),this[_0x564cac(0xaa)]=setInterval(()=>{const _0x1f0e5f=_0x564cac;let _0x360689;for(const _0x1b03df in _0x21f9a9){const _0x45a726=_0x1b03df,_0x5ab9fd=_0x21f9a9[_0x45a726];if(_0x1f0e5f(0x115)===_0x5ab9fd||_0x1f0e5f(0x110)===_0x5ab9fd||_0x1f0e5f(0xc1)===_0x5ab9fd||_0x1f0e5f(0xf6)===_0x5ab9fd){delete _0x21f9a9[_0x45a726],_0x360689=_0x5ab9fd;break;}}if(_0x1f0e5f(0x110)===_0x360689)throw clearInterval(this[_0x1f0e5f(0xaa)]),new _0x3446cd(_0x1f0e5f(0xbb),null);if(_0x1f0e5f(0x115)===_0x360689&&console[_0x1f0e5f(0xa7)](_0x1f0e5f(0xbd)),_0x1f0e5f(0xf6)===_0x360689)throw clearInterval(this[_0x1f0e5f(0xaa)]),new _0x3446cd(_0x1f0e5f(0xf5),null);_0x1f0e5f(0xc1)===_0x360689&&clearInterval(this[_0x1f0e5f(0xaa)]);},0x3e8);}[_0xc5c0b0(0xd9)](){const _0x3ad45a=_0xc5c0b0;this[_0x3ad45a(0xaa)]&&clearInterval(this[_0x3ad45a(0xaa)]);}}export function getDefaultCommands(_0x16b1f2){const _0x2c0272=_0xc5c0b0;return[{'groupId':_0x2c0272(0x116),'groupLabel':_0x277837(_0x16b1f2,_0x2c0272(0xe6)),'commands':[{'id':_0x2c0272(0xe4),'label':_0x277837(_0x16b1f2,_0x2c0272(0xa9)),'prompt':_0x2c0272(0x106)},{'id':_0x2c0272(0x119),'label':_0x277837(_0x16b1f2,_0x2c0272(0xc6)),'prompt':_0x2c0272(0xba)},{'id':_0x2c0272(0xde),'label':_0x277837(_0x16b1f2,_0x2c0272(0xac)),'prompt':_0x2c0272(0xc4)},{'id':_0x2c0272(0xb5),'label':_0x277837(_0x16b1f2,_0x2c0272(0xc5)),'prompt':_0x2c0272(0x118)}]},{'groupId':_0x2c0272(0x112),'groupLabel':_0x277837(_0x16b1f2,_0x2c0272(0xe3)),'commands':[{'id':_0x2c0272(0xc3),'label':_0x277837(_0x16b1f2,_0x2c0272(0xe5)),'prompt':_0x2c0272(0x103)},{'id':_0x2c0272(0xef),'label':_0x277837(_0x16b1f2,_0x2c0272(0xb8)),'prompt':_0x2c0272(0xe2)}]},{'groupId':_0x2c0272(0x114),'groupLabel':_0x277837(_0x16b1f2,_0x2c0272(0xdd)),'commands':[{'id':_0x2c0272(0xab),'label':_0x277837(_0x16b1f2,_0x2c0272(0x109)),'prompt':_0x2c0272(0xe8)},{'id':_0x2c0272(0x113),'label':_0x277837(_0x16b1f2,_0x2c0272(0xdb)),'prompt':_0x2c0272(0xd5)},{'id':_0x2c0272(0x105),'label':_0x277837(_0x16b1f2,_0x2c0272(0xaf)),'prompt':_0x2c0272(0x10e)},{'id':_0x2c0272(0xa6),'label':_0x277837(_0x16b1f2,_0x2c0272(0xb2)),'prompt':_0x2c0272(0x10c)},{'id':_0x2c0272(0xf8),'label':_0x277837(_0x16b1f2,_0x2c0272(0xf1)),'prompt':_0x2c0272(0xfb)}]},{'groupId':_0x2c0272(0xd8),'groupLabel':_0x277837(_0x16b1f2,_0x2c0272(0xe7)),'commands':[{'id':_0x2c0272(0x11b),'label':_0x277837(_0x16b1f2,_0x2c0272(0xad)),'prompt':_0x2c0272(0xed)},{'id':_0x2c0272(0xb3),'label':_0x277837(_0x16b1f2,_0x2c0272(0x10a)),'prompt':_0x2c0272(0x11a)},{'id':_0x2c0272(0x10d),'label':_0x277837(_0x16b1f2,_0x2c0272(0xb9)),'prompt':_0x2c0272(0xce)},{'id':_0x2c0272(0xec),'label':_0x277837(_0x16b1f2,_0x2c0272(0xfc)),'prompt':_0x2c0272(0xcd)}]},{'groupId':_0x2c0272(0xc7),'groupLabel':_0x277837(_0x16b1f2,_0x2c0272(0xb0)),'commands':[{'id':_0x2c0272(0x111),'label':_0x277837(_0x16b1f2,_0x2c0272(0xf2),[_0x277837(_0x16b1f2,_0x2c0272(0xda))]),'prompt':_0x2c0272(0xd0)},{'id':_0x2c0272(0xf4),'label':_0x277837(_0x16b1f2,_0x2c0272(0xf2),[_0x277837(_0x16b1f2,_0x2c0272(0xfd))]),'prompt':_0x2c0272(0xbf)},{'id':_0x2c0272(0xc9),'label':_0x277837(_0x16b1f2,_0x2c0272(0xf2),[_0x277837(_0x16b1f2,_0x2c0272(0xd4))]),'prompt':_0x2c0272(0xe0)},{'id':_0x2c0272(0x11c),'label':_0x277837(_0x16b1f2,_0x2c0272(0xf2),[_0x277837(_0x16b1f2,_0x2c0272(0x102))]),'prompt':_0x2c0272(0xcf)},{'id':_0x2c0272(0xd7),'label':_0x277837(_0x16b1f2,_0x2c0272(0xf2),[_0x277837(_0x16b1f2,_0x2c0272(0xa8))]),'prompt':_0x2c0272(0xca)},{'id':_0x2c0272(0xf0),'label':_0x277837(_0x16b1f2,_0x2c0272(0xf2),[_0x277837(_0x16b1f2,_0x2c0272(0xb6))]),'prompt':_0x2c0272(0xbe)},{'id':_0x2c0272(0xe9),'label':_0x277837(_0x16b1f2,_0x2c0272(0xf2),[_0x277837(_0x16b1f2,_0x2c0272(0xdf))]),'prompt':_0x2c0272(0xbc)},{'id':_0x2c0272(0xd6),'label':_0x277837(_0x16b1f2,_0x2c0272(0xf2),[_0x277837(_0x16b1f2,_0x2c0272(0xc2))]),'prompt':_0x2c0272(0xd1)}]}];}function _0x135b(){const _0x3a7202=['Translate\x20the\x20content\x20to\x20German\x20language.','Translate\x20the\x20content\x20to\x20English\x20language.','Translate\x20the\x20content\x20to\x20Arabic\x20language.','483aFnjbQ','1452564jdeTwa','Portuguese','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','translateArabic','translateFrench','changeStyle','destroy','English','Casual','ai.aiAssistant.extraCommandGroups','Change\x20tone','makeLonger','Hindi','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','set','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Generate\x20from\x20selection','improveWriting','Summarize','Edit\x20or\x20review','Change\x20style','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','translateHindi','61422LYWZYw','filter','poetic','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','ai.aiAssistant.commands','continue','translateChinese','Friendly','Translate\x20to\x20%0','find','translateSpanish','ai-trial-license-key-reached-limit-changes','aiLicenseKeyTrialLimit:operations','commands','friendly','1QJFPwh','locale','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Poetic','Spanish','432936fDUtCO','AIAssistant','editor','210Pvrqxc','German','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','init','direct','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','define','ai.aiAssistant.removeCommands','Professional','Legal','requires','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','journalism','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','get','aiLicenseKeyInvalid','translateEnglish','generate','casual','changeTone','aiLicenseKeyTrial','editOrReview','1461988YhmJip','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','makeShorter','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','business','translateGerman','config','push','850956nPTVWU','3306408drEmXS','confident','info','French','Improve\x20writing','_licenseKeyCheckInterval','professional','Make\x20longer','Business','pluginName','Direct','Translate','concat','Confident','legal','980243KMWJAu','simplifyLanguage','Simplified\x20Chinese','licenseKey','Continue','Journalism','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','ai-invalid-license-key','Translate\x20the\x20content\x20to\x20Hindi\x20language.','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20ai\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','forEach','aiLicenseKeyValid','Arabic','summarize','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Simplify\x20language','Make\x20shorter','translate','5zNgjVR','translatePortuguese','Translate\x20the\x20content\x20to\x20French\x20language.','includes','groupId','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.'];_0x135b=function(){return _0x3a7202;};return _0x135b();}
|
|
23
|
+
const _0x5c212b=_0x265a;(function(_0x475395,_0x24c61e){const _0x4b637d=_0x265a,_0x46c9de=_0x475395();while(!![]){try{const _0x5728b5=parseInt(_0x4b637d(0x12b))/0x1+parseInt(_0x4b637d(0x154))/0x2*(-parseInt(_0x4b637d(0x171))/0x3)+-parseInt(_0x4b637d(0x11c))/0x4*(parseInt(_0x4b637d(0x10f))/0x5)+-parseInt(_0x4b637d(0x10a))/0x6+-parseInt(_0x4b637d(0x145))/0x7+-parseInt(_0x4b637d(0x164))/0x8+parseInt(_0x4b637d(0x111))/0x9;if(_0x5728b5===_0x24c61e)break;else _0x46c9de['push'](_0x46c9de['shift']());}catch(_0x754008){_0x46c9de['push'](_0x46c9de['shift']());}}}(_0x52d5,0x1c2c4));import{CKEditorError as _0x4e4c07}from'ckeditor5/src/utils.js';import{Plugin as _0x29aa35}from'ckeditor5/src/core.js';import _0x5156a9 from'./aiassistantui.js';import _0x4f6769 from'./aiassistantediting.js';function _0x52d5(){const _0x2ccc6d=['Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20ai\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','ai.aiAssistant.commands','makeLonger','casual','Translate\x20the\x20content\x20to\x20Spanish\x20language.','improveWriting','Summarize','direct','ai-invalid-license-key','4hlvLFb','Professional','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','English','friendly','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Legal','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','pluginName','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','translatePortuguese','poetic','aiLicenseKeyTrialLimit:operations','127544mmTnRU','changeStyle','translateHindi','Change\x20tone','Translate\x20the\x20content\x20to\x20English\x20language.','Translate\x20the\x20content\x20to\x20French\x20language.','French','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','editor','Make\x20longer','includes','Continue','translateArabic','Journalism','journalism','Confident','destroy','Translate\x20the\x20content\x20to\x20German\x20language.','define','ai.aiAssistant.extraCommandGroups','filter','Poetic','init','locale','ai-trial-license-key-reached-limit-changes','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','65590USnZrA','confident','Hindi','Friendly','German','concat','push','Make\x20shorter','commands','Spanish','groupId','config','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','find','translateEnglish','2302DTmpQs','forEach','Change\x20style','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','continue','licenseKey','Translate\x20the\x20content\x20to\x20Hindi\x20language.','makeShorter','Business','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','legal','editOrReview','info','summarize','Simplify\x20language','aiLicenseKeyTrial','873776vskEvH','simplifyLanguage','translateGerman','Improve\x20writing','Portuguese','_licenseKeyCheckInterval','translateChinese','Translate','aiLicenseKeyInvalid','AIAssistant','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','ai.aiAssistant.removeCommands','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','234gTwVPo','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Generate\x20from\x20selection','Edit\x20or\x20review','translateFrench','Translate\x20to\x20%0','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','requires','get','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','set','professional','Casual','Direct','changeTone','Arabic','Simplified\x20Chinese','business','1180728ezloHT','aiLicenseKeyValid','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','translateSpanish','translate','741820RLinYU','generate','4872366ADcfmg'];_0x52d5=function(){return _0x2ccc6d;};return _0x52d5();}import{getTranslation as _0x35e26f}from'./utils/common-translations.js';export default class r extends _0x29aa35{static get[_0x5c212b(0x178)](){return[_0x5156a9,_0x4f6769];}static get[_0x5c212b(0x125)](){const _0x1f30ac=_0x5c212b;return _0x1f30ac(0x16d);}constructor(_0x293d8c){const _0x3a800a=_0x5c212b;super(_0x293d8c);const _0x34496f=_0x293d8c[_0x3a800a(0x150)];_0x34496f[_0x3a800a(0x13d)](_0x3a800a(0x114),getDefaultCommands(_0x293d8c[_0x3a800a(0x142)])),_0x34496f[_0x3a800a(0x13d)](_0x3a800a(0x13e),[]),_0x34496f[_0x3a800a(0x13d)](_0x3a800a(0x16f),[]);const _0x31d1a5=_0x34496f[_0x3a800a(0x179)](_0x3a800a(0x114)),_0x9dd930=_0x34496f[_0x3a800a(0x179)](_0x3a800a(0x13e)),_0x1ceec6=_0x34496f[_0x3a800a(0x179)](_0x3a800a(0x16f));_0x9dd930[_0x3a800a(0x155)](_0x3450f9=>{const _0x2fe1b8=_0x3a800a,_0x49b3c1=_0x31d1a5[_0x2fe1b8(0x152)](_0x1c8b7d=>_0x1c8b7d[_0x2fe1b8(0x14f)]===_0x3450f9[_0x2fe1b8(0x14f)]);_0x49b3c1?_0x49b3c1[_0x2fe1b8(0x14d)]=_0x49b3c1[_0x2fe1b8(0x14d)][_0x2fe1b8(0x14a)](_0x3450f9[_0x2fe1b8(0x14d)]):_0x31d1a5[_0x2fe1b8(0x14b)](_0x3450f9);}),_0x31d1a5[_0x3a800a(0x155)](_0x1d557f=>{const _0x3b5f22=_0x3a800a;_0x1d557f[_0x3b5f22(0x14d)]=_0x1d557f[_0x3b5f22(0x14d)][_0x3b5f22(0x13f)](_0x2c264c=>!_0x1ceec6[_0x3b5f22(0x135)](_0x2c264c['id']));}),_0x34496f[_0x3a800a(0x17b)](_0x3a800a(0x114),_0x31d1a5);}[_0x5c212b(0x141)](){const _0x3bc1d8=_0x5c212b,_0x524aa0=this[_0x3bc1d8(0x133)];this[_0x3bc1d8(0x159)]=_0x524aa0[_0x3bc1d8(0x150)][_0x3bc1d8(0x179)](_0x3bc1d8(0x159)),this[_0x3bc1d8(0x169)]=setInterval(()=>{const _0x4941d5=_0x3bc1d8;let _0x3bb49c;for(const _0x2c486c in _0x524aa0){const _0x17223a=_0x2c486c,_0x47d45d=_0x524aa0[_0x17223a];if(_0x4941d5(0x163)===_0x47d45d||_0x4941d5(0x16c)===_0x47d45d||_0x4941d5(0x10b)===_0x47d45d||_0x4941d5(0x12a)===_0x47d45d){delete _0x524aa0[_0x17223a],_0x3bb49c=_0x47d45d;break;}}if(_0x4941d5(0x16c)===_0x3bb49c)throw clearInterval(this[_0x4941d5(0x169)]),new _0x4e4c07(_0x4941d5(0x11b),null);if(_0x4941d5(0x163)===_0x3bb49c&&console[_0x4941d5(0x160)](_0x4941d5(0x113)),_0x4941d5(0x12a)===_0x3bb49c)throw clearInterval(this[_0x4941d5(0x169)]),new _0x4e4c07(_0x4941d5(0x143),null);_0x4941d5(0x10b)===_0x3bb49c&&clearInterval(this[_0x4941d5(0x169)]);},0x3e8);}[_0x5c212b(0x13b)](){const _0x5840ae=_0x5c212b;this[_0x5840ae(0x169)]&&clearInterval(this[_0x5840ae(0x169)]);}}function _0x265a(_0x1ea077,_0x5e26ea){const _0x52d53e=_0x52d5();return _0x265a=function(_0x265a38,_0x1f53a3){_0x265a38=_0x265a38-0x104;let _0x36ca62=_0x52d53e[_0x265a38];return _0x36ca62;},_0x265a(_0x1ea077,_0x5e26ea);}export function getDefaultCommands(_0x30980e){const _0x4cb612=_0x5c212b;return[{'groupId':_0x4cb612(0x15f),'groupLabel':_0x35e26f(_0x30980e,_0x4cb612(0x174)),'commands':[{'id':_0x4cb612(0x118),'label':_0x35e26f(_0x30980e,_0x4cb612(0x167)),'prompt':_0x4cb612(0x10c)},{'id':_0x4cb612(0x15b),'label':_0x35e26f(_0x30980e,_0x4cb612(0x14c)),'prompt':_0x4cb612(0x17a)},{'id':_0x4cb612(0x115),'label':_0x35e26f(_0x30980e,_0x4cb612(0x134)),'prompt':_0x4cb612(0x170)},{'id':_0x4cb612(0x165),'label':_0x35e26f(_0x30980e,_0x4cb612(0x162)),'prompt':_0x4cb612(0x112)}]},{'groupId':_0x4cb612(0x110),'groupLabel':_0x35e26f(_0x30980e,_0x4cb612(0x173)),'commands':[{'id':_0x4cb612(0x161),'label':_0x35e26f(_0x30980e,_0x4cb612(0x119)),'prompt':_0x4cb612(0x11f)},{'id':_0x4cb612(0x158),'label':_0x35e26f(_0x30980e,_0x4cb612(0x136)),'prompt':_0x4cb612(0x127)}]},{'groupId':_0x4cb612(0x106),'groupLabel':_0x35e26f(_0x30980e,_0x4cb612(0x12e)),'commands':[{'id':_0x4cb612(0x17c),'label':_0x35e26f(_0x30980e,_0x4cb612(0x11d)),'prompt':_0x4cb612(0x157)},{'id':_0x4cb612(0x116),'label':_0x35e26f(_0x30980e,_0x4cb612(0x104)),'prompt':_0x4cb612(0x132)},{'id':_0x4cb612(0x11a),'label':_0x35e26f(_0x30980e,_0x4cb612(0x105)),'prompt':_0x4cb612(0x177)},{'id':_0x4cb612(0x146),'label':_0x35e26f(_0x30980e,_0x4cb612(0x13a)),'prompt':_0x4cb612(0x11e)},{'id':_0x4cb612(0x121),'label':_0x35e26f(_0x30980e,_0x4cb612(0x148)),'prompt':_0x4cb612(0x15d)}]},{'groupId':_0x4cb612(0x12c),'groupLabel':_0x35e26f(_0x30980e,_0x4cb612(0x156)),'commands':[{'id':_0x4cb612(0x109),'label':_0x35e26f(_0x30980e,_0x4cb612(0x15c)),'prompt':_0x4cb612(0x16e)},{'id':_0x4cb612(0x15e),'label':_0x35e26f(_0x30980e,_0x4cb612(0x123)),'prompt':_0x4cb612(0x172)},{'id':_0x4cb612(0x139),'label':_0x35e26f(_0x30980e,_0x4cb612(0x138)),'prompt':_0x4cb612(0x124)},{'id':_0x4cb612(0x129),'label':_0x35e26f(_0x30980e,_0x4cb612(0x140)),'prompt':_0x4cb612(0x151)}]},{'groupId':_0x4cb612(0x10e),'groupLabel':_0x35e26f(_0x30980e,_0x4cb612(0x16b)),'commands':[{'id':_0x4cb612(0x153),'label':_0x35e26f(_0x30980e,_0x4cb612(0x176),[_0x35e26f(_0x30980e,_0x4cb612(0x120))]),'prompt':_0x4cb612(0x12f)},{'id':_0x4cb612(0x10d),'label':_0x35e26f(_0x30980e,_0x4cb612(0x176),[_0x35e26f(_0x30980e,_0x4cb612(0x14e))]),'prompt':_0x4cb612(0x117)},{'id':_0x4cb612(0x128),'label':_0x35e26f(_0x30980e,_0x4cb612(0x176),[_0x35e26f(_0x30980e,_0x4cb612(0x168))]),'prompt':_0x4cb612(0x126)},{'id':_0x4cb612(0x166),'label':_0x35e26f(_0x30980e,_0x4cb612(0x176),[_0x35e26f(_0x30980e,_0x4cb612(0x149))]),'prompt':_0x4cb612(0x13c)},{'id':_0x4cb612(0x175),'label':_0x35e26f(_0x30980e,_0x4cb612(0x176),[_0x35e26f(_0x30980e,_0x4cb612(0x131))]),'prompt':_0x4cb612(0x130)},{'id':_0x4cb612(0x16a),'label':_0x35e26f(_0x30980e,_0x4cb612(0x176),[_0x35e26f(_0x30980e,_0x4cb612(0x108))]),'prompt':_0x4cb612(0x144)},{'id':_0x4cb612(0x12d),'label':_0x35e26f(_0x30980e,_0x4cb612(0x176),[_0x35e26f(_0x30980e,_0x4cb612(0x147))]),'prompt':_0x4cb612(0x15a)},{'id':_0x4cb612(0x137),'label':_0x35e26f(_0x30980e,_0x4cb612(0x176),[_0x35e26f(_0x30980e,_0x4cb612(0x107))]),'prompt':_0x4cb612(0x122)}]}];}
|