@ckeditor/ckeditor5-ai 40.0.0 → 40.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/LICENSE.md +2 -2
  2. package/build/ai.js +2 -2
  3. package/build/translations/af.js +1 -1
  4. package/build/translations/ar.js +1 -1
  5. package/build/translations/bg.js +1 -1
  6. package/build/translations/bn.js +1 -1
  7. package/build/translations/bs.js +1 -1
  8. package/build/translations/ca.js +1 -1
  9. package/build/translations/cs.js +1 -1
  10. package/build/translations/da.js +1 -1
  11. package/build/translations/de-ch.js +1 -1
  12. package/build/translations/de.js +1 -1
  13. package/build/translations/el.js +1 -1
  14. package/build/translations/en-au.js +1 -1
  15. package/build/translations/es-co.js +1 -1
  16. package/build/translations/es.js +1 -1
  17. package/build/translations/et.js +1 -1
  18. package/build/translations/fa.js +1 -1
  19. package/build/translations/fi.js +1 -1
  20. package/build/translations/fr.js +1 -1
  21. package/build/translations/gl.js +1 -1
  22. package/build/translations/he.js +1 -1
  23. package/build/translations/hi.js +1 -1
  24. package/build/translations/hr.js +1 -1
  25. package/build/translations/hu.js +1 -1
  26. package/build/translations/id.js +1 -1
  27. package/build/translations/it.js +1 -1
  28. package/build/translations/ja.js +1 -1
  29. package/build/translations/jv.js +1 -1
  30. package/build/translations/ko.js +1 -1
  31. package/build/translations/lt.js +1 -1
  32. package/build/translations/lv.js +1 -1
  33. package/build/translations/ms.js +1 -1
  34. package/build/translations/nl.js +1 -1
  35. package/build/translations/no.js +1 -1
  36. package/build/translations/pl.js +1 -1
  37. package/build/translations/pt-br.js +1 -1
  38. package/build/translations/pt.js +1 -1
  39. package/build/translations/ro.js +1 -1
  40. package/build/translations/ru.js +1 -1
  41. package/build/translations/sk.js +1 -1
  42. package/build/translations/sr-latn.js +1 -1
  43. package/build/translations/sr.js +1 -1
  44. package/build/translations/sv.js +1 -1
  45. package/build/translations/th.js +1 -1
  46. package/build/translations/tk.js +1 -1
  47. package/build/translations/tr.js +1 -1
  48. package/build/translations/ug.js +1 -1
  49. package/build/translations/uk.js +1 -1
  50. package/build/translations/ur.js +1 -1
  51. package/build/translations/uz.js +1 -0
  52. package/build/translations/vi.js +1 -1
  53. package/build/translations/zh-cn.js +1 -1
  54. package/build/translations/zh.js +1 -1
  55. package/lang/contexts.json +1 -0
  56. package/lang/translations/af.po +60 -16
  57. package/lang/translations/ar.po +60 -16
  58. package/lang/translations/bg.po +60 -16
  59. package/lang/translations/bn.po +60 -16
  60. package/lang/translations/bs.po +60 -16
  61. package/lang/translations/ca.po +60 -16
  62. package/lang/translations/cs.po +60 -16
  63. package/lang/translations/da.po +60 -16
  64. package/lang/translations/de-ch.po +60 -16
  65. package/lang/translations/de.po +60 -16
  66. package/lang/translations/el.po +60 -16
  67. package/lang/translations/en-au.po +60 -16
  68. package/lang/translations/en.po +60 -16
  69. package/lang/translations/es-co.po +60 -16
  70. package/lang/translations/es.po +60 -16
  71. package/lang/translations/et.po +60 -16
  72. package/lang/translations/fa.po +60 -16
  73. package/lang/translations/fi.po +60 -16
  74. package/lang/translations/fr.po +60 -16
  75. package/lang/translations/gl.po +60 -16
  76. package/lang/translations/he.po +60 -16
  77. package/lang/translations/hi.po +60 -16
  78. package/lang/translations/hr.po +93 -49
  79. package/lang/translations/hu.po +60 -16
  80. package/lang/translations/id.po +60 -16
  81. package/lang/translations/it.po +60 -16
  82. package/lang/translations/ja.po +60 -16
  83. package/lang/translations/jv.po +60 -16
  84. package/lang/translations/ko.po +60 -16
  85. package/lang/translations/lt.po +60 -16
  86. package/lang/translations/lv.po +60 -16
  87. package/lang/translations/ms.po +60 -16
  88. package/lang/translations/nl.po +60 -16
  89. package/lang/translations/no.po +60 -16
  90. package/lang/translations/pl.po +60 -16
  91. package/lang/translations/pt-br.po +60 -16
  92. package/lang/translations/pt.po +60 -16
  93. package/lang/translations/ro.po +60 -16
  94. package/lang/translations/ru.po +60 -16
  95. package/lang/translations/sk.po +60 -16
  96. package/lang/translations/sr-latn.po +60 -16
  97. package/lang/translations/sr.po +60 -16
  98. package/lang/translations/sv.po +60 -16
  99. package/lang/translations/th.po +60 -16
  100. package/lang/translations/tk.po +60 -16
  101. package/lang/translations/tr.po +60 -16
  102. package/lang/translations/ug.po +94 -50
  103. package/lang/translations/uk.po +60 -16
  104. package/lang/translations/ur.po +60 -16
  105. package/lang/translations/uz.po +226 -0
  106. package/lang/translations/vi.po +60 -16
  107. package/lang/translations/zh-cn.po +60 -16
  108. package/lang/translations/zh.po +60 -16
  109. package/package.json +3 -3
  110. package/src/aiassistant.d.ts +458 -419
  111. package/src/aiassistant.js +1 -1
  112. package/src/aiassistantediting.d.ts +45 -45
  113. package/src/aiassistantediting.js +1 -1
  114. package/src/aiassistantui.d.ts +44 -46
  115. package/src/aiassistantui.js +1 -1
  116. package/src/aiconnector.d.ts +45 -44
  117. package/src/aiconnector.js +1 -1
  118. package/src/augmentation.d.ts +26 -26
  119. package/src/index.d.ts +9 -9
  120. package/src/ui/aiassistantcontroller.d.ts +96 -59
  121. package/src/ui/aiassistantcontroller.js +1 -1
  122. package/src/ui/dropdown/aicommandslistview.d.ts +22 -22
  123. package/src/ui/dropdown/aicommandslistview.js +1 -1
  124. package/src/ui/dropdown/buttonlabelwithhighlightview.d.ts +29 -29
  125. package/src/ui/dropdown/buttonlabelwithhighlightview.js +1 -1
  126. package/src/ui/dropdown/labelwithhighlightview.d.ts +25 -0
  127. package/src/ui/dropdown/labelwithhighlightview.js +23 -0
  128. package/src/ui/form/aiformcontentarea.d.ts +48 -48
  129. package/src/ui/form/aiformcontentarea.js +1 -1
  130. package/src/ui/form/aiformerrorview.d.ts +26 -26
  131. package/src/ui/form/aiformerrorview.js +1 -1
  132. package/src/ui/form/aiformpromptview.d.ts +46 -46
  133. package/src/ui/form/aiformpromptview.js +1 -1
  134. package/src/ui/form/aiformtoolbarview.d.ts +54 -41
  135. package/src/ui/form/aiformtoolbarview.js +1 -1
  136. package/src/ui/form/aiformview.d.ts +142 -131
  137. package/src/ui/form/aiformview.js +1 -1
  138. package/src/ui/form/aihistorylistitemview.d.ts +18 -18
  139. package/src/ui/form/aihistorylistitemview.js +1 -1
  140. package/src/ui/form/aihistorylistview.d.ts +35 -35
  141. package/src/ui/form/aihistorylistview.js +1 -1
  142. package/src/ui/form/prompthistory.d.ts +20 -20
  143. package/src/ui/form/prompthistory.js +1 -1
  144. package/src/ui/showaiassistantcommand.d.ts +26 -26
  145. package/src/ui/showaiassistantcommand.js +1 -1
  146. package/src/utils/common-translations.d.ts +9 -9
  147. package/src/utils/common-translations.js +1 -1
  148. package/theme/ai-form.css +58 -11
  149. package/theme/ai.css +20 -15
package/build/ai.js CHANGED
@@ -1,5 +1,5 @@
1
- !function(t){const e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"AI Assistant":"AI Assistant","AI Commands":"AI Commands","AI is writing...":"AI is writing...",AI_REPLACE_CONTENT:"Replace","Ask AI and your prompts will be listed here for you to use later.":"Ask AI and your prompts will be listed here for you to use later.","Ask AI to edit or generate":"Ask AI to edit or generate","Ask AI to improve generated text":"Ask AI to improve generated text",Business:"Business",Casual:"Casual","Change style":"Change style","Change tone":"Change tone",Confident:"Confident",Continue:"Continue",Copy:"Copy",Direct:"Direct","Edit or review":"Edit or review","Empty history":"Empty history",Friendly:"Friendly","Generate from selection":"Generate from selection",History:"History","Improve writing":"Improve writing","Insert below":"Insert below",Journalism:"Journalism",Legal:"Legal","Make longer":"Make longer","Make shorter":"Make shorter","No commands available":"No commands available","No commands found":"No commands found",Poetic:"Poetic",Professional:"Professional","Prompt history":"Prompt history","Search AI command":"Search AI command","Simplify language":"Simplify language",Stop:"Stop",Submit:"Submit",Summarize:"Summarize","Try again":"Try again"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),
1
+ !function(t){const e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"AI Assistant":"AI Assistant","AI Commands":"AI Commands","AI is writing...":"AI is writing...",AI_ERROR_AUTH_REQUEST:"Authorization request failed",AI_ERROR_CONTEXT_LENGTH:"Selected content is too long",AI_ERROR_FAILED:"Failed to communicate with the AI service",AI_ERROR_MODERATION:"Requested query does not pass moderation rules",AI_INSERT_CONTENT:"Insert",AI_REPLACE_CONTENT:"Replace",Arabic:"Arabic","Ask AI and your prompts will be listed here for you to use later.":"Ask AI and your prompts will be listed here for you to use later.","Ask AI to edit or generate":"Ask AI to edit or generate","Ask AI to improve generated text":"Ask AI to improve generated text",Business:"Business",Casual:"Casual","Change style":"Change style","Change tone":"Change tone",Confident:"Confident",Continue:"Continue",Copy:"Copy",Direct:"Direct","Edit or review":"Edit or review","Empty history":"Empty history",English:"English",French:"French",Friendly:"Friendly","Generate from selection":"Generate from selection",German:"German",Hindi:"Hindi",History:"History","Improve writing":"Improve writing","Insert below":"Insert below",Journalism:"Journalism",Legal:"Legal","Make longer":"Make longer","Make shorter":"Make shorter","No commands available":"No commands available","No commands found":"No commands found",Poetic:"Poetic",Portuguese:"Portuguese",Professional:"Professional","Prompt history":"Prompt history","Search AI command":"Search AI command","Simplified Chinese":"Simplified Chinese","Simplify language":"Simplify language",Spanish:"Spanish",Stop:"Stop",Submit:"Submit",Summarize:"Summarize",Translate:"Translate","Translate to %0":"Translate to %0","Try again":"Try again"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={488:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var i=n(758),o=n.n(i)()((function(t){return t[1]}));o.push([t.id,":root{--ck-ai-dropdown-view-width:250px;--ck-ai-dropdown-view-list-max-height:250px}.ck.ck-ai-commands-search{width:var(--ck-ai-dropdown-view-width)}.ck.ck-ai-commands-search>.ck-labeled-field-view{padding:var(--ck-spacing-large)}.ck.ck-ai-commands-search>.ck-labeled-field-view .ck-input{min-width:unset}.ck.ck-ai-commands-search>.ck-search__results{border-top:1px solid var(--ck-color-base-border)}.ck.ck-ai-commands-search>.ck-search__results>.ck-list{max-height:var(--ck-ai-dropdown-view-list-max-height);overflow:auto}",""]);const r=o},243:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var i=n(758),o=n.n(i)()((function(t){return t[1]}));o.push([t.id,":root{--ck-ai-form-view-width:470px;--ck-ai-form-content-height:126px;--ck-ai-form-content-background:#fafafa;--ck-ai-form-history-font-size:.9em;--ck-ai-form-error-background:#fcc}.ck .ck-ai-form{width:var(--ck-ai-form-view-width)}@media screen and (max-width:600px){.ck .ck-ai-form{--ck-ai-form-view-width:350px}}.ck .ck-ai-form .ck-ai-form-content{padding:var(--ck-spacing-large);width:100%}.ck .ck-ai-form .ck-ai-form-content .ck-input{width:100%}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area-wrapper{border:1px solid var(--ck-color-base-border);border-radius:2px;max-height:var(--ck-ai-form-content-height);overflow-y:auto;width:100%}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area-wrapper:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area{background-color:var(--ck-ai-form-content-background);display:flex}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area.ck-ai-form__content-area--processing{--ck-color-text:var(--ck-color-input-disabled-text);background-color:var(--ck-color-input-disabled-background)}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field{box-sizing:content-box;min-height:calc(var(--ck-line-height-base)*var(--ck-font-size-base));padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);padding-right:0;white-space:normal;width:100%}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field>*{color:inherit;white-space:normal}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-spinner-container{margin-right:var(--ck-spacing-medium)}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button-wrapper{display:flex;flex-direction:column-reverse;padding-left:2px}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button{bottom:1px;min-height:unset;min-width:unset;padding:4px;position:sticky;right:1px}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button svg{--ck-icon-size:16px}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button.ck-ai-form__copy-button--copied{color:inherit}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__toolbar{border:none;margin-bottom:calc(var(--ck-spacing-medium)*2);margin-top:var(--ck-spacing-medium);padding:0}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__loader{align-items:center;display:flex}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__loader .ck-spinner{box-sizing:border-box}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete{display:flex;justify-content:space-between}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view{flex-grow:1}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-button{margin-left:var(--ck-spacing-medium)}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-button{bottom:var(--ck-spacing-small);font-size:var(--ck-font-size-tiny);min-height:unset;min-width:unset;padding:4px;position:absolute;right:var(--ck-spacing-medium);top:var(--ck-spacing-small)}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-textarea{padding-right:30px}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group{grid-column-gap:0;grid-row-gap:0;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>span{grid-area:1/1/2/2}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-button{background:none;font-size:var(--ck-ai-form-history-font-size);grid-area:1/2/2/3;justify-self:start;min-height:auto;padding:0}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-button:hover .ck-button__label{text-decoration:underline}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-list{grid-area:2/1/3/3}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-list .ck-list__item .ck-button .ck-button__label{font-size:var(--ck-ai-form-history-font-size);line-height:var(--ck-line-height-base);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ck .ck-ai-form .ck-ai-form__error{align-items:center;background-color:var(--ck-ai-form-error-background);border-radius:2px;color:var(--ck-color-base-text);display:flex;justify-content:center;margin-bottom:var(--ck-spacing-medium);padding:var(--ck-spacing-medium)}",""]);const r=o},692:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var i=n(758),o=n.n(i)()((function(t){return t[1]}));o.push([t.id,".ck-ai-assistant-ui{--ck-color-button-default-hover-background:#f3ecff;--ck-color-button-default-active-background:#f3ecff;--ck-color-button-on-background:#f3ecff;--ck-color-button-on-hover-background:#e8dff7;--ck-color-button-on-active-background:#f3ecff;--ck-color-button-on-disabled-background:#f3ecff;--ck-color-button-on-color:#743ccd;--ck-color-button-action-background:#743ccd;--ck-color-button-action-hover-background:#6c34c9;--ck-color-button-action-active-background:#6c34c9;--ck-color-button-action-disabled-background:#ba9de6;--ck-color-list-button-hover-background:#f3ecff;--ck-ai-form-content-background:#f9f9f9}.ck-ai-assistant-ui .ck-ai-form__submit{border-color:var(--ck-color-button-action-background);color:var(--ck-color-button-action-background)}.ck-ai-assistant-ui .ck-ai-form__submit.ck-disabled{border-color:var(--ck-color-button-action-disabled-background)}.ck-ai-assistant-ui.ck-ai-assistant-button:hover,.ck-ai-assistant-ui.ck-ai-commands-dropdown>.ck-button:hover{color:var(--ck-color-button-on-color)}.ck span.ck-fake-ai-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-ai-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}.ck.ck-content.ck-ai-form__content-field h2{font-size:1.3em}.ck.ck-content.ck-ai-form__content-field h3{font-size:1.2em}.ck.ck-content.ck-ai-form__content-field h4,.ck.ck-content.ck-ai-form__content-field h5,.ck.ck-content.ck-ai-form__content-field h6{font-size:1.1em}.ck.ck-content.ck-ai-form__content-field h2,.ck.ck-content.ck-ai-form__content-field h3,.ck.ck-content.ck-ai-form__content-field h4,.ck.ck-content.ck-ai-form__content-field h5,.ck.ck-content.ck-ai-form__content-field h6,.ck.ck-content.ck-ai-form__content-field ol,.ck.ck-content.ck-ai-form__content-field p,.ck.ck-content.ck-ai-form__content-field ul{line-height:1.7em;margin-block-end:.5em;margin-block-start:.5em}.ck.ck-content.ck-ai-form__content-field>:first-child{margin-top:0}.ck.ck-content.ck-ai-form__content-field>:last-child{margin-bottom:0}",""]);const r=o},758:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(i)for(var r=0;r<this.length;r++){var s=this[r][0];null!=s&&(o[s]=!0)}for(var a=0;a<t.length;a++){var c=[].concat(t[a]);i&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},278:(t,e,n)=>{"use strict";var i,o=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),s=[];function a(t){for(var e=-1,n=0;n<s.length;n++)if(s[n].identifier===t){e=n;break}return e}function c(t,e){for(var n={},i=[],o=0;o<t.length;o++){var r=t[o],c=e.base?r[0]+e.base:r[0],l=n[c]||0,x="".concat(c," ").concat(l);n[c]=l+1;var u=a(x),d={css:r[1],media:r[2],sourceMap:r[3]};-1!==u?(s[u].references++,s[u].updater(d)):s.push({identifier:x,updater:p(d,e),references:1}),i.push(x)}return i}function l(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var o=n.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var s=r(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e)}return e}var x,u=(x=[],function(t,e){return x[t]=e,x.filter(Boolean).join("\n")});function d(t,e,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=u(e,o);else{var r=document.createTextNode(o),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(r,s[e]):t.appendChild(r)}}function h(t,e,n){var i=n.css,o=n.media,r=n.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var m=null,f=0;function p(t,e){var n,i,o;if(e.singleton){var r=f++;n=m||(m=l(e)),i=d.bind(null,n,r,!1),o=d.bind(null,n,r,!0)}else n=l(e),i=h.bind(null,n,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var n=c(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<n.length;i++){var o=a(n[i]);s[o].references--}for(var r=c(t,e),l=0;l<n.length;l++){var x=a(n[l]);0===s[x].references&&(s[x].updater(),s.splice(x,1))}n=r}}}},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(i){var o=e[i];if(void 0!==o)return o.exports;var r=e[i]={id:i,exports:{}};return t[i](r,r.exports,n),r.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nc=void 0;var i={};(()=>{"use strict";n.r(i),n.d(i,{AIAssistant:()=>Ce});var t=n(209),e=n(704),o=n(273);const r=["AIAssistantEditing","isContent","length","toView","model","markers","span","conversion","pop","init","data","hideFakeVisualSelection","processor","has","createRange","for","addMarker","updateMarker","markerToElement","pluginName","ai-ui","ck-fake-ai-selection_collapsed","setSelection","getSelectedBlocks","canEditAt","editingDowncast","from","document","isAtEnd","getFirstRange","start","change","selection","editor","showFakeVisualSelection","insertContent","getLastPosition","ck-fake-ai-selection","end","getLastMatchingPosition"];var s,a;s=r,a=157,function(t){for(;--t;)s.push(s.shift())}(++a);const c=function(t,e){return r[t-=0]},l=c("0x17");class x extends e.Plugin{static get[c("0x16")](){return c("0x3")}[c("0xc")](){const{editor:t}=this;t[c("0xa")][c("0x12")]("editingDowncast").markerToHighlight({model:l,view:{classes:[c("0x0")]}}),t.conversion[c("0x12")](c("0x1c"))[c("0x15")]({model:l,view:{name:c("0x9"),classes:["ck-fake-ai-selection",c("0x18")]}})}[c("0x25")](){const t=this.editor[c("0x7")];t[c("0x22")]((e=>{const n=t[c("0x1e")][c("0x23")][c("0x20")]();if(t[c("0x8")][c("0x10")](l))e[c("0x14")](l,{range:n});else if(n.start[c("0x1f")]){const i=n[c("0x21")][c("0x2")]((({item:e})=>!t.schema[c("0x4")](e)),{boundaries:n});e[c("0x13")](l,{usingOperation:!1,affectsData:!1,range:e[c("0x11")](i,n[c("0x1")])})}else e[c("0x13")](l,{usingOperation:!1,affectsData:!1,range:n})}))}[c("0xe")](){this.editor[c("0x7")][c("0x22")]((t=>{t.removeMarker(l)}))}[c("0x26")](t,e){const n=e||this[c("0x24")][c("0x7")].document[c("0x23")];if(!this[c("0x24")].model[c("0x1b")](n))return;const i=this.editor[c("0xd")][c("0xf")][c("0x6")](t),o=this[c("0x24")][c("0xd")].toModel(i);this[c("0x24")].model[c("0x22")]((t=>{const e=this.editor[c("0x7")][c("0x26")](o,n);e&&t[c("0x19")](e)}))}insertContentBelow(t){const{model:e}=this[c("0x24")],n=Array[c("0x1d")](e.document.selection[c("0x1a")]()),i=n[c("0x5")]?e.createPositionAfter(n[c("0xb")]()):e[c("0x1e")][c("0x23")][c("0x27")]();this.insertContent(t,i)}}function u(t,e,n){const i=t.t;switch(e){case"Edit or review":return i("Edit or review");case"Improve writing":return i("Improve writing");case"Make shorter":return i("Make shorter");case"Make longer":return i("Make longer");case"Simplify language":return i("Simplify language");case"Generate from selection":return i("Generate from selection");case"Summarize":return i("Summarize");case"Continue":return i("Continue");case"Change tone":return i("Change tone");case"Professional":return i("Professional");case"Casual":return i("Casual");case"Direct":return i("Direct");case"Confident":return i("Confident");case"Friendly":return i("Friendly");case"Change style":return i("Change style");case"Business":return i("Business");case"Legal":return i("Legal");case"Journalism":return i("Journalism");case"Poetic":return i("Poetic");case"Translate":return i("Translate");case"Translate to %0":return i("Translate to %0",n);case"English":return i("English");case"Spanish":return i("Spanish");case"German":return i("German");case"Portuguese":return i("Portuguese");case"French":return i("French");case"Simplified Chinese":return i("Simplified Chinese");case"Hindi":return i("Hindi");case"Arabic":return i("Arabic");case"AI Assistant":return i("AI Assistant");case"AI Commands":return i("AI Commands");case"Ask AI to edit or generate":return i("Ask AI to edit or generate");case"Ask AI to improve generated text":return i("Ask AI to improve generated text");case"Copy":return i("Copy");case"Submit":return i("Submit");case"Insert below":return i("Insert below");case"Try again":return i("Try again");case"Stop":return i("Stop");case"AI is writing...":return i("AI is writing...");case"History":return i("History");case"Empty history":return i("Empty history");case"Ask AI and your prompts will be listed here for you to use later.":return i("Ask AI and your prompts will be listed here for you to use later.");case"Prompt history":return i("Prompt history");case"Search AI command":return i("Search AI command");case"No commands found":return i("No commands found");case"No commands available":return i("No commands available");case"Clear":return i("Clear");case"AI_REPLACE_CONTENT":return i({id:"AI_REPLACE_CONTENT",string:"Replace"});case"AI_ERROR_AUTH_REQUEST":return i({id:"AI_ERROR_AUTH_REQUEST",string:"Authorization request failed"});case"AI_ERROR_CONTEXT_LENGTH":return i({id:"AI_ERROR_CONTEXT_LENGTH",string:"Selected content is too long"});case"AI_ERROR_MODERATION":return i({id:"AI_ERROR_MODERATION",string:"Requested query does not pass moderation rules"});case"AI_ERROR_FAILED":return i({id:"AI_ERROR_FAILED",string:"Failed to communicate with the AI service"});default:return""}}const d=["selection","execute","isEnabled","getRanges","plugins","editor","get","getItems","name","model","includes","showUI","element","refresh"];var h,m;h=d,m=350,function(t){for(;--t;)h.push(h.shift())}(++m);const f=function(t,e){return d[t-=0]};class p extends e.Command{[f("0xd")](){const t=this.editor[f("0x9")].document[f("0x0")],e=this.editor.config[f("0x6")]("aiAssistant.disabledElements");for(const n of t[f("0x3")]())for(const t of n[f("0x7")]())if(t.is(f("0xc"))&&e[f("0xa")](t[f("0x8")]))return void(this[f("0x2")]=!1);this[f("0x2")]=!0}[f("0x1")](t="",e=""){this[f("0x5")][f("0x4")][f("0x6")](be)[f("0xb")](t,e,this.editor[f("0x9")].document.selection)}}var g=n(492);const k=["_cleanUpData","data: ","Instruction:\n","data","aiAssistant.requestParameters.model","Authorization","choices","user","match","aiconnector-send-prompt-failed","processor","aiAssistant.requestParameters.top_p","string","get","error","aiAssistant.requestParameters.max_tokens","authKey","_processStream","_domParser","content","body","reject","Bearer ","aiAssistant.requestParameters.temperature","aiAssistant.apiUrl","document","define","abort","adapter","toModel","startsWith","AI_ERROR_CONTEXT_LENGTH","text/html","filter","stringify","editing","top_p","join","processPrompt","_parseAndNormalizeContent","push","aborted","model","\nYou must keep the text formatting.\n\nContent:\n","AIRequestError","https://api.openai.com/v1/chat/completions","Your task is to execute the instruction using the provided HTML content. Follow the instruction closely. Your answer must be a properly formatted HTML code. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.","resolve","_authKey","serializeToString","_isBufferIncomplete","gpt-3.5-turbo","catch","<span>","AI_ERROR_MODERATION","toView","_apiUrl","length","includes","name","config","replace","_abortController","_requestParameters","parseFromString","_prepareMessages","[DONE]","_xmlSerializer","_normalizeResponseHeadings","signal","editor","aiAssistant.requestParameters","max_tokens","context_length_exceeded","split","getReader","AbortError","view","temperature","sendPrompt"];var b,w;b=k,w=230,function(t){for(;--t;)b.push(b.shift())}(++w);const v=function(t,e){return k[t-=0]};class y extends e.Plugin{static get pluginName(){return"AIConnector"}constructor(t){super(t),t[v("0x46")][v("0x24")](v("0x22"),v("0x37")),t[v("0x46")][v("0x24")](v("0xe"),v("0x3d")),t.config[v("0x24")](v("0x19"),2e3),t[v("0x46")][v("0x24")](v("0x21"),1),t[v("0x46")].define(v("0x15"),1);const e=t[v("0x46")][v("0x17")](v("0x22")),n=t.config[v("0x17")]("aiAssistant")[v("0x1a")],i=t[v("0x46")][v("0x17")](v("0x1"));this[v("0x48")]=new AbortController,this[v("0x26")]=new _(t,e,i,n)}async[v("0x30")](e,n,i){const{systemMessage:o,userMessage:r}=this[v("0x4b")](e,n);return this.adapter[v("0x9")](o,r,this[v("0x48")][v("0x4f")],i)[v("0x3e")]((e=>{if(e instanceof A)return Promise[v("0x1f")](e);if(v("0x6")==e.name)return Promise[v("0x39")]();throw console[v("0x18")](e),new t.CKEditorError(v("0x13"),null)}))}[v("0x25")](){this[v("0x48")][v("0x4f")][v("0x33")]||(this[v("0x48")].abort(),this[v("0x48")]=new AbortController)}[v("0x4b")](t,e){let n,i;return e?(n=v("0x38"),i=v("0xc")+t+v("0x35")+(e[v("0x28")]("<")?e:v("0x3f")+e+"</span>")):(n="Your task is to generate HTML content accordingly to the given instruction. Never include <img> tag in your response even if asked for. Your answer must be a well-structured and properly formatted HTML code. Answer only with the generated HTML content. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.",i=t),{systemMessage:n,userMessage:i}}}class _{constructor(t,e,n,i){this[v("0x0")]=t,this._apiUrl=e,this[v("0x3a")]=i,this[v("0x49")]=n,this[v("0x1c")]=new DOMParser,this[v("0x4d")]=new XMLSerializer}async[v("0x9")](t,e,n,i){const o=this[v("0x0")].locale,r={"Content-Type":"application/json"};if(v("0x16")==typeof this[v("0x3a")])r[v("0xf")]="Bearer "+this[v("0x3a")];else if(this[v("0x3a")])try{const t=await this._authKey();r.Authorization=v("0x20")+t}catch(t){return Promise.reject(new A(u(o,"AI_ERROR_AUTH_REQUEST")))}const s={model:this[v("0x49")][v("0x34")],messages:[{role:"system",content:t},{role:v("0x11"),content:e}],stream:!0,max_tokens:this[v("0x49")][v("0x2")],temperature:this[v("0x49")][v("0x8")],top_p:this._requestParameters[v("0x2e")]};this[v("0x49")][v("0x11")]&&(s.user=this._requestParameters[v("0x11")]);const a={method:"POST",headers:r,body:JSON[v("0x2c")](s),signal:n},c=await fetch(this[v("0x42")],a);if(c.ok){const t=c[v("0x1e")];return await this[v("0x1b")](t,i),Promise[v("0x39")]()}{const t=await c.text();return t.includes(v("0x3"))?Promise[v("0x1f")](new A(u(o,v("0x29")))):t[v("0x44")]("Moderation")?Promise[v("0x1f")](new A(u(o,v("0x40")))):Promise[v("0x1f")](new Error(t))}}async[v("0x1b")](t,e){const n=t[v("0x5")](),i=new TextDecoder;let o="",r="",s="",a=!1;for(;!a;){const{done:t,value:c}=await n.read(),l=o+i.decode(c);let x="";a=t;try{x=this[v("0xa")](l),o=""}catch(t){o+=l;continue}r+=x,!t&&this[v("0x3c")](r)||r&&(s+=r,e(this[v("0x31")](s)),r="")}return Promise[v("0x39")]()}[v("0x3c")](t){const e=t[v("0x4")]("<")[v("0x43")]!==t[v("0x4")](">").length,n=t[v("0x43")]<30;return e&&n}_parseAndNormalizeContent(t){const e=this[v("0x1c")][v("0x4a")](t,v("0x2a")),n=this[v("0x0")][v("0xd")][v("0x14")][v("0x41")](this[v("0x4d")][v("0x3b")](e.body));return this[v("0x4e")](n),this.editor.data[v("0x2c")](this[v("0x0")][v("0xd")][v("0x27")](n))}[v("0x4e")](t){const e=new g.UpcastWriter(this[v("0x0")][v("0x2d")][v("0x7")][v("0x23")]),n=new g.Matcher({name:/^h[1-5]$/}),i=[];let o=!1;for(const e of t)e.is("element")&&n[v("0x12")](e)&&(i[v("0x32")](e),"h1"==e[v("0x45")]&&(o=!0));if(o)for(const t of i)e.rename("h"+(parseInt(t[v("0x45")][1])+1),t)}[v("0xa")](t){return t.split("\n").map((t=>t[v("0x47")](v("0xb"),""))).filter((t=>t&&t[v("0x43")]>0&&v("0x4c")!==t)).map((t=>JSON.parse(t)[v("0x10")][0].delta[v("0x1d")]))[v("0x2b")]((t=>t))[v("0x2f")]("")}}class A extends Error{constructor(t){super(t),this[v("0x45")]=v("0x36")}}const C=["connector","isProcessing","previousPrompt","stopProcessing","view","previousContext","_handlePrompt","startProcessing","_updateValue","finishProcessing","abort","stopListening","finally","submitPrompt","handleError","once","set","render","destroy","listenTo","catch"];var I,T;I=C,T=391,function(t){for(;--t;)I.push(I.shift())}(++T);const S=function(t,e){return C[t-=0]};class E extends((0,t.ObservableMixin)()){constructor(t,e,n,i){super(),this.connector=t,this.view=e,this[S("0x3")]({previousPrompt:void 0,previousContext:void 0,isProcessing:!1}),i&&this[S("0xc")][S("0x2")](S("0x4"),(()=>{this[S("0xe")](i,n)})),this[S("0x6")](this[S("0xc")],S("0x0"),((t,e)=>{const i=this.view.value||n;this[S("0xe")](e,i)})),this[S("0x6")](this.view,"tryAgainEvent",(()=>{this[S("0xe")](this[S("0xa")],this[S("0xd")])})),this.listenTo(this[S("0xc")],S("0xb"),(()=>{this[S("0x9")]=!1,this[S("0x8")][S("0x12")](),this[S("0xc")].finishProcessing()}))}[S("0x5")](){this[S("0x13")]()}async _handlePrompt(t,e){return this[S("0x9")]=!0,this[S("0xc")][S("0xf")](),this[S("0xa")]=t,this[S("0xd")]=e,new Promise((n=>{this[S("0x8")].processPrompt(t,e,(t=>this[S("0x10")](t)))[S("0x7")]((t=>{t instanceof A?this[S("0xc")].handleError(t.message):this[S("0xc")][S("0x1")](),n()}))[S("0x14")]((()=>{this[S("0x9")]=!1,this[S("0xc")][S("0x11")](),n()}))}))}[S("0x10")](t){this[S("0xc")].value=""+t}}const V=["Stop","set","locale","AI_REPLACE_CONTENT","extendTemplate","_createButton","ck-ai-form__toolbar","addMany","insertButton","ck-button-action","ck-hidden","replaceButton","bindTemplate","stopButton","tryAgainButton","Try again"];var P,R;P=V,R=301,function(t){for(;--t;)P.push(P.shift())}(++R);const B=function(t,e){return V[t-=0]};class O extends o.ToolbarView{constructor(t){super(t),this.set("isVisible",!1),this.replaceButton=this[B("0x8")](u(t,B("0x6")),B("0xc")),this[B("0xb")]=this[B("0x8")](u(t,"Insert below")),this[B("0x1")]=this[B("0x8")](u(t,B("0x2"))),this[B("0x0")]=this._createButton(u(t,B("0x3")));const e=this[B("0xf")];this[B("0x7")]({attributes:{class:[B("0x9"),e.if("isVisible",B("0xd"),(t=>!t))]}}),this.items[B("0xa")]([this[B("0xe")],this[B("0xb")],this[B("0x1")],this[B("0x0")]])}[B("0x8")](t,e){const n=new o.ButtonView(this[B("0x5")]);return n[B("0x4")]({label:t,class:e||"",isVisible:!0,withText:!0}),n}}const M='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5 2.801a.7.7 0 0 0-.7.7v11.5a.8.8 0 0 1-1.6 0v-11.5a2.3 2.3 0 0 1 2.3-2.3h6.5a.8.8 0 0 1 0 1.6H5Zm.7 3.7a2.3 2.3 0 0 1 2.3-2.3h7a2.3 2.3 0 0 1 2.3 2.3v10a2.3 2.3 0 0 1-2.3 2.3H8a2.3 2.3 0 0 1-2.3-2.3v-10Zm2.3-.7a.7.7 0 0 0-.7.7v10a.7.7 0 0 0 .7.7h7a.7.7 0 0 0 .7-.7v-10a.7.7 0 0 0-.7-.7H8Z"/></svg>',N=["isEnabled","scrollHeight","ck-content","isVisible","textContent","ck-ai-form__content-area-wrapper","ck-ai-form__copy-button","bind","ck-ai-form__copy-button-wrapper","element","contentFieldView","_createLoader","style","text/html","ClipboardItem","loaderView","change:isProcessing","remove",".ck-ai-form__loader","innerHTML","createElement","ck-hidden","position","_copyHTMLToClipboard","bindTemplate","scrollTo","appendLoader","removeAllRanges","_createCopyButton","execCommand","render","value","clipboard","isProcessing","setContent","addRange","appendChild","setTemplate","copyButtonView","copy","locale","text/plain","focus","div","ck-ai-form__content-area","execute","write","change:value","left","class","-9999px"];var L,H;L=N,H=491,function(t){for(;--t;)L.push(L.shift())}(++H);const F=function(t,e){return N[t-=0]};class j extends o.View{constructor(t,e=""){super(t),this.set({value:null,isVisible:!1,isProcessing:!1});const n=this[F("0x2b")];this[F("0x1d")]=new D(t,e),this.copyButtonView=this[F("0x2f")](),this[F("0x5")]({tag:"div",attributes:{class:["ck",F("0x18"),n.if(F("0x16"),F("0x28"),(t=>!t))],tabindex:"-1"},children:[{tag:"div",attributes:{class:["ck",F("0xc"),n.if(F("0x1"),"ck-ai-form__content-area--processing")]},children:[this.contentFieldView,{tag:F("0xb"),attributes:{class:["ck",F("0x1b")]},children:[this[F("0x6")]]}]}]})}[F("0x31")](){super[F("0x31")](),this[F("0x32")]&&this.contentFieldView[F("0x2")](this[F("0x32")]),this.on(F("0xf"),((t,e,n)=>{const i=!this.contentFieldView.element.querySelector(F("0x25"));this[F("0x1d")][F("0x2")](n),this[F("0x1")]&&i&&this[F("0x1c")][F("0x2c")]({top:this[F("0x1c")][F("0x14")],behavior:"smooth"})})),this.on(F("0x23"),((t,e,n)=>{n?(this[F("0x32")]=null,this[F("0x1d")].appendLoader()):this.value||this[F("0x1d")][F("0x2")]("")}))}focus(){this.element[F("0xa")]()}[F("0x2f")](){const t=this[F("0x8")],n=new o.ButtonView(this[F("0x8")]),i=F("0x19");return n.set({label:u(t,"Copy"),icon:M,class:i,tooltip:!0}),n[F("0x1a")](F("0x16")).to(this,"value",(t=>!!t)),n[F("0x1a")](F("0x13")).to(this,"isProcessing",(t=>!t)),n.on(F("0xd"),(()=>{this[F("0x2a")](this.contentFieldView[F("0x1c")]),n.icon=e.icons.check,n.class=i+" ck-ai-form__copy-button--copied",this[F("0xa")](),setTimeout((()=>{n.icon=M,n[F("0x11")]=i}),1e3)})),n}[F("0x2a")](e){const{window:n,document:i}=t.global;if(n[F("0x21")]){const{Blob:t,ClipboardItem:i}=n,o=[new i({"text/html":new t([e[F("0x26")]],{type:F("0x20")}),"text/plain":new t([e[F("0x17")]||""],{type:F("0x9")})})];navigator[F("0x0")][F("0xe")](o)}else{const t=i[F("0x27")](F("0xb"));t[F("0x1f")][F("0x29")]="absolute",t[F("0x1f")][F("0x10")]=F("0x12"),t[F("0x26")]=e[F("0x26")],i.body[F("0x4")](t);const o=i.createRange();o.selectNodeContents(t);const r=n.getSelection();r[F("0x2e")](),r[F("0x3")](o),i[F("0x30")](F("0x7")),t[F("0x24")]()}}}class D extends o.View{constructor(t,e=""){super(t),this[F("0x22")]=this[F("0x1e")](),this[F("0x5")]({tag:F("0xb"),attributes:{class:["ck",F("0x15"),e,"ck-reset_all-excluded","ck-ai-form__content-field"]}})}setContent(t){this.element[F("0x26")]=t}[F("0x2d")](){this[F("0x1c")][F("0x4")](this[F("0x22")][F("0x1c")])}_createLoader(){const t=new o.View,e=this[F("0x8")],n=new o.SpinnerView;return n.isVisible=!0,t.setTemplate({tag:F("0xb"),attributes:{class:["ck","ck-ai-form__loader"]},children:[n,{text:u(e,"AI is writing...")}]}),t[F("0x31")](),t}}const z=["set","text","content","setTemplate","bindTemplate","div","ck-ai-form__error"];var Z,q;Z=z,q=325,function(t){for(;--t;)Z.push(Z.shift())}(++q);const U=function(t,e){return z[t-=0]};class K extends o.View{constructor(t,e=""){super(t);const n=new o.IconView,i=this[U("0x1")];this[U("0x4")](U("0x5"),e),n[U("0x6")]='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M9.9 4.385a1.2 1.2 0 0 0-.44.44h.002l-5.284 9.15a1.2 1.2 0 0 0 1.04 1.8h10.564a1.2 1.2 0 0 0 1.04-1.8l-5.282-9.15a1.2 1.2 0 0 0-1.64-.44Zm.05 8.363a.301.301 0 0 1 .115-.023h.9a.301.301 0 0 1 .3.3v.9a.3.3 0 0 1-.3.3h-.9a.3.3 0 0 1-.3-.3v-.9a.3.3 0 0 1 .185-.277Zm-.185-4.723a.3.3 0 0 1 .3-.3h.9a.3.3 0 0 1 .3.3v3.4a.3.3 0 0 1-.3.3h-.9a.301.301 0 0 1-.3-.3v-3.4Z"/></svg>\n',this[U("0x0")]({tag:U("0x2"),attributes:{class:["ck",U("0x3")]},children:[n,{text:i.to(U("0x5"))}]})}}const G=function(t){return function(e){return null==t?void 0:t[e]}};const J=G({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});const Y="object"==typeof global&&global&&global.Object===Object&&global;var W="object"==typeof self&&self&&self.Object===Object&&self;const X=(Y||W||Function("return this")()).Symbol;const Q=function(t,e){for(var n=-1,i=null==t?0:t.length,o=Array(i);++n<i;)o[n]=e(t[n],n,t);return o};const $=Array.isArray;var tt=Object.prototype,et=tt.hasOwnProperty,nt=tt.toString,it=X?X.toStringTag:void 0;const ot=function(t){var e=et.call(t,it),n=t[it];try{t[it]=void 0;var i=!0}catch(t){}var o=nt.call(t);return i&&(e?t[it]=n:delete t[it]),o};var rt=Object.prototype.toString;const st=function(t){return rt.call(t)};var at=X?X.toStringTag:void 0;const ct=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":at&&at in Object(t)?ot(t):st(t)};const lt=function(t){return null!=t&&"object"==typeof t};const xt=function(t){return"symbol"==typeof t||lt(t)&&"[object Symbol]"==ct(t)};var ut=X?X.prototype:void 0,dt=ut?ut.toString:void 0;const ht=function t(e){if("string"==typeof e)return e;if($(e))return Q(e,t)+"";if(xt(e))return dt?dt.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const mt=function(t){return null==t?"":ht(t)};var ft=/[&<>"']/g,pt=RegExp(ft.source);const gt=function(t){return(t=mt(t))&&pt.test(t)?t.replace(ft,J):t},kt=["fieldView","maxRows","history","right","children","element","minRows","style","render","locale","fire","requestAnimationFrame","submit","isVisible","value","Submit","target","focusableChildren","filteredView","showHistoryButtonView","focusFirst","resultsView","focusCycler","queryView","_createShowHistoryButton","set","width","bind","update","History","execute","window","submitButtonView","ck-ai-form__submit","_createSubmitButton","fieldWrapperChildren","focusLast","focus","isEnabled","add","isOn"];var bt,wt;bt=kt,wt=393,function(t){for(;--t;)bt.push(bt.shift())}(++wt);const vt=function(t,e){return kt[t-=0]};class yt extends o.AutocompleteView{constructor(t,e){super(t,e),this[vt("0x28")][vt("0x11")][vt("0x17")]=1,this[vt("0x28")][vt("0x11")][vt("0x12")]=3,this[vt("0x8")]=this[vt("0xa")](),this.showHistoryButtonView=this[vt("0x0")](),this[vt("0x22")][vt("0xf")](this[vt("0x24")],1),this[vt("0x22")][vt("0xf")](this.submitButtonView)}render(){super[vt("0x19")](),this[vt("0x28")][vt("0xb")].add(this[vt("0x24")]),this[vt("0x15")][vt("0xf")](this[vt("0x8")]),this.keystrokes[vt("0x1")]("enter",((t,e)=>{t[vt("0x21")]==this[vt("0x28")].fieldView.element&&(this[vt("0x1d")](),e())}))}_createSubmitButton(){const t=new o.ButtonView(this[vt("0x1a")]),e=this.locale;return t[vt("0x1")]({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.875 4.419a.75.75 0 0 0-1.5 0v7.25H6.818l2.33-1.955a.75.75 0 0 0-.963-1.15l-3.792 3.182a.75.75 0 0 0-.17.945c.046.11.118.208.21.284l3.788 3.18a.75.75 0 1 0 .965-1.149l-2.19-1.837h7.629c.69 0 1.25-.56 1.25-1.25v-7.5Z"/></svg>',label:u(e,vt("0x20")),isVisible:!0,tooltip:!0,class:vt("0x9")}),t.on(vt("0x6"),(()=>{this[vt("0x1d")]()})),t[vt("0x3")](vt("0xe")).to(this[vt("0x28")][vt("0x11")],"isEmpty",this,vt("0xe"),((t,e)=>!t&&e)),t}_createShowHistoryButton(){const n=new o.ButtonView(this[vt("0x1a")]),i=this[vt("0x26")],r=this.locale;n.set({label:u(r,vt("0x5")),withText:!1,icon:e.icons[vt("0x13")],tooltip:!0,tooltipPosition:"sw",class:"ck-ai-form__toggle-history"}),n[vt("0x3")](vt("0x10")).to(i,vt("0x1e")),n[vt("0x3")](vt("0xe")).to(this,"isEnabled"),n.on(vt("0x6"),(()=>{i[vt("0x1e")]=!i[vt("0x1e")],i[vt("0x1e")]?this[vt("0x23")][vt("0xd")]():this[vt("0xd")]()}));const s=()=>{t.global[vt("0x7")][vt("0x1c")]((()=>{const e=new t.Rect(this[vt("0x28")][vt("0x11")][vt("0x16")]),i=e[vt("0x2")];e.excludeScrollbarsAndBorders(),n[vt("0x16")][vt("0x18")][vt("0x14")]=i-e[vt("0x2")]+1+"px"}))};return this[vt("0x28")].fieldView.on(vt("0x4"),s),this.on(vt("0x19"),s),n}submit(){const t=this[vt("0x28")][vt("0x11")][vt("0x16")][vt("0x1f")];this[vt("0x1b")](vt("0x1d"),gt(t))}[vt("0xd")](t){-1===t?this[vt("0x27")][vt("0xc")]():this.focusCycler[vt("0x25")]()}}const _t=["filter","locale","label","items","delegate","children","execute","fire","Clear","set","_createClearHistoryButton","historyGroupView","clearHistoryButton","Prompt history","add","length","clearHistory"];var At,Ct;At=_t,Ct=188,function(t){for(;--t;)At.push(At.shift())}(++Ct);const It=function(t,e){return _t[t-=0]};class Tt extends o.ListView{constructor(t){super(t),this[It("0xb")]=this[It("0x9")](),this[It("0xa")]=new o.ListItemGroupView,this[It("0xa")][It("0x4")][It("0xd")](this[It("0xb")],1),this[It("0xa")][It("0x1")]=u(t,It("0xc")),this[It("0xa")].items[It("0x3")](It("0x5")).to(this),this[It("0x2")].add(this[It("0xa")])}[It("0x10")](){let t=0;for(const e of this[It("0x2")])t+=e[It("0x2")][It("0xe")];return{resultsCount:t,totalItemsCount:t}}_createClearHistoryButton(){const t=this[It("0x0")],e=new o.ButtonView(this[It("0x0")]);return e[It("0x8")]({label:"("+u(t,It("0x7"))+")",withText:!0}),e.on(It("0x5"),(()=>this[It("0x6")](It("0xf")))),e}}const St=["extendTemplate","set","bindTemplate","style"];var Et,Vt;Et=St,Vt=104,function(t){for(;--t;)Et.push(Et.shift())}(++Vt);const Pt=function(t,e){return St[t-=0]};class Rt extends o.HighlightedTextView{constructor(){super(),this[Pt("0x1")]({style:void 0,text:void 0,id:void 0});const t=this[Pt("0x2")];this[Pt("0x0")]({attributes:{class:["ck-button__label"],style:t.to(Pt("0x3")),id:t.to("id")}})}}const Bt=G({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Ot=/&(?:amp|lt|gt|quot|#39);/g,Mt=RegExp(Ot.source);const Nt=function(t){return(t=mt(t))&&Mt.test(t)?t.replace(Ot,Bt):t},Lt=["add","execute","prompt","locale","set","children"];var Ht,Ft;Ht=Lt,Ft=437,function(t){for(;--t;)Ht.push(Ht.shift())}(++Ft);const jt=function(t,e){return Lt[t-=0]};class Dt extends o.ListItemView{constructor(t){super();const e=new Rt,n=new o.ButtonView(this[jt("0x4")],e);this[jt("0x0")][jt("0x1")](n),n[jt("0x5")]({label:t[jt("0x3")],withText:!0}),n.on(jt("0x2"),(()=>{this.fire(jt("0x2"),{value:Nt(t.prompt)})}))}}const zt=["CKEditor/AIFormView/PromptHistory","trim","prompt","getItem","setItem","parse","remove","last","addMany","_saveToSessionStorage","map","add","_loadFromSessionStorage"];var Zt,qt;Zt=zt,qt=442,function(t){for(;--t;)Zt.push(Zt.shift())}(++qt);const Ut=function(t,e){return zt[t-=0]},Kt=Ut("0x0");class Gt extends t.Collection{constructor(){super(),this[Ut("0xc")](),this.on(Ut("0xb"),((t,e)=>{const n=Jt(e[Ut("0x2")]);for(const t of this)if(t!=e&&Jt(t[Ut("0x2")])===n){this.remove(t);break}this.length>20&&this[Ut("0x6")](this[Ut("0x7")]),this[Ut("0x9")]()})),this.on("remove",(()=>{this[Ut("0x9")]()}))}[Ut("0xc")](){const t=sessionStorage[Ut("0x3")](Kt)||"[]";this[Ut("0x8")](JSON[Ut("0x5")](t))}_saveToSessionStorage(){sessionStorage[Ut("0x4")](Kt,JSON.stringify(this[Ut("0xa")]((t=>t))))}}function Jt(t){return t.toLowerCase()[Ut("0x1")]()}const Yt='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.61 2.66a1.406 1.406 0 1 0-1.407 0v.891H3.28a2.11 2.11 0 0 0-2.11 2.11v10.312a2.11 2.11 0 0 0 2.11 2.109h5.684l-.054-1.157.18-.25H3.28a.703.703 0 0 1-.703-.702V5.66c0-.389.315-.704.703-.704h11.25c.388 0 .703.315.703.704v2.484l.358-.497a2.492 2.492 0 0 1 1.048-.84V5.66a2.11 2.11 0 0 0-2.11-2.11H9.61v-.89Z"/><path d="M5.625 10.817c.518 0 .937-.63.937-1.407 0-.776-.42-1.406-.937-1.406-.518 0-.938.63-.938 1.406 0 .777.42 1.407.938 1.407Z"/><path d="M13.125 9.41c0 .777-.42 1.407-.938 1.407s-.937-.63-.937-1.407c0-.776.42-1.406.937-1.406.518 0 .938.63.938 1.406Z"/><path d="M.937 8.004A.937.937 0 0 0 0 8.942v1.875c0 .517.42.937.937.937v-3.75Z"/><path d="M6.128 12.51a.782.782 0 0 1 1.085.216c.272.408.907.707 1.693.707s1.421-.3 1.693-.707a.782.782 0 0 1 1.302.868c-.666 1-1.906 1.403-2.995 1.403-1.089 0-2.329-.404-2.995-1.403a.782.782 0 0 1 .217-1.085Z"/><path d="m16.987 8.91-.622.864 2.879 2.074.622-.864a.71.71 0 0 0-.161-.99l-1.728-1.245a.71.71 0 0 0-.99.161Z"/><path d="M11.635 19.951a.355.355 0 0 1-.449-.31l-.214-2.38 4.978-6.911 2.88 2.074-4.978 6.91-2.217.617Z"/></svg>',Wt=["listenTo","_focusCycler","AI Assistant","isError","_createToolbar","isVisible","tab","startProcessing","clear","execute","_createHistoryView","queryView","finishProcessing","forwardCycle","focus","clearHistory","render","isProcessing","AI_ERROR_FAILED","submitPrompt","items","_focusables","prompt","_promptHistory","tryAgainEvent","trim","bindTo","setTemplate","div","stopButton","ck-ai-form-content","focusFirst","_createPromptView","set","Ask AI to improve generated text","Ask AI and your prompts will be listed here for you to use later.","element","add","insertButton","submit","promptView","locale","contentArea","shift + tab","tryAgainButton","toolbar","replaceButton","bindTemplate","value","copyButtonView","stop","isEnabled","errorView","handleError","bind","replaceContent","Empty history","createCollection","ck-ai-form","keystrokes","stopProcessing","focusTracker","fire","text","backwardCycle","focusCycler","Ask AI to edit or generate","focusPrevious"];var Xt,Qt;Xt=Wt,Qt=411,function(t){for(;--t;)Xt.push(Xt.shift())}(++Qt);const $t=function(t,e){return Wt[t-=0]};class te extends o.View{constructor(e,n,i,r=""){super(e),this[$t("0x1e")]($t("0x30"),!0),this[$t("0x1e")]($t("0xe"),!1),this[$t("0x1e")]($t("0x13"),n),this.set($t("0x2d"),""),this[$t("0x1e")]($t("0x0"),!1),this[$t("0x14")]=new Gt,this[$t("0x31")]=new K(e),this.header=new o.FormHeaderView(e,{label:u(e,$t("0x43")),icon:Yt}),this[$t("0x27")]=new j(e,r),this.contentArea[$t("0x33")]("isProcessing").to(this),this[$t("0x27")][$t("0x33")]($t("0x2d")).to(this),this.toolbar=this._createToolbar(),this.promptView=this[$t("0x1d")](),this[$t("0x3a")]=new t.FocusTracker,this.keystrokes=new t.KeystrokeHandler,this[$t("0x12")]=this[$t("0x36")]([this[$t("0x27")],this[$t("0x27")].copyButtonView,this[$t("0x2a")],this.promptView]),this[$t("0x42")]=new o.FocusCycler({focusables:this[$t("0x12")],focusTracker:this.focusTracker,keystrokeHandler:this[$t("0x38")],actions:{focusPrevious:$t("0x28"),focusNext:$t("0x3")}}),this[$t("0x25")][$t("0x3e")].on($t("0xa"),(t=>{this[$t("0x42")].focusNext(),t[$t("0x2f")]()})),this[$t("0x25")].focusCycler.on($t("0x3d"),(t=>{this[$t("0x42")][$t("0x40")](),t[$t("0x2f")]()}));const s=this[$t("0x2c")];this[$t("0x18")]({tag:$t("0x19"),attributes:{class:["ck",$t("0x37"),i],tabindex:"-1"},children:[this.header,{tag:"div",attributes:{class:["ck",$t("0x1b")]},children:[{tag:$t("0x19"),attributes:{class:[s.if($t("0x0"),"ck-hidden",(t=>!t))]},children:[this[$t("0x31")]]},this[$t("0x27")],this[$t("0x2a")],this[$t("0x25")]]}]})}[$t("0xd")](){super.render(),this[$t("0x3a")][$t("0x22")](this[$t("0x27")][$t("0x21")]),this[$t("0x3a")].add(this[$t("0x27")][$t("0x2e")][$t("0x21")]),this[$t("0x3a")][$t("0x22")](this[$t("0x2a")][$t("0x21")]),this[$t("0x3a")][$t("0x22")](this[$t("0x25")].element),this.keystrokes.listenTo(this.element)}[$t("0xb")](){this[$t("0x42")][$t("0x1c")]()}[$t("0x1d")](){const t=this[$t("0x26")],e=new yt(t,{queryView:{label:u(t,$t("0x3f")),creator:o.createLabeledTextarea,showIcon:!1,showResetButton:!1},infoView:{text:{noSearchableItems:{primary:u(t,$t("0x35")),secondary:u(t,$t("0x20"))}}},filteredView:this._createHistoryView(),queryMinChars:1/0,resetOnBlur:!1});return e.bind($t("0x30")).to(this,"isEnabled",this,$t("0xe"),((t,e)=>t&&!e)),this[$t("0x41")](e,$t("0x24"),((t,e)=>{this[$t("0x13")]=e,this[$t("0x3b")]($t("0x10"),this[$t("0x13")]),e[$t("0x16")]()&&this._promptHistory[$t("0x22")]({prompt:e.trim()},0)}),{priority:"high"}),e}[$t("0x7")](){const t=new Tt(this[$t("0x26")]);return t.historyGroupView[$t("0x11")][$t("0x17")](this[$t("0x14")]).as(Dt),t.on($t("0xc"),(()=>{this[$t("0x14")][$t("0x5")](),this[$t("0x25")].search(""),this.promptView[$t("0xb")]()})),t}[$t("0x1")](){const t=new O(this[$t("0x26")]);return t[$t("0x2b")][$t("0x33")]($t("0x30")).to(this,$t("0x30"),this,$t("0xe"),this,$t("0x2d"),((t,e,n)=>t&&!e&&!!n)),t[$t("0x2b")].on($t("0x6"),(()=>{this[$t("0x3b")]($t("0x34"),this.value)})),t[$t("0x23")][$t("0x33")]($t("0x30")).to(this,$t("0x30"),this,$t("0xe"),this,$t("0x2d"),((t,e,n)=>t&&!e&&!!n)),t[$t("0x23")].on($t("0x6"),(()=>{this.fire("insertContentBelow",this.value)})),t[$t("0x29")][$t("0x33")]($t("0x30")).to(this,$t("0x30"),this,$t("0xe"),((t,e)=>t&&!e)),t[$t("0x29")].on($t("0x6"),(()=>{this[$t("0x3b")]($t("0x15"))})),t[$t("0x1a")][$t("0x33")]($t("0x30")).to(this,"isProcessing"),t[$t("0x1a")].on("execute",(()=>{this[$t("0x3b")]($t("0x39"))})),t}[$t("0x4")](){this.value="",this[$t("0x0")]=!1,this[$t("0xe")]=!0,this[$t("0x27")][$t("0x2")]=!0,this[$t("0x2a")][$t("0x2")]=!0,this[$t("0x27")][$t("0xb")]()}finishProcessing(){const t=this.locale;this[$t("0xe")]=!1,this[$t("0x13")]="",this.promptView.reset(),this[$t("0x2d")]&&(this[$t("0x25")][$t("0x8")].label=u(t,$t("0x1f")))}[$t("0x32")](t){const e=this[$t("0x26")];this[$t("0x9")](),this[$t("0x0")]=!0,this.errorView[$t("0x3c")]=t||u(e,$t("0xf")),this[$t("0x2d")]||(this.contentArea[$t("0x2")]=!1)}}const ee=["items","length","isVisible","filter","children","highlightText","labelView"];var ne,ie;ne=ee,ie=361,function(t){for(;--t;)ne.push(ne.shift())}(++ie);const oe=function(t,e){return ee[t-=0]};class re extends o.ListView{filter(t){let e=0,n=0;for(const i of this[oe("0x3")]){const o=i;for(const i of o.items){const o=i[oe("0x0")].first,r=o[oe("0x2")];t?(i[oe("0x5")]=!!o.label.match(t),i[oe("0x5")]&&(r[oe("0x1")](t),n++)):(i[oe("0x5")]=!0,r[oe("0x1")](null),n++),e++}o[oe("0x5")]=!!o[oe("0x3")][oe("0x6")]((t=>t.isVisible))[oe("0x4")]}return{resultsCount:n,totalItemsCount:e}}}var se=n(278),ae=n.n(se),ce=n(692),le={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};ae()(ce.Z,le);ce.Z.locals;var xe=n(488),ue={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};ae()(xe.Z,ue);xe.Z.locals;var de=n(243),he={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};ae()(de.Z,he);de.Z.locals;const me=["aiAssistant.contentAreaCssClass","Search AI command","editor","prompt","isCollapsed","ck-ai-assistant-button ","children","ck-ai-assistant-ui","commands","addMany","replaceContent","label","_aiConnector","map","get","change:isOpen","getData","mapper","locale","AIAssistantUI","getBoundingRect","isNaN","start","aiCommands","_isUIVisible","groupLabel","_isSelectionCollapsed","aiAssistant.uiCssClass","focus","aiAssistant","reset","set","view","getRanges","rawHtml","plugins","AI Assistant","aiAssistant.commands","change","showUI","domConverter","requires","forEach","tableOfContents","groupId","add","editing","init","entries","ck-ai-commands-dropdown ","element","define","join","remove","isOn","end","viewRangeToDom","listenTo","bind","showFakeVisualSelection","context","insertContent","getEarlierVisibleRevision","isEnabled","toViewRange","model","createRange","getRevision","items","execute","_balloon","No commands found","_enableAIBalloonInteractions","hideUI","string","No commands available","text/html","document","insertContentBelow","copy","parent","AI Commands","hideFakeVisualSelection","_formView","_uiCssClass","AIConnector","afterInit","isAtStart","config","showAIAssistant","_aiAssistantController","pluginName","panelView","selection","componentFactory","fire"];var fe,pe;fe=me,pe=285,function(t){for(;--t;)fe.push(fe.shift())}(++pe);const ge=function(t,e){return me[t-=0]},ke=globalThis.DataTransfer;class be extends e.Plugin{static get[ge("0x5e")](){return ge("0x16")}static get[ge("0x2c")](){return[x,ge("0x58"),o.ContextualBalloon]}constructor(t){super(t),t[ge("0x5b")][ge("0x36")]("aiAssistant.uiCssClass",ge("0xa")),t[ge("0x5b")][ge("0x36")](ge("0x3"),"");const e=this[ge("0x5")].config[ge("0x11")](ge("0x1e"));this[ge("0x57")]=ge("0x4d")==typeof e?e:""}[ge("0x32")](){const{editor:t}=this;this.editor[ge("0x5b")][ge("0x36")]("aiAssistant.disabledElements",["media",ge("0x25"),ge("0x2e")]),this[ge("0xf")]=t[ge("0x26")].get(ge("0x58")),this[ge("0x49")]=t[ge("0x26")].get(o.ContextualBalloon),this[ge("0x56")]=null,this[ge("0x22")](ge("0x1b"),!1),this[ge("0x22")](ge("0x1d"),!1),t[ge("0xb")][ge("0x30")](ge("0x5c"),new p(t));const e=t[ge("0xb")].get(ge("0x5c")),n=t[ge("0x26")].get(x);t.ui[ge("0x1")].add(ge("0x1a"),(i=>{const r=(0,o.createDropdown)(i);r[ge("0x22")]({class:ge("0x34")+this[ge("0x57")]});const s=new o.SearchTextView(i,{filteredView:we(t,((t,n)=>{e[ge("0x48")](t,n)})),queryView:{label:u(i,ge("0x4"))},class:"ck-ai-commands-search",infoView:{text:{notFound:{primary:u(i,ge("0x4a"))},noSearchableItems:{primary:u(i,ge("0x4e"))}}}});return r[ge("0x3d")](ge("0x42")).to(e,ge("0x42"),this,ge("0x1d"),((t,e)=>t&&!e)),r[ge("0x5f")][ge("0x9")][ge("0x30")](s),r.buttonView[ge("0x22")]({label:u(i,ge("0x54")),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.346 9.422a.151.151 0 0 1 .284 0l.548 1.484a.152.152 0 0 0 .09.089l1.483.549a.151.151 0 0 1 0 .284l-1.483.548a.151.151 0 0 0-.09.09l-.548 1.483a.152.152 0 0 1-.142.1.151.151 0 0 1-.142-.1l-.549-1.483a.15.15 0 0 0-.09-.09l-1.483-.548a.15.15 0 0 1 0-.284l1.484-.549a.152.152 0 0 0 .089-.09l.549-1.483Z"/><path d="M16.306 1.742a.151.151 0 0 1 .284 0l.549 1.483a.15.15 0 0 0 .089.09l1.483.548a.151.151 0 0 1 .072.229.151.151 0 0 1-.072.055l-1.483.549a.15.15 0 0 0-.09.09l-.548 1.482a.151.151 0 0 1-.284 0l-.549-1.483a.15.15 0 0 0-.09-.09l-1.483-.548a.151.151 0 0 1 0-.284l1.484-.549a.152.152 0 0 0 .09-.089l.548-1.483Z"/><path d="M7.665 1.742a.151.151 0 0 1 .284 0l.549 1.483a.151.151 0 0 0 .09.09l1.482.548a.151.151 0 0 1 .072.229.151.151 0 0 1-.072.055l-1.483.549a.151.151 0 0 0-.09.09L7.95 6.267a.151.151 0 0 1-.284 0l-.549-1.483a.151.151 0 0 0-.089-.09l-1.483-.548a.151.151 0 0 1 0-.284l1.483-.549a.151.151 0 0 0 .09-.089l.548-1.483-.001.001Z"/><path d="M14.72 7.946a.848.848 0 0 0 .25-.591.824.824 0 0 0-.241-.588l-1.943-1.938a.812.812 0 0 0-.588-.241.838.838 0 0 0-.591.25l-1.545 1.539 3.115 3.115 1.542-1.546h.001Z"/><path clip-rule="evenodd" d="M1.19 15.636a.96.96 0 0 1 .281-.679l7.835-7.834 3.121 3.12-7.834 7.835a.959.959 0 0 1-1.358 0l-1.764-1.764a.96.96 0 0 1-.28-.678Zm9.22-5.391-1.121-1.12-6.479 6.478 1.121 1.121 6.479-6.479Z"/></svg>',tooltip:!0}),r.on(ge("0x12"),((t,e,i)=>{i?(s[ge("0x21")](),n[ge("0x3e")]()):this[ge("0x56")]||n[ge("0x55")]()})),r})),t.ui.componentFactory[ge("0x30")](ge("0x20"),(t=>{const n=new o.ButtonView(t);return n[ge("0x22")]({label:u(t,ge("0x27")),tooltip:u(t,ge("0x27")),icon:Yt,class:ge("0x8")+this[ge("0x57")]}),n[ge("0x3d")](ge("0x42")).to(e),n[ge("0x3d")](ge("0x39")).to(this,ge("0x1b")),this[ge("0x3c")](n,"execute",(()=>e.execute())),n})),this.listenTo(this[ge("0x5")][ge("0x44")][ge("0x50")],ge("0x29"),(()=>{const t=this.editor[ge("0x44")].document[ge("0x0")];this._isSelectionCollapsed=t[ge("0x7")]}))}[ge("0x59")](){!function(t){function n(t){return t[ge("0x10")]((t=>String.fromCharCode(t)))[ge("0x37")]("")}(t=>{const i=[1,85,78,115,198,255,50,112,83,87,161],o=[127,34,6,211,167,86,146,199,132,160,18];function r(t){return function(t,e){const i=function(t){const e=atob(t),[i,o]=e[n([115,112,108,105,116])](n([45]));try{if(atob(o))return atob(i)}catch(t){}return e}(t),o=Array[n([102,114,111,109])](function(t){const e=new Uint8Array(t[n([108,101,110,103,116,104])]);for(let i=0;i<t[n([108,101,110,103,116,104])];i++)e[i]=t[n([99,104,97,114,67,111,100,101,65,116])](i);return e}(i)),r=o[n([112,111,112])](),s=o[n([112,111,112])]();return function(t){let e="";for(const i of t)e+=String[n([102,114,111,109,67,104,97,114,67,111,100,101])](i);return e}(function(t,e,i){const o={};o[n([110,117,109,98,101,114,79,102,82,111,117,110,100,115])]={16:10,24:12,32:14},o[n([114,99,111,110])]=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],o[n([83])]=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],o[n([84,49])]=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],o[n([84,50])]=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],o[n([84,51])]=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],o[n([84,52])]=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],o[n([85,49])]=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],o[n([85,50])]=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],o[n([85,51])]=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],o[n([85,52])]=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];const r=new Uint8Array(16);for(let t=15;t>=0;--t)r[t]=i%256,i=parseInt(i/256);let s=null,a=16;const c=new Uint8Array(e),l=[],x=[];!function(){const t=o[n([110,117,109,98,101,114,79,102,82,111,117,110,100,115])][c[n([108,101,110,103,116,104])]];for(let e=0;e<=t;e++)l[n([112,117,115,104])]([0,0,0,0]),x[n([112,117,115,104])]([0,0,0,0]);const e=4*(t+1),i=c[n([108,101,110,103,116,104])]/4,r=u(c);let s;for(let e=0;e<i;e++)s=e>>2,l[s][e%4]=r[e],x[t-s][e%4]=r[e];let a,d=0,h=i;for(;h<e;){a=r[i-1],r[0]^=o[n([83])][a>>16&255]<<24^o[n([83])][a>>8&255]<<16^o[n([83])][255&a]<<8^o[n([83])][a>>24&255]^o[n([114,99,111,110])][d]<<24,d+=1;for(let t=1;t<i/2;t++)r[t]^=r[t-1];a=r[i/2-1],r[i/2]^=o[n([83])][255&a]^o[n([83])][a>>8&255]<<8^o[n([83])][a>>16&255]<<16^o[n([83])][a>>24&255]<<24;for(let t=i/2+1;t<i;t++)r[t]^=r[t-1];let s,c,u=0;for(;u<i&&h<e;)s=h>>2,c=h%4,l[s][c]=r[u],x[t-s][c]=r[u++],h++}for(let e=1;e<t;e++)for(let t=0;t<4;t++)a=x[e][t],x[e][t]=o[n([85,49])][a>>24&255]^o[n([85,50])][a>>16&255]^o[n([85,51])][a>>8&255]^o[n([85,52])][255&a]}();for(let e=0;e<t[n([108,101,110,103,116,104])];e++)16===a&&(s=h(r),a=0,d(r)),t[e]^=s[a++];return t;function u(t){const e=[];for(let i=0;i<t[n([108,101,110,103,116,104])];i+=4)e[n([112,117,115,104])](t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]);return e}function d(t){for(let e=15;e>=0;e--){if(255!==t[e]){t[e]++;break}t[e]=0}}function h(t){const e=l[n([108,101,110,103,116,104])]-1,i=[0,0,0,0];let r=u(t);for(let t=0;t<4;t++)r[t]^=l[0][t];for(let t=1;t<e;t++){for(let e=0;e<4;e++)i[e]=o[n([84,49])][r[e]>>24&255]^o[n([84,50])][r[(e+1)%4]>>16&255]^o[n([84,51])][r[(e+2)%4]>>8&255]^o[n([84,52])][255&r[(e+3)%4]]^l[t][e];r=i[n([115,108,105,99,101])]()}const s=new Uint8Array(16);let a;for(let t=0;t<4;t++)a=l[e][t],s[4*t]=255&(o[n([83])][r[t]>>24&255]^a>>24),s[4*t+1]=255&(o[n([83])][r[(t+1)%4]>>16&255]^a>>16),s[4*t+2]=255&(o[n([83])][r[(t+2)%4]>>8&255]^a>>8),s[4*t+3]=255&(o[n([83])][255&r[(t+3)%4]]^a);return s}}(o,e,s+256*r))}(t,new Uint8Array([...i,29,221,175,90,231,133,239,240,75,180,...o]))}const s=function(){const t=[{[n([105,100])]:1,[n([102,101,97,116,117,114,101,78,97,109,101])]:n([67,111,109,109,101,110,116,115]),[n([112,108,117,103,105,110,78,97,109,101])]:n([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]),[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:n([108,105,99,101,110,115,101,75,101,121]),[n([104,97,110,100,108,101,114])]:n([99,104,101,99,107,76,105,99,101,110,115,101]),[n([99,104,101,99,107,65,108,115,111])]:[{[n([105,100])]:2,[n([102,101,97,116,117,114,101,78,97,109,101])]:n([84,114,97,99,107,32,67,104,97,110,103,101,115]),[n([112,108,117,103,105,110,78,97,109,101])]:n([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]),[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:n([108,105,99,101,110,115,101,75,101,121]),[n([104,97,110,100,108,101,114])]:n([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115]),[n([111,112,116,105,111,110,115])]:{[n([97,105,119,115,103,105,99])]:!0,[n([97,105,116,99,100,103,105,108])]:!0,[n([97,105,114,118,105,105,108])]:!0}}],[n([111,112,116,105,111,110,115])]:{[n([97,105,119,115,103,105,99])]:!0,[n([97,105,116,99,100,103,105,108])]:!0,[n([97,105,114,118,105,105,108])]:!0}},{[n([105,100])]:3,[n([102,101,97,116,117,114,101,78,97,109,101])]:n([80,97,103,105,110,97,116,105,111,110]),[n([112,108,117,103,105,110,78,97,109,101])]:n([80,97,103,105,110,97,116,105,111,110,76,111,111,107,117,112]),[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:n([112,97,103,105,110,97,116,105,111,110,76,105,99,101,110,115,101,75,101,121]),[n([104,97,110,100,108,101,114])]:n([99,104,101,99,107,76,105,99,101,110,115,101])},{[n([105,100])]:4,[n([102,101,97,116,117,114,101,78,97,109,101])]:n([82,101,118,105,115,105,111,110,32,72,105,115,116,111,114,121]),[n([112,108,117,103,105,110,78,97,109,101])]:n([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]),[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:n([108,105,99,101,110,115,101,75,101,121]),[n([104,97,110,100,108,101,114])]:n([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121]),[n([111,112,116,105,111,110,115])]:{[n([97,105,119,115,103,105,99])]:!0,[n([97,105,116,99,100,103,105,108])]:!0,[n([97,105,114,118,105,105,108])]:!0}},{[n([105,100])]:5,[n([102,101,97,116,117,114,101,78,97,109,101])]:n([68,111,99,117,109,101,110,116,32,79,117,116,108,105,110,101]),[n([112,108,117,103,105,110,78,97,109,101])]:n([68,111,99,117,109,101,110,116,79,117,116,108,105,110,101,85,73]),[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:n([100,111,99,117,109,101,110,116,79,117,116,108,105,110,101,76,105,99,101,110,115,101,75,101,121]),[n([104,97,110,100,108,101,114])]:n([99,104,101,99,107,76,105,99,101,110,115,101])},{[n([105,100])]:6,[n([102,101,97,116,117,114,101,78,97,109,101])]:n([70,111,114,109,97,116,32,80,97,105,110,116,101,114]),[n([112,108,117,103,105,110,78,97,109,101])]:n([70,111,114,109,97,116,80,97,105,110,116,101,114,85,73]),[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:n([102,111,114,109,97,116,80,97,105,110,116,101,114,76,105,99,101,110,115,101,75,101,121]),[n([104,97,110,100,108,101,114])]:n([99,104,101,99,107,76,105,99,101,110,115,101])},{[n([105,100])]:7,[n([102,101,97,116,117,114,101,78,97,109,101])]:n([83,108,97,115,104,32,67,111,109,109,97,110,100]),[n([112,108,117,103,105,110,78,97,109,101])]:n([83,108,97,115,104,67,111,109,109,97,110,100,85,73]),[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:n([115,108,97,115,104,67,111,109,109,97,110,100,76,105,99,101,110,115,101,75,101,121]),[n([104,97,110,100,108,101,114])]:n([99,104,101,99,107,76,105,99,101,110,115,101])},{[n([105,100])]:8,[n([102,101,97,116,117,114,101,78,97,109,101])]:n([84,97,98,108,101,32,111,102,32,67,111,110,116,101,110,116,115]),[n([112,108,117,103,105,110,78,97,109,101])]:n([84,97,98,108,101,79,102,67,111,110,116,101,110,116,115,69,100,105,116,105,110,103]),[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:n([116,97,98,108,101,79,102,67,111,110,116,101,110,116,115,76,105,99,101,110,115,101,75,101,121]),[n([104,97,110,100,108,101,114])]:n([99,104,101,99,107,76,105,99,101,110,115,101])},{[n([105,100])]:9,[n([102,101,97,116,117,114,101,78,97,109,101])]:n([84,101,109,112,108,97,116,101]),[n([112,108,117,103,105,110,78,97,109,101])]:n([84,101,109,112,108,97,116,101,85,73]),[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:n([116,101,109,112,108,97,116,101,76,105,99,101,110,115,101,75,101,121]),[n([104,97,110,100,108,101,114])]:n([99,104,101,99,107,76,105,99,101,110,115,101])},{[n([105,100])]:10,[n([102,101,97,116,117,114,101,78,97,109,101])]:n([80,97,115,116,101,32,102,114,111,109,32,79,102,102,105,99,101,32,69,110,104,97,110,99,101,100]),[n([112,108,117,103,105,110,78,97,109,101])]:n([80,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,73,110,108,105,110,101,114]),[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:n([112,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,76,105,99,101,110,115,101,75,101,121]),[n([104,97,110,100,108,101,114])]:n([99,104,101,99,107,76,105,99,101,110,115,101])},{[n([105,100])]:11,[n([102,101,97,116,117,114,101,78,97,109,101])]:n([65,73,32,65,115,115,105,115,116,97,110,116]),[n([112,108,117,103,105,110,78,97,109,101])]:n([65,73,65,115,115,105,115,116,97,110,116,85,73]),[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:n([97,105,76,105,99,101,110,115,101,75,101,121]),[n([104,97,110,100,108,101,114])]:n([99,104,101,99,107,76,105,99,101,110,115,101])}];return function t(e){e[n([102,111,114,69,97,99,104])]((e=>{e[n([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]=1<<e[n([105,100])]-1,e[n([99,104,101,99,107,65,108,115,111])]&&t(e[n([99,104,101,99,107,65,108,115,111])])}))}(t),t}(),a={[n([99,104,101,99,107,76,105,99,101,110,115,101])]:function(t,e){f(m(t,e),e)},[n([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115])]:function(t,e){f(function(t,e){try{if(v(l,n([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))&&t){const i=y(l,n([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))[n([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])];if(parseInt(i)/2>t[n([101,120,112,105,114,97,116,105,111,110,68,97,116,101])])return p(e[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+n([73,110,118,97,108,105,100]))}return m(t,e)}catch(t){return p(e[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+n([73,110,118,97,108,105,100]))}}(t,e),e)},[n([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121])]:function(t,e){const r=o[0]*i[1],s=o[0]*i[2],a=o[2]*i[2];function c(t,e){x(),p(e+n([84,114,105,97,108,76,105,109,105,116,58])+t),window[g()]=t===n([116,105,109,101])?r:s}function x(){const t=l;function e(){v(t,n([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&(y(t,n([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[n([117,110,98,105,110,100])](n([105,115,69,110,97,98,108,101,100])),y(t,n([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[n([105,115,69,110,97,98,108,101,100])]=!1,y(t,n([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[n([117,112,100,97,116,101])]=w,y(t,n([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[n([115,97,118,101,82,101,118,105,115,105,111,110])]=w,t[n([109,111,100,101,108])][n([99,104,97,110,103,101])]=w,t[n([109,111,100,101,108])][n([101,110,113,117,101,117,101,67,104,97,110,103,101])]=w,t[n([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](n([109,111,100,101,108]))),v(t,n([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(y(t,n([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[n([117,110,98,105,110,100])](n([105,115,69,110,97,98,108,101,100])),y(t,n([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[n([105,115,69,110,97,98,108,101,100])]=!1,y(t,n([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[n([99,111,109,112,97,114,101])]=w,y(t,n([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[n([95,103,101,116,68,105,102,102])]=w)}t[n([115,116,97,116,101])]==n([114,101,97,100,121])?e():t[n([111,110,99,101])](n([114,101,97,100,121]),(()=>{if(v(t,n([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&e(),v(t,n([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))){const i=y(t,n([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121])),o=i[ge("0x46")](0),r=i[ge("0x41")](o[n([105,100])]);y(t,n([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[n([99,111,109,112,97,114,101])](o[n([105,100])],r?r[n([105,100])]:null,1).then((()=>e()))}}))}v(l,n([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))&&y(l,n([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[n([115,116,97,116,101])]==n([99,111,110,110,101,99,116,101,100])&&(window[g()]=a),function(t,e){if(t==e[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+n([73,110,118,97,108,105,100]))x();else if(t==e[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+n([84,114,105,97,108])){const t=function(){if(!v(l,n([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const t in window)if(Number[ge("0x18")](Number(t))){if(window[t]===r)return n([116,105,109,101]);if(window[t]===s)return n([114,101,118,105,115,105,111,110,115])}return!1}();t&&c(t,e[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]);const a=function(){let t=o[6]*i[8]*i[6];return v(l,n([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(t/=10),t}();window[n([115,101,116,84,105,109,101,111,117,116])]((()=>{c(n([116,105,109,101]),e[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}),a);const x=y(l,n([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]))[n([95,114,101,118,105,115,105,111,110,115])];x[n([108,101,110,103,116,104])]>=7?c(n([114,101,118,105,115,105,111,110,115]),e[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]):x.on(n([97,100,100]),(()=>{x[n([108,101,110,103,116,104])]>=7&&c(n([114,101,118,105,115,105,111,110,115]),e[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}))}}(function(t,e){try{return function(){if(!v(l,n([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const t in window)if(Number[ge("0x18")](Number(t))&&window[t]===a)return!0;return!1}()?p(e[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+n([86,97,108,105,100])):m(t,e)}catch(t){return p(e[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+n([73,110,118,97,108,105,100]))}}(t,e),e)}},c=t[n([99,111,110,115,116,114,117,99,116,111,114])][n([112,108,117,103,105,110,78,97,109,101])],l=n([99,111,110,116,101,120,116])in t?t[ge("0x3f")]:t[ge("0x5")],x=n([52,48,52,54,50,48,48,56]),u=n([65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57]),d=l[ge("0x5b")][ge("0x11")](n([108,105,99,101,110,115,101,75,101,121])),h=s[n([102,105,110,100])]((t=>t[n([112,108,117,103,105,110,78,97,109,101])]===c));function m(t,e){try{return function(t){if(!v(l,t[n([112,108,117,103,105,110,78,97,109,101])]))return!0;const e=t[n([111,112,116,105,111,110,115])]||{},i=e[n([97,105,119,115,103,105,99])]||!1,o=e[n([97,105,116,99,100,103,105,108])]||!1,r=e[n([97,105,114,118,105,105,108])]||!1;return!(!v(l,n([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))||y(l,n([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[n([115,116,97,116,101])]!=n([99,111,110,110,101,99,116,101,100])||!i)||(!(!v(l,n([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))||y(l,n([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))[n([114,101,115,117,108,116])]!=n([101,110,100])||!o)||!(!v(l,n([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))||y(l,n([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))[n([114,101,115,117,108,116])]!=n([101,110,100])||!r))}(e)?p(e[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+n([86,97,108,105,100])):t&&t[n([97,108,108,111,119,101,100,80,108,117,103,105,110,115])]&e[n([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]?t[n([105,115,73,110,116,101,114,110,97,108])]&&!window[n([111,112,101,110])][n([99,108,111,115,101,100])]||parseInt(x)/2>t[n([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]?p(e[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+n([73,110,118,97,108,105,100])):t[n([105,115,84,114,105,97,108])]?p(e[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+n([84,114,105,97,108])):p(e[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+n([86,97,108,105,100])):p(e[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+n([73,110,118,97,108,105,100]))}catch(t){return p(e[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+n([73,110,118,97,108,105,100]))}}function f(t,r){if(l instanceof e.Context){const e=l;t==r[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+n([73,110,118,97,108,105,100])?k(e):t==r[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+n([84,114,105,97,108])&&window[n([115,101,116,84,105,109,101,111,117,116])]((()=>{k(e),p(r[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+n([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101]))}),o[6]*i[8]*i[6]),e[n([101,100,105,116,111,114,115])][n([111,110])](n([97,100,100]),((e,i)=>{t!=r[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+n([73,110,118,97,108,105,100])&&t!=r[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+n([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101])&&t!=r[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+n([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])||b(i)}))}else{const e=l;t==r[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+n([73,110,118,97,108,105,100])?b(e):t==r[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+n([84,114,105,97,108])&&e[n([111,110])](n([114,101,97,100,121]),(()=>{let t=0;e[n([109,111,100,101,108])][n([111,110])](n([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),((i,o)=>{o[0][n([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&t++,504===t&&(b(e),p(r[n([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+n([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])),i[n([111,102,102])]())}),{priority:n([104,105,103,104,101,115,116])})}))}}function p(t){const e=g();return l[e]=t,t}function g(){const t=String(window[n([112,101,114,102,111,114,109,97,110,99,101])][n([110,111,119])]())[n([114,101,112,108,97,99,101])](n([46]),"");let e="";for(let i=0;i<t[n([108,101,110,103,116,104])];i+=2){let o=parseInt(t[n([115,117,98,115,116,114,105,110,103])](i,i+2));o>=u[n([108,101,110,103,116,104])]&&(o-=u[n([108,101,110,103,116,104])]),e+=u[o]}return e}function k(t){for(const e of t[n([101,100,105,116,111,114,115])])b(e);y(t,n([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[n([115,119,105,116,99,104,82,101,97,100,79,110,108,121])](!0),y(t,n([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[n([115,119,105,116,99,104,82,101,97,100,79,110,108,121])]=w}function b(t){function e(){t[n([109,111,100,101,108])][n([99,104,97,110,103,101])]=w,t[n([109,111,100,101,108])][n([101,110,113,117,101,117,101,67,104,97,110,103,101])]=w,t[n([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](n([109,111,100,101,108]))}t[n([115,116,97,116,101])]==n([114,101,97,100,121])?e():t[n([111,110,99,101])](n([114,101,97,100,121]),(()=>e()))}function w(){return null}function v(t,e){return t[n([112,108,117,103,105,110,115])][n([104,97,115])](e)}function y(t,e){return t[n([112,108,117,103,105,110,115])][n([103,101,116])](e)}h&&function t(e,i){a[i[n([104,97,110,100,108,101,114])]](e,i),i[n([99,104,101,99,107,65,108,115,111])]&&i[n([99,104,101,99,107,65,108,115,111])][n([102,105,108,116,101,114])]((t=>v(l,t[n([112,108,117,103,105,110,78,97,109,101])])))[n([102,111,114,69,97,99,104])]((n=>t(e,n)))}(function(t){try{const e=r(t),i=JSON[n([112,97,114,115,101])](e),o=parseInt(i[n([49])]),s=parseInt(i[n([51])]),a=parseInt(i[n([52])])||0,c=parseInt(i[n([53])])||0;return{[n([97,108,108,111,119,101,100,80,108,117,103,105,110,115])]:a,[n([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]:o,[n([105,115,84,114,105,97,108])]:s,[n([105,115,73,110,116,101,114,110,97,108])]:c}}catch(t){return null}}(d),h)})(t)}(this)}[ge("0x2a")](e="",n="",i=this[ge("0x5")][ge("0x44")][ge("0x50")][ge("0x0")]){const o=this[ge("0x5")],r=o.editing[ge("0x23")],s=o.plugins.get(x);if(this[ge("0x56")])return;s.showFakeVisualSelection();const a=new ke,c=new ClipboardEvent(ge("0x52"),{clipboardData:a}),l=new g.DataTransfer(a),u=new g.DomEventData(r,c,{dataTransfer:l});r[ge("0x50")][ge("0x2")](ge("0x52"),u);const d=l[ge("0x13")](ge("0x4f"));this._formView=new te(this.editor[ge("0x15")],n,this[ge("0x57")],o[ge("0x5b")][ge("0x11")](ge("0x3"))),this[ge("0x5d")]=new E(this._aiConnector,this[ge("0x56")],d,e),this._enableAIBalloonInteractions(),this[ge("0x49")][ge("0x30")]({view:this[ge("0x56")],position:{target:()=>{const e=Array.from(o[ge("0x44")][ge("0x50")][ge("0x0")][ge("0x24")]())[ge("0x10")]((t=>!t[ge("0x7")]&&t.end[ge("0x5a")]?o.model[ge("0x45")](t[ge("0x19")],o[ge("0x44")].createPositionBefore(t[ge("0x3a")][ge("0x53")])):t))[ge("0x10")]((t=>o.editing[ge("0x14")][ge("0x43")](t)))[ge("0x10")]((t=>o[ge("0x31")].view[ge("0x2b")][ge("0x3b")](t)))[ge("0x10")]((e=>new t.Rect(e)));return t.Rect[ge("0x17")](e)}}}),this._formView[ge("0x1f")](),this[ge("0x3c")](this._formView,ge("0xd"),((t,e)=>{this[ge("0x4c")](),s[ge("0x40")](e)})),this[ge("0x3c")](this[ge("0x56")],ge("0x51"),((t,e)=>{this[ge("0x4c")](),s[ge("0x51")](e)})),this[ge("0x1b")]=!0}hideUI(){const t=this[ge("0x5")][ge("0x26")][ge("0x11")](x);this[ge("0x56")]&&(this[ge("0x49")][ge("0x38")](this[ge("0x56")]),t[ge("0x55")](),this._formView=null,this.editor[ge("0x31")].view.focus()),this._isUIVisible=!1}[ge("0x4b")](){(0,o.clickOutsideHandler)({emitter:this[ge("0x56")],activator:()=>!!this._formView,contextElements:()=>[this[ge("0x49")][ge("0x23")][ge("0x35")]],callback:()=>this[ge("0x4c")]()})}}function we(t,e){const n=new re(t[ge("0x15")]),i=function(t){const e={};return t[ge("0x2d")]((t=>{const n=t[ge("0x1c")]||t[ge("0x2f")],i=t.commands;e[n]=i})),e}(t[ge("0x5b")][ge("0x11")](ge("0x28"))||[]);return Object[ge("0x33")](i).forEach((([i,r])=>{const s=r[ge("0x10")]((n=>function(t,e,n){const i=new o.ListItemView,r=new Rt,s=new o.ButtonView(t,r);return i[ge("0x9")][ge("0x30")](s),s[ge("0x22")]({label:n[ge("0xe")],withText:!0}),s.on(ge("0x48"),(()=>{e(n[ge("0x6")],n[ge("0xe")])})),i}(t[ge("0x15")],e,n)));n.items.add(function(t,e){const n=new o.ListItemGroupView;return n[ge("0xe")]=t,n[ge("0x47")][ge("0xc")](e),n}(i,s))})),n}const ve=["casual","aiAssistant.removeCommands","aiLicenseKeyTrial","journalism","translate","Improve using direct language, using only the essential information.","makeLonger","Professional","legal","translatePortuguese","Translate the content to English language.","Direct","Confident","destroy","direct","translateHindi","_licenseKeyCheckInterval","Rewrite this content as a business professional with formal language.","ai-invalid-license-key","AIAssistant","summarize","aiAssistant.commands","Journalism","Simplified Chinese","includes","German","Arabic","Translate the content to Arabic language.","commands","Translate to %0","Simplify the writing style of this content and reduce the complexity, so that the content is easy to understand.","makeShorter","push","Summarize","translateGerman","Improve using polished, formal, and respectful language to convey professional expertise and competence.","aiLicenseKeyValid","Translate the content to German language.","config","changeStyle","aiLicenseKeyTrialLimit:operations","changeTone","Rewrite this content as a legal professional using valid legal terminology.","Rewrite this content as a journalist using engaging language to convey the importance of the information.","filter","Business","Legal","editOrReview","Make longer","locale","info","Rewrite this content as a poem using poetic techniques without losing the original meaning.","find","forEach","translateEnglish","Summarize this content into one paragraph of text. Include only the key ideas and conclusions. Keep it short. Do not keep original text formatting.","Continue","aiLicenseKeyInvalid","Make shorter","Translate the content to Spanish language.","poetic","Translate the content to Hindi language.","init","define","generate","get","requires","translateChinese","English","translateFrench","Generate from selection","Portuguese","Improve this content by using descriptive language and inserting more information and more detailed explanations.","simplifyLanguage","Fix spelling mistakes, use proper grammar and apply good writing practices. Do not lose the original meaning.","friendly","Translate","groupId","Friendly","Improve using casual, informal language to convey a casual conversation with a real person.","Change style","Improve writing","business","Change tone","Simplify language","Remove any repetitive, redundant, or non-essential writing in this content without changing the meaning or losing any key information.","set","Edit or review","Spanish","translateArabic","improveWriting","Start with the provided content and write at the end of it continuing this topic. Keep the added part short.","concat","French","licenseKey","continue","Translate the content to Portuguese language.","professional","Hindi","translateSpanish","Casual","Improve using compelling, optimistic language to convey confidence in the writing."];var ye,_e;ye=ve,_e=457,function(t){for(;--t;)ye.push(ye.shift())}(++_e);const Ae=function(t,e){return ve[t-=0]};class Ce extends e.Plugin{static get[Ae("0x11")](){return[be,x,y]}static get pluginName(){return Ae("0x48")}constructor(t){super(t);const e=t[Ae("0x5b")];var n;e.define("aiAssistant.commands",[{groupId:"editOrReview",groupLabel:u(n=t[Ae("0x0")],Ae("0x26")),commands:[{id:Ae("0x29"),label:u(n,Ae("0x20")),prompt:Ae("0x19")},{id:Ae("0x54"),label:u(n,Ae("0x9")),prompt:Ae("0x24")},{id:Ae("0x3b"),label:u(n,Ae("0x65")),prompt:"Improve this content by using descriptive language and inserting more information and more detailed explanations."},{id:Ae("0x18"),label:u(n,Ae("0x23")),prompt:"Simplify the writing style of this content and reduce the complexity, so that the content is easy to understand."}]},{groupId:Ae("0xf"),groupLabel:u(n,Ae("0x15")),commands:[{id:"summarize",label:u(n,"Summarize"),prompt:Ae("0x6")},{id:Ae("0x2e"),label:u(n,Ae("0x7")),prompt:Ae("0x2a")}]},{groupId:"changeTone",groupLabel:u(n,Ae("0x22")),commands:[{id:Ae("0x30"),label:u(n,Ae("0x3c")),prompt:Ae("0x58")},{id:Ae("0x35"),label:u(n,Ae("0x33")),prompt:"Improve using casual, informal language to convey a casual conversation with a real person."},{id:Ae("0x43"),label:u(n,"Direct"),prompt:Ae("0x3a")},{id:"confident",label:u(n,Ae("0x41")),prompt:Ae("0x34")},{id:"friendly",label:u(n,Ae("0x1d")),prompt:"Improve using friendly, comforting language, to convey understanding and empathy."}]},{groupId:"changeStyle",groupLabel:u(n,Ae("0x1f")),commands:[{id:Ae("0x21"),label:u(n,"Business"),prompt:"Rewrite this content as a business professional with formal language."},{id:"legal",label:u(n,Ae("0x63")),prompt:Ae("0x5f")},{id:Ae("0x38"),label:u(n,Ae("0x4b")),prompt:Ae("0x60")},{id:Ae("0xb"),label:u(n,"Poetic"),prompt:Ae("0x2")}]},{groupId:Ae("0x39"),groupLabel:u(n,Ae("0x1b")),commands:[{id:Ae("0x5"),label:u(n,Ae("0x52"),[u(n,Ae("0x13"))]),prompt:Ae("0x3f")},{id:"translateSpanish",label:u(n,Ae("0x52"),[u(n,"Spanish")]),prompt:Ae("0xa")},{id:Ae("0x3e"),label:u(n,Ae("0x52"),[u(n,Ae("0x16"))]),prompt:Ae("0x2f")},{id:"translateGerman",label:u(n,Ae("0x52"),[u(n,Ae("0x4e"))]),prompt:"Translate the content to German language."},{id:Ae("0x14"),label:u(n,Ae("0x52"),[u(n,"French")]),prompt:"Translate the content to French language."},{id:Ae("0x12"),label:u(n,Ae("0x52"),[u(n,Ae("0x4c"))]),prompt:"Translate the content to Simplified Chinese language."},{id:Ae("0x44"),label:u(n,Ae("0x52"),[u(n,Ae("0x31"))]),prompt:Ae("0xc")},{id:Ae("0x28"),label:u(n,"Translate to %0",[u(n,Ae("0x4f"))]),prompt:Ae("0x50")}]}]),e[Ae("0xe")]("aiAssistant.extraCommandGroups",[]),e[Ae("0xe")](Ae("0x36"),[]);const i=e[Ae("0x10")](Ae("0x4a")),o=e[Ae("0x10")]("aiAssistant.extraCommandGroups"),r=e[Ae("0x10")](Ae("0x36"));o[Ae("0x4")]((t=>{const e=i[Ae("0x3")]((e=>e[Ae("0x1c")]===t[Ae("0x1c")]));e?e[Ae("0x51")]=e[Ae("0x51")][Ae("0x2b")](t.commands):i[Ae("0x55")](t)})),i[Ae("0x4")]((t=>{t[Ae("0x51")]=t[Ae("0x51")][Ae("0x61")]((t=>!r[Ae("0x4d")](t.id)))})),e[Ae("0x25")]("aiAssistant.commands",i)}[Ae("0xd")](){const e=this.editor;this[Ae("0x2d")]=e.config[Ae("0x10")](Ae("0x2d")),this._licenseKeyCheckInterval=setInterval((()=>{let n;for(const t in e){const i=t,o=e[i];if(Ae("0x37")===o||Ae("0x8")===o||Ae("0x59")===o||Ae("0x5d")===o){delete e[i],n=o;break}}if(Ae("0x8")===n)throw clearInterval(this[Ae("0x45")]),new t.CKEditorError(Ae("0x47"),null);if(Ae("0x37")===n&&console[Ae("0x1")]("You are using the trial version of CKEditor 5 ai plugin with limited usage. Make sure you will not use it in the production environment."),Ae("0x5d")===n)throw clearInterval(this[Ae("0x45")]),new t.CKEditorError("ai-trial-license-key-reached-limit-changes",null);Ae("0x59")===n&&clearInterval(this._licenseKeyCheckInterval)}),1e3)}[Ae("0x42")](){this._licenseKeyCheckInterval&&clearInterval(this[Ae("0x45")])}}})(),(window.CKEditor5=window.CKEditor5||{}).ai=i})();
5
+ */(()=>{var t={488:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});var n=i(758),o=i.n(n)()((function(t){return t[1]}));o.push([t.id,":root{--ck-ai-dropdown-view-width:250px;--ck-ai-dropdown-view-list-max-height:250px}.ck.ck-ai-commands-search{width:var(--ck-ai-dropdown-view-width)}.ck.ck-ai-commands-search>.ck-labeled-field-view{padding:var(--ck-spacing-large)}.ck.ck-ai-commands-search>.ck-labeled-field-view .ck-input{min-width:unset}.ck.ck-ai-commands-search>.ck-search__results{border-top:1px solid var(--ck-color-base-border)}.ck.ck-ai-commands-search>.ck-search__results>.ck-list{max-height:var(--ck-ai-dropdown-view-list-max-height);overflow:auto}",""]);const r=o},243:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});var n=i(758),o=i.n(n)()((function(t){return t[1]}));o.push([t.id,":root{--ck-ai-form-view-width:470px;--ck-ai-form-content-height:126px;--ck-ai-form-content-background:#fafafa;--ck-ai-form-history-font-size:.9em;--ck-ai-form-error-background:var(--ck-color-light-red)}.ck .ck-ai-form{width:var(--ck-ai-form-view-width)}@media screen and (max-width:600px){.ck .ck-ai-form{--ck-ai-form-view-width:350px}}.ck .ck-ai-form .ck-ai-form-content{padding:var(--ck-spacing-large);width:100%}.ck .ck-ai-form .ck-ai-form-content .ck-input{width:100%}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area-wrapper{border:1px solid var(--ck-color-base-border);border-radius:2px;max-height:var(--ck-ai-form-content-height);overflow-y:auto;width:100%}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area-wrapper:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area{background-color:var(--ck-ai-form-content-background);display:flex}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area.ck-ai-form__content-area--processing{--ck-color-text:var(--ck-color-input-disabled-text);background-color:var(--ck-color-input-disabled-background)}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field{box-sizing:content-box;min-height:calc(var(--ck-line-height-base)*var(--ck-font-size-base));padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);white-space:normal;width:100%}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field{padding-right:0}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field{padding-left:0}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field>*{color:inherit;white-space:normal}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-spinner-container{margin-right:var(--ck-spacing-medium)}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-spinner-container{margin-left:var(--ck-spacing-medium)}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button-wrapper{display:flex;flex-direction:column-reverse;padding-left:2px}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button{bottom:1px;min-height:unset;min-width:unset;padding:4px;position:sticky;right:1px}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button svg{--ck-icon-size:16px}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button.ck-ai-form__copy-button--copied{color:inherit}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__toolbar{border:none;margin-bottom:calc(var(--ck-spacing-medium)*2);margin-top:var(--ck-spacing-medium);padding:0}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__loader{align-items:center;display:flex}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__loader .ck-spinner{box-sizing:border-box}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete{display:flex;justify-content:space-between}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view{flex-grow:1}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit{margin-left:var(--ck-spacing-medium)}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit{margin-right:var(--ck-spacing-medium)}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit{border-color:var(--ck-ai-form-submit-button-border-color);color:var(--ck-ai-form-submit-button-text-color)}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit.ck-disabled{border-color:var(--ck-ai-form-submit-button-disabled-border-color)}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-ai-form__toggle-history{font-size:var(--ck-font-size-tiny);position:absolute}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-ai-form__toggle-history{right:var(--ck-spacing-medium)}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-ai-form__toggle-history{left:var(--ck-spacing-medium)}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-ai-form__toggle-history{bottom:var(--ck-spacing-small);min-height:unset;min-width:unset;padding:4px;top:var(--ck-spacing-small)}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-textarea{padding-right:30px}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-textarea{padding-left:30px}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group{grid-column-gap:0;grid-row-gap:0;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>span{grid-area:1/1/2/2}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-button{background:none;font-size:var(--ck-ai-form-history-font-size);grid-area:1/2/2/3;justify-self:start;margin:var(--ck-spacing-medium) 0 0;min-height:auto;padding:0}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-button .ck-button__label{line-height:inherit}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-button .ck-button__label:hover{text-decoration:underline}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-list{grid-area:2/1/3/3}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-list .ck-list__item .ck-button .ck-button__label{font-size:var(--ck-ai-form-history-font-size);line-height:var(--ck-line-height-base);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ck .ck-ai-form .ck-ai-form__error{align-items:center;background-color:var(--ck-ai-form-error-background);border-radius:2px;color:var(--ck-color-base-text);display:flex;justify-content:center;margin-bottom:var(--ck-spacing-medium);padding:var(--ck-spacing-medium)}",""]);const r=o},692:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});var n=i(758),o=i.n(n)()((function(t){return t[1]}));o.push([t.id,":root{--ck-ai-form-submit-button-text-color:var(--ck-color-text);--ck-ai-form-submit-button-border-color:transparent;--ck-ai-form-submit-button-disabled-border-color:transparent;--ck-ai-toolbar-button-hover-color:var(--ck-color-text)}.ck-ai-assistant-ui_theme{--ck-color-button-default-hover-background:#f3ecff;--ck-color-button-default-active-background:#f3ecff;--ck-color-button-on-background:#f3ecff;--ck-color-button-on-hover-background:#e8dff7;--ck-color-button-on-active-background:#f3ecff;--ck-color-button-on-disabled-background:#f3ecff;--ck-color-button-on-color:#743ccd;--ck-color-button-action-background:#743ccd;--ck-color-button-action-hover-background:#6c34c9;--ck-color-button-action-active-background:#6c34c9;--ck-color-button-action-disabled-background:#ba9de6;--ck-color-list-button-hover-background:#f3ecff;--ck-ai-form-content-background:#f9f9f9;--ck-ai-form-submit-button-text-color:var(--ck-color-button-on-color);--ck-ai-form-submit-button-border-color:var(--ck-color-button-action-background);--ck-ai-form-submit-button-disabled-border-color:var(--ck-color-button-action-disabled-background);--ck-ai-toolbar-button-hover-color:var(--ck-color-button-on-color)}.ck-ai-assistant-button:hover,.ck-ai-commands-dropdown>.ck-button:hover{color:var(--ck-ai-toolbar-button-hover-color)}.ck span.ck-fake-ai-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-ai-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}.ck.ck-content.ck-ai-form__content-field h2{font-size:1.3em}.ck.ck-content.ck-ai-form__content-field h3{font-size:1.2em}.ck.ck-content.ck-ai-form__content-field h4,.ck.ck-content.ck-ai-form__content-field h5,.ck.ck-content.ck-ai-form__content-field h6{font-size:1.1em}.ck.ck-content.ck-ai-form__content-field h2,.ck.ck-content.ck-ai-form__content-field h3,.ck.ck-content.ck-ai-form__content-field h4,.ck.ck-content.ck-ai-form__content-field h5,.ck.ck-content.ck-ai-form__content-field h6,.ck.ck-content.ck-ai-form__content-field ol,.ck.ck-content.ck-ai-form__content-field p,.ck.ck-content.ck-ai-form__content-field ul{line-height:1.7em;margin-block-end:.5em;margin-block-start:.5em}.ck.ck-content.ck-ai-form__content-field>:first-child{margin-top:0}.ck.ck-content.ck-ai-form__content-field>:last-child{margin-bottom:0}",""]);const r=o},758:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=t(e);return e[2]?"@media ".concat(e[2]," {").concat(i,"}"):i})).join("")},e.i=function(t,i,n){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(n)for(var r=0;r<this.length;r++){var s=this[r][0];null!=s&&(o[s]=!0)}for(var a=0;a<t.length;a++){var c=[].concat(t[a]);n&&o[c[0]]||(i&&(c[2]?c[2]="".concat(i," and ").concat(c[2]):c[2]=i),e.push(c))}},e}},278:(t,e,i)=>{"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},r=function(){var t={};return function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}t[e]=i}return t[e]}}(),s=[];function a(t){for(var e=-1,i=0;i<s.length;i++)if(s[i].identifier===t){e=i;break}return e}function c(t,e){for(var i={},n=[],o=0;o<t.length;o++){var r=t[o],c=e.base?r[0]+e.base:r[0],l=i[c]||0,x="".concat(c," ").concat(l);i[c]=l+1;var u=a(x),d={css:r[1],media:r[2],sourceMap:r[3]};-1!==u?(s[u].references++,s[u].updater(d)):s.push({identifier:x,updater:p(d,e),references:1}),n.push(x)}return n}function l(t){var e=document.createElement("style"),n=t.attributes||{};if(void 0===n.nonce){var o=i.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(t){e.setAttribute(t,n[t])})),"function"==typeof t.insert)t.insert(e);else{var s=r(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e)}return e}var x,u=(x=[],function(t,e){return x[t]=e,x.filter(Boolean).join("\n")});function d(t,e,i,n){var o=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(t.styleSheet)t.styleSheet.cssText=u(e,o);else{var r=document.createTextNode(o),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(r,s[e]):t.appendChild(r)}}function h(t,e,i){var n=i.css,o=i.media,r=i.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var m=null,f=0;function p(t,e){var i,n,o;if(e.singleton){var r=f++;i=m||(m=l(e)),n=d.bind(null,i,r,!1),o=d.bind(null,i,r,!0)}else i=l(e),n=h.bind(null,i,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(i)};return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var i=c(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var n=0;n<i.length;n++){var o=a(i[n]);s[o].references--}for(var r=c(t,e),l=0;l<i.length;l++){var x=a(i[l]);0===s[x].references&&(s[x].updater(),s.splice(x,1))}i=r}}}},704:(t,e,i)=>{t.exports=i(79)("./src/core.js")},492:(t,e,i)=>{t.exports=i(79)("./src/engine.js")},273:(t,e,i)=>{t.exports=i(79)("./src/ui.js")},209:(t,e,i)=>{t.exports=i(79)("./src/utils.js")},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var r=e[n]={id:n,exports:{}};return t[n](r,r.exports,i),r.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nc=void 0;var n={};(()=>{"use strict";i.r(n),i.d(n,{AIAssistant:()=>Oe});var t=i(209),e=i(704),o=i(273);const r=["toView","canEditAt","insertContentBelow","data","hideFakeVisualSelection","ck-fake-ai-selection_collapsed","model","markerToElement","pluginName","conversion","document","toModel","editor","getLastMatchingPosition","getLastPosition","span","editingDowncast","processor","has","markers","getSelectedBlocks","selection","isAtEnd","createRange","addMarker","from","isContent","for","insertContent","init","pop","updateMarker","change","start","length"];var s,a;s=r,a=331,function(t){for(;--t;)s.push(s.shift())}(++a);const c=function(t,e){return r[t-=0]},l="ai-ui";class x extends e.Plugin{static get[c("0x1b")](){return"AIAssistantEditing"}[c("0xd")](){const{editor:t}=this;t[c("0x1c")][c("0xb")](c("0x0")).markerToHighlight({model:l,view:{classes:["ck-fake-ai-selection"]}}),t[c("0x1c")][c("0xb")](c("0x0"))[c("0x1a")]({model:l,view:{name:c("0x22"),classes:["ck-fake-ai-selection",c("0x18")]}})}showFakeVisualSelection(){const t=this.editor[c("0x19")];t[c("0x10")]((e=>{const i=t.document[c("0x5")].getFirstRange();if(t[c("0x3")][c("0x2")](l))e[c("0xf")](l,{range:i});else if(i[c("0x11")][c("0x6")]){const n=i[c("0x11")][c("0x20")]((({item:e})=>!t.schema[c("0xa")](e)),{boundaries:i});e.addMarker(l,{usingOperation:!1,affectsData:!1,range:e[c("0x7")](n,i.end)})}else e[c("0x8")](l,{usingOperation:!1,affectsData:!1,range:i})}))}[c("0x17")](){this.editor.model[c("0x10")]((t=>{t.removeMarker(l)}))}[c("0xc")](t,e){const i=e||this[c("0x1f")].model[c("0x1d")][c("0x5")];if(!this[c("0x1f")].model[c("0x14")](i))return;const n=this.editor.data[c("0x1")][c("0x13")](t),o=this[c("0x1f")][c("0x16")][c("0x1e")](n);this[c("0x1f")][c("0x19")][c("0x10")]((t=>{const e=this[c("0x1f")].model[c("0xc")](o,i);e&&t.setSelection(e)}))}[c("0x15")](t){const{model:e}=this[c("0x1f")],i=Array[c("0x9")](e.document.selection[c("0x4")]()),n=i[c("0x12")]?e.createPositionAfter(i[c("0xe")]()):e[c("0x1d")][c("0x5")][c("0x21")]();this.insertContent(t,n)}}function u(t,e,i){const n=t.t;switch(e){case"Edit or review":return n("Edit or review");case"Improve writing":return n("Improve writing");case"Make shorter":return n("Make shorter");case"Make longer":return n("Make longer");case"Simplify language":return n("Simplify language");case"Generate from selection":return n("Generate from selection");case"Summarize":return n("Summarize");case"Continue":return n("Continue");case"Change tone":return n("Change tone");case"Professional":return n("Professional");case"Casual":return n("Casual");case"Direct":return n("Direct");case"Confident":return n("Confident");case"Friendly":return n("Friendly");case"Change style":return n("Change style");case"Business":return n("Business");case"Legal":return n("Legal");case"Journalism":return n("Journalism");case"Poetic":return n("Poetic");case"Translate":return n("Translate");case"Translate to %0":return n("Translate to %0",i);case"English":return n("English");case"Spanish":return n("Spanish");case"German":return n("German");case"Portuguese":return n("Portuguese");case"French":return n("French");case"Simplified Chinese":return n("Simplified Chinese");case"Hindi":return n("Hindi");case"Arabic":return n("Arabic");case"AI Assistant":return n("AI Assistant");case"AI Commands":return n("AI Commands");case"Ask AI to edit or generate":return n("Ask AI to edit or generate");case"Ask AI to improve generated text":return n("Ask AI to improve generated text");case"Copy":return n("Copy");case"Submit":return n("Submit");case"Insert below":return n("Insert below");case"Try again":return n("Try again");case"Stop":return n("Stop");case"AI is writing...":return n("AI is writing...");case"History":return n("History");case"Empty history":return n("Empty history");case"Ask AI and your prompts will be listed here for you to use later.":return n("Ask AI and your prompts will be listed here for you to use later.");case"Prompt history":return n("Prompt history");case"Search AI command":return n("Search AI command");case"No commands found":return n("No commands found");case"No commands available":return n("No commands available");case"Clear":return n("Clear");case"AI_REPLACE_CONTENT":return n({id:"AI_REPLACE_CONTENT",string:"Replace"});case"AI_INSERT_CONTENT":return n({id:"AI_INSERT_CONTENT",string:"Insert"});case"AI_ERROR_AUTH_REQUEST":return n({id:"AI_ERROR_AUTH_REQUEST",string:"Authorization request failed"});case"AI_ERROR_CONTEXT_LENGTH":return n({id:"AI_ERROR_CONTEXT_LENGTH",string:"Selected content is too long"});case"AI_ERROR_MODERATION":return n({id:"AI_ERROR_MODERATION",string:"Requested query does not pass moderation rules"});case"AI_ERROR_FAILED":return n({id:"AI_ERROR_FAILED",string:"Failed to communicate with the AI service"});default:return e}}const d=["aiAssistant.disabledElements","config","document","includes","selection","showUI","element","model","refresh","isEnabled","editor","plugins","get","name"];var h,m;h=d,m=353,function(t){for(;--t;)h.push(h.shift())}(++m);const f=function(t,e){return d[t-=0]};class p extends e.Command{[f("0x5")](){const t=this.editor[f("0x4")][f("0xd")][f("0x1")],e=this[f("0x7")][f("0xc")][f("0x9")](f("0xb"));for(const i of t.getRanges())for(const t of i.getItems())if(t.is(f("0x3"))&&e[f("0x0")](t[f("0xa")]))return void(this.isEnabled=!1);this[f("0x6")]=!0}execute(t="",e=""){this[f("0x7")][f("0x8")][f("0x9")](Ie)[f("0x2")](t,e)}}var g=i(492);const k=["AI_ERROR_AUTH_REQUEST","length","https://api.openai.com/v1/chat/completions","data","define","AIConnector","locale","aiAssistant.requestParameters.temperature","text","POST","catch","replace","pluginName","[DONE]","system","reject","_apiUrl","AIRequestError","Instruction:\n","content","toView","aiAssistant.requestParameters.stream","model","aiAssistant.requestParameters.model","sendPrompt","adapter","text/html","includes","name","Authorization","user","push","_normalizeResponseHeadings","string","get","aiAssistant","_xmlSerializer","aborted","max_tokens","_abortController","stream","split","aiAssistant.apiUrl","config","Bearer ","abort","match","delta","aiconnector-send-prompt-failed","document","editor","resolve","filter","_requestParameters","parseFromString","json","AI_ERROR_CONTEXT_LENGTH","application/json","serializeToString","stringify","_prepareMessages","Your task is to generate HTML content accordingly to the given instruction. Never include <img> tag in your response even if asked for. Your answer must be a well-structured and properly formatted HTML code. Answer only with the generated HTML content. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.","startsWith","_isBufferIncomplete","_parseAndNormalizeContent","top_p","_readStreamableResponse","signal","rename","view","processor","context_length_exceeded","_authKey","AbortError","decode","_domParser","authKey","temperature","element"];var b,w;b=k,w=304,function(t){for(;--t;)b.push(b.shift())}(++w);const v=function(t,e){return k[t-=0]};class _ extends e.Plugin{static get[v("0x18")](){return v("0x11")}constructor(t){super(t),t[v("0x37")][v("0x10")](v("0x36"),v("0xe")),t[v("0x37")][v("0x10")](v("0x23"),"gpt-3.5-turbo"),t.config[v("0x10")]("aiAssistant.requestParameters.max_tokens",2e3),t.config[v("0x10")](v("0x13"),1),t[v("0x37")].define("aiAssistant.requestParameters.top_p",1),t[v("0x37")][v("0x10")](v("0x21"),!0);const e=t[v("0x37")][v("0x2e")](v("0x36")),i=t[v("0x37")][v("0x2e")](v("0x2f"))[v("0x9")],n=t.config.get("aiAssistant.requestParameters");this[v("0x33")]=new AbortController,this[v("0x25")]=new y(t,e,n,i)}async processPrompt(e,i,n){const{systemMessage:o,userMessage:r}=this[v("0x48")](e,i);return this[v("0x25")].sendPrompt(o,r,this[v("0x33")].signal,n)[v("0x16")]((e=>{if(e instanceof A)return Promise.reject(e);if(v("0x6")==e[v("0x28")])return Promise[v("0x3f")]();throw console.error(e),new t.CKEditorError(v("0x3c"),null)}))}abort(){this[v("0x33")][v("0x0")][v("0x31")]||(this[v("0x33")][v("0x39")](),this[v("0x33")]=new AbortController)}[v("0x48")](t,e){let i,n;return e?(i="Your task is to execute the instruction using the provided HTML content. Follow the instruction closely. Your answer must be a properly formatted HTML code. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.",n=v("0x1e")+t+"\nYou must keep the text formatting.\n\nContent:\n"+(e[v("0x4a")]("<")?e:"<span>"+e+"</span>")):(i=v("0x49"),n=t),{systemMessage:i,userMessage:n}}}class y{constructor(t,e,i,n){this.editor=t,this[v("0x1c")]=e,this._authKey=n,this[v("0x41")]=i,this[v("0x8")]=new DOMParser,this[v("0x30")]=new XMLSerializer}async[v("0x24")](t,e,i,n){const o=this[v("0x3e")][v("0x12")],r={"Content-Type":v("0x45")};if(v("0x2d")==typeof this[v("0x5")])r[v("0x29")]=v("0x38")+this[v("0x5")];else if(this[v("0x5")])try{const t=await this[v("0x5")]();r[v("0x29")]=v("0x38")+t}catch(t){return Promise.reject(new A(u(o,v("0xc"))))}const s={model:this[v("0x41")][v("0x22")],messages:[{role:v("0x1a"),content:t},{role:v("0x2a"),content:e}],stream:this[v("0x41")][v("0x34")],max_tokens:this._requestParameters[v("0x32")],temperature:this[v("0x41")][v("0xa")],top_p:this[v("0x41")][v("0x4d")]};this[v("0x41")][v("0x2a")]&&(s[v("0x2a")]=this[v("0x41")].user);const a={method:v("0x15"),headers:r,body:JSON[v("0x47")](s),signal:i},c=await fetch(this[v("0x1c")],a);if(c.ok)return this[v("0x41")][v("0x34")]?await this[v("0x4e")](c,n):await this._readStaticResponse(c,n),Promise.resolve();{const t=await c[v("0x14")]();return t[v("0x27")](v("0x4"))?Promise[v("0x1b")](new A(u(o,v("0x44")))):t[v("0x27")]("Moderation")?Promise.reject(new A(u(o,"AI_ERROR_MODERATION"))):Promise[v("0x1b")](new Error(t))}}async[v("0x4e")](t,e){const i=t.body.getReader(),n=new TextDecoder;let o="",r="",s="",a=!1;for(;!a;){const{done:t,value:c}=await i.read(),l=o+n[v("0x7")](c);let x="";a=t;try{x=this._cleanUpData(l),o=""}catch(t){o=l;continue}r+=x,!t&&this[v("0x4b")](r)||r&&(s+=r,e(this[v("0x4c")](s)),r="")}return Promise[v("0x3f")]()}async _readStaticResponse(t,e){const i=(await t[v("0x43")]()).choices[0].message[v("0x1f")];return e(this[v("0x4c")](i)),Promise[v("0x3f")]()}[v("0x4b")](t){const e=t[v("0x35")]("<")[v("0xd")]!==t[v("0x35")](">").length,i=t[v("0xd")]<30;return e&&i}[v("0x4c")](t){const e=this[v("0x8")][v("0x42")](t,v("0x26")),i=this.editor.data[v("0x3")][v("0x20")](this[v("0x30")][v("0x46")](e.body));return this[v("0x2c")](i),this[v("0x3e")][v("0xf")].stringify(this.editor[v("0xf")].toModel(i))}[v("0x2c")](t){const e=new g.UpcastWriter(this[v("0x3e")].editing[v("0x2")][v("0x3d")]),i=new g.Matcher({name:/^h[1-5]$/}),n=[];let o=!1;for(const e of t)e.is(v("0xb"))&&i[v("0x3a")](e)&&(n[v("0x2b")](e),"h1"==e[v("0x28")]&&(o=!0));if(o)for(const t of n)e[v("0x1")]("h"+(parseInt(t[v("0x28")][1])+1),t)}_cleanUpData(t){return t[v("0x35")](/\n(?![^{]*\})/g).map((t=>t[v("0x17")]("data: ","")))[v("0x40")]((t=>t&&t[v("0xd")]>0&&v("0x19")!==t)).map((t=>{const{choices:e}=JSON.parse(t);if(e[0]&&e[0][v("0x3b")]&&e[0][v("0x3b")][v("0x1f")])return e[0][v("0x3b")][v("0x1f")]})).filter((t=>t)).join("")}}class A extends Error{constructor(t){super(t),this.name=v("0x1d")}}const C=["div","initialContext","currentContext","innerHTML","isProcessing","stopListening","startProcessing","previousPrompt","finishProcessing","destroy","connector","_updateValue","handleError","once","tryAgainEvent","prompt","processPrompt","catch","stopProcessing","mainAction","_sanitizationContainer","domConverter","previousLabel","bind","listenTo","submitPrompt","previousContext","view","createElement","_sanitizeHTML","set","setContentOf","editor","reset","abort","message","_handlePrompt"];var I,T;I=C,T=219,function(t){for(;--t;)I.push(I.shift())}(++T);const E=function(t,e){return C[t-=0]};class S extends((0,t.ObservableMixin)()){constructor(t,e,i){super(),this[E("0x23")]=t,this[E("0xd")]=e,this[E("0x17")]=document[E("0x1f")](E("0x3")),this.view=i,this[E("0x21")]({initialContext:"",currentContext:"",previousContext:void 0,previousPrompt:void 0,previousLabel:void 0,isProcessing:!1}),this.view[E("0x1a")]("value").to(this,"currentContext",this._sanitizeHTML[E("0x1a")](this)),this[E("0x1b")](this[E("0x1e")],E("0x1c"),((t,e)=>{const i=this[E("0x5")]||this.initialContext;this[E("0x2")](e,i)})),this[E("0x1b")](this[E("0x1e")],E("0x11"),(()=>{this.view[E("0x12")]=this.previousLabel,this[E("0x2")](this[E("0xa")],this.previousContext,this[E("0x19")])})),this[E("0x1b")](this[E("0x1e")],E("0x15"),(()=>{this[E("0x15")]()}))}[E("0xc")](){this[E("0x8")]()}async updateView({prompt:t,htmlContent:e,label:i,mainAction:n}){this[E("0x1e")].prompt=i,this[E("0x1e")][E("0x16")]=n,this[E("0x4")]=e,t&&(this[E("0x1e")].isRendered?this[E("0x2")](t,e,i):this.view[E("0x10")]("render",(()=>{this[E("0x2")](t,e,i)})))}[E("0x15")](){this.isProcessing&&(this[E("0x7")]=!1,this[E("0x1e")][E("0xb")](),this[E("0xd")][E("0x0")]())}[E("0x24")](){this[E("0x4")]="",this[E("0x5")]="",this[E("0x1d")]="",this.previousPrompt="",this[E("0x19")]="",this[E("0x1e")].reset(),this[E("0x15")]()}async[E("0x2")](t,e,i){return this[E("0x7")]=!0,this[E("0x1e")][E("0x9")](),this[E("0x1d")]=e,this[E("0xa")]=t,this[E("0x19")]=i||t,new Promise((i=>{this[E("0xd")][E("0x13")](t,e,(t=>this[E("0xe")](t)))[E("0x14")]((t=>{t instanceof A?this[E("0x1e")].handleError(t[E("0x1")]):this[E("0x1e")][E("0xf")](),i()})).finally((()=>{this[E("0x15")](),i()}))}))}_updateValue(t){this[E("0x5")]=""+t}[E("0x20")](t){return this[E("0x23")].editing.view[E("0x18")][E("0x22")](this._sanitizationContainer,t),this[E("0x17")][E("0x6")]}}const R=["stopButton","insert","items","AI_","_createButton","Try again","insertButton","tryAgainButton","locale","replaceButton","set","toUpperCase","isVisible","bindTemplate","ck-button-action","bind","Insert below","REPLACE","mainAction","addMany","_CONTENT"];var V,P;V=R,P=402,function(t){for(;--t;)V.push(V.shift())}(++P);const O=function(t,e){return R[t-=0]};var L,M;(M=L||(L={}))[O("0xe")]="replace",M.INSERT=O("0x13");class N extends o.ToolbarView{constructor(t){super(t),this[O("0x7")](O("0x9"),!1),this[O("0x7")](O("0xf"),L[O("0xe")]),this[O("0x6")]=this[O("0x1")]("",O("0xb")),this.replaceButton[O("0xc")]("label").to(this,O("0xf"),(e=>u(t,O("0x0")+e[O("0x8")]()+O("0x11")))),this[O("0x3")]=this._createButton(u(t,O("0xd"))),this[O("0x4")]=this._createButton(u(t,O("0x2"))),this[O("0x12")]=this[O("0x1")](u(t,"Stop"));const e=this[O("0xa")];this.extendTemplate({attributes:{class:["ck-ai-form__toolbar",e.if(O("0x9"),"ck-hidden",(t=>!t))]}}),this[O("0x14")][O("0x10")]([this[O("0x6")],this[O("0x3")],this[O("0x4")],this[O("0x12")]])}_createButton(t,e){const i=new o.ButtonView(this[O("0x5")]);return i.set({label:t,class:e||"",isVisible:!0,withText:!0}),i}}const B='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5 2.801a.7.7 0 0 0-.7.7v11.5a.8.8 0 0 1-1.6 0v-11.5a2.3 2.3 0 0 1 2.3-2.3h6.5a.8.8 0 0 1 0 1.6H5Zm.7 3.7a2.3 2.3 0 0 1 2.3-2.3h7a2.3 2.3 0 0 1 2.3 2.3v10a2.3 2.3 0 0 1-2.3 2.3H8a2.3 2.3 0 0 1-2.3-2.3v-10Zm2.3-.7a.7.7 0 0 0-.7.7v10a.7.7 0 0 0 .7.7h7a.7.7 0 0 0 .7-.7v-10a.7.7 0 0 0-.7-.7H8Z"/></svg>',H=["left","focus","write","locale",".ck-ai-form__loader","copy","createRange","firstElementChild","listenTo","div","ck-ai-form__content-area--processing","ck-ai-form__content-area-wrapper","render","ck-ai-form__copy-button","appendChild","lastElementChild","remove","contentFieldView","_createLoader","-9999px","_createCopyButton","<span>]</span>","ck-ai-form__copy-button-wrapper","wheel","AI is writing...","scrollHeight","text/html","bind","value","bindTemplate","execute","setTemplate","ck-reset_all-excluded","absolute","isVisible","setContent","isProcessing","_copyHTMLToClipboard","body","ClipboardItem","change:isProcessing","class","Copy","execCommand","getSelection","isEnabled","ck-ai-form__loader","loaderView","element","text/plain","copyButtonView","addRange","textContent","style"," ck-ai-form__copy-button--copied","<span>[</span>","ck-ai-form__content-field","ck-ai-form__content-area","innerHTML","set","appendLoader","ck-hidden","mousedown","querySelector","createElement","ck-content"];var j,F;j=H,F=230,function(t){for(;--t;)j.push(j.shift())}(++F);const D=function(t,e){return H[t-=0]};class q extends o.View{constructor(t,e=""){super(t),this[D("0x1b")]({value:null,isVisible:!1,isProcessing:!1});const i=this[D("0x3f")];this[D("0x33")]=new z(t,e),this.copyButtonView=this[D("0x36")](),this[D("0x41")]({tag:D("0x2b"),attributes:{class:["ck",D("0x2d"),i.if("isVisible",D("0x1d"),(t=>!t))],tabindex:"-1"},children:[{tag:D("0x2b"),attributes:{class:["ck",D("0x19"),i.if("isProcessing",D("0x2c"))]},children:[this[D("0x33")],{tag:D("0x2b"),attributes:{class:["ck",D("0x38")]},children:[this[D("0x12")]]}]}]})}[D("0x2e")](){super[D("0x2e")](),this[D("0x3e")]&&this.contentFieldView[D("0x3")](this[D("0x3e")]);let t=!1;this.on("change:value",((e,i,n)=>{const o=!this[D("0x33")][D("0x10")][D("0x1f")](D("0x26"));this[D("0x33")][D("0x3")](n),this[D("0x4")]&&o&&!t&&this[D("0x10")].scrollTo({top:this[D("0x10")][D("0x3b")],behavior:"smooth"})})),this.on(D("0x8"),((e,i,n)=>{t=!1,n?(this[D("0x3e")]=null,this[D("0x33")][D("0x1c")]()):this[D("0x3e")]||this[D("0x33")][D("0x3")]("")})),this[D("0x2a")](this[D("0x10")],D("0x39"),(()=>{t=!0})),this[D("0x2a")](this[D("0x10")],D("0x1e"),(()=>{t=!0}))}[D("0x23")](){this[D("0x10")].focus()}_createCopyButton(){const t=this.locale,i=new o.ButtonView(this.locale),n=D("0x2f");return i[D("0x1b")]({label:u(t,D("0xa")),icon:B,class:n,tooltip:!0}),i.bind(D("0x2")).to(this,"value",(t=>!!t)),i[D("0x3d")](D("0xd")).to(this,D("0x4"),(t=>!t)),i.on(D("0x40"),(()=>{this._copyHTMLToClipboard(this[D("0x33")][D("0x10")]),i.icon=e.icons.check,i[D("0x9")]=n+D("0x16"),this[D("0x23")](),setTimeout((()=>{i.icon=B,i.class=n}),1e3)})),i}[D("0x5")](e){const{window:i,document:n}=t.global;if(i[D("0x7")]){const{Blob:t,ClipboardItem:n}=i,o=[new n({"text/html":new t([e[D("0x1a")]],{type:D("0x3c")}),"text/plain":new t([e[D("0x14")]||""],{type:D("0x11")})})];navigator.clipboard[D("0x24")](o)}else{const t=n[D("0x20")](D("0x2b"));t[D("0x15")].position=D("0x1"),t.style[D("0x22")]=D("0x35"),t[D("0x1a")]=D("0x17")+e.innerHTML+D("0x37"),n[D("0x6")].appendChild(t);const o=n[D("0x28")]();o.setStartAfter(t[D("0x29")]),o.setEndBefore(t[D("0x31")]);const r=i[D("0xc")]();r.removeAllRanges(),r[D("0x13")](o),n[D("0xb")](D("0x27")),t[D("0x32")]()}}}class z extends o.View{constructor(t,e=""){super(t),this[D("0xf")]=this[D("0x34")](),this[D("0x41")]({tag:"div",attributes:{class:["ck",D("0x21"),e,D("0x0"),D("0x18")]}})}[D("0x3")](t){this[D("0x10")][D("0x1a")]=t}[D("0x1c")](){this[D("0x10")][D("0x30")](this[D("0xf")][D("0x10")])}[D("0x34")](){const t=new o.View,e=this[D("0x25")],i=new o.SpinnerView;return i.isVisible=!0,t[D("0x41")]({tag:"div",attributes:{class:["ck",D("0xe")]},children:[i,{text:u(e,D("0x3a"))}]}),t[D("0x2e")](),t}}const U=["text","ck-ai-form__error","div","content","bindTemplate"];var Z,K;Z=U,K=431,function(t){for(;--t;)Z.push(Z.shift())}(++K);const G=function(t,e){return U[t-=0]};class J extends o.View{constructor(t,e=""){super(t);const i=new o.IconView,n=this[G("0x3")];this.set(G("0x4"),e),i[G("0x2")]='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M9.9 4.385a1.2 1.2 0 0 0-.44.44h.002l-5.284 9.15a1.2 1.2 0 0 0 1.04 1.8h10.564a1.2 1.2 0 0 0 1.04-1.8l-5.282-9.15a1.2 1.2 0 0 0-1.64-.44Zm.05 8.363a.301.301 0 0 1 .115-.023h.9a.301.301 0 0 1 .3.3v.9a.3.3 0 0 1-.3.3h-.9a.3.3 0 0 1-.3-.3v-.9a.3.3 0 0 1 .185-.277Zm-.185-4.723a.3.3 0 0 1 .3-.3h.9a.3.3 0 0 1 .3.3v3.4a.3.3 0 0 1-.3.3h-.9a.301.301 0 0 1-.3-.3v-3.4Z"/></svg>\n',this.setTemplate({tag:G("0x1"),attributes:{class:["ck",G("0x0")]},children:[i,{text:n.to(G("0x4"))}]})}}const Y=function(t){return function(e){return null==t?void 0:t[e]}};const W=Y({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});const X="object"==typeof global&&global&&global.Object===Object&&global;var Q="object"==typeof self&&self&&self.Object===Object&&self;const $=(X||Q||Function("return this")()).Symbol;const tt=function(t,e){for(var i=-1,n=null==t?0:t.length,o=Array(n);++i<n;)o[i]=e(t[i],i,t);return o};const et=Array.isArray;var it=Object.prototype,nt=it.hasOwnProperty,ot=it.toString,rt=$?$.toStringTag:void 0;const st=function(t){var e=nt.call(t,rt),i=t[rt];try{t[rt]=void 0;var n=!0}catch(t){}var o=ot.call(t);return n&&(e?t[rt]=i:delete t[rt]),o};var at=Object.prototype.toString;const ct=function(t){return at.call(t)};var lt=$?$.toStringTag:void 0;const xt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":lt&&lt in Object(t)?st(t):ct(t)};const ut=function(t){return null!=t&&"object"==typeof t};const dt=function(t){return"symbol"==typeof t||ut(t)&&"[object Symbol]"==xt(t)};var ht=$?$.prototype:void 0,mt=ht?ht.toString:void 0;const ft=function t(e){if("string"==typeof e)return e;if(et(e))return tt(e,t)+"";if(dt(e))return mt?mt.call(e):"";var i=e+"";return"0"==i&&1/e==-Infinity?"-0":i};const pt=function(t){return null==t?"":ft(t)};var gt=/[&<>"']/g,kt=RegExp(gt.source);const bt=function(t){return(t=pt(t))&&kt.test(t)?t.replace(gt,W):t},wt=["width","locale","_createShowHistoryButton","resultsView","left","minRows","fieldView","queryView","value","focusCycler","uiLanguageDirection","add","excludeScrollbarsAndBorders","isEnabled","submitButtonView","ck-ai-form__toggle-history","style","bind","focus","right","_createSubmitButton","enter","execute","isVisible","focusLast","fire","window","showHistoryButtonView","submit","filteredView","set","history","render","keystrokes","focusableChildren","fieldWrapperChildren","update","rtl","isOn","element","focusFirst","ck-ai-form__submit"];var vt,_t;vt=wt,_t=457,function(t){for(;--t;)vt.push(vt.shift())}(++_t);const yt=function(t,e){return wt[t-=0]};class At extends o.AutocompleteView{constructor(t,e){super(t,e),this.queryView.fieldView[yt("0xa")]=1,this.queryView.fieldView.maxRows=3,this[yt("0x13")]=this[yt("0x19")](),this[yt("0x20")]=this[yt("0x7")](),this[yt("0x27")][yt("0x10")](this[yt("0x20")],1),this[yt("0x27")].add(this.submitButtonView)}[yt("0x25")](){super[yt("0x25")](),this[yt("0xc")][yt("0x28")][yt("0x10")](this.showHistoryButtonView),this.children[yt("0x10")](this.submitButtonView),this[yt("0x26")][yt("0x23")](yt("0x1a"),((t,e)=>{t.target==this[yt("0xc")][yt("0xb")][yt("0x2")]&&(this[yt("0x21")](),e())}))}_createSubmitButton(){const t=new o.ButtonView(this.locale),e=this[yt("0x6")];return t[yt("0x23")]({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.875 4.419a.75.75 0 0 0-1.5 0v7.25H6.818l2.33-1.955a.75.75 0 0 0-.963-1.15l-3.792 3.182a.75.75 0 0 0-.17.945c.046.11.118.208.21.284l3.788 3.18a.75.75 0 1 0 .965-1.149l-2.19-1.837h7.629c.69 0 1.25-.56 1.25-1.25v-7.5Z"/></svg>',label:u(e,"Submit"),isVisible:!0,tooltip:!0,class:yt("0x4")}),t.on(yt("0x1b"),(()=>{this[yt("0x21")]()})),t[yt("0x16")](yt("0x12")).to(this[yt("0xc")][yt("0xb")],"isEmpty",this,yt("0x12"),((t,e)=>!t&&e)),t}_createShowHistoryButton(){const i=new o.ButtonView(this.locale),n=this[yt("0x8")],r=this.locale;i[yt("0x23")]({label:u(r,"History"),withText:!1,icon:e.icons[yt("0x24")],tooltip:!0,tooltipPosition:"sw",class:yt("0x14")}),i[yt("0x16")](yt("0x1")).to(n,yt("0x1c")),i[yt("0x16")](yt("0x12")).to(this,yt("0x12")),i.on(yt("0x1b"),(()=>{n[yt("0x1c")]=!n[yt("0x1c")],n.isVisible?this[yt("0x22")][yt("0x17")]():this.focus()}));const s=()=>{t.global[yt("0x1f")].requestAnimationFrame((()=>{if((0,t.isVisible)(this[yt("0x2")])){const e=new t.Rect(this.queryView.fieldView[yt("0x2")]),n=e[yt("0x5")],o=yt("0x0")===r[yt("0xf")]?yt("0x9"):yt("0x18");e[yt("0x11")](),i[yt("0x2")][yt("0x15")][o]=n-e[yt("0x5")]+1+"px"}}))};return this.queryView[yt("0xb")].on(yt("0x29"),s),this.on(yt("0x25"),s),i}submit(){const t=this[yt("0xc")][yt("0xb")][yt("0x2")][yt("0xd")];this[yt("0x1e")]("submit",bt(t))}[yt("0x17")](t){-1===t?this[yt("0xe")][yt("0x1d")]():this[yt("0xe")][yt("0x3")]()}}const Ct=["Prompt history","historyGroupView","delegate","clearHistoryButton","_createClearHistoryButton","length","filter","add","clearHistory","set","fire","locale","label","children","execute","items"];var It,Tt;It=Ct,Tt=304,function(t){for(;--t;)It.push(It.shift())}(++Tt);const Et=function(t,e){return Ct[t-=0]};class St extends o.ListView{constructor(t){super(t),this[Et("0x3")]=this[Et("0x4")](),this.historyGroupView=new o.ListItemGroupView,this[Et("0x1")][Et("0xd")][Et("0x7")](this[Et("0x3")],1),this[Et("0x1")][Et("0xc")]=u(t,Et("0x0")),this.historyGroupView.items[Et("0x2")](Et("0xe")).to(this),this[Et("0xf")][Et("0x7")](this[Et("0x1")])}[Et("0x6")](){let t=0;for(const e of this[Et("0xf")])t+=e[Et("0xf")][Et("0x5")];return{resultsCount:t,totalItemsCount:t}}[Et("0x4")](){const t=this.locale,e=new o.ButtonView(this[Et("0xb")]);return e[Et("0x9")]({label:"("+u(t,"Clear")+")",withText:!0}),e.on("execute",(()=>this[Et("0xa")](Et("0x8")))),e}}const Rt=["style","extendTemplate","set","ck-button__label"];var Vt,Pt;Vt=Rt,Pt=144,function(t){for(;--t;)Vt.push(Vt.shift())}(++Pt);const Ot=function(t,e){return Rt[t-=0]};class Lt extends o.HighlightedTextView{constructor(){super(),this[Ot("0x2")]({style:void 0,text:void 0,id:void 0});const t=this.bindTemplate;this[Ot("0x1")]({attributes:{class:[Ot("0x3")],style:t.to(Ot("0x0")),id:t.to("id")}})}}const Mt=Y({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Nt=/&(?:amp|lt|gt|quot|#39);/g,Bt=RegExp(Nt.source);const Ht=function(t){return(t=pt(t))&&Bt.test(t)?t.replace(Nt,Mt):t},jt=["prompt","add","fire","execute"];var Ft,Dt;Ft=jt,Dt=255,function(t){for(;--t;)Ft.push(Ft.shift())}(++Dt);const qt=function(t,e){return jt[t-=0]};class zt extends o.ListItemView{constructor(t){super();const e=new Lt,i=new o.ButtonView(this.locale,e);this.children[qt("0x2")](i),i.set({label:t[qt("0x1")],withText:!0}),i.on(qt("0x0"),(()=>{this[qt("0x3")](qt("0x0"),{value:Ht(t[qt("0x1")])})}))}}const Ut=["length","map","addMany","last","stringify","setItem","getItem","CKEditor/AIFormView/PromptHistory","add","_saveToSessionStorage","parse","_loadFromSessionStorage","trim","remove","toLowerCase","prompt"];var Zt,Kt;Zt=Ut,Kt=411,function(t){for(;--t;)Zt.push(Zt.shift())}(++Kt);const Gt=function(t,e){return Ut[t-=0]},Jt=Gt("0xc");class Yt extends t.Collection{constructor(){super(),this[Gt("0x0")](),this.on(Gt("0xd"),((t,e)=>{const i=Wt(e.prompt);for(const t of this)if(t!=e&&Wt(t[Gt("0x4")])===i){this[Gt("0x2")](t);break}this[Gt("0x5")]>20&&this[Gt("0x2")](this[Gt("0x8")]),this[Gt("0xe")]()})),this.on(Gt("0x2"),(()=>{this._saveToSessionStorage()}))}_loadFromSessionStorage(){const t=sessionStorage[Gt("0xb")](Jt)||"[]";this[Gt("0x7")](JSON[Gt("0xf")](t))}[Gt("0xe")](){sessionStorage[Gt("0xa")](Jt,JSON[Gt("0x9")](this[Gt("0x6")]((t=>t))))}}function Wt(t){return t[Gt("0x3")]()[Gt("0x1")]()}const Xt='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.61 2.66a1.406 1.406 0 1 0-1.407 0v.891H3.28a2.11 2.11 0 0 0-2.11 2.11v10.312a2.11 2.11 0 0 0 2.11 2.109h5.684l-.054-1.157.18-.25H3.28a.703.703 0 0 1-.703-.702V5.66c0-.389.315-.704.703-.704h11.25c.388 0 .703.315.703.704v2.484l.358-.497a2.492 2.492 0 0 1 1.048-.84V5.66a2.11 2.11 0 0 0-2.11-2.11H9.61v-.89Z"/><path d="M5.625 10.817c.518 0 .937-.63.937-1.407 0-.776-.42-1.406-.937-1.406-.518 0-.938.63-.938 1.406 0 .777.42 1.407.938 1.407Z"/><path d="M13.125 9.41c0 .777-.42 1.407-.938 1.407s-.937-.63-.937-1.407c0-.776.42-1.406.937-1.406.518 0 .938.63.938 1.406Z"/><path d="M.937 8.004A.937.937 0 0 0 0 8.942v1.875c0 .517.42.937.937.937v-3.75Z"/><path d="M6.128 12.51a.782.782 0 0 1 1.085.216c.272.408.907.707 1.693.707s1.421-.3 1.693-.707a.782.782 0 0 1 1.302.868c-.666 1-1.906 1.403-2.995 1.403-1.089 0-2.329-.404-2.995-1.403a.782.782 0 0 1 .217-1.085Z"/><path d="m16.987 8.91-.622.864 2.879 2.074.622-.864a.71.71 0 0 0-.161-.99l-1.728-1.245a.71.71 0 0 0-.99.161Z"/><path d="M11.635 19.951a.355.355 0 0 1-.449-.31l-.214-2.38 4.978-6.911 2.88 2.074-4.978 6.91-2.217.617Z"/></svg>',Qt=["replaceButton","copyButtonView","focus","execute","div","locale","isEnabled","prompt","isProcessing","backwardCycle","trim","tryAgainEvent","clear","forwardCycle","Ask AI to improve generated text","_focusCycler","createCollection","tryAgainButton","shift + tab","submitPrompt","header","clearHistory","tab","AI_ERROR_FAILED","focusFirst","isVisible","mainAction","isError","focusCycler","items","_promptHistory","keystrokes","_createToolbar","reset","stopButton","toolbar","focusPrevious","fieldView","insertButton","_focusables","errorView","label","promptView","bindTemplate","handleError","_createHistoryView","listenTo","search","high","focusTracker","Ask AI and your prompts will be listed here for you to use later.","stop","value","element","add","delegate","bindTo","bind","insertContentBelow","contentArea","set","finishProcessing","setTemplate","Ask AI to edit or generate","AI Assistant","queryView","render"];var $t,te;$t=Qt,te=390,function(t){for(;--t;)$t.push($t.shift())}(++te);const ee=function(t,e){return Qt[t-=0]};class ie extends o.View{constructor(e,i,n=""){super(e),this[ee("0x5")](ee("0x12"),!0),this[ee("0x5")](ee("0x14"),!1),this[ee("0x5")](ee("0x13"),""),this[ee("0x5")]("value",""),this[ee("0x5")]("isError",!1),this[ee("0x5")](ee("0x26"),L.REPLACE),this[ee("0x2a")]=new Yt,this[ee("0x34")]=new J(e),this.header=new o.FormHeaderView(e,{label:u(e,ee("0x9")),icon:Xt}),this.contentArea=new q(e,n),this[ee("0x4")][ee("0x2")](ee("0x14")).to(this),this[ee("0x4")].bind(ee("0x40")).to(this),this[ee("0x2f")]=this._createToolbar(),this[ee("0x2f")][ee("0x2")](ee("0x26")).to(this),this[ee("0x36")]=this._createPromptView(),this[ee("0x3d")]=new t.FocusTracker,this.keystrokes=new t.KeystrokeHandler,this[ee("0x33")]=this[ee("0x1c")]([this[ee("0x4")],this[ee("0x4")][ee("0xd")],this[ee("0x2f")],this[ee("0x36")]]),this[ee("0x1b")]=new o.FocusCycler({focusables:this[ee("0x33")],focusTracker:this[ee("0x3d")],keystrokeHandler:this.keystrokes,actions:{focusPrevious:ee("0x1e"),focusNext:ee("0x22")}}),this[ee("0x36")][ee("0x28")].on(ee("0x19"),(t=>{this[ee("0x1b")].focusNext(),t[ee("0x3f")]()})),this[ee("0x36")][ee("0x28")].on(ee("0x15"),(t=>{this._focusCycler[ee("0x30")](),t[ee("0x3f")]()})),this[ee("0x36")].queryView[ee("0x31")][ee("0x2")]("value").to(this,ee("0x13"));const r=this[ee("0x37")];this[ee("0x7")]({tag:ee("0x10"),attributes:{class:["ck","ck-ai-form",i],tabindex:"-1"},children:[this[ee("0x20")],{tag:ee("0x10"),attributes:{class:["ck","ck-ai-form-content"]},children:[{tag:ee("0x10"),attributes:{class:[r.if("isError","ck-hidden",(t=>!t))]},children:[this[ee("0x34")]]},this[ee("0x4")],this[ee("0x2f")],this[ee("0x36")]]}]})}[ee("0xb")](){super[ee("0xb")](),this[ee("0x3d")][ee("0x42")](this.contentArea[ee("0x41")]),this[ee("0x3d")][ee("0x42")](this.contentArea.copyButtonView[ee("0x41")]),this[ee("0x3d")][ee("0x42")](this[ee("0x2f")].element),this[ee("0x3d")][ee("0x42")](this[ee("0x36")][ee("0x41")]),this[ee("0x2b")][ee("0x3a")](this[ee("0x41")])}focus(){this[ee("0x1b")][ee("0x24")]()}[ee("0x2d")](){this[ee("0x13")]="",this[ee("0x40")]="",this[ee("0x36")][ee("0x2d")](),this[ee("0x4")][ee("0x25")]=!1,this[ee("0x2f")][ee("0x25")]=!1}_createPromptView(){const t=this[ee("0x11")],e=new At(t,{queryView:{label:u(t,ee("0x8")),creator:o.createLabeledTextarea,showIcon:!1,showResetButton:!1},infoView:{text:{noSearchableItems:{primary:u(t,"Empty history"),secondary:u(t,ee("0x3e"))}}},filteredView:this[ee("0x39")](),queryMinChars:1/0,resetOnBlur:!1});return e.bind(ee("0x12")).to(this,"isEnabled",this,"isProcessing",((t,e)=>t&&!e)),this[ee("0x3a")](e,"submit",((t,e)=>{this[ee("0x13")]=e,this.fire(ee("0x1f"),this[ee("0x13")]),e[ee("0x16")]()&&this[ee("0x2a")][ee("0x42")]({prompt:e[ee("0x16")]()},0)}),{priority:ee("0x3c")}),e}_createHistoryView(){const t=new St(this[ee("0x11")]);return t.historyGroupView[ee("0x29")][ee("0x1")](this[ee("0x2a")]).as(zt),t.on(ee("0x21"),(()=>{this._promptHistory[ee("0x18")](),this[ee("0x36")][ee("0x3b")](""),this[ee("0x36")][ee("0xe")]()})),t}[ee("0x2c")](){const t=new N(this[ee("0x11")]);return t[ee("0xc")].bind(ee("0x12")).to(this,ee("0x12"),this,ee("0x14"),this,"value",((t,e,i)=>t&&!e&&!!i)),t[ee("0xc")][ee("0x0")](ee("0xf")).to(this,"replaceContent"),t[ee("0x32")].bind("isEnabled").to(this,"isEnabled",this,ee("0x14"),this,ee("0x40"),((t,e,i)=>t&&!e&&!!i)),t[ee("0x32")].delegate("execute").to(this,ee("0x3")),t[ee("0x1d")][ee("0x2")](ee("0x12")).to(this,ee("0x12"),this,ee("0x14"),((t,e)=>t&&!e)),t[ee("0x1d")][ee("0x0")](ee("0xf")).to(this,ee("0x17")),t.stopButton[ee("0x2")](ee("0x12")).to(this,ee("0x14")),t[ee("0x2e")][ee("0x0")](ee("0xf")).to(this,"stopProcessing"),t}startProcessing(){this[ee("0x40")]="",this[ee("0x27")]=!1,this.isProcessing=!0,this[ee("0x4")].isVisible=!0,this.toolbar[ee("0x25")]=!0,this[ee("0x4")][ee("0xe")]()}[ee("0x6")](){const t=this[ee("0x11")];this[ee("0x14")]=!1,this[ee("0x13")]="",this[ee("0x36")].reset(),this[ee("0x40")]&&(this[ee("0x36")][ee("0xa")][ee("0x35")]=u(t,ee("0x1a")))}[ee("0x38")](t){const e=this.locale;this[ee("0x6")](),this.isError=!0,this[ee("0x34")].text=t||u(e,ee("0x23")),this[ee("0x40")]||(this[ee("0x4")][ee("0x25")]=!1)}}const ne=["label","isVisible","labelView","match","items","children","first","filter","highlightText","length"];var oe,re;oe=ne,re=115,function(t){for(;--t;)oe.push(oe.shift())}(++re);const se=function(t,e){return ne[t-=0]};class ae extends o.ListView{[se("0x2")](t){let e=0,i=0;for(const n of this.items){const o=n,r=t&&!!o[se("0x5")][se("0x8")](t);o[se("0x7")][se("0x3")](r?t:null);for(const e of o.items){const i=e[se("0x0")][se("0x1")],n=i[se("0x7")];if(t){const o=!!i[se("0x5")][se("0x8")](t);n[se("0x3")](o?t:null),e[se("0x6")]=r||o}else e[se("0x6")]=!0,n[se("0x3")](null)}const s=o[se("0x9")][se("0x2")]((t=>t[se("0x6")]))[se("0x4")];e+=o.items.length,i+=r?o[se("0x9")][se("0x4")]:s,o[se("0x6")]=r||!!s}return{resultsCount:i,totalItemsCount:e}}}const ce=["for","set","bindTemplate","ck-label","ck-editor__label_"];var le,xe;le=ce,xe=118,function(t){for(;--t;)le.push(le.shift())}(++xe);const ue=function(t,e){return ce[t-=0]};class de extends o.HighlightedTextView{constructor(){super(),this[ue("0x3")](ue("0x2"),void 0);const e=this[ue("0x4")];this.id=ue("0x1")+(0,t.uid)(),this.extendTemplate({attributes:{class:["ck",ue("0x0")],id:this.id,for:e.to(ue("0x2"))}})}}var he=i(278),me=i.n(he),fe=i(692),pe={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};me()(fe.Z,pe);fe.Z.locals;var ge=i(488),ke={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};me()(ge.Z,ke);ge.Z.locals;var be=i(243),we={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};me()(be.Z,we);be.Z.locals;const ve=["DataTransfer","getLimitElement","AI Assistant","AIAssistantUI","model","createRange","getBoundingRect","join","ck-ai-assistant-button ","reset","_initView","get","config","document","insertContentBelow","end","INSERT","start","editing","change:value","copy","locale","order","mapper","add","focus","currentContext","schema","setSelection","element","aiAssistant","updateView","bind","commands","_uiCssClasses","showFakeVisualSelection","ai-commands-config-order-collision","aiAssistant.contentAreaCssClass","rawHtml","afterInit","fromCharCode","getData","insertContent","isCollapsed","fire","requiresContent","showAIAssistant","_balloon","hideUI","No commands available","addMany","then","showUI","remove","aiAssistant.useTheme","_isUIVisible","isAtStart","viewRangeToDom","_enableAIBalloonInteractions","listenTo","sort","_aiAssistantController","tableOfContents","init","AIConnector","push","items","getRevision","children","getSelectedBlocks","set","isNaN","domConverter"," ck-ai-assistant-ui_theme","No commands found","plugins","isEnabled","define","_formView","execute","context","label","selection","REPLACE","parent","Esc","editor","map","updatePosition","hideFakeVisualSelection","requires","Search AI command","componentFactory","view","_aiConnector"];var _e,ye;_e=ve,ye=315,function(t){for(;--t;)_e.push(_e.shift())}(++ye);const Ae=function(t,e){return ve[t-=0]},Ce=globalThis[Ae("0x41")];class Ie extends e.Plugin{static get pluginName(){return Ae("0x44")}static get[Ae("0x3c")](){return[x,Ae("0x22"),o.ContextualBalloon]}constructor(t){super(t),this[Ae("0x4")]="",t[Ae("0x4d")][Ae("0x2f")]("aiAssistant.disabledElements",["media",Ae("0x8"),Ae("0x20")]),t[Ae("0x4d")][Ae("0x2f")]("aiAssistant.useTheme",!0),t[Ae("0x4d")].define(Ae("0x7"),""),this[Ae("0x4")]="ck-ai-assistant-ui"+(t[Ae("0x4d")][Ae("0x4c")](Ae("0x18"))?Ae("0x2b"):"")}[Ae("0x21")](){const{editor:e}=this;this[Ae("0x40")]=e[Ae("0x2d")][Ae("0x4c")]("AIConnector"),this[Ae("0x11")]=e[Ae("0x2d")].get(o.ContextualBalloon),this[Ae("0x30")]=null,this.set("_isUIVisible",!1),e[Ae("0x3")][Ae("0x59")](Ae("0x10"),new p(e));const i=e[Ae("0x3")][Ae("0x4c")]("showAIAssistant"),n=e[Ae("0x2d")][Ae("0x4c")](x);e.ui[Ae("0x3e")].add("aiCommands",(r=>{const s=(0,o.createDropdown)(r),a=function(t,e){const i=new ae(t[Ae("0x56")]),n=Ee(t,t[Ae("0x4d")][Ae("0x4c")]("aiAssistant.commands"))[Ae("0x39")]((({groupId:i,groupLabel:n,commands:r})=>{const s=Ee(t,r)[Ae("0x39")]((i=>function(t,e,i){const n=new o.ListItemView,r=new Lt,s=new o.ButtonView(t,r);return n.children[Ae("0x59")](s),s.set({label:i[Ae("0x33")],withText:!0}),s.on(Ae("0x31"),(()=>{e(i.prompt,i[Ae("0x33")],void 0===i[Ae("0xf")]||i[Ae("0xf")])})),n}(t[Ae("0x56")],e,i)));return function(t,e,i){const n=new o.ListItemGroupView(t,new de);return n[Ae("0x33")]=e,n[Ae("0x24")][Ae("0x14")](i),n}(t[Ae("0x56")],n||i,s)}));return i[Ae("0x24")][Ae("0x14")](n),i}(e,((n,o,r)=>{const s=e[Ae("0x45")][Ae("0x4e")][Ae("0x34")];if(r&&s[Ae("0xd")]){const i=(0,t.first)(s[Ae("0x27")]())||e[Ae("0x45")][Ae("0x5c")][Ae("0x42")](s);e[Ae("0x45")].change((t=>{t[Ae("0x5d")](i,"in")}))}i[Ae("0x31")](n,o)})),c=new o.SearchTextView(r,{filteredView:a,queryView:{label:u(r,Ae("0x3d"))},class:"ck-ai-commands-search",infoView:{text:{notFound:{primary:u(r,Ae("0x2c"))},noSearchableItems:{primary:u(r,Ae("0x13"))}}}});return s[Ae("0x28")]({class:"ck-ai-commands-dropdown "+this[Ae("0x4")]}),s[Ae("0x2")](Ae("0x2e")).to(i,"isEnabled"),s.panelView[Ae("0x26")].add(c),s.buttonView[Ae("0x28")]({label:u(r,"AI Commands"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.346 9.422a.151.151 0 0 1 .284 0l.548 1.484a.152.152 0 0 0 .09.089l1.483.549a.151.151 0 0 1 0 .284l-1.483.548a.151.151 0 0 0-.09.09l-.548 1.483a.152.152 0 0 1-.142.1.151.151 0 0 1-.142-.1l-.549-1.483a.15.15 0 0 0-.09-.09l-1.483-.548a.15.15 0 0 1 0-.284l1.484-.549a.152.152 0 0 0 .089-.09l.549-1.483Z"/><path d="M16.306 1.742a.151.151 0 0 1 .284 0l.549 1.483a.15.15 0 0 0 .089.09l1.483.548a.151.151 0 0 1 .072.229.151.151 0 0 1-.072.055l-1.483.549a.15.15 0 0 0-.09.09l-.548 1.482a.151.151 0 0 1-.284 0l-.549-1.483a.15.15 0 0 0-.09-.09l-1.483-.548a.151.151 0 0 1 0-.284l1.484-.549a.152.152 0 0 0 .09-.089l.548-1.483Z"/><path d="M7.665 1.742a.151.151 0 0 1 .284 0l.549 1.483a.151.151 0 0 0 .09.09l1.482.548a.151.151 0 0 1 .072.229.151.151 0 0 1-.072.055l-1.483.549a.151.151 0 0 0-.09.09L7.95 6.267a.151.151 0 0 1-.284 0l-.549-1.483a.151.151 0 0 0-.089-.09l-1.483-.548a.151.151 0 0 1 0-.284l1.483-.549a.151.151 0 0 0 .09-.089l.548-1.483-.001.001Z"/><path d="M14.72 7.946a.848.848 0 0 0 .25-.591.824.824 0 0 0-.241-.588l-1.943-1.938a.812.812 0 0 0-.588-.241.838.838 0 0 0-.591.25l-1.545 1.539 3.115 3.115 1.542-1.546h.001Z"/><path clip-rule="evenodd" d="M1.19 15.636a.96.96 0 0 1 .281-.679l7.835-7.834 3.121 3.12-7.834 7.835a.959.959 0 0 1-1.358 0l-1.764-1.764a.96.96 0 0 1-.28-.678Zm9.22-5.391-1.121-1.12-6.479 6.478 1.121 1.121 6.479-6.479Z"/></svg>',tooltip:!0}),s.on("change:isOpen",((t,e,i)=>{i?(c[Ae("0x4a")](),n[Ae("0x5")](),a.element.scrollTo(0,0)):this._formView||n[Ae("0x3b")]()})),s})),e.ui[Ae("0x3e")][Ae("0x59")](Ae("0x0"),(t=>{const e=new o.ButtonView(t);return e[Ae("0x28")]({label:u(t,Ae("0x43")),tooltip:u(t,"AI Assistant"),icon:Xt,class:Ae("0x49")+this[Ae("0x4")]}),e.bind(Ae("0x2e")).to(i),e[Ae("0x2")]("isOn").to(this,"_isUIVisible"),this[Ae("0x1d")](e,Ae("0x31"),(()=>i[Ae("0x31")]())),e}))}[Ae("0x9")](){!function(t){function i(t){return t.map((t=>String[Ae("0xa")](t)))[Ae("0x48")]("")}(t=>{function n(t){return i([112,108,117,103,105,110,78,97,109,101])in t}const o=[1,85,78,115,198,255,50,112,83,87,161],r=[127,34,6,211,167,86,146,199,132,160,18];function s(t){return function(t,e){const n=function(t){const e=atob(t),[n,o]=e[i([115,112,108,105,116])](i([45]));try{if(atob(o))return atob(n)}catch(t){}return e}(t),o=Array[i([102,114,111,109])](function(t){const e=new Uint8Array(t[i([108,101,110,103,116,104])]);for(let n=0;n<t[i([108,101,110,103,116,104])];n++)e[n]=t[i([99,104,97,114,67,111,100,101,65,116])](n);return e}(n)),r=o[i([112,111,112])](),s=o[i([112,111,112])]();return function(t){let e="";for(const n of t)e+=String[i([102,114,111,109,67,104,97,114,67,111,100,101])](n);return e}(function(t,e,n){const o={};o[i([110,117,109,98,101,114,79,102,82,111,117,110,100,115])]={16:10,24:12,32:14},o[i([114,99,111,110])]=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],o[i([83])]=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],o[i([84,49])]=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],o[i([84,50])]=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],o[i([84,51])]=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],o[i([84,52])]=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],o[i([85,49])]=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],o[i([85,50])]=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],o[i([85,51])]=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],o[i([85,52])]=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];const r=new Uint8Array(16);for(let t=15;t>=0;--t)r[t]=n%256,n=parseInt(n/256);let s=null,a=16;const c=new Uint8Array(e),l=[],x=[];!function(){const t=o[i([110,117,109,98,101,114,79,102,82,111,117,110,100,115])][c[i([108,101,110,103,116,104])]];for(let e=0;e<=t;e++)l[i([112,117,115,104])]([0,0,0,0]),x[i([112,117,115,104])]([0,0,0,0]);const e=4*(t+1),n=c[i([108,101,110,103,116,104])]/4,r=u(c);let s;for(let e=0;e<n;e++)s=e>>2,l[s][e%4]=r[e],x[t-s][e%4]=r[e];let a,d=0,h=n;for(;h<e;){a=r[n-1],r[0]^=o[i([83])][a>>16&255]<<24^o[i([83])][a>>8&255]<<16^o[i([83])][255&a]<<8^o[i([83])][a>>24&255]^o[i([114,99,111,110])][d]<<24,d+=1;for(let t=1;t<n/2;t++)r[t]^=r[t-1];a=r[n/2-1],r[n/2]^=o[i([83])][255&a]^o[i([83])][a>>8&255]<<8^o[i([83])][a>>16&255]<<16^o[i([83])][a>>24&255]<<24;for(let t=n/2+1;t<n;t++)r[t]^=r[t-1];let s,c,u=0;for(;u<n&&h<e;)s=h>>2,c=h%4,l[s][c]=r[u],x[t-s][c]=r[u++],h++}for(let e=1;e<t;e++)for(let t=0;t<4;t++)a=x[e][t],x[e][t]=o[i([85,49])][a>>24&255]^o[i([85,50])][a>>16&255]^o[i([85,51])][a>>8&255]^o[i([85,52])][255&a]}();for(let e=0;e<t[i([108,101,110,103,116,104])];e++)16===a&&(s=h(r),a=0,d(r)),t[e]^=s[a++];return t;function u(t){const e=[];for(let n=0;n<t[i([108,101,110,103,116,104])];n+=4)e[i([112,117,115,104])](t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]);return e}function d(t){for(let e=15;e>=0;e--){if(255!==t[e]){t[e]++;break}t[e]=0}}function h(t){const e=l[i([108,101,110,103,116,104])]-1,n=[0,0,0,0];let r=u(t);for(let t=0;t<4;t++)r[t]^=l[0][t];for(let t=1;t<e;t++){for(let e=0;e<4;e++)n[e]=o[i([84,49])][r[e]>>24&255]^o[i([84,50])][r[(e+1)%4]>>16&255]^o[i([84,51])][r[(e+2)%4]>>8&255]^o[i([84,52])][255&r[(e+3)%4]]^l[t][e];r=n[i([115,108,105,99,101])]()}const s=new Uint8Array(16);let a;for(let t=0;t<4;t++)a=l[e][t],s[4*t]=255&(o[i([83])][r[t]>>24&255]^a>>24),s[4*t+1]=255&(o[i([83])][r[(t+1)%4]>>16&255]^a>>16),s[4*t+2]=255&(o[i([83])][r[(t+2)%4]>>8&255]^a>>8),s[4*t+3]=255&(o[i([83])][255&r[(t+3)%4]]^a);return s}}(o,e,s+256*r))}(t,new Uint8Array([...o,29,221,175,90,231,133,239,240,75,180,...r]))}const a=function(){const t=[{[i([105,100])]:1,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([67,111,109,109,101,110,116,115]),[i([112,108,117,103,105,110,78,97,109,101])]:i([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([108,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101]),[i([99,104,101,99,107,65,108,115,111])]:[{[i([105,100])]:2,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([84,114,97,99,107,32,67,104,97,110,103,101,115]),[i([112,108,117,103,105,110,78,97,109,101])]:i([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([108,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115]),[i([111,112,116,105,111,110,115])]:{[i([97,105,119,115,103,105,99])]:!0,[i([97,105,116,99,100,103,105,108])]:!0,[i([97,105,114,118,105,105,108])]:!0}}],[i([111,112,116,105,111,110,115])]:{[i([97,105,119,115,103,105,99])]:!0,[i([97,105,116,99,100,103,105,108])]:!0,[i([97,105,114,118,105,105,108])]:!0}},{[i([105,100])]:3,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([80,97,103,105,110,97,116,105,111,110]),[i([112,108,117,103,105,110,78,97,109,101])]:i([80,97,103,105,110,97,116,105,111,110,76,111,111,107,117,112]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([112,97,103,105,110,97,116,105,111,110,76,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101])},{[i([105,100])]:4,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([82,101,118,105,115,105,111,110,32,72,105,115,116,111,114,121]),[i([112,108,117,103,105,110,78,97,109,101])]:i([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([108,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121]),[i([111,112,116,105,111,110,115])]:{[i([97,105,119,115,103,105,99])]:!0,[i([97,105,116,99,100,103,105,108])]:!0,[i([97,105,114,118,105,105,108])]:!0}},{[i([105,100])]:5,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([68,111,99,117,109,101,110,116,32,79,117,116,108,105,110,101]),[i([112,108,117,103,105,110,78,97,109,101])]:i([68,111,99,117,109,101,110,116,79,117,116,108,105,110,101,85,73]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([100,111,99,117,109,101,110,116,79,117,116,108,105,110,101,76,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101]),[i([111,112,116,105,111,110,115])]:{[i([102,103,105])]:12}},{[i([105,100])]:6,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([70,111,114,109,97,116,32,80,97,105,110,116,101,114]),[i([112,108,117,103,105,110,78,97,109,101])]:i([70,111,114,109,97,116,80,97,105,110,116,101,114,85,73]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([102,111,114,109,97,116,80,97,105,110,116,101,114,76,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101]),[i([111,112,116,105,111,110,115])]:{[i([102,103,105])]:12}},{[i([105,100])]:7,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([83,108,97,115,104,32,67,111,109,109,97,110,100]),[i([112,108,117,103,105,110,78,97,109,101])]:i([83,108,97,115,104,67,111,109,109,97,110,100,85,73]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([115,108,97,115,104,67,111,109,109,97,110,100,76,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101]),[i([111,112,116,105,111,110,115])]:{[i([102,103,105])]:12}},{[i([105,100])]:8,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([84,97,98,108,101,32,111,102,32,67,111,110,116,101,110,116,115]),[i([112,108,117,103,105,110,78,97,109,101])]:i([84,97,98,108,101,79,102,67,111,110,116,101,110,116,115,69,100,105,116,105,110,103]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([116,97,98,108,101,79,102,67,111,110,116,101,110,116,115,76,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101]),[i([111,112,116,105,111,110,115])]:{[i([102,103,105])]:12}},{[i([105,100])]:9,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([84,101,109,112,108,97,116,101]),[i([112,108,117,103,105,110,78,97,109,101])]:i([84,101,109,112,108,97,116,101,85,73]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([116,101,109,112,108,97,116,101,76,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101]),[i([111,112,116,105,111,110,115])]:{[i([102,103,105])]:12}},{[i([105,100])]:10,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([80,97,115,116,101,32,102,114,111,109,32,79,102,102,105,99,101,32,69,110,104,97,110,99,101,100]),[i([112,108,117,103,105,110,78,97,109,101])]:i([80,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,73,110,108,105,110,101,114]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([112,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,76,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101]),[i([111,112,116,105,111,110,115])]:{[i([102,103,105])]:12}},{[i([105,100])]:11,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([65,73,32,65,115,115,105,115,116,97,110,116]),[i([112,108,117,103,105,110,78,97,109,101])]:i([65,73,65,115,115,105,115,116,97,110,116,85,73]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([97,105,76,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101])},{[i([105,100])]:12,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([80,114,111,100,117,99,116,105,118,105,116,121,32,112,97,99,107])}];return function t(e){e[i([102,111,114,69,97,99,104])]((e=>{e[i([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]=1<<e[i([105,100])]-1,n(e)&&e[i([99,104,101,99,107,65,108,115,111])]&&t(e[i([99,104,101,99,107,65,108,115,111])])}))}(t),t}(),c={[i([99,104,101,99,107,76,105,99,101,110,115,101])]:function(t,e){p(f(t,e),e)},[i([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115])]:function(t,e){p(function(t,e){try{if(_(x,i([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))&&t){const n=y(x,i([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))[i([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])];if(parseInt(n)/2>t[i([101,120,112,105,114,97,116,105,111,110,68,97,116,101])])return g(e[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100]))}return f(t,e)}catch(t){return g(e[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100]))}}(t,e),e)},[i([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121])]:function(t,e){const n=r[0]*o[1],s=r[0]*o[2],a=r[2]*o[2];function c(t,e){l(),g(e+i([84,114,105,97,108,76,105,109,105,116,58])+t),window[k()]=t===i([116,105,109,101])?n:s}function l(){const t=x;function e(){_(t,i([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&(y(t,i([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[i([117,110,98,105,110,100])](i([105,115,69,110,97,98,108,101,100])),y(t,i([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[i([105,115,69,110,97,98,108,101,100])]=!1,y(t,i([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[i([117,112,100,97,116,101])]=v,y(t,i([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[i([115,97,118,101,82,101,118,105,115,105,111,110])]=v,t[i([109,111,100,101,108])][i([99,104,97,110,103,101])]=v,t[i([109,111,100,101,108])][i([101,110,113,117,101,117,101,67,104,97,110,103,101])]=v,t[i([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](i([109,111,100,101,108]))),_(t,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(y(t,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[i([117,110,98,105,110,100])](i([105,115,69,110,97,98,108,101,100])),y(t,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[i([105,115,69,110,97,98,108,101,100])]=!1,y(t,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[i([99,111,109,112,97,114,101])]=v,y(t,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[i([95,103,101,116,68,105,102,102])]=v)}t[i([115,116,97,116,101])]==i([114,101,97,100,121])?e():t[i([111,110,99,101])](i([114,101,97,100,121]),(()=>{if(_(t,i([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&e(),_(t,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))){const n=y(t,i([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121])),o=n[Ae("0x25")](0),r=n.getEarlierVisibleRevision(o[i([105,100])]);y(t,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[i([99,111,109,112,97,114,101])](o[i([105,100])],r?r[i([105,100])]:null,1)[Ae("0x15")]((()=>e()))}}))}_(x,i([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))&&y(x,i([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[i([115,116,97,116,101])]==i([99,111,110,110,101,99,116,101,100])&&(window[k()]=a),function(t,e){if(t==e[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100]))l();else if(t==e[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([84,114,105,97,108])){const t=function(){if(!_(x,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const t in window)if(Number[Ae("0x29")](Number(t))){if(window[t]===n)return i([116,105,109,101]);if(window[t]===s)return i([114,101,118,105,115,105,111,110,115])}return!1}();t&&c(t,e[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]);const a=function(){let t=r[6]*o[8]*o[6];return _(x,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(t/=10),t}();window[i([115,101,116,84,105,109,101,111,117,116])]((()=>{c(i([116,105,109,101]),e[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}),a);const l=y(x,i([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]))[i([95,114,101,118,105,115,105,111,110,115])];l[i([108,101,110,103,116,104])]>=7?c(i([114,101,118,105,115,105,111,110,115]),e[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]):l.on(i([97,100,100]),(()=>{l[i([108,101,110,103,116,104])]>=7&&c(i([114,101,118,105,115,105,111,110,115]),e[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}))}}(function(t,e){try{return function(){if(!_(x,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const t in window)if(Number[Ae("0x29")](Number(t))&&window[t]===a)return!0;return!1}()?g(e[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([86,97,108,105,100])):f(t,e)}catch(t){return g(e[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100]))}}(t,e),e)}},l=t[i([99,111,110,115,116,114,117,99,116,111,114])][i([112,108,117,103,105,110,78,97,109,101])],x=i([99,111,110,116,101,120,116])in t?t[Ae("0x32")]:t[Ae("0x38")],u=i([52,48,52,54,50,50,51,48]),d=i([65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57]),h=x[Ae("0x4d")][Ae("0x4c")](i([108,105,99,101,110,115,101,75,101,121])),m=a[i([102,105,108,116,101,114])](n)[i([102,105,110,100])]((t=>t[i([112,108,117,103,105,110,78,97,109,101])]===l));function f(t,e){try{return function(t){if(!_(x,t[i([112,108,117,103,105,110,78,97,109,101])]))return!0;const e=t[i([111,112,116,105,111,110,115])]||{},n=e[i([97,105,119,115,103,105,99])]||!1,o=e[i([97,105,116,99,100,103,105,108])]||!1,r=e[i([97,105,114,118,105,105,108])]||!1;return!(!_(x,i([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))||y(x,i([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[i([115,116,97,116,101])]!=i([99,111,110,110,101,99,116,101,100])||!n)||(!(!_(x,i([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))||y(x,i([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))[i([114,101,115,117,108,116])]!=i([101,110,100])||!o)||!(!_(x,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))||y(x,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))[i([114,101,115,117,108,116])]!=i([101,110,100])||!r))}(e)?g(e[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([86,97,108,105,100])):t&&function(t,e){const n=!!(t&e[i([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]),o=function(t,e){const n=(e[i([111,112,116,105,111,110,115])]||{})[i([102,103,105])]||null;if(!n)return!1;const o=a[i([102,105,110,100])]((t=>t[i([105,100])]===n));return!!o&&!!(t&o[i([112,101,114,109,105,115,115,105,111,110,77,97,115,107])])}(t,e);return n||o}(t[i([97,108,108,111,119,101,100,80,108,117,103,105,110,115])],e)?t[i([105,115,73,110,116,101,114,110,97,108])]&&!window[i([111,112,101,110])][i([99,108,111,115,101,100])]||parseInt(u)/2>t[i([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]?g(e[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100])):t[i([105,115,84,114,105,97,108])]?g(e[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([84,114,105,97,108])):g(e[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([86,97,108,105,100])):g(e[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100]))}catch(t){return g(e[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100]))}}function p(t,n){if(x instanceof e.Context){const e=x;t==n[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100])?b(e):t==n[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([84,114,105,97,108])&&window[i([115,101,116,84,105,109,101,111,117,116])]((()=>{b(e),g(n[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101]))}),r[6]*o[8]*o[6]),e[i([101,100,105,116,111,114,115])][i([111,110])](i([97,100,100]),((e,o)=>{t!=n[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100])&&t!=n[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101])&&t!=n[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])||w(o)}))}else{const e=x;t==n[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100])?w(e):t==n[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([84,114,105,97,108])&&e[i([111,110])](i([114,101,97,100,121]),(()=>{let t=0;e[i([109,111,100,101,108])][i([111,110])](i([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),((o,r)=>{r[0][i([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&t++,504===t&&(w(e),g(n[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])),o[i([111,102,102])]())}),{priority:i([104,105,103,104,101,115,116])})}))}}function g(t){const e=k();return x[e]=t,t}function k(){const t=String(window[i([112,101,114,102,111,114,109,97,110,99,101])][i([110,111,119])]())[i([114,101,112,108,97,99,101])](i([46]),"");let e="";for(let n=0;n<t[i([108,101,110,103,116,104])];n+=2){let o=parseInt(t[i([115,117,98,115,116,114,105,110,103])](n,n+2));o>=d[i([108,101,110,103,116,104])]&&(o-=d[i([108,101,110,103,116,104])]),e+=d[o]}return e}function b(t){for(const e of t[i([101,100,105,116,111,114,115])])w(e);y(t,i([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[i([115,119,105,116,99,104,82,101,97,100,79,110,108,121])](!0),y(t,i([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[i([115,119,105,116,99,104,82,101,97,100,79,110,108,121])]=v}function w(t){function e(){t[i([109,111,100,101,108])][i([99,104,97,110,103,101])]=v,t[i([109,111,100,101,108])][i([101,110,113,117,101,117,101,67,104,97,110,103,101])]=v,t[i([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](i([109,111,100,101,108]))}t[i([115,116,97,116,101])]==i([114,101,97,100,121])?e():t[i([111,110,99,101])](i([114,101,97,100,121]),(()=>e()))}function v(){return null}function _(t,e){return t[i([112,108,117,103,105,110,115])][i([104,97,115])](e)}function y(t,e){return t[i([112,108,117,103,105,110,115])][i([103,101,116])](e)}m&&function t(e,n){c[n[i([104,97,110,100,108,101,114])]](e,n),n[i([99,104,101,99,107,65,108,115,111])]&&n[i([99,104,101,99,107,65,108,115,111])][i([102,105,108,116,101,114])]((t=>_(x,t[i([112,108,117,103,105,110,78,97,109,101])])))[i([102,111,114,69,97,99,104])]((i=>t(e,i)))}(function(t){try{const e=s(t),n=JSON[i([112,97,114,115,101])](e),o=parseInt(n[i([49])]),r=n[i([50])]||"",a=parseInt(n[i([51])]),c=parseInt(n[i([52])])||0,l=parseInt(n[i([53])])||0;return{[i([112,114,111,100,117,99,116,78,97,109,101])]:r,[i([97,108,108,111,119,101,100,80,108,117,103,105,110,115])]:c,[i([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]:o,[i([105,115,84,114,105,97,108])]:a,[i([105,115,73,110,116,101,114,110,97,108])]:l}}catch(t){return null}}(h),m)})(t)}(this)}[Ae("0x16")](e="",i=""){const n=this.editor,o=n[Ae("0x53")][Ae("0x3f")];n.plugins[Ae("0x4c")](x)[Ae("0x5")]();const r=new Ce,s=new ClipboardEvent(Ae("0x55"),{clipboardData:r}),a=new g.DataTransfer(r),c=new g.DomEventData(o,s,{dataTransfer:a});o[Ae("0x4e")][Ae("0xe")](Ae("0x55"),c),this[Ae("0x30")]||(this[Ae("0x4b")](),this._aiAssistantController=new S(n,this._aiConnector,this[Ae("0x30")])),this[Ae("0x1f")][Ae("0x1")]({prompt:e,htmlContent:a[Ae("0xb")]("text/html"),label:i,mainAction:L[n.model[Ae("0x4e")].selection[Ae("0xd")]?Ae("0x51"):Ae("0x35")]}),this[Ae("0x11")].add({view:this._formView,position:{target:()=>{const e=Array.from(n[Ae("0x45")].document[Ae("0x34")].getRanges()).map((t=>!t[Ae("0xd")]&&t[Ae("0x50")][Ae("0x1a")]?n[Ae("0x45")][Ae("0x46")](t[Ae("0x52")],n[Ae("0x45")].createPositionBefore(t[Ae("0x50")][Ae("0x36")])):t))[Ae("0x39")]((t=>n.editing[Ae("0x58")].toViewRange(t)))[Ae("0x39")]((t=>n[Ae("0x53")][Ae("0x3f")][Ae("0x2a")][Ae("0x1b")](t))).map((e=>new t.Rect(e)));return t.Rect[Ae("0x47")](e)}}}),this[Ae("0x30")][Ae("0x5a")](),this[Ae("0x19")]=!0}hideUI(){if(!this[Ae("0x19")])return;const t=this[Ae("0x38")][Ae("0x2d")][Ae("0x4c")](x);this[Ae("0x1f")][Ae("0x4a")](),this[Ae("0x11")][Ae("0x17")](this._formView),t[Ae("0x3b")](),this[Ae("0x38")][Ae("0x53")][Ae("0x3f")][Ae("0x5a")](),this[Ae("0x19")]=!1}[Ae("0x4b")](){const t=this[Ae("0x38")].plugins[Ae("0x4c")](x);this[Ae("0x30")]=new ie(this[Ae("0x38")][Ae("0x56")],this[Ae("0x4")],this[Ae("0x38")][Ae("0x4d")][Ae("0x4c")](Ae("0x7"))),this._enableAIBalloonInteractions(),this[Ae("0x1d")](this._formView,"replaceContent",(()=>{const e=this[Ae("0x1f")][Ae("0x5b")];this[Ae("0x12")](),t[Ae("0xc")](e)})),this[Ae("0x1d")](this._formView,Ae("0x4f"),(()=>{const e=this[Ae("0x1f")][Ae("0x5b")];this.hideUI(),t[Ae("0x4f")](e)}))}[Ae("0x1c")](){(0,o.clickOutsideHandler)({emitter:this[Ae("0x30")],activator:()=>!!this[Ae("0x30")],contextElements:()=>[this._balloon[Ae("0x3f")][Ae("0x5e")]],callback:()=>this[Ae("0x12")]()}),this[Ae("0x30")].on(Ae("0x54"),(()=>{this[Ae("0x11")][Ae("0x3a")]()})),this[Ae("0x30")].keystrokes.set(Ae("0x37"),((t,e)=>{this[Ae("0x12")](),e()}))}}function Te(t,e){return void 0!==t[Ae("0x57")]&&void 0===e[Ae("0x57")]?1:void 0===t[Ae("0x57")]&&void 0!==e[Ae("0x57")]?-1:void 0!==t[Ae("0x57")]&&void 0!==e.order?t[Ae("0x57")]-e[Ae("0x57")]:0}function Ee(e,i){i[Ae("0x1e")](Te);const n={},o=[];for(const r of i)if(void 0!==r[Ae("0x57")]){if(r[Ae("0x57")]in n)throw new t.CKEditorError(Ae("0x6"),e,{conflictingDefinitions:[r,n[r.order]]});n[r[Ae("0x57")]]=r,o.splice(r[Ae("0x57")],0,r)}else o[Ae("0x23")](r);return o}const Se=["Improve using casual, informal language to convey a casual conversation with a real person.","Change tone","Translate the content to Spanish language.","confident","Improve this content by using descriptive language and inserting more information and more detailed explanations.","translatePortuguese","Journalism","Legal","aiLicenseKeyValid","Simplify language","Start with the provided content and write at the end of it continuing this topic. Keep the added part short.","Fix spelling mistakes, use proper grammar and apply good writing practices. Do not lose the original meaning.","changeTone","poetic","push","aiAssistant.commands","Professional","translateGerman","Generate from selection","improveWriting","translateFrench","_licenseKeyCheckInterval","Summarize this content into one paragraph of text. Include only the key ideas and conclusions. Keep it short. Do not keep original text formatting.","translateChinese","Poetic","German","French","config","Casual","filter","continue","ai-invalid-license-key","Translate the content to German language.","editOrReview","define","Direct","makeShorter","Arabic","aiAssistant.extraCommandGroups","Translate the content to English language.","Rewrite this content as a poem using poetic techniques without losing the original meaning.","Translate the content to French language.","translateSpanish","Spanish","init","Change style","casual","info","Edit or review","makeLonger","Hindi","aiLicenseKeyInvalid","professional","Improve using direct language, using only the essential information.","ai-trial-license-key-reached-limit-changes","aiAssistant.removeCommands","translateEnglish","Translate the content to Portuguese language.","Simplified Chinese","journalism","Rewrite this content as a business professional with formal language.","translateHindi","Improve using friendly, comforting language, to convey understanding and empathy.","translate","locale","destroy","legal","generate","licenseKey","requires","Portuguese","Translate to %0","Improve writing","friendly","simplifyLanguage","Improve using compelling, optimistic language to convey confidence in the writing.","aiLicenseKeyTrial","Summarize","Friendly","get","English","Continue","Rewrite this content as a legal professional using valid legal terminology.","Make longer","commands","includes","Translate","business","summarize","aiLicenseKeyTrialLimit:operations","Simplify the writing style of this content and reduce the complexity, so that the content is easy to understand.","groupId","Translate the content to Arabic language.","translateArabic","Confident","Translate the content to Hindi language.","Business"];var Re,Ve;Re=Se,Ve=268,function(t){for(;--t;)Re.push(Re.shift())}(++Ve);const Pe=function(t,e){return Se[t-=0]};class Oe extends e.Plugin{static get[Pe("0x5c")](){return[Ie,x,_]}static get pluginName(){return"AIAssistant"}constructor(t){super(t);const e=t[Pe("0x32")];var i;e[Pe("0x39")](Pe("0x26"),[{groupId:"editOrReview",groupLabel:u(i=t[Pe("0x57")],Pe("0x47")),commands:[{id:"improveWriting",label:u(i,Pe("0x5f")),prompt:Pe("0x22")},{id:Pe("0x3b"),label:u(i,"Make shorter"),prompt:"Remove any repetitive, redundant, or non-essential writing in this content without changing the meaning or losing any key information."},{id:Pe("0x48"),label:u(i,"Make longer"),prompt:Pe("0x1b")},{id:Pe("0x0"),label:u(i,Pe("0x20")),prompt:"Simplify the writing style of this content and reduce the complexity, so that the content is easy to understand."}]},{groupId:Pe("0x5a"),groupLabel:u(i,Pe("0x29")),commands:[{id:"summarize",label:u(i,Pe("0x3")),prompt:Pe("0x2d")},{id:Pe("0x35"),label:u(i,"Continue"),prompt:"Start with the provided content and write at the end of it continuing this topic. Keep the added part short."}]},{groupId:Pe("0x23"),groupLabel:u(i,Pe("0x18")),commands:[{id:Pe("0x4b"),label:u(i,Pe("0x27")),prompt:"Improve using polished, formal, and respectful language to convey professional expertise and competence."},{id:Pe("0x45"),label:u(i,"Casual"),prompt:Pe("0x17")},{id:"direct",label:u(i,Pe("0x3a")),prompt:Pe("0x4c")},{id:Pe("0x1a"),label:u(i,Pe("0x14")),prompt:Pe("0x1")},{id:Pe("0x60"),label:u(i,Pe("0x4")),prompt:"Improve using friendly, comforting language, to convey understanding and empathy."}]},{groupId:"changeStyle",groupLabel:u(i,"Change style"),commands:[{id:Pe("0xd"),label:u(i,Pe("0x16")),prompt:Pe("0x53")},{id:Pe("0x59"),label:u(i,"Legal"),prompt:Pe("0x8")},{id:Pe("0x52"),label:u(i,Pe("0x1d")),prompt:"Rewrite this content as a journalist using engaging language to convey the importance of the information."},{id:Pe("0x24"),label:u(i,Pe("0x2f")),prompt:Pe("0x3f")}]},{groupId:Pe("0x56"),groupLabel:u(i,Pe("0xc")),commands:[{id:"translateEnglish",label:u(i,"Translate to %0",[u(i,Pe("0x6"))]),prompt:Pe("0x3e")},{id:Pe("0x41"),label:u(i,Pe("0x5e"),[u(i,"Spanish")]),prompt:"Translate the content to Spanish language."},{id:Pe("0x1c"),label:u(i,Pe("0x5e"),[u(i,Pe("0x5d"))]),prompt:"Translate the content to Portuguese language."},{id:Pe("0x28"),label:u(i,Pe("0x5e"),[u(i,Pe("0x30"))]),prompt:Pe("0x37")},{id:Pe("0x2b"),label:u(i,Pe("0x5e"),[u(i,Pe("0x31"))]),prompt:Pe("0x40")},{id:Pe("0x2e"),label:u(i,Pe("0x5e"),[u(i,Pe("0x51"))]),prompt:"Translate the content to Simplified Chinese language."},{id:Pe("0x54"),label:u(i,Pe("0x5e"),[u(i,Pe("0x49"))]),prompt:Pe("0x15")},{id:Pe("0x13"),label:u(i,"Translate to %0",[u(i,Pe("0x3c"))]),prompt:Pe("0x12")}]}]),e[Pe("0x39")](Pe("0x3d"),[]),e[Pe("0x39")](Pe("0x4e"),[]);const n=e[Pe("0x5")]("aiAssistant.commands"),o=e[Pe("0x5")](Pe("0x3d")),r=e.get(Pe("0x4e"));o.forEach((t=>{const e=n.find((e=>e[Pe("0x11")]===t.groupId));e?e[Pe("0xa")]=e[Pe("0xa")].concat(t[Pe("0xa")]):n[Pe("0x25")](t)})),n.forEach((t=>{t[Pe("0xa")]=t[Pe("0xa")][Pe("0x34")]((t=>!r[Pe("0xb")](t.id)))})),e.set(Pe("0x26"),n)}[Pe("0x43")](){const e=this.editor;this[Pe("0x5b")]=e[Pe("0x32")][Pe("0x5")](Pe("0x5b")),this[Pe("0x2c")]=setInterval((()=>{let i;for(const t in e){const n=t,o=e[n];if("aiLicenseKeyTrial"===o||"aiLicenseKeyInvalid"===o||Pe("0x1f")===o||"aiLicenseKeyTrialLimit:operations"===o){delete e[n],i=o;break}}if(Pe("0x4a")===i)throw clearInterval(this[Pe("0x2c")]),new t.CKEditorError(Pe("0x36"),null);if(Pe("0x2")===i&&console[Pe("0x46")]("You are using the trial version of CKEditor 5 ai plugin with limited usage. Make sure you will not use it in the production environment."),Pe("0xf")===i)throw clearInterval(this[Pe("0x2c")]),new t.CKEditorError(Pe("0x4d"),null);Pe("0x1f")===i&&clearInterval(this[Pe("0x2c")])}),1e3)}[Pe("0x58")](){this._licenseKeyCheckInterval&&clearInterval(this[Pe("0x2c")])}}})(),(window.CKEditor5=window.CKEditor5||{}).ai=n})();