@ckeditor/ckeditor5-ai 42.0.2 → 43.0.0-alpha.1

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 (139) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/build/ai.js +1 -76
  3. package/build/translations/sr-latn.js +1 -1
  4. package/dist/index.js +2 -2
  5. package/dist/translations/af.js +1 -1
  6. package/dist/translations/af.umd.js +1 -1
  7. package/dist/translations/ar.js +1 -1
  8. package/dist/translations/ar.umd.js +1 -1
  9. package/dist/translations/bg.js +1 -1
  10. package/dist/translations/bg.umd.js +1 -1
  11. package/dist/translations/bn.js +1 -1
  12. package/dist/translations/bn.umd.js +1 -1
  13. package/dist/translations/bs.js +1 -1
  14. package/dist/translations/bs.umd.js +1 -1
  15. package/dist/translations/ca.js +1 -1
  16. package/dist/translations/ca.umd.js +1 -1
  17. package/dist/translations/cs.js +1 -1
  18. package/dist/translations/cs.umd.js +1 -1
  19. package/dist/translations/da.js +1 -1
  20. package/dist/translations/da.umd.js +1 -1
  21. package/dist/translations/de-ch.js +1 -1
  22. package/dist/translations/de-ch.umd.js +1 -1
  23. package/dist/translations/de.js +1 -1
  24. package/dist/translations/de.umd.js +1 -1
  25. package/dist/translations/el.js +1 -1
  26. package/dist/translations/el.umd.js +1 -1
  27. package/dist/translations/en-au.js +1 -1
  28. package/dist/translations/en-au.umd.js +1 -1
  29. package/dist/translations/en.umd.js +1 -1
  30. package/dist/translations/es-co.js +1 -1
  31. package/dist/translations/es-co.umd.js +1 -1
  32. package/dist/translations/es.js +1 -1
  33. package/dist/translations/es.umd.js +1 -1
  34. package/dist/translations/et.js +1 -1
  35. package/dist/translations/et.umd.js +1 -1
  36. package/dist/translations/fa.js +1 -1
  37. package/dist/translations/fa.umd.js +1 -1
  38. package/dist/translations/fi.js +1 -1
  39. package/dist/translations/fi.umd.js +1 -1
  40. package/dist/translations/fr.js +1 -1
  41. package/dist/translations/fr.umd.js +1 -1
  42. package/dist/translations/gl.js +1 -1
  43. package/dist/translations/gl.umd.js +1 -1
  44. package/dist/translations/he.js +1 -1
  45. package/dist/translations/he.umd.js +1 -1
  46. package/dist/translations/hi.js +1 -1
  47. package/dist/translations/hi.umd.js +1 -1
  48. package/dist/translations/hr.js +1 -1
  49. package/dist/translations/hr.umd.js +1 -1
  50. package/dist/translations/hu.js +1 -1
  51. package/dist/translations/hu.umd.js +1 -1
  52. package/dist/translations/id.js +1 -1
  53. package/dist/translations/id.umd.js +1 -1
  54. package/dist/translations/it.js +1 -1
  55. package/dist/translations/it.umd.js +1 -1
  56. package/dist/translations/ja.js +1 -1
  57. package/dist/translations/ja.umd.js +1 -1
  58. package/dist/translations/jv.js +1 -1
  59. package/dist/translations/jv.umd.js +1 -1
  60. package/dist/translations/ko.js +1 -1
  61. package/dist/translations/ko.umd.js +1 -1
  62. package/dist/translations/lt.js +1 -1
  63. package/dist/translations/lt.umd.js +1 -1
  64. package/dist/translations/lv.js +1 -1
  65. package/dist/translations/lv.umd.js +1 -1
  66. package/dist/translations/ms.js +1 -1
  67. package/dist/translations/ms.umd.js +1 -1
  68. package/dist/translations/nl.js +1 -1
  69. package/dist/translations/nl.umd.js +1 -1
  70. package/dist/translations/no.js +1 -1
  71. package/dist/translations/no.umd.js +1 -1
  72. package/dist/translations/pl.js +1 -1
  73. package/dist/translations/pl.umd.js +1 -1
  74. package/dist/translations/pt-br.js +1 -1
  75. package/dist/translations/pt-br.umd.js +1 -1
  76. package/dist/translations/pt.js +1 -1
  77. package/dist/translations/pt.umd.js +1 -1
  78. package/dist/translations/ro.js +1 -1
  79. package/dist/translations/ro.umd.js +1 -1
  80. package/dist/translations/ru.js +1 -1
  81. package/dist/translations/ru.umd.js +1 -1
  82. package/dist/translations/sk.js +1 -1
  83. package/dist/translations/sk.umd.js +1 -1
  84. package/dist/translations/sr-latn.js +1 -1
  85. package/dist/translations/sr-latn.umd.js +1 -1
  86. package/dist/translations/sr.js +1 -1
  87. package/dist/translations/sr.umd.js +1 -1
  88. package/dist/translations/sv.js +1 -1
  89. package/dist/translations/sv.umd.js +1 -1
  90. package/dist/translations/th.js +1 -1
  91. package/dist/translations/th.umd.js +1 -1
  92. package/dist/translations/ti.js +1 -1
  93. package/dist/translations/ti.umd.js +1 -1
  94. package/dist/translations/tk.js +1 -1
  95. package/dist/translations/tk.umd.js +1 -1
  96. package/dist/translations/tr.js +1 -1
  97. package/dist/translations/tr.umd.js +1 -1
  98. package/dist/translations/ug.js +1 -1
  99. package/dist/translations/ug.umd.js +1 -1
  100. package/dist/translations/uk.js +1 -1
  101. package/dist/translations/uk.umd.js +1 -1
  102. package/dist/translations/ur.js +1 -1
  103. package/dist/translations/ur.umd.js +1 -1
  104. package/dist/translations/uz.js +1 -1
  105. package/dist/translations/uz.umd.js +1 -1
  106. package/dist/translations/vi.js +1 -1
  107. package/dist/translations/vi.umd.js +1 -1
  108. package/dist/translations/zh-cn.js +1 -1
  109. package/dist/translations/zh-cn.umd.js +1 -1
  110. package/dist/translations/zh.js +1 -1
  111. package/dist/translations/zh.umd.js +1 -1
  112. package/lang/translations/sr-latn.po +7 -7
  113. package/package.json +9 -9
  114. package/src/adapters/aiadapter.js +1 -1
  115. package/src/adapters/aitextadapter.js +1 -1
  116. package/src/adapters/awstextadapter.js +1 -1
  117. package/src/adapters/openaitextadapter.js +1 -1
  118. package/src/aiassistant.js +1 -1
  119. package/src/aiassistantediting.js +1 -1
  120. package/src/aiassistantui.js +1 -1
  121. package/src/index.js +1 -1
  122. package/src/ui/aiassistantcontroller.js +2 -2
  123. package/src/ui/dropdown/aicommandslistview.js +1 -1
  124. package/src/ui/form/aiformcontentarea.js +1 -1
  125. package/src/ui/form/aiformerrorview.js +1 -1
  126. package/src/ui/form/aiformpromptview.js +1 -1
  127. package/src/ui/form/aiformtoolbarview.js +1 -1
  128. package/src/ui/form/aiformview.js +1 -1
  129. package/src/ui/form/aihistorylistitemview.js +1 -1
  130. package/src/ui/form/aihistorylistview.js +1 -1
  131. package/src/ui/form/prompthistory.js +1 -1
  132. package/src/ui/showaiassistantcommand.js +1 -1
  133. package/src/utils/common-translations.js +1 -1
  134. package/dist/ui/dropdown/buttonlabelwithhighlightview.d.ts +0 -33
  135. package/dist/ui/dropdown/labelwithhighlightview.d.ts +0 -29
  136. package/src/ui/dropdown/buttonlabelwithhighlightview.d.ts +0 -29
  137. package/src/ui/dropdown/buttonlabelwithhighlightview.js +0 -23
  138. package/src/ui/dropdown/labelwithhighlightview.d.ts +0 -25
  139. package/src/ui/dropdown/labelwithhighlightview.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f1c03=_0x131c;function _0x587a(){const _0x3154c0=['body','toString','744Sgbnik','8GtQCZc','_getGeneratedText','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.','config','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.','utf-8','_prepareRequestParameters','meta.llama','text','ai.aws.requestHeaders','_prepareRequestHeaders','join','signal','_readAsyncIterableResponse','length','resolve','split','Instruction:\x0a','getReader','_processAWSRequest','filter','7661537szAwzR','generation','AI_ERROR_UNSUPPORTED_MODEL','completion','abortController','bytes','80873zImfmK','207530DKXMlM','locale','12tHcMAC','_bedrockClientConfig','1059085ehBSpb','editor','_requestParameters','_readStaticResponse','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','Human:\x0a','application/json','map','<<SYS>>\x0a','bedrock-2023-05-31','anthropic.claude','ai.aws.bedrockClientConfig','define','sendRequest','\x0a<</SYS>>\x0a[INST]\x0a','parse','_apiUrl','cohere.command','ai.aws.requestParameters','getModelFamily','ai.aws.apiUrl','preparePrompt','chunk','pluginName','utf8','get','1112SshpVw','32166IIBzIb','send','POST','decode','ai21.j2','154kISpCB','\x0a[/INST]','stringify','test','26810xjwgxA','json','6XtbbBa','AWSTextAdapter','read','anthropic.claude-v2','completions','data','135165NrsMiW','_processProxyRequest','from','generations','_readStreamableResponse','\x0a\x0aAssistant:','_requestHeaders'];_0x587a=function(){return _0x3154c0;};return _0x587a();}(function(_0x12c51e,_0x2e34c5){const _0x188277=_0x131c,_0x116107=_0x12c51e();while(!![]){try{const _0x11a8aa=-parseInt(_0x188277(0x7f))/0x1+-parseInt(_0x188277(0xaa))/0x2*(parseInt(_0x188277(0xb0))/0x3)+-parseInt(_0x188277(0xba))/0x4*(parseInt(_0x188277(0x84))/0x5)+parseInt(_0x188277(0xb9))/0x6*(-parseInt(_0x188277(0xa8))/0x7)+parseInt(_0x188277(0x9e))/0x8*(parseInt(_0x188277(0x9f))/0x9)+parseInt(_0x188277(0x80))/0xa*(parseInt(_0x188277(0xa4))/0xb)+parseInt(_0x188277(0x82))/0xc*(parseInt(_0x188277(0x79))/0xd);if(_0x11a8aa===_0x2e34c5)break;else _0x116107['push'](_0x116107['shift']());}catch(_0x553c20){_0x116107['push'](_0x116107['shift']());}}}(_0x587a,0x3ffc5));import{default as _0x4bd33a}from'./aitextadapter.js';import{AIRequestError as _0x20b5bf}from'./aiadapter.js';function _0x131c(_0x3b0473,_0x376978){const _0x587ac5=_0x587a();return _0x131c=function(_0x131c2a,_0x1a743f){_0x131c2a=_0x131c2a-0x6c;let _0x4b1e70=_0x587ac5[_0x131c2a];return _0x4b1e70;},_0x131c(_0x3b0473,_0x376978);}import{BedrockRuntimeClient as _0x1265d8,InvokeModelCommand as _0x133013,InvokeModelWithResponseStreamCommand as _0xab6812}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x25d949}from'../utils/common-translations.js';export default class J extends _0x4bd33a{static get[_0x4f1c03(0x9b)](){const _0x2be06d=_0x4f1c03;return _0x2be06d(0xab);}constructor(_0x38ce7e){const _0x3fd0d8=_0x4f1c03;super(_0x38ce7e),_0x38ce7e[_0x3fd0d8(0xbd)][_0x3fd0d8(0x9d)](_0x3fd0d8(0x96))||_0x38ce7e[_0x3fd0d8(0xbd)][_0x3fd0d8(0x90)](_0x3fd0d8(0x96),{'model':_0x3fd0d8(0xad),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x3fd0d8(0x8d),'stream':!0x0}),this[_0x3fd0d8(0x94)]=_0x38ce7e[_0x3fd0d8(0xbd)][_0x3fd0d8(0x9d)](_0x3fd0d8(0x98)),this[_0x3fd0d8(0x83)]=_0x38ce7e[_0x3fd0d8(0xbd)][_0x3fd0d8(0x9d)](_0x3fd0d8(0x8f)),this[_0x3fd0d8(0xb6)]=_0x38ce7e[_0x3fd0d8(0xbd)][_0x3fd0d8(0x9d)](_0x3fd0d8(0x6d)),this[_0x3fd0d8(0x86)]=_0x38ce7e[_0x3fd0d8(0xbd)][_0x3fd0d8(0x9d)](_0x3fd0d8(0x96));}async[_0x4f1c03(0x91)]({query:_0x5612a9,context:_0x90cba6,onData:_0x372636,actionId:_0x38ffaf}){const _0x149e73=_0x4f1c03,{model:_0x560602,stream:_0x454bbe,..._0x376042}=await this[_0x149e73(0xc0)](this[_0x149e73(0x86)],_0x38ffaf),_0x2e42a1={'prompt':await this[_0x149e73(0x99)](_0x5612a9,_0x90cba6,_0x560602,_0x38ffaf),..._0x376042};this[_0x149e73(0x94)]?await this[_0x149e73(0xb1)](_0x2e42a1,_0x560602,_0x454bbe,_0x372636,_0x38ffaf):await this[_0x149e73(0x77)](_0x2e42a1,_0x560602,_0x454bbe,_0x372636);}async[_0x4f1c03(0x99)](_0x55b18e,_0x560ed8,_0x1c322e,_0x4716c1){const _0x548d97=_0x4f1c03;let _0x2da17a,_0x5e7767;return _0x560ed8?(_0x2da17a=_0x548d97(0xbc),_0x5e7767=_0x548d97(0x75)+_0x55b18e+_0x548d97(0x88)+_0x560ed8):(_0x2da17a=_0x548d97(0xbe),_0x5e7767=_0x55b18e),_0x548d97(0xc1)==this[_0x548d97(0x97)](_0x1c322e)?_0x548d97(0x8c)+_0x2da17a+_0x548d97(0x92)+_0x5e7767+_0x548d97(0xa5):_0x548d97(0x89)+_0x2da17a+'\x0a'+_0x5e7767+_0x548d97(0xb5);}[_0x4f1c03(0x97)](_0x1ef951){const _0x122802=_0x4f1c03;if(/^anthropic\.claude/[_0x122802(0xa7)](_0x1ef951))return _0x122802(0x8e);if(/^ai21\.j2/[_0x122802(0xa7)](_0x1ef951))return _0x122802(0xa3);if(/^cohere\.command/[_0x122802(0xa7)](_0x1ef951))return _0x122802(0x95);if(/^meta\.llama/[_0x122802(0xa7)](_0x1ef951))return _0x122802(0xc1);throw new _0x20b5bf(_0x25d949(this[_0x122802(0x85)][_0x122802(0x81)],_0x122802(0x7b),_0x1ef951));}async[_0x4f1c03(0xb1)](_0x564133,_0x305aae,_0xb747ac,_0x5298c8,_0x403bbb){const _0x286f05=_0x4f1c03,_0x59595e={'method':_0x286f05(0xa1),'headers':await this[_0x286f05(0x6e)](this[_0x286f05(0xb6)],_0x403bbb),'body':JSON[_0x286f05(0xa6)]({..._0x564133,'model':_0x305aae,'stream':_0xb747ac}),'signal':this[_0x286f05(0x7d)][_0x286f05(0x70)]},_0x325167=await fetch(this[_0x286f05(0x94)],_0x59595e);_0xb747ac?await this[_0x286f05(0xb4)](_0x325167,_0x305aae,_0x5298c8):await this[_0x286f05(0x87)](_0x325167,_0x305aae,_0x5298c8);}async[_0x4f1c03(0x77)](_0x5ce04b,_0x3047db,_0x1a2875,_0x1acd3b){const _0x57c373=_0x4f1c03,_0x319cc5=new _0x1265d8(this[_0x57c373(0x83)]),_0x3ae0da={'body':JSON[_0x57c373(0xa6)](_0x5ce04b),'contentType':_0x57c373(0x8a),'accept':_0x57c373(0x8a),'modelId':_0x3047db};let _0x5732c6;if(_0x1a2875){const _0x16c4b8=new _0xab6812(_0x3ae0da);_0x5732c6=await _0x319cc5[_0x57c373(0xa0)](_0x16c4b8,{'abortSignal':this[_0x57c373(0x7d)][_0x57c373(0x70)]}),await this[_0x57c373(0x71)](_0x5732c6,_0x3047db,_0x1acd3b);}else{const _0x47ed15=new _0x133013(_0x3ae0da);_0x5732c6=await _0x319cc5[_0x57c373(0xa0)](_0x47ed15,{'abortSignal':this[_0x57c373(0x7d)][_0x57c373(0x70)]}),await this[_0x57c373(0x87)](_0x5732c6,_0x3047db,_0x1acd3b);}}async[_0x4f1c03(0x71)](_0x3e9773,_0x9b47a2,_0x22d059){const _0x1a3b3e=_0x4f1c03,_0x508927=_0x3e9773[_0x1a3b3e(0xb7)],_0x501d5f=new TextDecoder(_0x1a3b3e(0xbf));let _0x24a77f='';for await(const _0x2c5263 of _0x508927)if(_0x2c5263[_0x1a3b3e(0x9a)]){const _0x29a474=_0x501d5f[_0x1a3b3e(0xa2)](_0x2c5263[_0x1a3b3e(0x9a)][_0x1a3b3e(0x7e)]),_0x5a267d=JSON[_0x1a3b3e(0x93)](_0x29a474);_0x24a77f+=this[_0x1a3b3e(0xbb)](_0x5a267d,_0x9b47a2),_0x22d059(_0x24a77f);}return Promise[_0x1a3b3e(0x73)]();}async[_0x4f1c03(0xb4)](_0x26eab0,_0x247c5d,_0x2fbe05){const _0x36261a=_0x4f1c03,_0x496348=_0x26eab0[_0x36261a(0xb7)],_0x4391cc=new TextDecoder(_0x36261a(0xbf)),_0x1ed18a=_0x496348[_0x36261a(0x76)]();let _0x4a2f55='',_0x467d60='',_0x35bacc=!0x1;for(;!_0x35bacc;){const {done:_0xafa999,value:_0x258aac}=await _0x1ed18a[_0x36261a(0xac)]();if(_0x35bacc=_0xafa999,_0x35bacc)break;const _0x52663a=(_0x4a2f55+_0x4391cc[_0x36261a(0xa2)](_0x258aac))[_0x36261a(0x74)]('\x0a')[_0x36261a(0x8b)](_0x39cc4a=>{const _0x38df74=_0x36261a;try{return _0x4a2f55='',JSON[_0x38df74(0x93)](_0x39cc4a);}catch(_0x1ae037){return _0x4a2f55=_0x39cc4a,null;}})[_0x36261a(0x78)](_0xae8c0f=>null!==_0xae8c0f);_0x52663a[_0x36261a(0x72)]&&(_0x467d60+=_0x52663a[_0x36261a(0x8b)](_0x5a39d2=>this[_0x36261a(0xbb)](_0x5a39d2,_0x247c5d))[_0x36261a(0x6f)](''),_0x2fbe05(_0x467d60));}return Promise[_0x36261a(0x73)]();}async[_0x4f1c03(0x87)](_0x67fce0,_0x4b2eaf,_0x43ab6d){const _0x494fe7=_0x4f1c03;let _0x5bbdb3;return _0x5bbdb3=_0x67fce0 instanceof Response?await _0x67fce0[_0x494fe7(0xa9)]():JSON[_0x494fe7(0x93)](Buffer[_0x494fe7(0xb2)](_0x67fce0[_0x494fe7(0xb7)])[_0x494fe7(0xb8)](_0x494fe7(0x9c))),(_0x43ab6d(this[_0x494fe7(0xbb)](_0x5bbdb3,_0x4b2eaf)),Promise[_0x494fe7(0x73)]());}[_0x4f1c03(0xbb)](_0x1c1d05,_0x3ea49d){const _0x32f842=_0x4f1c03;switch(this[_0x32f842(0x97)](_0x3ea49d)){case _0x32f842(0x8e):return _0x1c1d05[_0x32f842(0x7c)];case _0x32f842(0xa3):return _0x1c1d05[_0x32f842(0xae)][0x0][_0x32f842(0xaf)][_0x32f842(0x6c)];case _0x32f842(0x95):return _0x1c1d05[_0x32f842(0xb3)][0x0][_0x32f842(0x6c)];case _0x32f842(0xc1):return _0x1c1d05[_0x32f842(0x7a)];}}}
23
+ const _0x1b4b42=_0x4142;(function(_0x27d759,_0x112bc8){const _0x1171df=_0x4142,_0x25bec1=_0x27d759();while(!![]){try{const _0x321c9a=parseInt(_0x1171df(0x11b))/0x1+parseInt(_0x1171df(0x108))/0x2*(parseInt(_0x1171df(0x117))/0x3)+-parseInt(_0x1171df(0x10f))/0x4+parseInt(_0x1171df(0x120))/0x5*(parseInt(_0x1171df(0x109))/0x6)+parseInt(_0x1171df(0x110))/0x7+-parseInt(_0x1171df(0x12a))/0x8*(parseInt(_0x1171df(0x11c))/0x9)+-parseInt(_0x1171df(0x105))/0xa;if(_0x321c9a===_0x112bc8)break;else _0x25bec1['push'](_0x25bec1['shift']());}catch(_0x4eec2e){_0x25bec1['push'](_0x25bec1['shift']());}}}(_0x305a,0xa2cd0));import{default as _0x2823b1}from'./aitextadapter.js';import{AIRequestError as _0x436893}from'./aiadapter.js';import{BedrockRuntimeClient as _0x25c0cb,InvokeModelCommand as _0x20f14e,InvokeModelWithResponseStreamCommand as _0x28e7af}from'@aws-sdk/client-bedrock-runtime';function _0x4142(_0x4eba81,_0x442c71){const _0x305a3a=_0x305a();return _0x4142=function(_0x41428b,_0x354462){_0x41428b=_0x41428b-0xf6;let _0x26b6d6=_0x305a3a[_0x41428b];return _0x26b6d6;},_0x4142(_0x4eba81,_0x442c71);}function _0x305a(){const _0xa325eb=['test','<<SYS>>\x0a','json','\x0a<</SYS>>\x0a[INST]\x0a','stringify','resolve','_readAsyncIterableResponse','_readStaticResponse','ai.aws.requestParameters','chunk','abortController','anthropic.claude-v2','_requestParameters','anthropic.claude','bytes','_prepareRequestParameters','split','define','_processProxyRequest','utf-8','text','15948180SVILRJ','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','application/json','390566LHCuWJ','276126sHoAhC','locale','_apiUrl','meta.llama','send','AI_ERROR_UNSUPPORTED_MODEL','1092268vcBrqq','8029840LAqJXX','ai.aws.apiUrl','\x0a[/INST]','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.','completion','_getGeneratedText','sendRequest','3qzvGRy','_readStreamableResponse','data','join','1057370cEYSbW','502641tuotxT','bedrock-2023-05-31','map','from','45bcBqcP','parse','body','cohere.command','_requestHeaders','filter','decode','Human:\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.','utf8','40FSZtqc','preparePrompt','ai21.j2','read','generations','config','Instruction:\x0a','getReader','toString','signal','_bedrockClientConfig','get','length','ai.aws.bedrockClientConfig','ai.aws.requestHeaders','AWSTextAdapter','editor','_processAWSRequest','completions','getModelFamily','generation','POST','\x0a\x0aAssistant:','_prepareRequestHeaders','pluginName'];_0x305a=function(){return _0xa325eb;};return _0x305a();}import{getTranslation as _0x74d5a0}from'../utils/common-translations.js';export default class J extends _0x2823b1{static get[_0x1b4b42(0x142)](){const _0x480a21=_0x1b4b42;return _0x480a21(0x139);}constructor(_0x125f42){const _0x31c7fb=_0x1b4b42;super(_0x125f42),_0x125f42[_0x31c7fb(0x12f)][_0x31c7fb(0x135)](_0x31c7fb(0xf8))||_0x125f42[_0x31c7fb(0x12f)][_0x31c7fb(0x101)](_0x31c7fb(0xf8),{'model':_0x31c7fb(0xfb),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x31c7fb(0x11d),'stream':!0x0}),this[_0x31c7fb(0x10b)]=_0x125f42[_0x31c7fb(0x12f)][_0x31c7fb(0x135)](_0x31c7fb(0x111)),this[_0x31c7fb(0x134)]=_0x125f42[_0x31c7fb(0x12f)][_0x31c7fb(0x135)](_0x31c7fb(0x137)),this[_0x31c7fb(0x124)]=_0x125f42[_0x31c7fb(0x12f)][_0x31c7fb(0x135)](_0x31c7fb(0x138)),this[_0x31c7fb(0xfc)]=_0x125f42[_0x31c7fb(0x12f)][_0x31c7fb(0x135)](_0x31c7fb(0xf8));}async[_0x1b4b42(0x116)]({query:_0x1d3d32,context:_0x3d9fd4,onData:_0x1773c7,actionId:_0x514fb8}){const _0x42c815=_0x1b4b42,{model:_0xe929c0,stream:_0x3df325,..._0x4d61fd}=await this[_0x42c815(0xff)](this[_0x42c815(0xfc)],_0x514fb8),_0xab0ee0={'prompt':await this[_0x42c815(0x12b)](_0x1d3d32,_0x3d9fd4,_0xe929c0,_0x514fb8),..._0x4d61fd};this[_0x42c815(0x10b)]?await this[_0x42c815(0x102)](_0xab0ee0,_0xe929c0,_0x3df325,_0x1773c7,_0x514fb8):await this[_0x42c815(0x13b)](_0xab0ee0,_0xe929c0,_0x3df325,_0x1773c7);}async[_0x1b4b42(0x12b)](_0xd54d82,_0x1a9d77,_0x19b57c,_0x1b9434){const _0x58f836=_0x1b4b42;let _0x21f5f2,_0x45a113;return _0x1a9d77?(_0x21f5f2=_0x58f836(0x113),_0x45a113=_0x58f836(0x130)+_0xd54d82+_0x58f836(0x106)+_0x1a9d77):(_0x21f5f2=_0x58f836(0x128),_0x45a113=_0xd54d82),_0x58f836(0x10c)==this[_0x58f836(0x13d)](_0x19b57c)?_0x58f836(0x144)+_0x21f5f2+_0x58f836(0x146)+_0x45a113+_0x58f836(0x112):_0x58f836(0x127)+_0x21f5f2+'\x0a'+_0x45a113+_0x58f836(0x140);}[_0x1b4b42(0x13d)](_0xf0a39a){const _0x4b3994=_0x1b4b42;if(/^anthropic\.claude/[_0x4b3994(0x143)](_0xf0a39a))return _0x4b3994(0xfd);if(/^ai21\.j2/[_0x4b3994(0x143)](_0xf0a39a))return _0x4b3994(0x12c);if(/^cohere\.command/[_0x4b3994(0x143)](_0xf0a39a))return _0x4b3994(0x123);if(/^meta\.llama/[_0x4b3994(0x143)](_0xf0a39a))return _0x4b3994(0x10c);throw new _0x436893(_0x74d5a0(this[_0x4b3994(0x13a)][_0x4b3994(0x10a)],_0x4b3994(0x10e),_0xf0a39a));}async[_0x1b4b42(0x102)](_0x25d5b1,_0x2d49e4,_0x1dc385,_0x7345d,_0x1b5ff5){const _0x2d63c7=_0x1b4b42,_0x343854={'method':_0x2d63c7(0x13f),'headers':await this[_0x2d63c7(0x141)](this[_0x2d63c7(0x124)],_0x1b5ff5),'body':JSON[_0x2d63c7(0x147)]({..._0x25d5b1,'model':_0x2d49e4,'stream':_0x1dc385}),'signal':this[_0x2d63c7(0xfa)][_0x2d63c7(0x133)]},_0x3f37bb=await fetch(this[_0x2d63c7(0x10b)],_0x343854);_0x1dc385?await this[_0x2d63c7(0x118)](_0x3f37bb,_0x2d49e4,_0x7345d):await this[_0x2d63c7(0xf7)](_0x3f37bb,_0x2d49e4,_0x7345d);}async[_0x1b4b42(0x13b)](_0x2c526b,_0x50cd70,_0x3d8ca5,_0x591c8a){const _0x426f00=_0x1b4b42,_0x4a4ad0=new _0x25c0cb(this[_0x426f00(0x134)]),_0x1fc31d={'body':JSON[_0x426f00(0x147)](_0x2c526b),'contentType':_0x426f00(0x107),'accept':_0x426f00(0x107),'modelId':_0x50cd70};let _0x218ed4;if(_0x3d8ca5){const _0x119de4=new _0x28e7af(_0x1fc31d);_0x218ed4=await _0x4a4ad0[_0x426f00(0x10d)](_0x119de4,{'abortSignal':this[_0x426f00(0xfa)][_0x426f00(0x133)]}),await this[_0x426f00(0xf6)](_0x218ed4,_0x50cd70,_0x591c8a);}else{const _0x5c19bf=new _0x20f14e(_0x1fc31d);_0x218ed4=await _0x4a4ad0[_0x426f00(0x10d)](_0x5c19bf,{'abortSignal':this[_0x426f00(0xfa)][_0x426f00(0x133)]}),await this[_0x426f00(0xf7)](_0x218ed4,_0x50cd70,_0x591c8a);}}async[_0x1b4b42(0xf6)](_0x35a797,_0xdd2e49,_0x250a7b){const _0x1c8ca6=_0x1b4b42,_0x5babcd=_0x35a797[_0x1c8ca6(0x122)],_0xdf87f5=new TextDecoder(_0x1c8ca6(0x103));let _0xcc153d='';for await(const _0xedbfc7 of _0x5babcd)if(_0xedbfc7[_0x1c8ca6(0xf9)]){const _0x522597=_0xdf87f5[_0x1c8ca6(0x126)](_0xedbfc7[_0x1c8ca6(0xf9)][_0x1c8ca6(0xfe)]),_0x3d8704=JSON[_0x1c8ca6(0x121)](_0x522597);_0xcc153d+=this[_0x1c8ca6(0x115)](_0x3d8704,_0xdd2e49),_0x250a7b(_0xcc153d);}return Promise[_0x1c8ca6(0x148)]();}async[_0x1b4b42(0x118)](_0x10656e,_0x214a38,_0x14f11a){const _0x531fd6=_0x1b4b42,_0x272d59=_0x10656e[_0x531fd6(0x122)],_0x2be79d=new TextDecoder(_0x531fd6(0x103)),_0x540469=_0x272d59[_0x531fd6(0x131)]();let _0x5bcc4b='',_0x1254c1='',_0x49e107=!0x1;for(;!_0x49e107;){const {done:_0x4d12cd,value:_0x50b9c5}=await _0x540469[_0x531fd6(0x12d)]();if(_0x49e107=_0x4d12cd,_0x49e107)break;const _0x175251=(_0x5bcc4b+_0x2be79d[_0x531fd6(0x126)](_0x50b9c5))[_0x531fd6(0x100)]('\x0a')[_0x531fd6(0x11e)](_0x5c8343=>{const _0xb5a01e=_0x531fd6;try{return _0x5bcc4b='',JSON[_0xb5a01e(0x121)](_0x5c8343);}catch(_0x278018){return _0x5bcc4b=_0x5c8343,null;}})[_0x531fd6(0x125)](_0x2d12e1=>null!==_0x2d12e1);_0x175251[_0x531fd6(0x136)]&&(_0x1254c1+=_0x175251[_0x531fd6(0x11e)](_0x23613c=>this[_0x531fd6(0x115)](_0x23613c,_0x214a38))[_0x531fd6(0x11a)](''),_0x14f11a(_0x1254c1));}return Promise[_0x531fd6(0x148)]();}async[_0x1b4b42(0xf7)](_0x3645c5,_0x2cedee,_0x204aab){const _0x343e21=_0x1b4b42;let _0x4c2510;return _0x4c2510=_0x3645c5 instanceof Response?await _0x3645c5[_0x343e21(0x145)]():JSON[_0x343e21(0x121)](Buffer[_0x343e21(0x11f)](_0x3645c5[_0x343e21(0x122)])[_0x343e21(0x132)](_0x343e21(0x129))),(_0x204aab(this[_0x343e21(0x115)](_0x4c2510,_0x2cedee)),Promise[_0x343e21(0x148)]());}[_0x1b4b42(0x115)](_0xe74bfd,_0x278f9b){const _0x4b6ec2=_0x1b4b42;switch(this[_0x4b6ec2(0x13d)](_0x278f9b)){case _0x4b6ec2(0xfd):return _0xe74bfd[_0x4b6ec2(0x114)];case _0x4b6ec2(0x12c):return _0xe74bfd[_0x4b6ec2(0x13c)][0x0][_0x4b6ec2(0x119)][_0x4b6ec2(0x104)];case _0x4b6ec2(0x123):return _0xe74bfd[_0x4b6ec2(0x12e)][0x0][_0x4b6ec2(0x104)];case _0x4b6ec2(0x10c):return _0xe74bfd[_0x4b6ec2(0x13e)];}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x54f6(_0x420fc1,_0x46dbaa){const _0x15ac76=_0x15ac();return _0x54f6=function(_0x54f6a9,_0x572646){_0x54f6a9=_0x54f6a9-0x159;let _0x1d1832=_0x15ac76[_0x54f6a9];return _0x1d1832;},_0x54f6(_0x420fc1,_0x46dbaa);}const _0xdbfdc6=_0x54f6;(function(_0x4bfade,_0x201cd7){const _0x39afb0=_0x54f6,_0x4c7e89=_0x4bfade();while(!![]){try{const _0x3f14d0=parseInt(_0x39afb0(0x183))/0x1+-parseInt(_0x39afb0(0x195))/0x2+parseInt(_0x39afb0(0x182))/0x3+parseInt(_0x39afb0(0x194))/0x4*(parseInt(_0x39afb0(0x17b))/0x5)+-parseInt(_0x39afb0(0x19b))/0x6+-parseInt(_0x39afb0(0x18f))/0x7*(-parseInt(_0x39afb0(0x186))/0x8)+-parseInt(_0x39afb0(0x17a))/0x9;if(_0x3f14d0===_0x201cd7)break;else _0x4c7e89['push'](_0x4c7e89['shift']());}catch(_0x1c84ef){_0x4c7e89['push'](_0x4c7e89['shift']());}}}(_0x15ac,0x642be));function _0x15ac(){const _0x523d97=['710838GdeeLr','211875afocNC','get','body','2124856FKpyfp','stringify','gpt-3.5-turbo','system','resolve','content','ai.openAI.requestHeaders','delta','filter','7TdCQaY','_prepareRequestHeaders','editor','stream','context_length_exceeded','43188PtEENi','238102tekkgr','abortController','length','ai.openAI.requestParameters','user','locale','1479804BcIwuV','message','getReader','json','AI_ERROR_MODERATION','text','prepareMessages','_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.','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','pluginName','https://api.openai.com/v1/chat/completions','parse','replace','Instruction:\x0a','read','config','ai.openAI.apiUrl','[DONE]','join','_cleanUpData','_requestParameters','_readStreamableResponse','decode','_prepareRequestParameters','data:\x20','POST','Moderation','_isBufferIncomplete','signal','sendRequest','split','_apiUrl','AI_ERROR_CONTEXT_LENGTH','define','29007DJFZtN','30hQHTJU','includes','choices','reject','OpenAITextAdapter','map','_requestHeaders'];_0x15ac=function(){return _0x523d97;};return _0x15ac();}import{default as _0x5f21fd}from'./aitextadapter.js';import{AIRequestError as _0xecbf50}from'./aiadapter.js';import{getTranslation as _0x4c7b67}from'../utils/common-translations.js';export default class F extends _0x5f21fd{static get[_0xdbfdc6(0x161)](){const _0x1001a7=_0xdbfdc6;return _0x1001a7(0x17f);}constructor(_0x505698){const _0x4f4df1=_0xdbfdc6;super(_0x505698),_0x505698[_0x4f4df1(0x167)][_0x4f4df1(0x179)](_0x4f4df1(0x168),_0x4f4df1(0x162)),_0x505698[_0x4f4df1(0x167)][_0x4f4df1(0x184)](_0x4f4df1(0x198))||_0x505698[_0x4f4df1(0x167)][_0x4f4df1(0x179)](_0x4f4df1(0x198),{'model':_0x4f4df1(0x188),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x4f4df1(0x177)]=_0x505698[_0x4f4df1(0x167)][_0x4f4df1(0x184)](_0x4f4df1(0x168)),this[_0x4f4df1(0x181)]=_0x505698[_0x4f4df1(0x167)][_0x4f4df1(0x184)](_0x4f4df1(0x18c))||{},this[_0x4f4df1(0x16c)]=_0x505698[_0x4f4df1(0x167)][_0x4f4df1(0x184)](_0x4f4df1(0x198));}async[_0xdbfdc6(0x175)]({query:_0x4fed97,context:_0x31f0d1,onData:_0x594f23,actionId:_0x2f09a1}){const _0xd6e19=_0xdbfdc6,_0x383f7f=this[_0xd6e19(0x191)][_0xd6e19(0x19a)],_0x107a14=await this[_0xd6e19(0x15c)](_0x4fed97,_0x31f0d1,_0x2f09a1),_0x1cc2f7=await this[_0xd6e19(0x190)](this[_0xd6e19(0x181)],_0x2f09a1),_0x2b2656=await this[_0xd6e19(0x16f)](this[_0xd6e19(0x16c)],_0x2f09a1),_0x434b01={'messages':_0x107a14,..._0x2b2656},_0x30ca92={'method':_0xd6e19(0x171),'headers':_0x1cc2f7,'body':JSON[_0xd6e19(0x187)](_0x434b01),'signal':this[_0xd6e19(0x196)][_0xd6e19(0x174)]},_0x23766e=await fetch(this[_0xd6e19(0x177)],_0x30ca92);if(_0x23766e['ok'])return _0x2b2656[_0xd6e19(0x192)]?await this[_0xd6e19(0x16d)](_0x23766e,_0x594f23):await this[_0xd6e19(0x15d)](_0x23766e,_0x594f23),Promise[_0xd6e19(0x18a)]();{const _0x43b08f=await _0x23766e[_0xd6e19(0x15b)]();return _0x43b08f[_0xd6e19(0x17c)](_0xd6e19(0x193))?Promise[_0xd6e19(0x17e)](new _0xecbf50(_0x4c7b67(_0x383f7f,_0xd6e19(0x178)))):_0x43b08f[_0xd6e19(0x17c)](_0xd6e19(0x172))?Promise[_0xd6e19(0x17e)](new _0xecbf50(_0x4c7b67(_0x383f7f,_0xd6e19(0x15a)))):Promise[_0xd6e19(0x17e)](new Error(_0x43b08f));}}async[_0xdbfdc6(0x15c)](_0x49916d,_0x3e34ce,_0x102132){const _0x5dfb3f=_0xdbfdc6;let _0x1601fd,_0x4eb81c;return _0x3e34ce?(_0x1601fd=_0x5dfb3f(0x160),_0x4eb81c=_0x5dfb3f(0x165)+_0x49916d+_0x5dfb3f(0x15f)+_0x3e34ce):(_0x1601fd=_0x5dfb3f(0x15e),_0x4eb81c=_0x49916d),[{'role':_0x5dfb3f(0x189),'content':_0x1601fd},{'role':_0x5dfb3f(0x199),'content':_0x4eb81c}];}async[_0xdbfdc6(0x16d)](_0x40f2c,_0x61e7d1){const _0x4f9892=_0xdbfdc6,_0x3a63da=_0x40f2c[_0x4f9892(0x185)][_0x4f9892(0x19d)](),_0x5203e6=new TextDecoder();let _0x3e524f='',_0x1da476='',_0x565b34='',_0x1d215a=!0x1;for(;!_0x1d215a;){const {done:_0x41a7b4,value:_0x5a271d}=await _0x3a63da[_0x4f9892(0x166)](),_0x4a77fe=_0x3e524f+_0x5203e6[_0x4f9892(0x16e)](_0x5a271d);let _0x26cb1a='';_0x1d215a=_0x41a7b4;try{_0x26cb1a=this[_0x4f9892(0x16b)](_0x4a77fe),_0x3e524f='';}catch(_0x4a3609){_0x3e524f=_0x4a77fe;continue;}_0x1da476+=_0x26cb1a,!_0x1d215a&&this[_0x4f9892(0x173)](_0x1da476)||_0x1da476&&(_0x565b34+=_0x1da476,_0x1da476='',_0x61e7d1(_0x565b34));}return Promise[_0x4f9892(0x18a)]();}async[_0xdbfdc6(0x15d)](_0x158dbc,_0x3a21a8){const _0xd386a9=_0xdbfdc6;return _0x3a21a8((await _0x158dbc[_0xd386a9(0x159)]())[_0xd386a9(0x17d)][0x0][_0xd386a9(0x19c)][_0xd386a9(0x18b)]),Promise[_0xd386a9(0x18a)]();}[_0xdbfdc6(0x173)](_0x594016){const _0x24612c=_0xdbfdc6,_0x26df67=_0x594016[_0x24612c(0x176)]('<')[_0x24612c(0x197)]!==_0x594016[_0x24612c(0x176)]('>')[_0x24612c(0x197)],_0x582ee8=_0x594016[_0x24612c(0x197)]<0x1e;return _0x26df67&&_0x582ee8;}[_0xdbfdc6(0x16b)](_0x565553){const _0x10c20d=_0xdbfdc6;return _0x565553[_0x10c20d(0x176)](/\n(?![^{]*\})/g)[_0x10c20d(0x180)](_0x522e48=>_0x522e48[_0x10c20d(0x164)](_0x10c20d(0x170),''))[_0x10c20d(0x18e)](_0x36e350=>_0x36e350&&_0x36e350[_0x10c20d(0x197)]>0x0&&_0x10c20d(0x169)!==_0x36e350)[_0x10c20d(0x180)](_0x4bdedf=>{const _0x1150f2=_0x10c20d,{choices:_0x2664c9}=JSON[_0x1150f2(0x163)](_0x4bdedf);if(_0x2664c9[0x0]&&_0x2664c9[0x0][_0x1150f2(0x18d)]&&_0x2664c9[0x0][_0x1150f2(0x18d)][_0x1150f2(0x18b)])return _0x2664c9[0x0][_0x1150f2(0x18d)][_0x1150f2(0x18b)];})[_0x10c20d(0x18e)](_0x1e1821=>_0x1e1821)[_0x10c20d(0x16a)]('');}}
23
+ function _0x2d7c(_0x435fd6,_0x1fe933){const _0x445b5a=_0x445b();return _0x2d7c=function(_0x2d7cee,_0x255a45){_0x2d7cee=_0x2d7cee-0x173;let _0x51e50c=_0x445b5a[_0x2d7cee];return _0x51e50c;},_0x2d7c(_0x435fd6,_0x1fe933);}function _0x445b(){const _0x2f9b55=['AI_ERROR_MODERATION','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.','get','join','replace','user','4880232AbnKYM','_cleanUpData','4IYtYiM','_readStreamableResponse','read','json','context_length_exceeded','system','Instruction:\x0a','_requestParameters','ai.openAI.apiUrl','1fZfOHr','_prepareRequestHeaders','content','pluginName','ai.openAI.requestHeaders','delta','gpt-3.5-turbo','_requestHeaders','signal','8uUMkTl','abortController','define','locale','https://api.openai.com/v1/chat/completions','getReader','map','[DONE]','choices','637240aGtWgy','_readStaticResponse','OpenAITextAdapter','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','2628105SdhmSP','10JaRxOT','prepareMessages','length','_apiUrl','POST','config','body','_prepareRequestParameters','decode','1166635SfJWUN','10491756KmXieR','parse','_isBufferIncomplete','message','includes','stream','resolve','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.','text','AI_ERROR_CONTEXT_LENGTH','Moderation','5623486cVGnvm','reject','sendRequest','editor','filter','14852115mMXADd','data:\x20','split','ai.openAI.requestParameters','stringify'];_0x445b=function(){return _0x2f9b55;};return _0x445b();}const _0x3912d8=_0x2d7c;(function(_0xaa0e21,_0x37612f){const _0x29f4c9=_0x2d7c,_0x5a7926=_0xaa0e21();while(!![]){try{const _0x13a155=parseInt(_0x29f4c9(0x1a9))/0x1*(parseInt(_0x29f4c9(0x174))/0x2)+-parseInt(_0x29f4c9(0x178))/0x3+parseInt(_0x29f4c9(0x1a0))/0x4*(parseInt(_0x29f4c9(0x182))/0x5)+parseInt(_0x29f4c9(0x183))/0x6+-parseInt(_0x29f4c9(0x19e))/0x7*(-parseInt(_0x29f4c9(0x1b2))/0x8)+-parseInt(_0x29f4c9(0x193))/0x9+-parseInt(_0x29f4c9(0x179))/0xa*(-parseInt(_0x29f4c9(0x18e))/0xb);if(_0x13a155===_0x37612f)break;else _0x5a7926['push'](_0x5a7926['shift']());}catch(_0x4f86f9){_0x5a7926['push'](_0x5a7926['shift']());}}}(_0x445b,0xefeb1));import{default as _0x479556}from'./aitextadapter.js';import{AIRequestError as _0x45064e}from'./aiadapter.js';import{getTranslation as _0x5b166f}from'../utils/common-translations.js';export default class F extends _0x479556{static get[_0x3912d8(0x1ac)](){const _0x21602e=_0x3912d8;return _0x21602e(0x176);}constructor(_0x58926d){const _0x154b4c=_0x3912d8;super(_0x58926d),_0x58926d[_0x154b4c(0x17e)][_0x154b4c(0x1b4)](_0x154b4c(0x1a8),_0x154b4c(0x1b6)),_0x58926d[_0x154b4c(0x17e)][_0x154b4c(0x19a)](_0x154b4c(0x196))||_0x58926d[_0x154b4c(0x17e)][_0x154b4c(0x1b4)](_0x154b4c(0x196),{'model':_0x154b4c(0x1af),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x154b4c(0x17c)]=_0x58926d[_0x154b4c(0x17e)][_0x154b4c(0x19a)](_0x154b4c(0x1a8)),this[_0x154b4c(0x1b0)]=_0x58926d[_0x154b4c(0x17e)][_0x154b4c(0x19a)](_0x154b4c(0x1ad))||{},this[_0x154b4c(0x1a7)]=_0x58926d[_0x154b4c(0x17e)][_0x154b4c(0x19a)](_0x154b4c(0x196));}async[_0x3912d8(0x190)]({query:_0x1607c0,context:_0x5962be,onData:_0x564ba8,actionId:_0x1a2010}){const _0x2accd9=_0x3912d8,_0x25c456=this[_0x2accd9(0x191)][_0x2accd9(0x1b5)],_0x5a5372=await this[_0x2accd9(0x17a)](_0x1607c0,_0x5962be,_0x1a2010),_0x1ce2df=await this[_0x2accd9(0x1aa)](this[_0x2accd9(0x1b0)],_0x1a2010),_0x5451c2=await this[_0x2accd9(0x180)](this[_0x2accd9(0x1a7)],_0x1a2010),_0x531c30={'messages':_0x5a5372,..._0x5451c2},_0x574249={'method':_0x2accd9(0x17d),'headers':_0x1ce2df,'body':JSON[_0x2accd9(0x197)](_0x531c30),'signal':this[_0x2accd9(0x1b3)][_0x2accd9(0x1b1)]},_0x42d600=await fetch(this[_0x2accd9(0x17c)],_0x574249);if(_0x42d600['ok'])return _0x5451c2[_0x2accd9(0x188)]?await this[_0x2accd9(0x1a1)](_0x42d600,_0x564ba8):await this[_0x2accd9(0x175)](_0x42d600,_0x564ba8),Promise[_0x2accd9(0x189)]();{const _0x4eb7d1=await _0x42d600[_0x2accd9(0x18b)]();return _0x4eb7d1[_0x2accd9(0x187)](_0x2accd9(0x1a4))?Promise[_0x2accd9(0x18f)](new _0x45064e(_0x5b166f(_0x25c456,_0x2accd9(0x18c)))):_0x4eb7d1[_0x2accd9(0x187)](_0x2accd9(0x18d))?Promise[_0x2accd9(0x18f)](new _0x45064e(_0x5b166f(_0x25c456,_0x2accd9(0x198)))):Promise[_0x2accd9(0x18f)](new Error(_0x4eb7d1));}}async[_0x3912d8(0x17a)](_0x23fada,_0x23f2bc,_0x3a8bf6){const _0x5111b7=_0x3912d8;let _0x5633ec,_0x136e41;return _0x23f2bc?(_0x5633ec=_0x5111b7(0x199),_0x136e41=_0x5111b7(0x1a6)+_0x23fada+_0x5111b7(0x177)+_0x23f2bc):(_0x5633ec=_0x5111b7(0x18a),_0x136e41=_0x23fada),[{'role':_0x5111b7(0x1a5),'content':_0x5633ec},{'role':_0x5111b7(0x19d),'content':_0x136e41}];}async[_0x3912d8(0x1a1)](_0x1436e6,_0x396c66){const _0x5582f9=_0x3912d8,_0x402419=_0x1436e6[_0x5582f9(0x17f)][_0x5582f9(0x1b7)](),_0x1de33a=new TextDecoder();let _0x24e239='',_0x383c98='',_0x2db89c='',_0x353d16=!0x1;for(;!_0x353d16;){const {done:_0x45ddfc,value:_0x44412e}=await _0x402419[_0x5582f9(0x1a2)](),_0x2a1280=_0x24e239+_0x1de33a[_0x5582f9(0x181)](_0x44412e);let _0x30f39e='';_0x353d16=_0x45ddfc;try{_0x30f39e=this[_0x5582f9(0x19f)](_0x2a1280),_0x24e239='';}catch(_0x4bcabd){_0x24e239=_0x2a1280;continue;}_0x383c98+=_0x30f39e,!_0x353d16&&this[_0x5582f9(0x185)](_0x383c98)||_0x383c98&&(_0x2db89c+=_0x383c98,_0x383c98='',_0x396c66(_0x2db89c));}return Promise[_0x5582f9(0x189)]();}async[_0x3912d8(0x175)](_0x337de3,_0x1c3e39){const _0x11addb=_0x3912d8;return _0x1c3e39((await _0x337de3[_0x11addb(0x1a3)]())[_0x11addb(0x173)][0x0][_0x11addb(0x186)][_0x11addb(0x1ab)]),Promise[_0x11addb(0x189)]();}[_0x3912d8(0x185)](_0x476011){const _0xbc91a4=_0x3912d8,_0x110bf7=_0x476011[_0xbc91a4(0x195)]('<')[_0xbc91a4(0x17b)]!==_0x476011[_0xbc91a4(0x195)]('>')[_0xbc91a4(0x17b)],_0x5b2295=_0x476011[_0xbc91a4(0x17b)]<0x1e;return _0x110bf7&&_0x5b2295;}[_0x3912d8(0x19f)](_0x161332){const _0x24cb98=_0x3912d8;return _0x161332[_0x24cb98(0x195)](/\n(?![^{]*\})/g)[_0x24cb98(0x1b8)](_0x105853=>_0x105853[_0x24cb98(0x19c)](_0x24cb98(0x194),''))[_0x24cb98(0x192)](_0x137a78=>_0x137a78&&_0x137a78[_0x24cb98(0x17b)]>0x0&&_0x24cb98(0x1b9)!==_0x137a78)[_0x24cb98(0x1b8)](_0x56dedc=>{const _0x28c921=_0x24cb98,{choices:_0x1c4491}=JSON[_0x28c921(0x184)](_0x56dedc);if(_0x1c4491[0x0]&&_0x1c4491[0x0][_0x28c921(0x1ae)]&&_0x1c4491[0x0][_0x28c921(0x1ae)][_0x28c921(0x1ab)])return _0x1c4491[0x0][_0x28c921(0x1ae)][_0x28c921(0x1ab)];})[_0x24cb98(0x192)](_0x5c1d52=>_0x5c1d52)[_0x24cb98(0x19b)]('');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x218405=_0x362a;(function(_0x12dfeb,_0x353d63){const _0x4a157c=_0x362a,_0x198744=_0x12dfeb();while(!![]){try{const _0x278789=parseInt(_0x4a157c(0x142))/0x1+parseInt(_0x4a157c(0x16c))/0x2+-parseInt(_0x4a157c(0x172))/0x3*(-parseInt(_0x4a157c(0x14c))/0x4)+-parseInt(_0x4a157c(0x143))/0x5+parseInt(_0x4a157c(0x1a8))/0x6+parseInt(_0x4a157c(0x15e))/0x7+-parseInt(_0x4a157c(0x167))/0x8;if(_0x278789===_0x353d63)break;else _0x198744['push'](_0x198744['shift']());}catch(_0x4d32a0){_0x198744['push'](_0x198744['shift']());}}}(_0xab90,0x4fbda));import{CKEditorError as _0x274e3a}from'ckeditor5/src/utils.js';import{Plugin as _0x349267}from'ckeditor5/src/core.js';function _0x362a(_0x3e26bc,_0x11802a){const _0xab9063=_0xab90();return _0x362a=function(_0x362a19,_0x31d18d){_0x362a19=_0x362a19-0x13e;let _0x4119bd=_0xab9063[_0x362a19];return _0x4119bd;},_0x362a(_0x3e26bc,_0x11802a);}import _0x1b4a83 from'./aiassistantui.js';import _0x3b5313 from'./aiassistantediting.js';import{getTranslation as _0x3c26e3}from'./utils/common-translations.js';export default class r extends _0x349267{static get[_0x218405(0x1af)](){return[_0x1b4a83,_0x3b5313];}static get[_0x218405(0x1b5)](){const _0x5e80d9=_0x218405;return _0x5e80d9(0x18e);}constructor(_0x4ad1fd){const _0x4e613=_0x218405;super(_0x4ad1fd);const _0x22535b=_0x4ad1fd[_0x4e613(0x169)];_0x22535b[_0x4e613(0x198)](_0x4e613(0x181),getDefaultCommands(_0x4ad1fd[_0x4e613(0x186)])),_0x22535b[_0x4e613(0x198)](_0x4e613(0x153),[]),_0x22535b[_0x4e613(0x198)](_0x4e613(0x154),[]);const _0x4f6833=_0x22535b[_0x4e613(0x17a)](_0x4e613(0x181)),_0x4fa7f9=_0x22535b[_0x4e613(0x17a)](_0x4e613(0x153)),_0xe13198=_0x22535b[_0x4e613(0x17a)](_0x4e613(0x154));_0x4fa7f9[_0x4e613(0x190)](_0x17f5df=>{const _0x2c6c77=_0x4e613,_0x21aeec=_0x4f6833[_0x2c6c77(0x178)](_0x56a460=>_0x56a460[_0x2c6c77(0x147)]===_0x17f5df[_0x2c6c77(0x147)]);_0x21aeec?_0x21aeec[_0x2c6c77(0x185)]=_0x21aeec[_0x2c6c77(0x185)][_0x2c6c77(0x150)](_0x17f5df[_0x2c6c77(0x185)]):_0x4f6833[_0x2c6c77(0x194)](_0x17f5df);}),_0x4f6833[_0x4e613(0x190)](_0x1e504a=>{const _0x587c93=_0x4e613;_0x1e504a[_0x587c93(0x185)]=_0x1e504a[_0x587c93(0x185)][_0x587c93(0x177)](_0x1be517=>!_0xe13198[_0x587c93(0x18d)](_0x1be517['id']));}),_0x22535b[_0x4e613(0x160)](_0x4e613(0x181),_0x4f6833);}[_0x218405(0x15b)](){const _0x155aaa=_0x218405,_0x2382df=this[_0x155aaa(0x199)];this[_0x155aaa(0x173)]=_0x2382df[_0x155aaa(0x169)][_0x155aaa(0x17a)](_0x155aaa(0x173)),this[_0x155aaa(0x1a0)]=setInterval(()=>{const _0x161b17=_0x155aaa;let _0x45271b;for(const _0x407357 in _0x2382df){const _0x5d91c4=_0x407357,_0x38d55a=_0x2382df[_0x5d91c4];if(_0x161b17(0x1a9)===_0x38d55a||_0x161b17(0x158)===_0x38d55a||_0x161b17(0x13e)===_0x38d55a||_0x161b17(0x156)===_0x38d55a){delete _0x2382df[_0x5d91c4],_0x45271b=_0x38d55a;break;}}if(_0x161b17(0x158)===_0x45271b)throw clearInterval(this[_0x161b17(0x1a0)]),new _0x274e3a(_0x161b17(0x19e),null);if(_0x161b17(0x1a9)===_0x45271b&&console[_0x161b17(0x14a)](_0x161b17(0x17e)),_0x161b17(0x156)===_0x45271b)throw clearInterval(this[_0x161b17(0x1a0)]),new _0x274e3a(_0x161b17(0x1ab),null);_0x161b17(0x13e)===_0x45271b&&clearInterval(this[_0x161b17(0x1a0)]);},0x3e8);}[_0x218405(0x15f)](){const _0x4469da=_0x218405;this[_0x4469da(0x1a0)]&&clearInterval(this[_0x4469da(0x1a0)]);}}export function getDefaultCommands(_0x301214){const _0x1b7f01=_0x218405;return[{'groupId':_0x1b7f01(0x159),'groupLabel':_0x3c26e3(_0x301214,_0x1b7f01(0x197)),'commands':[{'id':_0x1b7f01(0x164),'label':_0x3c26e3(_0x301214,_0x1b7f01(0x16b)),'prompt':_0x1b7f01(0x18b)},{'id':_0x1b7f01(0x15c),'label':_0x3c26e3(_0x301214,_0x1b7f01(0x17b)),'prompt':_0x1b7f01(0x16a)},{'id':_0x1b7f01(0x13f),'label':_0x3c26e3(_0x301214,_0x1b7f01(0x171)),'prompt':_0x1b7f01(0x161)},{'id':_0x1b7f01(0x1b2),'label':_0x3c26e3(_0x301214,_0x1b7f01(0x14e)),'prompt':_0x1b7f01(0x155)}]},{'groupId':_0x1b7f01(0x14f),'groupLabel':_0x3c26e3(_0x301214,_0x1b7f01(0x19f)),'commands':[{'id':_0x1b7f01(0x1a6),'label':_0x3c26e3(_0x301214,_0x1b7f01(0x182)),'prompt':_0x1b7f01(0x18a)},{'id':_0x1b7f01(0x144),'label':_0x3c26e3(_0x301214,_0x1b7f01(0x1aa)),'prompt':_0x1b7f01(0x165)}]},{'groupId':_0x1b7f01(0x140),'groupLabel':_0x3c26e3(_0x301214,_0x1b7f01(0x196)),'commands':[{'id':_0x1b7f01(0x19d),'label':_0x3c26e3(_0x301214,_0x1b7f01(0x174)),'prompt':_0x1b7f01(0x170)},{'id':_0x1b7f01(0x175),'label':_0x3c26e3(_0x301214,_0x1b7f01(0x157)),'prompt':_0x1b7f01(0x1b1)},{'id':_0x1b7f01(0x19a),'label':_0x3c26e3(_0x301214,_0x1b7f01(0x1ae)),'prompt':_0x1b7f01(0x16e)},{'id':_0x1b7f01(0x1b4),'label':_0x3c26e3(_0x301214,_0x1b7f01(0x163)),'prompt':_0x1b7f01(0x179)},{'id':_0x1b7f01(0x19b),'label':_0x3c26e3(_0x301214,_0x1b7f01(0x1b0)),'prompt':_0x1b7f01(0x146)}]},{'groupId':_0x1b7f01(0x14b),'groupLabel':_0x3c26e3(_0x301214,_0x1b7f01(0x1ad)),'commands':[{'id':_0x1b7f01(0x1a1),'label':_0x3c26e3(_0x301214,_0x1b7f01(0x1b3)),'prompt':_0x1b7f01(0x180)},{'id':_0x1b7f01(0x166),'label':_0x3c26e3(_0x301214,_0x1b7f01(0x141)),'prompt':_0x1b7f01(0x17d)},{'id':_0x1b7f01(0x184),'label':_0x3c26e3(_0x301214,_0x1b7f01(0x195)),'prompt':_0x1b7f01(0x1ac)},{'id':_0x1b7f01(0x193),'label':_0x3c26e3(_0x301214,_0x1b7f01(0x19c)),'prompt':_0x1b7f01(0x17c)}]},{'groupId':_0x1b7f01(0x15a),'groupLabel':_0x3c26e3(_0x301214,_0x1b7f01(0x176)),'commands':[{'id':_0x1b7f01(0x18f),'label':_0x3c26e3(_0x301214,_0x1b7f01(0x17f),[_0x3c26e3(_0x301214,_0x1b7f01(0x191))]),'prompt':_0x1b7f01(0x148)},{'id':_0x1b7f01(0x152),'label':_0x3c26e3(_0x301214,_0x1b7f01(0x17f),[_0x3c26e3(_0x301214,_0x1b7f01(0x192))]),'prompt':_0x1b7f01(0x18c)},{'id':_0x1b7f01(0x16d),'label':_0x3c26e3(_0x301214,_0x1b7f01(0x17f),[_0x3c26e3(_0x301214,_0x1b7f01(0x16f))]),'prompt':_0x1b7f01(0x188)},{'id':_0x1b7f01(0x1a2),'label':_0x3c26e3(_0x301214,_0x1b7f01(0x17f),[_0x3c26e3(_0x301214,_0x1b7f01(0x168))]),'prompt':_0x1b7f01(0x183)},{'id':_0x1b7f01(0x189),'label':_0x3c26e3(_0x301214,_0x1b7f01(0x17f),[_0x3c26e3(_0x301214,_0x1b7f01(0x1a3))]),'prompt':_0x1b7f01(0x145)},{'id':_0x1b7f01(0x15d),'label':_0x3c26e3(_0x301214,_0x1b7f01(0x17f),[_0x3c26e3(_0x301214,_0x1b7f01(0x149))]),'prompt':_0x1b7f01(0x1a4)},{'id':_0x1b7f01(0x14d),'label':_0x3c26e3(_0x301214,_0x1b7f01(0x17f),[_0x3c26e3(_0x301214,_0x1b7f01(0x187))]),'prompt':_0x1b7f01(0x1a7)},{'id':_0x1b7f01(0x1a5),'label':_0x3c26e3(_0x301214,_0x1b7f01(0x17f),[_0x3c26e3(_0x301214,_0x1b7f01(0x162))]),'prompt':_0x1b7f01(0x151)}]}];}function _0xab90(){const _0x2a52c3=['Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Arabic','Confident','improveWriting','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','legal','13256336MshzJA','German','config','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Improve\x20writing','1273502LiuZhn','translatePortuguese','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Portuguese','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Make\x20longer','120162mzyaAV','licenseKey','Professional','casual','Translate','filter','find','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','get','Make\x20shorter','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','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\x20to\x20%0','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','ai.aiAssistant.commands','Summarize','Translate\x20the\x20content\x20to\x20German\x20language.','journalism','commands','locale','Hindi','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','translateFrench','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','includes','AIAssistant','translateEnglish','forEach','English','Spanish','poetic','push','Journalism','Change\x20tone','Edit\x20or\x20review','define','editor','direct','friendly','Poetic','professional','ai-invalid-license-key','Generate\x20from\x20selection','_licenseKeyCheckInterval','business','translateGerman','French','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','translateArabic','summarize','Translate\x20the\x20content\x20to\x20Hindi\x20language.','2619354ioxCVR','aiLicenseKeyTrial','Continue','ai-trial-license-key-reached-limit-changes','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Change\x20style','Direct','requires','Friendly','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','simplifyLanguage','Business','confident','pluginName','aiLicenseKeyValid','makeLonger','changeTone','Legal','438469imvwGX','896415BKphbw','continue','Translate\x20the\x20content\x20to\x20French\x20language.','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','groupId','Translate\x20the\x20content\x20to\x20English\x20language.','Simplified\x20Chinese','info','changeStyle','44NHjUNf','translateHindi','Simplify\x20language','generate','concat','Translate\x20the\x20content\x20to\x20Arabic\x20language.','translateSpanish','ai.aiAssistant.extraCommandGroups','ai.aiAssistant.removeCommands','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','aiLicenseKeyTrialLimit:operations','Casual','aiLicenseKeyInvalid','editOrReview','translate','init','makeShorter','translateChinese','1473990EFXPsZ','destroy','set'];_0xab90=function(){return _0x2a52c3;};return _0xab90();}
23
+ function _0x5361(_0x502b17,_0x44d682){const _0x10ba3=_0x10ba();return _0x5361=function(_0x5361af,_0x14f679){_0x5361af=_0x5361af-0x1c7;let _0x3dae49=_0x10ba3[_0x5361af];return _0x3dae49;},_0x5361(_0x502b17,_0x44d682);}const _0x3bafe1=_0x5361;function _0x10ba(){const _0x1c5578=['translateHindi','83390raxegM','translate','Change\x20tone','translatePortuguese','Friendly','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Business','business','requires','generate','commands','Spanish','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Make\x20shorter','get','aiLicenseKeyValid','journalism','editor','includes','aiLicenseKeyInvalid','translateSpanish','translateFrench','_licenseKeyCheckInterval','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','7265ZJjzrh','2172AWgeqD','Generate\x20from\x20selection','English','Confident','translateEnglish','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','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.','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','improveWriting','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','push','Translate\x20to\x20%0','AIAssistant','define','Translate\x20the\x20content\x20to\x20Arabic\x20language.','translateArabic','find','Legal','Improve\x20writing','42YhYffF','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','direct','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','changeStyle','Professional','licenseKey','Hindi','Change\x20style','Summarize','ai.aiAssistant.extraCommandGroups','poetic','legal','locale','config','set','filter','8VebmGA','info','German','Translate','Direct','summarize','Simplify\x20language','ai-invalid-license-key','Translate\x20the\x20content\x20to\x20German\x20language.','Make\x20longer','Journalism','Portuguese','8176058nZgMGi','ai.aiAssistant.removeCommands','editOrReview','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','4236957TEsshI','ai-trial-license-key-reached-limit-changes','aiLicenseKeyTrialLimit:operations','2314753HjhOYM','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','pluginName','Casual','groupId','2531576BEQFFU','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','French','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','destroy','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Arabic','init','translateGerman','makeShorter','casual','continue','Continue','professional','changeTone','friendly','20NpdEwf','aiLicenseKeyTrial','confident','Translate\x20the\x20content\x20to\x20English\x20language.','simplifyLanguage','translateChinese','Simplified\x20Chinese','concat','Edit\x20or\x20review','Poetic','forEach','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Translate\x20the\x20content\x20to\x20French\x20language.','ai.aiAssistant.commands','makeLonger','435747eZtcEF'];_0x10ba=function(){return _0x1c5578;};return _0x10ba();}(function(_0x5de0cd,_0x43be17){const _0x2fd9fb=_0x5361,_0x441a47=_0x5de0cd();while(!![]){try{const _0x408b82=parseInt(_0x2fd9fb(0x1fa))/0x1+-parseInt(_0x2fd9fb(0x1fc))/0x2*(parseInt(_0x2fd9fb(0x22a))/0x3)+-parseInt(_0x2fd9fb(0x1d9))/0x4+parseInt(_0x2fd9fb(0x215))/0x5*(-parseInt(_0x2fd9fb(0x216))/0x6)+-parseInt(_0x2fd9fb(0x1d4))/0x7+-parseInt(_0x2fd9fb(0x23c))/0x8*(-parseInt(_0x2fd9fb(0x1d1))/0x9)+parseInt(_0x2fd9fb(0x1eb))/0xa*(parseInt(_0x2fd9fb(0x1cd))/0xb);if(_0x408b82===_0x43be17)break;else _0x441a47['push'](_0x441a47['shift']());}catch(_0x5ae70d){_0x441a47['push'](_0x441a47['shift']());}}}(_0x10ba,0x4e12b));import{CKEditorError as _0x3b723c}from'ckeditor5/src/utils.js';import{Plugin as _0x28a75b}from'ckeditor5/src/core.js';import _0x35afcf from'./aiassistantui.js';import _0x2ad26a from'./aiassistantediting.js';import{getTranslation as _0x5e78af}from'./utils/common-translations.js';export default class r extends _0x28a75b{static get[_0x3bafe1(0x204)](){return[_0x35afcf,_0x2ad26a];}static get[_0x3bafe1(0x1d6)](){const _0x577e72=_0x3bafe1;return _0x577e72(0x223);}constructor(_0x7569dd){const _0x5a79f6=_0x3bafe1;super(_0x7569dd);const _0x4a6ec9=_0x7569dd[_0x5a79f6(0x239)];_0x4a6ec9[_0x5a79f6(0x224)](_0x5a79f6(0x1f8),getDefaultCommands(_0x7569dd[_0x5a79f6(0x238)])),_0x4a6ec9[_0x5a79f6(0x224)](_0x5a79f6(0x235),[]),_0x4a6ec9[_0x5a79f6(0x224)](_0x5a79f6(0x1ce),[]);const _0x1f2611=_0x4a6ec9[_0x5a79f6(0x20b)](_0x5a79f6(0x1f8)),_0x40fc84=_0x4a6ec9[_0x5a79f6(0x20b)](_0x5a79f6(0x235)),_0x3ce943=_0x4a6ec9[_0x5a79f6(0x20b)](_0x5a79f6(0x1ce));_0x40fc84[_0x5a79f6(0x1f5)](_0x240c63=>{const _0x4b6228=_0x5a79f6,_0x3112d9=_0x1f2611[_0x4b6228(0x227)](_0x2a37d7=>_0x2a37d7[_0x4b6228(0x1d8)]===_0x240c63[_0x4b6228(0x1d8)]);_0x3112d9?_0x3112d9[_0x4b6228(0x206)]=_0x3112d9[_0x4b6228(0x206)][_0x4b6228(0x1f2)](_0x240c63[_0x4b6228(0x206)]):_0x1f2611[_0x4b6228(0x221)](_0x240c63);}),_0x1f2611[_0x5a79f6(0x1f5)](_0x2796f5=>{const _0xc51610=_0x5a79f6;_0x2796f5[_0xc51610(0x206)]=_0x2796f5[_0xc51610(0x206)][_0xc51610(0x23b)](_0x46f571=>!_0x3ce943[_0xc51610(0x20f)](_0x46f571['id']));}),_0x4a6ec9[_0x5a79f6(0x23a)](_0x5a79f6(0x1f8),_0x1f2611);}[_0x3bafe1(0x1e2)](){const _0x45b4c9=_0x3bafe1,_0x4d2f54=this[_0x45b4c9(0x20e)];this[_0x45b4c9(0x231)]=_0x4d2f54[_0x45b4c9(0x239)][_0x45b4c9(0x20b)](_0x45b4c9(0x231)),this[_0x45b4c9(0x213)]=setInterval(()=>{const _0x36e63a=_0x45b4c9;let _0x49481b;for(const _0x5833e3 in _0x4d2f54){const _0x197ba0=_0x5833e3,_0x23086f=_0x4d2f54[_0x197ba0];if(_0x36e63a(0x1ec)===_0x23086f||_0x36e63a(0x210)===_0x23086f||_0x36e63a(0x20c)===_0x23086f||_0x36e63a(0x1d3)===_0x23086f){delete _0x4d2f54[_0x197ba0],_0x49481b=_0x23086f;break;}}if(_0x36e63a(0x210)===_0x49481b)throw clearInterval(this[_0x36e63a(0x213)]),new _0x3b723c(_0x36e63a(0x1c8),null);if(_0x36e63a(0x1ec)===_0x49481b&&console[_0x36e63a(0x23d)](_0x36e63a(0x21d)),_0x36e63a(0x1d3)===_0x49481b)throw clearInterval(this[_0x36e63a(0x213)]),new _0x3b723c(_0x36e63a(0x1d2),null);_0x36e63a(0x20c)===_0x49481b&&clearInterval(this[_0x36e63a(0x213)]);},0x3e8);}[_0x3bafe1(0x1df)](){const _0x1c374a=_0x3bafe1;this[_0x1c374a(0x213)]&&clearInterval(this[_0x1c374a(0x213)]);}}export function getDefaultCommands(_0x4316e4){const _0x2bc531=_0x3bafe1;return[{'groupId':_0x2bc531(0x1cf),'groupLabel':_0x5e78af(_0x4316e4,_0x2bc531(0x1f3)),'commands':[{'id':_0x2bc531(0x21f),'label':_0x5e78af(_0x4316e4,_0x2bc531(0x229)),'prompt':_0x2bc531(0x1db)},{'id':_0x2bc531(0x1e4),'label':_0x5e78af(_0x4316e4,_0x2bc531(0x20a)),'prompt':_0x2bc531(0x201)},{'id':_0x2bc531(0x1f9),'label':_0x5e78af(_0x4316e4,_0x2bc531(0x1ca)),'prompt':_0x2bc531(0x22e)},{'id':_0x2bc531(0x1ef),'label':_0x5e78af(_0x4316e4,_0x2bc531(0x1c7)),'prompt':_0x2bc531(0x22b)}]},{'groupId':_0x2bc531(0x205),'groupLabel':_0x5e78af(_0x4316e4,_0x2bc531(0x217)),'commands':[{'id':_0x2bc531(0x241),'label':_0x5e78af(_0x4316e4,_0x2bc531(0x234)),'prompt':_0x2bc531(0x1d0)},{'id':_0x2bc531(0x1e6),'label':_0x5e78af(_0x4316e4,_0x2bc531(0x1e7)),'prompt':_0x2bc531(0x220)}]},{'groupId':_0x2bc531(0x1e9),'groupLabel':_0x5e78af(_0x4316e4,_0x2bc531(0x1fe)),'commands':[{'id':_0x2bc531(0x1e8),'label':_0x5e78af(_0x4316e4,_0x2bc531(0x230)),'prompt':_0x2bc531(0x214)},{'id':_0x2bc531(0x1e5),'label':_0x5e78af(_0x4316e4,_0x2bc531(0x1d7)),'prompt':_0x2bc531(0x1e0)},{'id':_0x2bc531(0x22d),'label':_0x5e78af(_0x4316e4,_0x2bc531(0x240)),'prompt':_0x2bc531(0x22c)},{'id':_0x2bc531(0x1ed),'label':_0x5e78af(_0x4316e4,_0x2bc531(0x219)),'prompt':_0x2bc531(0x1d5)},{'id':_0x2bc531(0x1ea),'label':_0x5e78af(_0x4316e4,_0x2bc531(0x200)),'prompt':_0x2bc531(0x1f6)}]},{'groupId':_0x2bc531(0x22f),'groupLabel':_0x5e78af(_0x4316e4,_0x2bc531(0x233)),'commands':[{'id':_0x2bc531(0x203),'label':_0x5e78af(_0x4316e4,_0x2bc531(0x202)),'prompt':_0x2bc531(0x21b)},{'id':_0x2bc531(0x237),'label':_0x5e78af(_0x4316e4,_0x2bc531(0x228)),'prompt':_0x2bc531(0x209)},{'id':_0x2bc531(0x20d),'label':_0x5e78af(_0x4316e4,_0x2bc531(0x1cb)),'prompt':_0x2bc531(0x21e)},{'id':_0x2bc531(0x236),'label':_0x5e78af(_0x4316e4,_0x2bc531(0x1f4)),'prompt':_0x2bc531(0x208)}]},{'groupId':_0x2bc531(0x1fd),'groupLabel':_0x5e78af(_0x4316e4,_0x2bc531(0x23f)),'commands':[{'id':_0x2bc531(0x21a),'label':_0x5e78af(_0x4316e4,_0x2bc531(0x222),[_0x5e78af(_0x4316e4,_0x2bc531(0x218))]),'prompt':_0x2bc531(0x1ee)},{'id':_0x2bc531(0x211),'label':_0x5e78af(_0x4316e4,_0x2bc531(0x222),[_0x5e78af(_0x4316e4,_0x2bc531(0x207))]),'prompt':_0x2bc531(0x1da)},{'id':_0x2bc531(0x1ff),'label':_0x5e78af(_0x4316e4,_0x2bc531(0x222),[_0x5e78af(_0x4316e4,_0x2bc531(0x1cc))]),'prompt':_0x2bc531(0x1de)},{'id':_0x2bc531(0x1e3),'label':_0x5e78af(_0x4316e4,_0x2bc531(0x222),[_0x5e78af(_0x4316e4,_0x2bc531(0x23e))]),'prompt':_0x2bc531(0x1c9)},{'id':_0x2bc531(0x212),'label':_0x5e78af(_0x4316e4,_0x2bc531(0x222),[_0x5e78af(_0x4316e4,_0x2bc531(0x1dd))]),'prompt':_0x2bc531(0x1f7)},{'id':_0x2bc531(0x1f0),'label':_0x5e78af(_0x4316e4,_0x2bc531(0x222),[_0x5e78af(_0x4316e4,_0x2bc531(0x1f1))]),'prompt':_0x2bc531(0x1dc)},{'id':_0x2bc531(0x1fb),'label':_0x5e78af(_0x4316e4,_0x2bc531(0x222),[_0x5e78af(_0x4316e4,_0x2bc531(0x232))]),'prompt':_0x2bc531(0x21c)},{'id':_0x2bc531(0x226),'label':_0x5e78af(_0x4316e4,_0x2bc531(0x222),[_0x5e78af(_0x4316e4,_0x2bc531(0x1e1))]),'prompt':_0x2bc531(0x225)}]}];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2105(_0x5486ce,_0x4eedd2){const _0x1071ca=_0x1071();return _0x2105=function(_0x2105e7,_0x4b6c2c){_0x2105e7=_0x2105e7-0x1e1;let _0x3c9f79=_0x1071ca[_0x2105e7];return _0x3c9f79;},_0x2105(_0x5486ce,_0x4eedd2);}const _0x56bca2=_0x2105;(function(_0x5c3970,_0x1a4fa1){const _0x34ec4f=_0x2105,_0xe1a348=_0x5c3970();while(!![]){try{const _0xb6f0d7=parseInt(_0x34ec4f(0x21b))/0x1+-parseInt(_0x34ec4f(0x1f4))/0x2*(-parseInt(_0x34ec4f(0x216))/0x3)+-parseInt(_0x34ec4f(0x208))/0x4*(-parseInt(_0x34ec4f(0x1f3))/0x5)+-parseInt(_0x34ec4f(0x1fb))/0x6*(parseInt(_0x34ec4f(0x203))/0x7)+parseInt(_0x34ec4f(0x200))/0x8+parseInt(_0x34ec4f(0x215))/0x9*(parseInt(_0x34ec4f(0x212))/0xa)+-parseInt(_0x34ec4f(0x221))/0xb;if(_0xb6f0d7===_0x1a4fa1)break;else _0xe1a348['push'](_0xe1a348['shift']());}catch(_0x5d0ddf){_0xe1a348['push'](_0xe1a348['shift']());}}}(_0x1071,0xe8e8b));import{Plugin as _0x3c79d1}from'ckeditor5/src/core.js';const s=_0x56bca2(0x204),c=_0x56bca2(0x1e1);export default class i extends _0x3c79d1{static get[_0x56bca2(0x1f7)](){const _0x12618f=_0x56bca2;return _0x12618f(0x20f);}[_0x56bca2(0x21e)](){const _0x9c133e=_0x56bca2,{editor:_0x15e536}=this,_0x4357f6=[_0x9c133e(0x1fc)];_0x15e536[_0x9c133e(0x1eb)][_0x9c133e(0x1fa)](_0x9c133e(0x1e8))&&_0x4357f6[_0x9c133e(0x1e3)](_0x9c133e(0x1f6)),_0x15e536[_0x9c133e(0x202)][_0x9c133e(0x1e6)](_0x9c133e(0x1f0))[_0x9c133e(0x1f1)]({'model':s,'view':{'classes':_0x4357f6,'priority':0xc}}),_0x15e536[_0x9c133e(0x202)][_0x9c133e(0x1e6)](_0x9c133e(0x1f0))[_0x9c133e(0x218)]({'model':s,'view':{'name':_0x9c133e(0x20d),'classes':[_0x9c133e(0x1fc),_0x9c133e(0x207)],'priority':0xc}}),_0x15e536[_0x9c133e(0x202)][_0x9c133e(0x1e6)](_0x9c133e(0x1f0))[_0x9c133e(0x1f1)]({'model':c,'view':{'classes':[_0x9c133e(0x1ef)],'priority':0x19}}),_0x15e536[_0x9c133e(0x202)][_0x9c133e(0x1e6)](_0x9c133e(0x1f0))[_0x9c133e(0x218)]({'model':c,'view':{'name':_0x9c133e(0x20d),'classes':[_0x9c133e(0x1ef),_0x9c133e(0x207)],'priority':0x19}});}[_0x56bca2(0x1f5)](_0x3b0058){const _0x3522ed=_0x56bca2,_0x4aba1c=this[_0x3522ed(0x220)][_0x3522ed(0x209)],_0x2673d0=_0x3b0058?c:s;_0x4aba1c[_0x3522ed(0x213)](_0x2cfe6f=>{const _0x1444d5=_0x3522ed,_0x192e3f=_0x4aba1c[_0x1444d5(0x20b)][_0x1444d5(0x210)][_0x1444d5(0x1e5)]();if(_0x4aba1c[_0x1444d5(0x20c)][_0x1444d5(0x20e)](_0x2673d0))_0x2cfe6f[_0x1444d5(0x21f)](_0x2673d0,{'range':_0x192e3f});else{if(_0x192e3f[_0x1444d5(0x214)][_0x1444d5(0x206)]){const _0xc91102=_0x192e3f[_0x1444d5(0x214)][_0x1444d5(0x20a)](({item:_0x3aa891})=>!_0x4aba1c[_0x1444d5(0x201)][_0x1444d5(0x21d)](_0x3aa891),{'boundaries':_0x192e3f});_0x2cfe6f[_0x1444d5(0x21a)](_0x2673d0,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x2cfe6f[_0x1444d5(0x1f8)](_0xc91102,_0x192e3f[_0x1444d5(0x1f2)])});}else _0x2cfe6f[_0x1444d5(0x21a)](_0x2673d0,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x192e3f});}});}[_0x56bca2(0x211)](_0x529a53){const _0x1a74f4=_0x56bca2,_0x33e3d9=this[_0x1a74f4(0x220)][_0x1a74f4(0x209)],_0x2a1b3e=_0x529a53?c:s;_0x33e3d9[_0x1a74f4(0x20c)][_0x1a74f4(0x20e)](_0x2a1b3e)&&_0x33e3d9[_0x1a74f4(0x213)](_0x850986=>{const _0x343f73=_0x1a74f4;_0x850986[_0x343f73(0x1f9)](_0x2a1b3e);});}[_0x56bca2(0x219)](_0x342d5b,_0x5aade9){const _0x5053ae=_0x56bca2,_0x5eb563=_0x5aade9||this[_0x5053ae(0x220)][_0x5053ae(0x209)][_0x5053ae(0x20c)][_0x5053ae(0x1fa)](s)[_0x5053ae(0x1ed)]();if(!this[_0x5053ae(0x220)][_0x5053ae(0x209)][_0x5053ae(0x1e2)](_0x5eb563))return;const _0x36915c=this[_0x5053ae(0x220)][_0x5053ae(0x1e9)][_0x5053ae(0x1e4)][_0x5053ae(0x1ea)](_0x342d5b),_0x5a4c19=this[_0x5053ae(0x220)][_0x5053ae(0x1e9)][_0x5053ae(0x1fd)](_0x36915c);this[_0x5053ae(0x220)][_0x5053ae(0x209)][_0x5053ae(0x213)](_0x4fe326=>{const _0x1bd15d=_0x5053ae;this[_0x1bd15d(0x211)]();const _0x436921=this[_0x1bd15d(0x220)][_0x1bd15d(0x209)][_0x1bd15d(0x219)](_0x5a4c19,_0x5eb563);_0x436921&&_0x4fe326[_0x1bd15d(0x1e7)](_0x436921);});}[_0x56bca2(0x1ff)](_0x5ee748){const _0xf105fd=_0x56bca2,{model:_0x350a07}=this[_0xf105fd(0x220)],_0x153758=Array[_0xf105fd(0x205)](_0x350a07[_0xf105fd(0x1ec)](this[_0xf105fd(0x220)][_0xf105fd(0x209)][_0xf105fd(0x20c)][_0xf105fd(0x1fa)](s)[_0xf105fd(0x1ed)]())[_0xf105fd(0x222)]()),_0x3e99ba=_0x153758[_0xf105fd(0x217)]?_0x350a07[_0xf105fd(0x1ee)](_0x153758[_0xf105fd(0x21c)]()):_0x350a07[_0xf105fd(0x20b)][_0xf105fd(0x210)][_0xf105fd(0x1fe)]();this[_0xf105fd(0x219)](_0x5ee748,_0x3e99ba);}}function _0x1071(){const _0x262a39=['canEditAt','push','processor','getFirstRange','for','setSelection','ai.useTheme','data','toView','config','createSelection','getRange','createPositionAfter','ck-fake-ai-selection-candidate','editingDowncast','markerToHighlight','end','5kltbFy','30558yWBBrZ','showFakeVisualSelection','ck-ai-assistant-ui_theme','pluginName','createRange','removeMarker','get','6787650OLYBwh','ck-fake-ai-selection','toModel','getLastPosition','insertContentBelow','15082608QycSZv','schema','conversion','7VfglqV','ai-ui','from','isAtEnd','ck-fake-ai-selection_collapsed','3754728KfYEbY','model','getLastMatchingPosition','document','markers','span','has','AIAssistantEditing','selection','hideFakeVisualSelection','76240rNOEJR','change','start','261tZkfAp','3kBCBcO','length','markerToElement','insertContent','addMarker','1141369OqrLAb','pop','isContent','init','updateMarker','editor','23281302HABYwb','getSelectedBlocks','ai-ui-candidate'];_0x1071=function(){return _0x262a39;};return _0x1071();}
23
+ function _0xe692(){const _0x9ab581=['editingDowncast','ai.useTheme','1660fchDTN','editor','insertContent','AIAssistantEditing','ck-fake-ai-selection-candidate','addClass','pop','2AdUSEL','getRange','removeMarker','from','getFirstRange','5732JUbOpc','991158qsdOps','createSelection','change','756744YlqxoC','markerToHighlight','createPositionAfter','28760256QOFeAt','markers','updateMarker','isCollapsed','has','showFakeVisualSelection','push','processor','902961IaaTPH','selection','init','toView','markerToElement','isAtEnd','hideFakeVisualSelection','data','350767EEIuPA','length','14nsAoYN','ck-fake-ai-selection_collapsed','createRange','ai-ui','addMarker','getSelectedBlocks','pluginName','4380266kQYmnX','getLastPosition','createUIElement','model','get','config','ai-ui-candidate','20cdbqVH','insertContentBelow','for','start','ck-ai-assistant-ui_theme','span','isContent','canEditAt','document','conversion','end','getLastMatchingPosition','ck-fake-ai-selection','markerRange','schema','toModel','48cARUbp','setSelection'];_0xe692=function(){return _0x9ab581;};return _0xe692();}function _0x58e2(_0x5bd672,_0x2cb539){const _0xe6922e=_0xe692();return _0x58e2=function(_0x58e226,_0x321dd6){_0x58e226=_0x58e226-0xac;let _0x5231fa=_0xe6922e[_0x58e226];return _0x5231fa;},_0x58e2(_0x5bd672,_0x2cb539);}const _0x5f4013=_0x58e2;(function(_0x288731,_0x3e4052){const _0x201958=_0x58e2,_0x35a154=_0x288731();while(!![]){try{const _0x248ee3=-parseInt(_0x201958(0xd9))/0x1*(-parseInt(_0x201958(0xbd))/0x2)+parseInt(_0x201958(0xc3))/0x3+parseInt(_0x201958(0xc2))/0x4*(parseInt(_0x201958(0xb6))/0x5)+-parseInt(_0x201958(0xc6))/0x6*(-parseInt(_0x201958(0xdb))/0x7)+parseInt(_0x201958(0xb2))/0x8*(parseInt(_0x201958(0xd1))/0x9)+-parseInt(_0x201958(0xe9))/0xa*(-parseInt(_0x201958(0xe2))/0xb)+-parseInt(_0x201958(0xc9))/0xc;if(_0x248ee3===_0x3e4052)break;else _0x35a154['push'](_0x35a154['shift']());}catch(_0x16b9d4){_0x35a154['push'](_0x35a154['shift']());}}}(_0xe692,0x644e7));import{Plugin as _0x367c60}from'ckeditor5/src/core.js';const s=_0x5f4013(0xde),c=_0x5f4013(0xe8);export default class i extends _0x367c60{static get[_0x5f4013(0xe1)](){const _0x2e60b1=_0x5f4013;return _0x2e60b1(0xb9);}[_0x5f4013(0xd3)](){const _0x5cd094=_0x5f4013,{editor:_0x1a5b21}=this,_0x4510f3=[_0x5cd094(0xae)];_0x1a5b21[_0x5cd094(0xe7)][_0x5cd094(0xe6)](_0x5cd094(0xb5))&&_0x4510f3[_0x5cd094(0xcf)](_0x5cd094(0xed)),_0x1a5b21[_0x5cd094(0xf2)][_0x5cd094(0xeb)](_0x5cd094(0xb4))[_0x5cd094(0xc7)]({'model':s,'view':{'classes':_0x4510f3,'priority':0xc}}),_0x1a5b21[_0x5cd094(0xf2)][_0x5cd094(0xeb)](_0x5cd094(0xb4))[_0x5cd094(0xd5)]({'model':s,'view':(_0x7ff977,{writer:_0x1acaa5})=>{const _0x16c8fd=_0x5cd094;if(!_0x7ff977[_0x16c8fd(0xaf)][_0x16c8fd(0xcc)])return null;const _0x3662c9=_0x1acaa5[_0x16c8fd(0xe4)](_0x16c8fd(0xee));return _0x1acaa5[_0x16c8fd(0xbb)]([_0x16c8fd(0xae),_0x16c8fd(0xdc)],_0x3662c9),_0x3662c9;}}),_0x1a5b21[_0x5cd094(0xf2)][_0x5cd094(0xeb)](_0x5cd094(0xb4))[_0x5cd094(0xc7)]({'model':c,'view':{'classes':[_0x5cd094(0xba)],'priority':0x19}}),_0x1a5b21[_0x5cd094(0xf2)][_0x5cd094(0xeb)](_0x5cd094(0xb4))[_0x5cd094(0xd5)]({'model':c,'view':(_0x19d0c0,{writer:_0x27c011})=>{const _0x864c15=_0x5cd094;if(!_0x19d0c0[_0x864c15(0xaf)][_0x864c15(0xcc)])return null;const _0x38f211=_0x27c011[_0x864c15(0xe4)](_0x864c15(0xee));return _0x27c011[_0x864c15(0xbb)]([_0x864c15(0xba),_0x864c15(0xdc)],_0x38f211),_0x38f211;}});}[_0x5f4013(0xce)](_0x5a67c5){const _0xc4f084=_0x5f4013,_0x3bdefc=this[_0xc4f084(0xb7)][_0xc4f084(0xe5)],_0x2f65fc=_0x5a67c5?c:s;_0x3bdefc[_0xc4f084(0xc5)](_0xfbb9f4=>{const _0x5a2231=_0xc4f084,_0x4d5f98=_0x3bdefc[_0x5a2231(0xf1)][_0x5a2231(0xd2)][_0x5a2231(0xc1)]();if(_0x3bdefc[_0x5a2231(0xca)][_0x5a2231(0xcd)](_0x2f65fc))_0xfbb9f4[_0x5a2231(0xcb)](_0x2f65fc,{'range':_0x4d5f98});else{if(_0x4d5f98[_0x5a2231(0xec)][_0x5a2231(0xd6)]){const _0x59af2c=_0x4d5f98[_0x5a2231(0xec)][_0x5a2231(0xad)](({item:_0x2977e3})=>!_0x3bdefc[_0x5a2231(0xb0)][_0x5a2231(0xef)](_0x2977e3),{'boundaries':_0x4d5f98});_0xfbb9f4[_0x5a2231(0xdf)](_0x2f65fc,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0xfbb9f4[_0x5a2231(0xdd)](_0x59af2c,_0x4d5f98[_0x5a2231(0xac)])});}else _0xfbb9f4[_0x5a2231(0xdf)](_0x2f65fc,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x4d5f98});}});}[_0x5f4013(0xd7)](_0x588293){const _0x496a65=_0x5f4013,_0x553357=this[_0x496a65(0xb7)][_0x496a65(0xe5)],_0x13a5c9=_0x588293?c:s;_0x553357[_0x496a65(0xca)][_0x496a65(0xcd)](_0x13a5c9)&&_0x553357[_0x496a65(0xc5)](_0x429bd6=>{const _0x348b2e=_0x496a65;_0x429bd6[_0x348b2e(0xbf)](_0x13a5c9);});}[_0x5f4013(0xb8)](_0x1bc344,_0x5d7352){const _0xa60e87=_0x5f4013,_0xe4a6e5=_0x5d7352||this[_0xa60e87(0xb7)][_0xa60e87(0xe5)][_0xa60e87(0xca)][_0xa60e87(0xe6)](s)[_0xa60e87(0xbe)]();if(!this[_0xa60e87(0xb7)][_0xa60e87(0xe5)][_0xa60e87(0xf0)](_0xe4a6e5))return;const _0x27d092=this[_0xa60e87(0xb7)][_0xa60e87(0xd8)][_0xa60e87(0xd0)][_0xa60e87(0xd4)](_0x1bc344),_0x188417=this[_0xa60e87(0xb7)][_0xa60e87(0xd8)][_0xa60e87(0xb1)](_0x27d092);this[_0xa60e87(0xb7)][_0xa60e87(0xe5)][_0xa60e87(0xc5)](_0x45dc35=>{const _0x465a93=_0xa60e87;this[_0x465a93(0xd7)]();const _0x49956b=this[_0x465a93(0xb7)][_0x465a93(0xe5)][_0x465a93(0xb8)](_0x188417,_0xe4a6e5);_0x49956b&&_0x45dc35[_0x465a93(0xb3)](_0x49956b);});}[_0x5f4013(0xea)](_0x4959b5){const _0x5d7fd3=_0x5f4013,{model:_0x4768c7}=this[_0x5d7fd3(0xb7)],_0x36321f=Array[_0x5d7fd3(0xc0)](_0x4768c7[_0x5d7fd3(0xc4)](this[_0x5d7fd3(0xb7)][_0x5d7fd3(0xe5)][_0x5d7fd3(0xca)][_0x5d7fd3(0xe6)](s)[_0x5d7fd3(0xbe)]())[_0x5d7fd3(0xe0)]()),_0x2600a5=_0x36321f[_0x5d7fd3(0xda)]?_0x4768c7[_0x5d7fd3(0xc8)](_0x36321f[_0x5d7fd3(0xbc)]()):_0x4768c7[_0x5d7fd3(0xf1)][_0x5d7fd3(0xd2)][_0x5d7fd3(0xe3)]();this[_0x5d7fd3(0xb8)](_0x4959b5,_0x2600a5);}}