@ckeditor/ckeditor5-ai 41.3.0-alpha.3 → 41.3.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/build/ai.js +6 -6
  2. package/dist/translations/af.js +1 -1
  3. package/dist/translations/ar.js +1 -1
  4. package/dist/translations/bg.js +1 -1
  5. package/dist/translations/bn.js +1 -1
  6. package/dist/translations/bs.js +1 -1
  7. package/dist/translations/ca.js +1 -1
  8. package/dist/translations/cs.js +1 -1
  9. package/dist/translations/da.js +1 -1
  10. package/dist/translations/de-ch.js +1 -1
  11. package/dist/translations/de.js +1 -1
  12. package/dist/translations/el.js +1 -1
  13. package/dist/translations/en-au.js +1 -1
  14. package/dist/translations/es-co.js +1 -1
  15. package/dist/translations/es.js +1 -1
  16. package/dist/translations/et.js +1 -1
  17. package/dist/translations/fa.js +1 -1
  18. package/dist/translations/fi.js +1 -1
  19. package/dist/translations/fr.js +1 -1
  20. package/dist/translations/gl.js +1 -1
  21. package/dist/translations/he.js +1 -1
  22. package/dist/translations/hi.js +1 -1
  23. package/dist/translations/hr.js +1 -1
  24. package/dist/translations/hu.js +1 -1
  25. package/dist/translations/id.js +1 -1
  26. package/dist/translations/it.js +1 -1
  27. package/dist/translations/ja.js +1 -1
  28. package/dist/translations/jv.js +1 -1
  29. package/dist/translations/ko.js +1 -1
  30. package/dist/translations/lt.js +1 -1
  31. package/dist/translations/lv.js +1 -1
  32. package/dist/translations/ms.js +1 -1
  33. package/dist/translations/nl.js +1 -1
  34. package/dist/translations/no.js +1 -1
  35. package/dist/translations/pl.js +1 -1
  36. package/dist/translations/pt-br.js +1 -1
  37. package/dist/translations/pt.js +1 -1
  38. package/dist/translations/ro.js +1 -1
  39. package/dist/translations/ru.js +1 -1
  40. package/dist/translations/sk.js +1 -1
  41. package/dist/translations/sr-latn.js +1 -1
  42. package/dist/translations/sr.js +1 -1
  43. package/dist/translations/sv.js +1 -1
  44. package/dist/translations/th.js +1 -1
  45. package/dist/translations/tk.js +1 -1
  46. package/dist/translations/tr.js +1 -1
  47. package/dist/translations/ug.js +1 -1
  48. package/dist/translations/uk.js +1 -1
  49. package/dist/translations/ur.js +1 -1
  50. package/dist/translations/uz.js +1 -1
  51. package/dist/translations/vi.js +1 -1
  52. package/dist/translations/zh-cn.js +1 -1
  53. package/dist/translations/zh.js +1 -1
  54. package/package.json +4 -4
  55. package/src/adapters/aiadapter.js +1 -1
  56. package/src/adapters/aitextadapter.js +1 -1
  57. package/src/adapters/awstextadapter.js +1 -1
  58. package/src/adapters/openaitextadapter.js +1 -1
  59. package/src/aiassistant.js +1 -1
  60. package/src/aiassistantediting.js +1 -1
  61. package/src/aiassistantui.js +1 -1
  62. package/src/index.js +1 -1
  63. package/src/ui/aiassistantcontroller.js +1 -1
  64. package/src/ui/dropdown/aicommandslistview.js +1 -1
  65. package/src/ui/dropdown/buttonlabelwithhighlightview.js +1 -1
  66. package/src/ui/dropdown/labelwithhighlightview.js +1 -1
  67. package/src/ui/form/aiformcontentarea.js +1 -1
  68. package/src/ui/form/aiformerrorview.js +1 -1
  69. package/src/ui/form/aiformpromptview.js +1 -1
  70. package/src/ui/form/aiformtoolbarview.js +1 -1
  71. package/src/ui/form/aiformview.js +1 -1
  72. package/src/ui/form/aihistorylistitemview.js +1 -1
  73. package/src/ui/form/aihistorylistview.js +1 -1
  74. package/src/ui/form/prompthistory.js +1 -1
  75. package/src/ui/showaiassistantcommand.js +1 -1
  76. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'zh-cn':{'dictionary':{'Edit\x20or\x20review':'编辑或审核','Improve\x20writing':'改进写作','Make\x20shorter':'缩短','Make\x20longer':'加长','Simplify\x20language':'简化语言','Generate\x20from\x20selection':'根据选择内容生成','Summarize':'摘要','Continue':'继续','Change\x20tone':'更改基调','Professional':'专业','Casual':'随意','Direct':'直接','Confident':'自信','Friendly':'友好','Change\x20style':'更改风格','Business':'商务','Legal':'法律','Journalism':'旅游','Poetic':'诗意','Translate':'翻译','Translate\x20to\x20%0':'翻译为%0','English':'英语','Spanish':'西班牙语','German':'德语','Portuguese':'葡萄牙语','French':'法语','Simplified\x20Chinese':'简体中文','Hindi':'印地语','Arabic':'阿拉伯语','AI\x20Assistant':'AI\x20助手','AI\x20Commands':'AI\x20命令','Ask\x20AI\x20to\x20edit\x20or\x20generate':'要求\x20AI\x20编辑或生成','Ask\x20AI\x20to\x20improve\x20generated\x20text':'要求\x20AI\x20改进生成的文本','Copy':'复制','Submit':'提交','Insert\x20below':'在下面插入','Try\x20again':'重试','Stop':'停止','AI\x20is\x20writing...':'AI\x20正在撰写……','History':'历史记录','Empty\x20history':'空历史记录','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':'向\x20AI\x20提问,您的提示词将在此处列出,供您以后使用。','Prompt\x20history':'提示词历史记录','Search\x20AI\x20command':'搜索\x20AI\x20命令','No\x20commands\x20found':'未找到命令','No\x20commands\x20available':'没有可用的命令','AI_REPLACE_CONTENT':'替换','AI_INSERT_CONTENT':'插入','AI_ERROR_GET_HEADERS':'准备请求头失败','AI_ERROR_GET_PARAMETERS':'请求参数准备失败','AI_ERROR_UNSUPPORTED_MODEL':'不支持请求的\x20AI\x20模型\x20(\x22%0\x22)','AI_ERROR_CONTEXT_LENGTH':'选择的内容过长','AI_ERROR_MODERATION':'请求的查询不符合审查规则','AI_ERROR_FAILED':'跟\x20AI\x20服务通信失败'},'getPluralForm':_0x1d49eb=>0x0}};
23
+ export default{'zh-cn':{'dictionary':{'Edit\x20or\x20review':'编辑或审核','Improve\x20writing':'改进写作','Make\x20shorter':'缩短','Make\x20longer':'加长','Simplify\x20language':'简化语言','Generate\x20from\x20selection':'根据选择内容生成','Summarize':'摘要','Continue':'继续','Change\x20tone':'更改基调','Professional':'专业','Casual':'随意','Direct':'直接','Confident':'自信','Friendly':'友好','Change\x20style':'更改风格','Business':'商务','Legal':'法律','Journalism':'旅游','Poetic':'诗意','Translate':'翻译','Translate\x20to\x20%0':'翻译为%0','English':'英语','Spanish':'西班牙语','German':'德语','Portuguese':'葡萄牙语','French':'法语','Simplified\x20Chinese':'简体中文','Hindi':'印地语','Arabic':'阿拉伯语','AI\x20Assistant':'AI\x20助手','AI\x20Commands':'AI\x20命令','Ask\x20AI\x20to\x20edit\x20or\x20generate':'要求\x20AI\x20编辑或生成','Ask\x20AI\x20to\x20improve\x20generated\x20text':'要求\x20AI\x20改进生成的文本','Copy':'复制','Submit':'提交','Insert\x20below':'在下面插入','Try\x20again':'重试','Stop':'停止','AI\x20is\x20writing...':'AI\x20正在撰写……','History':'历史记录','Empty\x20history':'空历史记录','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':'向\x20AI\x20提问,您的提示词将在此处列出,供您以后使用。','Prompt\x20history':'提示词历史记录','Search\x20AI\x20command':'搜索\x20AI\x20命令','No\x20commands\x20found':'未找到命令','No\x20commands\x20available':'没有可用的命令','AI_REPLACE_CONTENT':'替换','AI_INSERT_CONTENT':'插入','AI_ERROR_GET_HEADERS':'准备请求头失败','AI_ERROR_GET_PARAMETERS':'请求参数准备失败','AI_ERROR_UNSUPPORTED_MODEL':'不支持请求的\x20AI\x20模型\x20(\x22%0\x22)','AI_ERROR_CONTEXT_LENGTH':'选择的内容过长','AI_ERROR_MODERATION':'请求的查询不符合审查规则','AI_ERROR_FAILED':'跟\x20AI\x20服务通信失败'},'getPluralForm':_0x59e7a1=>0x0}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'zh':{'dictionary':{'Edit\x20or\x20review':'編輯或檢閱','Improve\x20writing':'改善寫作','Make\x20shorter':'短一點','Make\x20longer':'長一點','Simplify\x20language':'簡化用語','Generate\x20from\x20selection':'依選擇範圍生成','Summarize':'總結','Continue':'繼續','Change\x20tone':'改變語調','Professional':'專業','Casual':'非正式','Direct':'直接','Confident':'自信','Friendly':'友善','Change\x20style':'改變風格','Business':'業務','Legal':'法務','Journalism':'報導','Poetic':'詩意','Translate':'翻譯','Translate\x20to\x20%0':'翻譯為%0','English':'英文','Spanish':'西班牙文','German':'德文','Portuguese':'葡萄牙文','French':'法文','Simplified\x20Chinese':'簡體中文','Hindi':'印地文','Arabic':'阿拉伯文','AI\x20Assistant':'AI\x20助理','AI\x20Commands':'AI\x20指令','Ask\x20AI\x20to\x20edit\x20or\x20generate':'要求\x20AI\x20編輯或生成內容','Ask\x20AI\x20to\x20improve\x20generated\x20text':'要求\x20AI\x20改善生成的文字','Copy':'複製','Submit':'送出','Insert\x20below':'在下方插入','Try\x20again':'重試','Stop':'停止','AI\x20is\x20writing...':'AI\x20撰寫中...','History':'紀錄','Empty\x20history':'無紀錄','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':'要求\x20AI\x20和您的提示詞會列出在此處,供您稍後使用。','Prompt\x20history':'提示詞紀錄','Search\x20AI\x20command':'搜尋\x20AI\x20指令','No\x20commands\x20found':'找不到指令','No\x20commands\x20available':'無可用指令','AI_REPLACE_CONTENT':'取代','AI_INSERT_CONTENT':'插入','AI_ERROR_GET_HEADERS':'要求標頭準備失敗','AI_ERROR_GET_PARAMETERS':'要求參數準備失敗','AI_ERROR_UNSUPPORTED_MODEL':'不支援要求的\x20AI\x20模型(\x22%0\x22)','AI_ERROR_CONTEXT_LENGTH':'選取內容過長','AI_ERROR_MODERATION':'提交的要求未通過審核規則','AI_ERROR_FAILED':'與\x20AI\x20服務通訊失敗'},'getPluralForm':_0x3b2d15=>0x0}};
23
+ export default{'zh':{'dictionary':{'Edit\x20or\x20review':'編輯或檢閱','Improve\x20writing':'改善寫作','Make\x20shorter':'短一點','Make\x20longer':'長一點','Simplify\x20language':'簡化用語','Generate\x20from\x20selection':'依選擇範圍生成','Summarize':'總結','Continue':'繼續','Change\x20tone':'改變語調','Professional':'專業','Casual':'非正式','Direct':'直接','Confident':'自信','Friendly':'友善','Change\x20style':'改變風格','Business':'業務','Legal':'法務','Journalism':'報導','Poetic':'詩意','Translate':'翻譯','Translate\x20to\x20%0':'翻譯為%0','English':'英文','Spanish':'西班牙文','German':'德文','Portuguese':'葡萄牙文','French':'法文','Simplified\x20Chinese':'簡體中文','Hindi':'印地文','Arabic':'阿拉伯文','AI\x20Assistant':'AI\x20助理','AI\x20Commands':'AI\x20指令','Ask\x20AI\x20to\x20edit\x20or\x20generate':'要求\x20AI\x20編輯或生成內容','Ask\x20AI\x20to\x20improve\x20generated\x20text':'要求\x20AI\x20改善生成的文字','Copy':'複製','Submit':'送出','Insert\x20below':'在下方插入','Try\x20again':'重試','Stop':'停止','AI\x20is\x20writing...':'AI\x20撰寫中...','History':'紀錄','Empty\x20history':'無紀錄','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':'要求\x20AI\x20和您的提示詞會列出在此處,供您稍後使用。','Prompt\x20history':'提示詞紀錄','Search\x20AI\x20command':'搜尋\x20AI\x20指令','No\x20commands\x20found':'找不到指令','No\x20commands\x20available':'無可用指令','AI_REPLACE_CONTENT':'取代','AI_INSERT_CONTENT':'插入','AI_ERROR_GET_HEADERS':'要求標頭準備失敗','AI_ERROR_GET_PARAMETERS':'要求參數準備失敗','AI_ERROR_UNSUPPORTED_MODEL':'不支援要求的\x20AI\x20模型(\x22%0\x22)','AI_ERROR_CONTEXT_LENGTH':'選取內容過長','AI_ERROR_MODERATION':'提交的要求未通過審核規則','AI_ERROR_FAILED':'與\x20AI\x20服務通訊失敗'},'getPluralForm':_0x42a5a2=>0x0}};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ai",
3
- "version": "41.3.0-alpha.3",
3
+ "version": "41.3.0-alpha.4",
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": "41.3.0-alpha.3",
27
- "ckeditor5-collaboration": "41.3.0-alpha.3",
26
+ "ckeditor5": "41.3.0-alpha.4",
27
+ "ckeditor5-collaboration": "41.3.0-alpha.4",
28
28
  "@aws-sdk/client-bedrock-runtime": "3.470.0",
29
- "@ckeditor/ckeditor5-ui": "41.3.0-alpha.3",
29
+ "@ckeditor/ckeditor5-ui": "41.3.0-alpha.4",
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 _0x4b756d=_0x4735;function _0x4735(_0x51a8fa,_0x2eb9d9){var _0x32b108=_0x32b1();return _0x4735=function(_0x473544,_0x528bb6){_0x473544=_0x473544-0x148;var _0x42c2d8=_0x32b108[_0x473544];return _0x42c2d8;},_0x4735(_0x51a8fa,_0x2eb9d9);}(function(_0x280d10,_0x248059){var _0xde6782=_0x4735,_0x3c8513=_0x280d10();while(!![]){try{var _0x5bc7ba=-parseInt(_0xde6782(0x150))/0x1+-parseInt(_0xde6782(0x14e))/0x2+parseInt(_0xde6782(0x154))/0x3+-parseInt(_0xde6782(0x149))/0x4+parseInt(_0xde6782(0x156))/0x5+parseInt(_0xde6782(0x14c))/0x6+-parseInt(_0xde6782(0x14a))/0x7*(parseInt(_0xde6782(0x148))/0x8);if(_0x5bc7ba===_0x248059)break;else _0x3c8513['push'](_0x3c8513['shift']());}catch(_0x131312){_0x3c8513['push'](_0x3c8513['shift']());}}}(_0x32b1,0xb0be7));import{Plugin as _0x5699c1}from'ckeditor5/src/core.js';function _0x32b1(){var _0x4cc6b8=['afterInit','pluginName','aiadapter-text-adapter-not-set','659937XuXwPs','name','5677640PHLxqQ','64JdkIvy','542624nKroSM','273707bDivbV','AIRequestError','3110064aWdlBw','AIAdapter','92154ryAxVx','textAdapter','655367BzJEee'];_0x32b1=function(){return _0x4cc6b8;};return _0x32b1();}import{CKEditorError as _0x2f1bc5}from'ckeditor5/src/utils.js';export default class I extends _0x5699c1{static get[_0x4b756d(0x152)](){var _0x34efd5=_0x4b756d;return _0x34efd5(0x14d);}[_0x4b756d(0x151)](){var _0x595bee=_0x4b756d;if(!this[_0x595bee(0x14f)])throw new _0x2f1bc5(_0x595bee(0x153),null);}}export class AIRequestError extends Error{constructor(_0x267a00){var _0x3204c0=_0x4b756d;super(_0x267a00),this[_0x3204c0(0x155)]=_0x3204c0(0x14b);}}
23
+ var _0x49c0a5=_0x2721;function _0x237b(){var _0x533c42=['4ChRfwZ','6739992TJCyYL','18kGkpxs','1033878GIGgJP','textAdapter','6490840sCivqA','4kzXjap','pluginName','42weOEqY','3393731oiwfwj','AIAdapter','aiadapter-text-adapter-not-set','AIRequestError','228612SfvChH','2384840QilKmR','afterInit','509691wZCMLe','name'];_0x237b=function(){return _0x533c42;};return _0x237b();}function _0x2721(_0x49c500,_0x40f90c){var _0x237b04=_0x237b();return _0x2721=function(_0x2721f9,_0x216049){_0x2721f9=_0x2721f9-0x74;var _0x18c505=_0x237b04[_0x2721f9];return _0x18c505;},_0x2721(_0x49c500,_0x40f90c);}(function(_0x3c90c5,_0xdce47a){var _0x115c2f=_0x2721,_0x49f34f=_0x3c90c5();while(!![]){try{var _0x4d895b=parseInt(_0x115c2f(0x79))/0x1+parseInt(_0x115c2f(0x76))/0x2*(-parseInt(_0x115c2f(0x83))/0x3)+parseInt(_0x115c2f(0x7c))/0x4*(parseInt(_0x115c2f(0x84))/0x5)+-parseInt(_0x115c2f(0x7e))/0x6*(parseInt(_0x115c2f(0x74))/0x7)+parseInt(_0x115c2f(0x77))/0x8+parseInt(_0x115c2f(0x78))/0x9*(-parseInt(_0x115c2f(0x7b))/0xa)+parseInt(_0x115c2f(0x7f))/0xb;if(_0x4d895b===_0xdce47a)break;else _0x49f34f['push'](_0x49f34f['shift']());}catch(_0x567d2b){_0x49f34f['push'](_0x49f34f['shift']());}}}(_0x237b,0xab49f));import{Plugin as _0x1af316}from'ckeditor5/src/core.js';import{CKEditorError as _0x3852cb}from'ckeditor5/src/utils.js';export default class I extends _0x1af316{static get[_0x49c0a5(0x7d)](){var _0x91187f=_0x49c0a5;return _0x91187f(0x80);}[_0x49c0a5(0x85)](){var _0x442efd=_0x49c0a5;if(!this[_0x442efd(0x7a)])throw new _0x3852cb(_0x442efd(0x81),null);}}export class AIRequestError extends Error{constructor(_0x259731){var _0xcd85ba=_0x49c0a5;super(_0x259731),this[_0xcd85ba(0x75)]=_0xcd85ba(0x82);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xb192(){const _0x2b3fa6=['5NOPZmx','AI_ERROR_GET_PARAMETERS','sendRequest','requires','catch','signal','init','plugins','makeRequest','editor','abort','name','get','320KkRwsA','error','604491JiDydf','_prepareRequestParameters','4816190uqArIP','1858xmpUgI','aborted','_prepareRequestHeaders','AI_ERROR_GET_HEADERS','object','AbortError','application/json','reject','aitextadapter-send-request-failed','textAdapter','2111112BVSsiM','locale','assign','52641NNDxJw','resolve','129768JwYkEE','abortController','55xBpHqJ','2222339PxhYoh','4HaiVPC','456OmjJef'];_0xb192=function(){return _0x2b3fa6;};return _0xb192();}const _0x37a194=_0x4b5f;(function(_0x113581,_0x5cd1db){const _0x463f8a=_0x4b5f,_0x24877a=_0x113581();while(!![]){try{const _0x4ff0e7=parseInt(_0x463f8a(0x10c))/0x1*(parseInt(_0x463f8a(0x107))/0x2)+parseInt(_0x463f8a(0x109))/0x3*(parseInt(_0x463f8a(0xf8))/0x4)+parseInt(_0x463f8a(0xfa))/0x5*(-parseInt(_0x463f8a(0xef))/0x6)+parseInt(_0x463f8a(0xf7))/0x7+parseInt(_0x463f8a(0xf9))/0x8*(parseInt(_0x463f8a(0xf2))/0x9)+-parseInt(_0x463f8a(0x10b))/0xa+-parseInt(_0x463f8a(0xf6))/0xb*(parseInt(_0x463f8a(0xf4))/0xc);if(_0x4ff0e7===_0x5cd1db)break;else _0x24877a['push'](_0x24877a['shift']());}catch(_0x5cd1e9){_0x24877a['push'](_0x24877a['shift']());}}}(_0xb192,0x3ffda));function _0x4b5f(_0x1fa445,_0x4c0039){const _0xb1923=_0xb192();return _0x4b5f=function(_0x4b5fcc,_0x5ef1f9){_0x4b5fcc=_0x4b5fcc-0xe8;let _0x2d28ed=_0xb1923[_0x4b5fcc];return _0x2d28ed;},_0x4b5f(_0x1fa445,_0x4c0039);}import{Plugin as _0x587a7d}from'ckeditor5/src/core.js';import{CKEditorError as _0x1afa2e}from'ckeditor5/src/utils.js';import{default as _0x414a92,AIRequestError as _0x20c24a}from'./aiadapter.js';import{getTranslation as _0x4b8b90}from'../utils/common-translations.js';export default class _ extends _0x587a7d{static get[_0x37a194(0xfd)](){return[_0x414a92];}constructor(_0x5efefc){const _0x5c863c=_0x37a194;super(_0x5efefc),this[_0x5c863c(0xf5)]=new AbortController();}[_0x37a194(0x100)](){const _0x5317e4=_0x37a194;this[_0x5317e4(0x103)][_0x5317e4(0x101)][_0x5317e4(0x106)](_0x414a92)[_0x5317e4(0xee)]=this;}[_0x37a194(0x104)](){const _0x2032e0=_0x37a194;this[_0x2032e0(0xf5)][_0x2032e0(0xff)][_0x2032e0(0x10d)]||(this[_0x2032e0(0xf5)][_0x2032e0(0x104)](),this[_0x2032e0(0xf5)]=new AbortController());}async[_0x37a194(0x102)](_0x313417){const _0x5bd8c2=_0x37a194;return this[_0x5bd8c2(0xfc)](_0x313417)[_0x5bd8c2(0xfe)](_0x2db995=>{const _0x594fce=_0x5bd8c2;if(_0x2db995 instanceof _0x20c24a)return Promise[_0x594fce(0xec)](_0x2db995);if(_0x594fce(0xea)==_0x2db995[_0x594fce(0x105)])return Promise[_0x594fce(0xf3)]();throw console[_0x594fce(0x108)](_0x2db995),new _0x1afa2e(_0x594fce(0xed),null);});}async[_0x37a194(0x10e)](_0x26a63c,_0x2c3c55){const _0x421855=_0x37a194,_0x45e29b=this[_0x421855(0x103)][_0x421855(0xf0)],_0x2b9a4c={'Content-Type':_0x421855(0xeb)};if(_0x421855(0xe9)==typeof _0x26a63c)Object[_0x421855(0xf1)](_0x2b9a4c,_0x26a63c);else{if(_0x26a63c)try{const _0x3b10d9=await _0x26a63c(_0x2c3c55);Object[_0x421855(0xf1)](_0x2b9a4c,_0x3b10d9);}catch(_0x2b5a62){return Promise[_0x421855(0xec)](new _0x20c24a(_0x4b8b90(_0x45e29b,_0x421855(0xe8))));}}return _0x2b9a4c;}async[_0x37a194(0x10a)](_0x1e9e64,_0x4d2b19){const _0x386b20=_0x37a194,_0x4f7bd5=this[_0x386b20(0x103)][_0x386b20(0xf0)];if(_0x386b20(0xe9)==typeof _0x1e9e64)return _0x1e9e64;try{return await _0x1e9e64(_0x4d2b19);}catch(_0x2889f6){return Promise[_0x386b20(0xec)](new _0x20c24a(_0x4b8b90(_0x4f7bd5,_0x386b20(0xfb))));}}}
23
+ const _0x124d1b=_0x5cae;function _0x5cae(_0x3351aa,_0xe57fe3){const _0x5a5af8=_0x5a5a();return _0x5cae=function(_0x5cae1f,_0x31e7ce){_0x5cae1f=_0x5cae1f-0x116;let _0x1e9330=_0x5a5af8[_0x5cae1f];return _0x1e9330;},_0x5cae(_0x3351aa,_0xe57fe3);}(function(_0x5c483f,_0x17b2af){const _0x3cbae8=_0x5cae,_0x242679=_0x5c483f();while(!![]){try{const _0x23866b=-parseInt(_0x3cbae8(0x11b))/0x1*(-parseInt(_0x3cbae8(0x125))/0x2)+parseInt(_0x3cbae8(0x13a))/0x3+-parseInt(_0x3cbae8(0x12c))/0x4*(parseInt(_0x3cbae8(0x12f))/0x5)+-parseInt(_0x3cbae8(0x118))/0x6*(parseInt(_0x3cbae8(0x11a))/0x7)+parseInt(_0x3cbae8(0x132))/0x8*(-parseInt(_0x3cbae8(0x122))/0x9)+-parseInt(_0x3cbae8(0x138))/0xa*(parseInt(_0x3cbae8(0x127))/0xb)+parseInt(_0x3cbae8(0x12a))/0xc;if(_0x23866b===_0x17b2af)break;else _0x242679['push'](_0x242679['shift']());}catch(_0xf71eec){_0x242679['push'](_0x242679['shift']());}}}(_0x5a5a,0x58f2e));import{Plugin as _0xf29f8a}from'ckeditor5/src/core.js';function _0x5a5a(){const _0x3523e8=['locale','sendRequest','10EbbZSd','error','1391352XEongb','makeRequest','name','AbortError','requires','6FCsVGa','_prepareRequestParameters','760739dZzpyG','3650nBPvOq','init','_prepareRequestHeaders','resolve','aborted','abort','abortController','19368fdNwbx','AI_ERROR_GET_HEADERS','AI_ERROR_GET_PARAMETERS','266XAqgza','get','2894573jJleUQ','object','signal','7339308sjDEej','assign','4ohLJJk','plugins','reject','1347365XGRrry','catch','aitextadapter-send-request-failed','2064zPcIEI','application/json','textAdapter','editor'];_0x5a5a=function(){return _0x3523e8;};return _0x5a5a();}import{CKEditorError as _0x14489e}from'ckeditor5/src/utils.js';import{default as _0x4bdc6b,AIRequestError as _0x30e548}from'./aiadapter.js';import{getTranslation as _0x54e3c1}from'../utils/common-translations.js';export default class _ extends _0xf29f8a{static get[_0x124d1b(0x117)](){return[_0x4bdc6b];}constructor(_0x1ef50a){const _0x3c8b72=_0x124d1b;super(_0x1ef50a),this[_0x3c8b72(0x121)]=new AbortController();}[_0x124d1b(0x11c)](){const _0x1c6e9d=_0x124d1b;this[_0x1c6e9d(0x135)][_0x1c6e9d(0x12d)][_0x1c6e9d(0x126)](_0x4bdc6b)[_0x1c6e9d(0x134)]=this;}[_0x124d1b(0x120)](){const _0x11b5f1=_0x124d1b;this[_0x11b5f1(0x121)][_0x11b5f1(0x129)][_0x11b5f1(0x11f)]||(this[_0x11b5f1(0x121)][_0x11b5f1(0x120)](),this[_0x11b5f1(0x121)]=new AbortController());}async[_0x124d1b(0x13b)](_0x34d8c5){const _0x586843=_0x124d1b;return this[_0x586843(0x137)](_0x34d8c5)[_0x586843(0x130)](_0x38cb20=>{const _0xfef302=_0x586843;if(_0x38cb20 instanceof _0x30e548)return Promise[_0xfef302(0x12e)](_0x38cb20);if(_0xfef302(0x116)==_0x38cb20[_0xfef302(0x13c)])return Promise[_0xfef302(0x11e)]();throw console[_0xfef302(0x139)](_0x38cb20),new _0x14489e(_0xfef302(0x131),null);});}async[_0x124d1b(0x11d)](_0x4dcf1d,_0x218679){const _0xec449a=_0x124d1b,_0x18bfc5=this[_0xec449a(0x135)][_0xec449a(0x136)],_0x74b9eb={'Content-Type':_0xec449a(0x133)};if(_0xec449a(0x128)==typeof _0x4dcf1d)Object[_0xec449a(0x12b)](_0x74b9eb,_0x4dcf1d);else{if(_0x4dcf1d)try{const _0x57798=await _0x4dcf1d(_0x218679);Object[_0xec449a(0x12b)](_0x74b9eb,_0x57798);}catch(_0x2c26c5){return Promise[_0xec449a(0x12e)](new _0x30e548(_0x54e3c1(_0x18bfc5,_0xec449a(0x123))));}}return _0x74b9eb;}async[_0x124d1b(0x119)](_0x140392,_0x39b233){const _0x21d18a=_0x124d1b,_0x4413d3=this[_0x21d18a(0x135)][_0x21d18a(0x136)];if(_0x21d18a(0x128)==typeof _0x140392)return _0x140392;try{return await _0x140392(_0x39b233);}catch(_0xc8b893){return Promise[_0x21d18a(0x12e)](new _0x30e548(_0x54e3c1(_0x4413d3,_0x21d18a(0x124))));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39b3c6=_0x4f47;(function(_0x15c4d9,_0x4df2c4){const _0x52d732=_0x4f47,_0x1cc2fc=_0x15c4d9();while(!![]){try{const _0x4a8c88=-parseInt(_0x52d732(0xe6))/0x1+parseInt(_0x52d732(0xd3))/0x2*(parseInt(_0x52d732(0xb0))/0x3)+-parseInt(_0x52d732(0xbd))/0x4+parseInt(_0x52d732(0xd8))/0x5+parseInt(_0x52d732(0xdf))/0x6*(parseInt(_0x52d732(0xe5))/0x7)+-parseInt(_0x52d732(0xdb))/0x8+parseInt(_0x52d732(0xf8))/0x9*(parseInt(_0x52d732(0xab))/0xa);if(_0x4a8c88===_0x4df2c4)break;else _0x1cc2fc['push'](_0x1cc2fc['shift']());}catch(_0x2709e3){_0x1cc2fc['push'](_0x1cc2fc['shift']());}}}(_0x2471,0xcd1b7));import{default as _0x4d60a2}from'./aitextadapter.js';import{AIRequestError as _0x4dfb02}from'./aiadapter.js';import{BedrockRuntimeClient as _0x561287,InvokeModelCommand as _0x5541f7,InvokeModelWithResponseStreamCommand as _0x21d114}from'@aws-sdk/client-bedrock-runtime';function _0x4f47(_0x1b05e7,_0x264645){const _0x2471b6=_0x2471();return _0x4f47=function(_0x4f471c,_0xb384d4){_0x4f471c=_0x4f471c-0xa8;let _0x219a83=_0x2471b6[_0x4f471c];return _0x219a83;},_0x4f47(_0x1b05e7,_0x264645);}import{getTranslation as _0x5c6338}from'../utils/common-translations.js';function _0x2471(){const _0x4eaae1=['441610WEfYKP','anthropic.claude','length','json','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','268815mpuhhu','parse','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.','config','sendRequest','_bedrockClientConfig','anthropic.claude-v2','ai.aws.requestParameters','cohere.command','toString','filter','completion','Instruction:\x0a','5066160EDJXtF','utf-8','_requestParameters','_readStreamableResponse','stringify','_readStaticResponse','_requestHeaders','test','meta.llama','chunk','resolve','signal','ai.aws.requestHeaders','AI_ERROR_UNSUPPORTED_MODEL','preparePrompt','generation','ai21.j2','Human:\x0a','_processAWSRequest','split','send','<<SYS>>\x0a','4WaDLSZ','AWSTextAdapter','bedrock-2023-05-31','\x0a[/INST]','_apiUrl','372710bedMDf','data','get','4255960WtmSgm','utf8','define','_processProxyRequest','6mlEFLc','ai.aws.apiUrl','_readAsyncIterableResponse','completions','pluginName','_getGeneratedText','9136155QpHFIe','421737UevRJH','\x0a<</SYS>>\x0a[INST]\x0a','body','_prepareRequestParameters','abortController','text','application/json','POST','from','editor','read','locale','generations','join','bytes','ai.aws.bedrockClientConfig','map','getModelFamily','306mlqHWX','\x0a\x0aAssistant:','getReader','_prepareRequestHeaders','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.','decode'];_0x2471=function(){return _0x4eaae1;};return _0x2471();}export default class q extends _0x4d60a2{static get[_0x39b3c6(0xe3)](){const _0x1a484e=_0x39b3c6;return _0x1a484e(0xd4);}constructor(_0x1f3f5b){const _0x3c79d4=_0x39b3c6;super(_0x1f3f5b),_0x1f3f5b[_0x3c79d4(0xb3)][_0x3c79d4(0xda)](_0x3c79d4(0xb7))||_0x1f3f5b[_0x3c79d4(0xb3)][_0x3c79d4(0xdd)](_0x3c79d4(0xb7),{'model':_0x3c79d4(0xb6),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x3c79d4(0xd5),'stream':!0x0}),this[_0x3c79d4(0xd7)]=_0x1f3f5b[_0x3c79d4(0xb3)][_0x3c79d4(0xda)](_0x3c79d4(0xe0)),this[_0x3c79d4(0xb5)]=_0x1f3f5b[_0x3c79d4(0xb3)][_0x3c79d4(0xda)](_0x3c79d4(0xf5)),this[_0x3c79d4(0xc3)]=_0x1f3f5b[_0x3c79d4(0xb3)][_0x3c79d4(0xda)](_0x3c79d4(0xc9)),this[_0x3c79d4(0xbf)]=_0x1f3f5b[_0x3c79d4(0xb3)][_0x3c79d4(0xda)](_0x3c79d4(0xb7));}async[_0x39b3c6(0xb4)]({query:_0x17cc5b,context:_0xf44273,onData:_0x1863d7,actionId:_0x21e3ed}){const _0x3abe1d=_0x39b3c6,{model:_0x3b6f71,stream:_0x300003,..._0x5165fc}=await this[_0x3abe1d(0xe9)](this[_0x3abe1d(0xbf)],_0x21e3ed),_0x11bd3e={'prompt':await this[_0x3abe1d(0xcb)](_0x17cc5b,_0xf44273,_0x3b6f71,_0x21e3ed),..._0x5165fc};this[_0x3abe1d(0xd7)]?await this[_0x3abe1d(0xde)](_0x11bd3e,_0x3b6f71,_0x300003,_0x1863d7,_0x21e3ed):await this[_0x3abe1d(0xcf)](_0x11bd3e,_0x3b6f71,_0x300003,_0x1863d7);}async[_0x39b3c6(0xcb)](_0x4a7ddc,_0xcd11d4,_0x31835e,_0xa5f2e8){const _0xa2f9bb=_0x39b3c6;let _0x2bf620,_0x26485a;return _0xcd11d4?(_0x2bf620=_0xa2f9bb(0xa9),_0x26485a=_0xa2f9bb(0xbc)+_0x4a7ddc+_0xa2f9bb(0xaf)+_0xcd11d4):(_0x2bf620=_0xa2f9bb(0xb2),_0x26485a=_0x4a7ddc),_0xa2f9bb(0xc5)==this[_0xa2f9bb(0xf7)](_0x31835e)?_0xa2f9bb(0xd2)+_0x2bf620+_0xa2f9bb(0xe7)+_0x26485a+_0xa2f9bb(0xd6):_0xa2f9bb(0xce)+_0x2bf620+'\x0a'+_0x26485a+_0xa2f9bb(0xf9);}[_0x39b3c6(0xf7)](_0x2889f6){const _0x2466be=_0x39b3c6;if(/^anthropic\.claude/[_0x2466be(0xc4)](_0x2889f6))return _0x2466be(0xac);if(/^ai21\.j2/[_0x2466be(0xc4)](_0x2889f6))return _0x2466be(0xcd);if(/^cohere\.command/[_0x2466be(0xc4)](_0x2889f6))return _0x2466be(0xb8);if(/^meta\.llama/[_0x2466be(0xc4)](_0x2889f6))return _0x2466be(0xc5);throw new _0x4dfb02(_0x5c6338(this[_0x2466be(0xef)][_0x2466be(0xf1)],_0x2466be(0xca),_0x2889f6));}async[_0x39b3c6(0xde)](_0x4dea05,_0x37c447,_0x19a2f3,_0x148037,_0xd2ae4c){const _0x5da6ee=_0x39b3c6,_0x5162cc={'method':_0x5da6ee(0xed),'headers':await this[_0x5da6ee(0xa8)](this[_0x5da6ee(0xc3)],_0xd2ae4c),'body':JSON[_0x5da6ee(0xc1)]({..._0x4dea05,'model':_0x37c447,'stream':_0x19a2f3}),'signal':this[_0x5da6ee(0xea)][_0x5da6ee(0xc8)]},_0x3601b4=await fetch(this[_0x5da6ee(0xd7)],_0x5162cc);_0x19a2f3?await this[_0x5da6ee(0xc0)](_0x3601b4,_0x37c447,_0x148037):await this[_0x5da6ee(0xc2)](_0x3601b4,_0x37c447,_0x148037);}async[_0x39b3c6(0xcf)](_0xe2bef6,_0x269a34,_0x45c807,_0x5beca3){const _0x3cbbe7=_0x39b3c6,_0x3638cc=new _0x561287(this[_0x3cbbe7(0xb5)]),_0x35b891={'body':JSON[_0x3cbbe7(0xc1)](_0xe2bef6),'contentType':_0x3cbbe7(0xec),'accept':_0x3cbbe7(0xec),'modelId':_0x269a34};let _0x238cb6;if(_0x45c807){const _0x1f3cb8=new _0x21d114(_0x35b891);_0x238cb6=await _0x3638cc[_0x3cbbe7(0xd1)](_0x1f3cb8,{'abortSignal':this[_0x3cbbe7(0xea)][_0x3cbbe7(0xc8)]}),await this[_0x3cbbe7(0xe1)](_0x238cb6,_0x269a34,_0x5beca3);}else{const _0x363ede=new _0x5541f7(_0x35b891);_0x238cb6=await _0x3638cc[_0x3cbbe7(0xd1)](_0x363ede,{'abortSignal':this[_0x3cbbe7(0xea)][_0x3cbbe7(0xc8)]}),await this[_0x3cbbe7(0xc2)](_0x238cb6,_0x269a34,_0x5beca3);}}async[_0x39b3c6(0xe1)](_0x1a52c7,_0x54c73d,_0x4ff1d0){const _0x5d22b0=_0x39b3c6,_0x489a92=_0x1a52c7[_0x5d22b0(0xe8)],_0x149600=new TextDecoder(_0x5d22b0(0xbe));let _0x4e233d='';for await(const _0x36f7ba of _0x489a92)if(_0x36f7ba[_0x5d22b0(0xc6)]){const _0xff32cd=_0x149600[_0x5d22b0(0xaa)](_0x36f7ba[_0x5d22b0(0xc6)][_0x5d22b0(0xf4)]),_0x11e3d4=JSON[_0x5d22b0(0xb1)](_0xff32cd);_0x4e233d+=this[_0x5d22b0(0xe4)](_0x11e3d4,_0x54c73d),_0x4ff1d0(_0x4e233d);}return Promise[_0x5d22b0(0xc7)]();}async[_0x39b3c6(0xc0)](_0x3cb82b,_0x448198,_0x195483){const _0x21aed8=_0x39b3c6,_0x5e978f=_0x3cb82b[_0x21aed8(0xe8)],_0x483c45=new TextDecoder(_0x21aed8(0xbe)),_0x383f4e=_0x5e978f[_0x21aed8(0xfa)]();let _0x4aed73='',_0x33daf2='',_0x49c532=!0x1;for(;!_0x49c532;){const {done:_0x307bd8,value:_0x3236bf}=await _0x383f4e[_0x21aed8(0xf0)]();if(_0x49c532=_0x307bd8,_0x49c532)break;const _0x484756=(_0x4aed73+_0x483c45[_0x21aed8(0xaa)](_0x3236bf))[_0x21aed8(0xd0)]('\x0a')[_0x21aed8(0xf6)](_0x4cfe4f=>{const _0x7c46a9=_0x21aed8;try{return _0x4aed73='',JSON[_0x7c46a9(0xb1)](_0x4cfe4f);}catch(_0x2ead8d){return _0x4aed73=_0x4cfe4f,null;}})[_0x21aed8(0xba)](_0x2c3d21=>null!==_0x2c3d21);_0x484756[_0x21aed8(0xad)]&&(_0x33daf2+=_0x484756[_0x21aed8(0xf6)](_0x83b99=>this[_0x21aed8(0xe4)](_0x83b99,_0x448198))[_0x21aed8(0xf3)](''),_0x195483(_0x33daf2));}return Promise[_0x21aed8(0xc7)]();}async[_0x39b3c6(0xc2)](_0x111421,_0x48bfe7,_0xffd75e){const _0x513e65=_0x39b3c6;let _0x16108c;return _0x16108c=_0x111421 instanceof Response?await _0x111421[_0x513e65(0xae)]():JSON[_0x513e65(0xb1)](Buffer[_0x513e65(0xee)](_0x111421[_0x513e65(0xe8)])[_0x513e65(0xb9)](_0x513e65(0xdc))),(_0xffd75e(this[_0x513e65(0xe4)](_0x16108c,_0x48bfe7)),Promise[_0x513e65(0xc7)]());}[_0x39b3c6(0xe4)](_0x294cce,_0x1e2a69){const _0x53f5d4=_0x39b3c6;switch(this[_0x53f5d4(0xf7)](_0x1e2a69)){case _0x53f5d4(0xac):return _0x294cce[_0x53f5d4(0xbb)];case _0x53f5d4(0xcd):return _0x294cce[_0x53f5d4(0xe2)][0x0][_0x53f5d4(0xd9)][_0x53f5d4(0xeb)];case _0x53f5d4(0xb8):return _0x294cce[_0x53f5d4(0xf2)][0x0][_0x53f5d4(0xeb)];case _0x53f5d4(0xc5):return _0x294cce[_0x53f5d4(0xcc)];}}}
23
+ const _0x4b79f6=_0x2b17;(function(_0x3f4463,_0x9c3cb){const _0x4bb40f=_0x2b17,_0x4817ed=_0x3f4463();while(!![]){try{const _0x5ba867=-parseInt(_0x4bb40f(0x1e7))/0x1+parseInt(_0x4bb40f(0x1ef))/0x2*(-parseInt(_0x4bb40f(0x1dc))/0x3)+-parseInt(_0x4bb40f(0x1c7))/0x4*(parseInt(_0x4bb40f(0x1d8))/0x5)+parseInt(_0x4bb40f(0x1b1))/0x6+-parseInt(_0x4bb40f(0x1cb))/0x7*(parseInt(_0x4bb40f(0x1b3))/0x8)+-parseInt(_0x4bb40f(0x1ba))/0x9*(-parseInt(_0x4bb40f(0x1e9))/0xa)+-parseInt(_0x4bb40f(0x1ed))/0xb*(-parseInt(_0x4bb40f(0x1d2))/0xc);if(_0x5ba867===_0x9c3cb)break;else _0x4817ed['push'](_0x4817ed['shift']());}catch(_0x5b1a62){_0x4817ed['push'](_0x4817ed['shift']());}}}(_0x188e,0x86c75));import{default as _0x555d41}from'./aitextadapter.js';import{AIRequestError as _0x3ed823}from'./aiadapter.js';function _0x188e(){const _0xd5ee4b=['AI_ERROR_UNSUPPORTED_MODEL','utf-8','abortController','decode','body','_readStreamableResponse','548838GbiyTE','POST','120330yufEIW','read','_processProxyRequest','_readStaticResponse','55mJOEnj','preparePrompt','53530NXJmpg','_prepareRequestParameters','_processAWSRequest','\x0a[/INST]','completion','data','_apiUrl','generations','test','generation','_getGeneratedText','utf8','from','_bedrockClientConfig','get','completions','<<SYS>>\x0a','anthropic.claude','\x0a\x0aAssistant:','stringify','cohere.command','_requestHeaders','map','6046848dfFjpf','bedrock-2023-05-31','47624YkKoIO','ai21.j2','sendRequest','define','bytes','AWSTextAdapter','length','333vflNKO','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','resolve','locale','anthropic.claude-v2','_prepareRequestHeaders','split','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','toString','join','\x0a<</SYS>>\x0a[INST]\x0a','_readAsyncIterableResponse','Instruction:\x0a','144GoIYZN','getModelFamily','application/json','editor','1099PSEChj','ai.aws.apiUrl','config','send','signal','filter','json','4084560lKTeHj','getReader','parse','pluginName','chunk','ai.aws.requestHeaders','77410MbvzbG','text','ai.aws.requestParameters','ai.aws.bedrockClientConfig','63bYFCNk','_requestParameters','meta.llama','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.','Human:\x0a'];_0x188e=function(){return _0xd5ee4b;};return _0x188e();}import{BedrockRuntimeClient as _0x2576aa,InvokeModelCommand as _0x139653,InvokeModelWithResponseStreamCommand as _0x3134c1}from'@aws-sdk/client-bedrock-runtime';function _0x2b17(_0x4abf50,_0x51d09e){const _0x188e4c=_0x188e();return _0x2b17=function(_0x2b177f,_0x5ba5c3){_0x2b177f=_0x2b177f-0x1ac;let _0x331559=_0x188e4c[_0x2b177f];return _0x331559;},_0x2b17(_0x4abf50,_0x51d09e);}import{getTranslation as _0x5f1f9f}from'../utils/common-translations.js';export default class q extends _0x555d41{static get[_0x4b79f6(0x1d5)](){const _0x3ea098=_0x4b79f6;return _0x3ea098(0x1b8);}constructor(_0x5e1911){const _0x5e12df=_0x4b79f6;super(_0x5e1911),_0x5e1911[_0x5e12df(0x1cd)][_0x5e12df(0x1fd)](_0x5e12df(0x1da))||_0x5e1911[_0x5e12df(0x1cd)][_0x5e12df(0x1b6)](_0x5e12df(0x1da),{'model':_0x5e12df(0x1be),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x5e12df(0x1b2),'stream':!0x0}),this[_0x5e12df(0x1f5)]=_0x5e1911[_0x5e12df(0x1cd)][_0x5e12df(0x1fd)](_0x5e12df(0x1cc)),this[_0x5e12df(0x1fc)]=_0x5e1911[_0x5e12df(0x1cd)][_0x5e12df(0x1fd)](_0x5e12df(0x1db)),this[_0x5e12df(0x1af)]=_0x5e1911[_0x5e12df(0x1cd)][_0x5e12df(0x1fd)](_0x5e12df(0x1d7)),this[_0x5e12df(0x1dd)]=_0x5e1911[_0x5e12df(0x1cd)][_0x5e12df(0x1fd)](_0x5e12df(0x1da));}async[_0x4b79f6(0x1b5)]({query:_0x3ac809,context:_0x2b729f,onData:_0x2ff626,actionId:_0x29dcf1}){const _0x2c823a=_0x4b79f6,{model:_0x51ff1b,stream:_0x19c2de,..._0x1c24c1}=await this[_0x2c823a(0x1f0)](this[_0x2c823a(0x1dd)],_0x29dcf1),_0x271024={'prompt':await this[_0x2c823a(0x1ee)](_0x3ac809,_0x2b729f,_0x51ff1b,_0x29dcf1),..._0x1c24c1};this[_0x2c823a(0x1f5)]?await this[_0x2c823a(0x1eb)](_0x271024,_0x51ff1b,_0x19c2de,_0x2ff626,_0x29dcf1):await this[_0x2c823a(0x1f1)](_0x271024,_0x51ff1b,_0x19c2de,_0x2ff626);}async[_0x4b79f6(0x1ee)](_0x5be093,_0x5c44ac,_0x2d5a78,_0x1559c8){const _0x26d2bc=_0x4b79f6;let _0x5555d1,_0x27b417;return _0x5c44ac?(_0x5555d1=_0x26d2bc(0x1df),_0x27b417=_0x26d2bc(0x1c6)+_0x5be093+_0x26d2bc(0x1bb)+_0x5c44ac):(_0x5555d1=_0x26d2bc(0x1c1),_0x27b417=_0x5be093),_0x26d2bc(0x1de)==this[_0x26d2bc(0x1c8)](_0x2d5a78)?_0x26d2bc(0x1ff)+_0x5555d1+_0x26d2bc(0x1c4)+_0x27b417+_0x26d2bc(0x1f2):_0x26d2bc(0x1e0)+_0x5555d1+'\x0a'+_0x27b417+_0x26d2bc(0x1ac);}[_0x4b79f6(0x1c8)](_0x1cb72d){const _0x3d967b=_0x4b79f6;if(/^anthropic\.claude/[_0x3d967b(0x1f7)](_0x1cb72d))return _0x3d967b(0x200);if(/^ai21\.j2/[_0x3d967b(0x1f7)](_0x1cb72d))return _0x3d967b(0x1b4);if(/^cohere\.command/[_0x3d967b(0x1f7)](_0x1cb72d))return _0x3d967b(0x1ae);if(/^meta\.llama/[_0x3d967b(0x1f7)](_0x1cb72d))return _0x3d967b(0x1de);throw new _0x3ed823(_0x5f1f9f(this[_0x3d967b(0x1ca)][_0x3d967b(0x1bd)],_0x3d967b(0x1e1),_0x1cb72d));}async[_0x4b79f6(0x1eb)](_0x201b10,_0x59d775,_0x47c168,_0x4908e6,_0x4349a0){const _0xffbe1b=_0x4b79f6,_0x211b02={'method':_0xffbe1b(0x1e8),'headers':await this[_0xffbe1b(0x1bf)](this[_0xffbe1b(0x1af)],_0x4349a0),'body':JSON[_0xffbe1b(0x1ad)]({..._0x201b10,'model':_0x59d775,'stream':_0x47c168}),'signal':this[_0xffbe1b(0x1e3)][_0xffbe1b(0x1cf)]},_0x34dfe3=await fetch(this[_0xffbe1b(0x1f5)],_0x211b02);_0x47c168?await this[_0xffbe1b(0x1e6)](_0x34dfe3,_0x59d775,_0x4908e6):await this[_0xffbe1b(0x1ec)](_0x34dfe3,_0x59d775,_0x4908e6);}async[_0x4b79f6(0x1f1)](_0x40001b,_0xf559cc,_0x5655d5,_0xdebe9b){const _0x2fe16a=_0x4b79f6,_0x415da6=new _0x2576aa(this[_0x2fe16a(0x1fc)]),_0x3ef54c={'body':JSON[_0x2fe16a(0x1ad)](_0x40001b),'contentType':_0x2fe16a(0x1c9),'accept':_0x2fe16a(0x1c9),'modelId':_0xf559cc};let _0xbfe3d4;if(_0x5655d5){const _0x466250=new _0x3134c1(_0x3ef54c);_0xbfe3d4=await _0x415da6[_0x2fe16a(0x1ce)](_0x466250,{'abortSignal':this[_0x2fe16a(0x1e3)][_0x2fe16a(0x1cf)]}),await this[_0x2fe16a(0x1c5)](_0xbfe3d4,_0xf559cc,_0xdebe9b);}else{const _0x411a1b=new _0x139653(_0x3ef54c);_0xbfe3d4=await _0x415da6[_0x2fe16a(0x1ce)](_0x411a1b,{'abortSignal':this[_0x2fe16a(0x1e3)][_0x2fe16a(0x1cf)]}),await this[_0x2fe16a(0x1ec)](_0xbfe3d4,_0xf559cc,_0xdebe9b);}}async[_0x4b79f6(0x1c5)](_0x47ad13,_0x7893d4,_0x2760b1){const _0x5957b3=_0x4b79f6,_0x2a2b61=_0x47ad13[_0x5957b3(0x1e5)],_0x3e993a=new TextDecoder(_0x5957b3(0x1e2));let _0x15a77d='';for await(const _0x44ca3b of _0x2a2b61)if(_0x44ca3b[_0x5957b3(0x1d6)]){const _0x2d98c7=_0x3e993a[_0x5957b3(0x1e4)](_0x44ca3b[_0x5957b3(0x1d6)][_0x5957b3(0x1b7)]),_0x78046d=JSON[_0x5957b3(0x1d4)](_0x2d98c7);_0x15a77d+=this[_0x5957b3(0x1f9)](_0x78046d,_0x7893d4),_0x2760b1(_0x15a77d);}return Promise[_0x5957b3(0x1bc)]();}async[_0x4b79f6(0x1e6)](_0x3d2d34,_0x42869c,_0x2edbfd){const _0x274ea4=_0x4b79f6,_0x43bea5=_0x3d2d34[_0x274ea4(0x1e5)],_0x1ebfe6=new TextDecoder(_0x274ea4(0x1e2)),_0x11bdcd=_0x43bea5[_0x274ea4(0x1d3)]();let _0x42996f='',_0x1b9cfd='',_0x2735de=!0x1;for(;!_0x2735de;){const {done:_0x18182e,value:_0x3d16dc}=await _0x11bdcd[_0x274ea4(0x1ea)]();if(_0x2735de=_0x18182e,_0x2735de)break;const _0x30cdbd=(_0x42996f+_0x1ebfe6[_0x274ea4(0x1e4)](_0x3d16dc))[_0x274ea4(0x1c0)]('\x0a')[_0x274ea4(0x1b0)](_0x351027=>{const _0x6b5465=_0x274ea4;try{return _0x42996f='',JSON[_0x6b5465(0x1d4)](_0x351027);}catch(_0x2dbfca){return _0x42996f=_0x351027,null;}})[_0x274ea4(0x1d0)](_0x56807e=>null!==_0x56807e);_0x30cdbd[_0x274ea4(0x1b9)]&&(_0x1b9cfd+=_0x30cdbd[_0x274ea4(0x1b0)](_0x1a3dc4=>this[_0x274ea4(0x1f9)](_0x1a3dc4,_0x42869c))[_0x274ea4(0x1c3)](''),_0x2edbfd(_0x1b9cfd));}return Promise[_0x274ea4(0x1bc)]();}async[_0x4b79f6(0x1ec)](_0x7f4ba2,_0x49f2ba,_0x12d376){const _0x52fb93=_0x4b79f6;let _0x1b04d4;return _0x1b04d4=_0x7f4ba2 instanceof Response?await _0x7f4ba2[_0x52fb93(0x1d1)]():JSON[_0x52fb93(0x1d4)](Buffer[_0x52fb93(0x1fb)](_0x7f4ba2[_0x52fb93(0x1e5)])[_0x52fb93(0x1c2)](_0x52fb93(0x1fa))),(_0x12d376(this[_0x52fb93(0x1f9)](_0x1b04d4,_0x49f2ba)),Promise[_0x52fb93(0x1bc)]());}[_0x4b79f6(0x1f9)](_0x275005,_0x4f67ba){const _0x572196=_0x4b79f6;switch(this[_0x572196(0x1c8)](_0x4f67ba)){case _0x572196(0x200):return _0x275005[_0x572196(0x1f3)];case _0x572196(0x1b4):return _0x275005[_0x572196(0x1fe)][0x0][_0x572196(0x1f4)][_0x572196(0x1d9)];case _0x572196(0x1ae):return _0x275005[_0x572196(0x1f6)][0x0][_0x572196(0x1d9)];case _0x572196(0x1de):return _0x275005[_0x572196(0x1f8)];}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x157f(_0x4a22ac,_0x2cd660){const _0x942398=_0x9423();return _0x157f=function(_0x157f50,_0x5738f6){_0x157f50=_0x157f50-0x10c;let _0x4b78b7=_0x942398[_0x157f50];return _0x4b78b7;},_0x157f(_0x4a22ac,_0x2cd660);}const _0x3d3aea=_0x157f;function _0x9423(){const _0x511366=['abortController','system','define','body','editor','split','1001721PAhLPS','includes','Moderation','stream','signal','join','delta','_requestParameters','3990mHkRIT','_readStaticResponse','OpenAITextAdapter','read','https://api.openai.com/v1/chat/completions','message','AI_ERROR_CONTEXT_LENGTH','3998776HuQtdu','locale','1984yBJFML','context_length_exceeded','_requestHeaders','decode','reject','text','10139778KlmaaV','resolve','7hnWhLn','parse','stringify','AI_ERROR_MODERATION','POST','_apiUrl','gpt-3.5-turbo','_isBufferIncomplete','ai.openAI.requestParameters','config','[DONE]','get','_prepareRequestParameters','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.','9106192LZoKlA','1479310knICXm','length','filter','_readStreamableResponse','6Mgxdtp','2154815QIQaIp','_prepareRequestHeaders','data:\x20','ai.openAI.apiUrl','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','json','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','sendRequest','ai.openAI.requestHeaders','user','_cleanUpData','map','getReader','pluginName','prepareMessages','content','Instruction:\x0a','replace','choices'];_0x9423=function(){return _0x511366;};return _0x9423();}(function(_0x1b66b8,_0x33d5ef){const _0x354d2f=_0x157f,_0x4cee2c=_0x1b66b8();while(!![]){try{const _0xb823bc=parseInt(_0x354d2f(0x11c))/0x1+parseInt(_0x354d2f(0x12d))/0x2*(-parseInt(_0x354d2f(0x124))/0x3)+-parseInt(_0x354d2f(0x12b))/0x4+parseInt(_0x354d2f(0x149))/0x5*(-parseInt(_0x354d2f(0x148))/0x6)+-parseInt(_0x354d2f(0x135))/0x7*(-parseInt(_0x354d2f(0x143))/0x8)+parseInt(_0x354d2f(0x133))/0x9+parseInt(_0x354d2f(0x144))/0xa;if(_0xb823bc===_0x33d5ef)break;else _0x4cee2c['push'](_0x4cee2c['shift']());}catch(_0x1c48a1){_0x4cee2c['push'](_0x4cee2c['shift']());}}}(_0x9423,0xa23e7));import{default as _0x277ded}from'./aitextadapter.js';import{AIRequestError as _0x316f31}from'./aiadapter.js';import{getTranslation as _0x35eca7}from'../utils/common-translations.js';export default class M extends _0x277ded{static get[_0x3d3aea(0x110)](){const _0x3001c0=_0x3d3aea;return _0x3001c0(0x126);}constructor(_0x3a6133){const _0x35675e=_0x3d3aea;super(_0x3a6133),_0x3a6133[_0x35675e(0x13e)][_0x35675e(0x118)](_0x35675e(0x14c),_0x35675e(0x128)),_0x3a6133[_0x35675e(0x13e)][_0x35675e(0x140)](_0x35675e(0x13d))||_0x3a6133[_0x35675e(0x13e)][_0x35675e(0x118)](_0x35675e(0x13d),{'model':_0x35675e(0x13b),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x35675e(0x13a)]=_0x3a6133[_0x35675e(0x13e)][_0x35675e(0x140)](_0x35675e(0x14c)),this[_0x35675e(0x12f)]=_0x3a6133[_0x35675e(0x13e)][_0x35675e(0x140)](_0x35675e(0x151))||{},this[_0x35675e(0x123)]=_0x3a6133[_0x35675e(0x13e)][_0x35675e(0x140)](_0x35675e(0x13d));}async[_0x3d3aea(0x150)]({query:_0x494bb1,context:_0x744bad,onData:_0x40b6ef,actionId:_0x4acd79}){const _0x13a000=_0x3d3aea,_0x483861=this[_0x13a000(0x11a)][_0x13a000(0x12c)],_0x562937=await this[_0x13a000(0x111)](_0x494bb1,_0x744bad,_0x4acd79),_0x2fc4de=await this[_0x13a000(0x14a)](this[_0x13a000(0x12f)],_0x4acd79),_0x556932=await this[_0x13a000(0x141)](this[_0x13a000(0x123)],_0x4acd79),_0x17101d={'messages':_0x562937,..._0x556932},_0x2d5fc9={'method':_0x13a000(0x139),'headers':_0x2fc4de,'body':JSON[_0x13a000(0x137)](_0x17101d),'signal':this[_0x13a000(0x116)][_0x13a000(0x120)]},_0x4d879f=await fetch(this[_0x13a000(0x13a)],_0x2d5fc9);if(_0x4d879f['ok'])return _0x556932[_0x13a000(0x11f)]?await this[_0x13a000(0x147)](_0x4d879f,_0x40b6ef):await this[_0x13a000(0x125)](_0x4d879f,_0x40b6ef),Promise[_0x13a000(0x134)]();{const _0x168f77=await _0x4d879f[_0x13a000(0x132)]();return _0x168f77[_0x13a000(0x11d)](_0x13a000(0x12e))?Promise[_0x13a000(0x131)](new _0x316f31(_0x35eca7(_0x483861,_0x13a000(0x12a)))):_0x168f77[_0x13a000(0x11d)](_0x13a000(0x11e))?Promise[_0x13a000(0x131)](new _0x316f31(_0x35eca7(_0x483861,_0x13a000(0x138)))):Promise[_0x13a000(0x131)](new Error(_0x168f77));}}async[_0x3d3aea(0x111)](_0x126912,_0x5418a5,_0x4bf4be){const _0x994f12=_0x3d3aea;let _0x5ae1fa,_0x3626cd;return _0x5418a5?(_0x5ae1fa=_0x994f12(0x142),_0x3626cd=_0x994f12(0x113)+_0x126912+_0x994f12(0x14f)+_0x5418a5):(_0x5ae1fa=_0x994f12(0x14d),_0x3626cd=_0x126912),[{'role':_0x994f12(0x117),'content':_0x5ae1fa},{'role':_0x994f12(0x10c),'content':_0x3626cd}];}async[_0x3d3aea(0x147)](_0x502817,_0x3bae6e){const _0xdd2d85=_0x3d3aea,_0x68981d=_0x502817[_0xdd2d85(0x119)][_0xdd2d85(0x10f)](),_0x40e661=new TextDecoder();let _0x3f0001='',_0x5ee42a='',_0x5bb49a='',_0x23efbb=!0x1;for(;!_0x23efbb;){const {done:_0x3d161c,value:_0x29c56f}=await _0x68981d[_0xdd2d85(0x127)](),_0x46801b=_0x3f0001+_0x40e661[_0xdd2d85(0x130)](_0x29c56f);let _0x212e93='';_0x23efbb=_0x3d161c;try{_0x212e93=this[_0xdd2d85(0x10d)](_0x46801b),_0x3f0001='';}catch(_0x4c904b){_0x3f0001=_0x46801b;continue;}_0x5ee42a+=_0x212e93,!_0x23efbb&&this[_0xdd2d85(0x13c)](_0x5ee42a)||_0x5ee42a&&(_0x5bb49a+=_0x5ee42a,_0x5ee42a='',_0x3bae6e(_0x5bb49a));}return Promise[_0xdd2d85(0x134)]();}async[_0x3d3aea(0x125)](_0x698277,_0x2d9ed5){const _0x4a51b8=_0x3d3aea;return _0x2d9ed5((await _0x698277[_0x4a51b8(0x14e)]())[_0x4a51b8(0x115)][0x0][_0x4a51b8(0x129)][_0x4a51b8(0x112)]),Promise[_0x4a51b8(0x134)]();}[_0x3d3aea(0x13c)](_0x1e4b23){const _0x2e01e6=_0x3d3aea,_0x349e1f=_0x1e4b23[_0x2e01e6(0x11b)]('<')[_0x2e01e6(0x145)]!==_0x1e4b23[_0x2e01e6(0x11b)]('>')[_0x2e01e6(0x145)],_0x173f48=_0x1e4b23[_0x2e01e6(0x145)]<0x1e;return _0x349e1f&&_0x173f48;}[_0x3d3aea(0x10d)](_0x37a481){const _0x56bd54=_0x3d3aea;return _0x37a481[_0x56bd54(0x11b)](/\n(?![^{]*\})/g)[_0x56bd54(0x10e)](_0x442b61=>_0x442b61[_0x56bd54(0x114)](_0x56bd54(0x14b),''))[_0x56bd54(0x146)](_0xcee25a=>_0xcee25a&&_0xcee25a[_0x56bd54(0x145)]>0x0&&_0x56bd54(0x13f)!==_0xcee25a)[_0x56bd54(0x10e)](_0x3492aa=>{const _0x2f29e1=_0x56bd54,{choices:_0x541f48}=JSON[_0x2f29e1(0x136)](_0x3492aa);if(_0x541f48[0x0]&&_0x541f48[0x0][_0x2f29e1(0x122)]&&_0x541f48[0x0][_0x2f29e1(0x122)][_0x2f29e1(0x112)])return _0x541f48[0x0][_0x2f29e1(0x122)][_0x2f29e1(0x112)];})[_0x56bd54(0x146)](_0x1e1ebe=>_0x1e1ebe)[_0x56bd54(0x121)]('');}}
23
+ function _0x17de(){const _0x260475=['config','20hZEKxq','context_length_exceeded','473408eVLMTn','getReader','19817380jyTdmJ','define','includes','_prepareRequestParameters','data:\x20','_readStaticResponse','_cleanUpData','reject','abortController','replace','OpenAITextAdapter','delta','1237425lksbSZ','AI_ERROR_CONTEXT_LENGTH','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_requestParameters','decode','4VmUEgi','8100846QNlHHb','4497372zkTaQv','3242510sJqoJd','choices','POST','join','json','ai.openAI.requestHeaders','map','_apiUrl','body','ai.openAI.apiUrl','AI_ERROR_MODERATION','gpt-3.5-turbo','read','length','Moderation','stream','Instruction:\x0a','_requestHeaders','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.','_isBufferIncomplete','locale','3GwzPxx','https://api.openai.com/v1/chat/completions','get','text','ai.openAI.requestParameters','_prepareRequestHeaders','content','prepareMessages','[DONE]','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.','filter','sendRequest','user','editor','2201412YpgWjR','message','stringify','signal','system','split','parse','pluginName','resolve','8nCZyBj','_readStreamableResponse'];_0x17de=function(){return _0x260475;};return _0x17de();}const _0x2385c5=_0x5050;(function(_0x3194ff,_0x300b75){const _0x192b21=_0x5050,_0x29c5cf=_0x3194ff();while(!![]){try{const _0x38d173=-parseInt(_0x192b21(0x111))/0x1+parseInt(_0x192b21(0x103))/0x2*(-parseInt(_0x192b21(0xf5))/0x3)+parseInt(_0x192b21(0x124))/0x4*(-parseInt(_0x192b21(0x127))/0x5)+-parseInt(_0x192b21(0x125))/0x6+parseInt(_0x192b21(0x11f))/0x7*(parseInt(_0x192b21(0x10c))/0x8)+parseInt(_0x192b21(0x126))/0x9+-parseInt(_0x192b21(0x10f))/0xa*(-parseInt(_0x192b21(0x113))/0xb);if(_0x38d173===_0x300b75)break;else _0x29c5cf['push'](_0x29c5cf['shift']());}catch(_0x66f1e){_0x29c5cf['push'](_0x29c5cf['shift']());}}}(_0x17de,0xac946));function _0x5050(_0x360f5b,_0x5317ef){const _0x17de88=_0x17de();return _0x5050=function(_0x505089,_0x10d689){_0x505089=_0x505089-0xef;let _0x3507c0=_0x17de88[_0x505089];return _0x3507c0;},_0x5050(_0x360f5b,_0x5317ef);}import{default as _0x485840}from'./aitextadapter.js';import{AIRequestError as _0x89767d}from'./aiadapter.js';import{getTranslation as _0x34d1b5}from'../utils/common-translations.js';export default class M extends _0x485840{static get[_0x2385c5(0x10a)](){const _0x271185=_0x2385c5;return _0x271185(0x11d);}constructor(_0x5186c1){const _0x3c6942=_0x2385c5;super(_0x5186c1),_0x5186c1[_0x3c6942(0x10e)][_0x3c6942(0x114)](_0x3c6942(0x130),_0x3c6942(0xf6)),_0x5186c1[_0x3c6942(0x10e)][_0x3c6942(0xf7)](_0x3c6942(0xf9))||_0x5186c1[_0x3c6942(0x10e)][_0x3c6942(0x114)](_0x3c6942(0xf9),{'model':_0x3c6942(0x132),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x3c6942(0x12e)]=_0x5186c1[_0x3c6942(0x10e)][_0x3c6942(0xf7)](_0x3c6942(0x130)),this[_0x3c6942(0xf1)]=_0x5186c1[_0x3c6942(0x10e)][_0x3c6942(0xf7)](_0x3c6942(0x12c))||{},this[_0x3c6942(0x122)]=_0x5186c1[_0x3c6942(0x10e)][_0x3c6942(0xf7)](_0x3c6942(0xf9));}async[_0x2385c5(0x100)]({query:_0x59d549,context:_0x48b7ce,onData:_0xeb9dad,actionId:_0x31b9bc}){const _0x51ef80=_0x2385c5,_0x48dd01=this[_0x51ef80(0x102)][_0x51ef80(0xf4)],_0x8190dc=await this[_0x51ef80(0xfc)](_0x59d549,_0x48b7ce,_0x31b9bc),_0x216370=await this[_0x51ef80(0xfa)](this[_0x51ef80(0xf1)],_0x31b9bc),_0x22dac9=await this[_0x51ef80(0x116)](this[_0x51ef80(0x122)],_0x31b9bc),_0x593515={'messages':_0x8190dc,..._0x22dac9},_0x1ebcb7={'method':_0x51ef80(0x129),'headers':_0x216370,'body':JSON[_0x51ef80(0x105)](_0x593515),'signal':this[_0x51ef80(0x11b)][_0x51ef80(0x106)]},_0x18fa90=await fetch(this[_0x51ef80(0x12e)],_0x1ebcb7);if(_0x18fa90['ok'])return _0x22dac9[_0x51ef80(0xef)]?await this[_0x51ef80(0x10d)](_0x18fa90,_0xeb9dad):await this[_0x51ef80(0x118)](_0x18fa90,_0xeb9dad),Promise[_0x51ef80(0x10b)]();{const _0x42d9d3=await _0x18fa90[_0x51ef80(0xf8)]();return _0x42d9d3[_0x51ef80(0x115)](_0x51ef80(0x110))?Promise[_0x51ef80(0x11a)](new _0x89767d(_0x34d1b5(_0x48dd01,_0x51ef80(0x120)))):_0x42d9d3[_0x51ef80(0x115)](_0x51ef80(0x135))?Promise[_0x51ef80(0x11a)](new _0x89767d(_0x34d1b5(_0x48dd01,_0x51ef80(0x131)))):Promise[_0x51ef80(0x11a)](new Error(_0x42d9d3));}}async[_0x2385c5(0xfc)](_0x11491b,_0xaac1e5,_0x4a8080){const _0x23b592=_0x2385c5;let _0x487a9e,_0x2a69b5;return _0xaac1e5?(_0x487a9e=_0x23b592(0xfe),_0x2a69b5=_0x23b592(0xf0)+_0x11491b+_0x23b592(0x121)+_0xaac1e5):(_0x487a9e=_0x23b592(0xf2),_0x2a69b5=_0x11491b),[{'role':_0x23b592(0x107),'content':_0x487a9e},{'role':_0x23b592(0x101),'content':_0x2a69b5}];}async[_0x2385c5(0x10d)](_0x581763,_0x360240){const _0x40860a=_0x2385c5,_0x5c36c8=_0x581763[_0x40860a(0x12f)][_0x40860a(0x112)](),_0x1cd0b2=new TextDecoder();let _0x491c32='',_0x39753b='',_0x313e90='',_0x25f3e4=!0x1;for(;!_0x25f3e4;){const {done:_0x2e36ba,value:_0x5092c7}=await _0x5c36c8[_0x40860a(0x133)](),_0x502d68=_0x491c32+_0x1cd0b2[_0x40860a(0x123)](_0x5092c7);let _0x2fa640='';_0x25f3e4=_0x2e36ba;try{_0x2fa640=this[_0x40860a(0x119)](_0x502d68),_0x491c32='';}catch(_0x3180c2){_0x491c32=_0x502d68;continue;}_0x39753b+=_0x2fa640,!_0x25f3e4&&this[_0x40860a(0xf3)](_0x39753b)||_0x39753b&&(_0x313e90+=_0x39753b,_0x39753b='',_0x360240(_0x313e90));}return Promise[_0x40860a(0x10b)]();}async[_0x2385c5(0x118)](_0x27fe1c,_0x47d9e8){const _0x7303c6=_0x2385c5;return _0x47d9e8((await _0x27fe1c[_0x7303c6(0x12b)]())[_0x7303c6(0x128)][0x0][_0x7303c6(0x104)][_0x7303c6(0xfb)]),Promise[_0x7303c6(0x10b)]();}[_0x2385c5(0xf3)](_0x38ec15){const _0x45ba5a=_0x2385c5,_0x4a9e2e=_0x38ec15[_0x45ba5a(0x108)]('<')[_0x45ba5a(0x134)]!==_0x38ec15[_0x45ba5a(0x108)]('>')[_0x45ba5a(0x134)],_0x5cd07d=_0x38ec15[_0x45ba5a(0x134)]<0x1e;return _0x4a9e2e&&_0x5cd07d;}[_0x2385c5(0x119)](_0x148c26){const _0x112e63=_0x2385c5;return _0x148c26[_0x112e63(0x108)](/\n(?![^{]*\})/g)[_0x112e63(0x12d)](_0x216850=>_0x216850[_0x112e63(0x11c)](_0x112e63(0x117),''))[_0x112e63(0xff)](_0x1f331b=>_0x1f331b&&_0x1f331b[_0x112e63(0x134)]>0x0&&_0x112e63(0xfd)!==_0x1f331b)[_0x112e63(0x12d)](_0x46f44f=>{const _0x4c4a27=_0x112e63,{choices:_0x55e2ed}=JSON[_0x4c4a27(0x109)](_0x46f44f);if(_0x55e2ed[0x0]&&_0x55e2ed[0x0][_0x4c4a27(0x11e)]&&_0x55e2ed[0x0][_0x4c4a27(0x11e)][_0x4c4a27(0xfb)])return _0x55e2ed[0x0][_0x4c4a27(0x11e)][_0x4c4a27(0xfb)];})[_0x112e63(0xff)](_0x110448=>_0x110448)[_0x112e63(0x12a)]('');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x42e679=_0x2b09;(function(_0x4871fc,_0x12d036){const _0x290163=_0x2b09,_0x34a7d6=_0x4871fc();while(!![]){try{const _0x45b335=parseInt(_0x290163(0xf0))/0x1+-parseInt(_0x290163(0x96))/0x2+parseInt(_0x290163(0xf8))/0x3+-parseInt(_0x290163(0xaf))/0x4+-parseInt(_0x290163(0x9c))/0x5+-parseInt(_0x290163(0xb9))/0x6+parseInt(_0x290163(0x87))/0x7*(-parseInt(_0x290163(0x99))/0x8);if(_0x45b335===_0x12d036)break;else _0x34a7d6['push'](_0x34a7d6['shift']());}catch(_0x1784a7){_0x34a7d6['push'](_0x34a7d6['shift']());}}}(_0x5488,0x9aa1e));import{CKEditorError as _0x5e89c8}from'ckeditor5/src/utils.js';import{Plugin as _0x10ec2c}from'ckeditor5/src/core.js';function _0x2b09(_0x5235bc,_0x2b9f28){const _0x5488a2=_0x5488();return _0x2b09=function(_0x2b097e,_0xa9bde7){_0x2b097e=_0x2b097e-0x82;let _0x51541a=_0x5488a2[_0x2b097e];return _0x51541a;},_0x2b09(_0x5235bc,_0x2b9f28);}import _0x1b6c46 from'./aiassistantui.js';function _0x5488(){const _0x2637fe=['Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','1718952gfOlEQ','journalism','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Translate\x20the\x20content\x20to\x20German\x20language.','translate','Casual','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','1293964JsPLlH','translatePortuguese','requires','generate','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','config','makeLonger','Arabic','German','casual','Journalism','translateSpanish','makeShorter','Translate\x20the\x20content\x20to\x20English\x20language.','Simplified\x20Chinese','41136OvFEHL','init','summarize','8oEfPpK','Hindi','forEach','962110kmsADT','English','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Friendly','commands','continue','includes','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','groupId','business','ai.aiAssistant.commands','French','aiLicenseKeyTrial','friendly','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Continue','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','info','push','2174448YxHObe','Poetic','confident','define','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','simplifyLanguage','aiLicenseKeyInvalid','translateChinese','Translate\x20to\x20%0','professional','391836bHomwF','Confident','changeTone','aiLicenseKeyValid','Summarize','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','aiLicenseKeyTrialLimit:operations','translateEnglish','Spanish','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','get','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Edit\x20or\x20review','Business','Make\x20longer','poetic','translateFrench','Improve\x20writing','concat','Change\x20tone','translateHindi','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','changeStyle','licenseKey','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Legal','editor','Translate\x20the\x20content\x20to\x20French\x20language.','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','destroy','Direct','ai-invalid-license-key','set','editOrReview','pluginName','Translate\x20the\x20content\x20to\x20Arabic\x20language.','locale','ai.aiAssistant.extraCommandGroups','Make\x20shorter','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Portuguese','_licenseKeyCheckInterval','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.','filter','improveWriting','translateGerman','ai-trial-license-key-reached-limit-changes','find','AIAssistant','Generate\x20from\x20selection','ai.aiAssistant.removeCommands','Simplify\x20language','Professional','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','legal','1067150mbzQOb','Translate','Change\x20style','Translate\x20the\x20content\x20to\x20Hindi\x20language.','translateArabic','Translate\x20the\x20content\x20to\x20Spanish\x20language.','direct'];_0x5488=function(){return _0x2637fe;};return _0x5488();}import _0x599b8e from'./aiassistantediting.js';import{getTranslation as _0x2d8785}from'./utils/common-translations.js';export default class r extends _0x10ec2c{static get[_0x42e679(0x89)](){return[_0x1b6c46,_0x599b8e];}static get[_0x42e679(0xdb)](){const _0xa7d7d5=_0x42e679;return _0xa7d7d5(0xe9);}constructor(_0x4546b1){const _0x5d06f3=_0x42e679;super(_0x4546b1);const _0xf69f7d=_0x4546b1[_0x5d06f3(0x8c)];_0xf69f7d[_0x5d06f3(0xb2)](_0x5d06f3(0xa6),getDefaultCommands(_0x4546b1[_0x5d06f3(0xdd)])),_0xf69f7d[_0x5d06f3(0xb2)](_0x5d06f3(0xde),[]),_0xf69f7d[_0x5d06f3(0xb2)](_0x5d06f3(0xeb),[]);const _0x24de37=_0xf69f7d[_0x5d06f3(0xc3)](_0x5d06f3(0xa6)),_0x74ae4b=_0xf69f7d[_0x5d06f3(0xc3)](_0x5d06f3(0xde)),_0x550735=_0xf69f7d[_0x5d06f3(0xc3)](_0x5d06f3(0xeb));_0x74ae4b[_0x5d06f3(0x9b)](_0x22ab2d=>{const _0x244859=_0x5d06f3,_0x20c487=_0x24de37[_0x244859(0xe8)](_0x5e66e0=>_0x5e66e0[_0x244859(0xa4)]===_0x22ab2d[_0x244859(0xa4)]);_0x20c487?_0x20c487[_0x244859(0xa0)]=_0x20c487[_0x244859(0xa0)][_0x244859(0xcb)](_0x22ab2d[_0x244859(0xa0)]):_0x24de37[_0x244859(0xae)](_0x22ab2d);}),_0x24de37[_0x5d06f3(0x9b)](_0x14121b=>{const _0x3a7e75=_0x5d06f3;_0x14121b[_0x3a7e75(0xa0)]=_0x14121b[_0x3a7e75(0xa0)][_0x3a7e75(0xe4)](_0x3d7e64=>!_0x550735[_0x3a7e75(0xa2)](_0x3d7e64['id']));}),_0xf69f7d[_0x5d06f3(0xd9)](_0x5d06f3(0xa6),_0x24de37);}[_0x42e679(0x97)](){const _0x3d6ef1=_0x42e679,_0xd12c6f=this[_0x3d6ef1(0xd3)];this[_0x3d6ef1(0xd0)]=_0xd12c6f[_0x3d6ef1(0x8c)][_0x3d6ef1(0xc3)](_0x3d6ef1(0xd0)),this[_0x3d6ef1(0xe2)]=setInterval(()=>{const _0x3999ae=_0x3d6ef1;let _0x1b7703;for(const _0x2d44a3 in _0xd12c6f){const _0x67163d=_0x2d44a3,_0xd85905=_0xd12c6f[_0x67163d];if(_0x3999ae(0xa8)===_0xd85905||_0x3999ae(0xb5)===_0xd85905||_0x3999ae(0xbc)===_0xd85905||_0x3999ae(0xbf)===_0xd85905){delete _0xd12c6f[_0x67163d],_0x1b7703=_0xd85905;break;}}if(_0x3999ae(0xb5)===_0x1b7703)throw clearInterval(this[_0x3999ae(0xe2)]),new _0x5e89c8(_0x3999ae(0xd8),null);if(_0x3999ae(0xa8)===_0x1b7703&&console[_0x3999ae(0xad)](_0x3999ae(0xe3)),_0x3999ae(0xbf)===_0x1b7703)throw clearInterval(this[_0x3999ae(0xe2)]),new _0x5e89c8(_0x3999ae(0xe7),null);_0x3999ae(0xbc)===_0x1b7703&&clearInterval(this[_0x3999ae(0xe2)]);},0x3e8);}[_0x42e679(0xd6)](){const _0x8b2205=_0x42e679;this[_0x8b2205(0xe2)]&&clearInterval(this[_0x8b2205(0xe2)]);}}export function getDefaultCommands(_0x3e033c){const _0x29e75e=_0x42e679;return[{'groupId':_0x29e75e(0xda),'groupLabel':_0x2d8785(_0x3e033c,_0x29e75e(0xc5)),'commands':[{'id':_0x29e75e(0xe5),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xca)),'prompt':_0x29e75e(0x9e)},{'id':_0x29e75e(0x93),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xdf)),'prompt':_0x29e75e(0xd5)},{'id':_0x29e75e(0x8d),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xc7)),'prompt':_0x29e75e(0xbe)},{'id':_0x29e75e(0xb4),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xec)),'prompt':_0x29e75e(0xd1)}]},{'groupId':_0x29e75e(0x8a),'groupLabel':_0x2d8785(_0x3e033c,_0x29e75e(0xea)),'commands':[{'id':_0x29e75e(0x98),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xbd)),'prompt':_0x29e75e(0xb3)},{'id':_0x29e75e(0xa1),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xab)),'prompt':_0x29e75e(0xf7)}]},{'groupId':_0x29e75e(0xbb),'groupLabel':_0x2d8785(_0x3e033c,_0x29e75e(0xcc)),'commands':[{'id':_0x29e75e(0xb8),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xed)),'prompt':_0x29e75e(0x86)},{'id':_0x29e75e(0x90),'label':_0x2d8785(_0x3e033c,_0x29e75e(0x85)),'prompt':_0x29e75e(0xc4)},{'id':_0x29e75e(0xf6),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xd7)),'prompt':_0x29e75e(0x8b)},{'id':_0x29e75e(0xb1),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xba)),'prompt':_0x29e75e(0x82)},{'id':_0x29e75e(0xa9),'label':_0x2d8785(_0x3e033c,_0x29e75e(0x9f)),'prompt':_0x29e75e(0xa3)}]},{'groupId':_0x29e75e(0xcf),'groupLabel':_0x2d8785(_0x3e033c,_0x29e75e(0xf2)),'commands':[{'id':_0x29e75e(0xa5),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xc6)),'prompt':_0x29e75e(0xce)},{'id':_0x29e75e(0xef),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xd2)),'prompt':_0x29e75e(0xe0)},{'id':_0x29e75e(0xf9),'label':_0x2d8785(_0x3e033c,_0x29e75e(0x91)),'prompt':_0x29e75e(0xaa)},{'id':_0x29e75e(0xc8),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xb0)),'prompt':_0x29e75e(0xc2)}]},{'groupId':_0x29e75e(0x84),'groupLabel':_0x2d8785(_0x3e033c,_0x29e75e(0xf1)),'commands':[{'id':_0x29e75e(0xc0),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xb7),[_0x2d8785(_0x3e033c,_0x29e75e(0x9d))]),'prompt':_0x29e75e(0x94)},{'id':_0x29e75e(0x92),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xb7),[_0x2d8785(_0x3e033c,_0x29e75e(0xc1))]),'prompt':_0x29e75e(0xf5)},{'id':_0x29e75e(0x88),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xb7),[_0x2d8785(_0x3e033c,_0x29e75e(0xe1))]),'prompt':_0x29e75e(0xac)},{'id':_0x29e75e(0xe6),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xb7),[_0x2d8785(_0x3e033c,_0x29e75e(0x8f))]),'prompt':_0x29e75e(0x83)},{'id':_0x29e75e(0xc9),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xb7),[_0x2d8785(_0x3e033c,_0x29e75e(0xa7))]),'prompt':_0x29e75e(0xd4)},{'id':_0x29e75e(0xb6),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xb7),[_0x2d8785(_0x3e033c,_0x29e75e(0x95))]),'prompt':_0x29e75e(0xee)},{'id':_0x29e75e(0xcd),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xb7),[_0x2d8785(_0x3e033c,_0x29e75e(0x9a))]),'prompt':_0x29e75e(0xf3)},{'id':_0x29e75e(0xf4),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xb7),[_0x2d8785(_0x3e033c,_0x29e75e(0x8e))]),'prompt':_0x29e75e(0xdc)}]}];}
23
+ const _0x5c4a98=_0x5737;(function(_0x36129d,_0x1a2074){const _0x15e031=_0x5737,_0x24a416=_0x36129d();while(!![]){try{const _0x595d10=parseInt(_0x15e031(0x15d))/0x1*(parseInt(_0x15e031(0x116))/0x2)+-parseInt(_0x15e031(0x16f))/0x3*(parseInt(_0x15e031(0x102))/0x4)+parseInt(_0x15e031(0x142))/0x5+-parseInt(_0x15e031(0x12c))/0x6+-parseInt(_0x15e031(0x13b))/0x7+-parseInt(_0x15e031(0x156))/0x8+-parseInt(_0x15e031(0x175))/0x9*(-parseInt(_0x15e031(0x140))/0xa);if(_0x595d10===_0x1a2074)break;else _0x24a416['push'](_0x24a416['shift']());}catch(_0x264dcb){_0x24a416['push'](_0x24a416['shift']());}}}(_0x2c3c,0x379da));import{CKEditorError as _0x548db8}from'ckeditor5/src/utils.js';import{Plugin as _0x4b379e}from'ckeditor5/src/core.js';function _0x5737(_0x31183b,_0x2f092c){const _0x2c3cf7=_0x2c3c();return _0x5737=function(_0x573742,_0x20fb77){_0x573742=_0x573742-0xfc;let _0x47d2f9=_0x2c3cf7[_0x573742];return _0x47d2f9;},_0x5737(_0x31183b,_0x2f092c);}import _0x536c48 from'./aiassistantui.js';import _0x455b08 from'./aiassistantediting.js';import{getTranslation as _0x3dccb1}from'./utils/common-translations.js';export default class r extends _0x4b379e{static get[_0x5c4a98(0x170)](){return[_0x536c48,_0x455b08];}static get[_0x5c4a98(0x10a)](){const _0x3d6595=_0x5c4a98;return _0x3d6595(0x14b);}constructor(_0x44e449){const _0x4dec4c=_0x5c4a98;super(_0x44e449);const _0x12ba3e=_0x44e449[_0x4dec4c(0x11e)];_0x12ba3e[_0x4dec4c(0x174)](_0x4dec4c(0x159),getDefaultCommands(_0x44e449[_0x4dec4c(0x114)])),_0x12ba3e[_0x4dec4c(0x174)](_0x4dec4c(0x149),[]),_0x12ba3e[_0x4dec4c(0x174)](_0x4dec4c(0x163),[]);const _0x5257db=_0x12ba3e[_0x4dec4c(0x138)](_0x4dec4c(0x159)),_0x5a7443=_0x12ba3e[_0x4dec4c(0x138)](_0x4dec4c(0x149)),_0x3becfc=_0x12ba3e[_0x4dec4c(0x138)](_0x4dec4c(0x163));_0x5a7443[_0x4dec4c(0x121)](_0x1f26b3=>{const _0x5ee201=_0x4dec4c,_0x2a81e3=_0x5257db[_0x5ee201(0x15b)](_0x546897=>_0x546897[_0x5ee201(0x12b)]===_0x1f26b3[_0x5ee201(0x12b)]);_0x2a81e3?_0x2a81e3[_0x5ee201(0x129)]=_0x2a81e3[_0x5ee201(0x129)][_0x5ee201(0x11b)](_0x1f26b3[_0x5ee201(0x129)]):_0x5257db[_0x5ee201(0x15e)](_0x1f26b3);}),_0x5257db[_0x4dec4c(0x121)](_0x428ed7=>{const _0x4a59c5=_0x4dec4c;_0x428ed7[_0x4a59c5(0x129)]=_0x428ed7[_0x4a59c5(0x129)][_0x4a59c5(0x100)](_0xe0b010=>!_0x3becfc[_0x4a59c5(0x162)](_0xe0b010['id']));}),_0x12ba3e[_0x4dec4c(0x13e)](_0x4dec4c(0x159),_0x5257db);}[_0x5c4a98(0x157)](){const _0x39884a=_0x5c4a98,_0xd689ef=this[_0x39884a(0x128)];this[_0x39884a(0x146)]=_0xd689ef[_0x39884a(0x11e)][_0x39884a(0x138)](_0x39884a(0x146)),this[_0x39884a(0x122)]=setInterval(()=>{const _0x181f43=_0x39884a;let _0x20c458;for(const _0x416050 in _0xd689ef){const _0x3d8105=_0x416050,_0x15852c=_0xd689ef[_0x3d8105];if(_0x181f43(0x158)===_0x15852c||_0x181f43(0x150)===_0x15852c||_0x181f43(0x110)===_0x15852c||_0x181f43(0x164)===_0x15852c){delete _0xd689ef[_0x3d8105],_0x20c458=_0x15852c;break;}}if(_0x181f43(0x150)===_0x20c458)throw clearInterval(this[_0x181f43(0x122)]),new _0x548db8(_0x181f43(0x14e),null);if(_0x181f43(0x158)===_0x20c458&&console[_0x181f43(0x169)](_0x181f43(0x104)),_0x181f43(0x164)===_0x20c458)throw clearInterval(this[_0x181f43(0x122)]),new _0x548db8(_0x181f43(0x144),null);_0x181f43(0x110)===_0x20c458&&clearInterval(this[_0x181f43(0x122)]);},0x3e8);}[_0x5c4a98(0x14c)](){const _0x570544=_0x5c4a98;this[_0x570544(0x122)]&&clearInterval(this[_0x570544(0x122)]);}}export function getDefaultCommands(_0x2ff80c){const _0x481b97=_0x5c4a98;return[{'groupId':_0x481b97(0x14d),'groupLabel':_0x3dccb1(_0x2ff80c,_0x481b97(0x125)),'commands':[{'id':_0x481b97(0x108),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x10c)),'prompt':_0x481b97(0x13f)},{'id':_0x481b97(0x148),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x166)),'prompt':_0x481b97(0x15c)},{'id':_0x481b97(0x173),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x145)),'prompt':_0x481b97(0x101)},{'id':_0x481b97(0x123),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x10f)),'prompt':_0x481b97(0x160)}]},{'groupId':_0x481b97(0x15a),'groupLabel':_0x3dccb1(_0x2ff80c,_0x481b97(0x126)),'commands':[{'id':_0x481b97(0x168),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x10d)),'prompt':_0x481b97(0xfe)},{'id':_0x481b97(0x127),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x135)),'prompt':_0x481b97(0x165)}]},{'groupId':_0x481b97(0x151),'groupLabel':_0x3dccb1(_0x2ff80c,_0x481b97(0x113)),'commands':[{'id':_0x481b97(0x152),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x115)),'prompt':_0x481b97(0x153)},{'id':_0x481b97(0x137),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x14f)),'prompt':_0x481b97(0x16e)},{'id':_0x481b97(0x117),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x154)),'prompt':_0x481b97(0x143)},{'id':_0x481b97(0x12a),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x134)),'prompt':_0x481b97(0x119)},{'id':_0x481b97(0x106),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x161)),'prompt':_0x481b97(0x103)}]},{'groupId':_0x481b97(0x155),'groupLabel':_0x3dccb1(_0x2ff80c,_0x481b97(0x132)),'commands':[{'id':_0x481b97(0xfc),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x13d)),'prompt':_0x481b97(0xfd)},{'id':_0x481b97(0x16b),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x12d)),'prompt':_0x481b97(0x107)},{'id':_0x481b97(0x112),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16d)),'prompt':_0x481b97(0xff)},{'id':_0x481b97(0x130),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16a)),'prompt':_0x481b97(0x15f)}]},{'groupId':_0x481b97(0x109),'groupLabel':_0x3dccb1(_0x2ff80c,_0x481b97(0x11f)),'commands':[{'id':_0x481b97(0x10e),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x12f))]),'prompt':_0x481b97(0x136)},{'id':_0x481b97(0x139),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x118))]),'prompt':_0x481b97(0x10b)},{'id':_0x481b97(0x12e),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x111))]),'prompt':_0x481b97(0x11d)},{'id':_0x481b97(0x11a),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x105))]),'prompt':_0x481b97(0x120)},{'id':_0x481b97(0x124),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x133))]),'prompt':_0x481b97(0x131)},{'id':_0x481b97(0x171),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x167))]),'prompt':_0x481b97(0x147)},{'id':_0x481b97(0x11c),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x14a))]),'prompt':_0x481b97(0x13c)},{'id':_0x481b97(0x13a),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x172))]),'prompt':_0x481b97(0x141)}]}];}function _0x2c3c(){const _0x175125=['Portuguese','journalism','Change\x20tone','locale','Professional','180470hopIDP','direct','Spanish','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','translateGerman','concat','translateHindi','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','config','Translate','Translate\x20the\x20content\x20to\x20German\x20language.','forEach','_licenseKeyCheckInterval','simplifyLanguage','translateFrench','Edit\x20or\x20review','Generate\x20from\x20selection','continue','editor','commands','confident','groupId','500706Xgtecc','Legal','translatePortuguese','English','poetic','Translate\x20the\x20content\x20to\x20French\x20language.','Change\x20style','French','Confident','Continue','Translate\x20the\x20content\x20to\x20English\x20language.','casual','get','translateSpanish','translateArabic','3047905gmJXvR','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Business','set','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','1255110uoJStg','Translate\x20the\x20content\x20to\x20Arabic\x20language.','1470825xHQmXy','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','ai-trial-license-key-reached-limit-changes','Make\x20longer','licenseKey','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','makeShorter','ai.aiAssistant.extraCommandGroups','Hindi','AIAssistant','destroy','editOrReview','ai-invalid-license-key','Casual','aiLicenseKeyInvalid','changeTone','professional','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Direct','changeStyle','977864EZWZfV','init','aiLicenseKeyTrial','ai.aiAssistant.commands','generate','find','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','1fABAGG','push','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Friendly','includes','ai.aiAssistant.removeCommands','aiLicenseKeyTrialLimit:operations','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Make\x20shorter','Simplified\x20Chinese','summarize','info','Poetic','legal','Translate\x20to\x20%0','Journalism','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','1182228mcaoAV','requires','translateChinese','Arabic','makeLonger','define','63oBFhDV','business','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','filter','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','4MVvoaG','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','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.','German','friendly','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','improveWriting','translate','pluginName','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Improve\x20writing','Summarize','translateEnglish','Simplify\x20language','aiLicenseKeyValid'];_0x2c3c=function(){return _0x175125;};return _0x2c3c();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf3b593=_0x2395;(function(_0x3c8c42,_0x353e72){const _0x55fbab=_0x2395,_0x3fb445=_0x3c8c42();while(!![]){try{const _0x12be9d=parseInt(_0x55fbab(0x19b))/0x1*(-parseInt(_0x55fbab(0x1b8))/0x2)+parseInt(_0x55fbab(0x198))/0x3+-parseInt(_0x55fbab(0x18b))/0x4*(parseInt(_0x55fbab(0x1b1))/0x5)+-parseInt(_0x55fbab(0x17c))/0x6+parseInt(_0x55fbab(0x1bc))/0x7*(parseInt(_0x55fbab(0x17d))/0x8)+parseInt(_0x55fbab(0x1b7))/0x9*(parseInt(_0x55fbab(0x199))/0xa)+parseInt(_0x55fbab(0x191))/0xb;if(_0x12be9d===_0x353e72)break;else _0x3fb445['push'](_0x3fb445['shift']());}catch(_0x3bb146){_0x3fb445['push'](_0x3fb445['shift']());}}}(_0x946b,0xe489b));function _0x2395(_0x550f19,_0x4d59a9){const _0x946b13=_0x946b();return _0x2395=function(_0x239538,_0x53e246){_0x239538=_0x239538-0x17b;let _0x535700=_0x946b13[_0x239538];return _0x535700;},_0x2395(_0x550f19,_0x4d59a9);}import{Plugin as _0x1ea171}from'ckeditor5/src/core.js';const s=_0xf3b593(0x185),c=_0xf3b593(0x17e);export default class i extends _0x1ea171{static get[_0xf3b593(0x18a)](){const _0x164e55=_0xf3b593;return _0x164e55(0x184);}[_0xf3b593(0x1b2)](){const _0x1a46f7=_0xf3b593,{editor:_0x3d42af}=this,_0x14ffa0=[_0x1a46f7(0x1a7)];_0x3d42af[_0x1a46f7(0x1b5)][_0x1a46f7(0x1a3)](_0x1a46f7(0x1ae))&&_0x14ffa0[_0x1a46f7(0x19c)](_0x1a46f7(0x1a2)),_0x3d42af[_0x1a46f7(0x193)][_0x1a46f7(0x17f)](_0x1a46f7(0x1a5))[_0x1a46f7(0x1a9)]({'model':s,'view':{'classes':_0x14ffa0,'priority':0xc}}),_0x3d42af[_0x1a46f7(0x193)][_0x1a46f7(0x17f)](_0x1a46f7(0x1a5))[_0x1a46f7(0x1b3)]({'model':s,'view':{'name':_0x1a46f7(0x19f),'classes':[_0x1a46f7(0x1a7),_0x1a46f7(0x18c)],'priority':0xc}}),_0x3d42af[_0x1a46f7(0x193)][_0x1a46f7(0x17f)](_0x1a46f7(0x1a5))[_0x1a46f7(0x1a9)]({'model':c,'view':{'classes':[_0x1a46f7(0x1ac)],'priority':0x19}}),_0x3d42af[_0x1a46f7(0x193)][_0x1a46f7(0x17f)](_0x1a46f7(0x1a5))[_0x1a46f7(0x1b3)]({'model':c,'view':{'name':_0x1a46f7(0x19f),'classes':[_0x1a46f7(0x1ac),_0x1a46f7(0x18c)],'priority':0x19}});}[_0xf3b593(0x1a4)](_0x1b75aa){const _0x4b4dd0=_0xf3b593,_0x17c13a=this[_0x4b4dd0(0x1bb)][_0x4b4dd0(0x180)],_0x3d94d2=_0x1b75aa?c:s;_0x17c13a[_0x4b4dd0(0x1b6)](_0x5571e9=>{const _0x15587e=_0x4b4dd0,_0x22b57c=_0x17c13a[_0x15587e(0x1b0)][_0x15587e(0x192)][_0x15587e(0x18d)]();if(_0x17c13a[_0x15587e(0x1b4)][_0x15587e(0x19e)](_0x3d94d2))_0x5571e9[_0x15587e(0x182)](_0x3d94d2,{'range':_0x22b57c});else{if(_0x22b57c[_0x15587e(0x190)][_0x15587e(0x1a6)]){const _0x2f4928=_0x22b57c[_0x15587e(0x190)][_0x15587e(0x19d)](({item:_0x463821})=>!_0x17c13a[_0x15587e(0x181)][_0x15587e(0x189)](_0x463821),{'boundaries':_0x22b57c});_0x5571e9[_0x15587e(0x1af)](_0x3d94d2,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x5571e9[_0x15587e(0x183)](_0x2f4928,_0x22b57c[_0x15587e(0x19a)])});}else _0x5571e9[_0x15587e(0x1af)](_0x3d94d2,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x22b57c});}});}[_0xf3b593(0x187)](_0x49c692){const _0x357d58=_0xf3b593,_0x2be2b7=this[_0x357d58(0x1bb)][_0x357d58(0x180)],_0x21ce5b=_0x49c692?c:s;_0x2be2b7[_0x357d58(0x1b4)][_0x357d58(0x19e)](_0x21ce5b)&&_0x2be2b7[_0x357d58(0x1b6)](_0x29cb2b=>{const _0x19fbc4=_0x357d58;_0x29cb2b[_0x19fbc4(0x197)](_0x21ce5b);});}[_0xf3b593(0x195)](_0x18f7b5,_0x19603b){const _0x491872=_0xf3b593,_0x3a6b78=_0x19603b||this[_0x491872(0x1bb)][_0x491872(0x180)][_0x491872(0x1b4)][_0x491872(0x1a3)](s)[_0x491872(0x17b)]();if(!this[_0x491872(0x1bb)][_0x491872(0x180)][_0x491872(0x18f)](_0x3a6b78))return;const _0xf231dd=this[_0x491872(0x1bb)][_0x491872(0x186)][_0x491872(0x1a1)][_0x491872(0x1aa)](_0x18f7b5),_0x36369a=this[_0x491872(0x1bb)][_0x491872(0x186)][_0x491872(0x194)](_0xf231dd);this[_0x491872(0x1bb)][_0x491872(0x180)][_0x491872(0x1b6)](_0x4e04f2=>{const _0x509a25=_0x491872;this[_0x509a25(0x187)]();const _0x2bf543=this[_0x509a25(0x1bb)][_0x509a25(0x180)][_0x509a25(0x195)](_0x36369a,_0x3a6b78);_0x2bf543&&_0x4e04f2[_0x509a25(0x1ab)](_0x2bf543);});}[_0xf3b593(0x1b9)](_0x426682){const _0x21b4e1=_0xf3b593,{model:_0x3440bf}=this[_0x21b4e1(0x1bb)],_0x361761=Array[_0x21b4e1(0x196)](_0x3440bf[_0x21b4e1(0x1ba)](this[_0x21b4e1(0x1bb)][_0x21b4e1(0x180)][_0x21b4e1(0x1b4)][_0x21b4e1(0x1a3)](s)[_0x21b4e1(0x17b)]())[_0x21b4e1(0x1a0)]()),_0x3c8539=_0x361761[_0x21b4e1(0x18e)]?_0x3440bf[_0x21b4e1(0x1ad)](_0x361761[_0x21b4e1(0x188)]()):_0x3440bf[_0x21b4e1(0x1b0)][_0x21b4e1(0x192)][_0x21b4e1(0x1a8)]();this[_0x21b4e1(0x195)](_0x426682,_0x3c8539);}}function _0x946b(){const _0x27a46f=['insertContentBelow','createSelection','editor','525ZMJJpm','getRange','864990gmOaUp','94544PqLnFH','ai-ui-candidate','for','model','schema','updateMarker','createRange','AIAssistantEditing','ai-ui','data','hideFakeVisualSelection','pop','isContent','pluginName','12tomNpv','ck-fake-ai-selection_collapsed','getFirstRange','length','canEditAt','start','744403ygfWfb','selection','conversion','toModel','insertContent','from','removeMarker','816036OdoNhE','230420tYhXhF','end','1ZgRAMf','push','getLastMatchingPosition','has','span','getSelectedBlocks','processor','ck-ai-assistant-ui_theme','get','showFakeVisualSelection','editingDowncast','isAtEnd','ck-fake-ai-selection','getLastPosition','markerToHighlight','toView','setSelection','ck-fake-ai-selection-candidate','createPositionAfter','ai.useTheme','addMarker','document','956045BrdHPs','init','markerToElement','markers','config','change','207vUQmYM','204236RtLVLk'];_0x946b=function(){return _0x27a46f;};return _0x946b();}
23
+ function _0x391b(){const _0x542a6c=['schema','7422653gkFxAb','has','10079886iTVKot','start','6PvfIcM','markerToElement','config','pop','pluginName','toModel','AIAssistantEditing','ck-fake-ai-selection','processor','85911DlNFJM','end','removeMarker','ck-fake-ai-selection-candidate','getSelectedBlocks','for','markers','setSelection','ck-ai-assistant-ui_theme','updateMarker','createSelection','isContent','hideFakeVisualSelection','getLastPosition','toView','createRange','length','ai-ui-candidate','showFakeVisualSelection','insertContentBelow','ai.useTheme','push','1258150SJxVJT','canEditAt','from','selection','5rjAMoD','isAtEnd','document','981562ytlenk','editingDowncast','ck-fake-ai-selection_collapsed','createPositionAfter','getRange','markerToHighlight','span','model','get','editor','14454856UCTKsG','getLastMatchingPosition','change','171IyyQjd','init','conversion','5221812NYQgHA','insertContent','addMarker','getFirstRange','ai-ui','data'];_0x391b=function(){return _0x542a6c;};return _0x391b();}const _0x550dae=_0x1ad8;function _0x1ad8(_0x5e3088,_0x6822a6){const _0x391b15=_0x391b();return _0x1ad8=function(_0x1ad82f,_0x428f73){_0x1ad82f=_0x1ad82f-0x152;let _0x2121af=_0x391b15[_0x1ad82f];return _0x2121af;},_0x1ad8(_0x5e3088,_0x6822a6);}(function(_0x14f874,_0x14b3df){const _0x50eca3=_0x1ad8,_0x417b1c=_0x14f874();while(!![]){try{const _0x203491=parseInt(_0x50eca3(0x174))/0x1+-parseInt(_0x50eca3(0x18f))/0x2*(parseInt(_0x50eca3(0x157))/0x3)+parseInt(_0x50eca3(0x184))/0x4+parseInt(_0x50eca3(0x171))/0x5*(-parseInt(_0x50eca3(0x18d))/0x6)+parseInt(_0x50eca3(0x18b))/0x7+parseInt(_0x50eca3(0x17e))/0x8+-parseInt(_0x50eca3(0x181))/0x9*(parseInt(_0x50eca3(0x16d))/0xa);if(_0x203491===_0x14b3df)break;else _0x417b1c['push'](_0x417b1c['shift']());}catch(_0x5a6f2f){_0x417b1c['push'](_0x417b1c['shift']());}}}(_0x391b,0xf39f2));import{Plugin as _0xf2e562}from'ckeditor5/src/core.js';const s=_0x550dae(0x188),c=_0x550dae(0x168);export default class i extends _0xf2e562{static get[_0x550dae(0x152)](){const _0x59a8cd=_0x550dae;return _0x59a8cd(0x154);}[_0x550dae(0x182)](){const _0x1e060a=_0x550dae,{editor:_0x26e3f4}=this,_0x53f6ad=[_0x1e060a(0x155)];_0x26e3f4[_0x1e060a(0x191)][_0x1e060a(0x17c)](_0x1e060a(0x16b))&&_0x53f6ad[_0x1e060a(0x16c)](_0x1e060a(0x15f)),_0x26e3f4[_0x1e060a(0x183)][_0x1e060a(0x15c)](_0x1e060a(0x175))[_0x1e060a(0x179)]({'model':s,'view':{'classes':_0x53f6ad,'priority':0xc}}),_0x26e3f4[_0x1e060a(0x183)][_0x1e060a(0x15c)](_0x1e060a(0x175))[_0x1e060a(0x190)]({'model':s,'view':{'name':_0x1e060a(0x17a),'classes':[_0x1e060a(0x155),_0x1e060a(0x176)],'priority':0xc}}),_0x26e3f4[_0x1e060a(0x183)][_0x1e060a(0x15c)](_0x1e060a(0x175))[_0x1e060a(0x179)]({'model':c,'view':{'classes':[_0x1e060a(0x15a)],'priority':0x19}}),_0x26e3f4[_0x1e060a(0x183)][_0x1e060a(0x15c)](_0x1e060a(0x175))[_0x1e060a(0x190)]({'model':c,'view':{'name':_0x1e060a(0x17a),'classes':[_0x1e060a(0x15a),_0x1e060a(0x176)],'priority':0x19}});}[_0x550dae(0x169)](_0x310829){const _0xc2e454=_0x550dae,_0x491ff5=this[_0xc2e454(0x17d)][_0xc2e454(0x17b)],_0x4d34f4=_0x310829?c:s;_0x491ff5[_0xc2e454(0x180)](_0x329eda=>{const _0x167f32=_0xc2e454,_0xa0cbc=_0x491ff5[_0x167f32(0x173)][_0x167f32(0x170)][_0x167f32(0x187)]();if(_0x491ff5[_0x167f32(0x15d)][_0x167f32(0x18c)](_0x4d34f4))_0x329eda[_0x167f32(0x160)](_0x4d34f4,{'range':_0xa0cbc});else{if(_0xa0cbc[_0x167f32(0x18e)][_0x167f32(0x172)]){const _0x31c62c=_0xa0cbc[_0x167f32(0x18e)][_0x167f32(0x17f)](({item:_0x541c40})=>!_0x491ff5[_0x167f32(0x18a)][_0x167f32(0x162)](_0x541c40),{'boundaries':_0xa0cbc});_0x329eda[_0x167f32(0x186)](_0x4d34f4,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x329eda[_0x167f32(0x166)](_0x31c62c,_0xa0cbc[_0x167f32(0x158)])});}else _0x329eda[_0x167f32(0x186)](_0x4d34f4,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0xa0cbc});}});}[_0x550dae(0x163)](_0x16d184){const _0xf1b277=_0x550dae,_0x4359ab=this[_0xf1b277(0x17d)][_0xf1b277(0x17b)],_0x535406=_0x16d184?c:s;_0x4359ab[_0xf1b277(0x15d)][_0xf1b277(0x18c)](_0x535406)&&_0x4359ab[_0xf1b277(0x180)](_0x354001=>{const _0x423266=_0xf1b277;_0x354001[_0x423266(0x159)](_0x535406);});}[_0x550dae(0x185)](_0x53beef,_0x52addf){const _0x3d4ca6=_0x550dae,_0xd6ec98=_0x52addf||this[_0x3d4ca6(0x17d)][_0x3d4ca6(0x17b)][_0x3d4ca6(0x15d)][_0x3d4ca6(0x17c)](s)[_0x3d4ca6(0x178)]();if(!this[_0x3d4ca6(0x17d)][_0x3d4ca6(0x17b)][_0x3d4ca6(0x16e)](_0xd6ec98))return;const _0x3b90e4=this[_0x3d4ca6(0x17d)][_0x3d4ca6(0x189)][_0x3d4ca6(0x156)][_0x3d4ca6(0x165)](_0x53beef),_0x16a74e=this[_0x3d4ca6(0x17d)][_0x3d4ca6(0x189)][_0x3d4ca6(0x153)](_0x3b90e4);this[_0x3d4ca6(0x17d)][_0x3d4ca6(0x17b)][_0x3d4ca6(0x180)](_0xb6a88c=>{const _0x14b27e=_0x3d4ca6;this[_0x14b27e(0x163)]();const _0x1293e6=this[_0x14b27e(0x17d)][_0x14b27e(0x17b)][_0x14b27e(0x185)](_0x16a74e,_0xd6ec98);_0x1293e6&&_0xb6a88c[_0x14b27e(0x15e)](_0x1293e6);});}[_0x550dae(0x16a)](_0x2be4ac){const _0x415fea=_0x550dae,{model:_0x56801f}=this[_0x415fea(0x17d)],_0x3f6793=Array[_0x415fea(0x16f)](_0x56801f[_0x415fea(0x161)](this[_0x415fea(0x17d)][_0x415fea(0x17b)][_0x415fea(0x15d)][_0x415fea(0x17c)](s)[_0x415fea(0x178)]())[_0x415fea(0x15b)]()),_0x1eea07=_0x3f6793[_0x415fea(0x167)]?_0x56801f[_0x415fea(0x177)](_0x3f6793[_0x415fea(0x192)]()):_0x56801f[_0x415fea(0x173)][_0x415fea(0x170)][_0x415fea(0x164)]();this[_0x415fea(0x185)](_0x2be4ac,_0x1eea07);}}