@ckeditor/ckeditor5-ai 43.3.0-alpha.10 → 43.3.0-alpha.12

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 (167) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +2 -2
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +8 -8
  148. package/src/adapters/aiadapter.js +1 -1
  149. package/src/adapters/aitextadapter.js +1 -1
  150. package/src/adapters/awstextadapter.js +1 -1
  151. package/src/adapters/openaitextadapter.js +1 -1
  152. package/src/aiassistant.js +1 -1
  153. package/src/aiassistantediting.js +1 -1
  154. package/src/aiassistantui.js +1 -1
  155. package/src/index.js +1 -1
  156. package/src/ui/aiassistantcontroller.js +2 -2
  157. package/src/ui/form/aiformcontentarea.js +1 -1
  158. package/src/ui/form/aiformerrorview.js +1 -1
  159. package/src/ui/form/aiformpromptview.js +1 -1
  160. package/src/ui/form/aiformtoolbarview.js +1 -1
  161. package/src/ui/form/aiformview.js +1 -1
  162. package/src/ui/form/aihistorylistitemview.js +1 -1
  163. package/src/ui/form/aihistorylistview.js +1 -1
  164. package/src/ui/form/prompthistory.js +1 -1
  165. package/src/ui/showaiassistantcommand.js +1 -1
  166. package/src/utils/common-translations.js +1 -1
  167. package/src/utils/normalizecommandsconfig.js +1 -1
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0xf00971,_0x2f55b3){var _0x194a7e=_0x2bba,_0x58843b=_0xf00971();while(!![]){try{var _0x12300b=-parseInt(_0x194a7e(0x77))/0x1*(-parseInt(_0x194a7e(0x79))/0x2)+-parseInt(_0x194a7e(0x7a))/0x3+parseInt(_0x194a7e(0x7d))/0x4+-parseInt(_0x194a7e(0x78))/0x5*(parseInt(_0x194a7e(0x7c))/0x6)+-parseInt(_0x194a7e(0x7b))/0x7+parseInt(_0x194a7e(0x76))/0x8+-parseInt(_0x194a7e(0x75))/0x9;if(_0x12300b===_0x2f55b3)break;else _0x58843b['push'](_0x58843b['shift']());}catch(_0x5452f2){_0x58843b['push'](_0x58843b['shift']());}}}(_0x7fbc,0x533ad));function _0x2bba(_0xcfc905,_0x4b2ed2){var _0x7fbcec=_0x7fbc();return _0x2bba=function(_0x2bba6c,_0x524d93){_0x2bba6c=_0x2bba6c-0x75;var _0x3c1d4f=_0x7fbcec[_0x2bba6c];return _0x3c1d4f;},_0x2bba(_0xcfc905,_0x4b2ed2);}function _0x7fbc(){var _0x40fc4e=['118wbmEPr','1766215OqUBpY','8886VGUNKo','202911oWiPSg','4683553azyxGk','6batKwl','1931672sUsmaO','1642428lghaUg','4849344gebGPS'];_0x7fbc=function(){return _0x40fc4e;};return _0x7fbc();}export{default as AIAssistant}from'./aiassistant.js';export{default as AIAdapter,AIRequestError}from'./adapters/aiadapter.js';export{default as AITextAdapter}from'./adapters/aitextadapter.js';export{default as OpenAITextAdapter}from'./adapters/openaitextadapter.js';export{default as AWSTextAdapter}from'./adapters/awstextadapter.js';import'./augmentation.js';
23
+ function _0x5dbc(){var _0x1dbb86=['2426536miaITq','15mEgvYy','306IAmVou','259528dcfbLg','2195576AfTvzz','120AruFqm','546222awAPDH','53112yITSoK','7146730BYYDZy','1226174HdPlzG'];_0x5dbc=function(){return _0x1dbb86;};return _0x5dbc();}(function(_0x2fce5b,_0xe5e5c8){var _0x2e0ca4=_0x554d,_0x58d21e=_0x2fce5b();while(!![]){try{var _0x5e4f66=-parseInt(_0x2e0ca4(0x7a))/0x1+parseInt(_0x2e0ca4(0x75))/0x2+parseInt(_0x2e0ca4(0x76))/0x3*(parseInt(_0x2e0ca4(0x78))/0x4)+-parseInt(_0x2e0ca4(0x72))/0x5*(-parseInt(_0x2e0ca4(0x77))/0x6)+parseInt(_0x2e0ca4(0x71))/0x7+parseInt(_0x2e0ca4(0x74))/0x8*(-parseInt(_0x2e0ca4(0x73))/0x9)+parseInt(_0x2e0ca4(0x79))/0xa;if(_0x5e4f66===_0xe5e5c8)break;else _0x58d21e['push'](_0x58d21e['shift']());}catch(_0x47cf53){_0x58d21e['push'](_0x58d21e['shift']());}}}(_0x5dbc,0x9ad3c));export{default as AIAssistant}from'./aiassistant.js';export{default as AIAdapter,AIRequestError}from'./adapters/aiadapter.js';export{default as AITextAdapter}from'./adapters/aitextadapter.js';export{default as OpenAITextAdapter}from'./adapters/openaitextadapter.js';function _0x554d(_0xca7209,_0x34e591){var _0x5dbc1c=_0x5dbc();return _0x554d=function(_0x554d93,_0x454373){_0x554d93=_0x554d93-0x71;var _0x456bca=_0x5dbc1c[_0x554d93];return _0x456bca;},_0x554d(_0xca7209,_0x34e591);}export{default as AWSTextAdapter}from'./adapters/awstextadapter.js';import'./augmentation.js';
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x478c25=_0x55d7;function _0x2a82(){const _0x5bff82=['_parseAndNormalizeContent','3118932JexCaT','editor','_handleQuery','render','endsWith','2765500DfaPxA','processor','mainAction','then','value','startProcessing','trim','6666PDgcmi','startsWith','text/html','ELEMENT_NODE','<h1></h1>','_isH1TagSupportEnabled','viewToDom','stopProcessing','once','remove','3358472GlTjAX','stopListening','set:currentContext','reverse','```html','domConverter','_sanitizationContainer','innerHTML','makeRequest','match','exec','view','previousQuery','158QsxRRD','name','div','abort','_sanitizeHTML','stringify','htmlProcessor','message','element','currentResponse','nodeType','previousLabel','body','handleError','listenTo','_domParser','121ihcMCu','rename','_normalizeResponseHeadings','editing','childNodes','parseFromString','9580VoYPbe','data','destroy','1334445EsFkaj','initialContext','prompt','toModel','querySelector','substring','set','toView','_xmlSerializer','6895XzYIhs','push','reset','updateView','textAdapter','createElement','setContentOf','submitPrompt','previousActionId','finally','from','length','previousContext','tryAgainEvent','finishProcessing','serializeToString','catch','1112cpIMUB','_stripMarkdownSyntax','custom','isProcessing','currentContext','83601nMjoZw','```','isRendered','document'];_0x2a82=function(){return _0x5bff82;};return _0x2a82();}(function(_0x19c1a9,_0x164bbf){const _0x1f35d7=_0x55d7,_0x2b5a8d=_0x19c1a9();while(!![]){try{const _0x389524=-parseInt(_0x1f35d7(0x1f3))/0x1*(-parseInt(_0x1f35d7(0x209))/0x2)+parseInt(_0x1f35d7(0x20c))/0x3+-parseInt(_0x1f35d7(0x1e6))/0x4+-parseInt(_0x1f35d7(0x215))/0x5*(-parseInt(_0x1f35d7(0x23c))/0x6)+parseInt(_0x1f35d7(0x22b))/0x7*(parseInt(_0x1f35d7(0x226))/0x8)+parseInt(_0x1f35d7(0x230))/0x9+-parseInt(_0x1f35d7(0x235))/0xa*(parseInt(_0x1f35d7(0x203))/0xb);if(_0x389524===_0x164bbf)break;else _0x2b5a8d['push'](_0x2b5a8d['shift']());}catch(_0x3f67de){_0x2b5a8d['push'](_0x2b5a8d['shift']());}}}(_0x2a82,0xd1a25));import{ObservableMixin as _0xa36948}from'ckeditor5/src/utils.js';import{AIRequestError as _0x2dd64b}from'../adapters/aiadapter.js';import{Matcher as _0x1af41d,UpcastWriter as _0x191f43}from'ckeditor5/src/engine.js';const Z=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');function _0x55d7(_0x4c0ec2,_0xe71e52){const _0x2a8235=_0x2a82();return _0x55d7=function(_0x55d7c5,_0xe764de){_0x55d7c5=_0x55d7c5-0x1e6;let _0x16f63d=_0x2a8235[_0x55d7c5];return _0x16f63d;},_0x55d7(_0x4c0ec2,_0xe71e52);}export default class v extends/* #__PURE__ -- @preserve */
24
- _0xa36948(){constructor(_0x5670b7,_0xeeb6c0,_0x1fb2e7){const _0x4573c8=_0x55d7;super(),this[_0x4573c8(0x231)]=_0x5670b7,this[_0x4573c8(0x219)]=_0xeeb6c0,this[_0x4573c8(0x1ec)]=document[_0x4573c8(0x21a)](_0x4573c8(0x1f5)),this[_0x4573c8(0x202)]=new DOMParser(),this[_0x4573c8(0x214)]=new XMLSerializer(),this[_0x4573c8(0x1f1)]=_0x1fb2e7,this[_0x4573c8(0x212)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x4573c8(0x1e8),(_0x1932be,_0x242687,_0x1de95c)=>{const _0x2ebc72=_0x4573c8;this[_0x2ebc72(0x1f1)][_0x2ebc72(0x239)]=this[_0x2ebc72(0x1f7)](_0x1de95c);}),this[_0x4573c8(0x201)](this[_0x4573c8(0x1f1)],_0x4573c8(0x21c),(_0x4ac6f8,_0x3762fa)=>{const _0x38acc3=_0x4573c8,_0x399927=this[_0x38acc3(0x22a)]||this[_0x38acc3(0x20d)];this[_0x38acc3(0x232)](_0x3762fa,_0x399927,_0x38acc3(0x228));}),this[_0x4573c8(0x201)](this[_0x4573c8(0x1f1)],_0x4573c8(0x222),()=>{const _0x433361=_0x4573c8;this[_0x433361(0x1f1)][_0x433361(0x20e)]=this[_0x433361(0x1fe)],this[_0x433361(0x232)](this[_0x433361(0x1f2)],this[_0x433361(0x221)],this[_0x433361(0x21d)],this[_0x433361(0x1fe)]);}),this[_0x4573c8(0x201)](this[_0x4573c8(0x1f1)],_0x4573c8(0x243),()=>{const _0x28ee76=_0x4573c8;this[_0x28ee76(0x243)]();});}[_0x478c25(0x20b)](){const _0x285114=_0x478c25;this[_0x285114(0x1e7)]();}async[_0x478c25(0x218)]({actionId:_0x3de946,query:_0x158296,htmlContent:_0x5ac2d5,label:_0x8545b2,mainActionLabel:_0x3ad9c1}){const _0x409027=_0x478c25;this[_0x409027(0x1f1)][_0x409027(0x20e)]=_0x8545b2,this[_0x409027(0x1f1)][_0x409027(0x237)]=_0x3ad9c1,this[_0x409027(0x20d)]=_0x5ac2d5,_0x158296&&(this[_0x409027(0x1f1)][_0x409027(0x22d)]?this[_0x409027(0x232)](_0x158296,_0x5ac2d5,_0x3de946,_0x8545b2):this[_0x409027(0x1f1)][_0x409027(0x244)](_0x409027(0x233),()=>{const _0x4e174c=_0x409027;this[_0x4e174c(0x232)](_0x158296,_0x5ac2d5,_0x3de946,_0x8545b2);}));}[_0x478c25(0x243)](){const _0x5ca457=_0x478c25;this[_0x5ca457(0x229)]&&(this[_0x5ca457(0x229)]=!0x1,this[_0x5ca457(0x1f1)][_0x5ca457(0x223)](),this[_0x5ca457(0x219)][_0x5ca457(0x1f6)]());}[_0x478c25(0x217)](){const _0x4a4b34=_0x478c25;this[_0x4a4b34(0x20d)]='',this[_0x4a4b34(0x22a)]='',this[_0x4a4b34(0x1fc)]='',this[_0x4a4b34(0x221)]='',this[_0x4a4b34(0x1f2)]='',this[_0x4a4b34(0x1fe)]='',this[_0x4a4b34(0x21d)]=void 0x0,this[_0x4a4b34(0x1f1)][_0x4a4b34(0x217)](),this[_0x4a4b34(0x243)]();}async[_0x478c25(0x232)](_0x12daa3,_0x2ac878,_0x256034,_0x4ec7ab){const _0x143bf2=_0x478c25;return this[_0x143bf2(0x229)]=!0x0,this[_0x143bf2(0x1f1)][_0x143bf2(0x23a)](),this[_0x143bf2(0x221)]=_0x2ac878,this[_0x143bf2(0x1f2)]=_0x12daa3,this[_0x143bf2(0x1fe)]=_0x4ec7ab||_0x12daa3,this[_0x143bf2(0x21d)]=_0x256034,new Promise(_0x1b695f=>{const _0xa000a=_0x143bf2;this[_0xa000a(0x219)][_0xa000a(0x1ee)]({'query':_0x12daa3,'context':_0x2ac878,'onData':_0x5ac765=>{const _0x35695e=_0xa000a;this[_0x35695e(0x1fc)]=_0x5ac765,this[_0x35695e(0x22a)]=this[_0x35695e(0x22f)](this[_0x35695e(0x1fc)]);},'actionId':_0x256034})[_0xa000a(0x238)](()=>{const _0xd9397f=_0xa000a;!this[_0xd9397f(0x22a)]&&this[_0xd9397f(0x1fc)]&&(this[_0xd9397f(0x22a)]=this[_0xd9397f(0x22f)](this[_0xd9397f(0x1fc)],!0x0));})[_0xa000a(0x225)](_0x24e118=>{const _0x190662=_0xa000a;_0x24e118 instanceof _0x2dd64b?this[_0x190662(0x1f1)][_0x190662(0x200)](_0x24e118[_0x190662(0x1fa)]):this[_0x190662(0x1f1)][_0x190662(0x200)](),_0x1b695f();})[_0xa000a(0x21e)](()=>{const _0x6c1c32=_0xa000a;this[_0x6c1c32(0x243)](),_0x1b695f();});});}[_0x478c25(0x22f)](_0x47f4e3,_0x39dbce=!0x1){const _0x1a2949=_0x478c25,_0x37115d=Z[_0x1a2949(0x1f0)](_0x47f4e3);_0x47f4e3=_0x37115d?_0x47f4e3[_0x1a2949(0x211)](_0x37115d[0x1][_0x1a2949(0x220)]):_0x47f4e3[_0x1a2949(0x220)]<0x64&&!_0x39dbce?'':this[_0x1a2949(0x227)](_0x47f4e3);const _0x394a4d=this[_0x1a2949(0x202)][_0x1a2949(0x208)](_0x47f4e3,_0x1a2949(0x23e));if(_0x37115d){const _0x4329a5=Array[_0x1a2949(0x21f)](_0x394a4d[_0x1a2949(0x1ff)][_0x1a2949(0x207)]);_0x4329a5[_0x1a2949(0x1e9)]();for(const _0x477b18 of _0x4329a5){if(_0x477b18[_0x1a2949(0x1fd)]==Node[_0x1a2949(0x23f)])break;_0x477b18[_0x1a2949(0x245)]();}}const _0x14e166=this[_0x1a2949(0x231)][_0x1a2949(0x20a)][_0x1a2949(0x236)][_0x1a2949(0x213)](this[_0x1a2949(0x214)][_0x1a2949(0x224)](_0x394a4d[_0x1a2949(0x1ff)]));return this[_0x1a2949(0x241)]()||this[_0x1a2949(0x205)](_0x14e166),this[_0x1a2949(0x231)][_0x1a2949(0x20a)][_0x1a2949(0x1f8)](this[_0x1a2949(0x231)][_0x1a2949(0x20a)][_0x1a2949(0x20f)](_0x14e166));}[_0x478c25(0x205)](_0x3bb99d){const _0x4c2564=_0x478c25,_0x315cc7=new _0x191f43(this[_0x4c2564(0x231)][_0x4c2564(0x206)][_0x4c2564(0x1f1)][_0x4c2564(0x22e)]),_0x2c9b75=new _0x1af41d({'name':/^h[1-5]$/}),_0x1c05f6=[];let _0x59dff9=!0x1;for(const _0x3b560e of _0x3bb99d)_0x3b560e['is'](_0x4c2564(0x1fb))&&_0x2c9b75[_0x4c2564(0x1ef)](_0x3b560e)&&(_0x1c05f6[_0x4c2564(0x216)](_0x3b560e),'h1'==_0x3b560e[_0x4c2564(0x1f4)]&&(_0x59dff9=!0x0));if(_0x59dff9){for(const _0xae33b6 of _0x1c05f6)_0x315cc7[_0x4c2564(0x204)]('h'+(parseInt(_0xae33b6[_0x4c2564(0x1f4)][0x1])+0x1),_0xae33b6);}}[_0x478c25(0x241)](){const _0x3b2b0d=_0x478c25,{data:_0x17e09a,editing:_0x4286a2}=this[_0x3b2b0d(0x231)],_0xe707a8=_0x17e09a[_0x3b2b0d(0x1f9)][_0x3b2b0d(0x213)](_0x3b2b0d(0x240)),_0x116739=_0x17e09a[_0x3b2b0d(0x213)](_0x17e09a[_0x3b2b0d(0x20f)](_0xe707a8));return!!_0x4286a2[_0x3b2b0d(0x1f1)][_0x3b2b0d(0x1eb)][_0x3b2b0d(0x242)](_0x116739)[_0x3b2b0d(0x210)]('h1');}[_0x478c25(0x1f7)](_0x55b186){const _0x2cd0f0=_0x478c25;return this[_0x2cd0f0(0x231)][_0x2cd0f0(0x206)][_0x2cd0f0(0x1f1)][_0x2cd0f0(0x1eb)][_0x2cd0f0(0x21b)](this[_0x2cd0f0(0x1ec)],_0x55b186),this[_0x2cd0f0(0x1ec)][_0x2cd0f0(0x1ed)];}[_0x478c25(0x227)](_0x277bbc){const _0x4529b0=_0x478c25,_0x47097e=_0x277bbc[_0x4529b0(0x23b)]();return _0x47097e[_0x4529b0(0x23d)](_0x4529b0(0x1ea))?_0x47097e[_0x4529b0(0x234)](_0x4529b0(0x22c))?_0x47097e[_0x4529b0(0x211)](0x7,_0x47097e[_0x4529b0(0x220)]-0x3):_0x47097e[_0x4529b0(0x211)](0x7):_0x277bbc;}}
23
+ const _0x2b68ce=_0x5866;(function(_0x1954d1,_0x36ef34){const _0x13630a=_0x5866,_0x3dab07=_0x1954d1();while(!![]){try{const _0x2acd1d=parseInt(_0x13630a(0x1f2))/0x1*(-parseInt(_0x13630a(0x23a))/0x2)+parseInt(_0x13630a(0x220))/0x3+-parseInt(_0x13630a(0x1f1))/0x4+-parseInt(_0x13630a(0x1f4))/0x5+-parseInt(_0x13630a(0x21e))/0x6+-parseInt(_0x13630a(0x1f0))/0x7*(-parseInt(_0x13630a(0x1ed))/0x8)+-parseInt(_0x13630a(0x1e7))/0x9*(-parseInt(_0x13630a(0x23b))/0xa);if(_0x2acd1d===_0x36ef34)break;else _0x3dab07['push'](_0x3dab07['shift']());}catch(_0x429e5){_0x3dab07['push'](_0x3dab07['shift']());}}}(_0x5ea8,0xe43be));function _0x5ea8(){const _0x3e7188=['render','handleError','match','value','toModel','_xmlSerializer','_normalizeResponseHeadings','isProcessing','endsWith','rename','reverse','startProcessing','startsWith','custom','childNodes','once','remove','exec','_isH1TagSupportEnabled','length','querySelector','previousLabel','viewToDom','setContentOf','set','catch','document','makeRequest','trim','text/html','prompt','set:currentContext','358668pJygKP','htmlProcessor','3392055tqUXwq','_stripMarkdownSyntax','tryAgainEvent','view','_sanitizationContainer','textAdapter','<h1></h1>','data','submitPrompt','parseFromString','_domParser','_handleQuery','currentResponse','```','finishProcessing','stringify','currentContext','_sanitizeHTML','previousQuery','_parseAndNormalizeContent','substring','ELEMENT_NODE','name','stopProcessing','push','createElement','2FAjrMh','8110Xazqjw','listenTo','element','editing','body','editor','from','destroy','finally','```html','reset','11367dvdFsG','isRendered','initialContext','then','message','stopListening','288wlGNHw','toView','nodeType','165949QfFZHY','4196480zcbWHS','405481kUjaJw','processor','2796025ADAaXo','serializeToString','domConverter','updateView','abort','div','mainAction','innerHTML','previousContext','previousActionId'];_0x5ea8=function(){return _0x3e7188;};return _0x5ea8();}import{ObservableMixin as _0x30e0ab}from'ckeditor5/src/utils.js';import{AIRequestError as _0x2f2933}from'../adapters/aiadapter.js';function _0x5866(_0x5e0ef4,_0x1cfe76){const _0x5ea8c4=_0x5ea8();return _0x5866=function(_0x586683,_0x196905){_0x586683=_0x586683-0x1e1;let _0x1088c8=_0x5ea8c4[_0x586683];return _0x1088c8;},_0x5866(_0x5e0ef4,_0x1cfe76);}import{Matcher as _0x207b51,UpcastWriter as _0x3dc12e}from'ckeditor5/src/engine.js';const Z=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export default class v extends/* #__PURE__ -- @preserve */
24
+ _0x30e0ab(){constructor(_0xfbd632,_0x757ca6,_0x1c8445){const _0x524ca3=_0x5866;super(),this[_0x524ca3(0x1e1)]=_0xfbd632,this[_0x524ca3(0x225)]=_0x757ca6,this[_0x524ca3(0x224)]=document[_0x524ca3(0x239)](_0x524ca3(0x1f9)),this[_0x524ca3(0x22a)]=new DOMParser(),this[_0x524ca3(0x203)]=new XMLSerializer(),this[_0x524ca3(0x223)]=_0x1c8445,this[_0x524ca3(0x216)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x524ca3(0x21d),(_0x1ac14c,_0x209756,_0x34f9de)=>{const _0x54281c=_0x524ca3;this[_0x54281c(0x223)][_0x54281c(0x201)]=this[_0x54281c(0x231)](_0x34f9de);}),this[_0x524ca3(0x23c)](this[_0x524ca3(0x223)],_0x524ca3(0x228),(_0x4b4ddc,_0x387750)=>{const _0x246508=_0x524ca3,_0xedbaf0=this[_0x246508(0x230)]||this[_0x246508(0x1e9)];this[_0x246508(0x22b)](_0x387750,_0xedbaf0,_0x246508(0x20b));}),this[_0x524ca3(0x23c)](this[_0x524ca3(0x223)],_0x524ca3(0x222),()=>{const _0xa941c6=_0x524ca3;this[_0xa941c6(0x223)][_0xa941c6(0x21c)]=this[_0xa941c6(0x213)],this[_0xa941c6(0x22b)](this[_0xa941c6(0x232)],this[_0xa941c6(0x1fc)],this[_0xa941c6(0x1fd)],this[_0xa941c6(0x213)]);}),this[_0x524ca3(0x23c)](this[_0x524ca3(0x223)],_0x524ca3(0x237),()=>{const _0x3e4062=_0x524ca3;this[_0x3e4062(0x237)]();});}[_0x2b68ce(0x1e3)](){const _0x20ae13=_0x2b68ce;this[_0x20ae13(0x1ec)]();}async[_0x2b68ce(0x1f7)]({actionId:_0x4a1f5c,query:_0x46cfcf,htmlContent:_0x14d47c,label:_0x16dc9a,mainActionLabel:_0x433f9e}){const _0x2d53b5=_0x2b68ce;this[_0x2d53b5(0x223)][_0x2d53b5(0x21c)]=_0x16dc9a,this[_0x2d53b5(0x223)][_0x2d53b5(0x1fa)]=_0x433f9e,this[_0x2d53b5(0x1e9)]=_0x14d47c,_0x46cfcf&&(this[_0x2d53b5(0x223)][_0x2d53b5(0x1e8)]?this[_0x2d53b5(0x22b)](_0x46cfcf,_0x14d47c,_0x4a1f5c,_0x16dc9a):this[_0x2d53b5(0x223)][_0x2d53b5(0x20d)](_0x2d53b5(0x1fe),()=>{const _0x4603aa=_0x2d53b5;this[_0x4603aa(0x22b)](_0x46cfcf,_0x14d47c,_0x4a1f5c,_0x16dc9a);}));}[_0x2b68ce(0x237)](){const _0x23c853=_0x2b68ce;this[_0x23c853(0x205)]&&(this[_0x23c853(0x205)]=!0x1,this[_0x23c853(0x223)][_0x23c853(0x22e)](),this[_0x23c853(0x225)][_0x23c853(0x1f8)]());}[_0x2b68ce(0x1e6)](){const _0x198b23=_0x2b68ce;this[_0x198b23(0x1e9)]='',this[_0x198b23(0x230)]='',this[_0x198b23(0x22c)]='',this[_0x198b23(0x1fc)]='',this[_0x198b23(0x232)]='',this[_0x198b23(0x213)]='',this[_0x198b23(0x1fd)]=void 0x0,this[_0x198b23(0x223)][_0x198b23(0x1e6)](),this[_0x198b23(0x237)]();}async[_0x2b68ce(0x22b)](_0x255f8f,_0x14e066,_0x20ac2e,_0x26f168){const _0x19009c=_0x2b68ce;return this[_0x19009c(0x205)]=!0x0,this[_0x19009c(0x223)][_0x19009c(0x209)](),this[_0x19009c(0x1fc)]=_0x14e066,this[_0x19009c(0x232)]=_0x255f8f,this[_0x19009c(0x213)]=_0x26f168||_0x255f8f,this[_0x19009c(0x1fd)]=_0x20ac2e,new Promise(_0x7b47bf=>{const _0x42a2f3=_0x19009c;this[_0x42a2f3(0x225)][_0x42a2f3(0x219)]({'query':_0x255f8f,'context':_0x14e066,'onData':_0x2f2346=>{const _0x12e2a0=_0x42a2f3;this[_0x12e2a0(0x22c)]=_0x2f2346,this[_0x12e2a0(0x230)]=this[_0x12e2a0(0x233)](this[_0x12e2a0(0x22c)]);},'actionId':_0x20ac2e})[_0x42a2f3(0x1ea)](()=>{const _0x52b954=_0x42a2f3;!this[_0x52b954(0x230)]&&this[_0x52b954(0x22c)]&&(this[_0x52b954(0x230)]=this[_0x52b954(0x233)](this[_0x52b954(0x22c)],!0x0));})[_0x42a2f3(0x217)](_0x4617f9=>{const _0x1d0bc1=_0x42a2f3;_0x4617f9 instanceof _0x2f2933?this[_0x1d0bc1(0x223)][_0x1d0bc1(0x1ff)](_0x4617f9[_0x1d0bc1(0x1eb)]):this[_0x1d0bc1(0x223)][_0x1d0bc1(0x1ff)](),_0x7b47bf();})[_0x42a2f3(0x1e4)](()=>{const _0x37cd31=_0x42a2f3;this[_0x37cd31(0x237)](),_0x7b47bf();});});}[_0x2b68ce(0x233)](_0x253461,_0x248cdd=!0x1){const _0x2fb439=_0x2b68ce,_0x58caf9=Z[_0x2fb439(0x20f)](_0x253461);_0x253461=_0x58caf9?_0x253461[_0x2fb439(0x234)](_0x58caf9[0x1][_0x2fb439(0x211)]):_0x253461[_0x2fb439(0x211)]<0x64&&!_0x248cdd?'':this[_0x2fb439(0x221)](_0x253461);const _0x3800f9=this[_0x2fb439(0x22a)][_0x2fb439(0x229)](_0x253461,_0x2fb439(0x21b));if(_0x58caf9){const _0x1813f2=Array[_0x2fb439(0x1e2)](_0x3800f9[_0x2fb439(0x23f)][_0x2fb439(0x20c)]);_0x1813f2[_0x2fb439(0x208)]();for(const _0x3f6888 of _0x1813f2){if(_0x3f6888[_0x2fb439(0x1ef)]==Node[_0x2fb439(0x235)])break;_0x3f6888[_0x2fb439(0x20e)]();}}const _0x3dbcfc=this[_0x2fb439(0x1e1)][_0x2fb439(0x227)][_0x2fb439(0x1f3)][_0x2fb439(0x1ee)](this[_0x2fb439(0x203)][_0x2fb439(0x1f5)](_0x3800f9[_0x2fb439(0x23f)]));return this[_0x2fb439(0x210)]()||this[_0x2fb439(0x204)](_0x3dbcfc),this[_0x2fb439(0x1e1)][_0x2fb439(0x227)][_0x2fb439(0x22f)](this[_0x2fb439(0x1e1)][_0x2fb439(0x227)][_0x2fb439(0x202)](_0x3dbcfc));}[_0x2b68ce(0x204)](_0x3f474f){const _0x323967=_0x2b68ce,_0x4d42f0=new _0x3dc12e(this[_0x323967(0x1e1)][_0x323967(0x23e)][_0x323967(0x223)][_0x323967(0x218)]),_0x1fbdd4=new _0x207b51({'name':/^h[1-5]$/}),_0x52d4ab=[];let _0x308a6d=!0x1;for(const _0x1e2390 of _0x3f474f)_0x1e2390['is'](_0x323967(0x23d))&&_0x1fbdd4[_0x323967(0x200)](_0x1e2390)&&(_0x52d4ab[_0x323967(0x238)](_0x1e2390),'h1'==_0x1e2390[_0x323967(0x236)]&&(_0x308a6d=!0x0));if(_0x308a6d){for(const _0x181bcd of _0x52d4ab)_0x4d42f0[_0x323967(0x207)]('h'+(parseInt(_0x181bcd[_0x323967(0x236)][0x1])+0x1),_0x181bcd);}}[_0x2b68ce(0x210)](){const _0x451cb0=_0x2b68ce,{data:_0xb69237,editing:_0x232832}=this[_0x451cb0(0x1e1)],_0x30a689=_0xb69237[_0x451cb0(0x21f)][_0x451cb0(0x1ee)](_0x451cb0(0x226)),_0x360c73=_0xb69237[_0x451cb0(0x1ee)](_0xb69237[_0x451cb0(0x202)](_0x30a689));return!!_0x232832[_0x451cb0(0x223)][_0x451cb0(0x1f6)][_0x451cb0(0x214)](_0x360c73)[_0x451cb0(0x212)]('h1');}[_0x2b68ce(0x231)](_0x23cb53){const _0x4137b8=_0x2b68ce;return this[_0x4137b8(0x1e1)][_0x4137b8(0x23e)][_0x4137b8(0x223)][_0x4137b8(0x1f6)][_0x4137b8(0x215)](this[_0x4137b8(0x224)],_0x23cb53),this[_0x4137b8(0x224)][_0x4137b8(0x1fb)];}[_0x2b68ce(0x221)](_0x30ac0c){const _0x3671c9=_0x2b68ce,_0x48aa9f=_0x30ac0c[_0x3671c9(0x21a)]();return _0x48aa9f[_0x3671c9(0x20a)](_0x3671c9(0x1e5))?_0x48aa9f[_0x3671c9(0x206)](_0x3671c9(0x22d))?_0x48aa9f[_0x3671c9(0x234)](0x7,_0x48aa9f[_0x3671c9(0x211)]-0x3):_0x48aa9f[_0x3671c9(0x234)](0x7):_0x30ac0c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x14f6(){const _0x36cf6e=['div','_createLoader','ck-ai-form__content-area--processing','position','contentFieldView','scrollTo','text/plain','text/html','42024dGmdez','render','getSelection','isProcessing','isVisible','left','innerHTML','ClipboardItem','650yLsZEF','addRange','write','setStartAfter','scrollHeight','locale','setTemplate','execute','ck-ai-form__content-area-wrapper','bind','ck-reset_all-excluded','loaderView','absolute','execCommand','element','<span>[</span>','ck-ai-form__copy-button-wrapper','removeAllRanges','firstElementChild','Copy','check','866826JjgMxD','change:value','1461114SBLjUG','remove','<span>]</span>','value','icon','isEnabled','_copyHTMLToClipboard','copy','.ck-ai-form__loader','style','smooth','copyButtonView','bindTemplate','\x20ck-ai-form__copy-button--copied','ck-ai-form__copy-button','change:isProcessing','createRange','querySelector','1278135sJfllu','mousedown','ck-ai-form__content-field','textContent','clipboard','977660cuPXIi','appendLoader','ck-ai-form__loader','class','ck-hidden','body','AI\x20is\x20writing...','3201400QWthLN','-9999px','listenTo','_createCopyButton','setContent','appendChild','lastElementChild','ck-content','set','655837FpCfAL','createElement','setEndBefore','focus','ck-ai-form__content-area','wheel'];_0x14f6=function(){return _0x36cf6e;};return _0x14f6();}const _0x3f6196=_0x1c84;(function(_0x34c79a,_0xb76606){const _0x3a45a0=_0x1c84,_0x2f4381=_0x34c79a();while(!![]){try{const _0x231faf=-parseInt(_0x3a45a0(0x1a8))/0x1+-parseInt(_0x3a45a0(0x1aa))/0x2+parseInt(_0x3a45a0(0x168))/0x3+parseInt(_0x3a45a0(0x16d))/0x4+-parseInt(_0x3a45a0(0x193))/0x5*(-parseInt(_0x3a45a0(0x18b))/0x6)+parseInt(_0x3a45a0(0x17d))/0x7+parseInt(_0x3a45a0(0x174))/0x8;if(_0x231faf===_0xb76606)break;else _0x2f4381['push'](_0x2f4381['shift']());}catch(_0x455cd8){_0x2f4381['push'](_0x2f4381['shift']());}}}(_0x14f6,0x74917));function _0x1c84(_0x2afc01,_0x1d7d46){const _0x14f696=_0x14f6();return _0x1c84=function(_0x1c8408,_0x352176){_0x1c8408=_0x1c8408-0x158;let _0x5338fb=_0x14f696[_0x1c8408];return _0x5338fb;},_0x1c84(_0x2afc01,_0x1d7d46);}import{global as _0x197f9b}from'ckeditor5/src/utils.js';import{View as _0x540b15,ButtonView as _0x46e026,SpinnerView as _0x20a477}from'ckeditor5/src/ui.js';import _0x1a6e0d from'../../../theme/icons/copy.svg';import{getTranslation as _0x23dc56}from'../../utils/common-translations.js';import{icons as _0x583cde}from'ckeditor5/src/core.js';export default class W extends _0x540b15{constructor(_0x42f966,_0x18a1f3=''){const _0x3df26e=_0x1c84;super(_0x42f966),this[_0x3df26e(0x17c)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x3a712b=this[_0x3df26e(0x162)];this[_0x3df26e(0x187)]=new ContentFieldView(_0x42f966,_0x18a1f3),this[_0x3df26e(0x161)]=this[_0x3df26e(0x177)](),this[_0x3df26e(0x199)]({'tag':_0x3df26e(0x183),'attributes':{'class':['ck',_0x3df26e(0x19b),_0x3a712b['if'](_0x3df26e(0x18f),_0x3df26e(0x171),_0x3f7e4b=>!_0x3f7e4b)],'tabindex':'-1'},'children':[{'tag':_0x3df26e(0x183),'attributes':{'class':['ck',_0x3df26e(0x181),_0x3a712b['if'](_0x3df26e(0x18e),_0x3df26e(0x185))]},'children':[this[_0x3df26e(0x187)],{'tag':_0x3df26e(0x183),'attributes':{'class':['ck',_0x3df26e(0x1a3)]},'children':[this[_0x3df26e(0x161)]]}]}]});}[_0x3f6196(0x18c)](){const _0x496f1c=_0x3f6196;super[_0x496f1c(0x18c)](),this[_0x496f1c(0x159)]&&this[_0x496f1c(0x187)][_0x496f1c(0x178)](this[_0x496f1c(0x159)]);let _0x54d3f7=!0x1;this['on'](_0x496f1c(0x1a9),(_0x808685,_0x5bd901,_0x26c352)=>{const _0x3f749b=_0x496f1c,_0x63ae52=!this[_0x3f749b(0x187)][_0x3f749b(0x1a1)][_0x3f749b(0x167)](_0x3f749b(0x15e));this[_0x3f749b(0x187)][_0x3f749b(0x178)](_0x26c352),this[_0x3f749b(0x18e)]&&_0x63ae52&&!_0x54d3f7&&this[_0x3f749b(0x1a1)][_0x3f749b(0x188)]({'top':this[_0x3f749b(0x1a1)][_0x3f749b(0x197)],'behavior':_0x3f749b(0x160)});}),this['on'](_0x496f1c(0x165),(_0x781dc1,_0x148a82,_0x413fac)=>{const _0x3268e8=_0x496f1c;_0x54d3f7=!0x1,_0x413fac?(this[_0x3268e8(0x159)]=null,this[_0x3268e8(0x187)][_0x3268e8(0x16e)]()):this[_0x3268e8(0x159)]||this[_0x3268e8(0x187)][_0x3268e8(0x178)]('');}),this[_0x496f1c(0x176)](this[_0x496f1c(0x1a1)],_0x496f1c(0x182),()=>{_0x54d3f7=!0x0;}),this[_0x496f1c(0x176)](this[_0x496f1c(0x1a1)],_0x496f1c(0x169),()=>{_0x54d3f7=!0x0;});}[_0x3f6196(0x180)](){const _0x58f5cc=_0x3f6196;this[_0x58f5cc(0x1a1)][_0x58f5cc(0x180)]();}[_0x3f6196(0x177)](){const _0x4e1b09=_0x3f6196,_0x8c5668=this[_0x4e1b09(0x198)],_0x4f27f7=new _0x46e026(this[_0x4e1b09(0x198)]),_0xda7d75=_0x4e1b09(0x164);return _0x4f27f7[_0x4e1b09(0x17c)]({'label':_0x23dc56(_0x8c5668,_0x4e1b09(0x1a6)),'icon':_0x1a6e0d,'class':_0xda7d75,'tooltip':!0x0}),_0x4f27f7[_0x4e1b09(0x19c)](_0x4e1b09(0x18f))['to'](this,_0x4e1b09(0x159),_0x597b26=>!!_0x597b26),_0x4f27f7[_0x4e1b09(0x19c)](_0x4e1b09(0x15b))['to'](this,_0x4e1b09(0x18e),_0x58a0cc=>!_0x58a0cc),_0x4f27f7['on'](_0x4e1b09(0x19a),()=>{const _0x50589e=_0x4e1b09;this[_0x50589e(0x15c)](this[_0x50589e(0x187)][_0x50589e(0x1a1)]),_0x4f27f7[_0x50589e(0x15a)]=_0x583cde[_0x50589e(0x1a7)],_0x4f27f7[_0x50589e(0x170)]=_0xda7d75+_0x50589e(0x163),this[_0x50589e(0x180)](),setTimeout(()=>{const _0x48f4aa=_0x50589e;_0x4f27f7[_0x48f4aa(0x15a)]=_0x1a6e0d,_0x4f27f7[_0x48f4aa(0x170)]=_0xda7d75;},0x3e8);}),_0x4f27f7;}[_0x3f6196(0x15c)](_0x2c77b5){const _0xd2bffa=_0x3f6196,{window:_0x6f67b5,document:_0x45ace4}=_0x197f9b;if(_0x6f67b5[_0xd2bffa(0x192)]){const {Blob:_0x46f95c,ClipboardItem:_0x308d72}=_0x6f67b5,_0x5b4be1=[new _0x308d72({'text/html':new _0x46f95c([_0x2c77b5[_0xd2bffa(0x191)]],{'type':_0xd2bffa(0x18a)}),'text/plain':new _0x46f95c([_0x2c77b5[_0xd2bffa(0x16b)]||''],{'type':_0xd2bffa(0x189)})})];navigator[_0xd2bffa(0x16c)][_0xd2bffa(0x195)](_0x5b4be1);}else{const _0x5cd3b8=_0x45ace4[_0xd2bffa(0x17e)](_0xd2bffa(0x183));_0x5cd3b8[_0xd2bffa(0x15f)][_0xd2bffa(0x186)]=_0xd2bffa(0x19f),_0x5cd3b8[_0xd2bffa(0x15f)][_0xd2bffa(0x190)]=_0xd2bffa(0x175),_0x5cd3b8[_0xd2bffa(0x191)]=_0xd2bffa(0x1a2)+_0x2c77b5[_0xd2bffa(0x191)]+_0xd2bffa(0x158),_0x45ace4[_0xd2bffa(0x172)][_0xd2bffa(0x179)](_0x5cd3b8);const _0x253f7a=_0x45ace4[_0xd2bffa(0x166)]();_0x253f7a[_0xd2bffa(0x196)](_0x5cd3b8[_0xd2bffa(0x1a5)]),_0x253f7a[_0xd2bffa(0x17f)](_0x5cd3b8[_0xd2bffa(0x17a)]);const _0x13f2ce=_0x6f67b5[_0xd2bffa(0x18d)]();_0x13f2ce[_0xd2bffa(0x1a4)](),_0x13f2ce[_0xd2bffa(0x194)](_0x253f7a),_0x45ace4[_0xd2bffa(0x1a0)](_0xd2bffa(0x15d)),_0x5cd3b8[_0xd2bffa(0x1ab)]();}}}export class ContentFieldView extends _0x540b15{constructor(_0xf989c,_0x88c2ab=''){const _0xb08ab1=_0x3f6196;super(_0xf989c),this[_0xb08ab1(0x19e)]=this[_0xb08ab1(0x184)](),this[_0xb08ab1(0x199)]({'tag':_0xb08ab1(0x183),'attributes':{'class':['ck',_0xb08ab1(0x17b),_0x88c2ab,_0xb08ab1(0x19d),_0xb08ab1(0x16a)]}});}[_0x3f6196(0x178)](_0xe2884f){const _0x2aa16f=_0x3f6196;this[_0x2aa16f(0x1a1)][_0x2aa16f(0x191)]=_0xe2884f;}[_0x3f6196(0x16e)](){const _0x47e46a=_0x3f6196;this[_0x47e46a(0x1a1)][_0x47e46a(0x179)](this[_0x47e46a(0x19e)][_0x47e46a(0x1a1)]);}[_0x3f6196(0x184)](){const _0x539440=_0x3f6196,_0x1788d9=new _0x540b15(),_0x4ae292=this[_0x539440(0x198)],_0x14b271=new _0x20a477();return _0x14b271[_0x539440(0x18f)]=!0x0,_0x1788d9[_0x539440(0x199)]({'tag':_0x539440(0x183),'attributes':{'class':['ck',_0x539440(0x16f)]},'children':[_0x14b271,{'text':_0x23dc56(_0x4ae292,_0x539440(0x173))}]}),_0x1788d9[_0x539440(0x18c)](),_0x1788d9;}}
23
+ const _0x45a764=_0x4672;function _0x5e73(){const _0x415e7c=['11290538CAAmxx','div','text/html','AI\x20is\x20writing...','class','listenTo','1790915oZSoup','_createCopyButton','body','locale','\x20ck-ai-form__copy-button--copied','change:value','3dzilqZ','<span>[</span>','2576458CnzDHL','element','ClipboardItem','querySelector','remove','isVisible','removeAllRanges','ck-reset_all-excluded','createElement','ck-content','bind','copy','appendChild','isEnabled','50uxxdmM','text/plain','setTemplate','loaderView','wheel','bindTemplate','smooth','ck-ai-form__content-area--processing','getSelection','copyButtonView','_createLoader','left','absolute','focus','execute','<span>]</span>','position','setEndBefore','scrollHeight','587645RiwjfM','check','write','ck-ai-form__content-area','set','contentFieldView','ck-ai-form__copy-button-wrapper','clipboard','setContent','isProcessing','change:isProcessing','3867860gqynYJ','icon','style','ck-ai-form__content-area-wrapper','innerHTML','ck-ai-form__loader','addRange','appendLoader','-9999px','render','textContent','_copyHTMLToClipboard','.ck-ai-form__loader','ck-hidden','8257104cGgNKN','lastElementChild','Copy','execCommand','ck-ai-form__content-field','firstElementChild','6yOgsHc','value','setStartAfter','createRange','ck-ai-form__copy-button','5027520wYAoCi','scrollTo','mousedown'];_0x5e73=function(){return _0x415e7c;};return _0x5e73();}(function(_0x12fd08,_0x2e93bb){const _0xbbefcf=_0x4672,_0x1908b0=_0x12fd08();while(!![]){try{const _0xc6d6ea=parseInt(_0xbbefcf(0xf3))/0x1+parseInt(_0xbbefcf(0xd2))/0x2+parseInt(_0xbbefcf(0xd0))/0x3*(parseInt(_0xbbefcf(0xfe))/0x4)+parseInt(_0xbbefcf(0xca))/0x5*(parseInt(_0xbbefcf(0xbc))/0x6)+parseInt(_0xbbefcf(0xc4))/0x7+parseInt(_0xbbefcf(0xc1))/0x8+-parseInt(_0xbbefcf(0xb6))/0x9*(parseInt(_0xbbefcf(0xe0))/0xa);if(_0xc6d6ea===_0x2e93bb)break;else _0x1908b0['push'](_0x1908b0['shift']());}catch(_0x3e6f4e){_0x1908b0['push'](_0x1908b0['shift']());}}}(_0x5e73,0xd0c4c));import{global as _0x2f72dd}from'ckeditor5/src/utils.js';import{View as _0x43c6e9,ButtonView as _0x4b9432,SpinnerView as _0x35614d}from'ckeditor5/src/ui.js';import _0x56364b from'../../../theme/icons/copy.svg';import{getTranslation as _0x5b807f}from'../../utils/common-translations.js';import{icons as _0x5a4597}from'ckeditor5/src/core.js';export default class W extends _0x43c6e9{constructor(_0x1158a6,_0x5f54b8=''){const _0x5b96f7=_0x4672;super(_0x1158a6),this[_0x5b96f7(0xf7)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x2e85df=this[_0x5b96f7(0xe5)];this[_0x5b96f7(0xf8)]=new ContentFieldView(_0x1158a6,_0x5f54b8),this[_0x5b96f7(0xe9)]=this[_0x5b96f7(0xcb)](),this[_0x5b96f7(0xe2)]({'tag':_0x5b96f7(0xc5),'attributes':{'class':['ck',_0x5b96f7(0x101),_0x2e85df['if'](_0x5b96f7(0xd7),_0x5b96f7(0xb5),_0x14d3b7=>!_0x14d3b7)],'tabindex':'-1'},'children':[{'tag':_0x5b96f7(0xc5),'attributes':{'class':['ck',_0x5b96f7(0xf6),_0x2e85df['if'](_0x5b96f7(0xfc),_0x5b96f7(0xe7))]},'children':[this[_0x5b96f7(0xf8)],{'tag':_0x5b96f7(0xc5),'attributes':{'class':['ck',_0x5b96f7(0xf9)]},'children':[this[_0x5b96f7(0xe9)]]}]}]});}[_0x45a764(0x107)](){const _0x3c4403=_0x45a764;super[_0x3c4403(0x107)](),this[_0x3c4403(0xbd)]&&this[_0x3c4403(0xf8)][_0x3c4403(0xfb)](this[_0x3c4403(0xbd)]);let _0x513801=!0x1;this['on'](_0x3c4403(0xcf),(_0x201c8a,_0xdeb150,_0x3967d6)=>{const _0x2871c5=_0x3c4403,_0xa11258=!this[_0x2871c5(0xf8)][_0x2871c5(0xd3)][_0x2871c5(0xd5)](_0x2871c5(0xb4));this[_0x2871c5(0xf8)][_0x2871c5(0xfb)](_0x3967d6),this[_0x2871c5(0xfc)]&&_0xa11258&&!_0x513801&&this[_0x2871c5(0xd3)][_0x2871c5(0xc2)]({'top':this[_0x2871c5(0xd3)][_0x2871c5(0xf2)],'behavior':_0x2871c5(0xe6)});}),this['on'](_0x3c4403(0xfd),(_0x32673d,_0x35ffc8,_0x5916a2)=>{const _0x2bdf75=_0x3c4403;_0x513801=!0x1,_0x5916a2?(this[_0x2bdf75(0xbd)]=null,this[_0x2bdf75(0xf8)][_0x2bdf75(0x105)]()):this[_0x2bdf75(0xbd)]||this[_0x2bdf75(0xf8)][_0x2bdf75(0xfb)]('');}),this[_0x3c4403(0xc9)](this[_0x3c4403(0xd3)],_0x3c4403(0xe4),()=>{_0x513801=!0x0;}),this[_0x3c4403(0xc9)](this[_0x3c4403(0xd3)],_0x3c4403(0xc3),()=>{_0x513801=!0x0;});}[_0x45a764(0xed)](){const _0x34d1d3=_0x45a764;this[_0x34d1d3(0xd3)][_0x34d1d3(0xed)]();}[_0x45a764(0xcb)](){const _0x20cbae=_0x45a764,_0x577b5b=this[_0x20cbae(0xcd)],_0x5d9cf4=new _0x4b9432(this[_0x20cbae(0xcd)]),_0xf7297d=_0x20cbae(0xc0);return _0x5d9cf4[_0x20cbae(0xf7)]({'label':_0x5b807f(_0x577b5b,_0x20cbae(0xb8)),'icon':_0x56364b,'class':_0xf7297d,'tooltip':!0x0}),_0x5d9cf4[_0x20cbae(0xdc)](_0x20cbae(0xd7))['to'](this,_0x20cbae(0xbd),_0x5c4904=>!!_0x5c4904),_0x5d9cf4[_0x20cbae(0xdc)](_0x20cbae(0xdf))['to'](this,_0x20cbae(0xfc),_0x22a004=>!_0x22a004),_0x5d9cf4['on'](_0x20cbae(0xee),()=>{const _0x31a792=_0x20cbae;this[_0x31a792(0xb3)](this[_0x31a792(0xf8)][_0x31a792(0xd3)]),_0x5d9cf4[_0x31a792(0xff)]=_0x5a4597[_0x31a792(0xf4)],_0x5d9cf4[_0x31a792(0xc8)]=_0xf7297d+_0x31a792(0xce),this[_0x31a792(0xed)](),setTimeout(()=>{const _0x26c7fd=_0x31a792;_0x5d9cf4[_0x26c7fd(0xff)]=_0x56364b,_0x5d9cf4[_0x26c7fd(0xc8)]=_0xf7297d;},0x3e8);}),_0x5d9cf4;}[_0x45a764(0xb3)](_0x1f3bf2){const _0x571276=_0x45a764,{window:_0xd6a08e,document:_0x1bf6fa}=_0x2f72dd;if(_0xd6a08e[_0x571276(0xd4)]){const {Blob:_0x91d6c5,ClipboardItem:_0x94ed01}=_0xd6a08e,_0xe9c29c=[new _0x94ed01({'text/html':new _0x91d6c5([_0x1f3bf2[_0x571276(0x102)]],{'type':_0x571276(0xc6)}),'text/plain':new _0x91d6c5([_0x1f3bf2[_0x571276(0x108)]||''],{'type':_0x571276(0xe1)})})];navigator[_0x571276(0xfa)][_0x571276(0xf5)](_0xe9c29c);}else{const _0x53bd01=_0x1bf6fa[_0x571276(0xda)](_0x571276(0xc5));_0x53bd01[_0x571276(0x100)][_0x571276(0xf0)]=_0x571276(0xec),_0x53bd01[_0x571276(0x100)][_0x571276(0xeb)]=_0x571276(0x106),_0x53bd01[_0x571276(0x102)]=_0x571276(0xd1)+_0x1f3bf2[_0x571276(0x102)]+_0x571276(0xef),_0x1bf6fa[_0x571276(0xcc)][_0x571276(0xde)](_0x53bd01);const _0x42bb19=_0x1bf6fa[_0x571276(0xbf)]();_0x42bb19[_0x571276(0xbe)](_0x53bd01[_0x571276(0xbb)]),_0x42bb19[_0x571276(0xf1)](_0x53bd01[_0x571276(0xb7)]);const _0x32ec3c=_0xd6a08e[_0x571276(0xe8)]();_0x32ec3c[_0x571276(0xd8)](),_0x32ec3c[_0x571276(0x104)](_0x42bb19),_0x1bf6fa[_0x571276(0xb9)](_0x571276(0xdd)),_0x53bd01[_0x571276(0xd6)]();}}}function _0x4672(_0x3038ee,_0x4204e1){const _0x5e735f=_0x5e73();return _0x4672=function(_0x4672ab,_0x41ffb3){_0x4672ab=_0x4672ab-0xb3;let _0x30c5bc=_0x5e735f[_0x4672ab];return _0x30c5bc;},_0x4672(_0x3038ee,_0x4204e1);}export class ContentFieldView extends _0x43c6e9{constructor(_0x4f660a,_0x510e70=''){const _0x149036=_0x45a764;super(_0x4f660a),this[_0x149036(0xe3)]=this[_0x149036(0xea)](),this[_0x149036(0xe2)]({'tag':_0x149036(0xc5),'attributes':{'class':['ck',_0x149036(0xdb),_0x510e70,_0x149036(0xd9),_0x149036(0xba)]}});}[_0x45a764(0xfb)](_0x35980c){const _0x237650=_0x45a764;this[_0x237650(0xd3)][_0x237650(0x102)]=_0x35980c;}[_0x45a764(0x105)](){const _0x223a19=_0x45a764;this[_0x223a19(0xd3)][_0x223a19(0xde)](this[_0x223a19(0xe3)][_0x223a19(0xd3)]);}[_0x45a764(0xea)](){const _0x3b70b7=_0x45a764,_0x4cf4e6=new _0x43c6e9(),_0x4faa21=this[_0x3b70b7(0xcd)],_0x317476=new _0x35614d();return _0x317476[_0x3b70b7(0xd7)]=!0x0,_0x4cf4e6[_0x3b70b7(0xe2)]({'tag':_0x3b70b7(0xc5),'attributes':{'class':['ck',_0x3b70b7(0x103)]},'children':[_0x317476,{'text':_0x5b807f(_0x4faa21,_0x3b70b7(0xc7))}]}),_0x4cf4e6[_0x3b70b7(0x107)](),_0x4cf4e6;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x104cc1,_0x105ab0){const _0x30127a=_0x3a12,_0x15009b=_0x104cc1();while(!![]){try{const _0x4c4088=parseInt(_0x30127a(0xac))/0x1*(parseInt(_0x30127a(0xa5))/0x2)+parseInt(_0x30127a(0xa6))/0x3*(-parseInt(_0x30127a(0x9f))/0x4)+parseInt(_0x30127a(0xa9))/0x5+parseInt(_0x30127a(0xaa))/0x6+-parseInt(_0x30127a(0xa3))/0x7+-parseInt(_0x30127a(0xa0))/0x8+-parseInt(_0x30127a(0xae))/0x9*(-parseInt(_0x30127a(0xab))/0xa);if(_0x4c4088===_0x105ab0)break;else _0x15009b['push'](_0x15009b['shift']());}catch(_0x592598){_0x15009b['push'](_0x15009b['shift']());}}}(_0x224d,0xb5232));import{View as _0x5535a6,IconView as _0x281917}from'ckeditor5/src/ui.js';import _0x2822ef from'../../../theme/icons/error.svg';export default class tt extends _0x5535a6{constructor(_0x3b9993,_0x1f93bb=''){const _0x3cc4cd=_0x3a12;super(_0x3b9993);const _0x4b7a6f=new _0x281917(),_0x42b97e=this[_0x3cc4cd(0xad)];this[_0x3cc4cd(0xa1)](_0x3cc4cd(0xa8),_0x1f93bb),_0x4b7a6f[_0x3cc4cd(0xa7)]=_0x2822ef,this[_0x3cc4cd(0x9e)]({'tag':_0x3cc4cd(0xa4),'attributes':{'class':['ck',_0x3cc4cd(0xa2)]},'children':[_0x4b7a6f,{'text':_0x42b97e['to'](_0x3cc4cd(0xa8))}]});}}function _0x3a12(_0x79c3eb,_0x139a55){const _0x224d58=_0x224d();return _0x3a12=function(_0x3a129e,_0x16ef86){_0x3a129e=_0x3a129e-0x9e;let _0x29c857=_0x224d58[_0x3a129e];return _0x29c857;},_0x3a12(_0x79c3eb,_0x139a55);}function _0x224d(){const _0x19882c=['content','text','3158710grPCsN','5435196BVTrsw','758560BbnqYL','1027978CiADCt','bindTemplate','54YEKyTO','setTemplate','24GfzRzt','5951072znwlgr','set','ck-ai-form__error','6836536hUjWum','div','2pAtJhe','279126XyEZQX'];_0x224d=function(){return _0x19882c;};return _0x224d();}
23
+ (function(_0x4af37e,_0x5a9b60){const _0x852b6b=_0x1e9f,_0x3ce488=_0x4af37e();while(!![]){try{const _0x27a5ff=parseInt(_0x852b6b(0x10c))/0x1+-parseInt(_0x852b6b(0x10b))/0x2+-parseInt(_0x852b6b(0xff))/0x3+-parseInt(_0x852b6b(0x106))/0x4*(-parseInt(_0x852b6b(0x109))/0x5)+-parseInt(_0x852b6b(0xfd))/0x6*(-parseInt(_0x852b6b(0x108))/0x7)+parseInt(_0x852b6b(0x104))/0x8*(parseInt(_0x852b6b(0x103))/0x9)+parseInt(_0x852b6b(0x105))/0xa*(-parseInt(_0x852b6b(0xfe))/0xb);if(_0x27a5ff===_0x5a9b60)break;else _0x3ce488['push'](_0x3ce488['shift']());}catch(_0x185551){_0x3ce488['push'](_0x3ce488['shift']());}}}(_0x3283,0x5e5a0));import{View as _0x4ecdb5,IconView as _0x2eb63d}from'ckeditor5/src/ui.js';import _0x1318f4 from'../../../theme/icons/error.svg';function _0x1e9f(_0x3bd130,_0x38941a){const _0x328317=_0x3283();return _0x1e9f=function(_0x1e9f64,_0x48e9e0){_0x1e9f64=_0x1e9f64-0xfb;let _0x57a7e4=_0x328317[_0x1e9f64];return _0x57a7e4;},_0x1e9f(_0x3bd130,_0x38941a);}export default class tt extends _0x4ecdb5{constructor(_0xbdfc4a,_0x3c5934=''){const _0x3dfea4=_0x1e9f;super(_0xbdfc4a);const _0x4d0cae=new _0x2eb63d(),_0x1898f0=this[_0x3dfea4(0x107)];this[_0x3dfea4(0x100)](_0x3dfea4(0x101),_0x3c5934),_0x4d0cae[_0x3dfea4(0x10a)]=_0x1318f4,this[_0x3dfea4(0x102)]({'tag':_0x3dfea4(0xfb),'attributes':{'class':['ck',_0x3dfea4(0xfc)]},'children':[_0x4d0cae,{'text':_0x1898f0['to'](_0x3dfea4(0x101))}]});}}function _0x3283(){const _0x1cb6fc=['content','902yYGfWk','754464LORBVv','div','ck-ai-form__error','318jlvERD','99akgWWE','1347378mmiOMI','set','text','setTemplate','4833AtrjQK','1384xedzvF','1230010GEWIeg','630716ABAAri','bindTemplate','61411jgoIXa','20Qshwad'];_0x3283=function(){return _0x1cb6fc;};return _0x3283();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x541915=_0xd31a;(function(_0x340ee0,_0x34d4d3){const _0x54f054=_0xd31a,_0x1b9737=_0x340ee0();while(!![]){try{const _0xdabe6d=parseInt(_0x54f054(0x141))/0x1+-parseInt(_0x54f054(0x12e))/0x2*(-parseInt(_0x54f054(0x166))/0x3)+-parseInt(_0x54f054(0x136))/0x4+parseInt(_0x54f054(0x149))/0x5+-parseInt(_0x54f054(0x168))/0x6+-parseInt(_0x54f054(0x138))/0x7*(-parseInt(_0x54f054(0x144))/0x8)+-parseInt(_0x54f054(0x158))/0x9*(parseInt(_0x54f054(0x13b))/0xa);if(_0xdabe6d===_0x34d4d3)break;else _0x1b9737['push'](_0x1b9737['shift']());}catch(_0x407ae0){_0x1b9737['push'](_0x1b9737['shift']());}}}(_0x3ea6,0x9baa9));function _0xd31a(_0x448d2e,_0x1c3a6c){const _0x3ea6ce=_0x3ea6();return _0xd31a=function(_0xd31a77,_0x3f95a7){_0xd31a77=_0xd31a77-0x12e;let _0x502bae=_0x3ea6ce[_0xd31a77];return _0x502bae;},_0xd31a(_0x448d2e,_0x1c3a6c);}function _0x3ea6(){const _0xaabf92=['queryView','maxRows','target','13590cDewzi','minRows','excludeScrollbarsAndBorders','keystrokes','History','history','fire','update','submit','ck-ai-form__toggle-history','window','_createSubmitButton','right','focusableChildren','24711UKLCDb','uiLanguageDirection','1868664kzGFYr','174olXmMZ','isVisible','isEnabled','children','rtl','bind','left','element','2287076euBOlL','ck-ai-form__submit','5926781tdmXMO','execute','focusCycler','9720eJpAlu','enter','value','submitButtonView','focusLast','isOn','1243226fsmSrE','locale','render','8wumdMk','filteredView','style','fieldWrapperChildren','add','910070NTdOQU','focus','showHistoryButtonView','focusFirst','fieldView','resultsView','width','set','Submit','_createShowHistoryButton','isEmpty','requestAnimationFrame'];_0x3ea6=function(){return _0xaabf92;};return _0x3ea6();}import{Rect as _0x107eb7,global as _0x37f1f7,isVisible as _0x3a869b}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x5f1419,ButtonView as _0x2ebf7f}from'ckeditor5/src/ui.js';import{icons as _0x427ed9}from'ckeditor5/src/core.js';import{getTranslation as _0x17cf5e}from'../../utils/common-translations.js';import _0x37a65f from'../../../theme/icons/submit.svg';export default class ht extends _0x5f1419{constructor(_0x152ef5,_0x597b6d){const _0x1c757f=_0xd31a;super(_0x152ef5,_0x597b6d),this[_0x1c757f(0x155)][_0x1c757f(0x14d)][_0x1c757f(0x159)]=0x1,this[_0x1c757f(0x155)][_0x1c757f(0x14d)][_0x1c757f(0x156)]=0x3,this[_0x1c757f(0x13e)]=this[_0x1c757f(0x163)](),this[_0x1c757f(0x14b)]=this[_0x1c757f(0x152)](),this[_0x1c757f(0x165)][_0x1c757f(0x148)](this[_0x1c757f(0x14b)],0x1),this[_0x1c757f(0x165)][_0x1c757f(0x148)](this[_0x1c757f(0x13e)]);}[_0x541915(0x143)](){const _0x965c5f=_0x541915;super[_0x965c5f(0x143)](),this[_0x965c5f(0x155)][_0x965c5f(0x147)][_0x965c5f(0x148)](this[_0x965c5f(0x14b)]),this[_0x965c5f(0x131)][_0x965c5f(0x148)](this[_0x965c5f(0x13e)]),this[_0x965c5f(0x15b)][_0x965c5f(0x150)](_0x965c5f(0x13c),(_0x5451a3,_0x387c34)=>{const _0x469ddf=_0x965c5f;_0x5451a3[_0x469ddf(0x157)]==this[_0x469ddf(0x155)][_0x469ddf(0x14d)][_0x469ddf(0x135)]&&(this[_0x469ddf(0x160)](),_0x387c34());});}[_0x541915(0x163)](){const _0x291f67=_0x541915,_0x40f566=new _0x2ebf7f(this[_0x291f67(0x142)]),_0x567287=this[_0x291f67(0x142)];return _0x40f566[_0x291f67(0x150)]({'icon':_0x37a65f,'label':_0x17cf5e(_0x567287,_0x291f67(0x151)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x291f67(0x137)}),_0x40f566['on'](_0x291f67(0x139),()=>{const _0x50ce2f=_0x291f67;this[_0x50ce2f(0x160)]();}),_0x40f566[_0x291f67(0x133)](_0x291f67(0x130))['to'](this[_0x291f67(0x155)][_0x291f67(0x14d)],_0x291f67(0x153),this,_0x291f67(0x130),(_0xbbeded,_0x50c648)=>!_0xbbeded&&_0x50c648),_0x40f566;}[_0x541915(0x152)](){const _0x2b6ed0=_0x541915,_0x4f65fc=new _0x2ebf7f(this[_0x2b6ed0(0x142)]),_0x52cc61=this[_0x2b6ed0(0x14e)],_0x24edce=this[_0x2b6ed0(0x142)];_0x4f65fc[_0x2b6ed0(0x150)]({'label':_0x17cf5e(_0x24edce,_0x2b6ed0(0x15c)),'withText':!0x1,'icon':_0x427ed9[_0x2b6ed0(0x15d)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x2b6ed0(0x161)}),_0x4f65fc[_0x2b6ed0(0x133)](_0x2b6ed0(0x140))['to'](_0x52cc61,_0x2b6ed0(0x12f)),_0x4f65fc[_0x2b6ed0(0x133)](_0x2b6ed0(0x130))['to'](this,_0x2b6ed0(0x130)),_0x4f65fc['on'](_0x2b6ed0(0x139),()=>{const _0x48e1e3=_0x2b6ed0;_0x52cc61[_0x48e1e3(0x12f)]=!_0x52cc61[_0x48e1e3(0x12f)],_0x52cc61[_0x48e1e3(0x12f)]?this[_0x48e1e3(0x145)][_0x48e1e3(0x14a)]():this[_0x48e1e3(0x14a)]();});const _0x580b8b=()=>{const _0x48093c=_0x2b6ed0;_0x37f1f7[_0x48093c(0x162)][_0x48093c(0x154)](()=>{const _0x12b828=_0x48093c;if(_0x3a869b(this[_0x12b828(0x135)])){const _0x50aebd=new _0x107eb7(this[_0x12b828(0x155)][_0x12b828(0x14d)][_0x12b828(0x135)]),_0x2b9b0e=_0x50aebd[_0x12b828(0x14f)],_0x3a1f56=_0x12b828(0x132)===_0x24edce[_0x12b828(0x167)]?_0x12b828(0x134):_0x12b828(0x164);_0x50aebd[_0x12b828(0x15a)](),_0x4f65fc[_0x12b828(0x135)][_0x12b828(0x146)][_0x3a1f56]=_0x2b9b0e-_0x50aebd[_0x12b828(0x14f)]+0x1+'px';}});};return this[_0x2b6ed0(0x155)][_0x2b6ed0(0x14d)]['on'](_0x2b6ed0(0x15f),_0x580b8b),this['on'](_0x2b6ed0(0x143),_0x580b8b),_0x4f65fc;}[_0x541915(0x160)](){const _0x123e26=_0x541915,_0x2b9089=this[_0x123e26(0x155)][_0x123e26(0x14d)][_0x123e26(0x135)][_0x123e26(0x13d)];this[_0x123e26(0x15e)](_0x123e26(0x160),_0x2b9089);}[_0x541915(0x14a)](_0x439137){const _0x130dfe=_0x541915;-0x1===_0x439137?this[_0x130dfe(0x13a)][_0x130dfe(0x13f)]():this[_0x130dfe(0x13a)][_0x130dfe(0x14c)]();}}
23
+ const _0x3cb845=_0x1f0f;(function(_0x2086fc,_0x35d80f){const _0x5e1ddd=_0x1f0f,_0xfdc637=_0x2086fc();while(!![]){try{const _0x21e9e4=parseInt(_0x5e1ddd(0xf9))/0x1+parseInt(_0x5e1ddd(0x11c))/0x2+parseInt(_0x5e1ddd(0x102))/0x3*(parseInt(_0x5e1ddd(0xf5))/0x4)+parseInt(_0x5e1ddd(0xff))/0x5+-parseInt(_0x5e1ddd(0x120))/0x6+parseInt(_0x5e1ddd(0x117))/0x7*(parseInt(_0x5e1ddd(0x121))/0x8)+-parseInt(_0x5e1ddd(0x111))/0x9;if(_0x21e9e4===_0x35d80f)break;else _0xfdc637['push'](_0xfdc637['shift']());}catch(_0xb3a7fd){_0xfdc637['push'](_0xfdc637['shift']());}}}(_0x383a,0x9c5de));import{Rect as _0x357360,global as _0x5b64a3,isVisible as _0x5e3aae}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x19cb44,ButtonView as _0x12c39b}from'ckeditor5/src/ui.js';function _0x383a(){const _0xb124ee=['showHistoryButtonView','fieldWrapperChildren','isOn','queryView','enter','History','minRows','bind','submitButtonView','style','47656EiwQBf','resultsView','fire','keystrokes','743904BQuvoP','render','uiLanguageDirection','element','locale','submit','3971035VZKGBB','isEnabled','Submit','309YeNSQU','focusCycler','requestAnimationFrame','maxRows','_createShowHistoryButton','value','ck-ai-form__toggle-history','window','fieldView','target','history','isVisible','focusFirst','width','ck-ai-form__submit','19098513MKjIRl','rtl','left','filteredView','focus','focusableChildren','16646KPRPBp','update','right','_createSubmitButton','add','416894JOGTxc','isEmpty','set','excludeScrollbarsAndBorders','4848258SphIrp','2008VCcitU','execute','children','focusLast'];_0x383a=function(){return _0xb124ee;};return _0x383a();}import{icons as _0x4cc8c6}from'ckeditor5/src/core.js';function _0x1f0f(_0x49d456,_0x41b0b1){const _0x383ac5=_0x383a();return _0x1f0f=function(_0x1f0f23,_0x2125aa){_0x1f0f23=_0x1f0f23-0xf5;let _0x1b6742=_0x383ac5[_0x1f0f23];return _0x1b6742;},_0x1f0f(_0x49d456,_0x41b0b1);}import{getTranslation as _0x14dbb2}from'../../utils/common-translations.js';import _0x4cb798 from'../../../theme/icons/submit.svg';export default class ht extends _0x19cb44{constructor(_0x311b62,_0x215509){const _0x864ab8=_0x1f0f;super(_0x311b62,_0x215509),this[_0x864ab8(0x128)][_0x864ab8(0x10a)][_0x864ab8(0x12b)]=0x1,this[_0x864ab8(0x128)][_0x864ab8(0x10a)][_0x864ab8(0x105)]=0x3,this[_0x864ab8(0x12d)]=this[_0x864ab8(0x11a)](),this[_0x864ab8(0x125)]=this[_0x864ab8(0x106)](),this[_0x864ab8(0x116)][_0x864ab8(0x11b)](this[_0x864ab8(0x125)],0x1),this[_0x864ab8(0x116)][_0x864ab8(0x11b)](this[_0x864ab8(0x12d)]);}[_0x3cb845(0xfa)](){const _0x37db2c=_0x3cb845;super[_0x37db2c(0xfa)](),this[_0x37db2c(0x128)][_0x37db2c(0x126)][_0x37db2c(0x11b)](this[_0x37db2c(0x125)]),this[_0x37db2c(0x123)][_0x37db2c(0x11b)](this[_0x37db2c(0x12d)]),this[_0x37db2c(0xf8)][_0x37db2c(0x11e)](_0x37db2c(0x129),(_0x1ac874,_0x1feef0)=>{const _0x1a98f0=_0x37db2c;_0x1ac874[_0x1a98f0(0x10b)]==this[_0x1a98f0(0x128)][_0x1a98f0(0x10a)][_0x1a98f0(0xfc)]&&(this[_0x1a98f0(0xfe)](),_0x1feef0());});}[_0x3cb845(0x11a)](){const _0x178a4c=_0x3cb845,_0x40ceab=new _0x12c39b(this[_0x178a4c(0xfd)]),_0x5eb87d=this[_0x178a4c(0xfd)];return _0x40ceab[_0x178a4c(0x11e)]({'icon':_0x4cb798,'label':_0x14dbb2(_0x5eb87d,_0x178a4c(0x101)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x178a4c(0x110)}),_0x40ceab['on'](_0x178a4c(0x122),()=>{const _0x4c2b14=_0x178a4c;this[_0x4c2b14(0xfe)]();}),_0x40ceab[_0x178a4c(0x12c)](_0x178a4c(0x100))['to'](this[_0x178a4c(0x128)][_0x178a4c(0x10a)],_0x178a4c(0x11d),this,_0x178a4c(0x100),(_0x3dd6e4,_0x3b1634)=>!_0x3dd6e4&&_0x3b1634),_0x40ceab;}[_0x3cb845(0x106)](){const _0x20bd2f=_0x3cb845,_0x328964=new _0x12c39b(this[_0x20bd2f(0xfd)]),_0x5b53c0=this[_0x20bd2f(0xf6)],_0x3b5f87=this[_0x20bd2f(0xfd)];_0x328964[_0x20bd2f(0x11e)]({'label':_0x14dbb2(_0x3b5f87,_0x20bd2f(0x12a)),'withText':!0x1,'icon':_0x4cc8c6[_0x20bd2f(0x10c)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x20bd2f(0x108)}),_0x328964[_0x20bd2f(0x12c)](_0x20bd2f(0x127))['to'](_0x5b53c0,_0x20bd2f(0x10d)),_0x328964[_0x20bd2f(0x12c)](_0x20bd2f(0x100))['to'](this,_0x20bd2f(0x100)),_0x328964['on'](_0x20bd2f(0x122),()=>{const _0x5941d7=_0x20bd2f;_0x5b53c0[_0x5941d7(0x10d)]=!_0x5b53c0[_0x5941d7(0x10d)],_0x5b53c0[_0x5941d7(0x10d)]?this[_0x5941d7(0x114)][_0x5941d7(0x115)]():this[_0x5941d7(0x115)]();});const _0xc05b=()=>{const _0x3c1dde=_0x20bd2f;_0x5b64a3[_0x3c1dde(0x109)][_0x3c1dde(0x104)](()=>{const _0x292ed4=_0x3c1dde;if(_0x5e3aae(this[_0x292ed4(0xfc)])){const _0x10205a=new _0x357360(this[_0x292ed4(0x128)][_0x292ed4(0x10a)][_0x292ed4(0xfc)]),_0x425595=_0x10205a[_0x292ed4(0x10f)],_0x51bdbb=_0x292ed4(0x112)===_0x3b5f87[_0x292ed4(0xfb)]?_0x292ed4(0x113):_0x292ed4(0x119);_0x10205a[_0x292ed4(0x11f)](),_0x328964[_0x292ed4(0xfc)][_0x292ed4(0x12e)][_0x51bdbb]=_0x425595-_0x10205a[_0x292ed4(0x10f)]+0x1+'px';}});};return this[_0x20bd2f(0x128)][_0x20bd2f(0x10a)]['on'](_0x20bd2f(0x118),_0xc05b),this['on'](_0x20bd2f(0xfa),_0xc05b),_0x328964;}[_0x3cb845(0xfe)](){const _0x37577a=_0x3cb845,_0x1b28c8=this[_0x37577a(0x128)][_0x37577a(0x10a)][_0x37577a(0xfc)][_0x37577a(0x107)];this[_0x37577a(0xf7)](_0x37577a(0xfe),_0x1b28c8);}[_0x3cb845(0x115)](_0x18e7ae){const _0x184a85=_0x3cb845;-0x1===_0x18e7ae?this[_0x184a85(0x103)][_0x184a85(0x124)]():this[_0x184a85(0x103)][_0x184a85(0x10e)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x6ad6(){const _0x1ea5e1=['tryAgainButton','1067463bzRUTb','bind','11009560DVjKmX','label','replace','2759043jGWZLC','set','16kdmRPQ','1532670WYaPOF','168400Pmkulb','REPLACE','17ipZfvg','locale','AI_','90PjnDIV','insertButton','bindTemplate','extendTemplate','Insert\x20below','isVisible','Stop','323075zlINUl','ck-ai-form__toolbar','items','insert','toUpperCase','_CONTENT','mainAction','_createButton','addMany','replaceButton','ck-hidden','40474hXIxBh','stopButton','ck-button-action','Try\x20again'];_0x6ad6=function(){return _0x1ea5e1;};return _0x6ad6();}const _0x5f1561=_0x14ac;function _0x14ac(_0x4cb691,_0x434ace){const _0x6ad612=_0x6ad6();return _0x14ac=function(_0x14acd8,_0x57fdeb){_0x14acd8=_0x14acd8-0xbf;let _0xa5331f=_0x6ad612[_0x14acd8];return _0xa5331f;},_0x14ac(_0x4cb691,_0x434ace);}(function(_0x32bbed,_0x3fb683){const _0x5e7ba9=_0x14ac,_0x179387=_0x32bbed();while(!![]){try{const _0x431bf0=-parseInt(_0x5e7ba9(0xd4))/0x1*(parseInt(_0x5e7ba9(0xc4))/0x2)+-parseInt(_0x5e7ba9(0xc9))/0x3+-parseInt(_0x5e7ba9(0xd0))/0x4*(-parseInt(_0x5e7ba9(0xde))/0x5)+-parseInt(_0x5e7ba9(0xd1))/0x6+-parseInt(_0x5e7ba9(0xce))/0x7+-parseInt(_0x5e7ba9(0xd2))/0x8*(-parseInt(_0x5e7ba9(0xd7))/0x9)+parseInt(_0x5e7ba9(0xcb))/0xa;if(_0x431bf0===_0x3fb683)break;else _0x179387['push'](_0x179387['shift']());}catch(_0x10f23f){_0x179387['push'](_0x179387['shift']());}}}(_0x6ad6,0x35d38));import{ToolbarView as _0x32cef3,ButtonView as _0x38246c}from'ckeditor5/src/ui.js';import{getTranslation as _0x2b52a1}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x5f1561(0xcd),'INSERT':_0x5f1561(0xe1)};export default class nt extends _0x32cef3{constructor(_0x159c9f){const _0x25e612=_0x5f1561;super(_0x159c9f),this[_0x25e612(0xcf)](_0x25e612(0xdc),!0x1),this[_0x25e612(0xcf)](_0x25e612(0xbf),AIFormToolbarViewMainActionLabel[_0x25e612(0xd3)]),this[_0x25e612(0xc2)]=this[_0x25e612(0xc0)]('',_0x25e612(0xc6)),this[_0x25e612(0xc2)][_0x25e612(0xca)](_0x25e612(0xcc))['to'](this,_0x25e612(0xbf),_0x19ed4d=>_0x2b52a1(_0x159c9f,_0x25e612(0xd6)+_0x19ed4d[_0x25e612(0xe2)]()+_0x25e612(0xe3))),this[_0x25e612(0xd8)]=this[_0x25e612(0xc0)](_0x2b52a1(_0x159c9f,_0x25e612(0xdb))),this[_0x25e612(0xc8)]=this[_0x25e612(0xc0)](_0x2b52a1(_0x159c9f,_0x25e612(0xc7))),this[_0x25e612(0xc5)]=this[_0x25e612(0xc0)](_0x2b52a1(_0x159c9f,_0x25e612(0xdd)));const _0x4d9089=this[_0x25e612(0xd9)];this[_0x25e612(0xda)]({'attributes':{'class':[_0x25e612(0xdf),_0x4d9089['if'](_0x25e612(0xdc),_0x25e612(0xc3),_0x4341c5=>!_0x4341c5)]}}),this[_0x25e612(0xe0)][_0x25e612(0xc1)]([this[_0x25e612(0xc2)],this[_0x25e612(0xd8)],this[_0x25e612(0xc8)],this[_0x25e612(0xc5)]]);}[_0x5f1561(0xc0)](_0x518139,_0x4440aa){const _0x36c44b=_0x5f1561,_0x36cce8=new _0x38246c(this[_0x36c44b(0xd5)]);return _0x36cce8[_0x36c44b(0xcf)]({'label':_0x518139,'class':_0x4440aa||'','isVisible':!0x0,'withText':!0x0}),_0x36cce8;}}
23
+ const _0x2c687f=_0x5b83;(function(_0x263e5a,_0x303486){const _0x4d6ab6=_0x5b83,_0xf2388a=_0x263e5a();while(!![]){try{const _0x21deb2=-parseInt(_0x4d6ab6(0x16d))/0x1+-parseInt(_0x4d6ab6(0x16e))/0x2+-parseInt(_0x4d6ab6(0x189))/0x3+parseInt(_0x4d6ab6(0x17a))/0x4+parseInt(_0x4d6ab6(0x17e))/0x5*(parseInt(_0x4d6ab6(0x17b))/0x6)+-parseInt(_0x4d6ab6(0x172))/0x7+parseInt(_0x4d6ab6(0x17c))/0x8;if(_0x21deb2===_0x303486)break;else _0xf2388a['push'](_0xf2388a['shift']());}catch(_0x37347a){_0xf2388a['push'](_0xf2388a['shift']());}}}(_0x46c3,0xecc0d));function _0x5b83(_0x26acf5,_0x1e63f2){const _0x46c37e=_0x46c3();return _0x5b83=function(_0x5b836d,_0x509f8c){_0x5b836d=_0x5b836d-0x169;let _0x21b5e2=_0x46c37e[_0x5b836d];return _0x21b5e2;},_0x5b83(_0x26acf5,_0x1e63f2);}import{ToolbarView as _0x5e2670,ButtonView as _0x2e61da}from'ckeditor5/src/ui.js';import{getTranslation as _0x457c88}from'../../utils/common-translations.js';function _0x46c3(){const _0x6622a4=['5687964lUEcrJ','_CONTENT','ck-button-action','ck-hidden','bindTemplate','insert','ck-ai-form__toolbar','1777262cNoPQX','1208012DgTYYN','items','insertButton','extendTemplate','3445995bJbPwR','addMany','locale','replaceButton','Insert\x20below','label','Stop','Try\x20again','3305944zIGicY','4164pxmINr','35271616hNHTTj','mainAction','3630spwdKT','isVisible','_createButton','stopButton','AI_','set','REPLACE','tryAgainButton','replace','toUpperCase','bind'];_0x46c3=function(){return _0x6622a4;};return _0x46c3();}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x2c687f(0x186),'INSERT':_0x2c687f(0x16b)};export default class nt extends _0x5e2670{constructor(_0x2af563){const _0x3be1bd=_0x2c687f;super(_0x2af563),this[_0x3be1bd(0x183)](_0x3be1bd(0x17f),!0x1),this[_0x3be1bd(0x183)](_0x3be1bd(0x17d),AIFormToolbarViewMainActionLabel[_0x3be1bd(0x184)]),this[_0x3be1bd(0x175)]=this[_0x3be1bd(0x180)]('',_0x3be1bd(0x18b)),this[_0x3be1bd(0x175)][_0x3be1bd(0x188)](_0x3be1bd(0x177))['to'](this,_0x3be1bd(0x17d),_0x374222=>_0x457c88(_0x2af563,_0x3be1bd(0x182)+_0x374222[_0x3be1bd(0x187)]()+_0x3be1bd(0x18a))),this[_0x3be1bd(0x170)]=this[_0x3be1bd(0x180)](_0x457c88(_0x2af563,_0x3be1bd(0x176))),this[_0x3be1bd(0x185)]=this[_0x3be1bd(0x180)](_0x457c88(_0x2af563,_0x3be1bd(0x179))),this[_0x3be1bd(0x181)]=this[_0x3be1bd(0x180)](_0x457c88(_0x2af563,_0x3be1bd(0x178)));const _0x5c4e4c=this[_0x3be1bd(0x16a)];this[_0x3be1bd(0x171)]({'attributes':{'class':[_0x3be1bd(0x16c),_0x5c4e4c['if'](_0x3be1bd(0x17f),_0x3be1bd(0x169),_0x33f25c=>!_0x33f25c)]}}),this[_0x3be1bd(0x16f)][_0x3be1bd(0x173)]([this[_0x3be1bd(0x175)],this[_0x3be1bd(0x170)],this[_0x3be1bd(0x185)],this[_0x3be1bd(0x181)]]);}[_0x2c687f(0x180)](_0xecf420,_0x5a8b1f){const _0x5d5fc0=_0x2c687f,_0x1f219e=new _0x2e61da(this[_0x5d5fc0(0x174)]);return _0x1f219e[_0x5d5fc0(0x183)]({'label':_0xecf420,'class':_0x5a8b1f||'','isVisible':!0x0,'withText':!0x0}),_0x1f219e;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2e420b=_0x5f1d;(function(_0x460595,_0x53a073){const _0x15d7aa=_0x5f1d,_0x2c8922=_0x460595();while(!![]){try{const _0x399901=-parseInt(_0x15d7aa(0x1f8))/0x1+-parseInt(_0x15d7aa(0x1e0))/0x2*(parseInt(_0x15d7aa(0x1d0))/0x3)+-parseInt(_0x15d7aa(0x1cf))/0x4*(parseInt(_0x15d7aa(0x1bb))/0x5)+parseInt(_0x15d7aa(0x1e4))/0x6*(parseInt(_0x15d7aa(0x1bd))/0x7)+-parseInt(_0x15d7aa(0x1ce))/0x8*(parseInt(_0x15d7aa(0x1ed))/0x9)+parseInt(_0x15d7aa(0x1fd))/0xa+parseInt(_0x15d7aa(0x1ea))/0xb*(parseInt(_0x15d7aa(0x1f6))/0xc);if(_0x399901===_0x53a073)break;else _0x2c8922['push'](_0x2c8922['shift']());}catch(_0x59c83c){_0x2c8922['push'](_0x2c8922['shift']());}}}(_0x2fee,0xd2cfe));import{FocusTracker as _0x3378a5,KeystrokeHandler as _0x1beae8}from'ckeditor5/src/utils.js';function _0x5f1d(_0x15c5ec,_0x50655d){const _0x2feea9=_0x2fee();return _0x5f1d=function(_0x5f1dde,_0x1d016c){_0x5f1dde=_0x5f1dde-0x1b2;let _0x367ff2=_0x2feea9[_0x5f1dde];return _0x367ff2;},_0x5f1d(_0x15c5ec,_0x50655d);}import{View as _0x28b4bf,FocusCycler as _0x4f0c86,createLabeledTextarea as _0x450ca9}from'ckeditor5/src/ui.js';import _0x20df5b,{AIFormToolbarViewMainActionLabel as _0x237945}from'./aiformtoolbarview.js';import _0x23694f from'./aiformcontentarea.js';import _0xeab749 from'./aiformerrorview.js';import _0x2ebd1a from'./aiformpromptview.js';import _0x1c0178 from'./aihistorylistview.js';import _0x16c76b from'./aihistorylistitemview.js';import _0x44dc1e from'./prompthistory.js';import{getTranslation as _0x17f199}from'../../utils/common-translations.js';import{escape as _0x4fca51}from'lodash-es';function _0x2fee(){const _0x1846d8=['1281YGNXNV','queryView','clearHistory','chain','prompt','focus','reset','set','_createToolbar','focusLast','stopProcessing','focusTracker','Empty\x20history','listenTo','render','finishProcessing','4430gKGpry','bindTemplate','createCollection','_focusables','543066ywGSZH','_promptHistory','handleError','startProcessing','_createPromptView','delegate','99uSSZMy','ck-ai-form','clear','5000634BICQLi','mainAction','isVisible','isError','items','element','keystrokes','isProcessing','submit','3066732hJMRrr','Ask\x20AI\x20to\x20improve\x20generated\x20text','1231753dPmXmg','historyGroupView','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','trim','search','2321260GBIMNH','REPLACE','bind','shift\x20+\x20tab','value','focusFirst','text','high','errorView','label','ck-hidden','_createHistoryView','tryAgainEvent','ck-ai-form-content','Ask\x20AI\x20to\x20edit\x20or\x20generate','fire','isEnabled','focusCycler','promptView','add','replaceButton','732925kgNTQc','locale','105JGDoVu','fieldView','bindTo','tryAgainButton','setTemplate','div','AI_ERROR_FAILED','insertContentBelow','stopButton','execute','toolbar','contentArea','copyButtonView','replaceContent','tab','submitPrompt','insertButton','8eUHQjw','8UHVWZf'];_0x2fee=function(){return _0x1846d8;};return _0x2fee();}export default class k extends _0x28b4bf{constructor(_0x22a9e3,_0x430ea2,_0x5e50e0=''){const _0x298a4c=_0x5f1d;super(_0x22a9e3),this[_0x298a4c(0x1d7)](_0x298a4c(0x1b6),!0x0),this[_0x298a4c(0x1d7)](_0x298a4c(0x1f4),!0x1),this[_0x298a4c(0x1d7)](_0x298a4c(0x1d4),''),this[_0x298a4c(0x1d7)](_0x298a4c(0x201),''),this[_0x298a4c(0x1d7)](_0x298a4c(0x1f0),!0x1),this[_0x298a4c(0x1d7)](_0x298a4c(0x1ee),_0x237945[_0x298a4c(0x1fe)]),this[_0x298a4c(0x1e5)]=new _0x44dc1e(),this[_0x298a4c(0x205)]=new _0xeab749(_0x22a9e3),this[_0x298a4c(0x1c8)]=new _0x23694f(_0x22a9e3,_0x5e50e0),this[_0x298a4c(0x1c8)][_0x298a4c(0x1ff)](_0x298a4c(0x1f4))['to'](this),this[_0x298a4c(0x1c8)][_0x298a4c(0x1ff)](_0x298a4c(0x201))['to'](this),this[_0x298a4c(0x1c7)]=this[_0x298a4c(0x1d8)](),this[_0x298a4c(0x1c7)][_0x298a4c(0x1ff)](_0x298a4c(0x1ee))['to'](this),this[_0x298a4c(0x1b8)]=this[_0x298a4c(0x1e8)](),this[_0x298a4c(0x1db)]=new _0x3378a5(),this[_0x298a4c(0x1f3)]=new _0x1beae8(),this[_0x298a4c(0x1e3)]=this[_0x298a4c(0x1e2)]([this[_0x298a4c(0x1c8)],this[_0x298a4c(0x1c8)][_0x298a4c(0x1c9)],this[_0x298a4c(0x1c7)],this[_0x298a4c(0x1b8)]]),this[_0x298a4c(0x1b7)]=new _0x4f0c86({'focusables':this[_0x298a4c(0x1e3)],'focusTracker':this[_0x298a4c(0x1db)],'keystrokeHandler':this[_0x298a4c(0x1f3)],'actions':{'focusPrevious':_0x298a4c(0x200),'focusNext':_0x298a4c(0x1cb)}}),this[_0x298a4c(0x1b7)][_0x298a4c(0x1d3)](this[_0x298a4c(0x1b8)][_0x298a4c(0x1b7)]),this[_0x298a4c(0x1b8)][_0x298a4c(0x1d1)][_0x298a4c(0x1be)][_0x298a4c(0x1ff)](_0x298a4c(0x201))['to'](this,_0x298a4c(0x1d4));const _0x4bf337=this[_0x298a4c(0x1e1)];this[_0x298a4c(0x1c1)]({'tag':_0x298a4c(0x1c2),'attributes':{'class':['ck',_0x298a4c(0x1eb),_0x430ea2],'tabindex':'-1'},'children':[{'tag':_0x298a4c(0x1c2),'attributes':{'class':['ck',_0x298a4c(0x1b3)]},'children':[{'tag':_0x298a4c(0x1c2),'attributes':{'class':[_0x4bf337['if'](_0x298a4c(0x1f0),_0x298a4c(0x207),_0x5cd0b3=>!_0x5cd0b3)]},'children':[this[_0x298a4c(0x205)]]},this[_0x298a4c(0x1c8)],this[_0x298a4c(0x1c7)],this[_0x298a4c(0x1b8)]]}]});}[_0x2e420b(0x1de)](){const _0xdd0352=_0x2e420b;super[_0xdd0352(0x1de)](),this[_0xdd0352(0x1db)][_0xdd0352(0x1b9)](this[_0xdd0352(0x1c8)][_0xdd0352(0x1f2)]),this[_0xdd0352(0x1db)][_0xdd0352(0x1b9)](this[_0xdd0352(0x1c8)][_0xdd0352(0x1c9)][_0xdd0352(0x1f2)]),this[_0xdd0352(0x1db)][_0xdd0352(0x1b9)](this[_0xdd0352(0x1c7)][_0xdd0352(0x1f2)]),this[_0xdd0352(0x1db)][_0xdd0352(0x1b9)](this[_0xdd0352(0x1b8)][_0xdd0352(0x1f2)]),this[_0xdd0352(0x1f3)][_0xdd0352(0x1dd)](this[_0xdd0352(0x1f2)]);}[_0x2e420b(0x1d5)](_0x4fe7a1=0x1){const _0x3c0af9=_0x2e420b;-0x1===_0x4fe7a1?this[_0x3c0af9(0x1b7)][_0x3c0af9(0x1d9)]():this[_0x3c0af9(0x1b7)][_0x3c0af9(0x202)]();}[_0x2e420b(0x1d6)](){const _0x4f8272=_0x2e420b;this[_0x4f8272(0x1d4)]='',this[_0x4f8272(0x201)]='',this[_0x4f8272(0x1f0)]=!0x1,this[_0x4f8272(0x1b8)][_0x4f8272(0x1d6)](),this[_0x4f8272(0x1c8)][_0x4f8272(0x1ef)]=!0x1,this[_0x4f8272(0x1c7)][_0x4f8272(0x1ef)]=!0x1;}[_0x2e420b(0x1e8)](){const _0x187b5a=_0x2e420b,_0x49ca9d=this[_0x187b5a(0x1bc)],_0x4f7631=new _0x2ebd1a(_0x49ca9d,{'queryView':{'label':_0x17f199(_0x49ca9d,_0x187b5a(0x1b4)),'creator':_0x450ca9,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x17f199(_0x49ca9d,_0x187b5a(0x1dc)),'secondary':_0x17f199(_0x49ca9d,_0x187b5a(0x1fa))}}},'filteredView':this[_0x187b5a(0x208)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x4f7631[_0x187b5a(0x1ff)](_0x187b5a(0x1b6))['to'](this,_0x187b5a(0x1b6),this,_0x187b5a(0x1f4),(_0x10bb82,_0x5f27a4)=>_0x10bb82&&!_0x5f27a4),this[_0x187b5a(0x1dd)](_0x4f7631,_0x187b5a(0x1f5),(_0xe60fe6,_0x462238)=>{const _0x127f02=_0x187b5a;this[_0x127f02(0x1d4)]=_0x462238;const _0x275b8b=_0x4fca51(_0x462238);this[_0x127f02(0x1b5)](_0x127f02(0x1cc),_0x275b8b),_0x462238[_0x127f02(0x1fb)]()&&this[_0x127f02(0x1e5)][_0x127f02(0x1b9)]({'prompt':_0x275b8b},0x0);},{'priority':_0x187b5a(0x204)}),_0x4f7631;}[_0x2e420b(0x208)](){const _0x449cfd=_0x2e420b,_0x2638f9=new _0x1c0178(this[_0x449cfd(0x1bc)]);return _0x2638f9[_0x449cfd(0x1f9)][_0x449cfd(0x1f1)][_0x449cfd(0x1bf)](this[_0x449cfd(0x1e5)])['as'](_0x16c76b),_0x2638f9['on'](_0x449cfd(0x1d2),()=>{const _0x1f7e41=_0x449cfd;this[_0x1f7e41(0x1e5)][_0x1f7e41(0x1ec)](),this[_0x1f7e41(0x1b8)][_0x1f7e41(0x1fc)](''),this[_0x1f7e41(0x1b8)][_0x1f7e41(0x1d5)]();}),_0x2638f9;}[_0x2e420b(0x1d8)](){const _0x41c1be=_0x2e420b,_0x56b374=new _0x20df5b(this[_0x41c1be(0x1bc)]);return _0x56b374[_0x41c1be(0x1ba)][_0x41c1be(0x1ff)](_0x41c1be(0x1b6))['to'](this,_0x41c1be(0x1b6),this,_0x41c1be(0x1f4),this,_0x41c1be(0x201),(_0x4b1b0f,_0x4784c2,_0x5596ae)=>_0x4b1b0f&&!_0x4784c2&&!!_0x5596ae),_0x56b374[_0x41c1be(0x1ba)][_0x41c1be(0x1e9)](_0x41c1be(0x1c6))['to'](this,_0x41c1be(0x1ca)),_0x56b374[_0x41c1be(0x1cd)][_0x41c1be(0x1ff)](_0x41c1be(0x1b6))['to'](this,_0x41c1be(0x1b6),this,_0x41c1be(0x1f4),this,_0x41c1be(0x201),(_0x362065,_0x41d620,_0x565462)=>_0x362065&&!_0x41d620&&!!_0x565462),_0x56b374[_0x41c1be(0x1cd)][_0x41c1be(0x1e9)](_0x41c1be(0x1c6))['to'](this,_0x41c1be(0x1c4)),_0x56b374[_0x41c1be(0x1c0)][_0x41c1be(0x1ff)](_0x41c1be(0x1b6))['to'](this,_0x41c1be(0x1b6),this,_0x41c1be(0x1f4),(_0x89d032,_0x2a7607)=>_0x89d032&&!_0x2a7607),_0x56b374[_0x41c1be(0x1c0)][_0x41c1be(0x1e9)](_0x41c1be(0x1c6))['to'](this,_0x41c1be(0x1b2)),_0x56b374[_0x41c1be(0x1c5)][_0x41c1be(0x1ff)](_0x41c1be(0x1b6))['to'](this,_0x41c1be(0x1f4)),_0x56b374[_0x41c1be(0x1c5)][_0x41c1be(0x1e9)](_0x41c1be(0x1c6))['to'](this,_0x41c1be(0x1da)),_0x56b374;}[_0x2e420b(0x1e7)](){const _0x299a74=_0x2e420b;this[_0x299a74(0x201)]='',this[_0x299a74(0x1f0)]=!0x1,this[_0x299a74(0x1f4)]=!0x0,this[_0x299a74(0x1c8)][_0x299a74(0x1ef)]=!0x0,this[_0x299a74(0x1c7)][_0x299a74(0x1ef)]=!0x0,this[_0x299a74(0x1c8)][_0x299a74(0x1d5)]();}[_0x2e420b(0x1df)](){const _0x323793=_0x2e420b,_0x270edb=this[_0x323793(0x1bc)];this[_0x323793(0x1f4)]=!0x1,this[_0x323793(0x1d4)]='',this[_0x323793(0x1b8)][_0x323793(0x1d6)](),this[_0x323793(0x201)]&&(this[_0x323793(0x1b8)][_0x323793(0x1d1)][_0x323793(0x206)]=_0x17f199(_0x270edb,_0x323793(0x1f7)));}[_0x2e420b(0x1e6)](_0x1ab3c5){const _0x17dec1=_0x2e420b,_0x2845e9=this[_0x17dec1(0x1bc)];this[_0x17dec1(0x1df)](),this[_0x17dec1(0x1f0)]=!0x0,this[_0x17dec1(0x205)][_0x17dec1(0x203)]=_0x1ab3c5||_0x17f199(_0x2845e9,_0x17dec1(0x1c3)),this[_0x17dec1(0x201)]||(this[_0x17dec1(0x1c8)][_0x17dec1(0x1ef)]=!0x1);}}
23
+ const _0x37da47=_0x5dd5;(function(_0x5bcbd2,_0x1e325e){const _0x7acda2=_0x5dd5,_0x397639=_0x5bcbd2();while(!![]){try{const _0x43836d=parseInt(_0x7acda2(0x159))/0x1*(-parseInt(_0x7acda2(0x156))/0x2)+parseInt(_0x7acda2(0x1a1))/0x3*(-parseInt(_0x7acda2(0x1a3))/0x4)+-parseInt(_0x7acda2(0x191))/0x5+-parseInt(_0x7acda2(0x1a8))/0x6*(parseInt(_0x7acda2(0x19b))/0x7)+parseInt(_0x7acda2(0x17a))/0x8+-parseInt(_0x7acda2(0x171))/0x9+parseInt(_0x7acda2(0x16a))/0xa;if(_0x43836d===_0x1e325e)break;else _0x397639['push'](_0x397639['shift']());}catch(_0x6ffd83){_0x397639['push'](_0x397639['shift']());}}}(_0x1b60,0xe46b7));import{FocusTracker as _0x2b7189,KeystrokeHandler as _0x3b5587}from'ckeditor5/src/utils.js';function _0x5dd5(_0x165c87,_0x238d6c){const _0x1b60fb=_0x1b60();return _0x5dd5=function(_0x5dd5ec,_0x5625d6){_0x5dd5ec=_0x5dd5ec-0x154;let _0x2c6dee=_0x1b60fb[_0x5dd5ec];return _0x2c6dee;},_0x5dd5(_0x165c87,_0x238d6c);}import{View as _0x73fc11,FocusCycler as _0x53974e,createLabeledTextarea as _0x3ea067}from'ckeditor5/src/ui.js';import _0x583b36,{AIFormToolbarViewMainActionLabel as _0x8bfd35}from'./aiformtoolbarview.js';function _0x1b60(){const _0x43d030=['search','368123xubpKF','ck-ai-form','reset','Empty\x20history','bindTo','ck-hidden','87ASnLxH','Ask\x20AI\x20to\x20improve\x20generated\x20text','58136BlumRz','clearHistory','focusFirst','label','fire','72aXQYer','isProcessing','render','3282050bNaPfS','handleError','promptView','1xqQjtp','locale','_createHistoryView','errorView','replaceContent','setTemplate','tryAgainEvent','mainAction','copyButtonView','set','clear','listenTo','startProcessing','trim','_promptHistory','finishProcessing','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','42383290jDSYUv','_createPromptView','replaceButton','focus','queryView','prompt','_createToolbar','7215219TomkCp','isVisible','insertContentBelow','delegate','insertButton','submitPrompt','historyGroupView','focusLast','bindTemplate','12860808SXMNvq','keystrokes','REPLACE','AI_ERROR_FAILED','Ask\x20AI\x20to\x20edit\x20or\x20generate','stopButton','shift\x20+\x20tab','submit','focusTracker','tab','isEnabled','high','toolbar','tryAgainButton','contentArea','ck-ai-form-content','div','fieldView','bind','value','element','isError','items','7075265UBEXjr','add','createCollection','chain','_focusables','stopProcessing','execute','focusCycler','text'];_0x1b60=function(){return _0x43d030;};return _0x1b60();}import _0x5e434b from'./aiformcontentarea.js';import _0x62d51f from'./aiformerrorview.js';import _0x261d49 from'./aiformpromptview.js';import _0x20d61d from'./aihistorylistview.js';import _0x7ea62d from'./aihistorylistitemview.js';import _0x2cc38c from'./prompthistory.js';import{getTranslation as _0x946ac6}from'../../utils/common-translations.js';import{escape as _0x22c41e}from'lodash-es';export default class k extends _0x73fc11{constructor(_0x3319f6,_0x1faf5a,_0x37dc70=''){const _0x65f79f=_0x5dd5;super(_0x3319f6),this[_0x65f79f(0x162)](_0x65f79f(0x184),!0x0),this[_0x65f79f(0x162)](_0x65f79f(0x154),!0x1),this[_0x65f79f(0x162)](_0x65f79f(0x16f),''),this[_0x65f79f(0x162)](_0x65f79f(0x18d),''),this[_0x65f79f(0x162)](_0x65f79f(0x18f),!0x1),this[_0x65f79f(0x162)](_0x65f79f(0x160),_0x8bfd35[_0x65f79f(0x17c)]),this[_0x65f79f(0x167)]=new _0x2cc38c(),this[_0x65f79f(0x15c)]=new _0x62d51f(_0x3319f6),this[_0x65f79f(0x188)]=new _0x5e434b(_0x3319f6,_0x37dc70),this[_0x65f79f(0x188)][_0x65f79f(0x18c)](_0x65f79f(0x154))['to'](this),this[_0x65f79f(0x188)][_0x65f79f(0x18c)](_0x65f79f(0x18d))['to'](this),this[_0x65f79f(0x186)]=this[_0x65f79f(0x170)](),this[_0x65f79f(0x186)][_0x65f79f(0x18c)](_0x65f79f(0x160))['to'](this),this[_0x65f79f(0x158)]=this[_0x65f79f(0x16b)](),this[_0x65f79f(0x182)]=new _0x2b7189(),this[_0x65f79f(0x17b)]=new _0x3b5587(),this[_0x65f79f(0x195)]=this[_0x65f79f(0x193)]([this[_0x65f79f(0x188)],this[_0x65f79f(0x188)][_0x65f79f(0x161)],this[_0x65f79f(0x186)],this[_0x65f79f(0x158)]]),this[_0x65f79f(0x198)]=new _0x53974e({'focusables':this[_0x65f79f(0x195)],'focusTracker':this[_0x65f79f(0x182)],'keystrokeHandler':this[_0x65f79f(0x17b)],'actions':{'focusPrevious':_0x65f79f(0x180),'focusNext':_0x65f79f(0x183)}}),this[_0x65f79f(0x198)][_0x65f79f(0x194)](this[_0x65f79f(0x158)][_0x65f79f(0x198)]),this[_0x65f79f(0x158)][_0x65f79f(0x16e)][_0x65f79f(0x18b)][_0x65f79f(0x18c)](_0x65f79f(0x18d))['to'](this,_0x65f79f(0x16f));const _0x386658=this[_0x65f79f(0x179)];this[_0x65f79f(0x15e)]({'tag':_0x65f79f(0x18a),'attributes':{'class':['ck',_0x65f79f(0x19c),_0x1faf5a],'tabindex':'-1'},'children':[{'tag':_0x65f79f(0x18a),'attributes':{'class':['ck',_0x65f79f(0x189)]},'children':[{'tag':_0x65f79f(0x18a),'attributes':{'class':[_0x386658['if'](_0x65f79f(0x18f),_0x65f79f(0x1a0),_0x5d6f78=>!_0x5d6f78)]},'children':[this[_0x65f79f(0x15c)]]},this[_0x65f79f(0x188)],this[_0x65f79f(0x186)],this[_0x65f79f(0x158)]]}]});}[_0x37da47(0x155)](){const _0x306f99=_0x37da47;super[_0x306f99(0x155)](),this[_0x306f99(0x182)][_0x306f99(0x192)](this[_0x306f99(0x188)][_0x306f99(0x18e)]),this[_0x306f99(0x182)][_0x306f99(0x192)](this[_0x306f99(0x188)][_0x306f99(0x161)][_0x306f99(0x18e)]),this[_0x306f99(0x182)][_0x306f99(0x192)](this[_0x306f99(0x186)][_0x306f99(0x18e)]),this[_0x306f99(0x182)][_0x306f99(0x192)](this[_0x306f99(0x158)][_0x306f99(0x18e)]),this[_0x306f99(0x17b)][_0x306f99(0x164)](this[_0x306f99(0x18e)]);}[_0x37da47(0x16d)](_0x15c4ff=0x1){const _0x1dbbae=_0x37da47;-0x1===_0x15c4ff?this[_0x1dbbae(0x198)][_0x1dbbae(0x178)]():this[_0x1dbbae(0x198)][_0x1dbbae(0x1a5)]();}[_0x37da47(0x19d)](){const _0x1360d6=_0x37da47;this[_0x1360d6(0x16f)]='',this[_0x1360d6(0x18d)]='',this[_0x1360d6(0x18f)]=!0x1,this[_0x1360d6(0x158)][_0x1360d6(0x19d)](),this[_0x1360d6(0x188)][_0x1360d6(0x172)]=!0x1,this[_0x1360d6(0x186)][_0x1360d6(0x172)]=!0x1;}[_0x37da47(0x16b)](){const _0xc81931=_0x37da47,_0x5a6d17=this[_0xc81931(0x15a)],_0x592548=new _0x261d49(_0x5a6d17,{'queryView':{'label':_0x946ac6(_0x5a6d17,_0xc81931(0x17e)),'creator':_0x3ea067,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x946ac6(_0x5a6d17,_0xc81931(0x19e)),'secondary':_0x946ac6(_0x5a6d17,_0xc81931(0x169))}}},'filteredView':this[_0xc81931(0x15b)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x592548[_0xc81931(0x18c)](_0xc81931(0x184))['to'](this,_0xc81931(0x184),this,_0xc81931(0x154),(_0x267cb8,_0x17f911)=>_0x267cb8&&!_0x17f911),this[_0xc81931(0x164)](_0x592548,_0xc81931(0x181),(_0x5c25e5,_0x296cb6)=>{const _0x152f73=_0xc81931;this[_0x152f73(0x16f)]=_0x296cb6;const _0x36569a=_0x22c41e(_0x296cb6);this[_0x152f73(0x1a7)](_0x152f73(0x176),_0x36569a),_0x296cb6[_0x152f73(0x166)]()&&this[_0x152f73(0x167)][_0x152f73(0x192)]({'prompt':_0x36569a},0x0);},{'priority':_0xc81931(0x185)}),_0x592548;}[_0x37da47(0x15b)](){const _0x1b885b=_0x37da47,_0x1fd792=new _0x20d61d(this[_0x1b885b(0x15a)]);return _0x1fd792[_0x1b885b(0x177)][_0x1b885b(0x190)][_0x1b885b(0x19f)](this[_0x1b885b(0x167)])['as'](_0x7ea62d),_0x1fd792['on'](_0x1b885b(0x1a4),()=>{const _0x3ce56a=_0x1b885b;this[_0x3ce56a(0x167)][_0x3ce56a(0x163)](),this[_0x3ce56a(0x158)][_0x3ce56a(0x19a)](''),this[_0x3ce56a(0x158)][_0x3ce56a(0x16d)]();}),_0x1fd792;}[_0x37da47(0x170)](){const _0x3922ce=_0x37da47,_0x2c3600=new _0x583b36(this[_0x3922ce(0x15a)]);return _0x2c3600[_0x3922ce(0x16c)][_0x3922ce(0x18c)](_0x3922ce(0x184))['to'](this,_0x3922ce(0x184),this,_0x3922ce(0x154),this,_0x3922ce(0x18d),(_0x543713,_0x2b871e,_0x4057f5)=>_0x543713&&!_0x2b871e&&!!_0x4057f5),_0x2c3600[_0x3922ce(0x16c)][_0x3922ce(0x174)](_0x3922ce(0x197))['to'](this,_0x3922ce(0x15d)),_0x2c3600[_0x3922ce(0x175)][_0x3922ce(0x18c)](_0x3922ce(0x184))['to'](this,_0x3922ce(0x184),this,_0x3922ce(0x154),this,_0x3922ce(0x18d),(_0x4cbb58,_0x476309,_0x4dbc43)=>_0x4cbb58&&!_0x476309&&!!_0x4dbc43),_0x2c3600[_0x3922ce(0x175)][_0x3922ce(0x174)](_0x3922ce(0x197))['to'](this,_0x3922ce(0x173)),_0x2c3600[_0x3922ce(0x187)][_0x3922ce(0x18c)](_0x3922ce(0x184))['to'](this,_0x3922ce(0x184),this,_0x3922ce(0x154),(_0xec6321,_0x59c210)=>_0xec6321&&!_0x59c210),_0x2c3600[_0x3922ce(0x187)][_0x3922ce(0x174)](_0x3922ce(0x197))['to'](this,_0x3922ce(0x15f)),_0x2c3600[_0x3922ce(0x17f)][_0x3922ce(0x18c)](_0x3922ce(0x184))['to'](this,_0x3922ce(0x154)),_0x2c3600[_0x3922ce(0x17f)][_0x3922ce(0x174)](_0x3922ce(0x197))['to'](this,_0x3922ce(0x196)),_0x2c3600;}[_0x37da47(0x165)](){const _0x5358fe=_0x37da47;this[_0x5358fe(0x18d)]='',this[_0x5358fe(0x18f)]=!0x1,this[_0x5358fe(0x154)]=!0x0,this[_0x5358fe(0x188)][_0x5358fe(0x172)]=!0x0,this[_0x5358fe(0x186)][_0x5358fe(0x172)]=!0x0,this[_0x5358fe(0x188)][_0x5358fe(0x16d)]();}[_0x37da47(0x168)](){const _0xcb2104=_0x37da47,_0x38e186=this[_0xcb2104(0x15a)];this[_0xcb2104(0x154)]=!0x1,this[_0xcb2104(0x16f)]='',this[_0xcb2104(0x158)][_0xcb2104(0x19d)](),this[_0xcb2104(0x18d)]&&(this[_0xcb2104(0x158)][_0xcb2104(0x16e)][_0xcb2104(0x1a6)]=_0x946ac6(_0x38e186,_0xcb2104(0x1a2)));}[_0x37da47(0x157)](_0xca7e0e){const _0x443f47=_0x37da47,_0x1098fb=this[_0x443f47(0x15a)];this[_0x443f47(0x168)](),this[_0x443f47(0x18f)]=!0x0,this[_0x443f47(0x15c)][_0x443f47(0x199)]=_0xca7e0e||_0x946ac6(_0x1098fb,_0x443f47(0x17d)),this[_0x443f47(0x18d)]||(this[_0x443f47(0x188)][_0x443f47(0x172)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x473534,_0x3471){const _0x45803e=_0x263b,_0x2d2b9a=_0x473534();while(!![]){try{const _0x409251=parseInt(_0x45803e(0xb2))/0x1*(parseInt(_0x45803e(0xb5))/0x2)+parseInt(_0x45803e(0xb7))/0x3+-parseInt(_0x45803e(0xab))/0x4*(parseInt(_0x45803e(0xb8))/0x5)+-parseInt(_0x45803e(0xb6))/0x6*(-parseInt(_0x45803e(0xb0))/0x7)+parseInt(_0x45803e(0xa8))/0x8+parseInt(_0x45803e(0xaf))/0x9+parseInt(_0x45803e(0xb1))/0xa*(-parseInt(_0x45803e(0xb4))/0xb);if(_0x409251===_0x3471)break;else _0x2d2b9a['push'](_0x2d2b9a['shift']());}catch(_0x3d473d){_0x2d2b9a['push'](_0x2d2b9a['shift']());}}}(_0x39d0,0x6b42d));import{ListItemView as _0x387291,ButtonView as _0x481da4,ButtonLabelView as _0x31f807}from'ckeditor5/src/ui.js';import{unescape as _0x33c5b2}from'lodash-es';export default class hs extends _0x387291{constructor(_0x5e2c3c){const _0x54b7ca=_0x263b;super();const _0x257786=new _0x31f807(),_0x3a6ff7=new _0x481da4(this[_0x54b7ca(0xa9)],_0x257786);this[_0x54b7ca(0xac)][_0x54b7ca(0xad)](_0x3a6ff7),_0x3a6ff7[_0x54b7ca(0xb3)]({'label':_0x5e2c3c[_0x54b7ca(0xa7)],'withText':!0x0}),_0x3a6ff7['on'](_0x54b7ca(0xae),()=>{const _0x2ecf4f=_0x54b7ca;this[_0x2ecf4f(0xaa)](_0x2ecf4f(0xae),{'value':_0x33c5b2(_0x5e2c3c[_0x2ecf4f(0xa7)])});});}}function _0x263b(_0x3832e3,_0x2f26d7){const _0x39d092=_0x39d0();return _0x263b=function(_0x263b5f,_0x129077){_0x263b5f=_0x263b5f-0xa7;let _0x73c925=_0x39d092[_0x263b5f];return _0x73c925;},_0x263b(_0x3832e3,_0x2f26d7);}function _0x39d0(){const _0x146b58=['children','add','execute','5069916lAQKNU','259bkHekw','40DRKWID','6MvObNz','set','2521453WyRpwv','46824TZTohG','109254ugWuuJ','9315CmzxNg','9625eOhlhZ','prompt','3777992ukrdtC','locale','fire','1032UWYqsv'];_0x39d0=function(){return _0x146b58;};return _0x39d0();}
23
+ (function(_0x746f87,_0x30f9b6){const _0x2f19b1=_0x172f,_0x3dc8cb=_0x746f87();while(!![]){try{const _0x15100c=-parseInt(_0x2f19b1(0x1bc))/0x1*(parseInt(_0x2f19b1(0x1cc))/0x2)+-parseInt(_0x2f19b1(0x1c0))/0x3*(-parseInt(_0x2f19b1(0x1c3))/0x4)+parseInt(_0x2f19b1(0x1c5))/0x5+parseInt(_0x2f19b1(0x1cd))/0x6*(-parseInt(_0x2f19b1(0x1c6))/0x7)+parseInt(_0x2f19b1(0x1c4))/0x8+-parseInt(_0x2f19b1(0x1c2))/0x9+-parseInt(_0x2f19b1(0x1be))/0xa*(-parseInt(_0x2f19b1(0x1ca))/0xb);if(_0x15100c===_0x30f9b6)break;else _0x3dc8cb['push'](_0x3dc8cb['shift']());}catch(_0x5593b0){_0x3dc8cb['push'](_0x3dc8cb['shift']());}}}(_0x23a7,0x78c2d));function _0x172f(_0x188c90,_0x449e48){const _0x23a7cc=_0x23a7();return _0x172f=function(_0x172fad,_0x3257e5){_0x172fad=_0x172fad-0x1bc;let _0x5dd5c1=_0x23a7cc[_0x172fad];return _0x5dd5c1;},_0x172f(_0x188c90,_0x449e48);}function _0x23a7(){const _0x42f3ff=['6RFOdHp','fire','4185531XSdfDH','1244292PjNkQs','1417160IvHgIy','4020680bKsEEx','3248378AIUvoe','children','execute','prompt','22RVvYEP','set','1674tMKcar','12DqEoWx','337OIXnfH','add','2832230JMSKBX','locale'];_0x23a7=function(){return _0x42f3ff;};return _0x23a7();}import{ListItemView as _0x56e999,ButtonView as _0x35e714,ButtonLabelView as _0x24687d}from'ckeditor5/src/ui.js';import{unescape as _0x409228}from'lodash-es';export default class hs extends _0x56e999{constructor(_0x27f4ec){const _0x1ef327=_0x172f;super();const _0x1a163e=new _0x24687d(),_0x85213a=new _0x35e714(this[_0x1ef327(0x1bf)],_0x1a163e);this[_0x1ef327(0x1c7)][_0x1ef327(0x1bd)](_0x85213a),_0x85213a[_0x1ef327(0x1cb)]({'label':_0x27f4ec[_0x1ef327(0x1c9)],'withText':!0x0}),_0x85213a['on'](_0x1ef327(0x1c8),()=>{const _0x28d456=_0x1ef327;this[_0x28d456(0x1c1)](_0x28d456(0x1c8),{'value':_0x409228(_0x27f4ec[_0x28d456(0x1c9)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1752(_0x4b18f2,_0x5d1da4){const _0x18e6e0=_0x18e6();return _0x1752=function(_0x1752ec,_0x2d4bac){_0x1752ec=_0x1752ec-0x1e7;let _0x443e9d=_0x18e6e0[_0x1752ec];return _0x443e9d;},_0x1752(_0x4b18f2,_0x5d1da4);}const _0x57620f=_0x1752;(function(_0x1984f9,_0x422224){const _0x158aba=_0x1752,_0x56e441=_0x1984f9();while(!![]){try{const _0x45aa95=parseInt(_0x158aba(0x1e7))/0x1*(parseInt(_0x158aba(0x1f2))/0x2)+-parseInt(_0x158aba(0x1f0))/0x3*(-parseInt(_0x158aba(0x203))/0x4)+parseInt(_0x158aba(0x1f3))/0x5+parseInt(_0x158aba(0x1ea))/0x6*(parseInt(_0x158aba(0x200))/0x7)+parseInt(_0x158aba(0x1f1))/0x8*(parseInt(_0x158aba(0x1ee))/0x9)+-parseInt(_0x158aba(0x1eb))/0xa*(-parseInt(_0x158aba(0x1e8))/0xb)+-parseInt(_0x158aba(0x1fd))/0xc;if(_0x45aa95===_0x422224)break;else _0x56e441['push'](_0x56e441['shift']());}catch(_0x5e8c6c){_0x56e441['push'](_0x56e441['shift']());}}}(_0x18e6,0xa6d88));import{ListView as _0x72f1e5,ListItemGroupView as _0x334bf7,ButtonView as _0x4ca1ce}from'ckeditor5/src/ui.js';import{getTranslation as _0x3afdd4}from'../../utils/common-translations.js';export default class rs extends _0x72f1e5{constructor(_0x592632){const _0x4414a2=_0x1752;super(_0x592632),this[_0x4414a2(0x1ec)]=this[_0x4414a2(0x1ef)](),this[_0x4414a2(0x1fc)]=new _0x334bf7(),this[_0x4414a2(0x1fc)][_0x4414a2(0x1fe)][_0x4414a2(0x1f7)](this[_0x4414a2(0x1ec)],0x1),this[_0x4414a2(0x1fc)][_0x4414a2(0x1f6)]=_0x3afdd4(_0x592632,_0x4414a2(0x202)),this[_0x4414a2(0x1fc)][_0x4414a2(0x201)][_0x4414a2(0x1fa)](_0x4414a2(0x1fb))['to'](this),this[_0x4414a2(0x201)][_0x4414a2(0x1f7)](this[_0x4414a2(0x1fc)]);}[_0x57620f(0x1f5)](){const _0x35565b=_0x57620f;let _0xc2862=0x0;for(const _0x54b8a3 of this[_0x35565b(0x201)])_0xc2862+=_0x54b8a3[_0x35565b(0x201)][_0x35565b(0x1e9)];return{'resultsCount':_0xc2862,'totalItemsCount':_0xc2862};}[_0x57620f(0x1ef)](){const _0x3d36ab=_0x57620f,_0x205fb2=this[_0x3d36ab(0x1ff)],_0x17851f=new _0x4ca1ce(this[_0x3d36ab(0x1ff)]);return _0x17851f[_0x3d36ab(0x1ed)]({'label':'('+_0x3afdd4(_0x205fb2,_0x3d36ab(0x1f8))+')','withText':!0x0}),_0x17851f['on'](_0x3d36ab(0x1fb),()=>this[_0x3d36ab(0x1f4)](_0x3d36ab(0x1f9))),_0x17851f;}}function _0x18e6(){const _0x17fc34=['172330CLASCI','clearHistoryButton','set','6992631mWleTg','_createClearHistoryButton','334455JtoBQQ','8brAhnp','466794FVXyqx','75475XTJWos','fire','filter','label','add','Clear','clearHistory','delegate','execute','historyGroupView','33086460kAvFry','children','locale','56Cwxocc','items','Prompt\x20history','20LSHTXU','4dvYbkZ','22OQsSBc','length','842304mCLbdo'];_0x18e6=function(){return _0x17fc34;};return _0x18e6();}
23
+ const _0x12ad0d=_0x24db;(function(_0x3a9a46,_0x3416ff){const _0x1365b5=_0x24db,_0x258672=_0x3a9a46();while(!![]){try{const _0x50ff9e=-parseInt(_0x1365b5(0x80))/0x1+-parseInt(_0x1365b5(0x8a))/0x2+-parseInt(_0x1365b5(0x96))/0x3+-parseInt(_0x1365b5(0x8f))/0x4*(-parseInt(_0x1365b5(0x89))/0x5)+-parseInt(_0x1365b5(0x90))/0x6+parseInt(_0x1365b5(0x8e))/0x7*(-parseInt(_0x1365b5(0x94))/0x8)+-parseInt(_0x1365b5(0x84))/0x9*(-parseInt(_0x1365b5(0x9a))/0xa);if(_0x50ff9e===_0x3416ff)break;else _0x258672['push'](_0x258672['shift']());}catch(_0xc12af9){_0x258672['push'](_0x258672['shift']());}}}(_0x57a7,0x2cda2));import{ListView as _0x4014bc,ListItemGroupView as _0x62199b,ButtonView as _0x58851a}from'ckeditor5/src/ui.js';import{getTranslation as _0x5d16c9}from'../../utils/common-translations.js';function _0x24db(_0x519698,_0x1b4f6a){const _0x57a756=_0x57a7();return _0x24db=function(_0x24db2c,_0x5ed452){_0x24db2c=_0x24db2c-0x80;let _0x5e69a1=_0x57a756[_0x24db2c];return _0x5e69a1;},_0x24db(_0x519698,_0x1b4f6a);}export default class rs extends _0x4014bc{constructor(_0x2b0b16){const _0x4c2c04=_0x24db;super(_0x2b0b16),this[_0x4c2c04(0x97)]=this[_0x4c2c04(0x93)](),this[_0x4c2c04(0x98)]=new _0x62199b(),this[_0x4c2c04(0x98)][_0x4c2c04(0x8b)][_0x4c2c04(0x83)](this[_0x4c2c04(0x97)],0x1),this[_0x4c2c04(0x98)][_0x4c2c04(0x87)]=_0x5d16c9(_0x2b0b16,_0x4c2c04(0x88)),this[_0x4c2c04(0x98)][_0x4c2c04(0x82)][_0x4c2c04(0x91)](_0x4c2c04(0x85))['to'](this),this[_0x4c2c04(0x82)][_0x4c2c04(0x83)](this[_0x4c2c04(0x98)]);}[_0x12ad0d(0x81)](){const _0x3bb65c=_0x12ad0d;let _0x452a2=0x0;for(const _0x17b33a of this[_0x3bb65c(0x82)])_0x452a2+=_0x17b33a[_0x3bb65c(0x82)][_0x3bb65c(0x95)];return{'resultsCount':_0x452a2,'totalItemsCount':_0x452a2};}[_0x12ad0d(0x93)](){const _0x331034=_0x12ad0d,_0xfdbf45=this[_0x331034(0x8d)],_0x1a92e0=new _0x58851a(this[_0x331034(0x8d)]);return _0x1a92e0[_0x331034(0x99)]({'label':'('+_0x5d16c9(_0xfdbf45,_0x331034(0x8c))+')','withText':!0x0}),_0x1a92e0['on'](_0x331034(0x85),()=>this[_0x331034(0x86)](_0x331034(0x92))),_0x1a92e0;}}function _0x57a7(){const _0x5b067b=['370SmGnKC','419118OjFZiM','children','Clear','locale','96817SbQbwK','8212gTLNrA','1212900PrkmEZ','delegate','clearHistory','_createClearHistoryButton','32kbERAb','length','401976PXGCcP','clearHistoryButton','historyGroupView','set','1137230cZzKVC','276967EMkkks','filter','items','add','72nQCmqq','execute','fire','label','Prompt\x20history'];_0x57a7=function(){return _0x5b067b;};return _0x57a7();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a2fe0=_0x29f0;(function(_0x852c50,_0x54784e){const _0x444279=_0x29f0,_0x402487=_0x852c50();while(!![]){try{const _0x342408=parseInt(_0x444279(0x1ca))/0x1+parseInt(_0x444279(0x1c3))/0x2+-parseInt(_0x444279(0x1b7))/0x3+-parseInt(_0x444279(0x1c6))/0x4*(-parseInt(_0x444279(0x1bc))/0x5)+-parseInt(_0x444279(0x1c8))/0x6+-parseInt(_0x444279(0x1c9))/0x7+-parseInt(_0x444279(0x1c1))/0x8;if(_0x342408===_0x54784e)break;else _0x402487['push'](_0x402487['shift']());}catch(_0x227c2e){_0x402487['push'](_0x402487['shift']());}}}(_0x21cb,0x531b6));import{Collection as _0x153d80}from'ckeditor5/src/utils.js';const cs=_0x1a2fe0(0x1b8);export default class os extends _0x153d80{constructor(){const _0xd74a29=_0x1a2fe0;super(),this[_0xd74a29(0x1c5)](),this['on'](_0xd74a29(0x1b3),(_0x35fda0,_0x210dd9)=>{const _0x9020db=_0xd74a29,_0x21f3ca=Ss(_0x210dd9[_0x9020db(0x1c0)]);for(const _0x269849 of this)if(_0x269849!=_0x210dd9&&Ss(_0x269849[_0x9020db(0x1c0)])===_0x21f3ca){this[_0x9020db(0x1b9)](_0x269849);break;}this[_0x9020db(0x1c7)]>0x14&&this[_0x9020db(0x1b9)](this[_0x9020db(0x1c2)]),this[_0x9020db(0x1bb)]();}),this['on'](_0xd74a29(0x1b9),()=>{const _0x275cc7=_0xd74a29;this[_0x275cc7(0x1bb)]();});}[_0x1a2fe0(0x1c5)](){const _0x1a0543=_0x1a2fe0,_0x5abc60=sessionStorage[_0x1a0543(0x1ba)](cs)||'[]';this[_0x1a0543(0x1bd)](JSON[_0x1a0543(0x1b6)](_0x5abc60));}[_0x1a2fe0(0x1bb)](){const _0x3fac54=_0x1a2fe0;sessionStorage[_0x3fac54(0x1bf)](cs,JSON[_0x3fac54(0x1b4)](this[_0x3fac54(0x1be)](_0x4a88c9=>_0x4a88c9)));}}function _0x29f0(_0x1946ab,_0x1422eb){const _0x21cbe7=_0x21cb();return _0x29f0=function(_0x29f04f,_0x118c78){_0x29f04f=_0x29f04f-0x1b3;let _0xce1372=_0x21cbe7[_0x29f04f];return _0xce1372;},_0x29f0(_0x1946ab,_0x1422eb);}function _0x21cb(){const _0x5c4ae8=['_loadFromSessionStorage','1059268MoMBGF','length','1943976nrjlDb','2103724NvlOGd','423262NWHvOZ','add','stringify','trim','parse','704781sOwgCV','CKEditor/AIFormView/PromptHistory','remove','getItem','_saveToSessionStorage','10VWVapa','addMany','map','setItem','prompt','117352eaYXLp','last','523268ZYqjVK','toLowerCase'];_0x21cb=function(){return _0x5c4ae8;};return _0x21cb();}function Ss(_0x62c44){const _0x4c40ba=_0x1a2fe0;return _0x62c44[_0x4c40ba(0x1c4)]()[_0x4c40ba(0x1b5)]();}
23
+ function _0x27bf(){const _0x24a8f0=['2887324pJuJsr','_loadFromSessionStorage','trim','stringify','length','prompt','314920ihcwES','36ljfrxB','add','getItem','last','map','1196199yoWxtS','_saveToSessionStorage','remove','2114888CXomvw','parse','toLowerCase','setItem','349014oTzMoH','420770RgKtHf','1201790GVhtMK','addMany','CKEditor/AIFormView/PromptHistory','105vEmxPq'];_0x27bf=function(){return _0x24a8f0;};return _0x27bf();}const _0x18a079=_0x5409;(function(_0x4f7ab2,_0xafac8e){const _0x2ccee8=_0x5409,_0x161399=_0x4f7ab2();while(!![]){try{const _0x65c875=parseInt(_0x2ccee8(0x182))/0x1+parseInt(_0x2ccee8(0x17d))/0x2+-parseInt(_0x2ccee8(0x17a))/0x3+parseInt(_0x2ccee8(0x187))/0x4+-parseInt(_0x2ccee8(0x183))/0x5+parseInt(_0x2ccee8(0x181))/0x6*(-parseInt(_0x2ccee8(0x186))/0x7)+-parseInt(_0x2ccee8(0x18d))/0x8*(parseInt(_0x2ccee8(0x18e))/0x9);if(_0x65c875===_0xafac8e)break;else _0x161399['push'](_0x161399['shift']());}catch(_0x87fe04){_0x161399['push'](_0x161399['shift']());}}}(_0x27bf,0x81a0f));import{Collection as _0x29ec9f}from'ckeditor5/src/utils.js';const cs=_0x18a079(0x185);export default class os extends _0x29ec9f{constructor(){const _0x24614d=_0x18a079;super(),this[_0x24614d(0x188)](),this['on'](_0x24614d(0x18f),(_0x142c2a,_0x39e0bb)=>{const _0x515144=_0x24614d,_0x10e7da=Ss(_0x39e0bb[_0x515144(0x18c)]);for(const _0x47c280 of this)if(_0x47c280!=_0x39e0bb&&Ss(_0x47c280[_0x515144(0x18c)])===_0x10e7da){this[_0x515144(0x17c)](_0x47c280);break;}this[_0x515144(0x18b)]>0x14&&this[_0x515144(0x17c)](this[_0x515144(0x191)]),this[_0x515144(0x17b)]();}),this['on'](_0x24614d(0x17c),()=>{const _0x32d1c5=_0x24614d;this[_0x32d1c5(0x17b)]();});}[_0x18a079(0x188)](){const _0xe588dd=_0x18a079,_0x2c8644=sessionStorage[_0xe588dd(0x190)](cs)||'[]';this[_0xe588dd(0x184)](JSON[_0xe588dd(0x17e)](_0x2c8644));}[_0x18a079(0x17b)](){const _0x253e74=_0x18a079;sessionStorage[_0x253e74(0x180)](cs,JSON[_0x253e74(0x18a)](this[_0x253e74(0x179)](_0xbbac8f=>_0xbbac8f)));}}function _0x5409(_0x2384a6,_0x3e1c75){const _0x27bfa8=_0x27bf();return _0x5409=function(_0x5409d7,_0x19d423){_0x5409d7=_0x5409d7-0x179;let _0x429eac=_0x27bfa8[_0x5409d7];return _0x429eac;},_0x5409(_0x2384a6,_0x3e1c75);}function Ss(_0x34c886){const _0x57793b=_0x18a079;return _0x34c886[_0x57793b(0x17f)]()[_0x57793b(0x189)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x10e913=_0x480e;(function(_0x47f452,_0x62017b){const _0x3c7adb=_0x480e,_0x2303a3=_0x47f452();while(!![]){try{const _0xfe62ed=-parseInt(_0x3c7adb(0xe9))/0x1*(-parseInt(_0x3c7adb(0xf3))/0x2)+-parseInt(_0x3c7adb(0xfb))/0x3+-parseInt(_0x3c7adb(0xe8))/0x4*(-parseInt(_0x3c7adb(0xf1))/0x5)+-parseInt(_0x3c7adb(0x107))/0x6+-parseInt(_0x3c7adb(0x109))/0x7+-parseInt(_0x3c7adb(0xf7))/0x8*(parseInt(_0x3c7adb(0x10b))/0x9)+-parseInt(_0x3c7adb(0xe7))/0xa*(-parseInt(_0x3c7adb(0xee))/0xb);if(_0xfe62ed===_0x62017b)break;else _0x2303a3['push'](_0x2303a3['shift']());}catch(_0x380a84){_0x2303a3['push'](_0x2303a3['shift']());}}}(_0x5d21,0xce4b4));function _0x5d21(){const _0x35496b=['getSelectedBlocks','getFirstRange','set','name','refresh','isEnabled','_commandDefinitions','add','document','2730234RcCMGf','plugins','10401097scjeDv','getItems','3951nEKBln','isCollapsed','values','custom','ai.aiAssistant.disabledElements','get','length','isEmpty','element','61870deKBjF','50404htMwNY','107gkzxSt','model','showUI','requiresContent','editor','2849qtDvKx','enabledCommandsIds','from','535oiMqqJ','change:isEnabled','22856RqPIat','includes','change:_hasContext','config','11384YxNUmY','selection','execute','getRanges','2288847nKGqpZ','hasContent','_hasContext'];_0x5d21=function(){return _0x35496b;};return _0x5d21();}import{Command as _0xc89f15}from'ckeditor5/src/core.js';function _0x480e(_0x56a328,_0x4bf9b7){const _0x5d217c=_0x5d21();return _0x480e=function(_0x480e3b,_0x2869d9){_0x480e3b=_0x480e3b-0xe1;let _0xce3329=_0x5d217c[_0x480e3b];return _0xce3329;},_0x480e(_0x56a328,_0x4bf9b7);}import _0x31883f from'../aiassistantui.js';export default class j extends _0xc89f15{constructor(_0x129222,_0x51e3dd){const _0x273483=_0x480e;super(_0x129222),this[_0x273483(0x104)]=_0x51e3dd,this[_0x273483(0x100)](_0x273483(0xef),[]),this['on'](_0x273483(0xf5),(_0xdcda72,_0x2c8590,_0x188bce)=>{const _0x6a52c1=_0x273483;this[_0x6a52c1(0x103)]&&(this[_0x6a52c1(0xef)]=G(this[_0x6a52c1(0x104)],_0x188bce));}),this[_0x273483(0x100)](_0x273483(0xfd),!0x1),this['on'](_0x273483(0xf2),(_0x252668,_0x3ae4ce,_0x4b54a7)=>{const _0x171505=_0x273483;this[_0x171505(0xef)]=_0x4b54a7?G(this[_0x171505(0x104)],this[_0x171505(0xfd)]):[];});}[_0x10e913(0x102)](){const _0x1ee26e=_0x10e913,_0x22e758=this[_0x1ee26e(0xed)][_0x1ee26e(0xea)];this[_0x1ee26e(0xfd)]=function(_0x3c0f1d){const _0x565d98=_0x1ee26e,_0xbc9e80=_0x3c0f1d[_0x565d98(0x106)][_0x565d98(0xf8)];return _0xbc9e80[_0x565d98(0x10c)]?0x0!==[..._0xbc9e80[_0x565d98(0xfe)]()][_0x565d98(0xe4)]&&![..._0xbc9e80[_0x565d98(0xfe)]()][0x0][_0x565d98(0xe5)]:!!_0x3c0f1d[_0x565d98(0xfc)](_0xbc9e80[_0x565d98(0xff)]());}(_0x22e758);const _0x6b25db=_0x22e758[_0x1ee26e(0x106)][_0x1ee26e(0xf8)],_0x25ca98=this[_0x1ee26e(0xed)][_0x1ee26e(0xf6)][_0x1ee26e(0xe3)](_0x1ee26e(0xe2));for(const _0x4a99cb of _0x6b25db[_0x1ee26e(0xfa)]())for(const _0x5050a3 of _0x4a99cb[_0x1ee26e(0x10a)]())if(_0x5050a3['is'](_0x1ee26e(0xe6))&&_0x25ca98[_0x1ee26e(0xf4)](_0x5050a3[_0x1ee26e(0x101)]))return void(this[_0x1ee26e(0x103)]=!0x1);this[_0x1ee26e(0x103)]=!0x0;}[_0x10e913(0xf9)](_0x6e5cfb='',_0x5dc92b='',_0x5e4b57=_0x10e913(0xe1)){const _0x1a0b58=_0x10e913;this[_0x1a0b58(0xed)][_0x1a0b58(0x108)][_0x1a0b58(0xe3)](_0x31883f)[_0x1a0b58(0xeb)](_0x6e5cfb,_0x5dc92b,_0x5e4b57);}}function G(_0x4e9ec0,_0x357709){const _0x5dc361=_0x10e913,_0x5f08bc=new Set();for(const _0x5162f4 of _0x4e9ec0[_0x5dc361(0x10d)]())(_0x357709||!0x1===_0x5162f4[_0x5dc361(0xec)])&&_0x5f08bc[_0x5dc361(0x105)](_0x5162f4['id']);return Array[_0x5dc361(0xf0)](_0x5f08bc);}
23
+ const _0x26bc62=_0x560b;(function(_0x46893c,_0x159540){const _0x1ba462=_0x560b,_0x36ae84=_0x46893c();while(!![]){try{const _0x427882=-parseInt(_0x1ba462(0xcf))/0x1+-parseInt(_0x1ba462(0xd1))/0x2+parseInt(_0x1ba462(0xc4))/0x3+parseInt(_0x1ba462(0xc9))/0x4+-parseInt(_0x1ba462(0xda))/0x5*(-parseInt(_0x1ba462(0xc0))/0x6)+parseInt(_0x1ba462(0xc2))/0x7+-parseInt(_0x1ba462(0xb8))/0x8*(-parseInt(_0x1ba462(0xd4))/0x9);if(_0x427882===_0x159540)break;else _0x36ae84['push'](_0x36ae84['shift']());}catch(_0xe9a9e6){_0x36ae84['push'](_0x36ae84['shift']());}}}(_0x4731,0xd9d0e));import{Command as _0x342a8b}from'ckeditor5/src/core.js';import _0x2f4c92 from'../aiassistantui.js';function _0x4731(){const _0x3f7f79=['ai.aiAssistant.disabledElements','values','showUI','name','1749961Ytdjya','change:_hasContext','2657720whmpIj','includes','enabledCommandsIds','1692693dCVeOH','getItems','editor','element','requiresContent','hasContent','5jXbBtL','from','getSelectedBlocks','getFirstRange','execute','isEnabled','isCollapsed','change:isEnabled','_commandDefinitions','16KKHKXH','get','isEmpty','config','_hasContext','model','set','add','9053556oqriPz','plugins','11245108FtIHLC','length','703197FoTqTe','refresh','custom','selection','getRanges','980288TXLYMb','document'];_0x4731=function(){return _0x3f7f79;};return _0x4731();}export default class j extends _0x342a8b{constructor(_0x1e968a,_0x507dbb){const _0x2945ce=_0x560b;super(_0x1e968a),this[_0x2945ce(0xb7)]=_0x507dbb,this[_0x2945ce(0xbe)](_0x2945ce(0xd3),[]),this['on'](_0x2945ce(0xd0),(_0x3d7f02,_0x29711e,_0xe9dd4d)=>{const _0x46d3d5=_0x2945ce;this[_0x46d3d5(0xb4)]&&(this[_0x46d3d5(0xd3)]=G(this[_0x46d3d5(0xb7)],_0xe9dd4d));}),this[_0x2945ce(0xbe)](_0x2945ce(0xbc),!0x1),this['on'](_0x2945ce(0xb6),(_0x490f31,_0x21cf8f,_0x5b7050)=>{const _0x369aa0=_0x2945ce;this[_0x369aa0(0xd3)]=_0x5b7050?G(this[_0x369aa0(0xb7)],this[_0x369aa0(0xbc)]):[];});}[_0x26bc62(0xc5)](){const _0xcd5f96=_0x26bc62,_0x1e128a=this[_0xcd5f96(0xd6)][_0xcd5f96(0xbd)];this[_0xcd5f96(0xbc)]=function(_0x1c62cc){const _0x26e9fc=_0xcd5f96,_0xb34673=_0x1c62cc[_0x26e9fc(0xca)][_0x26e9fc(0xc7)];return _0xb34673[_0x26e9fc(0xb5)]?0x0!==[..._0xb34673[_0x26e9fc(0xdc)]()][_0x26e9fc(0xc3)]&&![..._0xb34673[_0x26e9fc(0xdc)]()][0x0][_0x26e9fc(0xba)]:!!_0x1c62cc[_0x26e9fc(0xd9)](_0xb34673[_0x26e9fc(0xdd)]());}(_0x1e128a);const _0x1ec09e=_0x1e128a[_0xcd5f96(0xca)][_0xcd5f96(0xc7)],_0x569c41=this[_0xcd5f96(0xd6)][_0xcd5f96(0xbb)][_0xcd5f96(0xb9)](_0xcd5f96(0xcb));for(const _0x577cb8 of _0x1ec09e[_0xcd5f96(0xc8)]())for(const _0xbf3900 of _0x577cb8[_0xcd5f96(0xd5)]())if(_0xbf3900['is'](_0xcd5f96(0xd7))&&_0x569c41[_0xcd5f96(0xd2)](_0xbf3900[_0xcd5f96(0xce)]))return void(this[_0xcd5f96(0xb4)]=!0x1);this[_0xcd5f96(0xb4)]=!0x0;}[_0x26bc62(0xb3)](_0x2d09e8='',_0x1d3fd6='',_0x3b633e=_0x26bc62(0xc6)){const _0x4f04f8=_0x26bc62;this[_0x4f04f8(0xd6)][_0x4f04f8(0xc1)][_0x4f04f8(0xb9)](_0x2f4c92)[_0x4f04f8(0xcd)](_0x2d09e8,_0x1d3fd6,_0x3b633e);}}function _0x560b(_0x5ba33b,_0x5b3818){const _0x473122=_0x4731();return _0x560b=function(_0x560b56,_0x4ccc16){_0x560b56=_0x560b56-0xb3;let _0x110508=_0x473122[_0x560b56];return _0x110508;},_0x560b(_0x5ba33b,_0x5b3818);}function G(_0x114dea,_0x107ffa){const _0x468c37=_0x26bc62,_0x45e6be=new Set();for(const _0x4aeb04 of _0x114dea[_0x468c37(0xcc)]())(_0x107ffa||!0x1===_0x4aeb04[_0x468c37(0xd8)])&&_0x45e6be[_0x468c37(0xbf)](_0x4aeb04['id']);return Array[_0x468c37(0xdb)](_0x45e6be);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x383505,_0x4409a0,_0x192419){const t=_0x383505['t'];switch(_0x4409a0){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x192419);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x192419);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x192419);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x4409a0;}}
23
+ export function getTranslation(_0xe4f2e7,_0x8e6e85,_0xaaccd0){const t=_0xe4f2e7['t'];switch(_0x8e6e85){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0xaaccd0);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0xaaccd0);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0xaaccd0);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x8e6e85;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x461d17,_0x705d4c){const _0x2ab925=(0x0,_0x705d4c['t'])('Other');return _0x461d17['length']?'groupId'in _0x461d17[0x0]?_0x461d17:[{'groupId':'_ungrouppedCommands','groupLabel':_0x2ab925,'order':0x1/0x0,'commands':_0x461d17}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x2ab925,'order':0x1/0x0,'commands':[]}];}
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x45c5c1,_0x597167){const _0x4f1c9d=(0x0,_0x597167['t'])('Other');return _0x45c5c1['length']?'groupId'in _0x45c5c1[0x0]?_0x45c5c1:[{'groupId':'_ungrouppedCommands','groupLabel':_0x4f1c9d,'order':0x1/0x0,'commands':_0x45c5c1}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x4f1c9d,'order':0x1/0x0,'commands':[]}];}