@ckeditor/ckeditor5-ai 0.0.0-nightly-20240516.0 → 0.0.0-nightly-20240517.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-20240517.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-20240517.0",
|
|
27
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20240517.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-20240517.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
|
+
function _0x5278(_0x126e14,_0x3dc37a){var _0x5d2be0=_0x5d2b();return _0x5278=function(_0x5278a2,_0x1576cb){_0x5278a2=_0x5278a2-0xbe;var _0x1109a6=_0x5d2be0[_0x5278a2];return _0x1109a6;},_0x5278(_0x126e14,_0x3dc37a);}var _0x29ff5d=_0x5278;(function(_0x413a9b,_0x11d41a){var _0x433b77=_0x5278,_0x66fa2=_0x413a9b();while(!![]){try{var _0x169322=-parseInt(_0x433b77(0xc7))/0x1+-parseInt(_0x433b77(0xc9))/0x2*(parseInt(_0x433b77(0xce))/0x3)+-parseInt(_0x433b77(0xc8))/0x4*(parseInt(_0x433b77(0xbe))/0x5)+-parseInt(_0x433b77(0xcb))/0x6+parseInt(_0x433b77(0xcc))/0x7+-parseInt(_0x433b77(0xc0))/0x8*(-parseInt(_0x433b77(0xc4))/0x9)+parseInt(_0x433b77(0xbf))/0xa;if(_0x169322===_0x11d41a)break;else _0x66fa2['push'](_0x66fa2['shift']());}catch(_0x16442b){_0x66fa2['push'](_0x66fa2['shift']());}}}(_0x5d2b,0xd87ff));import{Plugin as _0x3d7bfb}from'ckeditor5/src/core.js';function _0x5d2b(){var _0x4578a5=['textAdapter','982713roZVME','349690pIArbB','46311380DkeSgo','2296HVZpkl','name','AIAdapter','AIRequestError','10188qwyIXH','afterInit','aiadapter-text-adapter-not-set','10107PRuJhX','84sXluUs','10WieMkN','pluginName','7857264MbTUBU','2498755AqHtQl'];_0x5d2b=function(){return _0x4578a5;};return _0x5d2b();}import{CKEditorError as _0x501873}from'ckeditor5/src/utils.js';export default class y extends _0x3d7bfb{static get[_0x29ff5d(0xca)](){var _0x4c6de7=_0x29ff5d;return _0x4c6de7(0xc2);}[_0x29ff5d(0xc5)](){var _0x4b2fd8=_0x29ff5d;if(!this[_0x4b2fd8(0xcd)])throw new _0x501873(_0x4b2fd8(0xc6),null);}}export class AIRequestError extends Error{constructor(_0x6d5907){var _0x15b187=_0x29ff5d;super(_0x6d5907),this[_0x15b187(0xc1)]=_0x15b187(0xc3);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x410eae=_0x1b48;(function(_0x19ebcf,_0xa30e20){const _0x3dbeb4=_0x1b48,_0x8e7fab=_0x19ebcf();while(!![]){try{const _0x5754c9=-parseInt(_0x3dbeb4(0x10b))/0x1*(-parseInt(_0x3dbeb4(0x10e))/0x2)+parseInt(_0x3dbeb4(0xed))/0x3*(-parseInt(_0x3dbeb4(0xfd))/0x4)+parseInt(_0x3dbeb4(0xff))/0x5*(parseInt(_0x3dbeb4(0x10a))/0x6)+-parseInt(_0x3dbeb4(0x110))/0x7*(parseInt(_0x3dbeb4(0x109))/0x8)+parseInt(_0x3dbeb4(0x104))/0x9+-parseInt(_0x3dbeb4(0x103))/0xa*(parseInt(_0x3dbeb4(0xea))/0xb)+-parseInt(_0x3dbeb4(0xeb))/0xc*(-parseInt(_0x3dbeb4(0xf6))/0xd);if(_0x5754c9===_0xa30e20)break;else _0x8e7fab['push'](_0x8e7fab['shift']());}catch(_0x22ec6a){_0x8e7fab['push'](_0x8e7fab['shift']());}}}(_0x2b81,0x724e6));import{Plugin as _0x223dd2}from'ckeditor5/src/core.js';import{CKEditorError as _0x1f60d0}from'ckeditor5/src/utils.js';import{default as _0x39d348,AIRequestError as _0x37592d}from'./aiadapter.js';import{getTranslation as _0x357550}from'../utils/common-translations.js';export default class P extends _0x223dd2{static get[_0x410eae(0xf0)](){return[_0x39d348];}constructor(_0x17b7cc){const _0x1f5cae=_0x410eae;super(_0x17b7cc),this[_0x1f5cae(0x10f)]=new AbortController();}[_0x410eae(0xef)](){const _0xbb839f=_0x410eae;this[_0xbb839f(0x101)][_0xbb839f(0x102)][_0xbb839f(0xec)](_0x39d348)[_0xbb839f(0xfe)]=this;}[_0x410eae(0x10d)](){const _0x54b0a5=_0x410eae;this[_0x54b0a5(0x10f)][_0x54b0a5(0xf1)][_0x54b0a5(0xee)]||(this[_0x54b0a5(0x10f)][_0x54b0a5(0x10d)](),this[_0x54b0a5(0x10f)]=new AbortController());}async[_0x410eae(0xf7)](_0x56c66c){const _0x3577ad=_0x410eae;return this[_0x3577ad(0xfb)](_0x56c66c)[_0x3577ad(0x106)](_0x34864c=>{const _0x110e41=_0x3577ad;if(_0x34864c instanceof _0x37592d)return Promise[_0x110e41(0x100)](_0x34864c);if(_0x110e41(0xe9)==_0x34864c[_0x110e41(0x10c)])return Promise[_0x110e41(0xfa)]();throw console[_0x110e41(0xfc)](_0x34864c),new _0x1f60d0(_0x110e41(0xf8),null);});}async[_0x410eae(0xf3)](_0x3886b3,_0xf72897){const _0x252976=_0x410eae,_0x562d27=this[_0x252976(0x101)][_0x252976(0xf9)],_0x10c13c={'Content-Type':_0x252976(0x107)};if(_0x252976(0x108)==typeof _0x3886b3)Object[_0x252976(0xf5)](_0x10c13c,_0x3886b3);else{if(_0x3886b3)try{const _0x4a27b3=await _0x3886b3(_0xf72897);Object[_0x252976(0xf5)](_0x10c13c,_0x4a27b3);}catch(_0x2bc295){return Promise[_0x252976(0x100)](new _0x37592d(_0x357550(_0x562d27,_0x252976(0xf2))));}}return _0x10c13c;}async[_0x410eae(0xf4)](_0x2f32ec,_0x19fa21){const _0x4ca0f7=_0x410eae,_0x5a3060=this[_0x4ca0f7(0x101)][_0x4ca0f7(0xf9)];if(_0x4ca0f7(0x108)==typeof _0x2f32ec)return _0x2f32ec;try{return await _0x2f32ec(_0x19fa21);}catch(_0x4b8452){return Promise[_0x4ca0f7(0x100)](new _0x37592d(_0x357550(_0x5a3060,_0x4ca0f7(0x105))));}}}function _0x1b48(_0x30bf41,_0x110d9e){const _0x2b818f=_0x2b81();return _0x1b48=function(_0x1b48ea,_0x7c11a3){_0x1b48ea=_0x1b48ea-0xe9;let _0x59e0a7=_0x2b818f[_0x1b48ea];return _0x59e0a7;},_0x1b48(_0x30bf41,_0x110d9e);}function _0x2b81(){const _0xb5fa38=['object','3536YQjZjf','96EWOxzS','62VgQlmA','name','abort','12766gHtaIo','abortController','12929pZkPSQ','AbortError','77110rfWtgg','13717872KrVcWL','get','6fljGhR','aborted','init','requires','signal','AI_ERROR_GET_HEADERS','_prepareRequestHeaders','_prepareRequestParameters','assign','13cqadgc','makeRequest','aitextadapter-send-request-failed','locale','resolve','sendRequest','error','1734716IfUygh','textAdapter','134690zChYWF','reject','editor','plugins','490ohCDJD','4729590JzrbVv','AI_ERROR_GET_PARAMETERS','catch','application/json'];_0x2b81=function(){return _0xb5fa38;};return _0x2b81();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xbd76f4=_0x238e;(function(_0x44d86e,_0x3d8189){const _0x52e21a=_0x238e,_0x4f6910=_0x44d86e();while(!![]){try{const _0xa07e2e=parseInt(_0x52e21a(0xcb))/0x1*(parseInt(_0x52e21a(0xa3))/0x2)+parseInt(_0x52e21a(0x8b))/0x3+-parseInt(_0x52e21a(0xaa))/0x4*(-parseInt(_0x52e21a(0xc8))/0x5)+parseInt(_0x52e21a(0x9d))/0x6+parseInt(_0x52e21a(0xc7))/0x7*(-parseInt(_0x52e21a(0x9b))/0x8)+parseInt(_0x52e21a(0xd7))/0x9*(-parseInt(_0x52e21a(0xb9))/0xa)+-parseInt(_0x52e21a(0xb7))/0xb*(-parseInt(_0x52e21a(0xab))/0xc);if(_0xa07e2e===_0x3d8189)break;else _0x4f6910['push'](_0x4f6910['shift']());}catch(_0x14c526){_0x4f6910['push'](_0x4f6910['shift']());}}}(_0x543a,0x836e3));function _0x543a(){const _0x415697=['completions','sendRequest','_requestHeaders','cohere.command','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.','4vbmyCv','21612RhDcBq','_bedrockClientConfig','ai.aws.requestHeaders','text','send','read','generation','bytes','meta.llama','\x0a[/INST]','_getGeneratedText','Instruction:\x0a','7799FrVcFG','_readStaticResponse','16570qEDZve','AWSTextAdapter','anthropic.claude-v2','ai21.j2','config','\x0a<</SYS>>\x0a[INST]\x0a','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.','<<SYS>>\x0a','resolve','ai.aws.bedrockClientConfig','\x0a\x0aAssistant:','_requestParameters','stringify','bedrock-2023-05-31','1729119wNSzVp','1742385Owuusk','filter','ai.aws.apiUrl','7OuZbYF','map','_prepareRequestParameters','json','utf8','preparePrompt','_readStreamableResponse','chunk','data','editor','join','body','5517qkXYDg','anthropic.claude','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','getReader','_readAsyncIterableResponse','generations','_processProxyRequest','define','_apiUrl','280017lycZGr','application/json','decode','signal','get','completion','toString','getModelFamily','ai.aws.requestParameters','test','split','_prepareRequestHeaders','Human:\x0a','length','pluginName','_processAWSRequest','32KYUMNJ','utf-8','3031974ujQQDk','from','parse','AI_ERROR_UNSUPPORTED_MODEL','locale','POST','90884vHniEk','abortController'];_0x543a=function(){return _0x415697;};return _0x543a();}import{default as _0x3178a1}from'./aitextadapter.js';import{AIRequestError as _0x3803be}from'./aiadapter.js';import{BedrockRuntimeClient as _0x237841,InvokeModelCommand as _0xbac940,InvokeModelWithResponseStreamCommand as _0x214300}from'@aws-sdk/client-bedrock-runtime';function _0x238e(_0x517bfe,_0x5a4d9b){const _0x543a71=_0x543a();return _0x238e=function(_0x238e7f,_0x2a80a4){_0x238e7f=_0x238e7f-0x88;let _0x125cc5=_0x543a71[_0x238e7f];return _0x125cc5;},_0x238e(_0x517bfe,_0x5a4d9b);}import{getTranslation as _0x70bd8e}from'../utils/common-translations.js';export default class J extends _0x3178a1{static get[_0xbd76f4(0x99)](){const _0x125c17=_0xbd76f4;return _0x125c17(0xba);}constructor(_0x3a89a9){const _0x5483d3=_0xbd76f4;super(_0x3a89a9),_0x3a89a9[_0x5483d3(0xbd)][_0x5483d3(0x8f)](_0x5483d3(0x93))||_0x3a89a9[_0x5483d3(0xbd)][_0x5483d3(0x89)](_0x5483d3(0x93),{'model':_0x5483d3(0xbb),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x5483d3(0xc6),'stream':!0x0}),this[_0x5483d3(0x8a)]=_0x3a89a9[_0x5483d3(0xbd)][_0x5483d3(0x8f)](_0x5483d3(0xca)),this[_0x5483d3(0xac)]=_0x3a89a9[_0x5483d3(0xbd)][_0x5483d3(0x8f)](_0x5483d3(0xc2)),this[_0x5483d3(0xa7)]=_0x3a89a9[_0x5483d3(0xbd)][_0x5483d3(0x8f)](_0x5483d3(0xad)),this[_0x5483d3(0xc4)]=_0x3a89a9[_0x5483d3(0xbd)][_0x5483d3(0x8f)](_0x5483d3(0x93));}async[_0xbd76f4(0xa6)]({query:_0x482c3d,context:_0x2c3fa1,onData:_0x86b7bf,actionId:_0x545392}){const _0x201a40=_0xbd76f4,{model:_0x3056c6,stream:_0x69050,..._0x5e947b}=await this[_0x201a40(0xcd)](this[_0x201a40(0xc4)],_0x545392),_0x27185a={'prompt':await this[_0x201a40(0xd0)](_0x482c3d,_0x2c3fa1,_0x3056c6,_0x545392),..._0x5e947b};this[_0x201a40(0x8a)]?await this[_0x201a40(0x88)](_0x27185a,_0x3056c6,_0x69050,_0x86b7bf,_0x545392):await this[_0x201a40(0x9a)](_0x27185a,_0x3056c6,_0x69050,_0x86b7bf);}async[_0xbd76f4(0xd0)](_0x179c9f,_0x43b2cb,_0x26b778,_0x984834){const _0xe440bf=_0xbd76f4;let _0x35d32b,_0x5baa50;return _0x43b2cb?(_0x35d32b=_0xe440bf(0xa9),_0x5baa50=_0xe440bf(0xb6)+_0x179c9f+_0xe440bf(0xd9)+_0x43b2cb):(_0x35d32b=_0xe440bf(0xbf),_0x5baa50=_0x179c9f),_0xe440bf(0xb3)==this[_0xe440bf(0x92)](_0x26b778)?_0xe440bf(0xc0)+_0x35d32b+_0xe440bf(0xbe)+_0x5baa50+_0xe440bf(0xb4):_0xe440bf(0x97)+_0x35d32b+'\x0a'+_0x5baa50+_0xe440bf(0xc3);}[_0xbd76f4(0x92)](_0x31fb5d){const _0x5eb25d=_0xbd76f4;if(/^anthropic\.claude/[_0x5eb25d(0x94)](_0x31fb5d))return _0x5eb25d(0xd8);if(/^ai21\.j2/[_0x5eb25d(0x94)](_0x31fb5d))return _0x5eb25d(0xbc);if(/^cohere\.command/[_0x5eb25d(0x94)](_0x31fb5d))return _0x5eb25d(0xa8);if(/^meta\.llama/[_0x5eb25d(0x94)](_0x31fb5d))return _0x5eb25d(0xb3);throw new _0x3803be(_0x70bd8e(this[_0x5eb25d(0xd4)][_0x5eb25d(0xa1)],_0x5eb25d(0xa0),_0x31fb5d));}async[_0xbd76f4(0x88)](_0x26437e,_0x3be82d,_0x15051e,_0x326fe8,_0x3d2d53){const _0x456f11=_0xbd76f4,_0x2db43f={'method':_0x456f11(0xa2),'headers':await this[_0x456f11(0x96)](this[_0x456f11(0xa7)],_0x3d2d53),'body':JSON[_0x456f11(0xc5)]({..._0x26437e,'model':_0x3be82d,'stream':_0x15051e}),'signal':this[_0x456f11(0xa4)][_0x456f11(0x8e)]},_0x4593eb=await fetch(this[_0x456f11(0x8a)],_0x2db43f);_0x15051e?await this[_0x456f11(0xd1)](_0x4593eb,_0x3be82d,_0x326fe8):await this[_0x456f11(0xb8)](_0x4593eb,_0x3be82d,_0x326fe8);}async[_0xbd76f4(0x9a)](_0x399e2b,_0x44efac,_0x1c5e15,_0x308172){const _0x34a317=_0xbd76f4,_0x415572=new _0x237841(this[_0x34a317(0xac)]),_0x135c95={'body':JSON[_0x34a317(0xc5)](_0x399e2b),'contentType':_0x34a317(0x8c),'accept':_0x34a317(0x8c),'modelId':_0x44efac};let _0x43202b;if(_0x1c5e15){const _0x28813f=new _0x214300(_0x135c95);_0x43202b=await _0x415572[_0x34a317(0xaf)](_0x28813f,{'abortSignal':this[_0x34a317(0xa4)][_0x34a317(0x8e)]}),await this[_0x34a317(0xdb)](_0x43202b,_0x44efac,_0x308172);}else{const _0x59dbf5=new _0xbac940(_0x135c95);_0x43202b=await _0x415572[_0x34a317(0xaf)](_0x59dbf5,{'abortSignal':this[_0x34a317(0xa4)][_0x34a317(0x8e)]}),await this[_0x34a317(0xb8)](_0x43202b,_0x44efac,_0x308172);}}async[_0xbd76f4(0xdb)](_0x13f0b4,_0x300239,_0xff766e){const _0x63b46a=_0xbd76f4,_0x187f49=_0x13f0b4[_0x63b46a(0xd6)],_0x4bfcc2=new TextDecoder(_0x63b46a(0x9c));let _0x459dfb='';for await(const _0x4182cd of _0x187f49)if(_0x4182cd[_0x63b46a(0xd2)]){const _0x111d86=_0x4bfcc2[_0x63b46a(0x8d)](_0x4182cd[_0x63b46a(0xd2)][_0x63b46a(0xb2)]),_0x37b1b9=JSON[_0x63b46a(0x9f)](_0x111d86);_0x459dfb+=this[_0x63b46a(0xb5)](_0x37b1b9,_0x300239),_0xff766e(_0x459dfb);}return Promise[_0x63b46a(0xc1)]();}async[_0xbd76f4(0xd1)](_0x337b62,_0x3ff5f0,_0x257ae4){const _0x3fcee3=_0xbd76f4,_0x2a68dd=_0x337b62[_0x3fcee3(0xd6)],_0x2f5004=new TextDecoder(_0x3fcee3(0x9c)),_0x59facc=_0x2a68dd[_0x3fcee3(0xda)]();let _0x422df1='',_0x2d2912='',_0x1d14f6=!0x1;for(;!_0x1d14f6;){const {done:_0x380a32,value:_0x20c75b}=await _0x59facc[_0x3fcee3(0xb0)]();if(_0x1d14f6=_0x380a32,_0x1d14f6)break;const _0x31ab65=(_0x422df1+_0x2f5004[_0x3fcee3(0x8d)](_0x20c75b))[_0x3fcee3(0x95)]('\x0a')[_0x3fcee3(0xcc)](_0x2edcf2=>{const _0x58af80=_0x3fcee3;try{return _0x422df1='',JSON[_0x58af80(0x9f)](_0x2edcf2);}catch(_0x47815a){return _0x422df1=_0x2edcf2,null;}})[_0x3fcee3(0xc9)](_0x152bd2=>null!==_0x152bd2);_0x31ab65[_0x3fcee3(0x98)]&&(_0x2d2912+=_0x31ab65[_0x3fcee3(0xcc)](_0x3fbaab=>this[_0x3fcee3(0xb5)](_0x3fbaab,_0x3ff5f0))[_0x3fcee3(0xd5)](''),_0x257ae4(_0x2d2912));}return Promise[_0x3fcee3(0xc1)]();}async[_0xbd76f4(0xb8)](_0x3ab609,_0xedc36,_0x3e5afe){const _0x53e1a9=_0xbd76f4;let _0x5e628f;return _0x5e628f=_0x3ab609 instanceof Response?await _0x3ab609[_0x53e1a9(0xce)]():JSON[_0x53e1a9(0x9f)](Buffer[_0x53e1a9(0x9e)](_0x3ab609[_0x53e1a9(0xd6)])[_0x53e1a9(0x91)](_0x53e1a9(0xcf))),(_0x3e5afe(this[_0x53e1a9(0xb5)](_0x5e628f,_0xedc36)),Promise[_0x53e1a9(0xc1)]());}[_0xbd76f4(0xb5)](_0x15c0f1,_0x380d06){const _0x5d81e1=_0xbd76f4;switch(this[_0x5d81e1(0x92)](_0x380d06)){case _0x5d81e1(0xd8):return _0x15c0f1[_0x5d81e1(0x90)];case _0x5d81e1(0xbc):return _0x15c0f1[_0x5d81e1(0xa5)][0x0][_0x5d81e1(0xd3)][_0x5d81e1(0xae)];case _0x5d81e1(0xa8):return _0x15c0f1[_0x5d81e1(0xdc)][0x0][_0x5d81e1(0xae)];case _0x5d81e1(0xb3):return _0x15c0f1[_0x5d81e1(0xb1)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4c1a82=_0x5e4a;(function(_0xcc8da3,_0x1b33c5){const _0x2c9a5e=_0x5e4a,_0x214b74=_0xcc8da3();while(!![]){try{const _0x52e05c=parseInt(_0x2c9a5e(0x8b))/0x1*(-parseInt(_0x2c9a5e(0xb5))/0x2)+parseInt(_0x2c9a5e(0xad))/0x3+parseInt(_0x2c9a5e(0x98))/0x4*(-parseInt(_0x2c9a5e(0xa9))/0x5)+-parseInt(_0x2c9a5e(0x76))/0x6+-parseInt(_0x2c9a5e(0xaf))/0x7+parseInt(_0x2c9a5e(0xac))/0x8+parseInt(_0x2c9a5e(0x99))/0x9*(parseInt(_0x2c9a5e(0x82))/0xa);if(_0x52e05c===_0x1b33c5)break;else _0x214b74['push'](_0x214b74['shift']());}catch(_0x3c5da7){_0x214b74['push'](_0x214b74['shift']());}}}(_0x1adb,0xc2e22));import{default as _0x5104a9}from'./aitextadapter.js';import{AIRequestError as _0x4ea125}from'./aiadapter.js';import{getTranslation as _0x4c3042}from'../utils/common-translations.js';function _0x1adb(){const _0x56c949=['8524lYQYUg','pluginName','message','content','abortController','AI_ERROR_CONTEXT_LENGTH','filter','user','sendRequest','signal','ai.openAI.apiUrl','join','_requestHeaders','501352EXKXAY','9NAGMtg','_isBufferIncomplete','map','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.','https://api.openai.com/v1/chat/completions','prepareMessages','[DONE]','_readStaticResponse','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','system','get','stringify','split','delta','50ZQwbkF','_apiUrl','reject','5777616rwkALv','2644989IfWdCU','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','4844462RydrgX','_prepareRequestHeaders','decode','resolve','read','replace','150owxqJC','Moderation','OpenAITextAdapter','body','config','_requestParameters','define','8857560vIYCkL','_readStreamableResponse','data:\x20','locale','ai.openAI.requestParameters','text','_prepareRequestParameters','getReader','ai.openAI.requestHeaders','parse','_cleanUpData','AI_ERROR_MODERATION','32553830heqpRp','POST','choices','includes','length','context_length_exceeded','stream','Instruction:\x0a','gpt-3.5-turbo'];_0x1adb=function(){return _0x56c949;};return _0x1adb();}function _0x5e4a(_0x3b8d63,_0x15844f){const _0x1adbc1=_0x1adb();return _0x5e4a=function(_0x5e4a60,_0x29c7dd){_0x5e4a60=_0x5e4a60-0x76;let _0x215425=_0x1adbc1[_0x5e4a60];return _0x215425;},_0x5e4a(_0x3b8d63,_0x15844f);}export default class F extends _0x5104a9{static get[_0x4c1a82(0x8c)](){const _0x3cc59f=_0x4c1a82;return _0x3cc59f(0xb7);}constructor(_0x5bdcd9){const _0x26312f=_0x4c1a82;super(_0x5bdcd9),_0x5bdcd9[_0x26312f(0xb9)][_0x26312f(0xbb)](_0x26312f(0x95),_0x26312f(0x9e)),_0x5bdcd9[_0x26312f(0xb9)][_0x26312f(0xa5)](_0x26312f(0x7a))||_0x5bdcd9[_0x26312f(0xb9)][_0x26312f(0xbb)](_0x26312f(0x7a),{'model':_0x26312f(0x8a),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x26312f(0xaa)]=_0x5bdcd9[_0x26312f(0xb9)][_0x26312f(0xa5)](_0x26312f(0x95)),this[_0x26312f(0x97)]=_0x5bdcd9[_0x26312f(0xb9)][_0x26312f(0xa5)](_0x26312f(0x7e))||{},this[_0x26312f(0xba)]=_0x5bdcd9[_0x26312f(0xb9)][_0x26312f(0xa5)](_0x26312f(0x7a));}async[_0x4c1a82(0x93)]({query:_0x11cfea,context:_0x939b31,onData:_0x1a6dcd,actionId:_0x3d32a3}){const _0x6d83df=_0x4c1a82,_0x2154b0=this[_0x6d83df(0x9c)][_0x6d83df(0x79)],_0x10fbf9=await this[_0x6d83df(0x9f)](_0x11cfea,_0x939b31,_0x3d32a3),_0x56ef38=await this[_0x6d83df(0xb0)](this[_0x6d83df(0x97)],_0x3d32a3),_0x49aabe=await this[_0x6d83df(0x7c)](this[_0x6d83df(0xba)],_0x3d32a3),_0x10b57f={'messages':_0x10fbf9,..._0x49aabe},_0x5068a3={'method':_0x6d83df(0x83),'headers':_0x56ef38,'body':JSON[_0x6d83df(0xa6)](_0x10b57f),'signal':this[_0x6d83df(0x8f)][_0x6d83df(0x94)]},_0x5cab4c=await fetch(this[_0x6d83df(0xaa)],_0x5068a3);if(_0x5cab4c['ok'])return _0x49aabe[_0x6d83df(0x88)]?await this[_0x6d83df(0x77)](_0x5cab4c,_0x1a6dcd):await this[_0x6d83df(0xa1)](_0x5cab4c,_0x1a6dcd),Promise[_0x6d83df(0xb2)]();{const _0x428790=await _0x5cab4c[_0x6d83df(0x7b)]();return _0x428790[_0x6d83df(0x85)](_0x6d83df(0x87))?Promise[_0x6d83df(0xab)](new _0x4ea125(_0x4c3042(_0x2154b0,_0x6d83df(0x90)))):_0x428790[_0x6d83df(0x85)](_0x6d83df(0xb6))?Promise[_0x6d83df(0xab)](new _0x4ea125(_0x4c3042(_0x2154b0,_0x6d83df(0x81)))):Promise[_0x6d83df(0xab)](new Error(_0x428790));}}async[_0x4c1a82(0x9f)](_0x3c2c94,_0x3226df,_0x338019){const _0x535ef6=_0x4c1a82;let _0x10ed83,_0x3bc8f8;return _0x3226df?(_0x10ed83=_0x535ef6(0x9d),_0x3bc8f8=_0x535ef6(0x89)+_0x3c2c94+_0x535ef6(0xae)+_0x3226df):(_0x10ed83=_0x535ef6(0xa2),_0x3bc8f8=_0x3c2c94),[{'role':_0x535ef6(0xa4),'content':_0x10ed83},{'role':_0x535ef6(0x92),'content':_0x3bc8f8}];}async[_0x4c1a82(0x77)](_0x347335,_0x371bc0){const _0x32b060=_0x4c1a82,_0x349d6c=_0x347335[_0x32b060(0xb8)][_0x32b060(0x7d)](),_0x5bec0e=new TextDecoder();let _0x5e4f1a='',_0x195bc4='',_0x3e72d0='',_0x8d15b4=!0x1;for(;!_0x8d15b4;){const {done:_0x260c6c,value:_0xa0dd1c}=await _0x349d6c[_0x32b060(0xb3)](),_0x25d2d4=_0x5e4f1a+_0x5bec0e[_0x32b060(0xb1)](_0xa0dd1c);let _0xc834e5='';_0x8d15b4=_0x260c6c;try{_0xc834e5=this[_0x32b060(0x80)](_0x25d2d4),_0x5e4f1a='';}catch(_0x1f4e17){_0x5e4f1a=_0x25d2d4;continue;}_0x195bc4+=_0xc834e5,!_0x8d15b4&&this[_0x32b060(0x9a)](_0x195bc4)||_0x195bc4&&(_0x3e72d0+=_0x195bc4,_0x195bc4='',_0x371bc0(_0x3e72d0));}return Promise[_0x32b060(0xb2)]();}async[_0x4c1a82(0xa1)](_0x4456da,_0xe101c1){const _0x4c6850=_0x4c1a82;return _0xe101c1((await _0x4456da[_0x4c6850(0xa3)]())[_0x4c6850(0x84)][0x0][_0x4c6850(0x8d)][_0x4c6850(0x8e)]),Promise[_0x4c6850(0xb2)]();}[_0x4c1a82(0x9a)](_0x1c4b67){const _0x26c913=_0x4c1a82,_0x397b02=_0x1c4b67[_0x26c913(0xa7)]('<')[_0x26c913(0x86)]!==_0x1c4b67[_0x26c913(0xa7)]('>')[_0x26c913(0x86)],_0xd18396=_0x1c4b67[_0x26c913(0x86)]<0x1e;return _0x397b02&&_0xd18396;}[_0x4c1a82(0x80)](_0x8ccc9){const _0x3568c3=_0x4c1a82;return _0x8ccc9[_0x3568c3(0xa7)](/\n(?![^{]*\})/g)[_0x3568c3(0x9b)](_0x25968e=>_0x25968e[_0x3568c3(0xb4)](_0x3568c3(0x78),''))[_0x3568c3(0x91)](_0x1dfec3=>_0x1dfec3&&_0x1dfec3[_0x3568c3(0x86)]>0x0&&_0x3568c3(0xa0)!==_0x1dfec3)[_0x3568c3(0x9b)](_0x171c6a=>{const _0x4add36=_0x3568c3,{choices:_0x55841b}=JSON[_0x4add36(0x7f)](_0x171c6a);if(_0x55841b[0x0]&&_0x55841b[0x0][_0x4add36(0xa8)]&&_0x55841b[0x0][_0x4add36(0xa8)][_0x4add36(0x8e)])return _0x55841b[0x0][_0x4add36(0xa8)][_0x4add36(0x8e)];})[_0x3568c3(0x91)](_0x4a5d9c=>_0x4a5d9c)[_0x3568c3(0x96)]('');}}
|
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 _0x48efaa=_0x136f;(function(_0x52ee92,_0x4b1f4a){const _0x43430e=_0x136f,_0x516b9c=_0x52ee92();while(!![]){try{const _0x3f3752=parseInt(_0x43430e(0xb0))/0x1*(parseInt(_0x43430e(0x8c))/0x2)+-parseInt(_0x43430e(0x92))/0x3*(parseInt(_0x43430e(0xd8))/0x4)+-parseInt(_0x43430e(0xca))/0x5*(parseInt(_0x43430e(0xa5))/0x6)+parseInt(_0x43430e(0xa1))/0x7+parseInt(_0x43430e(0xd9))/0x8*(parseInt(_0x43430e(0x9d))/0x9)+-parseInt(_0x43430e(0x91))/0xa*(parseInt(_0x43430e(0xc7))/0xb)+parseInt(_0x43430e(0xf4))/0xc*(parseInt(_0x43430e(0xd4))/0xd);if(_0x3f3752===_0x4b1f4a)break;else _0x516b9c['push'](_0x516b9c['shift']());}catch(_0x382f17){_0x516b9c['push'](_0x516b9c['shift']());}}}(_0x9ae0,0x1cb46));import{CKEditorError as _0x8f3fed}from'ckeditor5/src/utils.js';import{Plugin as _0x3d3f98}from'ckeditor5/src/core.js';import _0x146302 from'./aiassistantui.js';import _0x3c41fe from'./aiassistantediting.js';function _0x136f(_0x33d711,_0x358601){const _0x9ae06=_0x9ae0();return _0x136f=function(_0x136fcf,_0x32e37a){_0x136fcf=_0x136fcf-0x7e;let _0xa6ffba=_0x9ae06[_0x136fcf];return _0xa6ffba;},_0x136f(_0x33d711,_0x358601);}import{getTranslation as _0x3e6c3a}from'./utils/common-translations.js';function _0x9ae0(){const _0x359396=['Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Translate\x20the\x20content\x20to\x20French\x20language.','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','poetic','Continue','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.','18eQBTGQ','_licenseKeyCheckInterval','ai.aiAssistant.removeCommands','German','318591fiOOWW','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Translate\x20the\x20content\x20to\x20German\x20language.','Casual','780eqILNK','translateFrench','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','translatePortuguese','Translate\x20the\x20content\x20to\x20Arabic\x20language.','editor','continue','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Hindi','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','translateSpanish','1ygZacB','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Arabic','Professional','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','changeTone','translateArabic','concat','Translate\x20to\x20%0','improveWriting','filter','friendly','ai.aiAssistant.commands','locale','translate','Business','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','ai-invalid-license-key','confident','aiLicenseKeyTrial','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Generate\x20from\x20selection','requires','11jSgidt','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','7740cjqfIo','direct','Translate\x20the\x20content\x20to\x20English\x20language.','Legal','destroy','Spanish','AIAssistant','aiLicenseKeyValid','Journalism','define','13BHtjvB','Make\x20shorter','English','generate','23860muWgQG','331152cqZFkK','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','summarize','business','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','ai-trial-license-key-reached-limit-changes','Simplified\x20Chinese','translateEnglish','Friendly','Translate','Make\x20longer','editOrReview','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','forEach','aiLicenseKeyTrialLimit:operations','includes','Simplify\x20language','translateChinese','Confident','licenseKey','Improve\x20writing','find','info','Summarize','ai.aiAssistant.extraCommandGroups','translateHindi','4179888DarNTg','Edit\x20or\x20review','push','commands','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Poetic','changeStyle','translateGerman','pluginName','Direct','groupId','legal','config','get','French','makeLonger','simplifyLanguage','init','professional','aiLicenseKeyInvalid','set','47818kJbfGf','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Change\x20tone','Change\x20style','casual','1101400RpPDfG','36ICacKw','Translate\x20the\x20content\x20to\x20Spanish\x20language.','makeShorter','Portuguese','journalism'];_0x9ae0=function(){return _0x359396;};return _0x9ae0();}export default class r extends _0x3d3f98{static get[_0x48efaa(0xc6)](){return[_0x146302,_0x3c41fe];}static get[_0x48efaa(0x7f)](){const _0x264cea=_0x48efaa;return _0x264cea(0xd0);}constructor(_0x1bec7a){const _0x2ca1ed=_0x48efaa;super(_0x1bec7a);const _0x68fc04=_0x1bec7a[_0x2ca1ed(0x83)];_0x68fc04[_0x2ca1ed(0xd3)](_0x2ca1ed(0xbc),getDefaultCommands(_0x1bec7a[_0x2ca1ed(0xbd)])),_0x68fc04[_0x2ca1ed(0xd3)](_0x2ca1ed(0xf2),[]),_0x68fc04[_0x2ca1ed(0xd3)](_0x2ca1ed(0x9f),[]);const _0x42f0f1=_0x68fc04[_0x2ca1ed(0x84)](_0x2ca1ed(0xbc)),_0x57bbe6=_0x68fc04[_0x2ca1ed(0x84)](_0x2ca1ed(0xf2)),_0x598e35=_0x68fc04[_0x2ca1ed(0x84)](_0x2ca1ed(0x9f));_0x57bbe6[_0x2ca1ed(0xe7)](_0xcdaf8c=>{const _0x5c4dbe=_0x2ca1ed,_0x493a98=_0x42f0f1[_0x5c4dbe(0xef)](_0x55adba=>_0x55adba[_0x5c4dbe(0x81)]===_0xcdaf8c[_0x5c4dbe(0x81)]);_0x493a98?_0x493a98[_0x5c4dbe(0xf7)]=_0x493a98[_0x5c4dbe(0xf7)][_0x5c4dbe(0xb7)](_0xcdaf8c[_0x5c4dbe(0xf7)]):_0x42f0f1[_0x5c4dbe(0xf6)](_0xcdaf8c);}),_0x42f0f1[_0x2ca1ed(0xe7)](_0x13e2f9=>{const _0x1c9bec=_0x2ca1ed;_0x13e2f9[_0x1c9bec(0xf7)]=_0x13e2f9[_0x1c9bec(0xf7)][_0x1c9bec(0xba)](_0x162411=>!_0x598e35[_0x1c9bec(0xe9)](_0x162411['id']));}),_0x68fc04[_0x2ca1ed(0x8b)](_0x2ca1ed(0xbc),_0x42f0f1);}[_0x48efaa(0x88)](){const _0xd591aa=_0x48efaa,_0x19a80b=this[_0xd591aa(0xaa)];this[_0xd591aa(0xed)]=_0x19a80b[_0xd591aa(0x83)][_0xd591aa(0x84)](_0xd591aa(0xed)),this[_0xd591aa(0x9e)]=setInterval(()=>{const _0x197a66=_0xd591aa;let _0x54e168;for(const _0xc6f21 in _0x19a80b){const _0x5ec119=_0xc6f21,_0x164505=_0x19a80b[_0x5ec119];if(_0x197a66(0xc3)===_0x164505||_0x197a66(0x8a)===_0x164505||_0x197a66(0xd1)===_0x164505||_0x197a66(0xe8)===_0x164505){delete _0x19a80b[_0x5ec119],_0x54e168=_0x164505;break;}}if(_0x197a66(0x8a)===_0x54e168)throw clearInterval(this[_0x197a66(0x9e)]),new _0x8f3fed(_0x197a66(0xc1),null);if(_0x197a66(0xc3)===_0x54e168&&console[_0x197a66(0xf0)](_0x197a66(0x9c)),_0x197a66(0xe8)===_0x54e168)throw clearInterval(this[_0x197a66(0x9e)]),new _0x8f3fed(_0x197a66(0xde),null);_0x197a66(0xd1)===_0x54e168&&clearInterval(this[_0x197a66(0x9e)]);},0x3e8);}[_0x48efaa(0xce)](){const _0x2f9926=_0x48efaa;this[_0x2f9926(0x9e)]&&clearInterval(this[_0x2f9926(0x9e)]);}}export function getDefaultCommands(_0x11e2ed){const _0x504373=_0x48efaa;return[{'groupId':_0x504373(0xe4),'groupLabel':_0x3e6c3a(_0x11e2ed,_0x504373(0xf5)),'commands':[{'id':_0x504373(0xb9),'label':_0x3e6c3a(_0x11e2ed,_0x504373(0xee)),'prompt':_0x504373(0xe5)},{'id':_0x504373(0x94),'label':_0x3e6c3a(_0x11e2ed,_0x504373(0xd5)),'prompt':_0x504373(0xc8)},{'id':_0x504373(0x86),'label':_0x3e6c3a(_0x11e2ed,_0x504373(0xe3)),'prompt':_0x504373(0xf8)},{'id':_0x504373(0x87),'label':_0x3e6c3a(_0x11e2ed,_0x504373(0xea)),'prompt':_0x504373(0xb1)}]},{'groupId':_0x504373(0xd7),'groupLabel':_0x3e6c3a(_0x11e2ed,_0x504373(0xc5)),'commands':[{'id':_0x504373(0xdb),'label':_0x3e6c3a(_0x11e2ed,_0x504373(0xf1)),'prompt':_0x504373(0xe6)},{'id':_0x504373(0xab),'label':_0x3e6c3a(_0x11e2ed,_0x504373(0x9b)),'prompt':_0x504373(0xb4)}]},{'groupId':_0x504373(0xb5),'groupLabel':_0x3e6c3a(_0x11e2ed,_0x504373(0x8e)),'commands':[{'id':_0x504373(0x89),'label':_0x3e6c3a(_0x11e2ed,_0x504373(0xb3)),'prompt':_0x504373(0xda)},{'id':_0x504373(0x90),'label':_0x3e6c3a(_0x11e2ed,_0x504373(0xa4)),'prompt':_0x504373(0xdd)},{'id':_0x504373(0xcb),'label':_0x3e6c3a(_0x11e2ed,_0x504373(0x80)),'prompt':_0x504373(0xae)},{'id':_0x504373(0xc2),'label':_0x3e6c3a(_0x11e2ed,_0x504373(0xec)),'prompt':_0x504373(0x8d)},{'id':_0x504373(0xbb),'label':_0x3e6c3a(_0x11e2ed,_0x504373(0xe1)),'prompt':_0x504373(0x97)}]},{'groupId':_0x504373(0xfa),'groupLabel':_0x3e6c3a(_0x11e2ed,_0x504373(0x8f)),'commands':[{'id':_0x504373(0xdc),'label':_0x3e6c3a(_0x11e2ed,_0x504373(0xbf)),'prompt':_0x504373(0xa7)},{'id':_0x504373(0x82),'label':_0x3e6c3a(_0x11e2ed,_0x504373(0xcd)),'prompt':_0x504373(0xc0)},{'id':_0x504373(0x96),'label':_0x3e6c3a(_0x11e2ed,_0x504373(0xd2)),'prompt':_0x504373(0xac)},{'id':_0x504373(0x9a),'label':_0x3e6c3a(_0x11e2ed,_0x504373(0xf9)),'prompt':_0x504373(0xc9)}]},{'groupId':_0x504373(0xbe),'groupLabel':_0x3e6c3a(_0x11e2ed,_0x504373(0xe2)),'commands':[{'id':_0x504373(0xe0),'label':_0x3e6c3a(_0x11e2ed,_0x504373(0xb8),[_0x3e6c3a(_0x11e2ed,_0x504373(0xd6))]),'prompt':_0x504373(0xcc)},{'id':_0x504373(0xaf),'label':_0x3e6c3a(_0x11e2ed,_0x504373(0xb8),[_0x3e6c3a(_0x11e2ed,_0x504373(0xcf))]),'prompt':_0x504373(0x93)},{'id':_0x504373(0xa8),'label':_0x3e6c3a(_0x11e2ed,_0x504373(0xb8),[_0x3e6c3a(_0x11e2ed,_0x504373(0x95))]),'prompt':_0x504373(0xa2)},{'id':_0x504373(0x7e),'label':_0x3e6c3a(_0x11e2ed,_0x504373(0xb8),[_0x3e6c3a(_0x11e2ed,_0x504373(0xa0))]),'prompt':_0x504373(0xa3)},{'id':_0x504373(0xa6),'label':_0x3e6c3a(_0x11e2ed,_0x504373(0xb8),[_0x3e6c3a(_0x11e2ed,_0x504373(0x85))]),'prompt':_0x504373(0x98)},{'id':_0x504373(0xeb),'label':_0x3e6c3a(_0x11e2ed,_0x504373(0xb8),[_0x3e6c3a(_0x11e2ed,_0x504373(0xdf))]),'prompt':_0x504373(0x99)},{'id':_0x504373(0xf3),'label':_0x3e6c3a(_0x11e2ed,_0x504373(0xb8),[_0x3e6c3a(_0x11e2ed,_0x504373(0xad))]),'prompt':_0x504373(0xc4)},{'id':_0x504373(0xb6),'label':_0x3e6c3a(_0x11e2ed,_0x504373(0xb8),[_0x3e6c3a(_0x11e2ed,_0x504373(0xb2))]),'prompt':_0x504373(0xa9)}]}];}
|