@ckeditor/ckeditor5-ai 47.7.0-alpha.0 → 47.7.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  5. package/src/aiactions/model/aiactionsreply.js +1 -1
  6. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  7. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  8. package/src/aiassistant/aiassistant.js +1 -1
  9. package/src/aiassistant/aiassistantediting.js +1 -1
  10. package/src/aiassistant/aiassistantui.js +1 -1
  11. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  12. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  13. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  14. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  15. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  16. package/src/aiassistant/ui/form/aiformview.js +1 -1
  17. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  18. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  19. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  20. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  21. package/src/aiballoon/aiballoon.js +1 -1
  22. package/src/aiballoon/ui/aiballoonview.js +1 -1
  23. package/src/aichat/aichat.js +1 -1
  24. package/src/aichat/aichatballoon.js +1 -1
  25. package/src/aichat/aichatcontroller.js +1 -1
  26. package/src/aichat/aichatui.js +1 -1
  27. package/src/aichat/model/aichatcontext.js +1 -1
  28. package/src/aichat/model/aichatconversation.js +1 -1
  29. package/src/aichat/model/aichatinteraction.js +1 -1
  30. package/src/aichat/ui/aichatballoonview.js +1 -1
  31. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  32. package/src/aichat/ui/aichatfeedview.js +1 -1
  33. package/src/aichat/ui/aichatheaderview.js +1 -1
  34. package/src/aichat/ui/aichatview.js +1 -1
  35. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  36. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  37. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  38. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  39. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  40. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  41. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  42. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  43. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  44. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  45. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  46. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  48. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  49. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  50. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  57. package/src/aichat/utils/eventnames.js +1 -1
  58. package/src/aichat/utils/promisequeue.js +1 -1
  59. package/src/aichathistory/aichathistory.js +1 -1
  60. package/src/aichathistory/aichathistorycontroller.js +1 -1
  61. package/src/aichathistory/aichathistoryui.js +1 -1
  62. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  63. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  64. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  65. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  66. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  67. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  68. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  69. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  70. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  71. package/src/aicore/aiconnector.js +1 -1
  72. package/src/aicore/aiediting.js +1 -1
  73. package/src/aicore/model/aicapabilities.js +1 -1
  74. package/src/aicore/model/aiinteraction.js +1 -1
  75. package/src/aicore/model/aimodels.js +1 -1
  76. package/src/aicore/model/aireply.js +1 -1
  77. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  78. package/src/aicore/pipeline/airesponseparser.js +2 -2
  79. package/src/aicore/ui/aidisclaimerview.js +1 -1
  80. package/src/aicore/ui/aiskeleton.js +1 -1
  81. package/src/aicore/ui/aispinner.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  83. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  84. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  85. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  86. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  87. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  88. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  89. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  90. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  91. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  92. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  93. package/src/aicore/utils/createresizebutton.js +1 -1
  94. package/src/aicore/utils/documentrange.js +1 -1
  95. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  96. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  97. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  98. package/src/aicore/utils/htmlparser.js +1 -1
  99. package/src/aicore/utils/htmlstreamer.js +1 -1
  100. package/src/aieditorintegration/aieditorintegration.js +1 -1
  101. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  102. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  103. package/src/aiquickactions/aiquickactions.js +1 -1
  104. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  105. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  106. package/src/aiquickactions/aiquickactionsui.js +1 -1
  107. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  108. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  109. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  110. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  111. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  112. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  113. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  114. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  115. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  116. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  117. package/src/aireviewcore/aireviewcoreui.js +1 -1
  118. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  119. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  120. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  121. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  122. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  123. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  124. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  125. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  126. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  127. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  128. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  129. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  130. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  131. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  132. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  133. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  134. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  135. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  136. package/src/aireviewmode/aireviewmode.js +1 -1
  137. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  138. package/src/aireviewmode/aireviewmodeui.js +1 -1
  139. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  140. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  141. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  142. package/src/aitabs/aitabs.js +1 -1
  143. package/src/aitabs/tabs/aitabsview.js +1 -1
  144. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  145. package/src/aitabs/tabs/tabpanelview.js +1 -1
  146. package/src/aitranslate/aitranslate.js +1 -1
  147. package/src/aitranslate/aitranslatecontroller.js +1 -1
  148. package/src/aitranslate/aitranslateui.js +1 -1
  149. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  150. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  151. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2842(){const _0x43e087=['style','position','setEndBefore','mousedown','write','innerHTML','clipboard','change:isProcessing','createRange','-9999px','100xsuuxc','isProcessing','Copy','isVisible','ck-ai-form__copy-button-wrapper','setTemplate','body','setContent','appendLoader','13681943qpzraJ','bindTemplate','createElement','574aUDFRh','ck-ai-form__content-field','scrollHeight','firstElementChild','set','textContent','ck-reset_all-excluded','56xtqiDs','ck-hidden','_createCopyButton','AI\x20is\x20writing...','ck-ai-form__content-area--processing','remove','isEnabled','ClipboardItem','focus','342981UPusoq','\x20ck-ai-form__copy-button--copied','text/html','execute','<span>[</span>','locale','appendChild','1684214GcRBEm','querySelector','text/plain','icon','loaderView','copy','left','scrollTo','ck-ai-form__content-area-wrapper','listenTo','render','smooth','.ck-ai-form__loader','ck-content','76366PBpbbK','getSelection','class','copyButtonView','setStartAfter','absolute','change:value','contentFieldView','element','div','2058505MiiYDD','7023WUzlxy','lastElementChild','execCommand','value','bind','_copyHTMLToClipboard','<span>]</span>','ck-ai-form__content-area','ck-ai-form__copy-button','9892332aEpfqI','_createLoader','wheel','removeAllRanges','12ggDhdA','addRange','ck-ai-form__loader'];_0x2842=function(){return _0x43e087;};return _0x2842();}const _0x39e165=_0x204d;function _0x204d(_0x16ded8,_0x47d859){const _0x28422c=_0x2842();return _0x204d=function(_0x204ddb,_0x37d3a5){_0x204ddb=_0x204ddb-0x192;let _0x21e2eb=_0x28422c[_0x204ddb];return _0x21e2eb;},_0x204d(_0x16ded8,_0x47d859);}(function(_0x5dcbe4,_0x5a2522){const _0x2549cb=_0x204d,_0x5cc247=_0x5dcbe4();while(!![]){try{const _0x181fec=-parseInt(_0x2549cb(0x1d0))/0x1+parseInt(_0x2549cb(0x1ab))/0x2*(parseInt(_0x2549cb(0x1db))/0x3)+-parseInt(_0x2549cb(0x192))/0x4*(-parseInt(_0x2549cb(0x1da))/0x5)+parseInt(_0x2549cb(0x1e4))/0x6+parseInt(_0x2549cb(0x1c2))/0x7*(-parseInt(_0x2549cb(0x1b2))/0x8)+parseInt(_0x2549cb(0x1bb))/0x9*(parseInt(_0x2549cb(0x19f))/0xa)+-parseInt(_0x2549cb(0x1a8))/0xb;if(_0x181fec===_0x5a2522)break;else _0x5cc247['push'](_0x5cc247['shift']());}catch(_0x3d3026){_0x5cc247['push'](_0x5cc247['shift']());}}}(_0x2842,0xe3a25));import{global as _0x58678b}from'ckeditor5/src/utils.js';import{View as _0x24996c,ButtonView as _0x2cafcf,SpinnerView as _0x2440d8}from'ckeditor5/src/ui.js';import{IconCheck as _0xba22a9,IconCopy as _0x5e33a0}from'ckeditor5/src/icons.js';import{getTranslation as _0x170b6e}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x24996c{[_0x39e165(0x1d7)];[_0x39e165(0x1d3)];constructor(_0x262202,_0x532ac0=''){const _0x539510=_0x39e165;super(_0x262202),this[_0x539510(0x1af)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x510384=this[_0x539510(0x1a9)];this[_0x539510(0x1d7)]=new ContentFieldView(_0x262202,_0x532ac0),this[_0x539510(0x1d3)]=this[_0x539510(0x1b4)](),this[_0x539510(0x1a4)]({'tag':_0x539510(0x1d9),'attributes':{'class':['ck',_0x539510(0x1ca),_0x510384['if'](_0x539510(0x1a2),_0x539510(0x1b3),_0x334aca=>!_0x334aca)],'tabindex':'-1'},'children':[{'tag':_0x539510(0x1d9),'attributes':{'class':['ck',_0x539510(0x1e2),_0x510384['if'](_0x539510(0x1a0),_0x539510(0x1b6))]},'children':[this[_0x539510(0x1d7)],{'tag':_0x539510(0x1d9),'attributes':{'class':['ck',_0x539510(0x1a3)]},'children':[this[_0x539510(0x1d3)]]}]}]});}[_0x39e165(0x1cc)](){const _0x8820be=_0x39e165;super[_0x8820be(0x1cc)](),this[_0x8820be(0x1de)]&&this[_0x8820be(0x1d7)][_0x8820be(0x1a6)](this[_0x8820be(0x1de)]);let _0x5892e8=!0x1;this['on'](_0x8820be(0x1d6),(_0x536052,_0x1d28a3,_0x4b45d0)=>{const _0x33332c=_0x8820be,_0x59e855=!this[_0x33332c(0x1d7)][_0x33332c(0x1d8)][_0x33332c(0x1c3)](_0x33332c(0x1ce));this[_0x33332c(0x1d7)][_0x33332c(0x1a6)](_0x4b45d0),this[_0x33332c(0x1a0)]&&_0x59e855&&!_0x5892e8&&this[_0x33332c(0x1d8)][_0x33332c(0x1c9)]({'top':this[_0x33332c(0x1d8)][_0x33332c(0x1ad)],'behavior':_0x33332c(0x1cd)});}),this['on'](_0x8820be(0x19c),(_0x419043,_0x519534,_0x367ae2)=>{const _0x3e2eb0=_0x8820be;_0x5892e8=!0x1,_0x367ae2?(this[_0x3e2eb0(0x1de)]=null,this[_0x3e2eb0(0x1d7)][_0x3e2eb0(0x1a7)]()):this[_0x3e2eb0(0x1de)]||this[_0x3e2eb0(0x1d7)][_0x3e2eb0(0x1a6)]('');}),this[_0x8820be(0x1cb)](this[_0x8820be(0x1d8)],_0x8820be(0x1e6),()=>{_0x5892e8=!0x0;}),this[_0x8820be(0x1cb)](this[_0x8820be(0x1d8)],_0x8820be(0x198),()=>{_0x5892e8=!0x0;});}[_0x39e165(0x1ba)](){const _0x43aabf=_0x39e165;this[_0x43aabf(0x1d8)][_0x43aabf(0x1ba)]();}[_0x39e165(0x1b4)](){const _0x4d6424=_0x39e165,_0x2febec=this[_0x4d6424(0x1c0)],_0x4bd83f=new _0x2cafcf(this[_0x4d6424(0x1c0)]),_0x384b7e=_0x4d6424(0x1e3);return _0x4bd83f[_0x4d6424(0x1af)]({'label':_0x170b6e(_0x2febec,_0x4d6424(0x1a1)),'icon':_0x5e33a0,'class':_0x384b7e,'tooltip':!0x0}),_0x4bd83f[_0x4d6424(0x1df)](_0x4d6424(0x1a2))['to'](this,_0x4d6424(0x1de),_0x2dc5df=>!!_0x2dc5df),_0x4bd83f[_0x4d6424(0x1df)](_0x4d6424(0x1b8))['to'](this,_0x4d6424(0x1a0),_0x4589d1=>!_0x4589d1),_0x4bd83f['on'](_0x4d6424(0x1be),()=>{const _0x2dd3a2=_0x4d6424;this[_0x2dd3a2(0x1e0)](this[_0x2dd3a2(0x1d7)][_0x2dd3a2(0x1d8)]),_0x4bd83f[_0x2dd3a2(0x1c5)]=_0xba22a9,_0x4bd83f[_0x2dd3a2(0x1d2)]=_0x384b7e+_0x2dd3a2(0x1bc),this[_0x2dd3a2(0x1ba)](),setTimeout(()=>{const _0x744ed9=_0x2dd3a2;_0x4bd83f[_0x744ed9(0x1c5)]=_0x5e33a0,_0x4bd83f[_0x744ed9(0x1d2)]=_0x384b7e;},0x3e8);}),_0x4bd83f;}[_0x39e165(0x1e0)](_0x1cc6e9){const _0x88e48e=_0x39e165,{window:_0x3d3068,document:_0x43e76f}=_0x58678b;if(_0x3d3068[_0x88e48e(0x1b9)]){const {Blob:_0x425843,ClipboardItem:_0x2154cc}=_0x3d3068,_0x2b7a32=[new _0x2154cc({'text/html':new _0x425843([_0x1cc6e9[_0x88e48e(0x19a)]],{'type':_0x88e48e(0x1bd)}),'text/plain':new _0x425843([_0x1cc6e9[_0x88e48e(0x1b0)]||''],{'type':_0x88e48e(0x1c4)})})];navigator[_0x88e48e(0x19b)][_0x88e48e(0x199)](_0x2b7a32);}else{const _0x150e4b=_0x43e76f[_0x88e48e(0x1aa)](_0x88e48e(0x1d9));_0x150e4b[_0x88e48e(0x195)][_0x88e48e(0x196)]=_0x88e48e(0x1d5),_0x150e4b[_0x88e48e(0x195)][_0x88e48e(0x1c8)]=_0x88e48e(0x19e),_0x150e4b[_0x88e48e(0x19a)]=_0x88e48e(0x1bf)+_0x1cc6e9[_0x88e48e(0x19a)]+_0x88e48e(0x1e1),_0x43e76f[_0x88e48e(0x1a5)][_0x88e48e(0x1c1)](_0x150e4b);const _0x375954=_0x43e76f[_0x88e48e(0x19d)]();_0x375954[_0x88e48e(0x1d4)](_0x150e4b[_0x88e48e(0x1ae)]),_0x375954[_0x88e48e(0x197)](_0x150e4b[_0x88e48e(0x1dc)]);const _0x298e60=_0x3d3068[_0x88e48e(0x1d1)]();_0x298e60[_0x88e48e(0x1e7)](),_0x298e60[_0x88e48e(0x193)](_0x375954),_0x43e76f[_0x88e48e(0x1dd)](_0x88e48e(0x1c7)),_0x150e4b[_0x88e48e(0x1b7)]();}}}export class ContentFieldView extends _0x24996c{constructor(_0x6bdcc5,_0x4d0e13=''){const _0x4e6c43=_0x39e165;super(_0x6bdcc5),this[_0x4e6c43(0x1c6)]=this[_0x4e6c43(0x1e5)](),this[_0x4e6c43(0x1a4)]({'tag':_0x4e6c43(0x1d9),'attributes':{'class':['ck',_0x4e6c43(0x1cf),_0x4d0e13,_0x4e6c43(0x1b1),_0x4e6c43(0x1ac)]}});}[_0x39e165(0x1a6)](_0x1ab31e){const _0x2076c1=_0x39e165;this[_0x2076c1(0x1d8)][_0x2076c1(0x19a)]=_0x1ab31e;}[_0x39e165(0x1a7)](){const _0x54c2e3=_0x39e165;this[_0x54c2e3(0x1d8)][_0x54c2e3(0x1c1)](this[_0x54c2e3(0x1c6)][_0x54c2e3(0x1d8)]);}[_0x39e165(0x1e5)](){const _0x19556d=_0x39e165,_0xdbc869=new _0x24996c(),_0x30a196=this[_0x19556d(0x1c0)],_0x5df007=new _0x2440d8();return _0x5df007[_0x19556d(0x1a2)]=!0x0,_0xdbc869[_0x19556d(0x1a4)]({'tag':_0x19556d(0x1d9),'attributes':{'class':['ck',_0x19556d(0x194)]},'children':[_0x5df007,{'text':_0x170b6e(_0x30a196,_0x19556d(0x1b5))}]}),_0xdbc869[_0x19556d(0x1cc)](),_0xdbc869;}}
23
+ const _0x3b140e=_0x297e;(function(_0x39f5df,_0x38dfad){const _0x3cf0ad=_0x297e,_0x1af790=_0x39f5df();while(!![]){try{const _0x53c8d4=-parseInt(_0x3cf0ad(0xdb))/0x1*(-parseInt(_0x3cf0ad(0xbb))/0x2)+-parseInt(_0x3cf0ad(0xf8))/0x3+parseInt(_0x3cf0ad(0xf3))/0x4+parseInt(_0x3cf0ad(0xcc))/0x5+parseInt(_0x3cf0ad(0xfd))/0x6+parseInt(_0x3cf0ad(0xab))/0x7*(parseInt(_0x3cf0ad(0xc7))/0x8)+parseInt(_0x3cf0ad(0xe3))/0x9*(-parseInt(_0x3cf0ad(0xe1))/0xa);if(_0x53c8d4===_0x38dfad)break;else _0x1af790['push'](_0x1af790['shift']());}catch(_0x159aec){_0x1af790['push'](_0x1af790['shift']());}}}(_0x9e65,0x554d5));import{global as _0x153b2d}from'ckeditor5/src/utils.js';import{View as _0x5852b3,ButtonView as _0xc70968,SpinnerView as _0x333779}from'ckeditor5/src/ui.js';function _0x297e(_0x394cae,_0x23d597){const _0x9e65e3=_0x9e65();return _0x297e=function(_0x297eb9,_0x114568){_0x297eb9=_0x297eb9-0xa9;let _0x10ed4a=_0x9e65e3[_0x297eb9];return _0x10ed4a;},_0x297e(_0x394cae,_0x23d597);}import{IconCheck as _0xfcefb3,IconCopy as _0x1384ac}from'ckeditor5/src/icons.js';import{getTranslation as _0x9d90fc}from'../../utils/common-translations.js';function _0x9e65(){const _0x49e43f=['ck-content','isProcessing','textContent','set','-9999px','clipboard','ck-ai-form__copy-button','addRange','write','bindTemplate','932564PjMlkF','appendChild','div','firstElementChild','value','1337316FGXFfM','change:value','AI\x20is\x20writing...','ck-ai-form__content-area-wrapper','render','296004REilKj','_copyHTMLToClipboard','<span>]</span>','110719MKxiYV','setTemplate','appendLoader','locale','absolute','contentFieldView','text/plain','execCommand','.ck-ai-form__loader','isEnabled','icon','text/html','element','change:isProcessing','ck-reset_all-excluded','class','114382EVsESV','focus','isVisible','style','copyButtonView','ClipboardItem','ck-ai-form__loader','remove','ck-hidden','_createLoader','setEndBefore','scrollTo','272rbveYU','Copy','position','copy','execute','1246285nqMYJF','setStartAfter','removeAllRanges','ck-ai-form__copy-button-wrapper','wheel','<span>[</span>','lastElementChild','body','scrollHeight','listenTo','\x20ck-ai-form__copy-button--copied','createRange','ck-ai-form__content-area','_createCopyButton','mousedown','1VgrFhC','loaderView','createElement','ck-ai-form__content-field','left','smooth','20HPSivE','bind','1491894VeUmYC','setContent','getSelection','querySelector','ck-ai-form__content-area--processing','innerHTML'];_0x9e65=function(){return _0x49e43f;};return _0x9e65();}export class AIFormContentArea extends _0x5852b3{[_0x3b140e(0xb0)];[_0x3b140e(0xbf)];constructor(_0x211cf4,_0x183c62=''){const _0xc40e3b=_0x3b140e;super(_0x211cf4),this[_0xc40e3b(0xec)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x23c8e1=this[_0xc40e3b(0xf2)];this[_0xc40e3b(0xb0)]=new ContentFieldView(_0x211cf4,_0x183c62),this[_0xc40e3b(0xbf)]=this[_0xc40e3b(0xd9)](),this[_0xc40e3b(0xac)]({'tag':_0xc40e3b(0xf5),'attributes':{'class':['ck',_0xc40e3b(0xfb),_0x23c8e1['if'](_0xc40e3b(0xbd),_0xc40e3b(0xc3),_0x546e08=>!_0x546e08)],'tabindex':'-1'},'children':[{'tag':_0xc40e3b(0xf5),'attributes':{'class':['ck',_0xc40e3b(0xd8),_0x23c8e1['if'](_0xc40e3b(0xea),_0xc40e3b(0xe7))]},'children':[this[_0xc40e3b(0xb0)],{'tag':_0xc40e3b(0xf5),'attributes':{'class':['ck',_0xc40e3b(0xcf)]},'children':[this[_0xc40e3b(0xbf)]]}]}]});}[_0x3b140e(0xfc)](){const _0x564828=_0x3b140e;super[_0x564828(0xfc)](),this[_0x564828(0xf7)]&&this[_0x564828(0xb0)][_0x564828(0xe4)](this[_0x564828(0xf7)]);let _0x52bd6b=!0x1;this['on'](_0x564828(0xf9),(_0x4ecb01,_0x278681,_0x43882a)=>{const _0x13bd4b=_0x564828,_0x3d0be7=!this[_0x13bd4b(0xb0)][_0x13bd4b(0xb7)][_0x13bd4b(0xe6)](_0x13bd4b(0xb3));this[_0x13bd4b(0xb0)][_0x13bd4b(0xe4)](_0x43882a),this[_0x13bd4b(0xea)]&&_0x3d0be7&&!_0x52bd6b&&this[_0x13bd4b(0xb7)][_0x13bd4b(0xc6)]({'top':this[_0x13bd4b(0xb7)][_0x13bd4b(0xd4)],'behavior':_0x13bd4b(0xe0)});}),this['on'](_0x564828(0xb8),(_0x8000a9,_0xc505be,_0x3b9bf2)=>{const _0x2c8c36=_0x564828;_0x52bd6b=!0x1,_0x3b9bf2?(this[_0x2c8c36(0xf7)]=null,this[_0x2c8c36(0xb0)][_0x2c8c36(0xad)]()):this[_0x2c8c36(0xf7)]||this[_0x2c8c36(0xb0)][_0x2c8c36(0xe4)]('');}),this[_0x564828(0xd5)](this[_0x564828(0xb7)],_0x564828(0xd0),()=>{_0x52bd6b=!0x0;}),this[_0x564828(0xd5)](this[_0x564828(0xb7)],_0x564828(0xda),()=>{_0x52bd6b=!0x0;});}[_0x3b140e(0xbc)](){const _0x3f4aad=_0x3b140e;this[_0x3f4aad(0xb7)][_0x3f4aad(0xbc)]();}[_0x3b140e(0xd9)](){const _0x300645=_0x3b140e,_0x146f4b=this[_0x300645(0xae)],_0x2e938c=new _0xc70968(this[_0x300645(0xae)]),_0x4b4ce5=_0x300645(0xef);return _0x2e938c[_0x300645(0xec)]({'label':_0x9d90fc(_0x146f4b,_0x300645(0xc8)),'icon':_0x1384ac,'class':_0x4b4ce5,'tooltip':!0x0}),_0x2e938c[_0x300645(0xe2)](_0x300645(0xbd))['to'](this,_0x300645(0xf7),_0x59481b=>!!_0x59481b),_0x2e938c[_0x300645(0xe2)](_0x300645(0xb4))['to'](this,_0x300645(0xea),_0x39a0f5=>!_0x39a0f5),_0x2e938c['on'](_0x300645(0xcb),()=>{const _0x5bedbe=_0x300645;this[_0x5bedbe(0xa9)](this[_0x5bedbe(0xb0)][_0x5bedbe(0xb7)]),_0x2e938c[_0x5bedbe(0xb5)]=_0xfcefb3,_0x2e938c[_0x5bedbe(0xba)]=_0x4b4ce5+_0x5bedbe(0xd6),this[_0x5bedbe(0xbc)](),setTimeout(()=>{const _0x36eb81=_0x5bedbe;_0x2e938c[_0x36eb81(0xb5)]=_0x1384ac,_0x2e938c[_0x36eb81(0xba)]=_0x4b4ce5;},0x3e8);}),_0x2e938c;}[_0x3b140e(0xa9)](_0xa40414){const _0x37c979=_0x3b140e,{window:_0x183bd8,document:_0x137e9c}=_0x153b2d;if(_0x183bd8[_0x37c979(0xc0)]){const {Blob:_0x94c378,ClipboardItem:_0x2677a5}=_0x183bd8,_0x24d9dd=[new _0x2677a5({'text/html':new _0x94c378([_0xa40414[_0x37c979(0xe8)]],{'type':_0x37c979(0xb6)}),'text/plain':new _0x94c378([_0xa40414[_0x37c979(0xeb)]||''],{'type':_0x37c979(0xb1)})})];navigator[_0x37c979(0xee)][_0x37c979(0xf1)](_0x24d9dd);}else{const _0x364d96=_0x137e9c[_0x37c979(0xdd)](_0x37c979(0xf5));_0x364d96[_0x37c979(0xbe)][_0x37c979(0xc9)]=_0x37c979(0xaf),_0x364d96[_0x37c979(0xbe)][_0x37c979(0xdf)]=_0x37c979(0xed),_0x364d96[_0x37c979(0xe8)]=_0x37c979(0xd1)+_0xa40414[_0x37c979(0xe8)]+_0x37c979(0xaa),_0x137e9c[_0x37c979(0xd3)][_0x37c979(0xf4)](_0x364d96);const _0x5366b6=_0x137e9c[_0x37c979(0xd7)]();_0x5366b6[_0x37c979(0xcd)](_0x364d96[_0x37c979(0xf6)]),_0x5366b6[_0x37c979(0xc5)](_0x364d96[_0x37c979(0xd2)]);const _0x43c0d3=_0x183bd8[_0x37c979(0xe5)]();_0x43c0d3[_0x37c979(0xce)](),_0x43c0d3[_0x37c979(0xf0)](_0x5366b6),_0x137e9c[_0x37c979(0xb2)](_0x37c979(0xca)),_0x364d96[_0x37c979(0xc2)]();}}}export class ContentFieldView extends _0x5852b3{constructor(_0x105afa,_0x503ea5=''){const _0x2fdb43=_0x3b140e;super(_0x105afa),this[_0x2fdb43(0xdc)]=this[_0x2fdb43(0xc4)](),this[_0x2fdb43(0xac)]({'tag':_0x2fdb43(0xf5),'attributes':{'class':['ck',_0x2fdb43(0xe9),_0x503ea5,_0x2fdb43(0xb9),_0x2fdb43(0xde)]}});}[_0x3b140e(0xe4)](_0x14ca22){const _0x5e7f32=_0x3b140e;this[_0x5e7f32(0xb7)][_0x5e7f32(0xe8)]=_0x14ca22;}[_0x3b140e(0xad)](){const _0x37a577=_0x3b140e;this[_0x37a577(0xb7)][_0x37a577(0xf4)](this[_0x37a577(0xdc)][_0x37a577(0xb7)]);}[_0x3b140e(0xc4)](){const _0x29c1dd=_0x3b140e,_0x38587b=new _0x5852b3(),_0x573a8b=this[_0x29c1dd(0xae)],_0x5648de=new _0x333779();return _0x5648de[_0x29c1dd(0xbd)]=!0x0,_0x38587b[_0x29c1dd(0xac)]({'tag':_0x29c1dd(0xf5),'attributes':{'class':['ck',_0x29c1dd(0xc1)]},'children':[_0x5648de,{'text':_0x9d90fc(_0x573a8b,_0x29c1dd(0xfa))}]}),_0x38587b[_0x29c1dd(0xfc)](),_0x38587b;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x50b7(_0x395329,_0x134048){const _0x596aa8=_0x596a();return _0x50b7=function(_0x50b703,_0x30f55f){_0x50b703=_0x50b703-0x103;let _0x3bc413=_0x596aa8[_0x50b703];return _0x3bc413;},_0x50b7(_0x395329,_0x134048);}function _0x596a(){const _0x348390=['ck-ai-form__error','52085PXTyxf','9910Vzwrqz','content','bindTemplate','14FmiGMf','6706490BIfiIn','1486530NHStex','4219230TYlgxS','setTemplate','26zCFfhl','32lhVgrw','set','4679436gJNSOq','1597731VsVzgi','7730AUiJot','text','div'];_0x596a=function(){return _0x348390;};return _0x596a();}(function(_0x365528,_0x5ef0fd){const _0x4427cf=_0x50b7,_0x3e2019=_0x365528();while(!![]){try{const _0xe99864=-parseInt(_0x4427cf(0x10a))/0x1*(parseInt(_0x4427cf(0x114))/0x2)+-parseInt(_0x4427cf(0x10e))/0x3+parseInt(_0x4427cf(0x10d))/0x4+-parseInt(_0x4427cf(0x106))/0x5+parseInt(_0x4427cf(0x108))/0x6*(-parseInt(_0x4427cf(0x105))/0x7)+parseInt(_0x4427cf(0x10b))/0x8*(-parseInt(_0x4427cf(0x107))/0x9)+parseInt(_0x4427cf(0x10f))/0xa*(parseInt(_0x4427cf(0x113))/0xb);if(_0xe99864===_0x5ef0fd)break;else _0x3e2019['push'](_0x3e2019['shift']());}catch(_0x39a056){_0x3e2019['push'](_0x3e2019['shift']());}}}(_0x596a,0xb999b));import{IconError as _0x3c4397}from'ckeditor5/src/icons.js';import{View as _0x97463f,IconView as _0x194c00}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x97463f{constructor(_0x15dc01,_0x427e63=''){const _0x3d5497=_0x50b7;super(_0x15dc01);const _0xdf2f6=new _0x194c00(),_0xc0bad=this[_0x3d5497(0x104)];this[_0x3d5497(0x10c)](_0x3d5497(0x110),_0x427e63),_0xdf2f6[_0x3d5497(0x103)]=_0x3c4397,this[_0x3d5497(0x109)]({'tag':_0x3d5497(0x111),'attributes':{'class':['ck',_0x3d5497(0x112)]},'children':[_0xdf2f6,{'text':_0xc0bad['to'](_0x3d5497(0x110))}]});}}
23
+ function _0x45f8(_0x15fb65,_0x560c09){const _0x35f115=_0x35f1();return _0x45f8=function(_0x45f8cd,_0x2600fb){_0x45f8cd=_0x45f8cd-0x1c4;let _0x567072=_0x35f115[_0x45f8cd];return _0x567072;},_0x45f8(_0x15fb65,_0x560c09);}(function(_0x5c4f80,_0x43199a){const _0x34d032=_0x45f8,_0x5553d8=_0x5c4f80();while(!![]){try{const _0x367ece=parseInt(_0x34d032(0x1cb))/0x1+-parseInt(_0x34d032(0x1cd))/0x2+-parseInt(_0x34d032(0x1c4))/0x3+-parseInt(_0x34d032(0x1ce))/0x4+-parseInt(_0x34d032(0x1d0))/0x5+-parseInt(_0x34d032(0x1c9))/0x6+parseInt(_0x34d032(0x1d1))/0x7;if(_0x367ece===_0x43199a)break;else _0x5553d8['push'](_0x5553d8['shift']());}catch(_0x1f9653){_0x5553d8['push'](_0x5553d8['shift']());}}}(_0x35f1,0xd640b));import{IconError as _0x5e9ea6}from'ckeditor5/src/icons.js';import{View as _0x48f6b3,IconView as _0x48c65e}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x48f6b3{constructor(_0x236d29,_0xf50553=''){const _0x139ecd=_0x45f8;super(_0x236d29);const _0x10fdc7=new _0x48c65e(),_0xf1967a=this[_0x139ecd(0x1c5)];this[_0x139ecd(0x1c7)](_0x139ecd(0x1c8),_0xf50553),_0x10fdc7[_0x139ecd(0x1c6)]=_0x5e9ea6,this[_0x139ecd(0x1cc)]({'tag':_0x139ecd(0x1cf),'attributes':{'class':['ck',_0x139ecd(0x1ca)]},'children':[_0x10fdc7,{'text':_0xf1967a['to'](_0x139ecd(0x1c8))}]});}}function _0x35f1(){const _0x1611a7=['content','set','text','2286504ANrTiO','ck-ai-form__error','399828bThVmY','setTemplate','1693742tlHMoK','3242644qPpXRB','div','2351270aNeyxM','25315115xKgrsb','1889472yLuzaf','bindTemplate'];_0x35f1=function(){return _0x1611a7;};return _0x35f1();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b9b7c=_0x1655;(function(_0x51d659,_0x5685d0){const _0x5282d6=_0x1655,_0x9acfe=_0x51d659();while(!![]){try{const _0x56c236=parseInt(_0x5282d6(0x1b4))/0x1*(parseInt(_0x5282d6(0x1a3))/0x2)+-parseInt(_0x5282d6(0x193))/0x3+parseInt(_0x5282d6(0x194))/0x4*(parseInt(_0x5282d6(0x1b1))/0x5)+parseInt(_0x5282d6(0x192))/0x6*(parseInt(_0x5282d6(0x1be))/0x7)+parseInt(_0x5282d6(0x19f))/0x8+-parseInt(_0x5282d6(0x1af))/0x9+-parseInt(_0x5282d6(0x1a6))/0xa;if(_0x56c236===_0x5685d0)break;else _0x9acfe['push'](_0x9acfe['shift']());}catch(_0x333b13){_0x9acfe['push'](_0x9acfe['shift']());}}}(_0x22d3,0xc08f5));function _0x22d3(){const _0xc87666=['queryView','element','11423392IkxNYQ','execute','focusableChildren','focusLast','543094AQttEe','requestAnimationFrame','_createShowHistoryButton','6053590qLcLhd','filteredView','ck-ai-form__toggle-history','focusCycler','submit','keystrokes','locale','focus','right','573291jgHyyM','set','1115xqAeuI','uiLanguageDirection','ck-ai-form__submit','1pykGvt','minRows','isVisible','fieldWrapperChildren','showHistoryButtonView','target','left','excludeScrollbarsAndBorders','style','isEmpty','4842985TjYman','add','window','fieldView','render','isEnabled','children','update','width','enter','submitButtonView','rtl','isOn','bind','6brbTiX','3151185VMbLRA','2096DiTeAa','value','_createSubmitButton','fire','focusFirst','maxRows','Submit','History','resultsView'];_0x22d3=function(){return _0xc87666;};return _0x22d3();}function _0x1655(_0x17c8fb,_0x16867a){const _0x22d326=_0x22d3();return _0x1655=function(_0x165588,_0x1f2aa6){_0x165588=_0x165588-0x18f;let _0x4327fc=_0x22d326[_0x165588];return _0x4327fc;},_0x1655(_0x17c8fb,_0x16867a);}import{Rect as _0xc87e26,global as _0x223ee4,isVisible as _0x48b890}from'ckeditor5/src/utils.js';import{IconAIHistory as _0x4dd16b,IconSubmit as _0x17b323}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x145e36,ButtonView as _0x427216}from'ckeditor5/src/ui.js';import{getTranslation as _0x13be56}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x145e36{[_0x5b9b7c(0x1c8)];[_0x5b9b7c(0x1b8)];constructor(_0x673dd0,_0x4c6273){const _0x38f650=_0x5b9b7c;super(_0x673dd0,_0x4c6273),this[_0x38f650(0x19d)][_0x38f650(0x1c1)][_0x38f650(0x1b5)]=0x1,this[_0x38f650(0x19d)][_0x38f650(0x1c1)][_0x38f650(0x199)]=0x3,this[_0x38f650(0x1c8)]=this[_0x38f650(0x196)](),this[_0x38f650(0x1b8)]=this[_0x38f650(0x1a5)](),this[_0x38f650(0x1a1)][_0x38f650(0x1bf)](this[_0x38f650(0x1b8)],0x1),this[_0x38f650(0x1a1)][_0x38f650(0x1bf)](this[_0x38f650(0x1c8)]);}[_0x5b9b7c(0x1c2)](){const _0x25c1b3=_0x5b9b7c;super[_0x25c1b3(0x1c2)](),this[_0x25c1b3(0x19d)][_0x25c1b3(0x1b7)][_0x25c1b3(0x1bf)](this[_0x25c1b3(0x1b8)]),this[_0x25c1b3(0x1c4)][_0x25c1b3(0x1bf)](this[_0x25c1b3(0x1c8)]),this[_0x25c1b3(0x1ab)][_0x25c1b3(0x1b0)](_0x25c1b3(0x1c7),(_0x16704d,_0x37d8e6)=>{const _0x439123=_0x25c1b3;_0x16704d[_0x439123(0x1b9)]==this[_0x439123(0x19d)][_0x439123(0x1c1)][_0x439123(0x19e)]&&(this[_0x439123(0x1aa)](),_0x37d8e6());});}[_0x5b9b7c(0x196)](){const _0x4130b1=_0x5b9b7c,_0x3818d6=new _0x427216(this[_0x4130b1(0x1ac)]),_0x145c6c=this[_0x4130b1(0x1ac)];return _0x3818d6[_0x4130b1(0x1b0)]({'icon':_0x17b323,'label':_0x13be56(_0x145c6c,_0x4130b1(0x19a)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x4130b1(0x1b3)}),_0x3818d6['on'](_0x4130b1(0x1a0),()=>{const _0x3eae0f=_0x4130b1;this[_0x3eae0f(0x1aa)]();}),_0x3818d6[_0x4130b1(0x191)](_0x4130b1(0x1c3))['to'](this[_0x4130b1(0x19d)][_0x4130b1(0x1c1)],_0x4130b1(0x1bd),this,_0x4130b1(0x1c3),(_0x15bc83,_0x37add2)=>!_0x15bc83&&_0x37add2),_0x3818d6;}[_0x5b9b7c(0x1a5)](){const _0x207dd5=_0x5b9b7c,_0x44a560=new _0x427216(this[_0x207dd5(0x1ac)]),_0x2f72f7=this[_0x207dd5(0x19c)],_0xdbcd2c=this[_0x207dd5(0x1ac)];_0x44a560[_0x207dd5(0x1b0)]({'label':_0x13be56(_0xdbcd2c,_0x207dd5(0x19b)),'withText':!0x1,'icon':_0x4dd16b,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x207dd5(0x1a8)}),_0x44a560[_0x207dd5(0x191)](_0x207dd5(0x190))['to'](_0x2f72f7,_0x207dd5(0x1b6)),_0x44a560[_0x207dd5(0x191)](_0x207dd5(0x1c3))['to'](this,_0x207dd5(0x1c3)),_0x44a560['on'](_0x207dd5(0x1a0),()=>{const _0x45e1ad=_0x207dd5;_0x2f72f7[_0x45e1ad(0x1b6)]=!_0x2f72f7[_0x45e1ad(0x1b6)],_0x2f72f7[_0x45e1ad(0x1b6)]?this[_0x45e1ad(0x1a7)][_0x45e1ad(0x1ad)]():this[_0x45e1ad(0x1ad)]();});const _0x27d56e=()=>{const _0x1bf710=_0x207dd5;_0x223ee4[_0x1bf710(0x1c0)][_0x1bf710(0x1a4)](()=>{const _0x3c2d62=_0x1bf710;if(_0x48b890(this[_0x3c2d62(0x19e)])){const _0x2a294d=new _0xc87e26(this[_0x3c2d62(0x19d)][_0x3c2d62(0x1c1)][_0x3c2d62(0x19e)]),_0x3870b5=_0x2a294d[_0x3c2d62(0x1c6)],_0x1d589f=_0x3c2d62(0x18f)===_0xdbcd2c[_0x3c2d62(0x1b2)]?_0x3c2d62(0x1ba):_0x3c2d62(0x1ae);_0x2a294d[_0x3c2d62(0x1bb)](),_0x44a560[_0x3c2d62(0x19e)][_0x3c2d62(0x1bc)][_0x1d589f]=_0x3870b5-_0x2a294d[_0x3c2d62(0x1c6)]+0x1+'px';}});};return this[_0x207dd5(0x19d)][_0x207dd5(0x1c1)]['on'](_0x207dd5(0x1c5),_0x27d56e),this['on'](_0x207dd5(0x1c2),_0x27d56e),_0x44a560;}[_0x5b9b7c(0x1aa)](){const _0x112c5f=_0x5b9b7c,_0x46590f=this[_0x112c5f(0x19d)][_0x112c5f(0x1c1)][_0x112c5f(0x19e)][_0x112c5f(0x195)];this[_0x112c5f(0x197)](_0x112c5f(0x1aa),_0x46590f);}[_0x5b9b7c(0x1ad)](_0x39829c){const _0x1a985a=_0x5b9b7c;-0x1===_0x39829c?this[_0x1a985a(0x1a9)][_0x1a985a(0x1a2)]():this[_0x1a985a(0x1a9)][_0x1a985a(0x198)]();}}
23
+ function _0x2a31(){const _0x2c3259=['width','filteredView','_createSubmitButton','add','submitButtonView','371442pUcibD','requestAnimationFrame','left','77MIOoOH','enter','showHistoryButtonView','focusCycler','queryView','1851228DzqBBy','ck-ai-form__toggle-history','submit','maxRows','isEmpty','fieldWrapperChildren','1150322zJYdwL','bind','right','target','locale','rtl','62523JCngRa','uiLanguageDirection','focusableChildren','11848120iUVTxq','excludeScrollbarsAndBorders','isOn','ck-ai-form__submit','execute','update','History','render','isVisible','fieldView','window','resultsView','_createShowHistoryButton','children','style','focus','isEnabled','fire','element','focusFirst','focusLast','minRows','585075EHtLoL','3038705HvYCoz','keystrokes','Submit','value','set'];_0x2a31=function(){return _0x2c3259;};return _0x2a31();}const _0x4abfbe=_0x2ff5;(function(_0x1cb6bb,_0x359dc1){const _0x27ba55=_0x2ff5,_0x54b2f8=_0x1cb6bb();while(!![]){try{const _0x2fb26f=parseInt(_0x27ba55(0xde))/0x1+parseInt(_0x27ba55(0xf7))/0x2+-parseInt(_0x27ba55(0xc5))/0x3+-parseInt(_0x27ba55(0xf1))/0x4+parseInt(_0x27ba55(0xdf))/0x5+-parseInt(_0x27ba55(0xe9))/0x6*(-parseInt(_0x27ba55(0xec))/0x7)+-parseInt(_0x27ba55(0xc8))/0x8;if(_0x2fb26f===_0x359dc1)break;else _0x54b2f8['push'](_0x54b2f8['shift']());}catch(_0x182e8e){_0x54b2f8['push'](_0x54b2f8['shift']());}}}(_0x2a31,0x763c3));import{Rect as _0x14fe15,global as _0x2b4b8b,isVisible as _0x2846d4}from'ckeditor5/src/utils.js';import{IconAIHistory as _0xa42508,IconSubmit as _0x3c90e6}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x13730f,ButtonView as _0x53775b}from'ckeditor5/src/ui.js';import{getTranslation as _0x3344c0}from'../../utils/common-translations.js';function _0x2ff5(_0x4d8c22,_0xa9b99e){const _0x2a315f=_0x2a31();return _0x2ff5=function(_0x2ff545,_0x1f3e88){_0x2ff545=_0x2ff545-0xc2;let _0x11dcdb=_0x2a315f[_0x2ff545];return _0x11dcdb;},_0x2ff5(_0x4d8c22,_0xa9b99e);}export class AIFormPromptView extends _0x13730f{[_0x4abfbe(0xe8)];[_0x4abfbe(0xee)];constructor(_0xe07d46,_0x346a22){const _0x4470df=_0x4abfbe;super(_0xe07d46,_0x346a22),this[_0x4470df(0xf0)][_0x4470df(0xd1)][_0x4470df(0xdd)]=0x1,this[_0x4470df(0xf0)][_0x4470df(0xd1)][_0x4470df(0xf4)]=0x3,this[_0x4470df(0xe8)]=this[_0x4470df(0xe6)](),this[_0x4470df(0xee)]=this[_0x4470df(0xd4)](),this[_0x4470df(0xc7)][_0x4470df(0xe7)](this[_0x4470df(0xee)],0x1),this[_0x4470df(0xc7)][_0x4470df(0xe7)](this[_0x4470df(0xe8)]);}[_0x4abfbe(0xcf)](){const _0x18db81=_0x4abfbe;super[_0x18db81(0xcf)](),this[_0x18db81(0xf0)][_0x18db81(0xf6)][_0x18db81(0xe7)](this[_0x18db81(0xee)]),this[_0x18db81(0xd5)][_0x18db81(0xe7)](this[_0x18db81(0xe8)]),this[_0x18db81(0xe0)][_0x18db81(0xe3)](_0x18db81(0xed),(_0x57f2f3,_0x3d6e52)=>{const _0x312062=_0x18db81;_0x57f2f3[_0x312062(0xc2)]==this[_0x312062(0xf0)][_0x312062(0xd1)][_0x312062(0xda)]&&(this[_0x312062(0xf3)](),_0x3d6e52());});}[_0x4abfbe(0xe6)](){const _0x49b418=_0x4abfbe,_0x2aa815=new _0x53775b(this[_0x49b418(0xc3)]),_0x3d6811=this[_0x49b418(0xc3)];return _0x2aa815[_0x49b418(0xe3)]({'icon':_0x3c90e6,'label':_0x3344c0(_0x3d6811,_0x49b418(0xe1)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x49b418(0xcb)}),_0x2aa815['on'](_0x49b418(0xcc),()=>{const _0x4742a6=_0x49b418;this[_0x4742a6(0xf3)]();}),_0x2aa815[_0x49b418(0xf8)](_0x49b418(0xd8))['to'](this[_0x49b418(0xf0)][_0x49b418(0xd1)],_0x49b418(0xf5),this,_0x49b418(0xd8),(_0x49c6ee,_0x57a41f)=>!_0x49c6ee&&_0x57a41f),_0x2aa815;}[_0x4abfbe(0xd4)](){const _0x5f373c=_0x4abfbe,_0x22b777=new _0x53775b(this[_0x5f373c(0xc3)]),_0xb9e81a=this[_0x5f373c(0xd3)],_0x2f0916=this[_0x5f373c(0xc3)];_0x22b777[_0x5f373c(0xe3)]({'label':_0x3344c0(_0x2f0916,_0x5f373c(0xce)),'withText':!0x1,'icon':_0xa42508,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x5f373c(0xf2)}),_0x22b777[_0x5f373c(0xf8)](_0x5f373c(0xca))['to'](_0xb9e81a,_0x5f373c(0xd0)),_0x22b777[_0x5f373c(0xf8)](_0x5f373c(0xd8))['to'](this,_0x5f373c(0xd8)),_0x22b777['on'](_0x5f373c(0xcc),()=>{const _0x2bbaa3=_0x5f373c;_0xb9e81a[_0x2bbaa3(0xd0)]=!_0xb9e81a[_0x2bbaa3(0xd0)],_0xb9e81a[_0x2bbaa3(0xd0)]?this[_0x2bbaa3(0xe5)][_0x2bbaa3(0xd7)]():this[_0x2bbaa3(0xd7)]();});const _0x3f3b4f=()=>{const _0x59089b=_0x5f373c;_0x2b4b8b[_0x59089b(0xd2)][_0x59089b(0xea)](()=>{const _0x5da510=_0x59089b;if(_0x2846d4(this[_0x5da510(0xda)])){const _0x56ab7c=new _0x14fe15(this[_0x5da510(0xf0)][_0x5da510(0xd1)][_0x5da510(0xda)]),_0x4ec0ec=_0x56ab7c[_0x5da510(0xe4)],_0x166086=_0x5da510(0xc4)===_0x2f0916[_0x5da510(0xc6)]?_0x5da510(0xeb):_0x5da510(0xf9);_0x56ab7c[_0x5da510(0xc9)](),_0x22b777[_0x5da510(0xda)][_0x5da510(0xd6)][_0x166086]=_0x4ec0ec-_0x56ab7c[_0x5da510(0xe4)]+0x1+'px';}});};return this[_0x5f373c(0xf0)][_0x5f373c(0xd1)]['on'](_0x5f373c(0xcd),_0x3f3b4f),this['on'](_0x5f373c(0xcf),_0x3f3b4f),_0x22b777;}[_0x4abfbe(0xf3)](){const _0x38f80b=_0x4abfbe,_0x317508=this[_0x38f80b(0xf0)][_0x38f80b(0xd1)][_0x38f80b(0xda)][_0x38f80b(0xe2)];this[_0x38f80b(0xd9)](_0x38f80b(0xf3),_0x317508);}[_0x4abfbe(0xd7)](_0x596b99){const _0xde0ba5=_0x4abfbe;-0x1===_0x596b99?this[_0xde0ba5(0xef)][_0xde0ba5(0xdc)]():this[_0xde0ba5(0xef)][_0xde0ba5(0xdb)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b5acc=_0xe1b1;function _0x44a7(){const _0x1e380a=['REPLACE','extendTemplate','bindTemplate','mainAction','2725989KGqjkY','tryAgainButton','bind','AI_','3000872qeSoqn','Try\x20again','label','replace','_CONTENT','ck-hidden','items','14265IlMCrw','ck-button-action','insertButton','479860HkLSpC','locale','870iFhGWI','replaceButton','stopButton','Stop','24HdXNEs','15WJfzCB','_createButton','addMany','Insert\x20below','65135cPcEgo','ck-ai-form__toolbar','insert','1080640gZMFxA','1384410EYkAho','isVisible','set','toUpperCase'];_0x44a7=function(){return _0x1e380a;};return _0x44a7();}(function(_0x13b0d1,_0x2131e){const _0x19366f=_0xe1b1,_0x4a3880=_0x13b0d1();while(!![]){try{const _0xbb653e=parseInt(_0x19366f(0xff))/0x1+parseInt(_0x19366f(0x103))/0x2+parseInt(_0x19366f(0xfb))/0x3*(-parseInt(_0x19366f(0x102))/0x4)+parseInt(_0x19366f(0xf4))/0x5*(parseInt(_0x19366f(0xfa))/0x6)+parseInt(_0x19366f(0x10b))/0x7+parseInt(_0x19366f(0x10f))/0x8+-parseInt(_0x19366f(0xf1))/0x9*(-parseInt(_0x19366f(0xf6))/0xa);if(_0xbb653e===_0x2131e)break;else _0x4a3880['push'](_0x4a3880['shift']());}catch(_0x2a97ee){_0x4a3880['push'](_0x4a3880['shift']());}}}(_0x44a7,0xa927b));function _0xe1b1(_0x4abe28,_0x2bf994){const _0x44a7b9=_0x44a7();return _0xe1b1=function(_0xe1b1b2,_0xb02dec){_0xe1b1b2=_0xe1b1b2-0xec;let _0xf9512b=_0x44a7b9[_0xe1b1b2];return _0xf9512b;},_0xe1b1(_0x4abe28,_0x2bf994);}import{ToolbarView as _0x3c6ec9,ButtonView as _0x8fa0b}from'ckeditor5/src/ui.js';import{getTranslation as _0x3a5b50}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x4b5acc(0xed),'INSERT':_0x4b5acc(0x101)};export class AIFormToolbarView extends _0x3c6ec9{constructor(_0x1c9a55){const _0x302581=_0x4b5acc;super(_0x1c9a55),this[_0x302581(0x105)](_0x302581(0x104),!0x1),this[_0x302581(0x105)](_0x302581(0x10a),AIFormToolbarViewMainActionLabel[_0x302581(0x107)]),this[_0x302581(0xf7)]=this[_0x302581(0xfc)]('',_0x302581(0xf2)),this[_0x302581(0xf7)][_0x302581(0x10d)](_0x302581(0xec))['to'](this,_0x302581(0x10a),_0x36e704=>_0x3a5b50(_0x1c9a55,_0x302581(0x10e)+_0x36e704[_0x302581(0x106)]()+_0x302581(0xee))),this[_0x302581(0xf3)]=this[_0x302581(0xfc)](_0x3a5b50(_0x1c9a55,_0x302581(0xfe))),this[_0x302581(0x10c)]=this[_0x302581(0xfc)](_0x3a5b50(_0x1c9a55,_0x302581(0x110))),this[_0x302581(0xf8)]=this[_0x302581(0xfc)](_0x3a5b50(_0x1c9a55,_0x302581(0xf9)));const _0x3b558e=this[_0x302581(0x109)];this[_0x302581(0x108)]({'attributes':{'class':[_0x302581(0x100),_0x3b558e['if'](_0x302581(0x104),_0x302581(0xef),_0x4afd0e=>!_0x4afd0e)]}}),this[_0x302581(0xf0)][_0x302581(0xfd)]([this[_0x302581(0xf7)],this[_0x302581(0xf3)],this[_0x302581(0x10c)],this[_0x302581(0xf8)]]);}[_0x4b5acc(0xfc)](_0x5d1c56,_0x594feb){const _0x2bd94f=_0x4b5acc,_0x35f9e0=new _0x8fa0b(this[_0x2bd94f(0xf5)]);return _0x35f9e0[_0x2bd94f(0x105)]({'label':_0x5d1c56,'class':_0x594feb||'','isVisible':!0x0,'withText':!0x0}),_0x35f9e0;}}
23
+ function _0x221f(_0x22afc2,_0x2d29af){const _0x11bd01=_0x11bd();return _0x221f=function(_0x221ff2,_0x504666){_0x221ff2=_0x221ff2-0x8c;let _0x2a9d35=_0x11bd01[_0x221ff2];return _0x2a9d35;},_0x221f(_0x22afc2,_0x2d29af);}function _0x11bd(){const _0x1083e8=['bindTemplate','ck-ai-form__toolbar','items','set','extendTemplate','28yGZmqu','334864tdbjOx','2782716xmDCAW','stopButton','tryAgainButton','3817440rLykIz','ck-hidden','Try\x20again','REPLACE','380055yhIelr','_CONTENT','insertButton','1171804jfEBeY','35860YqNGoO','AI_','374155KFrPVu','addMany','Insert\x20below','_createButton','label','replaceButton','21lRrFIa','replace','toUpperCase','isVisible','mainAction','locale','insert','Stop','ck-button-action','bind'];_0x11bd=function(){return _0x1083e8;};return _0x11bd();}const _0x2d7152=_0x221f;(function(_0x5d49c2,_0xaaff51){const _0x576349=_0x221f,_0xcb411d=_0x5d49c2();while(!![]){try{const _0x18a574=parseInt(_0x576349(0x96))/0x1+-parseInt(_0x576349(0x9a))/0x2*(-parseInt(_0x576349(0xa2))/0x3)+-parseInt(_0x576349(0x99))/0x4+parseInt(_0x576349(0x9c))/0x5+parseInt(_0x576349(0x8f))/0x6+-parseInt(_0x576349(0x8d))/0x7*(-parseInt(_0x576349(0x8e))/0x8)+-parseInt(_0x576349(0x92))/0x9;if(_0x18a574===_0xaaff51)break;else _0xcb411d['push'](_0xcb411d['shift']());}catch(_0x426f5b){_0xcb411d['push'](_0xcb411d['shift']());}}}(_0x11bd,0x78ba7));import{ToolbarView as _0x37b3e8,ButtonView as _0x236461}from'ckeditor5/src/ui.js';import{getTranslation as _0x220654}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x2d7152(0xa3),'INSERT':_0x2d7152(0xa8)};export class AIFormToolbarView extends _0x37b3e8{constructor(_0x38c24c){const _0x32c730=_0x2d7152;super(_0x38c24c),this[_0x32c730(0xaf)](_0x32c730(0xa5),!0x1),this[_0x32c730(0xaf)](_0x32c730(0xa6),AIFormToolbarViewMainActionLabel[_0x32c730(0x95)]),this[_0x32c730(0xa1)]=this[_0x32c730(0x9f)]('',_0x32c730(0xaa)),this[_0x32c730(0xa1)][_0x32c730(0xab)](_0x32c730(0xa0))['to'](this,_0x32c730(0xa6),_0x24fef8=>_0x220654(_0x38c24c,_0x32c730(0x9b)+_0x24fef8[_0x32c730(0xa4)]()+_0x32c730(0x97))),this[_0x32c730(0x98)]=this[_0x32c730(0x9f)](_0x220654(_0x38c24c,_0x32c730(0x9e))),this[_0x32c730(0x91)]=this[_0x32c730(0x9f)](_0x220654(_0x38c24c,_0x32c730(0x94))),this[_0x32c730(0x90)]=this[_0x32c730(0x9f)](_0x220654(_0x38c24c,_0x32c730(0xa9)));const _0xe778a7=this[_0x32c730(0xac)];this[_0x32c730(0x8c)]({'attributes':{'class':[_0x32c730(0xad),_0xe778a7['if'](_0x32c730(0xa5),_0x32c730(0x93),_0x5321fc=>!_0x5321fc)]}}),this[_0x32c730(0xae)][_0x32c730(0x9d)]([this[_0x32c730(0xa1)],this[_0x32c730(0x98)],this[_0x32c730(0x91)],this[_0x32c730(0x90)]]);}[_0x2d7152(0x9f)](_0x516080,_0x5e40c2){const _0xf19bfc=_0x2d7152,_0x588bd9=new _0x236461(this[_0xf19bfc(0xa7)]);return _0x588bd9[_0xf19bfc(0xaf)]({'label':_0x516080,'class':_0x5e40c2||'','isVisible':!0x0,'withText':!0x0}),_0x588bd9;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x256c73=_0x1b24;(function(_0x3f80e8,_0x43e679){const _0x4fbe8=_0x1b24,_0x223578=_0x3f80e8();while(!![]){try{const _0x3070df=parseInt(_0x4fbe8(0xb6))/0x1*(parseInt(_0x4fbe8(0xa0))/0x2)+-parseInt(_0x4fbe8(0x77))/0x3+parseInt(_0x4fbe8(0xc3))/0x4+-parseInt(_0x4fbe8(0x8b))/0x5+-parseInt(_0x4fbe8(0xa5))/0x6*(-parseInt(_0x4fbe8(0x8e))/0x7)+-parseInt(_0x4fbe8(0x97))/0x8*(-parseInt(_0x4fbe8(0xb2))/0x9)+-parseInt(_0x4fbe8(0xc8))/0xa*(parseInt(_0x4fbe8(0x85))/0xb);if(_0x3070df===_0x43e679)break;else _0x223578['push'](_0x223578['shift']());}catch(_0x5553bc){_0x223578['push'](_0x223578['shift']());}}}(_0x1ac8,0x3d01d));import{FocusTracker as _0x44797b,KeystrokeHandler as _0x5b5af9}from'ckeditor5/src/utils.js';import{View as _0x2a3ffb,FocusCycler as _0x5da3b2,createLabeledTextarea as _0x2ba477}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x192433,AIFormToolbarViewMainActionLabel as _0x44f93c}from'./aiformtoolbarview.js';import{AIFormContentArea as _0xab7557}from'./aiformcontentarea.js';import{AIFormErrorView as _0x395ecc}from'./aiformerrorview.js';import{AIFormPromptView as _0x467a1a}from'./aiformpromptview.js';import{AIHistoryListView as _0x156fc4}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x3260e8}from'./aihistorylistitemview.js';import{PromptHistory as _0xa425f}from'./prompthistory.js';import{getTranslation as _0x5d7e70}from'../../utils/common-translations.js';function _0x1b24(_0x1e66d2,_0x385039){const _0x1ac812=_0x1ac8();return _0x1b24=function(_0x1b248e,_0x7e680c){_0x1b248e=_0x1b248e-0x75;let _0x5ac839=_0x1ac812[_0x1b248e];return _0x5ac839;},_0x1b24(_0x1e66d2,_0x385039);}function _0x1ac8(){const _0x4dd35b=['10308aiBXaU','historyGroupView','isProcessing','toolbar','set','tryAgainEvent','errorView','handleError','isError','copyButtonView','isEnabled','div','value','4914KhJHLK','focusLast','fire','_focusables','12zUmAtR','queryView','focusTracker','add','clear','stopProcessing','high','submitPrompt','label','replaceContent','insertContentBelow','ck-ai-form','clearHistory','1575740OKsyaX','tryAgainButton','contentArea','prompt','insertButton','6470uOAbDv','listenTo','Ask\x20AI\x20to\x20edit\x20or\x20generate','_createPromptView','shift\x20+\x20tab','889131zpNwRF','_createHistoryView','execute','search','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','isVisible','items','fieldView','startProcessing','chain','Ask\x20AI\x20to\x20improve\x20generated\x20text','_createToolbar','bindTemplate','mainAction','2662mTRbJt','locale','Empty\x20history','setTemplate','REPLACE','focus','2081525SUtqPB','ck-hidden','createCollection','1148ZLLBym','keystrokes','ck-ai-form-content','delegate','finishProcessing','element','_promptHistory','promptView','focusFirst','504YnsDGr','tab','bind','render','text','replaceButton','stopButton','focusCycler','submit','68176DsiCYg','trim','AI_ERROR_FAILED','reset','bindTo'];_0x1ac8=function(){return _0x4dd35b;};return _0x1ac8();}import{escape as _0xd2dd5b}from'es-toolkit/compat';export class AIFormView extends _0x2a3ffb{[_0x256c73(0xb8)];[_0x256c73(0x8f)];[_0x256c73(0xc5)];[_0x256c73(0xa8)];[_0x256c73(0x95)];[_0x256c73(0xab)];[_0x256c73(0xb5)];[_0x256c73(0x9e)];[_0x256c73(0x94)];constructor(_0x2e81fb,_0x2d5b92,_0x5a32a4=''){const _0x37458c=_0x256c73;super(_0x2e81fb),this[_0x37458c(0xa9)](_0x37458c(0xaf),!0x0),this[_0x37458c(0xa9)](_0x37458c(0xa7),!0x1),this[_0x37458c(0xa9)](_0x37458c(0xc6),''),this[_0x37458c(0xa9)](_0x37458c(0xb1),''),this[_0x37458c(0xa9)](_0x37458c(0xad),!0x1),this[_0x37458c(0xa9)](_0x37458c(0x84),_0x44f93c[_0x37458c(0x89)]),this[_0x37458c(0x94)]=new _0xa425f(),this[_0x37458c(0xab)]=new _0x395ecc(_0x2e81fb),this[_0x37458c(0xc5)]=new _0xab7557(_0x2e81fb,_0x5a32a4),this[_0x37458c(0xc5)][_0x37458c(0x99)](_0x37458c(0xa7))['to'](this),this[_0x37458c(0xc5)][_0x37458c(0x99)](_0x37458c(0xb1))['to'](this),this[_0x37458c(0xa8)]=this[_0x37458c(0x82)](),this[_0x37458c(0xa8)][_0x37458c(0x99)](_0x37458c(0x84))['to'](this),this[_0x37458c(0x95)]=this[_0x37458c(0x75)](),this[_0x37458c(0xb8)]=new _0x44797b(),this[_0x37458c(0x8f)]=new _0x5b5af9(),this[_0x37458c(0xb5)]=this[_0x37458c(0x8d)]([this[_0x37458c(0xc5)],this[_0x37458c(0xc5)][_0x37458c(0xae)],this[_0x37458c(0xa8)],this[_0x37458c(0x95)]]),this[_0x37458c(0x9e)]=new _0x5da3b2({'focusables':this[_0x37458c(0xb5)],'focusTracker':this[_0x37458c(0xb8)],'keystrokeHandler':this[_0x37458c(0x8f)],'actions':{'focusPrevious':_0x37458c(0x76),'focusNext':_0x37458c(0x98)}}),this[_0x37458c(0x9e)][_0x37458c(0x80)](this[_0x37458c(0x95)][_0x37458c(0x9e)]),this[_0x37458c(0x95)][_0x37458c(0xb7)][_0x37458c(0x7e)][_0x37458c(0x99)](_0x37458c(0xb1))['to'](this,_0x37458c(0xc6));const _0x46ad5a=this[_0x37458c(0x83)];this[_0x37458c(0x88)]({'tag':_0x37458c(0xb0),'attributes':{'class':['ck',_0x37458c(0xc1),_0x2d5b92],'tabindex':'-1'},'children':[{'tag':_0x37458c(0xb0),'attributes':{'class':['ck',_0x37458c(0x90)]},'children':[{'tag':_0x37458c(0xb0),'attributes':{'class':[_0x46ad5a['if'](_0x37458c(0xad),_0x37458c(0x8c),_0x3fa2ea=>!_0x3fa2ea)]},'children':[this[_0x37458c(0xab)]]},this[_0x37458c(0xc5)],this[_0x37458c(0xa8)],this[_0x37458c(0x95)]]}]});}[_0x256c73(0x9a)](){const _0x129341=_0x256c73;super[_0x129341(0x9a)](),this[_0x129341(0xb8)][_0x129341(0xb9)](this[_0x129341(0xc5)][_0x129341(0x93)]),this[_0x129341(0xb8)][_0x129341(0xb9)](this[_0x129341(0xc5)][_0x129341(0xae)][_0x129341(0x93)]),this[_0x129341(0xb8)][_0x129341(0xb9)](this[_0x129341(0xa8)][_0x129341(0x93)]),this[_0x129341(0xb8)][_0x129341(0xb9)](this[_0x129341(0x95)][_0x129341(0x93)]),this[_0x129341(0x8f)][_0x129341(0xc9)](this[_0x129341(0x93)]);}[_0x256c73(0x8a)](_0x4f5c78=0x1){const _0xc733ed=_0x256c73;-0x1===_0x4f5c78?this[_0xc733ed(0x9e)][_0xc733ed(0xb3)]():this[_0xc733ed(0x9e)][_0xc733ed(0x96)]();}[_0x256c73(0xa3)](){const _0x475925=_0x256c73;this[_0x475925(0xc6)]='',this[_0x475925(0xb1)]='',this[_0x475925(0xad)]=!0x1,this[_0x475925(0x95)][_0x475925(0xa3)](),this[_0x475925(0xc5)][_0x475925(0x7c)]=!0x1,this[_0x475925(0xa8)][_0x475925(0x7c)]=!0x1;}[_0x256c73(0x75)](){const _0x366225=_0x256c73,_0x4357e6=this[_0x366225(0x86)],_0x10b77f=new _0x467a1a(_0x4357e6,{'queryView':{'label':_0x5d7e70(_0x4357e6,_0x366225(0xca)),'creator':_0x2ba477,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x5d7e70(_0x4357e6,_0x366225(0x87)),'secondary':_0x5d7e70(_0x4357e6,_0x366225(0x7b))}}},'filteredView':this[_0x366225(0x78)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x10b77f[_0x366225(0x99)](_0x366225(0xaf))['to'](this,_0x366225(0xaf),this,_0x366225(0xa7),(_0x224c8d,_0x27c719)=>_0x224c8d&&!_0x27c719),this[_0x366225(0xc9)](_0x10b77f,_0x366225(0x9f),(_0x446b50,_0x44748d)=>{const _0x509f9a=_0x366225;this[_0x509f9a(0xc6)]=_0x44748d;const _0x2f0963=_0xd2dd5b(_0x44748d);this[_0x509f9a(0xb4)](_0x509f9a(0xbd),_0x2f0963),_0x44748d[_0x509f9a(0xa1)]()&&this[_0x509f9a(0x94)][_0x509f9a(0xb9)]({'prompt':_0x2f0963},0x0);},{'priority':_0x366225(0xbc)}),_0x10b77f;}[_0x256c73(0x78)](){const _0x5ec415=_0x256c73,_0x340578=new _0x156fc4(this[_0x5ec415(0x86)]);return _0x340578[_0x5ec415(0xa6)][_0x5ec415(0x7d)][_0x5ec415(0xa4)](this[_0x5ec415(0x94)])['as'](_0x3260e8),_0x340578['on'](_0x5ec415(0xc2),()=>{const _0x2ef5e0=_0x5ec415;this[_0x2ef5e0(0x94)][_0x2ef5e0(0xba)](),this[_0x2ef5e0(0x95)][_0x2ef5e0(0x7a)](''),this[_0x2ef5e0(0x95)][_0x2ef5e0(0x8a)]();}),_0x340578;}[_0x256c73(0x82)](){const _0x3599a7=_0x256c73,_0x2abe3d=new _0x192433(this[_0x3599a7(0x86)]);return _0x2abe3d[_0x3599a7(0x9c)][_0x3599a7(0x99)](_0x3599a7(0xaf))['to'](this,_0x3599a7(0xaf),this,_0x3599a7(0xa7),this,_0x3599a7(0xb1),(_0x1c3836,_0x16e0f7,_0x94a9b5)=>_0x1c3836&&!_0x16e0f7&&!!_0x94a9b5),_0x2abe3d[_0x3599a7(0x9c)][_0x3599a7(0x91)](_0x3599a7(0x79))['to'](this,_0x3599a7(0xbf)),_0x2abe3d[_0x3599a7(0xc7)][_0x3599a7(0x99)](_0x3599a7(0xaf))['to'](this,_0x3599a7(0xaf),this,_0x3599a7(0xa7),this,_0x3599a7(0xb1),(_0x288c8d,_0x4ede2a,_0x4fdd04)=>_0x288c8d&&!_0x4ede2a&&!!_0x4fdd04),_0x2abe3d[_0x3599a7(0xc7)][_0x3599a7(0x91)](_0x3599a7(0x79))['to'](this,_0x3599a7(0xc0)),_0x2abe3d[_0x3599a7(0xc4)][_0x3599a7(0x99)](_0x3599a7(0xaf))['to'](this,_0x3599a7(0xaf),this,_0x3599a7(0xa7),(_0x2a2d7a,_0x3dcf3a)=>_0x2a2d7a&&!_0x3dcf3a),_0x2abe3d[_0x3599a7(0xc4)][_0x3599a7(0x91)](_0x3599a7(0x79))['to'](this,_0x3599a7(0xaa)),_0x2abe3d[_0x3599a7(0x9d)][_0x3599a7(0x99)](_0x3599a7(0xaf))['to'](this,_0x3599a7(0xa7)),_0x2abe3d[_0x3599a7(0x9d)][_0x3599a7(0x91)](_0x3599a7(0x79))['to'](this,_0x3599a7(0xbb)),_0x2abe3d;}[_0x256c73(0x7f)](){const _0x5a3ccb=_0x256c73;this[_0x5a3ccb(0xb1)]='',this[_0x5a3ccb(0xad)]=!0x1,this[_0x5a3ccb(0xa7)]=!0x0,this[_0x5a3ccb(0xc5)][_0x5a3ccb(0x7c)]=!0x0,this[_0x5a3ccb(0xa8)][_0x5a3ccb(0x7c)]=!0x0,this[_0x5a3ccb(0xc5)][_0x5a3ccb(0x8a)]();}[_0x256c73(0x92)](){const _0x5c3fe4=_0x256c73,_0x4bd694=this[_0x5c3fe4(0x86)];this[_0x5c3fe4(0xa7)]=!0x1,this[_0x5c3fe4(0xc6)]='',this[_0x5c3fe4(0x95)][_0x5c3fe4(0xa3)](),this[_0x5c3fe4(0xb1)]&&(this[_0x5c3fe4(0x95)][_0x5c3fe4(0xb7)][_0x5c3fe4(0xbe)]=_0x5d7e70(_0x4bd694,_0x5c3fe4(0x81)));}[_0x256c73(0xac)](_0x5ee44b){const _0x13cae5=_0x256c73,_0xa31eb1=this[_0x13cae5(0x86)];this[_0x13cae5(0x92)](),this[_0x13cae5(0xad)]=!0x0,this[_0x13cae5(0xab)][_0x13cae5(0x9b)]=_0x5ee44b||_0x5d7e70(_0xa31eb1,_0x13cae5(0xa2)),this[_0x13cae5(0xb1)]||(this[_0x13cae5(0xc5)][_0x13cae5(0x7c)]=!0x1);}}
23
+ function _0x2600(_0x2ee0dd,_0x516fdc){const _0x416427=_0x4164();return _0x2600=function(_0x2600be,_0x59d156){_0x2600be=_0x2600be-0x143;let _0x568fd0=_0x416427[_0x2600be];return _0x568fd0;},_0x2600(_0x2ee0dd,_0x516fdc);}const _0x2c9ae1=_0x2600;(function(_0x3f15c5,_0x19b24e){const _0x149e48=_0x2600,_0x3c788f=_0x3f15c5();while(!![]){try{const _0x13bee7=parseInt(_0x149e48(0x182))/0x1+-parseInt(_0x149e48(0x17a))/0x2*(parseInt(_0x149e48(0x18e))/0x3)+-parseInt(_0x149e48(0x17e))/0x4+-parseInt(_0x149e48(0x151))/0x5*(parseInt(_0x149e48(0x154))/0x6)+parseInt(_0x149e48(0x14a))/0x7+-parseInt(_0x149e48(0x156))/0x8+parseInt(_0x149e48(0x148))/0x9*(parseInt(_0x149e48(0x178))/0xa);if(_0x13bee7===_0x19b24e)break;else _0x3c788f['push'](_0x3c788f['shift']());}catch(_0x564f68){_0x3c788f['push'](_0x3c788f['shift']());}}}(_0x4164,0x76ba5));import{FocusTracker as _0x1a4700,KeystrokeHandler as _0xc31b0}from'ckeditor5/src/utils.js';import{View as _0x395da3,FocusCycler as _0x9e5e90,createLabeledTextarea as _0x58de77}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x275ca1,AIFormToolbarViewMainActionLabel as _0x2a7918}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x26a3d3}from'./aiformcontentarea.js';import{AIFormErrorView as _0x343669}from'./aiformerrorview.js';import{AIFormPromptView as _0x2cb51f}from'./aiformpromptview.js';import{AIHistoryListView as _0x5166d2}from'./aihistorylistview.js';function _0x4164(){const _0x38c4a6=['chain','_promptHistory','submit','render','fire','execute','6Nzudqd','items','startProcessing','isEnabled','focus','createCollection','tab','stopProcessing','queryView','bind','_createHistoryView','replaceContent','Ask\x20AI\x20to\x20edit\x20or\x20generate','trim','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','5665221EjLRjw','finishProcessing','3656464dnBuYQ','ck-hidden','toolbar','insertButton','prompt','keystrokes','bindTo','5DFMMlZ','ck-ai-form-content','copyButtonView','139224YAdJAY','focusTracker','6792256WBUHtG','delegate','add','bindTemplate','clear','_createPromptView','isError','ck-ai-form','focusFirst','label','insertContentBelow','locale','focusLast','isVisible','reset','text','clearHistory','listenTo','replaceButton','mainAction','high','_createToolbar','value','shift\x20+\x20tab','div','fieldView','tryAgainButton','tryAgainEvent','setTemplate','submitPrompt','search','element','errorView','stopButton','10WkvWsH','Ask\x20AI\x20to\x20improve\x20generated\x20text','259322arwZlc','set','REPLACE','promptView','796420ujHpeB','focusCycler','AI_ERROR_FAILED','historyGroupView','665151rsIALk','contentArea','handleError','isProcessing','Empty\x20history','_focusables'];_0x4164=function(){return _0x38c4a6;};return _0x4164();}import{AIHistoryListItemView as _0x286696}from'./aihistorylistitemview.js';import{PromptHistory as _0x4470d7}from'./prompthistory.js';import{getTranslation as _0x68c0dc}from'../../utils/common-translations.js';import{escape as _0x311e73}from'es-toolkit/compat';export class AIFormView extends _0x395da3{[_0x2c9ae1(0x155)];[_0x2c9ae1(0x14f)];[_0x2c9ae1(0x183)];[_0x2c9ae1(0x14c)];[_0x2c9ae1(0x17d)];[_0x2c9ae1(0x176)];[_0x2c9ae1(0x187)];[_0x2c9ae1(0x17f)];[_0x2c9ae1(0x189)];constructor(_0x5516c2,_0x1d864d,_0x52696e=''){const _0x398c90=_0x2c9ae1;super(_0x5516c2),this[_0x398c90(0x17b)](_0x398c90(0x191),!0x0),this[_0x398c90(0x17b)](_0x398c90(0x185),!0x1),this[_0x398c90(0x17b)](_0x398c90(0x14e),''),this[_0x398c90(0x17b)](_0x398c90(0x16c),''),this[_0x398c90(0x17b)](_0x398c90(0x15c),!0x1),this[_0x398c90(0x17b)](_0x398c90(0x169),_0x2a7918[_0x398c90(0x17c)]),this[_0x398c90(0x189)]=new _0x4470d7(),this[_0x398c90(0x176)]=new _0x343669(_0x5516c2),this[_0x398c90(0x183)]=new _0x26a3d3(_0x5516c2,_0x52696e),this[_0x398c90(0x183)][_0x398c90(0x197)](_0x398c90(0x185))['to'](this),this[_0x398c90(0x183)][_0x398c90(0x197)](_0x398c90(0x16c))['to'](this),this[_0x398c90(0x14c)]=this[_0x398c90(0x16b)](),this[_0x398c90(0x14c)][_0x398c90(0x197)](_0x398c90(0x169))['to'](this),this[_0x398c90(0x17d)]=this[_0x398c90(0x15b)](),this[_0x398c90(0x155)]=new _0x1a4700(),this[_0x398c90(0x14f)]=new _0xc31b0(),this[_0x398c90(0x187)]=this[_0x398c90(0x193)]([this[_0x398c90(0x183)],this[_0x398c90(0x183)][_0x398c90(0x153)],this[_0x398c90(0x14c)],this[_0x398c90(0x17d)]]),this[_0x398c90(0x17f)]=new _0x9e5e90({'focusables':this[_0x398c90(0x187)],'focusTracker':this[_0x398c90(0x155)],'keystrokeHandler':this[_0x398c90(0x14f)],'actions':{'focusPrevious':_0x398c90(0x16d),'focusNext':_0x398c90(0x194)}}),this[_0x398c90(0x17f)][_0x398c90(0x188)](this[_0x398c90(0x17d)][_0x398c90(0x17f)]),this[_0x398c90(0x17d)][_0x398c90(0x196)][_0x398c90(0x16f)][_0x398c90(0x197)](_0x398c90(0x16c))['to'](this,_0x398c90(0x14e));const _0x3071ad=this[_0x398c90(0x159)];this[_0x398c90(0x172)]({'tag':_0x398c90(0x16e),'attributes':{'class':['ck',_0x398c90(0x15d),_0x1d864d],'tabindex':'-1'},'children':[{'tag':_0x398c90(0x16e),'attributes':{'class':['ck',_0x398c90(0x152)]},'children':[{'tag':_0x398c90(0x16e),'attributes':{'class':[_0x3071ad['if'](_0x398c90(0x15c),_0x398c90(0x14b),_0x5ab8d5=>!_0x5ab8d5)]},'children':[this[_0x398c90(0x176)]]},this[_0x398c90(0x183)],this[_0x398c90(0x14c)],this[_0x398c90(0x17d)]]}]});}[_0x2c9ae1(0x18b)](){const _0x5e6c3d=_0x2c9ae1;super[_0x5e6c3d(0x18b)](),this[_0x5e6c3d(0x155)][_0x5e6c3d(0x158)](this[_0x5e6c3d(0x183)][_0x5e6c3d(0x175)]),this[_0x5e6c3d(0x155)][_0x5e6c3d(0x158)](this[_0x5e6c3d(0x183)][_0x5e6c3d(0x153)][_0x5e6c3d(0x175)]),this[_0x5e6c3d(0x155)][_0x5e6c3d(0x158)](this[_0x5e6c3d(0x14c)][_0x5e6c3d(0x175)]),this[_0x5e6c3d(0x155)][_0x5e6c3d(0x158)](this[_0x5e6c3d(0x17d)][_0x5e6c3d(0x175)]),this[_0x5e6c3d(0x14f)][_0x5e6c3d(0x167)](this[_0x5e6c3d(0x175)]);}[_0x2c9ae1(0x192)](_0x4e5a00=0x1){const _0xf374b3=_0x2c9ae1;-0x1===_0x4e5a00?this[_0xf374b3(0x17f)][_0xf374b3(0x162)]():this[_0xf374b3(0x17f)][_0xf374b3(0x15e)]();}[_0x2c9ae1(0x164)](){const _0x2a36a4=_0x2c9ae1;this[_0x2a36a4(0x14e)]='',this[_0x2a36a4(0x16c)]='',this[_0x2a36a4(0x15c)]=!0x1,this[_0x2a36a4(0x17d)][_0x2a36a4(0x164)](),this[_0x2a36a4(0x183)][_0x2a36a4(0x163)]=!0x1,this[_0x2a36a4(0x14c)][_0x2a36a4(0x163)]=!0x1;}[_0x2c9ae1(0x15b)](){const _0x4edceb=_0x2c9ae1,_0x404eb1=this[_0x4edceb(0x161)],_0x1618da=new _0x2cb51f(_0x404eb1,{'queryView':{'label':_0x68c0dc(_0x404eb1,_0x4edceb(0x145)),'creator':_0x58de77,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x68c0dc(_0x404eb1,_0x4edceb(0x186)),'secondary':_0x68c0dc(_0x404eb1,_0x4edceb(0x147))}}},'filteredView':this[_0x4edceb(0x143)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x1618da[_0x4edceb(0x197)](_0x4edceb(0x191))['to'](this,_0x4edceb(0x191),this,_0x4edceb(0x185),(_0x30af86,_0x242838)=>_0x30af86&&!_0x242838),this[_0x4edceb(0x167)](_0x1618da,_0x4edceb(0x18a),(_0x2f2f76,_0x2b3138)=>{const _0x3880f5=_0x4edceb;this[_0x3880f5(0x14e)]=_0x2b3138;const _0x211e8f=_0x311e73(_0x2b3138);this[_0x3880f5(0x18c)](_0x3880f5(0x173),_0x211e8f),_0x2b3138[_0x3880f5(0x146)]()&&this[_0x3880f5(0x189)][_0x3880f5(0x158)]({'prompt':_0x211e8f},0x0);},{'priority':_0x4edceb(0x16a)}),_0x1618da;}[_0x2c9ae1(0x143)](){const _0x154b0b=_0x2c9ae1,_0x3f110f=new _0x5166d2(this[_0x154b0b(0x161)]);return _0x3f110f[_0x154b0b(0x181)][_0x154b0b(0x18f)][_0x154b0b(0x150)](this[_0x154b0b(0x189)])['as'](_0x286696),_0x3f110f['on'](_0x154b0b(0x166),()=>{const _0x306cd2=_0x154b0b;this[_0x306cd2(0x189)][_0x306cd2(0x15a)](),this[_0x306cd2(0x17d)][_0x306cd2(0x174)](''),this[_0x306cd2(0x17d)][_0x306cd2(0x192)]();}),_0x3f110f;}[_0x2c9ae1(0x16b)](){const _0x4819b5=_0x2c9ae1,_0x202c33=new _0x275ca1(this[_0x4819b5(0x161)]);return _0x202c33[_0x4819b5(0x168)][_0x4819b5(0x197)](_0x4819b5(0x191))['to'](this,_0x4819b5(0x191),this,_0x4819b5(0x185),this,_0x4819b5(0x16c),(_0x2e10e3,_0x4ef30b,_0x49a9c0)=>_0x2e10e3&&!_0x4ef30b&&!!_0x49a9c0),_0x202c33[_0x4819b5(0x168)][_0x4819b5(0x157)](_0x4819b5(0x18d))['to'](this,_0x4819b5(0x144)),_0x202c33[_0x4819b5(0x14d)][_0x4819b5(0x197)](_0x4819b5(0x191))['to'](this,_0x4819b5(0x191),this,_0x4819b5(0x185),this,_0x4819b5(0x16c),(_0x363141,_0x4d7434,_0x45c3d9)=>_0x363141&&!_0x4d7434&&!!_0x45c3d9),_0x202c33[_0x4819b5(0x14d)][_0x4819b5(0x157)](_0x4819b5(0x18d))['to'](this,_0x4819b5(0x160)),_0x202c33[_0x4819b5(0x170)][_0x4819b5(0x197)](_0x4819b5(0x191))['to'](this,_0x4819b5(0x191),this,_0x4819b5(0x185),(_0x7acc3a,_0x12b0b6)=>_0x7acc3a&&!_0x12b0b6),_0x202c33[_0x4819b5(0x170)][_0x4819b5(0x157)](_0x4819b5(0x18d))['to'](this,_0x4819b5(0x171)),_0x202c33[_0x4819b5(0x177)][_0x4819b5(0x197)](_0x4819b5(0x191))['to'](this,_0x4819b5(0x185)),_0x202c33[_0x4819b5(0x177)][_0x4819b5(0x157)](_0x4819b5(0x18d))['to'](this,_0x4819b5(0x195)),_0x202c33;}[_0x2c9ae1(0x190)](){const _0x5ba28b=_0x2c9ae1;this[_0x5ba28b(0x16c)]='',this[_0x5ba28b(0x15c)]=!0x1,this[_0x5ba28b(0x185)]=!0x0,this[_0x5ba28b(0x183)][_0x5ba28b(0x163)]=!0x0,this[_0x5ba28b(0x14c)][_0x5ba28b(0x163)]=!0x0,this[_0x5ba28b(0x183)][_0x5ba28b(0x192)]();}[_0x2c9ae1(0x149)](){const _0x31b649=_0x2c9ae1,_0x14d738=this[_0x31b649(0x161)];this[_0x31b649(0x185)]=!0x1,this[_0x31b649(0x14e)]='',this[_0x31b649(0x17d)][_0x31b649(0x164)](),this[_0x31b649(0x16c)]&&(this[_0x31b649(0x17d)][_0x31b649(0x196)][_0x31b649(0x15f)]=_0x68c0dc(_0x14d738,_0x31b649(0x179)));}[_0x2c9ae1(0x184)](_0x557fa1){const _0x4b90fb=_0x2c9ae1,_0x376f7e=this[_0x4b90fb(0x161)];this[_0x4b90fb(0x149)](),this[_0x4b90fb(0x15c)]=!0x0,this[_0x4b90fb(0x176)][_0x4b90fb(0x165)]=_0x557fa1||_0x68c0dc(_0x376f7e,_0x4b90fb(0x180)),this[_0x4b90fb(0x16c)]||(this[_0x4b90fb(0x183)][_0x4b90fb(0x163)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x470562,_0x933054){const _0x443b20=_0x2aa0,_0x21249c=_0x470562();while(!![]){try{const _0x4ec40a=-parseInt(_0x443b20(0xaf))/0x1*(parseInt(_0x443b20(0xa6))/0x2)+parseInt(_0x443b20(0xab))/0x3+parseInt(_0x443b20(0xad))/0x4+-parseInt(_0x443b20(0xac))/0x5+parseInt(_0x443b20(0xa8))/0x6*(-parseInt(_0x443b20(0xa7))/0x7)+parseInt(_0x443b20(0xae))/0x8+parseInt(_0x443b20(0xa4))/0x9;if(_0x4ec40a===_0x933054)break;else _0x21249c['push'](_0x21249c['shift']());}catch(_0x5dcec8){_0x21249c['push'](_0x21249c['shift']());}}}(_0x5428,0xbc511));function _0x5428(){const _0x1afea9=['2432625kaHXsw','335888xiwEgy','1488224wocHZR','117LgvnAn','set','children','add','fire','19491534iWeusy','execute','18002fiTtZt','2282jWISRs','13098EOQANk','prompt','locale','1760757zTpXiX'];_0x5428=function(){return _0x1afea9;};return _0x5428();}import{ListItemView as _0x40e9f7,ButtonView as _0x7d3dc1,ButtonLabelView as _0x2730b8}from'ckeditor5/src/ui.js';import{unescape as _0x5ba633}from'es-toolkit/compat';function _0x2aa0(_0x39a053,_0x23bfe9){const _0x542848=_0x5428();return _0x2aa0=function(_0x2aa0cb,_0x419289){_0x2aa0cb=_0x2aa0cb-0xa0;let _0x1aafa1=_0x542848[_0x2aa0cb];return _0x1aafa1;},_0x2aa0(_0x39a053,_0x23bfe9);}export class AIHistoryListItemView extends _0x40e9f7{constructor(_0x307db0){const _0x5a94de=_0x2aa0;super();const _0x526396=new _0x2730b8(),_0x57156f=new _0x7d3dc1(this[_0x5a94de(0xaa)],_0x526396);this[_0x5a94de(0xa1)][_0x5a94de(0xa2)](_0x57156f),_0x57156f[_0x5a94de(0xa0)]({'label':_0x307db0[_0x5a94de(0xa9)],'withText':!0x0}),_0x57156f['on'](_0x5a94de(0xa5),()=>{const _0x1e197a=_0x5a94de;this[_0x1e197a(0xa3)](_0x1e197a(0xa5),{'value':_0x5ba633(_0x307db0[_0x1e197a(0xa9)])});});}}
23
+ (function(_0x4cfdbb,_0x5f485d){const _0x27cea8=_0x229c,_0x38f951=_0x4cfdbb();while(!![]){try{const _0x1b5c2e=-parseInt(_0x27cea8(0xd9))/0x1*(parseInt(_0x27cea8(0xdc))/0x2)+-parseInt(_0x27cea8(0xdd))/0x3+parseInt(_0x27cea8(0xda))/0x4+-parseInt(_0x27cea8(0xd7))/0x5+parseInt(_0x27cea8(0xd6))/0x6*(parseInt(_0x27cea8(0xde))/0x7)+parseInt(_0x27cea8(0xe5))/0x8*(-parseInt(_0x27cea8(0xe7))/0x9)+parseInt(_0x27cea8(0xe2))/0xa*(parseInt(_0x27cea8(0xdf))/0xb);if(_0x1b5c2e===_0x5f485d)break;else _0x38f951['push'](_0x38f951['shift']());}catch(_0x49edbb){_0x38f951['push'](_0x38f951['shift']());}}}(_0x34f7,0xd18e7));import{ListItemView as _0x4490c2,ButtonView as _0x2346b1,ButtonLabelView as _0x1d0f6b}from'ckeditor5/src/ui.js';function _0x229c(_0x1304a5,_0x59c010){const _0x34f782=_0x34f7();return _0x229c=function(_0x229c6f,_0x41bee9){_0x229c6f=_0x229c6f-0xd6;let _0x56b340=_0x34f782[_0x229c6f];return _0x56b340;},_0x229c(_0x1304a5,_0x59c010);}function _0x34f7(){const _0x27c6fe=['add','2HnVSpj','4594095mFCDSC','71078aTgYhf','649OHjQKv','set','fire','565010PamXju','locale','children','94936tCIOeD','execute','585VajJmU','84DoGQJo','1493095NpVLva','prompt','1060918tAIzht','4179540RoWamq'];_0x34f7=function(){return _0x27c6fe;};return _0x34f7();}import{unescape as _0x1a0096}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x4490c2{constructor(_0x4281c0){const _0x51750c=_0x229c;super();const _0x43ff4e=new _0x1d0f6b(),_0x46d317=new _0x2346b1(this[_0x51750c(0xe3)],_0x43ff4e);this[_0x51750c(0xe4)][_0x51750c(0xdb)](_0x46d317),_0x46d317[_0x51750c(0xe0)]({'label':_0x4281c0[_0x51750c(0xd8)],'withText':!0x0}),_0x46d317['on'](_0x51750c(0xe6),()=>{const _0x8c41a=_0x51750c;this[_0x8c41a(0xe1)](_0x8c41a(0xe6),{'value':_0x1a0096(_0x4281c0[_0x8c41a(0xd8)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xe450(){const _0x54adac=['filter','delegate','6eZjbfp','items','36LwmpLp','Prompt\x20history','length','2018280mDATKy','set','132942GDoPDB','127020RPyDlm','fire','execute','4958210sCTrZW','5Nzyhfa','clearHistory','children','label','136440BEDkuH','11GlhchD','locale','add','656226BLispF','831614nCOGfn','Clear','clearHistoryButton','historyGroupView','_createClearHistoryButton'];_0xe450=function(){return _0x54adac;};return _0xe450();}function _0x4066(_0x42c051,_0x4277f9){const _0xe4505f=_0xe450();return _0x4066=function(_0x4066d2,_0x388b23){_0x4066d2=_0x4066d2-0xa9;let _0x319091=_0xe4505f[_0x4066d2];return _0x319091;},_0x4066(_0x42c051,_0x4277f9);}const _0x334a26=_0x4066;(function(_0x50c991,_0x1cbcd1){const _0x204701=_0x4066,_0x27cf17=_0x50c991();while(!![]){try{const _0x3a0741=parseInt(_0x204701(0xc0))/0x1*(-parseInt(_0x204701(0xbb))/0x2)+parseInt(_0x204701(0xbc))/0x3*(-parseInt(_0x204701(0xb6))/0x4)+parseInt(_0x204701(0xb9))/0x5+-parseInt(_0x204701(0xb4))/0x6*(-parseInt(_0x204701(0xad))/0x7)+-parseInt(_0x204701(0xc4))/0x8+-parseInt(_0x204701(0xac))/0x9+parseInt(_0x204701(0xbf))/0xa*(parseInt(_0x204701(0xa9))/0xb);if(_0x3a0741===_0x1cbcd1)break;else _0x27cf17['push'](_0x27cf17['shift']());}catch(_0x211fb1){_0x27cf17['push'](_0x27cf17['shift']());}}}(_0xe450,0x3476f));import{ListView as _0x39438a,ListItemGroupView as _0x165ea9,ButtonView as _0x55a8a4}from'ckeditor5/src/ui.js';import{getTranslation as _0x503b23}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x39438a{[_0x334a26(0xb0)];[_0x334a26(0xaf)];constructor(_0x30640c){const _0x3ef4e2=_0x334a26;super(_0x30640c),this[_0x3ef4e2(0xaf)]=this[_0x3ef4e2(0xb1)](),this[_0x3ef4e2(0xb0)]=new _0x165ea9(),this[_0x3ef4e2(0xb0)][_0x3ef4e2(0xc2)][_0x3ef4e2(0xab)](this[_0x3ef4e2(0xaf)],0x1),this[_0x3ef4e2(0xb0)][_0x3ef4e2(0xc3)]=_0x503b23(_0x30640c,_0x3ef4e2(0xb7)),this[_0x3ef4e2(0xb0)][_0x3ef4e2(0xb5)][_0x3ef4e2(0xb3)](_0x3ef4e2(0xbe))['to'](this),this[_0x3ef4e2(0xb5)][_0x3ef4e2(0xab)](this[_0x3ef4e2(0xb0)]);}[_0x334a26(0xb2)](){const _0xa29fdc=_0x334a26;let _0x22c091=0x0;for(const _0xef1489 of this[_0xa29fdc(0xb5)])_0x22c091+=_0xef1489[_0xa29fdc(0xb5)][_0xa29fdc(0xb8)];return{'resultsCount':_0x22c091,'totalItemsCount':_0x22c091};}[_0x334a26(0xb1)](){const _0x339877=_0x334a26,_0x4e5d4d=this[_0x339877(0xaa)],_0x28eea8=new _0x55a8a4(this[_0x339877(0xaa)]);return _0x28eea8[_0x339877(0xba)]({'label':'('+_0x503b23(_0x4e5d4d,_0x339877(0xae))+')','withText':!0x0}),_0x28eea8['on'](_0x339877(0xbe),()=>this[_0x339877(0xbd)](_0x339877(0xc1))),_0x28eea8;}}
23
+ const _0x3f524a=_0x3059;(function(_0x408006,_0x391d73){const _0x56d8fd=_0x3059,_0x15d78d=_0x408006();while(!![]){try{const _0x208d5e=-parseInt(_0x56d8fd(0xec))/0x1+parseInt(_0x56d8fd(0xe7))/0x2*(parseInt(_0x56d8fd(0xef))/0x3)+parseInt(_0x56d8fd(0xf2))/0x4*(-parseInt(_0x56d8fd(0xfa))/0x5)+-parseInt(_0x56d8fd(0xf0))/0x6+parseInt(_0x56d8fd(0xeb))/0x7+-parseInt(_0x56d8fd(0xf7))/0x8+parseInt(_0x56d8fd(0xe9))/0x9*(parseInt(_0x56d8fd(0xf9))/0xa);if(_0x208d5e===_0x391d73)break;else _0x15d78d['push'](_0x15d78d['shift']());}catch(_0xc4f08a){_0x15d78d['push'](_0x15d78d['shift']());}}}(_0x391e,0xb8c7a));import{ListView as _0x209787,ListItemGroupView as _0x2a0a03,ButtonView as _0x11461c}from'ckeditor5/src/ui.js';function _0x391e(){const _0x1fa6a1=['delegate','36KqHroh','children','9113468OYsEmj','934261rMGDWP','label','items','3ldCNGx','8906898zncZkN','length','4lAmOiw','Prompt\x20history','filter','historyGroupView','Clear','6987584KTgbQA','add','4925960AIoACi','1763795jrMdRE','clearHistoryButton','execute','clearHistory','_createClearHistoryButton','locale','fire','set','2259002hQxPJY'];_0x391e=function(){return _0x1fa6a1;};return _0x391e();}import{getTranslation as _0x1132c7}from'../../utils/common-translations.js';function _0x3059(_0x3e9478,_0x8c3d29){const _0x391e77=_0x391e();return _0x3059=function(_0x3059d2,_0x17151d){_0x3059d2=_0x3059d2-0xe2;let _0x37172e=_0x391e77[_0x3059d2];return _0x37172e;},_0x3059(_0x3e9478,_0x8c3d29);}export class AIHistoryListView extends _0x209787{[_0x3f524a(0xf5)];[_0x3f524a(0xfb)];constructor(_0x388d45){const _0xf4582f=_0x3f524a;super(_0x388d45),this[_0xf4582f(0xfb)]=this[_0xf4582f(0xe3)](),this[_0xf4582f(0xf5)]=new _0x2a0a03(),this[_0xf4582f(0xf5)][_0xf4582f(0xea)][_0xf4582f(0xf8)](this[_0xf4582f(0xfb)],0x1),this[_0xf4582f(0xf5)][_0xf4582f(0xed)]=_0x1132c7(_0x388d45,_0xf4582f(0xf3)),this[_0xf4582f(0xf5)][_0xf4582f(0xee)][_0xf4582f(0xe8)](_0xf4582f(0xfc))['to'](this),this[_0xf4582f(0xee)][_0xf4582f(0xf8)](this[_0xf4582f(0xf5)]);}[_0x3f524a(0xf4)](){const _0x1dd08d=_0x3f524a;let _0x2053b3=0x0;for(const _0x1c1093 of this[_0x1dd08d(0xee)])_0x2053b3+=_0x1c1093[_0x1dd08d(0xee)][_0x1dd08d(0xf1)];return{'resultsCount':_0x2053b3,'totalItemsCount':_0x2053b3};}[_0x3f524a(0xe3)](){const _0x2a1a17=_0x3f524a,_0x514d16=this[_0x2a1a17(0xe4)],_0x484bd4=new _0x11461c(this[_0x2a1a17(0xe4)]);return _0x484bd4[_0x2a1a17(0xe6)]({'label':'('+_0x1132c7(_0x514d16,_0x2a1a17(0xf6))+')','withText':!0x0}),_0x484bd4['on'](_0x2a1a17(0xfc),()=>this[_0x2a1a17(0xe5)](_0x2a1a17(0xe2))),_0x484bd4;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x34e501=_0x42a2;function _0x42a2(_0x3609f7,_0x522fda){const _0x100f04=_0x100f();return _0x42a2=function(_0x42a269,_0x33795d){_0x42a269=_0x42a269-0x172;let _0x28d1b4=_0x100f04[_0x42a269];return _0x28d1b4;},_0x42a2(_0x3609f7,_0x522fda);}(function(_0x3480a3,_0x1d53f9){const _0x4fa461=_0x42a2,_0x4fa2e5=_0x3480a3();while(!![]){try{const _0x2a87fd=-parseInt(_0x4fa461(0x18a))/0x1+-parseInt(_0x4fa461(0x183))/0x2*(-parseInt(_0x4fa461(0x177))/0x3)+-parseInt(_0x4fa461(0x173))/0x4+parseInt(_0x4fa461(0x182))/0x5+-parseInt(_0x4fa461(0x179))/0x6*(-parseInt(_0x4fa461(0x174))/0x7)+parseInt(_0x4fa461(0x175))/0x8*(parseInt(_0x4fa461(0x17f))/0x9)+-parseInt(_0x4fa461(0x186))/0xa;if(_0x2a87fd===_0x1d53f9)break;else _0x4fa2e5['push'](_0x4fa2e5['shift']());}catch(_0x149cc2){_0x4fa2e5['push'](_0x4fa2e5['shift']());}}}(_0x100f,0x1ce55));function _0x100f(){const _0x52240d=['5704fkRhLY','setItem','54753clKgLP','prompt','258oTSbsV','_saveToSessionStorage','CKEditor/AIFormView/PromptHistory','_loadFromSessionStorage','remove','addMany','2547zyBeCE','last','getItem','1032795kMxUMS','18HCoYgu','add','length','4701640yoVZFh','map','toLowerCase','parse','125631yfYBId','trim','stringify','350884MwPkEE','37324ZuLxUv'];_0x100f=function(){return _0x52240d;};return _0x100f();}import{Collection as _0x109019}from'ckeditor5/src/utils.js';const Sr=_0x34e501(0x17b);export class PromptHistory extends _0x109019{constructor(){const _0xd96ccf=_0x34e501;super(),this[_0xd96ccf(0x17c)](),this['on'](_0xd96ccf(0x184),(_0x22f5f0,_0x1a6c79)=>{const _0x4cacd2=_0xd96ccf,_0x2ccada=Fr(_0x1a6c79[_0x4cacd2(0x178)]);for(const _0x8cf994 of this)if(_0x8cf994!=_0x1a6c79&&Fr(_0x8cf994[_0x4cacd2(0x178)])===_0x2ccada){this[_0x4cacd2(0x17d)](_0x8cf994);break;}this[_0x4cacd2(0x185)]>0x14&&this[_0x4cacd2(0x17d)](this[_0x4cacd2(0x180)]),this[_0x4cacd2(0x17a)]();}),this['on'](_0xd96ccf(0x17d),()=>{const _0x22ed80=_0xd96ccf;this[_0x22ed80(0x17a)]();});}[_0x34e501(0x17c)](){const _0x574122=_0x34e501,_0x2d7abe=sessionStorage[_0x574122(0x181)](Sr)||'[]';this[_0x574122(0x17e)](JSON[_0x574122(0x189)](_0x2d7abe));}[_0x34e501(0x17a)](){const _0x21baa1=_0x34e501;sessionStorage[_0x21baa1(0x176)](Sr,JSON[_0x21baa1(0x172)](this[_0x21baa1(0x187)](_0x2fda6e=>_0x2fda6e)));}}function Fr(_0x7b4298){const _0x436b35=_0x34e501;return _0x7b4298[_0x436b35(0x188)]()[_0x436b35(0x18b)]();}
23
+ function _0x5f3a(){const _0x5e25f5=['23GoLjKh','385347uWAoHT','8VNUbfC','12vlLtvw','prompt','parse','setItem','toLowerCase','2916OrttLJ','remove','getItem','2304320GerICW','11319Igxrio','last','4DfOwaW','addMany','CKEditor/AIFormView/PromptHistory','23288NSSnpo','stringify','1265845IdTxPm','add','497UEvtlF','trim','map','_saveToSessionStorage','1613106VBBZFc','length','_loadFromSessionStorage'];_0x5f3a=function(){return _0x5e25f5;};return _0x5f3a();}const _0xe19edd=_0x3dc3;(function(_0x540ada,_0x4322ad){const _0xe163cd=_0x3dc3,_0x3adb2d=_0x540ada();while(!![]){try{const _0x2ea6e4=parseInt(_0xe163cd(0x164))/0x1*(-parseInt(_0xe163cd(0x159))/0x2)+parseInt(_0xe163cd(0x165))/0x3*(-parseInt(_0xe163cd(0x156))/0x4)+parseInt(_0xe163cd(0x15b))/0x5+parseInt(_0xe163cd(0x167))/0x6*(parseInt(_0xe163cd(0x15d))/0x7)+-parseInt(_0xe163cd(0x166))/0x8*(parseInt(_0xe163cd(0x161))/0x9)+parseInt(_0xe163cd(0x153))/0xa+parseInt(_0xe163cd(0x154))/0xb*(parseInt(_0xe163cd(0x150))/0xc);if(_0x2ea6e4===_0x4322ad)break;else _0x3adb2d['push'](_0x3adb2d['shift']());}catch(_0xf2d6bd){_0x3adb2d['push'](_0x3adb2d['shift']());}}}(_0x5f3a,0x26a57));import{Collection as _0x5e3541}from'ckeditor5/src/utils.js';const So=_0xe19edd(0x158);export class PromptHistory extends _0x5e3541{constructor(){const _0x447060=_0xe19edd;super(),this[_0x447060(0x163)](),this['on'](_0x447060(0x15c),(_0x1aa88b,_0x2de56c)=>{const _0x2af65c=_0x447060,_0x52896c=go(_0x2de56c[_0x2af65c(0x168)]);for(const _0x1dd9da of this)if(_0x1dd9da!=_0x2de56c&&go(_0x1dd9da[_0x2af65c(0x168)])===_0x52896c){this[_0x2af65c(0x151)](_0x1dd9da);break;}this[_0x2af65c(0x162)]>0x14&&this[_0x2af65c(0x151)](this[_0x2af65c(0x155)]),this[_0x2af65c(0x160)]();}),this['on'](_0x447060(0x151),()=>{const _0x514c9f=_0x447060;this[_0x514c9f(0x160)]();});}[_0xe19edd(0x163)](){const _0x3956d9=_0xe19edd,_0x32365a=sessionStorage[_0x3956d9(0x152)](So)||'[]';this[_0x3956d9(0x157)](JSON[_0x3956d9(0x169)](_0x32365a));}[_0xe19edd(0x160)](){const _0x5a794a=_0xe19edd;sessionStorage[_0x5a794a(0x16a)](So,JSON[_0x5a794a(0x15a)](this[_0x5a794a(0x15f)](_0x2ae5dc=>_0x2ae5dc)));}}function _0x3dc3(_0x23e9fa,_0x5ade88){const _0x5f3aa7=_0x5f3a();return _0x3dc3=function(_0x3dc372,_0x4f149e){_0x3dc372=_0x3dc372-0x150;let _0x26cbdb=_0x5f3aa7[_0x3dc372];return _0x26cbdb;},_0x3dc3(_0x23e9fa,_0x5ade88);}function go(_0x12e130){const _0x3d47de=_0xe19edd;return _0x12e130[_0x3d47de(0x16b)]()[_0x3d47de(0x15e)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5394c7=_0x1169;(function(_0x2ba126,_0x17e815){const _0x171eda=_0x1169,_0x2d2e7f=_0x2ba126();while(!![]){try{const _0x176f72=parseInt(_0x171eda(0xe8))/0x1+parseInt(_0x171eda(0xfc))/0x2*(-parseInt(_0x171eda(0xf8))/0x3)+-parseInt(_0x171eda(0xe4))/0x4*(parseInt(_0x171eda(0xf6))/0x5)+parseInt(_0x171eda(0x106))/0x6*(-parseInt(_0x171eda(0xf1))/0x7)+parseInt(_0x171eda(0xea))/0x8+parseInt(_0x171eda(0xed))/0x9+-parseInt(_0x171eda(0xf5))/0xa*(-parseInt(_0x171eda(0xe1))/0xb);if(_0x176f72===_0x17e815)break;else _0x2d2e7f['push'](_0x2d2e7f['shift']());}catch(_0x492a74){_0x2d2e7f['push'](_0x2d2e7f['shift']());}}}(_0x535b,0x8d087));import{Command as _0x426d0f}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x55c88d}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x426d0f{[_0x5394c7(0xe9)];constructor(_0x1fb6d3,_0x41a881){const _0x37ab5a=_0x5394c7;super(_0x1fb6d3),this[_0x37ab5a(0xe9)]=_0x41a881,this[_0x37ab5a(0xf3)](_0x37ab5a(0xef),[]),this['on'](_0x37ab5a(0xf2),(_0x12fc4d,_0x57281d,_0x52ac96)=>{const _0x38e729=_0x37ab5a;this[_0x38e729(0x105)]&&(this[_0x38e729(0xef)]=js(this[_0x38e729(0xe9)],_0x52ac96));}),this[_0x37ab5a(0xf3)](_0x37ab5a(0xe2),!0x1),this['on'](_0x37ab5a(0xfb),(_0x5cf33c,_0xb270eb,_0x1e51de)=>{const _0x46df60=_0x37ab5a;this[_0x46df60(0xef)]=_0x1e51de?js(this[_0x46df60(0xe9)],this[_0x46df60(0xe2)]):[];});}[_0x5394c7(0xde)](){const _0x2b9d29=_0x5394c7,_0x1db6be=this[_0x2b9d29(0xee)][_0x2b9d29(0xff)];this[_0x2b9d29(0xe2)]=function(_0x1adf4a){const _0x40ad71=_0x2b9d29,_0x4946d2=_0x1adf4a[_0x40ad71(0x103)][_0x40ad71(0xdd)];return _0x4946d2[_0x40ad71(0xfe)]?0x0!==[..._0x4946d2[_0x40ad71(0xeb)]()][_0x40ad71(0x107)]&&![..._0x4946d2[_0x40ad71(0xeb)]()][0x0][_0x40ad71(0xfd)]:!!_0x1adf4a[_0x40ad71(0xfa)](_0x4946d2[_0x40ad71(0x101)]());}(_0x1db6be);const _0x47e6fa=_0x1db6be[_0x2b9d29(0x103)][_0x2b9d29(0xdd)],_0x1364c8=this[_0x2b9d29(0xee)][_0x2b9d29(0xec)][_0x2b9d29(0x109)](_0x2b9d29(0x104));for(const _0x690090 of _0x47e6fa[_0x2b9d29(0xf0)]())for(const _0x566071 of _0x690090[_0x2b9d29(0x100)]())if(_0x566071['is'](_0x2b9d29(0xe6))&&_0x1364c8[_0x2b9d29(0xf4)](_0x566071[_0x2b9d29(0xf9)]))return void(this[_0x2b9d29(0x105)]=!0x1);this[_0x2b9d29(0x105)]=!0x0;}[_0x5394c7(0xe0)](_0x3ed711='',_0x2325fa='',_0x2fbb01=_0x5394c7(0xf7)){const _0x2f6e76=_0x5394c7;this[_0x2f6e76(0xee)][_0x2f6e76(0x102)][_0x2f6e76(0x109)](_0x55c88d)[_0x2f6e76(0x108)](_0x3ed711,_0x2325fa,_0x2fbb01);}}function _0x535b(){const _0x2af8d7=['execute','11sUfYpZ','_hasContext','requiresContent','28KSnubM','values','element','from','102144FgcDZb','_commandDefinitions','5543784VyIjXk','getSelectedBlocks','config','6640110UfoIMB','editor','enabledCommandsIds','getRanges','331989RbWoPs','change:_hasContext','set','includes','6207990ZWRqSV','295065yflopb','custom','320427oLGWRA','name','hasContent','change:isEnabled','20owdxeV','isEmpty','isCollapsed','model','getItems','getFirstRange','plugins','document','ai.assistant.disabledElements','isEnabled','12nRqpME','length','showUI','get','selection','refresh','add'];_0x535b=function(){return _0x2af8d7;};return _0x535b();}function _0x1169(_0x4728b4,_0x271497){const _0x535b24=_0x535b();return _0x1169=function(_0x1169df,_0x3e1dcc){_0x1169df=_0x1169df-0xdd;let _0x39e087=_0x535b24[_0x1169df];return _0x39e087;},_0x1169(_0x4728b4,_0x271497);}function js(_0x217097,_0x3ebaca){const _0x5af8d1=_0x5394c7,_0x190bcb=new Set();for(const _0x385d84 of _0x217097[_0x5af8d1(0xe5)]())(_0x3ebaca||!0x1===_0x385d84[_0x5af8d1(0xe3)])&&_0x190bcb[_0x5af8d1(0xdf)](_0x385d84['id']);return Array[_0x5af8d1(0xe7)](_0x190bcb);}
23
+ function _0x5ac3(_0x2c1991,_0x5d5aa3){const _0x3354ac=_0x3354();return _0x5ac3=function(_0x5ac381,_0x2e42a9){_0x5ac381=_0x5ac381-0x1b9;let _0x352f4c=_0x3354ac[_0x5ac381];return _0x352f4c;},_0x5ac3(_0x2c1991,_0x5d5aa3);}const _0xacb16c=_0x5ac3;(function(_0x233f65,_0x464bf8){const _0x280923=_0x5ac3,_0x5615d5=_0x233f65();while(!![]){try{const _0x398ee5=-parseInt(_0x280923(0x1cf))/0x1+-parseInt(_0x280923(0x1c8))/0x2*(parseInt(_0x280923(0x1d1))/0x3)+-parseInt(_0x280923(0x1ce))/0x4+parseInt(_0x280923(0x1d7))/0x5*(parseInt(_0x280923(0x1d8))/0x6)+parseInt(_0x280923(0x1d3))/0x7*(parseInt(_0x280923(0x1db))/0x8)+-parseInt(_0x280923(0x1bf))/0x9*(parseInt(_0x280923(0x1ba))/0xa)+parseInt(_0x280923(0x1cc))/0xb*(parseInt(_0x280923(0x1e3))/0xc);if(_0x398ee5===_0x464bf8)break;else _0x5615d5['push'](_0x5615d5['shift']());}catch(_0x4caaa3){_0x5615d5['push'](_0x5615d5['shift']());}}}(_0x3354,0x5c0c7));import{Command as _0x1de2a4}from'ckeditor5/src/core.js';function _0x3354(){const _0x2bef67=['12815Dnkieq','222jQRACx','requiresContent','editor','32PNAhck','get','from','includes','custom','change:_hasContext','length','plugins','36Wzbdrq','_commandDefinitions','change:isEnabled','config','hasContent','3953150AkmicN','_hasContext','isCollapsed','set','model','9SQfhww','values','getRanges','getSelectedBlocks','add','document','element','enabledCommandsIds','getItems','14fuChJK','selection','isEnabled','isEmpty','4547378eclBGC','name','2658740cfwzKm','245266tzSNrB','getFirstRange','156708GrZXoN','ai.assistant.disabledElements','1247617kJVgeZ','showUI','refresh','execute'];_0x3354=function(){return _0x2bef67;};return _0x3354();}import{AIAssistantUI as _0x334e31}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x1de2a4{[_0xacb16c(0x1e4)];constructor(_0x1aeeaf,_0x223d34){const _0x201d05=_0xacb16c;super(_0x1aeeaf),this[_0x201d05(0x1e4)]=_0x223d34,this[_0x201d05(0x1bd)](_0x201d05(0x1c6),[]),this['on'](_0x201d05(0x1e0),(_0x2b7dcc,_0x5852a9,_0x21d500)=>{const _0x3defae=_0x201d05;this[_0x3defae(0x1ca)]&&(this[_0x3defae(0x1c6)]=ns(this[_0x3defae(0x1e4)],_0x21d500));}),this[_0x201d05(0x1bd)](_0x201d05(0x1bb),!0x1),this['on'](_0x201d05(0x1e5),(_0x46c200,_0x1e1e20,_0x3400e1)=>{const _0x2f6cb3=_0x201d05;this[_0x2f6cb3(0x1c6)]=_0x3400e1?ns(this[_0x2f6cb3(0x1e4)],this[_0x2f6cb3(0x1bb)]):[];});}[_0xacb16c(0x1d5)](){const _0x231eaf=_0xacb16c,_0x318619=this[_0x231eaf(0x1da)][_0x231eaf(0x1be)];this[_0x231eaf(0x1bb)]=function(_0x20ecae){const _0x52faba=_0x231eaf,_0x11ca22=_0x20ecae[_0x52faba(0x1c4)][_0x52faba(0x1c9)];return _0x11ca22[_0x52faba(0x1bc)]?0x0!==[..._0x11ca22[_0x52faba(0x1c2)]()][_0x52faba(0x1e1)]&&![..._0x11ca22[_0x52faba(0x1c2)]()][0x0][_0x52faba(0x1cb)]:!!_0x20ecae[_0x52faba(0x1b9)](_0x11ca22[_0x52faba(0x1d0)]());}(_0x318619);const _0x29a3c9=_0x318619[_0x231eaf(0x1c4)][_0x231eaf(0x1c9)],_0x1e6189=this[_0x231eaf(0x1da)][_0x231eaf(0x1e6)][_0x231eaf(0x1dc)](_0x231eaf(0x1d2));for(const _0x40453f of _0x29a3c9[_0x231eaf(0x1c1)]())for(const _0x16cdab of _0x40453f[_0x231eaf(0x1c7)]())if(_0x16cdab['is'](_0x231eaf(0x1c5))&&_0x1e6189[_0x231eaf(0x1de)](_0x16cdab[_0x231eaf(0x1cd)]))return void(this[_0x231eaf(0x1ca)]=!0x1);this[_0x231eaf(0x1ca)]=!0x0;}[_0xacb16c(0x1d6)](_0x725837='',_0x142681='',_0x4bfe14=_0xacb16c(0x1df)){const _0x3c765a=_0xacb16c;this[_0x3c765a(0x1da)][_0x3c765a(0x1e2)][_0x3c765a(0x1dc)](_0x334e31)[_0x3c765a(0x1d4)](_0x725837,_0x142681,_0x4bfe14);}}function ns(_0x25b90f,_0x7db999){const _0x487ee1=_0xacb16c,_0x66e8e6=new Set();for(const _0x48e85d of _0x25b90f[_0x487ee1(0x1c0)]())(_0x7db999||!0x1===_0x48e85d[_0x487ee1(0x1d9)])&&_0x66e8e6[_0x487ee1(0x1c3)](_0x48e85d['id']);return Array[_0x487ee1(0x1dd)](_0x66e8e6);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x59767e=_0x5ca4;(function(_0x25e47a,_0x2e2770){const _0x431691=_0x5ca4,_0x29346e=_0x25e47a();while(!![]){try{const _0x329e19=parseInt(_0x431691(0xeb))/0x1*(-parseInt(_0x431691(0x107))/0x2)+parseInt(_0x431691(0x115))/0x3+-parseInt(_0x431691(0x12d))/0x4*(-parseInt(_0x431691(0x10b))/0x5)+-parseInt(_0x431691(0x113))/0x6+parseInt(_0x431691(0xe0))/0x7*(parseInt(_0x431691(0xec))/0x8)+parseInt(_0x431691(0xd9))/0x9+-parseInt(_0x431691(0x130))/0xa;if(_0x329e19===_0x2e2770)break;else _0x29346e['push'](_0x29346e['shift']());}catch(_0x8b7cdc){_0x29346e['push'](_0x29346e['shift']());}}}(_0x2646,0x454c6));import{ContextPlugin as _0x4a0d8c}from'ckeditor5/src/core.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x555cce,AIEditing as _0x2f1579}from'../aicore/aiediting.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x51968c}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x14abb4,Rect as _0x8390fa,scrollViewportToShowTarget as _0x25d873}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x382da1}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0x3c3b62}from'../aicore/utils/common-translations.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x581dbc}from'./ui/aiballoonview.js';function _0x5ca4(_0xc51b28,_0x416f74){const _0x26463d=_0x2646();return _0x5ca4=function(_0x5ca488,_0x122fa0){_0x5ca488=_0x5ca488-0xd7;let _0x5d5fa1=_0x26463d[_0x5ca488];return _0x5d5fa1;},_0x5ca4(_0xc51b28,_0x416f74);}export const AI_BALLOON_EVENT_NAMES=[..._0x581dbc,_0x59767e(0xfa),_0x59767e(0x12f)];function _0x2646(){const _0x49a731=['view','map','AIBalloon','context','fire','plugins','editing','round','mainView','document','left','_showFakeVisualSelection','ck-ai-balloon\x20','ai-selection','showBlockingError','96736PbTXak','beforeDialogClosed','selectionRemoved','5419480yhebgC','_setupFakeVisualSelectionMarkerRemovalListener','open','delegate','pluginName','model','2728314gixKXN','$graveyard','getIntersection','AI_BALLOON_SELECTION_REMOVED_ERROR','change','index','filter','497xUtwoI','height','getMarkersGroup','hide','width','high','isEqual','locale','differ','isPremiumPlugin','_showDialog','862xZPFQL','32216ZWGyGJ','isOpen','updatePosition','bottom','ranges','requires','ai-balloon-selection','top','once','_calculateDialogPosition','_updateDialog','rootName','headerView','hideFakeVisualSelection','dialogClosed','getVisible','max','_getSelectionElements','markers','startsWith','_hideFakeVisualSelection','label','ai-balloon-','iconView','content','close','start','86JnZMIq','getChangedMarkers','root','end','60cNNOPv','isOfficialPlugin','window','listenTo','get','Dialog','hideError','showFakeVisualSelection','1309164vBfTID','_isUpdatingMarkers','605349INtiUe','show','stopListening','_currentConfig','bind','_cleanupFakeVisualSelectionMarkerRemovalListener','_calculateOptimalTopPosition','getBoundingRect','length'];_0x2646=function(){return _0x49a731;};return _0x2646();}const L=0xa;export class AIBalloon extends _0x4a0d8c{static get[_0x59767e(0xf1)](){return[_0x2f1579];}static get[_0x59767e(0xd7)](){const _0x6be59a=_0x59767e;return _0x6be59a(0x120);}static get[_0x59767e(0x10c)](){return!0x0;}static get[_0x59767e(0xe9)](){return!0x0;}[_0x59767e(0xed)]=!0x1;[_0x59767e(0x118)];[_0x59767e(0x114)]=!0x1;[_0x59767e(0x132)](_0x1c479e){const _0x20f3b9=_0x59767e,{id:_0x4cffcb}=this[_0x20f3b9(0x118)]??{};this[_0x20f3b9(0x118)]=_0x1c479e;const {id:_0x4c1df3}=this[_0x20f3b9(0x118)];this[_0x20f3b9(0xed)]&&_0x4cffcb===_0x4c1df3?this[_0x20f3b9(0xf6)]():this[_0x20f3b9(0xea)]();}[_0x59767e(0x105)](){const _0x1b4995=_0x59767e,_0xd67a09=_0x382da1(this[_0x1b4995(0x121)])[_0x1b4995(0x123)][_0x1b4995(0x10f)](_0x1b4995(0x110));_0xd67a09[_0x1b4995(0xed)]&&this[_0x1b4995(0x118)]&&_0xd67a09['id']===this[_0x1b4995(0x118)]['id']&&_0xd67a09[_0x1b4995(0xe3)]();}[_0x59767e(0xf6)](){const _0x595849=_0x59767e,_0xff43fe=_0x382da1(this[_0x595849(0x121)])[_0x595849(0x123)][_0x595849(0x10f)](_0x595849(0x110)),{icon:_0x212cff,title:_0x3a77bc}=this[_0x595849(0x118)];_0xff43fe[_0x595849(0x11e)]?.[_0x595849(0xf8)]&&(_0xff43fe[_0x595849(0x11e)][_0x595849(0xf8)][_0x595849(0x101)]=_0x3a77bc,_0xff43fe[_0x595849(0x11e)][_0x595849(0xf8)][_0x595849(0x103)]&&_0x212cff&&(_0xff43fe[_0x595849(0x11e)][_0x595849(0xf8)][_0x595849(0x103)][_0x595849(0x104)]=_0x212cff)),this[_0x595849(0x114)]=!0x0,this[_0x595849(0x129)](),this[_0x595849(0x114)]=!0x1,_0xff43fe[_0x595849(0x11e)]?.[_0x595849(0xee)]();}[_0x59767e(0x129)](){const _0xb8f193=_0x59767e;this[_0xb8f193(0x121)][_0xb8f193(0x123)][_0xb8f193(0x10f)](_0x2f1579)[_0xb8f193(0x112)](this[_0xb8f193(0x118)][_0xb8f193(0xf0)],_0xb8f193(0x102)+this[_0xb8f193(0x118)][_0xb8f193(0xde)],!0x0,!0x0);}[_0x59767e(0x100)](_0x2c592b){const _0x2e66ac=_0x59767e;this[_0x2e66ac(0x121)][_0x2e66ac(0x123)][_0x2e66ac(0x10f)](_0x2f1579)[_0x2e66ac(0xf9)](_0x2e66ac(0x102)+_0x2c592b);}[_0x59767e(0xea)](){const _0x572862=_0x59767e,_0xec305b=_0x382da1(this[_0x572862(0x121)])[_0x572862(0x123)][_0x572862(0x10f)](_0x572862(0x110)),{id:_0x360f26,title:_0x35533d,icon:_0x437c15,class:_0x3925fa,mainView:_0x3de269}=this[_0x572862(0x118)];_0x3de269[_0x572862(0x133)](..._0x581dbc)['to'](this),_0xec305b[_0x572862(0x116)]({'title':_0x35533d,'icon':_0x437c15,'hasCloseButton':!0x0,'id':_0x360f26,'position':this[_0x572862(0xf5)][_0x572862(0x119)](this),'className':_0x572862(0x12a)+(_0x3925fa||''),'content':_0x3de269,'onShow':_0x189041=>{const _0x3c6a8b=_0x572862;this[_0x3c6a8b(0x129)](),this[_0x3c6a8b(0x131)]();const _0x341508=this[_0x3c6a8b(0xfd)]();_0x341508&&_0x341508[0x0]&&_0x25d873({'target':_0x341508[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0x3c6a8b(0xed)]=!0x0,_0x189041[_0x3c6a8b(0xf4)](_0x3c6a8b(0xe3),()=>{const _0x47d360=_0x3c6a8b;this[_0x47d360(0x122)](_0x47d360(0x12e),{'id':_0x360f26});},{'priority':_0x3c6a8b(0xe5)});},'onHide':()=>{const _0x53e8f3=_0x572862;this[_0x53e8f3(0x100)](this[_0x53e8f3(0x118)][_0x53e8f3(0xde)]),this[_0x53e8f3(0x11a)](),this[_0x53e8f3(0x122)](_0x53e8f3(0xfa),{'id':_0x360f26}),this[_0x53e8f3(0xed)]=!0x1;}});}[_0x59767e(0xf5)](_0x1db3fa,_0x2517da){const _0x51dddb=_0x59767e;if(!_0x2517da)return null;const _0x1b549e=this[_0x51dddb(0xfd)]();if(!_0x1b549e||0x0===_0x1b549e[_0x51dddb(0x11d)])return{'left':Math[_0x51dddb(0x125)](_0x2517da[_0x51dddb(0x128)]+_0x2517da[_0x51dddb(0xe4)]/0x2-_0x1db3fa[_0x51dddb(0xe4)]/0x2),'top':Math[_0x51dddb(0x125)](_0x2517da[_0x51dddb(0xf3)]+_0x2517da[_0x51dddb(0xe1)]/0x2-_0x1db3fa[_0x51dddb(0xe1)]/0x2)};const _0x317553=Math[_0x51dddb(0x125)](_0x2517da[_0x51dddb(0x128)]+_0x2517da[_0x51dddb(0xe4)]/0x2-_0x1db3fa[_0x51dddb(0xe4)]/0x2),_0x16d353=_0x1b549e[_0x51dddb(0x11f)](_0x13b080=>new _0x8390fa(_0x13b080)),_0x29c5f4=_0x1db3fa[_0x51dddb(0xe1)];return{'left':_0x317553,'top':this[_0x51dddb(0x11b)](_0x16d353,_0x29c5f4,_0x2517da)};}[_0x59767e(0x11b)](_0x15d306,_0x2c37d4,_0x2a4160){const _0x2c75bf=_0x59767e,_0x4e463d=new _0x8390fa(_0x14abb4[_0x2c75bf(0x10d)]),_0x492138=_0x15d306[_0x2c75bf(0x11f)](_0x19fc01=>_0x19fc01[_0x2c75bf(0xfb)]())[_0x2c75bf(0xdf)](_0x1d5b71=>_0x1d5b71),_0x1109f2=_0x8390fa[_0x2c75bf(0x11c)](_0x492138);if(!_0x1109f2)return Math[_0x2c75bf(0x125)](_0x2a4160[_0x2c75bf(0xf3)]+_0x2a4160[_0x2c75bf(0xe1)]/0x2);const _0x25eb15=_0x4e463d[_0x2c75bf(0xdb)](_0x1109f2);if(!_0x25eb15)return Math[_0x2c75bf(0x125)](_0x2a4160[_0x2c75bf(0xf3)]+_0x2a4160[_0x2c75bf(0xe1)]/0x2);const _0x14ad16=_0x2a4160[_0x2c75bf(0xfb)](),_0x4e88a5=_0x14ad16&&_0x1109f2[_0x2c75bf(0xe1)]>_0x14ad16[_0x2c75bf(0xe1)],_0xca9da3=_0x25eb15[_0x2c75bf(0xf3)],_0x17f7c6=_0x25eb15[_0x2c75bf(0xef)];if(_0x4e88a5){const _0x4592b7=(_0x14ad16||_0x4e463d)[_0x2c75bf(0xe1)]/0x2-_0x2c37d4/0x2,_0x56e17b=_0xca9da3-L-_0x2a4160[_0x2c75bf(0xf3)],_0x3cf26b=_0x2a4160[_0x2c75bf(0xef)]-_0x17f7c6-L;return _0x56e17b>=_0x2c37d4?Math[_0x2c75bf(0xfc)](L,_0xca9da3-_0x2c37d4-L):_0x3cf26b>=_0x2c37d4?_0x17f7c6+L:Math[_0x2c75bf(0xfc)](L,_0x4592b7);}const _0x404a04=_0xca9da3-_0x2c37d4,_0x33aee5=_0x2a4160[_0x2c75bf(0xef)]-_0x17f7c6-L,_0x1f9661=_0xca9da3-L-_0x2a4160[_0x2c75bf(0xf3)];let _0x2a0c32;if(_0x33aee5>=_0x2c37d4)_0x2a0c32=_0x17f7c6+L;else{if(_0x1f9661>=_0x2c37d4)_0x2a0c32=_0x404a04-L;else _0x2a0c32=_0xca9da3+_0x1109f2[_0x2c75bf(0xe1)]/0x2-_0x2c37d4/0x2;}return _0x2a0c32;}[_0x59767e(0x131)](){const _0x5e8035=_0x59767e,_0x41b03f=_0x382da1(this[_0x5e8035(0x121)]);this[_0x5e8035(0x10e)](_0x41b03f[_0x5e8035(0xd8)][_0x5e8035(0x127)],_0x5e8035(0xdd),()=>{const _0x4f189f=_0x5e8035;if(!this[_0x4f189f(0x114)]){for(const {name:_0xe4d61d,data:{newRange:_0x46e57a}}of _0x41b03f[_0x4f189f(0xd8)][_0x4f189f(0x127)][_0x4f189f(0xe8)][_0x4f189f(0x108)]())if(_0xe4d61d[_0x4f189f(0xff)](_0x555cce+':')&&(_0x46e57a&&(_0x46e57a[_0x4f189f(0x106)][_0x4f189f(0xe6)](_0x46e57a[_0x4f189f(0x10a)])||_0x4f189f(0xda)==_0x46e57a[_0x4f189f(0x109)][_0x4f189f(0xf7)])||null==_0x46e57a)){const _0x4b12c4=_0x3c3b62(this[_0x4f189f(0x121)][_0x4f189f(0xe7)],_0x4f189f(0xdc));this[_0x4f189f(0x118)][_0x4f189f(0x126)][_0x4f189f(0x12c)](_0x4b12c4),this[_0x4f189f(0x122)](_0x4f189f(0x12f));}}});}[_0x59767e(0x11a)](){const _0xe25dc6=_0x59767e,_0x51791e=_0x382da1(this[_0xe25dc6(0x121)]);this[_0xe25dc6(0x118)][_0xe25dc6(0x126)][_0xe25dc6(0x111)](),this[_0xe25dc6(0x117)](_0x51791e[_0xe25dc6(0xd8)][_0xe25dc6(0x127)]);}[_0x59767e(0xfd)](){const _0x42f9e3=_0x59767e,_0x4a0189=_0x382da1(this[_0x42f9e3(0x121)]);return _0x51968c(_0x4a0189[_0x42f9e3(0x124)],[..._0x4a0189[_0x42f9e3(0xd8)][_0x42f9e3(0xfe)][_0x42f9e3(0xe2)](_0x42f9e3(0x12b)),..._0x4a0189[_0x42f9e3(0xd8)][_0x42f9e3(0xfe)][_0x42f9e3(0xe2)](_0x42f9e3(0xf2))]);}}
23
+ const _0x70d98a=_0x5e1b;(function(_0x2bfdae,_0x590e49){const _0x20fd42=_0x5e1b,_0x859ea1=_0x2bfdae();while(!![]){try{const _0x214ce5=parseInt(_0x20fd42(0x176))/0x1*(-parseInt(_0x20fd42(0x185))/0x2)+parseInt(_0x20fd42(0x1a1))/0x3*(-parseInt(_0x20fd42(0x154))/0x4)+parseInt(_0x20fd42(0x14f))/0x5*(-parseInt(_0x20fd42(0x164))/0x6)+-parseInt(_0x20fd42(0x160))/0x7*(parseInt(_0x20fd42(0x16f))/0x8)+parseInt(_0x20fd42(0x16e))/0x9+-parseInt(_0x20fd42(0x181))/0xa+parseInt(_0x20fd42(0x1a9))/0xb;if(_0x214ce5===_0x590e49)break;else _0x859ea1['push'](_0x859ea1['shift']());}catch(_0x105db8){_0x859ea1['push'](_0x859ea1['shift']());}}}(_0x3682,0x8fb7e));import{ContextPlugin as _0x27b353}from'ckeditor5/src/core.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x564f90,AIEditing as _0x4d8403}from'../aicore/aiediting.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x4c6eed}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x3682(){const _0x2d8152=['updatePosition','end','169794LSNZir','8421032bApENO','change','hideFakeVisualSelection','_cleanupFakeVisualSelectionMarkerRemovalListener','selectionRemoved','_showFakeVisualSelection','start','310693UAvrZx','isOpen','getIntersection','hideError','once','get','pluginName','document','content','startsWith','high','4804230vBhUel','isEqual','getChangedMarkers','height','4yhnpWv','$graveyard','locale','mainView','ranges','left','top','markers','show','hide','stopListening','_showDialog','view','Dialog','context','root','delegate','rootName','close','open','differ','ai-selection','showBlockingError','width','index','ai-balloon-selection','isOfficialPlugin','getBoundingRect','263709aXTbYq','_setupFakeVisualSelectionMarkerRemovalListener','max','map','_updateDialog','_calculateOptimalTopPosition','plugins','isPremiumPlugin','40707623MqhDBC','AIBalloon','getMarkersGroup','window','5gZsZeF','length','iconView','_isUpdatingMarkers','dialogClosed','44wpKcmU','bottom','headerView','_getSelectionElements','_currentConfig','fire','_calculateDialogPosition','_hideFakeVisualSelection','ai-balloon-','model','requires','beforeDialogClosed','7mGyhTj','showFakeVisualSelection','listenTo','label','57108nyAHUX','bind','editing','ck-ai-balloon\x20','getVisible','round','filter','AI_BALLOON_SELECTION_REMOVED_ERROR'];_0x3682=function(){return _0x2d8152;};return _0x3682();}import{global as _0x338635,Rect as _0xef5938,scrollViewportToShowTarget as _0x5d2fe2}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x42502a}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0xaca674}from'../aicore/utils/common-translations.js';function _0x5e1b(_0x360456,_0x2d2c92){const _0x368202=_0x3682();return _0x5e1b=function(_0x5e1bef,_0x3de190){_0x5e1bef=_0x5e1bef-0x14d;let _0x370100=_0x368202[_0x5e1bef];return _0x370100;},_0x5e1b(_0x360456,_0x2d2c92);}import{AI_BALLOON_VIEW_EVENT_NAMES as _0x34b288}from'./ui/aiballoonview.js';export const AI_BALLOON_EVENT_NAMES=[..._0x34b288,_0x70d98a(0x153),_0x70d98a(0x173)];const at=0xa;export class AIBalloon extends _0x27b353{static get[_0x70d98a(0x15e)](){return[_0x4d8403];}static get[_0x70d98a(0x17c)](){const _0x374400=_0x70d98a;return _0x374400(0x1aa);}static get[_0x70d98a(0x19f)](){return!0x0;}static get[_0x70d98a(0x1a8)](){return!0x0;}[_0x70d98a(0x177)]=!0x1;[_0x70d98a(0x158)];[_0x70d98a(0x152)]=!0x1;[_0x70d98a(0x198)](_0x3893af){const _0x823779=_0x70d98a,{id:_0x484742}=this[_0x823779(0x158)]??{};this[_0x823779(0x158)]=_0x3893af;const {id:_0x12ed49}=this[_0x823779(0x158)];this[_0x823779(0x177)]&&_0x484742===_0x12ed49?this[_0x823779(0x1a5)]():this[_0x823779(0x190)]();}[_0x70d98a(0x197)](){const _0x398da4=_0x70d98a,_0x2a6f2e=_0x42502a(this[_0x398da4(0x193)])[_0x398da4(0x1a7)][_0x398da4(0x17b)](_0x398da4(0x192));_0x2a6f2e[_0x398da4(0x177)]&&this[_0x398da4(0x158)]&&_0x2a6f2e['id']===this[_0x398da4(0x158)]['id']&&_0x2a6f2e[_0x398da4(0x18e)]();}[_0x70d98a(0x1a5)](){const _0x40a91d=_0x70d98a,_0x1e53bb=_0x42502a(this[_0x40a91d(0x193)])[_0x40a91d(0x1a7)][_0x40a91d(0x17b)](_0x40a91d(0x192)),{icon:_0x16231c,title:_0x53f77b}=this[_0x40a91d(0x158)];_0x1e53bb[_0x40a91d(0x191)]?.[_0x40a91d(0x156)]&&(_0x1e53bb[_0x40a91d(0x191)][_0x40a91d(0x156)][_0x40a91d(0x163)]=_0x53f77b,_0x1e53bb[_0x40a91d(0x191)][_0x40a91d(0x156)][_0x40a91d(0x151)]&&_0x16231c&&(_0x1e53bb[_0x40a91d(0x191)][_0x40a91d(0x156)][_0x40a91d(0x151)][_0x40a91d(0x17e)]=_0x16231c)),this[_0x40a91d(0x152)]=!0x0,this[_0x40a91d(0x174)](),this[_0x40a91d(0x152)]=!0x1,_0x1e53bb[_0x40a91d(0x191)]?.[_0x40a91d(0x16c)]();}[_0x70d98a(0x174)](){const _0x461589=_0x70d98a;this[_0x461589(0x193)][_0x461589(0x1a7)][_0x461589(0x17b)](_0x4d8403)[_0x461589(0x161)](this[_0x461589(0x158)][_0x461589(0x189)],_0x461589(0x15c)+this[_0x461589(0x158)][_0x461589(0x19d)],!0x0,!0x0);}[_0x70d98a(0x15b)](_0x2f14e9){const _0x329d0c=_0x70d98a;this[_0x329d0c(0x193)][_0x329d0c(0x1a7)][_0x329d0c(0x17b)](_0x4d8403)[_0x329d0c(0x171)](_0x329d0c(0x15c)+_0x2f14e9);}[_0x70d98a(0x190)](){const _0x25dd90=_0x70d98a,_0x363d27=_0x42502a(this[_0x25dd90(0x193)])[_0x25dd90(0x1a7)][_0x25dd90(0x17b)](_0x25dd90(0x192)),{id:_0x3a1699,title:_0x53c5c1,icon:_0xb6277b,class:_0x3e4e62,mainView:_0x2e5679}=this[_0x25dd90(0x158)];_0x2e5679[_0x25dd90(0x195)](..._0x34b288)['to'](this),_0x363d27[_0x25dd90(0x18d)]({'title':_0x53c5c1,'icon':_0xb6277b,'hasCloseButton':!0x0,'id':_0x3a1699,'position':this[_0x25dd90(0x15a)][_0x25dd90(0x165)](this),'className':_0x25dd90(0x167)+(_0x3e4e62||''),'content':_0x2e5679,'onShow':_0x29aa60=>{const _0x4a95da=_0x25dd90;this[_0x4a95da(0x174)](),this[_0x4a95da(0x1a2)]();const _0x5cd94d=this[_0x4a95da(0x157)]();_0x5cd94d&&_0x5cd94d[0x0]&&_0x5d2fe2({'target':_0x5cd94d[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0x4a95da(0x177)]=!0x0,_0x29aa60[_0x4a95da(0x17a)](_0x4a95da(0x18e),()=>{const _0x2faeb9=_0x4a95da;this[_0x2faeb9(0x159)](_0x2faeb9(0x15f),{'id':_0x3a1699});},{'priority':_0x4a95da(0x180)});},'onHide':()=>{const _0x4c4725=_0x25dd90;this[_0x4c4725(0x15b)](this[_0x4c4725(0x158)][_0x4c4725(0x19d)]),this[_0x4c4725(0x172)](),this[_0x4c4725(0x159)](_0x4c4725(0x153),{'id':_0x3a1699}),this[_0x4c4725(0x177)]=!0x1;}});}[_0x70d98a(0x15a)](_0x36dc23,_0x2bc494){const _0x1b27b8=_0x70d98a;if(!_0x2bc494)return null;const _0x3ec73d=this[_0x1b27b8(0x157)]();if(!_0x3ec73d||0x0===_0x3ec73d[_0x1b27b8(0x150)])return{'left':Math[_0x1b27b8(0x169)](_0x2bc494[_0x1b27b8(0x18a)]+_0x2bc494[_0x1b27b8(0x19c)]/0x2-_0x36dc23[_0x1b27b8(0x19c)]/0x2),'top':Math[_0x1b27b8(0x169)](_0x2bc494[_0x1b27b8(0x18b)]+_0x2bc494[_0x1b27b8(0x184)]/0x2-_0x36dc23[_0x1b27b8(0x184)]/0x2)};const _0x413a6c=Math[_0x1b27b8(0x169)](_0x2bc494[_0x1b27b8(0x18a)]+_0x2bc494[_0x1b27b8(0x19c)]/0x2-_0x36dc23[_0x1b27b8(0x19c)]/0x2),_0x37831c=_0x3ec73d[_0x1b27b8(0x1a4)](_0x20c1f3=>new _0xef5938(_0x20c1f3)),_0x1e2ea3=_0x36dc23[_0x1b27b8(0x184)];return{'left':_0x413a6c,'top':this[_0x1b27b8(0x1a6)](_0x37831c,_0x1e2ea3,_0x2bc494)};}[_0x70d98a(0x1a6)](_0x4d3d6b,_0x337c85,_0x258e00){const _0x1f41da=_0x70d98a,_0x1d9ad4=new _0xef5938(_0x338635[_0x1f41da(0x14e)]),_0x8a2933=_0x4d3d6b[_0x1f41da(0x1a4)](_0x3e7853=>_0x3e7853[_0x1f41da(0x168)]())[_0x1f41da(0x16a)](_0x5442e0=>_0x5442e0),_0x9578ff=_0xef5938[_0x1f41da(0x1a0)](_0x8a2933);if(!_0x9578ff)return Math[_0x1f41da(0x169)](_0x258e00[_0x1f41da(0x18b)]+_0x258e00[_0x1f41da(0x184)]/0x2);const _0x1d4dca=_0x1d9ad4[_0x1f41da(0x178)](_0x9578ff);if(!_0x1d4dca)return Math[_0x1f41da(0x169)](_0x258e00[_0x1f41da(0x18b)]+_0x258e00[_0x1f41da(0x184)]/0x2);const _0x51f77a=_0x258e00[_0x1f41da(0x168)](),_0x1e510d=_0x51f77a&&_0x9578ff[_0x1f41da(0x184)]>_0x51f77a[_0x1f41da(0x184)],_0x10d546=_0x1d4dca[_0x1f41da(0x18b)],_0x5ba2bc=_0x1d4dca[_0x1f41da(0x155)];if(_0x1e510d){const _0x52cbdf=(_0x51f77a||_0x1d9ad4)[_0x1f41da(0x184)]/0x2-_0x337c85/0x2,_0x54b003=_0x10d546-at-_0x258e00[_0x1f41da(0x18b)],_0x4e1162=_0x258e00[_0x1f41da(0x155)]-_0x5ba2bc-at;return _0x54b003>=_0x337c85?Math[_0x1f41da(0x1a3)](at,_0x10d546-_0x337c85-at):_0x4e1162>=_0x337c85?_0x5ba2bc+at:Math[_0x1f41da(0x1a3)](at,_0x52cbdf);}const _0x1312fb=_0x10d546-_0x337c85,_0x424367=_0x258e00[_0x1f41da(0x155)]-_0x5ba2bc-at,_0x886b3a=_0x10d546-at-_0x258e00[_0x1f41da(0x18b)];let _0xfac26d;if(_0x424367>=_0x337c85)_0xfac26d=_0x5ba2bc+at;else{if(_0x886b3a>=_0x337c85)_0xfac26d=_0x1312fb-at;else _0xfac26d=_0x10d546+_0x9578ff[_0x1f41da(0x184)]/0x2-_0x337c85/0x2;}return _0xfac26d;}[_0x70d98a(0x1a2)](){const _0x1e3e94=_0x70d98a,_0xb719b2=_0x42502a(this[_0x1e3e94(0x193)]);this[_0x1e3e94(0x162)](_0xb719b2[_0x1e3e94(0x15d)][_0x1e3e94(0x17d)],_0x1e3e94(0x170),()=>{const _0x524179=_0x1e3e94;if(!this[_0x524179(0x152)]){for(const {name:_0x361503,data:{newRange:_0x46c983}}of _0xb719b2[_0x524179(0x15d)][_0x524179(0x17d)][_0x524179(0x199)][_0x524179(0x183)]())if(_0x361503[_0x524179(0x17f)](_0x564f90+':')&&(_0x46c983&&(_0x46c983[_0x524179(0x175)][_0x524179(0x182)](_0x46c983[_0x524179(0x16d)])||_0x524179(0x186)==_0x46c983[_0x524179(0x194)][_0x524179(0x196)])||null==_0x46c983)){const _0x41291c=_0xaca674(this[_0x524179(0x193)][_0x524179(0x187)],_0x524179(0x16b));this[_0x524179(0x158)][_0x524179(0x188)][_0x524179(0x19b)](_0x41291c),this[_0x524179(0x159)](_0x524179(0x173));}}});}[_0x70d98a(0x172)](){const _0x1ba2d8=_0x70d98a,_0x57d631=_0x42502a(this[_0x1ba2d8(0x193)]);this[_0x1ba2d8(0x158)][_0x1ba2d8(0x188)][_0x1ba2d8(0x179)](),this[_0x1ba2d8(0x18f)](_0x57d631[_0x1ba2d8(0x15d)][_0x1ba2d8(0x17d)]);}[_0x70d98a(0x157)](){const _0x34612a=_0x70d98a,_0x136391=_0x42502a(this[_0x34612a(0x193)]);return _0x4c6eed(_0x136391[_0x34612a(0x166)],[..._0x136391[_0x34612a(0x15d)][_0x34612a(0x18c)][_0x34612a(0x14d)](_0x34612a(0x19a)),..._0x136391[_0x34612a(0x15d)][_0x34612a(0x18c)][_0x34612a(0x14d)](_0x34612a(0x19e))]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b208b=_0x2fc3;(function(_0x141d7a,_0x1760ee){const _0x5b4677=_0x2fc3,_0x2298d0=_0x141d7a();while(!![]){try{const _0x51772c=parseInt(_0x5b4677(0xfc))/0x1*(parseInt(_0x5b4677(0x104))/0x2)+-parseInt(_0x5b4677(0x115))/0x3+parseInt(_0x5b4677(0xff))/0x4+-parseInt(_0x5b4677(0x10a))/0x5*(-parseInt(_0x5b4677(0x109))/0x6)+parseInt(_0x5b4677(0xfe))/0x7*(parseInt(_0x5b4677(0x102))/0x8)+parseInt(_0x5b4677(0x111))/0x9*(-parseInt(_0x5b4677(0x10c))/0xa)+parseInt(_0x5b4677(0xfa))/0xb*(-parseInt(_0x5b4677(0x10d))/0xc);if(_0x51772c===_0x1760ee)break;else _0x2298d0['push'](_0x2298d0['shift']());}catch(_0x66adb){_0x2298d0['push'](_0x2298d0['shift']());}}}(_0x41d9,0x81389));import{View as _0x3963de}from'ckeditor5/src/ui.js';function _0x41d9(){const _0x330f43=['320430OuLgKc','_isErrorVisible','ck-ai-suggestion__error','bindTemplate','showNext','span','11077rMJAPP','hideError','158855YZTEAG','_createErrorView','259oTlAGR','1729196vthYta','_errorView','set','69528XOQGav','showPrevious','6sDhiRv','insertSuggestion','ck-ai-balloon-error','locale','applySuggestion','18Nsyxtq','671230VyfYNn','setTemplate','6013190nAJuzS','4716fJByJo','showError','showBlockingError','ck-ai-suggestion__error-text','9vESfCN','_errorMessage','ck-hidden','div'];_0x41d9=function(){return _0x330f43;};return _0x41d9();}export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x5b208b(0x108),_0x5b208b(0x105),_0x5b208b(0xf8),_0x5b208b(0x103)];function _0x2fc3(_0x561fd3,_0x265f80){const _0x41d99c=_0x41d9();return _0x2fc3=function(_0x2fc3c4,_0xf48d30){_0x2fc3c4=_0x2fc3c4-0xf5;let _0x5aecc1=_0x41d99c[_0x2fc3c4];return _0x5aecc1;},_0x2fc3(_0x561fd3,_0x265f80);}export class AIBalloonView extends _0x3963de{[_0x5b208b(0x100)];constructor(_0x56db7a){const _0xd01cf6=_0x5b208b;super(_0x56db7a),this[_0xd01cf6(0x101)](_0xd01cf6(0x112),''),this[_0xd01cf6(0x101)](_0xd01cf6(0xf5),!0x1);}[_0x5b208b(0x10f)](_0xf7261c){const _0x3f87b5=_0x5b208b;this[_0x3f87b5(0x10e)](_0xf7261c);}[_0x5b208b(0x10e)](_0x2b752b){const _0x287863=_0x5b208b;this[_0x287863(0x100)]||(this[_0x287863(0x100)]=this[_0x287863(0xfd)]()),this[_0x287863(0x112)]=_0x2b752b,this[_0x287863(0xf5)]=!0x0;}[_0x5b208b(0xfb)](){const _0x16015e=_0x5b208b;this[_0x16015e(0xf5)]=!0x1;}[_0x5b208b(0xfd)](){const _0x106cad=_0x5b208b,_0x2e023e=new _0x3963de(this[_0x106cad(0x107)]),_0x1220ac=new _0x3963de(this[_0x106cad(0x107)]);return _0x1220ac[_0x106cad(0x10b)]({'tag':_0x106cad(0xf9),'attributes':{'class':['ck',_0x106cad(0x110)]},'children':[{'text':this[_0x106cad(0xf7)]['to'](_0x106cad(0x112))}]}),_0x2e023e[_0x106cad(0x10b)]({'tag':_0x106cad(0x114),'attributes':{'class':['ck',_0x106cad(0xf6),_0x106cad(0x106),this[_0x106cad(0xf7)]['if'](_0x106cad(0xf5),_0x106cad(0x113),_0x2558d4=>!_0x2558d4)]},'children':[_0x1220ac]}),_0x2e023e;}}
23
+ function _0x313a(){const _0x5ad3b2=['_errorMessage','showBlockingError','862371wETTnX','ck-ai-balloon-error','_errorView','bindTemplate','applySuggestion','ck-ai-suggestion__error','47226260UhTQYi','showPrevious','120JeZAmU','showError','hideError','556651uVenlR','8DIhafv','setTemplate','ck-ai-suggestion__error-text','483364RfIrsp','3KXNoIB','ck-hidden','_isErrorVisible','span','6574310GcZeJD','3864116cURnXe','2664340WrILnK','showNext','_createErrorView','insertSuggestion','div','set','locale'];_0x313a=function(){return _0x5ad3b2;};return _0x313a();}const _0x4ae2f2=_0x21f6;(function(_0x5cf6ff,_0x282963){const _0x4e023f=_0x21f6,_0x13d530=_0x5cf6ff();while(!![]){try{const _0x24effc=parseInt(_0x4e023f(0x14e))/0x1+parseInt(_0x4e023f(0x13a))/0x2+parseInt(_0x4e023f(0x153))/0x3*(parseInt(_0x4e023f(0x139))/0x4)+parseInt(_0x4e023f(0x138))/0x5+parseInt(_0x4e023f(0x14b))/0x6*(parseInt(_0x4e023f(0x152))/0x7)+-parseInt(_0x4e023f(0x14f))/0x8*(parseInt(_0x4e023f(0x143))/0x9)+-parseInt(_0x4e023f(0x149))/0xa;if(_0x24effc===_0x282963)break;else _0x13d530['push'](_0x13d530['shift']());}catch(_0x473865){_0x13d530['push'](_0x13d530['shift']());}}}(_0x313a,0xb2c93));import{View as _0x3a18f0}from'ckeditor5/src/ui.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x4ae2f2(0x147),_0x4ae2f2(0x13d),_0x4ae2f2(0x13b),_0x4ae2f2(0x14a)];function _0x21f6(_0x17527c,_0x252439){const _0x313a95=_0x313a();return _0x21f6=function(_0x21f62a,_0x10df3b){_0x21f62a=_0x21f62a-0x135;let _0x476548=_0x313a95[_0x21f62a];return _0x476548;},_0x21f6(_0x17527c,_0x252439);}export class AIBalloonView extends _0x3a18f0{[_0x4ae2f2(0x145)];constructor(_0x2d9764){const _0x14c2d8=_0x4ae2f2;super(_0x2d9764),this[_0x14c2d8(0x13f)](_0x14c2d8(0x141),''),this[_0x14c2d8(0x13f)](_0x14c2d8(0x136),!0x1);}[_0x4ae2f2(0x142)](_0x31dee2){const _0x27a7c7=_0x4ae2f2;this[_0x27a7c7(0x14c)](_0x31dee2);}[_0x4ae2f2(0x14c)](_0x4be8aa){const _0x271ffb=_0x4ae2f2;this[_0x271ffb(0x145)]||(this[_0x271ffb(0x145)]=this[_0x271ffb(0x13c)]()),this[_0x271ffb(0x141)]=_0x4be8aa,this[_0x271ffb(0x136)]=!0x0;}[_0x4ae2f2(0x14d)](){const _0x3a79b3=_0x4ae2f2;this[_0x3a79b3(0x136)]=!0x1;}[_0x4ae2f2(0x13c)](){const _0x5b3235=_0x4ae2f2,_0x190935=new _0x3a18f0(this[_0x5b3235(0x140)]),_0x47aab1=new _0x3a18f0(this[_0x5b3235(0x140)]);return _0x47aab1[_0x5b3235(0x150)]({'tag':_0x5b3235(0x137),'attributes':{'class':['ck',_0x5b3235(0x151)]},'children':[{'text':this[_0x5b3235(0x146)]['to'](_0x5b3235(0x141))}]}),_0x190935[_0x5b3235(0x150)]({'tag':_0x5b3235(0x13e),'attributes':{'class':['ck',_0x5b3235(0x148),_0x5b3235(0x144),this[_0x5b3235(0x146)]['if'](_0x5b3235(0x136),_0x5b3235(0x135),_0x16b1da=>!_0x16b1da)]},'children':[_0x47aab1]}),_0x190935;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x139668=_0x4e7a;function _0x4e7a(_0x2509ac,_0x306eb0){var _0x544477=_0x5444();return _0x4e7a=function(_0x4e7a5e,_0x3b516b){_0x4e7a5e=_0x4e7a5e-0xa2;var _0x14add2=_0x544477[_0x4e7a5e];return _0x14add2;},_0x4e7a(_0x2509ac,_0x306eb0);}(function(_0x4cb34b,_0xc87e3c){var _0x59a930=_0x4e7a,_0x47f285=_0x4cb34b();while(!![]){try{var _0x2eee21=parseInt(_0x59a930(0xa4))/0x1*(parseInt(_0x59a930(0xaa))/0x2)+-parseInt(_0x59a930(0xbf))/0x3+-parseInt(_0x59a930(0xb5))/0x4*(parseInt(_0x59a930(0xab))/0x5)+-parseInt(_0x59a930(0xa7))/0x6+-parseInt(_0x59a930(0xa6))/0x7*(-parseInt(_0x59a930(0xbc))/0x8)+parseInt(_0x59a930(0xb0))/0x9*(parseInt(_0x59a930(0xb4))/0xa)+-parseInt(_0x59a930(0xb8))/0xb;if(_0x2eee21===_0xc87e3c)break;else _0x47f285['push'](_0x47f285['shift']());}catch(_0xcffef8){_0x47f285['push'](_0x47f285['shift']());}}}(_0x5444,0x9101f));import{ContextPlugin as _0x38cd61}from'ckeditor5/src/core.js';function _0x5444(){var _0x2e09a1=['get','sendMessage','3NXZrpw','isPremiumPlugin','4093516qYOhNK','3197088zzOigB','_registerToolDataCallback','AIChat','392322AjVDwl','10BlSged','ai.chat.context','ai.chat.initialConversation','define','requires','1224qRJRhE','plugins','addSelectionToChatContext','removeSelectionFromChatContext','65140aKkzvO','1439092tMSBwM','registerToolDataCallback','config','5763384ETfymj','new','startConversation','context','16QJGpiZ','focusPromptInput','pluginName','821022jdeZrJ','isOfficialPlugin'];_0x5444=function(){return _0x2e09a1;};return _0x5444();}import{AIChatController as _0x24cd4a}from'./aichatcontroller.js';import{AIEditing as _0x9a1d55}from'../aicore/aiediting.js';import{AIChatUI as _0x366ea2}from'./aichatui.js';import{AIChatHistory as _0x43b2dc}from'../aichathistory/aichathistory.js';export class AIChat extends _0x38cd61{static get[_0x139668(0xaf)](){return[_0x24cd4a,_0x9a1d55,_0x366ea2,_0x43b2dc];}static get[_0x139668(0xbe)](){var _0x4e9141=_0x139668;return _0x4e9141(0xa9);}static get[_0x139668(0xc0)](){return!0x0;}static get[_0x139668(0xa5)](){return!0x0;}constructor(_0x59cce6){var _0xb5ab32=_0x139668;super(_0x59cce6),this[_0xb5ab32(0xbb)][_0xb5ab32(0xb7)][_0xb5ab32(0xae)](_0xb5ab32(0xac),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0xb5ab32(0xbb)][_0xb5ab32(0xb7)][_0xb5ab32(0xae)](_0xb5ab32(0xad),_0xb5ab32(0xb9));}async[_0x139668(0xb2)](){var _0x3f72ae=_0x139668;await this[_0x3f72ae(0xbb)][_0x3f72ae(0xb1)][_0x3f72ae(0xa2)](_0x24cd4a)[_0x3f72ae(0xb2)]();}async[_0x139668(0xba)](){var _0x1b6739=_0x139668;await this[_0x1b6739(0xbb)][_0x1b6739(0xb1)][_0x1b6739(0xa2)](_0x24cd4a)[_0x1b6739(0xba)]();}async[_0x139668(0xa3)]({message:_0x1d7124,attributes:_0x2fa676}){var _0x3d62f9=_0x139668;await this[_0x3d62f9(0xbb)][_0x3d62f9(0xb1)][_0x3d62f9(0xa2)](_0x24cd4a)[_0x3d62f9(0xa3)]({'message':_0x1d7124,'attributes':_0x2fa676});}[_0x139668(0xb3)](){var _0x521f04=_0x139668;this[_0x521f04(0xbb)][_0x521f04(0xb1)][_0x521f04(0xa2)](_0x24cd4a)[_0x521f04(0xb3)]();}[_0x139668(0xbd)](){var _0x544edf=_0x139668;this[_0x544edf(0xbb)][_0x544edf(0xb1)][_0x544edf(0xa2)](_0x24cd4a)[_0x544edf(0xbd)]();}[_0x139668(0xb6)](_0x2b0dc3){var _0x2ec254=_0x139668;this[_0x2ec254(0xbb)][_0x2ec254(0xb1)][_0x2ec254(0xa2)](_0x24cd4a)[_0x2ec254(0xa8)](_0x2b0dc3);}}
23
+ var _0x74b1c7=_0x3dc9;function _0x2487(){var _0x4dd1c3=['32FtmoVx','addSelectionToChatContext','70325ncOdgV','645609rFivvG','sendMessage','2738631giuXOS','new','63064fMGIiO','isOfficialPlugin','99ojhZXw','3463734bfBPxN','requires','removeSelectionFromChatContext','startConversation','pluginName','context','ai.chat.initialConversation','registerToolDataCallback','get','ai.chat.context','_registerToolDataCallback','config','413145tpixUE','plugins','AIChat','focusPromptInput','isPremiumPlugin','define','690916qaxHmB'];_0x2487=function(){return _0x4dd1c3;};return _0x2487();}(function(_0x5091dd,_0xa48cde){var _0x2a02fb=_0x3dc9,_0x292ae9=_0x5091dd();while(!![]){try{var _0x466400=parseInt(_0x2a02fb(0xc9))/0x1+parseInt(_0x2a02fb(0xc5))/0x2+-parseInt(_0x2a02fb(0xbf))/0x3*(parseInt(_0x2a02fb(0xc6))/0x4)+-parseInt(_0x2a02fb(0xc8))/0x5+parseInt(_0x2a02fb(0xb3))/0x6+parseInt(_0x2a02fb(0xcb))/0x7+parseInt(_0x2a02fb(0xcd))/0x8*(-parseInt(_0x2a02fb(0xcf))/0x9);if(_0x466400===_0xa48cde)break;else _0x292ae9['push'](_0x292ae9['shift']());}catch(_0x26c341){_0x292ae9['push'](_0x292ae9['shift']());}}}(_0x2487,0xb8d63));import{ContextPlugin as _0x10163c}from'ckeditor5/src/core.js';function _0x3dc9(_0x36d1b8,_0x20c89c){var _0x2487f2=_0x2487();return _0x3dc9=function(_0x3dc918,_0x174419){_0x3dc918=_0x3dc918-0xb3;var _0x2c3bbf=_0x2487f2[_0x3dc918];return _0x2c3bbf;},_0x3dc9(_0x36d1b8,_0x20c89c);}import{AIChatController as _0x4278fb}from'./aichatcontroller.js';import{AIEditing as _0x33aa20}from'../aicore/aiediting.js';import{AIChatUI as _0x58617e}from'./aichatui.js';import{AIChatHistory as _0x3657b9}from'../aichathistory/aichathistory.js';export class AIChat extends _0x10163c{static get[_0x74b1c7(0xb4)](){return[_0x4278fb,_0x33aa20,_0x58617e,_0x3657b9];}static get[_0x74b1c7(0xb7)](){var _0x4f8491=_0x74b1c7;return _0x4f8491(0xc1);}static get[_0x74b1c7(0xce)](){return!0x0;}static get[_0x74b1c7(0xc3)](){return!0x0;}constructor(_0x36bd47){var _0x3f187c=_0x74b1c7;super(_0x36bd47),this[_0x3f187c(0xb8)][_0x3f187c(0xbe)][_0x3f187c(0xc4)](_0x3f187c(0xbc),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x3f187c(0xb8)][_0x3f187c(0xbe)][_0x3f187c(0xc4)](_0x3f187c(0xb9),_0x3f187c(0xcc));}async[_0x74b1c7(0xc7)](){var _0x578fca=_0x74b1c7;await this[_0x578fca(0xb8)][_0x578fca(0xc0)][_0x578fca(0xbb)](_0x4278fb)[_0x578fca(0xc7)]();}async[_0x74b1c7(0xb6)](){var _0x118309=_0x74b1c7;await this[_0x118309(0xb8)][_0x118309(0xc0)][_0x118309(0xbb)](_0x4278fb)[_0x118309(0xb6)]();}async[_0x74b1c7(0xca)]({message:_0x23e56f,attributes:_0x1d9570}){var _0x4b9979=_0x74b1c7;await this[_0x4b9979(0xb8)][_0x4b9979(0xc0)][_0x4b9979(0xbb)](_0x4278fb)[_0x4b9979(0xca)]({'message':_0x23e56f,'attributes':_0x1d9570});}[_0x74b1c7(0xb5)](){var _0x4d57c0=_0x74b1c7;this[_0x4d57c0(0xb8)][_0x4d57c0(0xc0)][_0x4d57c0(0xbb)](_0x4278fb)[_0x4d57c0(0xb5)]();}[_0x74b1c7(0xc2)](){var _0x38ab1a=_0x74b1c7;this[_0x38ab1a(0xb8)][_0x38ab1a(0xc0)][_0x38ab1a(0xbb)](_0x4278fb)[_0x38ab1a(0xc2)]();}[_0x74b1c7(0xba)](_0x39d408){var _0x3421db=_0x74b1c7;this[_0x3421db(0xb8)][_0x3421db(0xc0)][_0x3421db(0xbb)](_0x4278fb)[_0x3421db(0xbd)](_0x39d408);}}