@ckeditor/ckeditor5-ai 47.3.0-alpha.0 → 47.3.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 (369) hide show
  1. package/build/ai.js +1 -1
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/bg.js +1 -1
  4. package/build/translations/bn.js +1 -1
  5. package/build/translations/ca.js +1 -1
  6. package/build/translations/cs.js +1 -1
  7. package/build/translations/da.js +1 -1
  8. package/build/translations/de.js +1 -1
  9. package/build/translations/el.js +1 -1
  10. package/build/translations/es.js +1 -1
  11. package/build/translations/et.js +1 -1
  12. package/build/translations/fi.js +1 -1
  13. package/build/translations/fr.js +1 -1
  14. package/build/translations/he.js +1 -1
  15. package/build/translations/hi.js +1 -1
  16. package/build/translations/hu.js +1 -1
  17. package/build/translations/id.js +1 -1
  18. package/build/translations/it.js +1 -1
  19. package/build/translations/ja.js +1 -1
  20. package/build/translations/ko.js +1 -1
  21. package/build/translations/lt.js +1 -1
  22. package/build/translations/lv.js +1 -1
  23. package/build/translations/ms.js +1 -1
  24. package/build/translations/nl.js +1 -1
  25. package/build/translations/no.js +1 -1
  26. package/build/translations/pl.js +1 -1
  27. package/build/translations/pt-br.js +1 -1
  28. package/build/translations/pt.js +1 -1
  29. package/build/translations/ro.js +1 -1
  30. package/build/translations/ru.js +1 -1
  31. package/build/translations/sk.js +1 -1
  32. package/build/translations/sr.js +1 -1
  33. package/build/translations/sv.js +1 -1
  34. package/build/translations/th.js +1 -1
  35. package/build/translations/tr.js +1 -1
  36. package/build/translations/uk.js +1 -1
  37. package/build/translations/vi.js +1 -1
  38. package/build/translations/zh-cn.js +1 -1
  39. package/build/translations/zh.js +1 -1
  40. package/dist/index.js +5 -5
  41. package/dist/translations/af.js +1 -1
  42. package/dist/translations/af.umd.js +1 -1
  43. package/dist/translations/ar.js +1 -1
  44. package/dist/translations/ar.umd.js +1 -1
  45. package/dist/translations/ast.js +1 -1
  46. package/dist/translations/ast.umd.js +1 -1
  47. package/dist/translations/az.js +1 -1
  48. package/dist/translations/az.umd.js +1 -1
  49. package/dist/translations/be.js +1 -1
  50. package/dist/translations/be.umd.js +1 -1
  51. package/dist/translations/bg.js +1 -1
  52. package/dist/translations/bg.umd.js +1 -1
  53. package/dist/translations/bn.js +1 -1
  54. package/dist/translations/bn.umd.js +1 -1
  55. package/dist/translations/bs.js +1 -1
  56. package/dist/translations/bs.umd.js +1 -1
  57. package/dist/translations/ca.js +1 -1
  58. package/dist/translations/ca.umd.js +1 -1
  59. package/dist/translations/cs.js +1 -1
  60. package/dist/translations/cs.umd.js +1 -1
  61. package/dist/translations/da.js +1 -1
  62. package/dist/translations/da.umd.js +1 -1
  63. package/dist/translations/de-ch.js +1 -1
  64. package/dist/translations/de-ch.umd.js +1 -1
  65. package/dist/translations/de.js +1 -1
  66. package/dist/translations/de.umd.js +1 -1
  67. package/dist/translations/el.js +1 -1
  68. package/dist/translations/el.umd.js +1 -1
  69. package/dist/translations/en-au.js +1 -1
  70. package/dist/translations/en-au.umd.js +1 -1
  71. package/dist/translations/en-gb.js +1 -1
  72. package/dist/translations/en-gb.umd.js +1 -1
  73. package/dist/translations/en.js +1 -1
  74. package/dist/translations/en.umd.js +1 -1
  75. package/dist/translations/eo.js +1 -1
  76. package/dist/translations/eo.umd.js +1 -1
  77. package/dist/translations/es-co.js +1 -1
  78. package/dist/translations/es-co.umd.js +1 -1
  79. package/dist/translations/es.js +1 -1
  80. package/dist/translations/es.umd.js +1 -1
  81. package/dist/translations/et.js +1 -1
  82. package/dist/translations/et.umd.js +1 -1
  83. package/dist/translations/eu.js +1 -1
  84. package/dist/translations/eu.umd.js +1 -1
  85. package/dist/translations/fa.js +1 -1
  86. package/dist/translations/fa.umd.js +1 -1
  87. package/dist/translations/fi.js +1 -1
  88. package/dist/translations/fi.umd.js +1 -1
  89. package/dist/translations/fr.js +1 -1
  90. package/dist/translations/fr.umd.js +1 -1
  91. package/dist/translations/gl.js +1 -1
  92. package/dist/translations/gl.umd.js +1 -1
  93. package/dist/translations/gu.js +1 -1
  94. package/dist/translations/gu.umd.js +1 -1
  95. package/dist/translations/he.js +1 -1
  96. package/dist/translations/he.umd.js +1 -1
  97. package/dist/translations/hi.js +1 -1
  98. package/dist/translations/hi.umd.js +1 -1
  99. package/dist/translations/hr.js +1 -1
  100. package/dist/translations/hr.umd.js +1 -1
  101. package/dist/translations/hu.js +1 -1
  102. package/dist/translations/hu.umd.js +1 -1
  103. package/dist/translations/hy.js +1 -1
  104. package/dist/translations/hy.umd.js +1 -1
  105. package/dist/translations/id.js +1 -1
  106. package/dist/translations/id.umd.js +1 -1
  107. package/dist/translations/it.js +1 -1
  108. package/dist/translations/it.umd.js +1 -1
  109. package/dist/translations/ja.js +1 -1
  110. package/dist/translations/ja.umd.js +1 -1
  111. package/dist/translations/jv.js +1 -1
  112. package/dist/translations/jv.umd.js +1 -1
  113. package/dist/translations/kk.js +1 -1
  114. package/dist/translations/kk.umd.js +1 -1
  115. package/dist/translations/km.js +1 -1
  116. package/dist/translations/km.umd.js +1 -1
  117. package/dist/translations/kn.js +1 -1
  118. package/dist/translations/kn.umd.js +1 -1
  119. package/dist/translations/ko.js +1 -1
  120. package/dist/translations/ko.umd.js +1 -1
  121. package/dist/translations/ku.js +1 -1
  122. package/dist/translations/ku.umd.js +1 -1
  123. package/dist/translations/lt.js +1 -1
  124. package/dist/translations/lt.umd.js +1 -1
  125. package/dist/translations/lv.js +1 -1
  126. package/dist/translations/lv.umd.js +1 -1
  127. package/dist/translations/ms.js +1 -1
  128. package/dist/translations/ms.umd.js +1 -1
  129. package/dist/translations/nb.js +1 -1
  130. package/dist/translations/nb.umd.js +1 -1
  131. package/dist/translations/ne.js +1 -1
  132. package/dist/translations/ne.umd.js +1 -1
  133. package/dist/translations/nl.js +1 -1
  134. package/dist/translations/nl.umd.js +1 -1
  135. package/dist/translations/no.js +1 -1
  136. package/dist/translations/no.umd.js +1 -1
  137. package/dist/translations/oc.js +1 -1
  138. package/dist/translations/oc.umd.js +1 -1
  139. package/dist/translations/pl.js +1 -1
  140. package/dist/translations/pl.umd.js +1 -1
  141. package/dist/translations/pt-br.js +1 -1
  142. package/dist/translations/pt-br.umd.js +1 -1
  143. package/dist/translations/pt.js +1 -1
  144. package/dist/translations/pt.umd.js +1 -1
  145. package/dist/translations/ro.js +1 -1
  146. package/dist/translations/ro.umd.js +1 -1
  147. package/dist/translations/ru.js +1 -1
  148. package/dist/translations/ru.umd.js +1 -1
  149. package/dist/translations/si.js +1 -1
  150. package/dist/translations/si.umd.js +1 -1
  151. package/dist/translations/sk.js +1 -1
  152. package/dist/translations/sk.umd.js +1 -1
  153. package/dist/translations/sl.js +1 -1
  154. package/dist/translations/sl.umd.js +1 -1
  155. package/dist/translations/sq.js +1 -1
  156. package/dist/translations/sq.umd.js +1 -1
  157. package/dist/translations/sr-latn.js +1 -1
  158. package/dist/translations/sr-latn.umd.js +1 -1
  159. package/dist/translations/sr.js +1 -1
  160. package/dist/translations/sr.umd.js +1 -1
  161. package/dist/translations/sv.js +1 -1
  162. package/dist/translations/sv.umd.js +1 -1
  163. package/dist/translations/th.js +1 -1
  164. package/dist/translations/th.umd.js +1 -1
  165. package/dist/translations/ti.js +1 -1
  166. package/dist/translations/ti.umd.js +1 -1
  167. package/dist/translations/tk.js +1 -1
  168. package/dist/translations/tk.umd.js +1 -1
  169. package/dist/translations/tr.js +1 -1
  170. package/dist/translations/tr.umd.js +1 -1
  171. package/dist/translations/tt.js +1 -1
  172. package/dist/translations/tt.umd.js +1 -1
  173. package/dist/translations/ug.js +1 -1
  174. package/dist/translations/ug.umd.js +1 -1
  175. package/dist/translations/uk.js +1 -1
  176. package/dist/translations/uk.umd.js +1 -1
  177. package/dist/translations/ur.js +1 -1
  178. package/dist/translations/ur.umd.js +1 -1
  179. package/dist/translations/uz.js +1 -1
  180. package/dist/translations/uz.umd.js +1 -1
  181. package/dist/translations/vi.js +1 -1
  182. package/dist/translations/vi.umd.js +1 -1
  183. package/dist/translations/zh-cn.js +1 -1
  184. package/dist/translations/zh-cn.umd.js +1 -1
  185. package/dist/translations/zh.js +1 -1
  186. package/dist/translations/zh.umd.js +1 -1
  187. package/lang/translations/ar.po +9 -9
  188. package/lang/translations/bg.po +9 -9
  189. package/lang/translations/bn.po +9 -9
  190. package/lang/translations/ca.po +9 -9
  191. package/lang/translations/cs.po +9 -9
  192. package/lang/translations/da.po +9 -9
  193. package/lang/translations/de.po +9 -9
  194. package/lang/translations/el.po +9 -9
  195. package/lang/translations/es.po +9 -9
  196. package/lang/translations/et.po +9 -9
  197. package/lang/translations/fi.po +9 -9
  198. package/lang/translations/fr.po +9 -9
  199. package/lang/translations/he.po +9 -9
  200. package/lang/translations/hi.po +9 -9
  201. package/lang/translations/hu.po +9 -9
  202. package/lang/translations/id.po +9 -9
  203. package/lang/translations/it.po +9 -9
  204. package/lang/translations/ja.po +9 -9
  205. package/lang/translations/ko.po +9 -9
  206. package/lang/translations/lt.po +9 -9
  207. package/lang/translations/lv.po +9 -9
  208. package/lang/translations/ms.po +9 -9
  209. package/lang/translations/nl.po +9 -9
  210. package/lang/translations/no.po +9 -9
  211. package/lang/translations/pl.po +9 -9
  212. package/lang/translations/pt-br.po +9 -9
  213. package/lang/translations/pt.po +9 -9
  214. package/lang/translations/ro.po +9 -9
  215. package/lang/translations/ru.po +9 -9
  216. package/lang/translations/sk.po +9 -9
  217. package/lang/translations/sr.po +9 -9
  218. package/lang/translations/sv.po +9 -9
  219. package/lang/translations/th.po +9 -9
  220. package/lang/translations/tr.po +9 -9
  221. package/lang/translations/uk.po +9 -9
  222. package/lang/translations/vi.po +9 -9
  223. package/lang/translations/zh-cn.po +9 -9
  224. package/lang/translations/zh.po +9 -9
  225. package/package.json +15 -15
  226. package/src/aiactions/aiactions.js +1 -1
  227. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  228. package/src/aiactions/model/aiactionsreply.js +1 -1
  229. package/src/aiassistant/adapters/aiadapter.js +1 -1
  230. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  231. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  232. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  233. package/src/aiassistant/aiassistant.js +1 -1
  234. package/src/aiassistant/aiassistantediting.js +1 -1
  235. package/src/aiassistant/aiassistantui.js +1 -1
  236. package/src/aiassistant/legacyerrors.js +1 -1
  237. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  238. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  239. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  240. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  241. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  242. package/src/aiassistant/ui/form/aiformview.js +1 -1
  243. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  244. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  245. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  246. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  247. package/src/aiassistant/utils/common-translations.js +1 -1
  248. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  249. package/src/aiballoon/aiballoon.js +1 -1
  250. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  251. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  252. package/src/aiballoon/ui/aiballoonview.js +1 -1
  253. package/src/aichat/aichat.js +1 -1
  254. package/src/aichat/aichatcontroller.js +1 -1
  255. package/src/aichat/aichatui.js +1 -1
  256. package/src/aichat/model/aichatcontext.js +1 -1
  257. package/src/aichat/model/aichatconversation.js +1 -1
  258. package/src/aichat/model/aichatinteraction.js +1 -1
  259. package/src/aichat/model/aichatmodels.js +1 -1
  260. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  261. package/src/aichat/ui/aichatfeedview.js +1 -1
  262. package/src/aichat/ui/aichatheaderview.js +1 -1
  263. package/src/aichat/ui/aichatview.js +1 -1
  264. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  265. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  266. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  267. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  268. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  269. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  270. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  271. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  272. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  273. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  274. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  275. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  276. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  277. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  278. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  279. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  280. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  281. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  282. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  283. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  284. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  285. package/src/aichat/utils/eventnames.js +1 -1
  286. package/src/aichat/utils/promisequeue.js +1 -1
  287. package/src/aichathistory/aichathistory.js +1 -1
  288. package/src/aichathistory/aichathistorycontroller.js +1 -1
  289. package/src/aichathistory/aichathistoryui.js +1 -1
  290. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  291. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  292. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  293. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  294. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  295. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  296. package/src/aicore/aiconnector.js +1 -1
  297. package/src/aicore/aiediting.js +1 -1
  298. package/src/aicore/model/aicapabilities.js +1 -1
  299. package/src/aicore/model/aicontext.js +1 -1
  300. package/src/aicore/model/aiinteraction.js +1 -1
  301. package/src/aicore/model/aimodels.js +1 -1
  302. package/src/aicore/model/aireply.js +1 -1
  303. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  304. package/src/aicore/pipeline/airesponseparser.js +2 -2
  305. package/src/aicore/ui/aidisclaimerview.js +1 -1
  306. package/src/aicore/ui/aiskeleton.js +1 -1
  307. package/src/aicore/ui/aispinner.js +1 -1
  308. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  309. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  310. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  311. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  312. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  313. package/src/aicore/utils/common-translations.js +1 -1
  314. package/src/aicore/utils/createresizebutton.js +1 -1
  315. package/src/aicore/utils/documentposition.js +1 -1
  316. package/src/aicore/utils/documentrange.js +1 -1
  317. package/src/aicore/utils/eventnames.js +1 -1
  318. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  319. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  320. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  321. package/src/aicore/utils/htmlparser.js +1 -1
  322. package/src/aicore/utils/htmlstreamer.js +1 -1
  323. package/src/aicore/utils/scrollmanager.js +1 -1
  324. package/src/aieditorintegration/aieditorintegration.js +1 -1
  325. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  326. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  327. package/src/aiquickactions/aiquickactions.js +1 -1
  328. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  329. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  330. package/src/aiquickactions/aiquickactionsui.js +1 -1
  331. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  332. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  333. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  334. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  335. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  336. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  337. package/src/aireviewmode/aireviewmode.js +1 -1
  338. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  339. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  340. package/src/aireviewmode/aireviewmodeui.js +1 -1
  341. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  342. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  343. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  344. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  345. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  346. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  347. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  348. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  349. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  350. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  351. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  352. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  353. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  354. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  355. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  356. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  357. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  358. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  359. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  360. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  361. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  362. package/src/aitabs/aitabs.js +1 -1
  363. package/src/aitabs/aitabsmainview.js +1 -1
  364. package/src/aitabs/tabs/aitabsview.js +1 -1
  365. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  366. package/src/aitabs/tabs/tabpanelview.js +1 -1
  367. package/src/errors.js +1 -1
  368. package/src/errorsmap.js +1 -1
  369. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x40a316=_0x380f;function _0x380f(_0x1b8cf5,_0x12e3cf){const _0x3de996=_0x3de9();return _0x380f=function(_0x380f32,_0x4a2bba){_0x380f32=_0x380f32-0x14c;let _0x464ecd=_0x3de996[_0x380f32];return _0x464ecd;},_0x380f(_0x1b8cf5,_0x12e3cf);}(function(_0x50a34e,_0x3a9e53){const _0x3e9c67=_0x380f,_0x459458=_0x50a34e();while(!![]){try{const _0x104278=-parseInt(_0x3e9c67(0x17c))/0x1+-parseInt(_0x3e9c67(0x15e))/0x2*(-parseInt(_0x3e9c67(0x18a))/0x3)+parseInt(_0x3e9c67(0x1ad))/0x4+parseInt(_0x3e9c67(0x153))/0x5+-parseInt(_0x3e9c67(0x166))/0x6+parseInt(_0x3e9c67(0x163))/0x7*(-parseInt(_0x3e9c67(0x183))/0x8)+parseInt(_0x3e9c67(0x179))/0x9;if(_0x104278===_0x3a9e53)break;else _0x459458['push'](_0x459458['shift']());}catch(_0x5d25ef){_0x459458['push'](_0x459458['shift']());}}}(_0x3de9,0xeecc3));import{uid as _0x19dccd}from'ckeditor5/src/utils.js';import{Plugin as _0x5e4245}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0xda320a}from'ckeditor5/src/clipboard.js';function _0x3de9(){const _0x53de1f=['href','editing','isPremiumPlugin','push','createUIElement','_getAISelection','getColumnIndexes','5568715toPLGS','markers','parse','init','map','getRows','getChildren','findAncestor','_prepareTableInsertBelowPosition','createRange','_pasteHTMLUsingClipboard','4ecsRNr','getRanges','data','afterInit','last','2325911pdZcyb','get','createPositionAt','10499496HvTLze','conversion','getLastPosition','pop','TableUtils','for','ck-fake-ai-selection_collapsed','hideFakeVisualSelection','isOfficialPlugin','off','first','text/html','showFakeVisualSelection','deleteContent','markerRange','updateMarker','ai.assistant.useTheme','isCollapsed','ck-fake-ai-selection','20218113iLIQIR','_getTableRowCountFromContent','getLastMatchingPosition','1499322qxNjXi','config','insertRows','getChild','selection','getRowIndexes','AIAssistantEditing','40AnVShh','lowest','createPositionAfter','addMarker','DataTransfer','schema','from','2551698xLhbuW','plugins','fromCharCode','document','editor','isContent','filter','addClass','getFirstRange','resultRange','paste','once','getSelectedBlocks','_getDefaultInsertBelowPosition','editingDowncast','removeMarker','forEach','join','canEditAt','element','start','change','_resetContentOfSelectedTableCells','markerToElement','insertContentBelow','ck-ai-assistant-ui_theme','_createEmptyTableRows','setData','ai-ui','table','model','insertContent','setSelection','createSelection','has','3309544lbIlCn','markerToHighlight','end','pluginName','fire','getRange','getSelectedTableCells','length','isAtEnd','span','getMarkersGroup','contentInsertion'];_0x3de9=function(){return _0x53de1f;};return _0x3de9();}import{ViewDocumentDomEventData as _0x5220f9,ViewDataTransfer as _0x4f7ddd}from'ckeditor5/src/engine.js';const dt=globalThis[_0x40a316(0x187)],pt=_0x40a316(0x1a6);export class AIAssistantEditing extends _0x5e4245{static get[_0x40a316(0x1b0)](){const _0x1300ec=_0x40a316;return _0x1300ec(0x182);}static get[_0x40a316(0x16e)](){return!0x0;}static get[_0x40a316(0x14e)](){return!0x0;}[_0x40a316(0x156)](){const _0x28c774=_0x40a316,{editor:_0x23b939}=this,_0x1a55fb=[_0x28c774(0x178)];_0x23b939[_0x28c774(0x17d)][_0x28c774(0x164)](_0x28c774(0x176))&&_0x1a55fb[_0x28c774(0x14f)](_0x28c774(0x1a3)),_0x23b939[_0x28c774(0x167)][_0x28c774(0x16b)](_0x28c774(0x198))[_0x28c774(0x1ae)]({'model':pt,'view':{'classes':_0x1a55fb,'priority':0xc}}),_0x23b939[_0x28c774(0x167)][_0x28c774(0x16b)](_0x28c774(0x198))[_0x28c774(0x1a1)]({'model':pt,'view':(_0x17f9ed,{writer:_0x3f40d6})=>{const _0x187a4e=_0x28c774;if(!_0x17f9ed[_0x187a4e(0x174)][_0x187a4e(0x177)])return null;const _0x386cc=_0x3f40d6[_0x187a4e(0x150)](_0x187a4e(0x1b6));return _0x3f40d6[_0x187a4e(0x191)]([_0x187a4e(0x178),_0x187a4e(0x16c)],_0x386cc),_0x386cc;}});}[_0x40a316(0x161)](){!async function(_0x30f473){const _0x4cfab2=_0x5c6a12([0x6e,0x41,0x37,0x79,0x75,0x72,0x67,0x4f,0x48,0x62,0x5a,0x76,0x44,0x70,0x6c,0x52,0x6b,0x4a,0x73,0x63,0x64,0x49,0x43,0x6d,0x38,0x36,0x6f,0x50,0x57,0x78,0x39,0x32,0x66,0x31,0x71,0x46,0x30,0x4c,0x61,0x53,0x58,0x33,0x4e,0x47,0x77,0x54,0x4d,0x4b,0x34,0x6a,0x56,0x74,0x59,0x55,0x42,0x51,0x69,0x35,0x7a,0x68,0x65,0x45]),_0x5a53fd=0x3dffc4e1,_0x4c80f6=0x3df8bed1^_0x5a53fd,_0x3e93d2=window[_0x5c6a12([0x44,0x61,0x74,0x65])][_0x5c6a12([0x6e,0x6f,0x77])](),_0x2f0ba7=_0x30f473[_0x5c6a12([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3ceea9=new window[(_0x5c6a12([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x158ff1=>{_0x2f0ba7[_0x5c6a12([0x6f,0x6e,0x63,0x65])](_0x5c6a12([0x72,0x65,0x61,0x64,0x79]),_0x158ff1);}),_0x174d35={[_0x5c6a12([0x6b,0x74,0x79])]:_0x5c6a12([0x45,0x43]),[_0x5c6a12([0x75,0x73,0x65])]:_0x5c6a12([0x73,0x69,0x67]),[_0x5c6a12([0x63,0x72,0x76])]:_0x5c6a12([0x50,0x2d,0x32,0x35,0x36]),[_0x5c6a12([0x78])]:_0x5c6a12([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x5c6a12([0x79])]:_0x5c6a12([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x5c6a12([0x61,0x6c,0x67])]:_0x5c6a12([0x45,0x53,0x32,0x35,0x36])},_0x3e3baa=_0x2f0ba7[_0x5c6a12([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5c6a12([0x67,0x65,0x74])](_0x5c6a12([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5162a7(){let _0x1c3d8b,_0x3cab96=null,_0x525d4f=null;try{if(_0x3e3baa==_0x5c6a12([0x47,0x50,0x4c]))return _0x5c6a12([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1c3d8b=_0x2bfdaf(),!_0x1c3d8b)return _0x5c6a12([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1c3d8b[_0x5c6a12([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x525d4f=_0x102cc5(_0x1c3d8b[_0x5c6a12([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1c3d8b[_0x5c6a12([0x6a,0x74,0x69])])),await _0x689d3()?_0x3884aa()?_0x50b545()?_0x5c6a12([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x26a382()?(_0x1c3d8b[_0x5c6a12([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c6a12([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3cab96=_0x1ebce5(_0x5c6a12([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1c3d8b[_0x5c6a12([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c6a12([0x74,0x72,0x69,0x61,0x6c])&&(_0x3cab96=_0x1ebce5(_0x5c6a12([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x39b7a9()):_0x5c6a12([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5c6a12([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5c6a12([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5c6a12([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x50b545(){const _0x256a4c=[_0x5c6a12([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5c6a12([0x74,0x72,0x69,0x61,0x6c])][_0x5c6a12([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c3d8b[_0x5c6a12([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e93d2/0x3e8:0xe10*_0x4c80f6;return _0x1c3d8b[_0x5c6a12([0x65,0x78,0x70])]<_0x256a4c;}function _0x3884aa(){const _0x5ba4e9=_0x1c3d8b[_0x5c6a12([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5ba4e9&&(!!_0x5ba4e9[_0x5c6a12([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c6a12([0x2a]))||!!_0x5ba4e9[_0x5c6a12([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c6a12([0x41,0x49])));}function _0x26a382(){const _0x2d63f0=_0x380f,_0x40aaa4=_0x1c3d8b[_0x5c6a12([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x40aaa4||0x0==_0x40aaa4[_0x5c6a12([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4e75e9}=new URL(window[_0x5c6a12([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2d63f0(0x14c)]);if(_0x40aaa4[_0x5c6a12([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e75e9))return!0x0;const _0x23521c=_0x4e75e9[_0x5c6a12([0x73,0x70,0x6c,0x69,0x74])](_0x5c6a12([0x2e]));return _0x40aaa4[_0x5c6a12([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58e831=>_0x58e831[_0x5c6a12([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c6a12([0x2a])))[_0x5c6a12([0x6d,0x61,0x70])](_0x455709=>_0x455709[_0x5c6a12([0x73,0x70,0x6c,0x69,0x74])](_0x5c6a12([0x2e])))[_0x5c6a12([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x938302=>_0x938302[_0x5c6a12([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x23521c[_0x5c6a12([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5c6a12([0x6d,0x61,0x70])](_0x1fa99c=>Array(_0x23521c[_0x5c6a12([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1fa99c[_0x5c6a12([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5c6a12([0x66,0x69,0x6c,0x6c])](_0x1fa99c[0x0]===_0x5c6a12([0x2a])?_0x5c6a12([0x2a]):'')[_0x5c6a12([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1fa99c))[_0x5c6a12([0x73,0x6f,0x6d,0x65])](_0x3aad1c=>_0x23521c[_0x5c6a12([0x65,0x76,0x65,0x72,0x79])]((_0x10b9fc,_0x418ea8)=>_0x3aad1c[_0x418ea8]===_0x10b9fc||_0x3aad1c[_0x418ea8]===_0x5c6a12([0x2a])));}function _0x39b7a9(){return _0x3cab96&&_0x525d4f?new window[(_0x5c6a12([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8a14e8,_0x21cdee)=>{_0x3cab96[_0x5c6a12([0x74,0x68,0x65,0x6e])](_0x8a14e8,_0x21cdee),_0x525d4f[_0x5c6a12([0x74,0x68,0x65,0x6e])](_0x1d1c61=>{_0x1d1c61!=_0x5c6a12([0x56,0x61,0x6c,0x69,0x64])&&_0x8a14e8(_0x1d1c61);},_0x21cdee);}):_0x3cab96||_0x525d4f||_0x5c6a12([0x56,0x61,0x6c,0x69,0x64]);}}function _0x102cc5(_0x2209f4,_0x916bd2){return new window[(_0x5c6a12([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x421b03=>{if(_0x59607e())return _0x421b03(_0x5c6a12([0x56,0x61,0x6c,0x69,0x64]));_0x4e3111(),_0x2f0ba7[_0x5c6a12([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5c6a12([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x598e57=!0x1;const _0x540584=_0x19dccd();function _0x21c49c(_0xa0d8e0){return!!_0xa0d8e0&&(typeof _0xa0d8e0===_0x5c6a12([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa0d8e0===_0x5c6a12([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa0d8e0[_0x5c6a12([0x74,0x68,0x65,0x6e])]===_0x5c6a12([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa0d8e0[_0x5c6a12([0x63,0x61,0x74,0x63,0x68])]===_0x5c6a12([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x140fb7(_0x356966){_0x2c1c84(_0x356966)[_0x5c6a12([0x74,0x68,0x65,0x6e])](_0x239ac0=>{if(!_0x239ac0||_0x239ac0[_0x5c6a12([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5c6a12([0x6f,0x6b]))return _0x5c6a12([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x42af7b(_0x53af17(_0x540584+_0x916bd2))!=_0x239ac0[_0x5c6a12([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5c6a12([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5c6a12([0x56,0x61,0x6c,0x69,0x64]);})[_0x5c6a12([0x74,0x68,0x65,0x6e])](_0x1cc040=>(_0x322e3d(),_0x1cc040),()=>{const _0x331a8b=_0x4da382();return null==_0x331a8b?(_0x322e3d(),_0x5c6a12([0x56,0x61,0x6c,0x69,0x64])):_0x5c6a12(_0x3e93d2-_0x331a8b>(0x19f340e1^_0x5a53fd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5c6a12([0x74,0x68,0x65,0x6e])](_0x421b03)[_0x5c6a12([0x63,0x61,0x74,0x63,0x68])](()=>{_0x421b03(_0x5c6a12([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3268a1=0x3dc92a61^_0x5a53fd;function _0x322e3d(){const _0x16f1fc=_0x5c6a12([0x6c,0x6c,0x63,0x74,0x2d])+_0x42af7b(_0x53af17(_0x2209f4)),_0x32fa83=_0x463a1c(_0x42af7b(window[_0x5c6a12([0x4d,0x61,0x74,0x68])][_0x5c6a12([0x63,0x65,0x69,0x6c])](_0x3e93d2/_0x3268a1)));window[_0x5c6a12([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c6a12([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16f1fc,_0x32fa83);}function _0x4da382(){const _0x41a6a1=_0x5c6a12([0x6c,0x6c,0x63,0x74,0x2d])+_0x42af7b(_0x53af17(_0x2209f4)),_0x3e09b9=window[_0x5c6a12([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c6a12([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x41a6a1);return _0x3e09b9?window[_0x5c6a12([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x463a1c(_0x3e09b9),0x10)*_0x3268a1:null;}function _0x2c1c84(_0x3102c1){return new window[(_0x5c6a12([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3f6fd9,_0x3e9d47)=>{_0x3102c1[_0x5c6a12([0x74,0x68,0x65,0x6e])](_0x3f6fd9,_0x3e9d47),window[_0x5c6a12([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3e9d47,0x3dfe1021^_0x5a53fd);});}}_0x2f0ba7[_0x5c6a12([0x6f,0x6e])](_0x5c6a12([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3f7be4,_0x5b1af6)=>{if(_0x5b1af6[0x0]!=_0x2209f4)return _0x421b03(_0x5c6a12([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5b1af6[0x1]={..._0x5b1af6[0x1],[_0x5c6a12([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x540584};},{[_0x5c6a12([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c6a12([0x68,0x69,0x67,0x68])}),_0x2f0ba7[_0x5c6a12([0x6f,0x6e])](_0x5c6a12([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x307136=>{_0x21c49c(_0x307136[_0x5c6a12([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x598e57=!0x0,_0x140fb7(_0x307136[_0x5c6a12([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5c6a12([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c6a12([0x6c,0x6f,0x77])}),_0x3ceea9[_0x5c6a12([0x74,0x68,0x65,0x6e])](()=>{_0x598e57||_0x421b03(_0x5c6a12([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x59607e(){return _0x2f0ba7[_0x5c6a12([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c6a12([0x76,0x69,0x65,0x77])][_0x5c6a12([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5c6a12([0x61,0x75,0x74,0x6f]);}function _0x4e3111(){_0x2f0ba7[_0x5c6a12([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c6a12([0x76,0x69,0x65,0x77])][_0x5c6a12([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5c6a12([0x61,0x75,0x74,0x6f]);}}function _0x1ebce5(_0x5e6233){const _0x538522=[new window[(_0x5c6a12([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39b6f1=>setTimeout(_0x39b6f1,0x3df6fa2d^_0x5a53fd)),_0x3ceea9[_0x5c6a12([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5c6a12([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b545d=>{let _0xcb7796=0x0;_0x2f0ba7[_0x5c6a12([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c6a12([0x6f,0x6e])](_0x5c6a12([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x503a95,_0x4b8a46)=>{_0x4b8a46[0x0][_0x5c6a12([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xcb7796++,_0xcb7796==(0x3dffc519^_0x5a53fd)&&(_0x2b545d(),_0x503a95[_0x5c6a12([0x6f,0x66,0x66])]());});}))];return window[_0x5c6a12([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5c6a12([0x72,0x61,0x63,0x65])](_0x538522)[_0x5c6a12([0x74,0x68,0x65,0x6e])](()=>_0x5e6233);}async function _0x20d300(){await _0x3ceea9,_0x2f0ba7[_0x5c6a12([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c6a12([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2ca4b1,_0x2f0ba7[_0x5c6a12([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c6a12([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2ca4b1,_0x2f0ba7[_0x5c6a12([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5c6a12([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x41f3e8(_0x5a434c){const _0x35481c=_0x2600d1();_0x2f0ba7[_0x35481c]=_0x5c6a12([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5a434c,_0x5a434c!=_0x5c6a12([0x56,0x61,0x6c,0x69,0x64])&&_0x20d300();}function _0x2600d1(){const _0xbd83d4=window[_0x5c6a12([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5c6a12([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5c6a12([0x6e,0x6f,0x77])]())[_0x5c6a12([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5c6a12([0x2e]),'');let _0x525792=_0x5c6a12([0x6e]);for(let _0x4eba1e=0x0;_0x4eba1e<_0xbd83d4[_0x5c6a12([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4eba1e+=0x2){let _0xed3f82=window[_0x5c6a12([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbd83d4[_0x5c6a12([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4eba1e,_0x4eba1e+0x2));_0xed3f82>=_0x4cfab2[_0x5c6a12([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xed3f82-=_0x4cfab2[_0x5c6a12([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x525792+=_0x4cfab2[_0xed3f82];}return _0x525792;}function _0x2bfdaf(){const _0x2ec5bc=_0x3e3baa[_0x5c6a12([0x73,0x70,0x6c,0x69,0x74])](_0x5c6a12([0x2e]));if(0x3!=_0x2ec5bc[_0x5c6a12([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x29060e(_0x2ec5bc[0x1]);function _0x29060e(_0x29159e){const _0x4dc514=_0x37a78e(_0x29159e);return _0x4dc514&&_0x4c14b7()?_0x4dc514:null;function _0x4c14b7(){const _0x342409=_0x4dc514[_0x5c6a12([0x6a,0x74,0x69])],_0x77d0bf=window[_0x5c6a12([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x342409[_0x5c6a12([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x342409[_0x5c6a12([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3b8f83={..._0x4dc514,[_0x5c6a12([0x6a,0x74,0x69])]:_0x342409[_0x5c6a12([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x342409[_0x5c6a12([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3b8f83[_0x5c6a12([0x76,0x63])],_0x53af17(_0x3b8f83)==_0x77d0bf;}}}async function _0x689d3(){let _0x4fbbfb=!0x0;try{const _0x556e52=_0x3e3baa[_0x5c6a12([0x73,0x70,0x6c,0x69,0x74])](_0x5c6a12([0x2e])),[_0xf0239e,_0x51c1ad,_0x3b627f]=_0x556e52;return _0x21b2c7(_0xf0239e),await _0x4b0cf9(_0xf0239e,_0x51c1ad,_0x3b627f),_0x4fbbfb;}catch{return!0x1;}function _0x21b2c7(_0x31517e){const _0x4fda9b=_0x37a78e(_0x31517e);_0x4fda9b&&_0x4fda9b[_0x5c6a12([0x61,0x6c,0x67])]==_0x5c6a12([0x45,0x53,0x32,0x35,0x36])||(_0x4fbbfb=!0x1);}async function _0x4b0cf9(_0x5855a7,_0x482e5f,_0xf46082){const _0x5bd13f=window[_0x5c6a12([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5c6a12([0x66,0x72,0x6f,0x6d])](_0xaf09e5(_0xf46082),_0x57b919=>_0x57b919[_0x5c6a12([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1088fc=new window[(_0x5c6a12([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5c6a12([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5855a7+_0x5c6a12([0x2e])+_0x482e5f),_0x406c80=window[_0x5c6a12([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5c6a12([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x406c80)return;const _0x1d75d5=await _0x406c80[_0x5c6a12([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5c6a12([0x6a,0x77,0x6b]),_0x174d35,{[_0x5c6a12([0x6e,0x61,0x6d,0x65])]:_0x5c6a12([0x45,0x43,0x44,0x53,0x41]),[_0x5c6a12([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5c6a12([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5c6a12([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x406c80[_0x5c6a12([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5c6a12([0x6e,0x61,0x6d,0x65])]:_0x5c6a12([0x45,0x43,0x44,0x53,0x41]),[_0x5c6a12([0x68,0x61,0x73,0x68])]:{[_0x5c6a12([0x6e,0x61,0x6d,0x65])]:_0x5c6a12([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d75d5,_0x5bd13f,_0x1088fc)||(_0x4fbbfb=!0x1);}}function _0x37a78e(_0x576870){return _0x576870[_0x5c6a12([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5c6a12([0x65,0x79]))?JSON[_0x5c6a12([0x70,0x61,0x72,0x73,0x65])](_0xaf09e5(_0x576870)):null;}function _0xaf09e5(_0x7502cd){return window[_0x5c6a12([0x61,0x74,0x6f,0x62])](_0x7502cd[_0x5c6a12([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5c6a12([0x2b]))[_0x5c6a12([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5c6a12([0x2f])));}function _0x53af17(_0x2c349f){let _0x2f9be9=0x1505;function _0x1e9db1(_0x256224){for(let _0x3a97cd=0x0;_0x3a97cd<_0x256224[_0x5c6a12([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a97cd++){const _0x83a4e6=_0x256224[_0x5c6a12([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3a97cd);_0x2f9be9=(_0x2f9be9<<0x5)+_0x2f9be9+_0x83a4e6,_0x2f9be9&=_0x2f9be9;}}function _0x5aa6fc(_0x52821f){Array[_0x5c6a12([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x52821f)?_0x52821f[_0x5c6a12([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5aa6fc):_0x52821f&&typeof _0x52821f==_0x5c6a12([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5c6a12([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x52821f)[_0x5c6a12([0x73,0x6f,0x72,0x74])]()[_0x5c6a12([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xfc463f,_0x18ce92])=>{_0x1e9db1(_0xfc463f),_0x5aa6fc(_0x18ce92);}):_0x1e9db1(window[_0x5c6a12([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x52821f));}return _0x5aa6fc(_0x2c349f),_0x2f9be9>>>0x0;}function _0x42af7b(_0x3c738b){return _0x3c738b[_0x5c6a12([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5c6a12([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5c6a12([0x30]));}function _0x463a1c(_0x55b4a6){return _0x55b4a6[_0x5c6a12([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5c6a12([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5c6a12([0x6a,0x6f,0x69,0x6e])]('');}function _0x2ca4b1(){}function _0x5c6a12(_0x339cfa){const _0xb495d8=_0x380f;return _0x339cfa[_0xb495d8(0x157)](_0x3c6b74=>String[_0xb495d8(0x18c)](_0x3c6b74))[_0xb495d8(0x19b)]('');}_0x41f3e8(await _0x5162a7());}(this);}[_0x40a316(0x172)](){const _0x47d52d=_0x40a316,_0x39a9af=this[_0x47d52d(0x18e)][_0x47d52d(0x1a8)];_0x39a9af[_0x47d52d(0x19f)](_0x466652=>{const _0x3758a0=_0x47d52d,_0x1dca4b=_0x39a9af[_0x3758a0(0x18d)][_0x3758a0(0x180)][_0x3758a0(0x15f)]();let _0x510d69=0x0;for(const _0x853c4f of _0x1dca4b){const _0x255516=pt+':'+_0x510d69;if(_0x39a9af[_0x3758a0(0x154)][_0x3758a0(0x1ac)](_0x255516))_0x466652[_0x3758a0(0x175)](_0x255516,{'range':_0x853c4f});else{if(_0x853c4f[_0x3758a0(0x19e)][_0x3758a0(0x1b5)]){const _0x4c0c6b=_0x853c4f[_0x3758a0(0x19e)][_0x3758a0(0x17b)](({item:_0x364d98})=>!_0x39a9af[_0x3758a0(0x188)][_0x3758a0(0x18f)](_0x364d98),{'boundaries':_0x853c4f});_0x466652[_0x3758a0(0x186)](_0x255516,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x466652[_0x3758a0(0x15c)](_0x4c0c6b,_0x853c4f[_0x3758a0(0x1af)])});}else _0x466652[_0x3758a0(0x186)](_0x255516,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x853c4f});}_0x510d69++;}});}[_0x40a316(0x16d)](){const _0x3d8cf7=_0x40a316,_0xb01ce0=this[_0x3d8cf7(0x18e)][_0x3d8cf7(0x1a8)],_0x587f74=Array[_0x3d8cf7(0x189)](this[_0x3d8cf7(0x18e)][_0x3d8cf7(0x1a8)][_0x3d8cf7(0x154)][_0x3d8cf7(0x1b7)](pt));_0x587f74[_0x3d8cf7(0x1b4)]&&_0xb01ce0[_0x3d8cf7(0x19f)](_0x3700b4=>{const _0x19d78c=_0x3d8cf7;_0x587f74[_0x19d78c(0x19a)](_0x304b14=>{const _0x300a00=_0x19d78c;_0x3700b4[_0x300a00(0x199)](_0x304b14);});});}[_0x40a316(0x1a9)](_0x2a0f31,_0x5a8578){const _0x14db4a=_0x40a316,_0x52e270=this[_0x14db4a(0x151)](),_0x41b348=_0x5a8578||_0x52e270[_0x14db4a(0x192)]();this[_0x14db4a(0x18e)][_0x14db4a(0x1a8)][_0x14db4a(0x19c)](_0x41b348)&&this[_0x14db4a(0x18e)][_0x14db4a(0x1a8)][_0x14db4a(0x19f)](_0xdbe1f4=>{const _0x82d16f=_0x14db4a;this[_0x82d16f(0x16d)](),_0x5a8578||this[_0x82d16f(0x1a0)](_0xdbe1f4,_0x52e270),this[_0x82d16f(0x15d)]({'insertAt':_0x41b348,'writer':_0xdbe1f4,'html':_0x2a0f31});});}[_0x40a316(0x1a2)](_0x21a202){const _0x124d51=_0x40a316,{model:_0xdda04c}=this[_0x124d51(0x18e)],_0x19d9c0=this[_0x124d51(0x151)]();_0xdda04c[_0x124d51(0x19f)](()=>{const _0x40df78=_0x124d51,_0x4a8f5e=this[_0x40df78(0x15b)](_0x21a202,_0x19d9c0)||this[_0x40df78(0x197)](_0x19d9c0);this[_0x40df78(0x1a9)](_0x21a202,_0x4a8f5e);});}[_0x40a316(0x151)](){const _0xf2bf93=_0x40a316,_0x2bbee7=this[_0xf2bf93(0x18e)][_0xf2bf93(0x1a8)],_0x2bf941=Array[_0xf2bf93(0x189)](_0x2bbee7[_0xf2bf93(0x154)][_0xf2bf93(0x1b7)](pt))[_0xf2bf93(0x157)](_0x2517c4=>_0x2517c4[_0xf2bf93(0x1b2)]());return _0x2bbee7[_0xf2bf93(0x1ab)](_0x2bf941);}[_0x40a316(0x15d)]({writer:_0x2a1b00,html:_0x1b3848,insertAt:_0x4ac0ca}){const _0x44f880=_0x40a316,{view:_0x43220b}=this[_0x44f880(0x18e)][_0x44f880(0x14d)],_0x6aa767=this[_0x44f880(0x18e)][_0x44f880(0x18b)][_0x44f880(0x164)](_0xda320a),_0x15ba6d=new dt();_0x15ba6d[_0x44f880(0x1a5)](_0x44f880(0x171),_0x1b3848);const _0xff2277=new ClipboardEvent(_0x44f880(0x194),{'clipboardData':_0x15ba6d}),_0x3383be=new _0x5220f9(_0x43220b,_0xff2277,{'dataTransfer':new _0x4f7ddd(_0x15ba6d)});_0x2a1b00[_0x44f880(0x1aa)](_0x4ac0ca);const _0x508e0d=(_0x4a0c0d,_0x857cc3)=>{const _0x58c1bc=_0x44f880;_0x857cc3[_0x58c1bc(0x193)]&&_0x2a1b00[_0x58c1bc(0x1aa)](_0x857cc3[_0x58c1bc(0x193)]);};_0x6aa767[_0x44f880(0x195)](_0x44f880(0x1b8),_0x508e0d,{'priority':_0x44f880(0x184)}),_0x43220b[_0x44f880(0x18d)][_0x44f880(0x1b1)](_0x44f880(0x194),_0x3383be),_0x6aa767[_0x44f880(0x16f)](_0x44f880(0x1b8),_0x508e0d);}[_0x40a316(0x197)](_0x2fa3f9){const _0x5e6a8b=_0x40a316,{model:_0x329294}=this[_0x5e6a8b(0x18e)],_0x2bdd28=Array[_0x5e6a8b(0x189)](_0x2fa3f9[_0x5e6a8b(0x196)]());return _0x2bdd28[_0x5e6a8b(0x1b4)]?_0x329294[_0x5e6a8b(0x185)](_0x2bdd28[_0x5e6a8b(0x169)]()):_0x2fa3f9[_0x5e6a8b(0x168)]();}[_0x40a316(0x15b)](_0x17e133,_0x4f1697){const _0x5e5ffa=_0x40a316,{model:_0x213846,plugins:_0x35343c}=this[_0x5e5ffa(0x18e)];if(_0x35343c[_0x5e5ffa(0x1ac)](_0x5e5ffa(0x16a))){const _0x3c9e78=_0x35343c[_0x5e5ffa(0x164)](_0x5e5ffa(0x16a))[_0x5e5ffa(0x1b3)](_0x4f1697);if(_0x3c9e78[_0x5e5ffa(0x1b4)]){const _0x141d43=this[_0x5e5ffa(0x17a)](_0x17e133),_0x21e3c2=this[_0x5e5ffa(0x1a4)](_0x3c9e78,_0x141d43);return _0x213846[_0x5e5ffa(0x165)](_0x21e3c2,0x0);}}return null;}[_0x40a316(0x17a)](_0x34ba9f){const _0x140f43=_0x40a316,_0x521724=this[_0x140f43(0x18e)][_0x140f43(0x18b)][_0x140f43(0x164)](_0x140f43(0x16a)),_0x3fa343=this[_0x140f43(0x18e)][_0x140f43(0x160)][_0x140f43(0x155)](_0x34ba9f),_0x4f5ac8=Array[_0x140f43(0x189)](_0x3fa343[_0x140f43(0x159)]())[_0x140f43(0x190)](_0x331316=>_0x331316['is'](_0x140f43(0x19d),_0x140f43(0x1a7)));let _0x205600=0x0;return _0x4f5ac8[_0x140f43(0x19a)](_0x20f503=>{const _0x1c9497=_0x140f43;_0x205600+=_0x521724[_0x1c9497(0x158)](_0x20f503);}),_0x205600;}[_0x40a316(0x1a4)](_0x1036a7,_0x22214f){const _0x322e82=_0x40a316,_0x10b424=this[_0x322e82(0x18e)][_0x322e82(0x18b)][_0x322e82(0x164)](_0x322e82(0x16a)),_0x395ab2=_0x10b424[_0x322e82(0x181)](_0x1036a7),_0x2818ba=_0x10b424[_0x322e82(0x152)](_0x1036a7),_0x4daee8=_0x395ab2[_0x322e82(0x162)]+0x1,_0x290ce8=_0x2818ba[_0x322e82(0x170)],_0x93d80=_0x1036a7[0x0][_0x322e82(0x15a)](_0x322e82(0x1a7));for(let _0x13bf8c=0x0;_0x13bf8c<_0x22214f;_0x13bf8c++)_0x10b424[_0x322e82(0x17e)](_0x93d80,{'at':_0x4daee8});return _0x93d80[_0x322e82(0x17f)](_0x4daee8)[_0x322e82(0x17f)](_0x290ce8);}[_0x40a316(0x1a0)](_0x6a266d,_0x36f283){const _0x213cde=_0x40a316,{plugins:_0x6ed412}=this[_0x213cde(0x18e)],{model:_0x22d18f}=_0x6a266d;if(!_0x6ed412[_0x213cde(0x1ac)](_0x213cde(0x16a)))return;_0x6ed412[_0x213cde(0x164)](_0x213cde(0x16a))[_0x213cde(0x1b3)](_0x36f283)[_0x213cde(0x1b4)]&&_0x22d18f[_0x213cde(0x173)](_0x36f283);}}
23
+ function _0x2249(_0x4356e7,_0x3244de){const _0x69a697=_0x69a6();return _0x2249=function(_0x2249ba,_0x54cfa0){_0x2249ba=_0x2249ba-0xda;let _0x5b832b=_0x69a697[_0x2249ba];return _0x5b832b;},_0x2249(_0x4356e7,_0x3244de);}const _0x21bd8e=_0x2249;function _0x69a6(){const _0x55f18c=['addClass','ai-ui','for','findAncestor','ck-ai-assistant-ui_theme','getRange','isPremiumPlugin','insertRows','_createEmptyTableRows','_getDefaultInsertBelowPosition','editingDowncast','href','data','init','removeMarker','join','isCollapsed','last','element','366157HaLVSe','31422ZDfFvg','push','setSelection','markerRange','9JjfdVB','has','getRowIndexes','text/html','_resetContentOfSelectedTableCells','showFakeVisualSelection','createRange','createPositionAfter','getRanges','2304KLsiYt','editing','afterInit','addMarker','ck-fake-ai-selection_collapsed','isContent','38tVfDYc','createPositionAt','TableUtils','isAtEnd','markerToHighlight','canEditAt','schema','getColumnIndexes','getChild','getFirstRange','1268001QzTBoQ','updateMarker','first','markerToElement','ai.assistant.useTheme','resultRange','getSelectedBlocks','1148125UNQVBa','isOfficialPlugin','pluginName','editor','from','_prepareTableInsertBelowPosition','fromCharCode','2922xFYpgO','_getTableRowCountFromContent','lowest','getSelectedTableCells','model','span','_pasteHTMLUsingClipboard','forEach','filter','AIAssistantEditing','getRows','deleteContent','4549416eibtzZ','getLastMatchingPosition','getChildren','document','3092106YhGnZg','insertContent','getMarkersGroup','off','_getAISelection','paste','pop','selection','createUIElement','DataTransfer','config','get','length','contentInsertion','parse','table','map','markers','conversion','hideFakeVisualSelection','370qFjwFT','setData','fire','ck-fake-ai-selection','change','start','end','once','plugins','getLastPosition','createSelection','insertContentBelow'];_0x69a6=function(){return _0x55f18c;};return _0x69a6();}(function(_0x139f5c,_0x2c57cb){const _0x303835=_0x2249,_0x1f4a80=_0x139f5c();while(!![]){try{const _0x33d09a=parseInt(_0x303835(0x126))/0x1*(parseInt(_0x303835(0x113))/0x2)+parseInt(_0x303835(0x13e))/0x3*(-parseInt(_0x303835(0x120))/0x4)+parseInt(_0x303835(0x137))/0x5+parseInt(_0x303835(0xdf))/0x6+parseInt(_0x303835(0x130))/0x7+parseInt(_0x303835(0xdb))/0x8*(parseInt(_0x303835(0x117))/0x9)+parseInt(_0x303835(0xf3))/0xa*(-parseInt(_0x303835(0x112))/0xb);if(_0x33d09a===_0x2c57cb)break;else _0x1f4a80['push'](_0x1f4a80['shift']());}catch(_0x49e4a6){_0x1f4a80['push'](_0x1f4a80['shift']());}}}(_0x69a6,0x490a3));import{uid as _0x4dac21}from'ckeditor5/src/utils.js';import{Plugin as _0x5114fc}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0x2bbd57}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x1fc28f,ViewDataTransfer as _0x2818a2}from'ckeditor5/src/engine.js';const w=globalThis[_0x21bd8e(0xe8)],f=_0x21bd8e(0x100);export class AIAssistantEditing extends _0x5114fc{static get[_0x21bd8e(0x139)](){const _0xc83cb5=_0x21bd8e;return _0xc83cb5(0x147);}static get[_0x21bd8e(0x138)](){return!0x0;}static get[_0x21bd8e(0x105)](){return!0x0;}[_0x21bd8e(0x10c)](){const _0x40303e=_0x21bd8e,{editor:_0x12717b}=this,_0x36166d=[_0x40303e(0xf6)];_0x12717b[_0x40303e(0xe9)][_0x40303e(0xea)](_0x40303e(0x134))&&_0x36166d[_0x40303e(0x114)](_0x40303e(0x103)),_0x12717b[_0x40303e(0xf1)][_0x40303e(0x101)](_0x40303e(0x109))[_0x40303e(0x12a)]({'model':f,'view':{'classes':_0x36166d,'priority':0xc}}),_0x12717b[_0x40303e(0xf1)][_0x40303e(0x101)](_0x40303e(0x109))[_0x40303e(0x133)]({'model':f,'view':(_0x366c74,{writer:_0xe0a3da})=>{const _0x5d707c=_0x40303e;if(!_0x366c74[_0x5d707c(0x116)][_0x5d707c(0x10f)])return null;const _0x1efeec=_0xe0a3da[_0x5d707c(0xe7)](_0x5d707c(0x143));return _0xe0a3da[_0x5d707c(0xff)]([_0x5d707c(0xf6),_0x5d707c(0x124)],_0x1efeec),_0x1efeec;}});}[_0x21bd8e(0x122)](){!async function(_0x1e12ee){const _0x4d606a=_0xcf5515([0x6e,0x41,0x37,0x79,0x75,0x72,0x67,0x4f,0x48,0x62,0x5a,0x76,0x44,0x70,0x6c,0x52,0x6b,0x4a,0x73,0x63,0x64,0x49,0x43,0x6d,0x38,0x36,0x6f,0x50,0x57,0x78,0x39,0x32,0x66,0x31,0x71,0x46,0x30,0x4c,0x61,0x53,0x58,0x33,0x4e,0x47,0x77,0x54,0x4d,0x4b,0x34,0x6a,0x56,0x74,0x59,0x55,0x42,0x51,0x69,0x35,0x7a,0x68,0x65,0x45]),_0x4c7057=0x3dffc4e1,_0x4cab3a=0x3df8bea9^_0x4c7057,_0x65edad=window[_0xcf5515([0x44,0x61,0x74,0x65])][_0xcf5515([0x6e,0x6f,0x77])](),_0x5d1338=_0x1e12ee[_0xcf5515([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x78afdc=new window[(_0xcf5515([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x143f6d=>{_0x5d1338[_0xcf5515([0x6f,0x6e,0x63,0x65])](_0xcf5515([0x72,0x65,0x61,0x64,0x79]),_0x143f6d);}),_0x12ad90={[_0xcf5515([0x6b,0x74,0x79])]:_0xcf5515([0x45,0x43]),[_0xcf5515([0x75,0x73,0x65])]:_0xcf5515([0x73,0x69,0x67]),[_0xcf5515([0x63,0x72,0x76])]:_0xcf5515([0x50,0x2d,0x32,0x35,0x36]),[_0xcf5515([0x78])]:_0xcf5515([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0xcf5515([0x79])]:_0xcf5515([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0xcf5515([0x61,0x6c,0x67])]:_0xcf5515([0x45,0x53,0x32,0x35,0x36])},_0x4db404=_0x5d1338[_0xcf5515([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xcf5515([0x67,0x65,0x74])](_0xcf5515([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x492723(){let _0x289845,_0x169adf=null,_0x201956=null;try{if(_0x4db404==_0xcf5515([0x47,0x50,0x4c]))return _0xcf5515([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x289845=_0x18446a(),!_0x289845)return _0xcf5515([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x289845[_0xcf5515([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x201956=_0x2354b2(_0x289845[_0xcf5515([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x289845[_0xcf5515([0x6a,0x74,0x69])])),await _0x1eaa4f()?_0x7b6ea4()?_0x212d95()?_0xcf5515([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4300cb()?(_0x289845[_0xcf5515([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xcf5515([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x169adf=_0x346057(_0xcf5515([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x289845[_0xcf5515([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xcf5515([0x74,0x72,0x69,0x61,0x6c])&&(_0x169adf=_0x346057(_0xcf5515([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4068bc()):_0xcf5515([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xcf5515([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xcf5515([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xcf5515([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x212d95(){const _0x4b830b=[_0xcf5515([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xcf5515([0x74,0x72,0x69,0x61,0x6c])][_0xcf5515([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x289845[_0xcf5515([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x65edad/0x3e8:0xe10*_0x4cab3a;return _0x289845[_0xcf5515([0x65,0x78,0x70])]<_0x4b830b;}function _0x7b6ea4(){const _0x4c8ef6=_0x289845[_0xcf5515([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4c8ef6&&(!!_0x4c8ef6[_0xcf5515([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcf5515([0x2a]))||!!_0x4c8ef6[_0xcf5515([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcf5515([0x41,0x49])));}function _0x4300cb(){const _0x592173=_0x2249,_0x191021=_0x289845[_0xcf5515([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x191021||0x0==_0x191021[_0xcf5515([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x50d146}=new URL(window[_0xcf5515([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x592173(0x10a)]);if(_0x191021[_0xcf5515([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50d146))return!0x0;const _0x366cb2=_0x50d146[_0xcf5515([0x73,0x70,0x6c,0x69,0x74])](_0xcf5515([0x2e]));return _0x191021[_0xcf5515([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5dd7ab=>_0x5dd7ab[_0xcf5515([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcf5515([0x2a])))[_0xcf5515([0x6d,0x61,0x70])](_0x2aad24=>_0x2aad24[_0xcf5515([0x73,0x70,0x6c,0x69,0x74])](_0xcf5515([0x2e])))[_0xcf5515([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x27da4b=>_0x27da4b[_0xcf5515([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x366cb2[_0xcf5515([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xcf5515([0x6d,0x61,0x70])](_0x58e912=>Array(_0x366cb2[_0xcf5515([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x58e912[_0xcf5515([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xcf5515([0x66,0x69,0x6c,0x6c])](_0x58e912[0x0]===_0xcf5515([0x2a])?_0xcf5515([0x2a]):'')[_0xcf5515([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x58e912))[_0xcf5515([0x73,0x6f,0x6d,0x65])](_0x1d3d94=>_0x366cb2[_0xcf5515([0x65,0x76,0x65,0x72,0x79])]((_0x31c8f9,_0x2c35a0)=>_0x1d3d94[_0x2c35a0]===_0x31c8f9||_0x1d3d94[_0x2c35a0]===_0xcf5515([0x2a])));}function _0x4068bc(){return _0x169adf&&_0x201956?new window[(_0xcf5515([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd83d0f,_0x38a32e)=>{_0x169adf[_0xcf5515([0x74,0x68,0x65,0x6e])](_0xd83d0f,_0x38a32e),_0x201956[_0xcf5515([0x74,0x68,0x65,0x6e])](_0x46bc3c=>{_0x46bc3c!=_0xcf5515([0x56,0x61,0x6c,0x69,0x64])&&_0xd83d0f(_0x46bc3c);},_0x38a32e);}):_0x169adf||_0x201956||_0xcf5515([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2354b2(_0x562fec,_0x8aadc9){return new window[(_0xcf5515([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46e827=>{if(_0x142d9b())return _0x46e827(_0xcf5515([0x56,0x61,0x6c,0x69,0x64]));_0x3da2b9(),_0x5d1338[_0xcf5515([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xcf5515([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x36d4e0=!0x1;const _0x3d1094=_0x4dac21();function _0x32d437(_0xec90ef){return!!_0xec90ef&&(typeof _0xec90ef===_0xcf5515([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xec90ef===_0xcf5515([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xec90ef[_0xcf5515([0x74,0x68,0x65,0x6e])]===_0xcf5515([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xec90ef[_0xcf5515([0x63,0x61,0x74,0x63,0x68])]===_0xcf5515([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x252276(_0x1190ad){_0xa4d865(_0x1190ad)[_0xcf5515([0x74,0x68,0x65,0x6e])](_0xdfc675=>{if(!_0xdfc675||_0xdfc675[_0xcf5515([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xcf5515([0x6f,0x6b]))return _0xcf5515([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x689a21(_0x410b6e(_0x3d1094+_0x8aadc9))!=_0xdfc675[_0xcf5515([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xcf5515([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xcf5515([0x56,0x61,0x6c,0x69,0x64]);})[_0xcf5515([0x74,0x68,0x65,0x6e])](_0x59bdf8=>(_0x21377c(),_0x59bdf8),()=>{const _0x9f855e=_0x5be889();return null==_0x9f855e?(_0x21377c(),_0xcf5515([0x56,0x61,0x6c,0x69,0x64])):_0xcf5515(_0x65edad-_0x9f855e>(0x19f340e1^_0x4c7057)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xcf5515([0x74,0x68,0x65,0x6e])](_0x46e827)[_0xcf5515([0x63,0x61,0x74,0x63,0x68])](()=>{_0x46e827(_0xcf5515([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2dcf90=0x3dc92a61^_0x4c7057;function _0x21377c(){const _0x381936=_0xcf5515([0x6c,0x6c,0x63,0x74,0x2d])+_0x689a21(_0x410b6e(_0x562fec)),_0x108201=_0x451550(_0x689a21(window[_0xcf5515([0x4d,0x61,0x74,0x68])][_0xcf5515([0x63,0x65,0x69,0x6c])](_0x65edad/_0x2dcf90)));window[_0xcf5515([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xcf5515([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x381936,_0x108201);}function _0x5be889(){const _0x247acd=_0xcf5515([0x6c,0x6c,0x63,0x74,0x2d])+_0x689a21(_0x410b6e(_0x562fec)),_0x6c1609=window[_0xcf5515([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xcf5515([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x247acd);return _0x6c1609?window[_0xcf5515([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x451550(_0x6c1609),0x10)*_0x2dcf90:null;}function _0xa4d865(_0xf5aee5){return new window[(_0xcf5515([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d9753,_0x30aca1)=>{_0xf5aee5[_0xcf5515([0x74,0x68,0x65,0x6e])](_0x2d9753,_0x30aca1),window[_0xcf5515([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x30aca1,0x3dfe1021^_0x4c7057);});}}_0x5d1338[_0xcf5515([0x6f,0x6e])](_0xcf5515([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x412cf1,_0x281019)=>{if(_0x281019[0x0]!=_0x562fec)return _0x46e827(_0xcf5515([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x281019[0x1]={..._0x281019[0x1],[_0xcf5515([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3d1094};},{[_0xcf5515([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xcf5515([0x68,0x69,0x67,0x68])}),_0x5d1338[_0xcf5515([0x6f,0x6e])](_0xcf5515([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3edaa5=>{_0x32d437(_0x3edaa5[_0xcf5515([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x36d4e0=!0x0,_0x252276(_0x3edaa5[_0xcf5515([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xcf5515([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xcf5515([0x6c,0x6f,0x77])}),_0x78afdc[_0xcf5515([0x74,0x68,0x65,0x6e])](()=>{_0x36d4e0||_0x46e827(_0xcf5515([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x142d9b(){return _0x5d1338[_0xcf5515([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xcf5515([0x76,0x69,0x65,0x77])][_0xcf5515([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xcf5515([0x61,0x75,0x74,0x6f]);}function _0x3da2b9(){_0x5d1338[_0xcf5515([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xcf5515([0x76,0x69,0x65,0x77])][_0xcf5515([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xcf5515([0x61,0x75,0x74,0x6f]);}}function _0x346057(_0x2d6e03){const _0x538f96=[new window[(_0xcf5515([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f72b6=>setTimeout(_0x4f72b6,0x3df6fa2d^_0x4c7057)),_0x78afdc[_0xcf5515([0x74,0x68,0x65,0x6e])](()=>new window[(_0xcf5515([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x268d2b=>{let _0x103bed=0x0;_0x5d1338[_0xcf5515([0x6d,0x6f,0x64,0x65,0x6c])][_0xcf5515([0x6f,0x6e])](_0xcf5515([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x235319,_0x57835f)=>{_0x57835f[0x0][_0xcf5515([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x103bed++,_0x103bed==(0x3dffc519^_0x4c7057)&&(_0x268d2b(),_0x235319[_0xcf5515([0x6f,0x66,0x66])]());});}))];return window[_0xcf5515([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xcf5515([0x72,0x61,0x63,0x65])](_0x538f96)[_0xcf5515([0x74,0x68,0x65,0x6e])](()=>_0x2d6e03);}async function _0x5c54d3(){await _0x78afdc,_0x5d1338[_0xcf5515([0x6d,0x6f,0x64,0x65,0x6c])][_0xcf5515([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5dee99,_0x5d1338[_0xcf5515([0x6d,0x6f,0x64,0x65,0x6c])][_0xcf5515([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5dee99,_0x5d1338[_0xcf5515([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xcf5515([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x63d5bd(_0x7fe45f){const _0x1ada30=_0x210a52();_0x5d1338[_0x1ada30]=_0xcf5515([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x7fe45f,_0x7fe45f!=_0xcf5515([0x56,0x61,0x6c,0x69,0x64])&&_0x5c54d3();}function _0x210a52(){const _0x38671e=window[_0xcf5515([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xcf5515([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xcf5515([0x6e,0x6f,0x77])]())[_0xcf5515([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xcf5515([0x2e]),'');let _0x1bc61c=_0xcf5515([0x6e]);for(let _0x1be83b=0x0;_0x1be83b<_0x38671e[_0xcf5515([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1be83b+=0x2){let _0x38343f=window[_0xcf5515([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38671e[_0xcf5515([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1be83b,_0x1be83b+0x2));_0x38343f>=_0x4d606a[_0xcf5515([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x38343f-=_0x4d606a[_0xcf5515([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1bc61c+=_0x4d606a[_0x38343f];}return _0x1bc61c;}function _0x18446a(){const _0x346dcc=_0x4db404[_0xcf5515([0x73,0x70,0x6c,0x69,0x74])](_0xcf5515([0x2e]));if(0x3!=_0x346dcc[_0xcf5515([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5d178b(_0x346dcc[0x1]);function _0x5d178b(_0x5e3721){const _0x1bb737=_0x117a5a(_0x5e3721);return _0x1bb737&&_0x572069()?_0x1bb737:null;function _0x572069(){const _0x4239b4=_0x1bb737[_0xcf5515([0x6a,0x74,0x69])],_0x4d166d=window[_0xcf5515([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4239b4[_0xcf5515([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4239b4[_0xcf5515([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x35f16d={..._0x1bb737,[_0xcf5515([0x6a,0x74,0x69])]:_0x4239b4[_0xcf5515([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4239b4[_0xcf5515([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x35f16d[_0xcf5515([0x76,0x63])],_0x410b6e(_0x35f16d)==_0x4d166d;}}}async function _0x1eaa4f(){let _0x2ee60f=!0x0;try{const _0x3be065=_0x4db404[_0xcf5515([0x73,0x70,0x6c,0x69,0x74])](_0xcf5515([0x2e])),[_0x303982,_0x160014,_0x50c0d1]=_0x3be065;return _0x1ddddd(_0x303982),await _0x4a0f3a(_0x303982,_0x160014,_0x50c0d1),_0x2ee60f;}catch{return!0x1;}function _0x1ddddd(_0x5bf51c){const _0x3bd278=_0x117a5a(_0x5bf51c);_0x3bd278&&_0x3bd278[_0xcf5515([0x61,0x6c,0x67])]==_0xcf5515([0x45,0x53,0x32,0x35,0x36])||(_0x2ee60f=!0x1);}async function _0x4a0f3a(_0x493690,_0x16bf91,_0x55fee8){const _0x5d752d=window[_0xcf5515([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xcf5515([0x66,0x72,0x6f,0x6d])](_0x3f1fb4(_0x55fee8),_0x5727d5=>_0x5727d5[_0xcf5515([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xca8c06=new window[(_0xcf5515([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xcf5515([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x493690+_0xcf5515([0x2e])+_0x16bf91),_0x849ebd=window[_0xcf5515([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xcf5515([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x849ebd)return;const _0x5bf5fb=await _0x849ebd[_0xcf5515([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xcf5515([0x6a,0x77,0x6b]),_0x12ad90,{[_0xcf5515([0x6e,0x61,0x6d,0x65])]:_0xcf5515([0x45,0x43,0x44,0x53,0x41]),[_0xcf5515([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xcf5515([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xcf5515([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x849ebd[_0xcf5515([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xcf5515([0x6e,0x61,0x6d,0x65])]:_0xcf5515([0x45,0x43,0x44,0x53,0x41]),[_0xcf5515([0x68,0x61,0x73,0x68])]:{[_0xcf5515([0x6e,0x61,0x6d,0x65])]:_0xcf5515([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5bf5fb,_0x5d752d,_0xca8c06)||(_0x2ee60f=!0x1);}}function _0x117a5a(_0x336044){return _0x336044[_0xcf5515([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xcf5515([0x65,0x79]))?JSON[_0xcf5515([0x70,0x61,0x72,0x73,0x65])](_0x3f1fb4(_0x336044)):null;}function _0x3f1fb4(_0x446f03){return window[_0xcf5515([0x61,0x74,0x6f,0x62])](_0x446f03[_0xcf5515([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xcf5515([0x2b]))[_0xcf5515([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xcf5515([0x2f])));}function _0x410b6e(_0x1a7f78){let _0x1088ca=0x1505;function _0x1e4315(_0x100148){for(let _0x44b36c=0x0;_0x44b36c<_0x100148[_0xcf5515([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44b36c++){const _0x52e4b6=_0x100148[_0xcf5515([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x44b36c);_0x1088ca=(_0x1088ca<<0x5)+_0x1088ca+_0x52e4b6,_0x1088ca&=_0x1088ca;}}function _0x7f2b45(_0x32e92b){Array[_0xcf5515([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x32e92b)?_0x32e92b[_0xcf5515([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7f2b45):_0x32e92b&&typeof _0x32e92b==_0xcf5515([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xcf5515([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x32e92b)[_0xcf5515([0x73,0x6f,0x72,0x74])]()[_0xcf5515([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b6c76,_0x5eb43a])=>{_0x1e4315(_0x5b6c76),_0x7f2b45(_0x5eb43a);}):_0x1e4315(window[_0xcf5515([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x32e92b));}return _0x7f2b45(_0x1a7f78),_0x1088ca>>>0x0;}function _0x689a21(_0x2a7e33){return _0x2a7e33[_0xcf5515([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xcf5515([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xcf5515([0x30]));}function _0x451550(_0xea28){return _0xea28[_0xcf5515([0x73,0x70,0x6c,0x69,0x74])]('')[_0xcf5515([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xcf5515([0x6a,0x6f,0x69,0x6e])]('');}function _0x5dee99(){}function _0xcf5515(_0x177332){const _0xbff670=_0x2249;return _0x177332[_0xbff670(0xef)](_0x5e70b9=>String[_0xbff670(0x13d)](_0x5e70b9))[_0xbff670(0x10e)]('');}_0x63d5bd(await _0x492723());}(this);}[_0x21bd8e(0x11c)](){const _0x516a1d=_0x21bd8e,_0x1d9428=this[_0x516a1d(0x13a)][_0x516a1d(0x142)];_0x1d9428[_0x516a1d(0xf7)](_0x1ab22c=>{const _0x46ad87=_0x516a1d,_0x224d8d=_0x1d9428[_0x46ad87(0xde)][_0x46ad87(0xe6)][_0x46ad87(0x11f)]();let _0x26d8a9=0x0;for(const _0x3b88f5 of _0x224d8d){const _0xc3fe3c=f+':'+_0x26d8a9;if(_0x1d9428[_0x46ad87(0xf0)][_0x46ad87(0x118)](_0xc3fe3c))_0x1ab22c[_0x46ad87(0x131)](_0xc3fe3c,{'range':_0x3b88f5});else{if(_0x3b88f5[_0x46ad87(0xf8)][_0x46ad87(0x129)]){const _0x51228f=_0x3b88f5[_0x46ad87(0xf8)][_0x46ad87(0xdc)](({item:_0x18e75c})=>!_0x1d9428[_0x46ad87(0x12c)][_0x46ad87(0x125)](_0x18e75c),{'boundaries':_0x3b88f5});_0x1ab22c[_0x46ad87(0x123)](_0xc3fe3c,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x1ab22c[_0x46ad87(0x11d)](_0x51228f,_0x3b88f5[_0x46ad87(0xf9)])});}else _0x1ab22c[_0x46ad87(0x123)](_0xc3fe3c,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x3b88f5});}_0x26d8a9++;}});}[_0x21bd8e(0xf2)](){const _0x2e0316=_0x21bd8e,_0x334bd0=this[_0x2e0316(0x13a)][_0x2e0316(0x142)],_0x2f8888=Array[_0x2e0316(0x13b)](this[_0x2e0316(0x13a)][_0x2e0316(0x142)][_0x2e0316(0xf0)][_0x2e0316(0xe1)](f));_0x2f8888[_0x2e0316(0xeb)]&&_0x334bd0[_0x2e0316(0xf7)](_0xb2959a=>{const _0x5e553b=_0x2e0316;_0x2f8888[_0x5e553b(0x145)](_0x29db2=>{const _0x38c402=_0x5e553b;_0xb2959a[_0x38c402(0x10d)](_0x29db2);});});}[_0x21bd8e(0xe0)](_0x2cc64c,_0x46048d){const _0x2b9f79=_0x21bd8e,_0x26fb8f=this[_0x2b9f79(0xe3)](),_0x2fec66=_0x46048d||_0x26fb8f[_0x2b9f79(0x12f)]();this[_0x2b9f79(0x13a)][_0x2b9f79(0x142)][_0x2b9f79(0x12b)](_0x2fec66)&&this[_0x2b9f79(0x13a)][_0x2b9f79(0x142)][_0x2b9f79(0xf7)](_0x5a8dc3=>{const _0x367984=_0x2b9f79;this[_0x367984(0xf2)](),_0x46048d||this[_0x367984(0x11b)](_0x5a8dc3,_0x26fb8f),this[_0x367984(0x144)]({'insertAt':_0x2fec66,'writer':_0x5a8dc3,'html':_0x2cc64c});});}[_0x21bd8e(0xfe)](_0xdf7699){const _0x1387d6=_0x21bd8e,{model:_0x3b3e5f}=this[_0x1387d6(0x13a)],_0x2d260a=this[_0x1387d6(0xe3)]();_0x3b3e5f[_0x1387d6(0xf7)](()=>{const _0x1e4f79=_0x1387d6,_0x3ecdb1=this[_0x1e4f79(0x13c)](_0xdf7699,_0x2d260a)||this[_0x1e4f79(0x108)](_0x2d260a);this[_0x1e4f79(0xe0)](_0xdf7699,_0x3ecdb1);});}[_0x21bd8e(0xe3)](){const _0x231f6e=_0x21bd8e,_0x3abe7d=this[_0x231f6e(0x13a)][_0x231f6e(0x142)],_0x58cbd8=Array[_0x231f6e(0x13b)](_0x3abe7d[_0x231f6e(0xf0)][_0x231f6e(0xe1)](f))[_0x231f6e(0xef)](_0x322e5f=>_0x322e5f[_0x231f6e(0x104)]());return _0x3abe7d[_0x231f6e(0xfd)](_0x58cbd8);}[_0x21bd8e(0x144)]({writer:_0x5b80e9,html:_0x26f79c,insertAt:_0x3379e1}){const _0x4737ec=_0x21bd8e,{view:_0x492340}=this[_0x4737ec(0x13a)][_0x4737ec(0x121)],_0x50b102=this[_0x4737ec(0x13a)][_0x4737ec(0xfb)][_0x4737ec(0xea)](_0x2bbd57),_0x400105=new w();_0x400105[_0x4737ec(0xf4)](_0x4737ec(0x11a),_0x26f79c);const _0x30fcdb=new ClipboardEvent(_0x4737ec(0xe4),{'clipboardData':_0x400105}),_0x475ae6=new _0x1fc28f(_0x492340,_0x30fcdb,{'dataTransfer':new _0x2818a2(_0x400105)});_0x5b80e9[_0x4737ec(0x115)](_0x3379e1);const _0x29d32b=(_0x20c32c,_0x272b0c)=>{const _0x39b184=_0x4737ec;_0x272b0c[_0x39b184(0x135)]&&_0x5b80e9[_0x39b184(0x115)](_0x272b0c[_0x39b184(0x135)]);};_0x50b102[_0x4737ec(0xfa)](_0x4737ec(0xec),_0x29d32b,{'priority':_0x4737ec(0x140)}),_0x492340[_0x4737ec(0xde)][_0x4737ec(0xf5)](_0x4737ec(0xe4),_0x475ae6),_0x50b102[_0x4737ec(0xe2)](_0x4737ec(0xec),_0x29d32b);}[_0x21bd8e(0x108)](_0x403c18){const _0x3cfdd2=_0x21bd8e,{model:_0x2e86fe}=this[_0x3cfdd2(0x13a)],_0x20cd59=Array[_0x3cfdd2(0x13b)](_0x403c18[_0x3cfdd2(0x136)]());return _0x20cd59[_0x3cfdd2(0xeb)]?_0x2e86fe[_0x3cfdd2(0x11e)](_0x20cd59[_0x3cfdd2(0xe5)]()):_0x403c18[_0x3cfdd2(0xfc)]();}[_0x21bd8e(0x13c)](_0x51c038,_0x3ddb60){const _0x529ed1=_0x21bd8e,{model:_0x48f8f,plugins:_0x32ff05}=this[_0x529ed1(0x13a)];if(_0x32ff05[_0x529ed1(0x118)](_0x529ed1(0x128))){const _0x181403=_0x32ff05[_0x529ed1(0xea)](_0x529ed1(0x128))[_0x529ed1(0x141)](_0x3ddb60);if(_0x181403[_0x529ed1(0xeb)]){const _0x562610=this[_0x529ed1(0x13f)](_0x51c038),_0x539778=this[_0x529ed1(0x107)](_0x181403,_0x562610);return _0x48f8f[_0x529ed1(0x127)](_0x539778,0x0);}}return null;}[_0x21bd8e(0x13f)](_0x27bf41){const _0x3ac46b=_0x21bd8e,_0x518965=this[_0x3ac46b(0x13a)][_0x3ac46b(0xfb)][_0x3ac46b(0xea)](_0x3ac46b(0x128)),_0x23c9f4=this[_0x3ac46b(0x13a)][_0x3ac46b(0x10b)][_0x3ac46b(0xed)](_0x27bf41),_0x53bb8f=Array[_0x3ac46b(0x13b)](_0x23c9f4[_0x3ac46b(0xdd)]())[_0x3ac46b(0x146)](_0x37954d=>_0x37954d['is'](_0x3ac46b(0x111),_0x3ac46b(0xee)));let _0xcb5c91=0x0;return _0x53bb8f[_0x3ac46b(0x145)](_0x2d4a1c=>{const _0x35fd8e=_0x3ac46b;_0xcb5c91+=_0x518965[_0x35fd8e(0x148)](_0x2d4a1c);}),_0xcb5c91;}[_0x21bd8e(0x107)](_0x13c1f4,_0x2cc0ba){const _0x5d5ae7=_0x21bd8e,_0x213897=this[_0x5d5ae7(0x13a)][_0x5d5ae7(0xfb)][_0x5d5ae7(0xea)](_0x5d5ae7(0x128)),_0x46c4a2=_0x213897[_0x5d5ae7(0x119)](_0x13c1f4),_0x40cf53=_0x213897[_0x5d5ae7(0x12d)](_0x13c1f4),_0x9bdeca=_0x46c4a2[_0x5d5ae7(0x110)]+0x1,_0x430aae=_0x40cf53[_0x5d5ae7(0x132)],_0x57be0a=_0x13c1f4[0x0][_0x5d5ae7(0x102)](_0x5d5ae7(0xee));for(let _0x468514=0x0;_0x468514<_0x2cc0ba;_0x468514++)_0x213897[_0x5d5ae7(0x106)](_0x57be0a,{'at':_0x9bdeca});return _0x57be0a[_0x5d5ae7(0x12e)](_0x9bdeca)[_0x5d5ae7(0x12e)](_0x430aae);}[_0x21bd8e(0x11b)](_0x5c7cfe,_0xe1b383){const _0xac6fc3=_0x21bd8e,{plugins:_0x543323}=this[_0xac6fc3(0x13a)],{model:_0x3f003d}=_0x5c7cfe;if(!_0x543323[_0xac6fc3(0x118)](_0xac6fc3(0x128)))return;_0x543323[_0xac6fc3(0xea)](_0xac6fc3(0x128))[_0xac6fc3(0x141)](_0xe1b383)[_0xac6fc3(0xeb)]&&_0x3f003d[_0xac6fc3(0xda)](_0xe1b383);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xab209=_0x57bf;(function(_0x40e75f,_0x4d0c38){const _0x3a259b=_0x57bf,_0x4c1848=_0x40e75f();while(!![]){try{const _0x161e24=parseInt(_0x3a259b(0xc5))/0x1+parseInt(_0x3a259b(0xbe))/0x2+parseInt(_0x3a259b(0xab))/0x3*(-parseInt(_0x3a259b(0x133))/0x4)+parseInt(_0x3a259b(0xd5))/0x5+parseInt(_0x3a259b(0x141))/0x6+-parseInt(_0x3a259b(0xc3))/0x7+-parseInt(_0x3a259b(0xae))/0x8;if(_0x161e24===_0x4d0c38)break;else _0x4c1848['push'](_0x4c1848['shift']());}catch(_0x1c9646){_0x4c1848['push'](_0x4c1848['shift']());}}}(_0x566d,0x49f5b));import{Plugin as _0x38044b}from'ckeditor5/src/core.js';import{IconMagicWand as _0x349fd2,IconRobotPencil as _0x4d0e6b}from'ckeditor5/src/icons.js';import{first as _0x1cf81d,CKEditorError as _0xc2c221}from'ckeditor5/src/utils.js';import{createDropdown as _0x208f78,addMenuToDropdown as _0x47cf0d,ButtonView as _0x1a5284,MenuBarMenuListItemButtonView as _0x3eb8f8,Dialog as _0x4581b9,DialogViewPosition as _0x5c06e7,MenuBarMenuView as _0x57516b,MenuBarMenuListView as _0x3319c3,MenuBarMenuListItemView as _0x59fe04}from'ckeditor5/src/ui.js';function _0x566d(){const _0x1ad560=['AI\x20Commands','_dialog','bind','listenTo','_uiCssClasses','723632dLyfUX','errorView','isOfficialPlugin','text','enabledCommandsIds','4012785TddOkw','replaceContent','123776udQyYl','plugins','<p>','pluginName','body','aiAssistant','getLimitElement','announce','ck-ai-assistant-ui','filter','INSERT','Generated\x20content:\x20%0','domainLimit','ai.assistant.commands','featureNotAllowed','showAIAssistant','2442210gIRutU','requires','_createAIAssistantUIButton','polite','editing','change:enabledCommandsIds','set','selection','_showLicenseError','update','once','ai-commands-config-order-collision','componentFactory','isFlat','evaluationLimit','_getMenuBarGroupButtons','groupLabel','isEnabled','_forceMarkersCopy','updateView','rawHtml','includes','getData','sort','isPremiumPlugin','AI\x20Assistant','splice','AIAssistant','_commandDefinitions','groupId','aiLicenseKeyUsageLimit','_initAriaAiStatusChangeAnnouncements','tableOfContents','_initView','text/html','addMany','licenseKey','locale','_onExecute','menuView','panelView','aiLicenseKeyNotAllowed','_aiAdapter','aiLicenseKeyDomainLimit','comment','menuitemcheckbox','view','insertContentBelow','isOn','aiLicenseKeyInvalid','reset','delegate','ai.assistant.disabledElements','order','trim','buttonView','aiLicenseKeyValid','ck-ai-assistant-button\x20','ck-ai-commands-dropdown\x20','menuBar:aiAssistant','add','init','promptView','</p>','commands','Error\x20during\x20AI\x20content\x20generation:\x20%0','copy','menuBar:aiCommands','aiLicenseKeyEvaluationLimit','AI\x20is\x20writing','change:value','setSelection','getSelectedBlocks','change:isProcessing','media','push','fire','showUI','contentArea','buttons','replace','hide','source','map','_formView','AIAssistantUI','expired','focus','updatePosition','document','wasMoved','ai.assistant.useTheme','aiLicenseKeyTrialLimit','aiLicenseKeyExpired','1588MJvZmY','_licenseKeyCheckInterval','ai.assistant.contentAreaCssClass','currentContext','render','DataTransfer','insertContent','show','command:','destroy','usageLimit','queryView','change:isError','hideUI','3484404WQljci','fieldView','get','editor','textAdapter','forEach','isCollapsed','custom','aiCommands','_getResolvedCommandsDefinitions','items','getRanges','menuPanelClass','config','model','hideFakeVisualSelection','children','from','REPLACE','values','length','invalid','trialLimit','requiresContent','825DcMkoG','EDITOR_TOP_SIDE','prompt','4555192LEFCEF','_populateMenuBarMenu','showFakeVisualSelection','_aiAssistantController','schema','change','label','execute','define','getSelectedElement','\x20ck-ai-assistant-ui_theme'];_0x566d=function(){return _0x1ad560;};return _0x566d();}import{normalizeCommandsConfig as _0xea5ac5,UNGROUPED_COMMANDS_GROUP_ID as _0xb63487}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x371533}from'./aiassistantediting.js';import{AIAdapter as _0x15e5cb}from'./adapters/aiadapter.js';function _0x57bf(_0x346d04,_0x15402d){const _0x566d27=_0x566d();return _0x57bf=function(_0x57bf83,_0x50a9e2){_0x57bf83=_0x57bf83-0xa8;let _0xb1b382=_0x566d27[_0x57bf83];return _0xb1b382;},_0x57bf(_0x346d04,_0x15402d);}import{getTranslation as _0x27a5ce}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x1aa658}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x4b6e79}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x687afd}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x30e4b4}from'./ui/form/aiformtoolbarview.js';import'../../theme/aiassistant/ai.css';import'../../theme/aiassistant/ai-dropdown.css';import'../../theme/aiassistant/ai-form.css';const dt=globalThis[_0xab209(0x138)];import{ClipboardMarkersUtils as _0x1fe585}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x4cc43c,ViewDataTransfer as _0x4c44eb}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x38044b{[_0xab209(0xf9)];[_0xab209(0x134)];[_0xab209(0xba)];[_0xab209(0x129)];[_0xab209(0xff)];[_0xab209(0xb1)];[_0xab209(0xbd)]='';static get[_0xab209(0xc8)](){const _0x5347ce=_0xab209;return _0x5347ce(0x12a);}static get[_0xab209(0xc0)](){return!0x0;}static get[_0xab209(0xed)](){return!0x0;}static get[_0xab209(0xd6)](){return[_0x1fe585,_0x371533,_0x15e5cb,_0x4581b9];}constructor(_0x4fefc7){const _0x50031b=_0xab209;super(_0x4fefc7),_0x4fefc7[_0x50031b(0x14e)][_0x50031b(0xb6)](_0x50031b(0x109),[_0x50031b(0x11f),_0x50031b(0xe9),_0x50031b(0xf5)]),_0x4fefc7[_0x50031b(0x14e)][_0x50031b(0xb6)](_0x50031b(0x135),''),_0x4fefc7[_0x50031b(0x14e)][_0x50031b(0xb6)](_0x50031b(0x130),!0x0),this[_0x50031b(0xbd)]=_0x50031b(0xcd)+(_0x4fefc7[_0x50031b(0x14e)][_0x50031b(0x143)](_0x50031b(0x130))?_0x50031b(0xb8):'');}[_0xab209(0x112)](){const _0x44b5e9=_0xab209,{editor:_0x545ef2}=this;this[_0x44b5e9(0xff)]=_0x545ef2[_0x44b5e9(0xc6)][_0x44b5e9(0x143)](_0x15e5cb),this[_0x44b5e9(0xba)]=_0x545ef2[_0x44b5e9(0xc6)][_0x44b5e9(0x143)](_0x4581b9),this[_0x44b5e9(0x129)]=null,this[_0x44b5e9(0xf1)]=this[_0x44b5e9(0x14a)]();const _0x153b4a=new _0x1aa658(_0x545ef2,Array[_0x44b5e9(0x152)](this[_0x44b5e9(0xf1)][_0x44b5e9(0x154)]()));_0x545ef2[_0x44b5e9(0x115)][_0x44b5e9(0x111)](_0x44b5e9(0xd4),_0x153b4a),_0x545ef2['ui'][_0x44b5e9(0xe1)][_0x44b5e9(0x111)](_0x44b5e9(0x149),_0xe81287=>{const _0x29027c=_0x44b5e9,_0x15f6cd=_0x208f78(_0xe81287);return _0x15f6cd[_0x29027c(0xdb)]({'class':_0x29027c(0x10f)+this[_0x29027c(0xbd)]}),_0x15f6cd[_0x29027c(0x10c)][_0x29027c(0xdb)]({'label':_0x27a5ce(_0xe81287,_0x29027c(0xb9)),'icon':_0x349fd2,'tooltip':!0x0}),_0x15f6cd['on'](_0x29027c(0xb5),_0x35aec2=>this[_0x29027c(0xfb)](_0x35aec2[_0x29027c(0x127)]['id'])),_0x47cf0d(_0x15f6cd,_0x545ef2['ui'][_0x29027c(0x103)][_0x29027c(0xc9)],function(_0x6764b6){const _0x5c428c=_0x29027c,_0x1b2644=_0xea5ac5(_0x6764b6[_0x5c428c(0x14e)][_0x5c428c(0x143)](_0x5c428c(0xd2)),_0x6764b6[_0x5c428c(0xfa)]),_0x5842f4=wi(_0x6764b6,_0x1b2644)[_0x5c428c(0xce)](_0x1143ad=>_0x1143ad[_0x5c428c(0x115)][_0x5c428c(0x155)]);if(0x1===_0x5842f4[_0x5c428c(0x155)])return wi(_0x6764b6,_0x5842f4[0x0][_0x5c428c(0x115)])[_0x5c428c(0x128)](_0x5f23c8=>({'id':_0x5f23c8['id'],'label':_0x5f23c8[_0x5c428c(0xb4)]}));return _0x5842f4[_0x5c428c(0x128)](_0x4d1cf1=>{const _0x4caf58=_0x5c428c,{groupId:_0x40b38a,groupLabel:_0x7dcde3,commands:_0x42baa4}=_0x4d1cf1,_0x443cee=wi(_0x6764b6,_0x42baa4)[_0x4caf58(0x128)](_0xfcd7cb=>({'id':_0xfcd7cb['id'],'label':_0xfcd7cb[_0x4caf58(0xb4)]}));return{'id':_0x40b38a,'menu':_0x7dcde3||_0x40b38a,'children':_0x443cee};});}(_0x545ef2),{'ariaLabel':_0x27a5ce(_0xe81287,_0x29027c(0xb9))}),_0x15f6cd[_0x29027c(0xfc)][_0x29027c(0x14d)]=_0x29027c(0x10f)+this[_0x29027c(0xbd)],_0x153b4a['on'](_0x29027c(0xda),_0x193b58),_0x15f6cd[_0x29027c(0xfc)][_0x29027c(0xdf)](_0x29027c(0x137),_0x193b58),_0x15f6cd;function _0x193b58(){const _0x39fe21=_0x29027c;_0x15f6cd[_0x39fe21(0xe6)]=_0x153b4a[_0x39fe21(0xc2)][_0x39fe21(0x155)]>0x0;for(const _0x2b34e5 of _0x15f6cd[_0x39fe21(0xfc)][_0x39fe21(0x124)])_0x2b34e5[_0x39fe21(0xe6)]=_0x153b4a[_0x39fe21(0xc2)][_0x39fe21(0xea)](_0x2b34e5['id']);}}),_0x545ef2['ui'][_0x44b5e9(0xe1)][_0x44b5e9(0x111)](_0x44b5e9(0x118),_0x172d35=>{const _0x448730=_0x44b5e9,_0x2c85f3=new _0x57516b(_0x172d35);_0x2c85f3[_0x448730(0x10c)][_0x448730(0xdb)]({'label':_0x27a5ce(_0x172d35,_0x448730(0xb9)),'icon':_0x349fd2}),_0x2c85f3[_0x448730(0xbb)](_0x448730(0xe6))['to'](_0x153b4a,_0x448730(0xc2),_0x3d70fd=>_0x3d70fd[_0x448730(0x155)]>0x0);const _0x334d37=_0xea5ac5(_0x545ef2[_0x448730(0x14e)][_0x448730(0x143)](_0x448730(0xd2)),_0x172d35);return this[_0x448730(0xaf)](_0x153b4a,_0x2c85f3,_0x334d37,_0x31b028=>this[_0x448730(0xfb)](_0x31b028)),_0x2c85f3;}),_0x545ef2['ui'][_0x44b5e9(0xe1)][_0x44b5e9(0x111)](_0x44b5e9(0xca),()=>{const _0x6821ba=_0x44b5e9,_0xee4007=this[_0x6821ba(0xd7)](_0x1a5284);return _0xee4007[_0x6821ba(0xdb)]({'tooltip':!0x0,'class':_0x6821ba(0x10e)+this[_0x6821ba(0xbd)]}),_0xee4007;}),_0x545ef2['ui'][_0x44b5e9(0xe1)][_0x44b5e9(0x111)](_0x44b5e9(0x110),()=>{const _0x1f11da=_0x44b5e9,_0x6d51a4=this[_0x1f11da(0xd7)](_0x3eb8f8);return _0x6d51a4[_0x1f11da(0xdb)]({'role':_0x1f11da(0x102)}),_0x6d51a4;}),this[_0x44b5e9(0xf9)]=this[_0x44b5e9(0x144)][_0x44b5e9(0x14e)][_0x44b5e9(0x143)](_0x44b5e9(0xf9));const _0x3d0098=this[_0x44b5e9(0x144)];this[_0x44b5e9(0x134)]=setInterval(()=>{const _0x6bb212=_0x44b5e9;let _0x2e69d6;for(const _0x4bda4f in _0x3d0098){const _0x7310e0=_0x4bda4f,_0x2bfd38=_0x3d0098[_0x7310e0];if(_0x6bb212(0x10d)==_0x2bfd38||_0x6bb212(0x106)==_0x2bfd38||_0x6bb212(0x132)==_0x2bfd38||_0x6bb212(0x100)==_0x2bfd38||_0x6bb212(0xfe)==_0x2bfd38||_0x6bb212(0x119)==_0x2bfd38||_0x6bb212(0x131)==_0x2bfd38||_0x6bb212(0xf3)==_0x2bfd38){delete _0x3d0098[_0x7310e0],_0x2e69d6=_0x2bfd38,clearInterval(this[_0x6bb212(0x134)]),this[_0x6bb212(0x134)]=void 0x0;break;}}_0x6bb212(0x106)==_0x2e69d6&&_0x3d0098[_0x6bb212(0xdd)](_0x6bb212(0xa8)),_0x6bb212(0x132)==_0x2e69d6&&_0x3d0098[_0x6bb212(0xdd)](_0x6bb212(0x12b)),_0x6bb212(0x100)==_0x2e69d6&&_0x3d0098[_0x6bb212(0xdd)](_0x6bb212(0xd1)),_0x6bb212(0xfe)==_0x2e69d6&&_0x3d0098[_0x6bb212(0xdd)](_0x6bb212(0xd3),_0x6bb212(0xf0)),_0x6bb212(0x119)==_0x2e69d6&&_0x3d0098[_0x6bb212(0xdd)](_0x6bb212(0xe3)),_0x6bb212(0x131)==_0x2e69d6&&_0x3d0098[_0x6bb212(0xdd)](_0x6bb212(0xa9)),_0x6bb212(0xf3)==_0x2e69d6&&_0x3d0098[_0x6bb212(0xdd)](_0x6bb212(0x13d));},0x3e8);}[_0xab209(0x13c)](){const _0x3a6043=_0xab209;super[_0x3a6043(0x13c)](),this[_0x3a6043(0x134)]&&clearInterval(this[_0x3a6043(0x134)]);}[_0xab209(0x122)](_0x211b0a='',_0x5d4b98='',_0x20c7f0=_0xab209(0x148)){const _0x27ab7b=_0xab209,_0x55c727=this[_0x27ab7b(0x144)],_0x1569a8=_0x55c727[_0x27ab7b(0xd9)][_0x27ab7b(0x103)],_0x2e6ea5=_0x55c727[_0x27ab7b(0xc6)][_0x27ab7b(0x143)](_0x371533),_0x5a7219=_0x55c727[_0x27ab7b(0xc6)][_0x27ab7b(0x143)](_0x1fe585);_0x2e6ea5[_0x27ab7b(0xb0)]();const _0x5e91dd=new dt(),_0x55fe1b=new ClipboardEvent(_0x27ab7b(0x117),{'clipboardData':_0x5e91dd}),_0x236656=new _0x4c44eb(_0x5e91dd),_0x576765=new _0x4cc43c(_0x1569a8,_0x55fe1b,{'dataTransfer':_0x236656});_0x5a7219[_0x27ab7b(0xe7)](_0x27ab7b(0x101),()=>{const _0x3821d0=_0x27ab7b;_0x1569a8[_0x3821d0(0x12e)][_0x3821d0(0x121)](_0x3821d0(0x117),_0x576765);}),this[_0x27ab7b(0x129)]||(this[_0x27ab7b(0xf6)](),this[_0x27ab7b(0xb1)]=new _0x4b6e79(_0x55c727,this[_0x27ab7b(0xff)][_0x27ab7b(0x145)],this[_0x27ab7b(0x129)]));let _0x2da2c4=_0x236656[_0x27ab7b(0xeb)](_0x27ab7b(0xf7));const _0x31d5c9=_0x55c727[_0x27ab7b(0x14f)][_0x27ab7b(0x12e)][_0x27ab7b(0xdc)],_0x4dde34=Array[_0x27ab7b(0x152)](_0x31d5c9[_0x27ab7b(0x14c)]());0x1===_0x4dde34[_0x27ab7b(0x155)]&&_0x4dde34[0x0][_0x27ab7b(0xe2)]&&!_0x31d5c9[_0x27ab7b(0xb7)]()&&''!==_0x2da2c4[_0x27ab7b(0x125)](/&nbsp;/g,'')[_0x27ab7b(0x10b)]()&&(_0x2da2c4=_0x27ab7b(0xc7)+_0x2da2c4+_0x27ab7b(0x114)),this[_0x27ab7b(0xb1)][_0x27ab7b(0xe8)]({'actionId':_0x20c7f0,'query':_0x211b0a,'htmlContent':_0x2da2c4,'label':_0x5d4b98,'mainActionLabel':_0x30e4b4[_0x55c727[_0x27ab7b(0x14f)][_0x27ab7b(0x12e)][_0x27ab7b(0xdc)][_0x27ab7b(0x147)]?_0x27ab7b(0xcf):_0x27ab7b(0x153)]}),_0x27ab7b(0xca)!==this[_0x27ab7b(0xba)]['id']?this[_0x27ab7b(0xba)][_0x27ab7b(0x13a)]({'id':_0x27ab7b(0xca),'icon':_0x4d0e6b,'title':_0x27a5ce(this[_0x27ab7b(0x144)][_0x27ab7b(0xfa)],_0x27ab7b(0xee)),'content':this[_0x27ab7b(0x129)],'position':_0x5c06e7[_0x27ab7b(0xac)],'onShow':()=>{const _0x32ede4=_0x27ab7b;this[_0x32ede4(0x129)][_0x32ede4(0x12c)]();},'onHide':()=>{const _0x483033=_0x27ab7b;this[_0x483033(0xb1)][_0x483033(0x107)](),_0x2e6ea5[_0x483033(0x150)]();}}):this[_0x27ab7b(0xba)][_0x27ab7b(0x103)][_0x27ab7b(0x12f)]||this[_0x27ab7b(0xba)][_0x27ab7b(0x103)][_0x27ab7b(0x12d)]();}[_0xab209(0x140)](){const _0x11584a=_0xab209;this[_0x11584a(0xba)][_0x11584a(0x126)]();}[_0xab209(0x14a)](){const _0x2722df=_0xab209,_0x1ac037=new Map(),_0x114c8c=_0xea5ac5(this[_0x2722df(0x144)][_0x2722df(0x14e)][_0x2722df(0x143)](_0x2722df(0xd2)),this[_0x2722df(0x144)][_0x2722df(0xfa)]);for(const _0x36b6f7 of _0x114c8c)for(const _0xc20f84 of _0x36b6f7[_0x2722df(0x115)])_0x1ac037[_0x2722df(0xdb)](_0xc20f84['id'],{..._0xc20f84,'groupId':_0x36b6f7[_0x2722df(0xf2)],'groupLabel':_0x36b6f7[_0x2722df(0xe5)]||_0x36b6f7[_0x2722df(0xf2)]});return _0x1ac037;}[_0xab209(0xd7)](_0x111bc9){const _0x30a7cb=_0xab209,_0x596340=this[_0x30a7cb(0x144)],_0x1df50b=_0x596340[_0x30a7cb(0x115)][_0x30a7cb(0x143)](_0x30a7cb(0xd4)),_0x5fea4a=new _0x111bc9(_0x596340[_0x30a7cb(0xfa)]);return _0x5fea4a[_0x30a7cb(0xdb)]({'label':_0x27a5ce(_0x596340[_0x30a7cb(0xfa)],_0x30a7cb(0xee)),'icon':_0x4d0e6b,'isToggleable':!0x0}),_0x5fea4a[_0x30a7cb(0xbb)](_0x30a7cb(0xe6))['to'](_0x1df50b),_0x5fea4a[_0x30a7cb(0xbb)](_0x30a7cb(0x105))['to'](this[_0x30a7cb(0xba)],'id',_0x20714f=>_0x30a7cb(0xca)===_0x20714f),this[_0x30a7cb(0xbc)](_0x5fea4a,_0x30a7cb(0xb5),()=>{const _0x14da10=_0x30a7cb;_0x5fea4a[_0x14da10(0x105)]?this[_0x14da10(0x140)]():_0x1df50b[_0x14da10(0xb5)]();}),_0x5fea4a;}[_0xab209(0xf6)](){const _0x539371=_0xab209,_0x11f20d=this[_0x539371(0x144)][_0x539371(0xc6)][_0x539371(0x143)](_0x371533);this[_0x539371(0x129)]=new _0x687afd(this[_0x539371(0x144)][_0x539371(0xfa)],this[_0x539371(0xbd)],this[_0x539371(0x144)][_0x539371(0x14e)][_0x539371(0x143)](_0x539371(0x135))),this[_0x539371(0x129)]['on'](_0x539371(0x11b),()=>{const _0x566ddc=_0x539371;this[_0x566ddc(0xba)][_0x566ddc(0x103)][_0x566ddc(0x12f)]||this[_0x566ddc(0xba)][_0x566ddc(0x103)][_0x566ddc(0x12d)]();}),this[_0x539371(0x129)][_0x539371(0x113)][_0x539371(0x13e)][_0x539371(0x142)]['on'](_0x539371(0xde),()=>{const _0x56058b=_0x539371;this[_0x56058b(0xba)][_0x56058b(0x103)][_0x56058b(0x12f)]||this[_0x56058b(0xba)][_0x56058b(0x103)][_0x56058b(0x12d)]();}),this[_0x539371(0xbc)](this[_0x539371(0x129)],_0x539371(0xc4),()=>{const _0x16bb51=_0x539371;_0x11f20d[_0x16bb51(0x139)](this[_0x16bb51(0xb1)][_0x16bb51(0x136)]),this[_0x16bb51(0x140)]();}),this[_0x539371(0xbc)](this[_0x539371(0x129)],_0x539371(0x104),()=>{const _0x59807a=_0x539371;_0x11f20d[_0x59807a(0x104)](this[_0x59807a(0xb1)][_0x59807a(0x136)]),this[_0x59807a(0x140)]();}),this[_0x539371(0xf4)]();}[_0xab209(0xf4)](){const _0x130f1d=_0xab209,{locale:_0xdc0bc0,ui:{ariaLiveAnnouncer:_0x43afbf}}=this[_0x130f1d(0x144)];this[_0x130f1d(0x129)][_0x130f1d(0x123)]['on'](_0x130f1d(0x11e),(_0x18e225,_0x1ebf63,_0x4c0cf2)=>{const _0x59d02d=_0x130f1d,_0x55cd33=this[_0x59d02d(0xb1)][_0x59d02d(0x136)];_0x4c0cf2?_0x43afbf[_0x59d02d(0xcc)](_0x27a5ce(_0xdc0bc0,_0x59d02d(0x11a))):_0x55cd33&&_0x43afbf[_0x59d02d(0xcc)](_0x27a5ce(_0xdc0bc0,_0x59d02d(0xd0),_0x55cd33),{'politeness':_0x59d02d(0xd8),'isUnsafeHTML':!0x0});}),this[_0x130f1d(0x129)]['on'](_0x130f1d(0x13f),(_0x26d565,_0x4cc04d,_0x305e91)=>{const _0x5ca5a9=_0x130f1d;if(_0x305e91){const _0x5e12f4=this[_0x5ca5a9(0x129)][_0x5ca5a9(0xbf)][_0x5ca5a9(0xc1)];_0x43afbf[_0x5ca5a9(0xcc)](_0x27a5ce(_0xdc0bc0,_0x5ca5a9(0x116),_0x5e12f4));}});}[_0xab209(0xfb)](_0x55a0b3){const _0x4c571e=_0xab209,_0x8ed224=this[_0x4c571e(0xf1)][_0x4c571e(0x143)](_0x55a0b3),_0x15f8f7=this[_0x4c571e(0x144)],_0x3f07f3=_0x15f8f7[_0x4c571e(0x14f)][_0x4c571e(0x12e)][_0x4c571e(0xdc)],_0x43e443=_0x15f8f7[_0x4c571e(0x115)][_0x4c571e(0x143)](_0x4c571e(0xd4)),_0x436171=_0x15f8f7[_0x4c571e(0xc6)][_0x4c571e(0x143)](_0x371533),_0x8da1c1=''+(_0x8ed224[_0x4c571e(0xf2)]!==_0xb63487?_0x8ed224[_0x4c571e(0xe5)]+':\x20':'')+_0x8ed224[_0x4c571e(0xb4)];if(!0x1!==_0x8ed224[_0x4c571e(0xaa)]&&_0x3f07f3[_0x4c571e(0x147)]){const _0x255327=_0x1cf81d(_0x3f07f3[_0x4c571e(0x11d)]())||_0x15f8f7[_0x4c571e(0x14f)][_0x4c571e(0xb2)][_0x4c571e(0xcb)](_0x3f07f3);_0x15f8f7[_0x4c571e(0x14f)][_0x4c571e(0xb3)](_0x470b0c=>{const _0x5f4a92=_0x4c571e;_0x470b0c[_0x5f4a92(0x11c)](_0x255327,'in');});}_0x436171[_0x4c571e(0xb0)](),_0x43e443[_0x4c571e(0xb5)](_0x8ed224[_0x4c571e(0xad)],_0x8da1c1,_0x4c571e(0x13b)+_0x55a0b3);}[_0xab209(0xaf)](_0x24c672,_0x42c666,_0x53ee91,_0x2343a0){const _0xe9a455=_0xab209,_0x1aeef0=this[_0xe9a455(0x144)],_0x3260ee=_0x1aeef0[_0xe9a455(0xfa)],_0x183937=new _0x3319c3(_0x3260ee),_0x701d16=wi(_0x1aeef0,_0x53ee91)[_0xe9a455(0xce)](_0x599539=>_0x599539[_0xe9a455(0x115)][_0xe9a455(0x155)]);0x1===_0x701d16[_0xe9a455(0x155)]?this[_0xe9a455(0xe4)]({'command':_0x24c672,'commands':_0x701d16[0x0][_0xe9a455(0x115)],'parentMenuView':_0x42c666,'onExecute':_0x2343a0})[_0xe9a455(0x146)](_0x74cd38=>_0x183937[_0xe9a455(0x14b)][_0xe9a455(0x111)](_0x74cd38)):_0x701d16[_0xe9a455(0x146)](({groupId:_0x20dc13,groupLabel:_0x25d469,commands:_0x2054e5})=>{const _0x49ffe1=_0xe9a455,_0x3a2f47=new _0x59fe04(_0x3260ee,_0x42c666),_0x19b9b8=new _0x57516b(_0x3260ee),_0x267cfa=new _0x3319c3(_0x3260ee),_0x48a007=this[_0x49ffe1(0xe4)]({'command':_0x24c672,'commands':_0x2054e5,'parentMenuView':_0x19b9b8,'onExecute':_0x2343a0});_0x19b9b8[_0x49ffe1(0x10c)][_0x49ffe1(0xdb)]({'label':_0x25d469||_0x20dc13}),_0x19b9b8[_0x49ffe1(0x108)](_0x49ffe1(0xb5))['to'](_0x42c666),_0x267cfa[_0x49ffe1(0x14b)][_0x49ffe1(0xf8)](_0x48a007),_0x19b9b8[_0x49ffe1(0xfd)][_0x49ffe1(0x151)][_0x49ffe1(0x111)](_0x267cfa),_0x3a2f47[_0x49ffe1(0x151)][_0x49ffe1(0x111)](_0x19b9b8),_0x183937[_0x49ffe1(0x14b)][_0x49ffe1(0x111)](_0x3a2f47);}),_0x42c666[_0xe9a455(0xfd)][_0xe9a455(0x151)][_0xe9a455(0x111)](_0x183937);}[_0xab209(0xe4)]({command:_0x1e1928,commands:_0xa5c85c,parentMenuView:_0x3a4598,onExecute:_0x5b7057}){const _0x3842b2=_0xab209,_0x56ec02=this[_0x3842b2(0x144)],_0x430e4c=_0x56ec02[_0x3842b2(0xfa)];return wi(_0x56ec02,_0xa5c85c)[_0x3842b2(0x128)](_0x4b0674=>{const _0x36fee4=_0x3842b2,_0x1cf59e=new _0x59fe04(_0x430e4c,_0x3a4598),_0x14c848=new _0x3eb8f8(_0x430e4c);return _0x14c848[_0x36fee4(0xdb)]({'label':_0x4b0674[_0x36fee4(0xb4)]}),_0x14c848[_0x36fee4(0x108)](_0x36fee4(0xb5))['to'](_0x3a4598),_0x14c848['on'](_0x36fee4(0xb5),()=>_0x5b7057(_0x4b0674['id'])),_0x14c848[_0x36fee4(0xbb)](_0x36fee4(0xe6))['to'](_0x1e1928,_0x36fee4(0xc2),_0x5dfed1=>_0x5dfed1[_0x36fee4(0xea)](_0x4b0674['id'])),_0x1cf59e[_0x36fee4(0x151)][_0x36fee4(0x111)](_0x14c848),_0x1cf59e;});}}function Ai(_0x235459,_0x10ef43){const _0x162550=_0xab209;return void 0x0!==_0x235459[_0x162550(0x10a)]&&void 0x0===_0x10ef43[_0x162550(0x10a)]?0x1:void 0x0===_0x235459[_0x162550(0x10a)]&&void 0x0!==_0x10ef43[_0x162550(0x10a)]?-0x1:void 0x0!==_0x235459[_0x162550(0x10a)]&&void 0x0!==_0x10ef43[_0x162550(0x10a)]?_0x235459[_0x162550(0x10a)]-_0x10ef43[_0x162550(0x10a)]:0x0;}function wi(_0x5865d9,_0x484a04){const _0x45e269=_0xab209;_0x484a04[_0x45e269(0xec)](Ai);const _0x50de33={},_0x57026c=[];for(const _0x3f7f94 of _0x484a04)if(void 0x0!==_0x3f7f94[_0x45e269(0x10a)]){if(_0x3f7f94[_0x45e269(0x10a)]in _0x50de33)throw new _0xc2c221(_0x45e269(0xe0),_0x5865d9,{'conflictingDefinitions':[_0x3f7f94,_0x50de33[_0x3f7f94[_0x45e269(0x10a)]]]});_0x50de33[_0x3f7f94[_0x45e269(0x10a)]]=_0x3f7f94,_0x57026c[_0x45e269(0xef)](_0x3f7f94[_0x45e269(0x10a)],0x0,_0x3f7f94);}else _0x57026c[_0x45e269(0x120)](_0x3f7f94);return _0x57026c;}
23
+ const _0x51d173=_0x52dd;(function(_0x303e78,_0x1203a0){const _0xa56ff9=_0x52dd,_0xb4a71f=_0x303e78();while(!![]){try{const _0x1d3450=parseInt(_0xa56ff9(0x1a6))/0x1*(-parseInt(_0xa56ff9(0x1ef))/0x2)+-parseInt(_0xa56ff9(0x172))/0x3+parseInt(_0xa56ff9(0x1c6))/0x4+parseInt(_0xa56ff9(0x1b4))/0x5+-parseInt(_0xa56ff9(0x18c))/0x6*(-parseInt(_0xa56ff9(0x15e))/0x7)+parseInt(_0xa56ff9(0x1af))/0x8+-parseInt(_0xa56ff9(0x191))/0x9;if(_0x1d3450===_0x1203a0)break;else _0xb4a71f['push'](_0xb4a71f['shift']());}catch(_0x57d530){_0xb4a71f['push'](_0xb4a71f['shift']());}}}(_0x2e09,0xcaf80));import{Plugin as _0x2a8dd9}from'ckeditor5/src/core.js';import{IconMagicWand as _0x3d9c6e,IconRobotPencil as _0x8767c3}from'ckeditor5/src/icons.js';import{first as _0x1e2d0a,CKEditorError as _0x12258f}from'ckeditor5/src/utils.js';import{createDropdown as _0x2a7741,addMenuToDropdown as _0xcc4b9a,ButtonView as _0x3c1989,MenuBarMenuListItemButtonView as _0x4f37e2,Dialog as _0x13dfa8,DialogViewPosition as _0x2209db,MenuBarMenuView as _0x4b8e9b,MenuBarMenuListView as _0x5d4f66,MenuBarMenuListItemView as _0x3b68a6}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x3f8188,UNGROUPED_COMMANDS_GROUP_ID as _0x903bbb}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x59de53}from'./aiassistantediting.js';import{AIAdapter as _0x4920b5}from'./adapters/aiadapter.js';import{getTranslation as _0x40dd05}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x56c980}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x4cdfe4}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x1dc9fd}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x43bbee}from'./ui/form/aiformtoolbarview.js';import'../../theme/aiassistant/ai.css';import'../../theme/aiassistant/ai-dropdown.css';import'../../theme/aiassistant/ai-form.css';function _0x52dd(_0x2e623,_0x52629b){const _0x2e099a=_0x2e09();return _0x52dd=function(_0x52dd77,_0x292337){_0x52dd77=_0x52dd77-0x156;let _0x5f1389=_0x2e099a[_0x52dd77];return _0x5f1389;},_0x52dd(_0x2e623,_0x52629b);}const w=globalThis[_0x51d173(0x1fb)];import{ClipboardMarkersUtils as _0x28f3a4}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x496268,ViewDataTransfer as _0x5520a4}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x2a8dd9{[_0x51d173(0x157)];[_0x51d173(0x18a)];[_0x51d173(0x16c)];[_0x51d173(0x1dd)];[_0x51d173(0x185)];[_0x51d173(0x193)];[_0x51d173(0x1e5)]='';static get[_0x51d173(0x160)](){const _0xe789a8=_0x51d173;return _0xe789a8(0x1e7);}static get[_0x51d173(0x1f6)](){return!0x0;}static get[_0x51d173(0x197)](){return!0x0;}static get[_0x51d173(0x174)](){return[_0x28f3a4,_0x59de53,_0x4920b5,_0x13dfa8];}constructor(_0x409afc){const _0x2674b2=_0x51d173;super(_0x409afc),_0x409afc[_0x2674b2(0x161)][_0x2674b2(0x196)](_0x2674b2(0x1ac),[_0x2674b2(0x159),_0x2674b2(0x19b),_0x2674b2(0x166)]),_0x409afc[_0x2674b2(0x161)][_0x2674b2(0x196)](_0x2674b2(0x1fc),''),_0x409afc[_0x2674b2(0x161)][_0x2674b2(0x196)](_0x2674b2(0x16d),!0x0),this[_0x2674b2(0x1e5)]=_0x2674b2(0x1a8)+(_0x409afc[_0x2674b2(0x161)][_0x2674b2(0x1de)](_0x2674b2(0x16d))?_0x2674b2(0x202):'');}[_0x51d173(0x1d7)](){const _0x3da7aa=_0x51d173,{editor:_0x2550dd}=this;this[_0x3da7aa(0x185)]=_0x2550dd[_0x3da7aa(0x1b1)][_0x3da7aa(0x1de)](_0x4920b5),this[_0x3da7aa(0x16c)]=_0x2550dd[_0x3da7aa(0x1b1)][_0x3da7aa(0x1de)](_0x13dfa8),this[_0x3da7aa(0x1dd)]=null,this[_0x3da7aa(0x158)]=this[_0x3da7aa(0x1a1)]();const _0x4e8dac=new _0x56c980(_0x2550dd,Array[_0x3da7aa(0x1e4)](this[_0x3da7aa(0x158)][_0x3da7aa(0x18f)]()));_0x2550dd[_0x3da7aa(0x203)][_0x3da7aa(0x17e)](_0x3da7aa(0x18d),_0x4e8dac),_0x2550dd['ui'][_0x3da7aa(0x1ed)][_0x3da7aa(0x17e)](_0x3da7aa(0x179),_0xbdef8b=>{const _0x47a248=_0x3da7aa,_0x4aa693=_0x2a7741(_0xbdef8b);return _0x4aa693[_0x47a248(0x1ab)]({'class':_0x47a248(0x1f8)+this[_0x47a248(0x1e5)]}),_0x4aa693[_0x47a248(0x176)][_0x47a248(0x1ab)]({'label':_0x40dd05(_0xbdef8b,_0x47a248(0x1a2)),'icon':_0x3d9c6e,'tooltip':!0x0}),_0x4aa693['on'](_0x47a248(0x200),_0x38ba29=>this[_0x47a248(0x1ee)](_0x38ba29[_0x47a248(0x16b)]['id'])),_0xcc4b9a(_0x4aa693,_0x2550dd['ui'][_0x47a248(0x201)][_0x47a248(0x1b2)],function(_0x412ed1){const _0x40220c=_0x47a248,_0x5485dc=_0x3f8188(_0x412ed1[_0x40220c(0x161)][_0x40220c(0x1de)](_0x40220c(0x1e0)),_0x412ed1[_0x40220c(0x1be)]),_0x59f22a=U(_0x412ed1,_0x5485dc)[_0x40220c(0x1c5)](_0x1f3a16=>_0x1f3a16[_0x40220c(0x203)][_0x40220c(0x1b3)]);if(0x1===_0x59f22a[_0x40220c(0x1b3)])return U(_0x412ed1,_0x59f22a[0x0][_0x40220c(0x203)])[_0x40220c(0x17b)](_0x4f2bb0=>({'id':_0x4f2bb0['id'],'label':_0x4f2bb0[_0x40220c(0x1ad)]}));return _0x59f22a[_0x40220c(0x17b)](_0x4b5cde=>{const _0x3a2fe9=_0x40220c,{groupId:_0x1999ba,groupLabel:_0x30568f,commands:_0xbea635}=_0x4b5cde,_0x2c0f76=U(_0x412ed1,_0xbea635)[_0x3a2fe9(0x17b)](_0x733df=>({'id':_0x733df['id'],'label':_0x733df[_0x3a2fe9(0x1ad)]}));return{'id':_0x1999ba,'menu':_0x30568f||_0x1999ba,'children':_0x2c0f76};});}(_0x2550dd),{'ariaLabel':_0x40dd05(_0xbdef8b,_0x47a248(0x1a2))}),_0x4aa693[_0x47a248(0x175)][_0x47a248(0x1ea)]=_0x47a248(0x1f8)+this[_0x47a248(0x1e5)],_0x4e8dac['on'](_0x47a248(0x180),_0x148ec3),_0x4aa693[_0x47a248(0x175)][_0x47a248(0x1c1)](_0x47a248(0x182),_0x148ec3),_0x4aa693;function _0x148ec3(){const _0x107b2e=_0x47a248;_0x4aa693[_0x107b2e(0x1bc)]=_0x4e8dac[_0x107b2e(0x162)][_0x107b2e(0x1b3)]>0x0;for(const _0x54db81 of _0x4aa693[_0x107b2e(0x175)][_0x107b2e(0x1b8)])_0x54db81[_0x107b2e(0x1bc)]=_0x4e8dac[_0x107b2e(0x162)][_0x107b2e(0x192)](_0x54db81['id']);}}),_0x2550dd['ui'][_0x3da7aa(0x1ed)][_0x3da7aa(0x17e)](_0x3da7aa(0x1ba),_0x299c55=>{const _0x1725f2=_0x3da7aa,_0x579fc0=new _0x4b8e9b(_0x299c55);_0x579fc0[_0x1725f2(0x176)][_0x1725f2(0x1ab)]({'label':_0x40dd05(_0x299c55,_0x1725f2(0x1a2)),'icon':_0x3d9c6e}),_0x579fc0[_0x1725f2(0x171)](_0x1725f2(0x1bc))['to'](_0x4e8dac,_0x1725f2(0x162),_0x512cd4=>_0x512cd4[_0x1725f2(0x1b3)]>0x0);const _0x1bb630=_0x3f8188(_0x2550dd[_0x1725f2(0x161)][_0x1725f2(0x1de)](_0x1725f2(0x1e0)),_0x299c55);return this[_0x1725f2(0x1bf)](_0x4e8dac,_0x579fc0,_0x1bb630,_0x29f5fb=>this[_0x1725f2(0x1ee)](_0x29f5fb)),_0x579fc0;}),_0x2550dd['ui'][_0x3da7aa(0x1ed)][_0x3da7aa(0x17e)](_0x3da7aa(0x15f),()=>{const _0x45bbe0=_0x3da7aa,_0x147127=this[_0x45bbe0(0x1f2)](_0x3c1989);return _0x147127[_0x45bbe0(0x1ab)]({'tooltip':!0x0,'class':_0x45bbe0(0x1e9)+this[_0x45bbe0(0x1e5)]}),_0x147127;}),_0x2550dd['ui'][_0x3da7aa(0x1ed)][_0x3da7aa(0x17e)](_0x3da7aa(0x1c8),()=>{const _0x4a0bbb=_0x3da7aa,_0x5a6c67=this[_0x4a0bbb(0x1f2)](_0x4f37e2);return _0x5a6c67[_0x4a0bbb(0x1ab)]({'role':_0x4a0bbb(0x188)}),_0x5a6c67;}),this[_0x3da7aa(0x157)]=this[_0x3da7aa(0x19f)][_0x3da7aa(0x161)][_0x3da7aa(0x1de)](_0x3da7aa(0x157));const _0x187101=this[_0x3da7aa(0x19f)];this[_0x3da7aa(0x18a)]=setInterval(()=>{const _0x4782bd=_0x3da7aa;let _0x1e58c2;for(const _0x1f3ac0 in _0x187101){const _0x18ab08=_0x1f3ac0,_0x34e7a7=_0x187101[_0x18ab08];if(_0x4782bd(0x15c)==_0x34e7a7||_0x4782bd(0x19c)==_0x34e7a7||_0x4782bd(0x1d6)==_0x34e7a7||_0x4782bd(0x1f4)==_0x34e7a7||_0x4782bd(0x1cf)==_0x34e7a7||_0x4782bd(0x183)==_0x34e7a7||_0x4782bd(0x1fd)==_0x34e7a7||_0x4782bd(0x1cd)==_0x34e7a7){delete _0x187101[_0x18ab08],_0x1e58c2=_0x34e7a7,clearInterval(this[_0x4782bd(0x18a)]),this[_0x4782bd(0x18a)]=void 0x0;break;}}_0x4782bd(0x19c)==_0x1e58c2&&_0x187101[_0x4782bd(0x19a)](_0x4782bd(0x167)),_0x4782bd(0x1d6)==_0x1e58c2&&_0x187101[_0x4782bd(0x19a)](_0x4782bd(0x1e1)),_0x4782bd(0x1f4)==_0x1e58c2&&_0x187101[_0x4782bd(0x19a)](_0x4782bd(0x1fa)),_0x4782bd(0x1cf)==_0x1e58c2&&_0x187101[_0x4782bd(0x19a)](_0x4782bd(0x1ec),_0x4782bd(0x1ae)),_0x4782bd(0x183)==_0x1e58c2&&_0x187101[_0x4782bd(0x19a)](_0x4782bd(0x1ce)),_0x4782bd(0x1fd)==_0x1e58c2&&_0x187101[_0x4782bd(0x19a)](_0x4782bd(0x17a)),_0x4782bd(0x1cd)==_0x1e58c2&&_0x187101[_0x4782bd(0x19a)](_0x4782bd(0x186));},0x3e8);}[_0x51d173(0x1f1)](){const _0x42275b=_0x51d173;super[_0x42275b(0x1f1)](),this[_0x42275b(0x18a)]&&clearInterval(this[_0x42275b(0x18a)]);}[_0x51d173(0x194)](_0x38b4b2='',_0x188a57='',_0x3c3921=_0x51d173(0x1dc)){const _0x24088c=_0x51d173,_0x3c416d=this[_0x24088c(0x19f)],_0x54058a=_0x3c416d[_0x24088c(0x1f0)][_0x24088c(0x201)],_0x1d2354=_0x3c416d[_0x24088c(0x1b1)][_0x24088c(0x1de)](_0x59de53),_0x5b7847=_0x3c416d[_0x24088c(0x1b1)][_0x24088c(0x1de)](_0x28f3a4);_0x1d2354[_0x24088c(0x1c0)]();const _0x47c7d8=new w(),_0xa20ed9=new ClipboardEvent(_0x24088c(0x1eb),{'clipboardData':_0x47c7d8}),_0x2fb425=new _0x5520a4(_0x47c7d8),_0x509591=new _0x496268(_0x54058a,_0xa20ed9,{'dataTransfer':_0x2fb425});_0x5b7847[_0x24088c(0x189)](_0x24088c(0x1b6),()=>{const _0x1cf4d2=_0x24088c;_0x54058a[_0x1cf4d2(0x17d)][_0x1cf4d2(0x190)](_0x1cf4d2(0x1eb),_0x509591);}),this[_0x24088c(0x1dd)]||(this[_0x24088c(0x1bd)](),this[_0x24088c(0x193)]=new _0x4cdfe4(_0x3c416d,this[_0x24088c(0x185)][_0x24088c(0x173)],this[_0x24088c(0x1dd)]));let _0x2f1f4b=_0x2fb425[_0x24088c(0x1c2)](_0x24088c(0x16e));const _0xd9209a=_0x3c416d[_0x24088c(0x1a3)][_0x24088c(0x17d)][_0x24088c(0x1b9)],_0x484ef8=Array[_0x24088c(0x1e4)](_0xd9209a[_0x24088c(0x17c)]());0x1===_0x484ef8[_0x24088c(0x1b3)]&&_0x484ef8[0x0][_0x24088c(0x1bb)]&&!_0xd9209a[_0x24088c(0x1cc)]()&&''!==_0x2f1f4b[_0x24088c(0x181)](/&nbsp;/g,'')[_0x24088c(0x1ff)]()&&(_0x2f1f4b=_0x24088c(0x17f)+_0x2f1f4b+_0x24088c(0x1d3)),this[_0x24088c(0x193)][_0x24088c(0x169)]({'actionId':_0x3c3921,'query':_0x38b4b2,'htmlContent':_0x2f1f4b,'label':_0x188a57,'mainActionLabel':_0x43bbee[_0x3c416d[_0x24088c(0x1a3)][_0x24088c(0x17d)][_0x24088c(0x1b9)][_0x24088c(0x1c4)]?_0x24088c(0x1c9):_0x24088c(0x1a5)]}),_0x24088c(0x15f)!==this[_0x24088c(0x16c)]['id']?this[_0x24088c(0x16c)][_0x24088c(0x1cb)]({'id':_0x24088c(0x15f),'icon':_0x8767c3,'title':_0x40dd05(this[_0x24088c(0x19f)][_0x24088c(0x1be)],_0x24088c(0x1f7)),'content':this[_0x24088c(0x1dd)],'position':_0x2209db[_0x24088c(0x163)],'onShow':()=>{const _0x552867=_0x24088c;this[_0x552867(0x1dd)][_0x552867(0x199)]();},'onHide':()=>{const _0x40f672=_0x24088c;this[_0x40f672(0x193)][_0x40f672(0x156)](),_0x1d2354[_0x40f672(0x15d)]();}}):this[_0x24088c(0x16c)][_0x24088c(0x201)][_0x24088c(0x1d0)]||this[_0x24088c(0x16c)][_0x24088c(0x201)][_0x24088c(0x1e8)]();}[_0x51d173(0x1fe)](){const _0x1bf226=_0x51d173;this[_0x1bf226(0x16c)][_0x1bf226(0x170)]();}[_0x51d173(0x1a1)](){const _0x4997ee=_0x51d173,_0x415c9d=new Map(),_0x556edf=_0x3f8188(this[_0x4997ee(0x19f)][_0x4997ee(0x161)][_0x4997ee(0x1de)](_0x4997ee(0x1e0)),this[_0x4997ee(0x19f)][_0x4997ee(0x1be)]);for(const _0x429f47 of _0x556edf)for(const _0x3fab5d of _0x429f47[_0x4997ee(0x203)])_0x415c9d[_0x4997ee(0x1ab)](_0x3fab5d['id'],{..._0x3fab5d,'groupId':_0x429f47[_0x4997ee(0x19d)],'groupLabel':_0x429f47[_0x4997ee(0x1f3)]||_0x429f47[_0x4997ee(0x19d)]});return _0x415c9d;}[_0x51d173(0x1f2)](_0x2ef1a9){const _0x2ed8ff=_0x51d173,_0x3581b3=this[_0x2ed8ff(0x19f)],_0x25824b=_0x3581b3[_0x2ed8ff(0x203)][_0x2ed8ff(0x1de)](_0x2ed8ff(0x18d)),_0x54b798=new _0x2ef1a9(_0x3581b3[_0x2ed8ff(0x1be)]);return _0x54b798[_0x2ed8ff(0x1ab)]({'label':_0x40dd05(_0x3581b3[_0x2ed8ff(0x1be)],_0x2ed8ff(0x1f7)),'icon':_0x8767c3,'isToggleable':!0x0}),_0x54b798[_0x2ed8ff(0x171)](_0x2ed8ff(0x1bc))['to'](_0x25824b),_0x54b798[_0x2ed8ff(0x171)](_0x2ed8ff(0x1db))['to'](this[_0x2ed8ff(0x16c)],'id',_0x16b734=>_0x2ed8ff(0x15f)===_0x16b734),this[_0x2ed8ff(0x1f9)](_0x54b798,_0x2ed8ff(0x200),()=>{const _0x52b3c0=_0x2ed8ff;_0x54b798[_0x52b3c0(0x1db)]?this[_0x52b3c0(0x1fe)]():_0x25824b[_0x52b3c0(0x200)]();}),_0x54b798;}[_0x51d173(0x1bd)](){const _0x3b7579=_0x51d173,_0x2c7f92=this[_0x3b7579(0x19f)][_0x3b7579(0x1b1)][_0x3b7579(0x1de)](_0x59de53);this[_0x3b7579(0x1dd)]=new _0x1dc9fd(this[_0x3b7579(0x19f)][_0x3b7579(0x1be)],this[_0x3b7579(0x1e5)],this[_0x3b7579(0x19f)][_0x3b7579(0x161)][_0x3b7579(0x1de)](_0x3b7579(0x1fc))),this[_0x3b7579(0x1dd)]['on'](_0x3b7579(0x1d9),()=>{const _0x25c02c=_0x3b7579;this[_0x25c02c(0x16c)][_0x25c02c(0x201)][_0x25c02c(0x1d0)]||this[_0x25c02c(0x16c)][_0x25c02c(0x201)][_0x25c02c(0x1e8)]();}),this[_0x3b7579(0x1dd)][_0x3b7579(0x177)][_0x3b7579(0x168)][_0x3b7579(0x1a4)]['on'](_0x3b7579(0x1b5),()=>{const _0x4ae734=_0x3b7579;this[_0x4ae734(0x16c)][_0x4ae734(0x201)][_0x4ae734(0x1d0)]||this[_0x4ae734(0x16c)][_0x4ae734(0x201)][_0x4ae734(0x1e8)]();}),this[_0x3b7579(0x1f9)](this[_0x3b7579(0x1dd)],_0x3b7579(0x1df),()=>{const _0x5705c6=_0x3b7579;_0x2c7f92[_0x5705c6(0x1b0)](this[_0x5705c6(0x193)][_0x5705c6(0x18e)]),this[_0x5705c6(0x1fe)]();}),this[_0x3b7579(0x1f9)](this[_0x3b7579(0x1dd)],_0x3b7579(0x1aa),()=>{const _0x82c396=_0x3b7579;_0x2c7f92[_0x82c396(0x1aa)](this[_0x82c396(0x193)][_0x82c396(0x18e)]),this[_0x82c396(0x1fe)]();}),this[_0x3b7579(0x1e2)]();}[_0x51d173(0x1e2)](){const _0x459220=_0x51d173,{locale:_0x56e1ec,ui:{ariaLiveAnnouncer:_0x2fc0f8}}=this[_0x459220(0x19f)];this[_0x459220(0x1dd)][_0x459220(0x1d4)]['on'](_0x459220(0x16f),(_0x4fbcbc,_0xb1b8fb,_0x6c43b9)=>{const _0x1770b4=_0x459220,_0x380069=this[_0x1770b4(0x193)][_0x1770b4(0x18e)];_0x6c43b9?_0x2fc0f8[_0x1770b4(0x187)](_0x40dd05(_0x56e1ec,_0x1770b4(0x1b7))):_0x380069&&_0x2fc0f8[_0x1770b4(0x187)](_0x40dd05(_0x56e1ec,_0x1770b4(0x1a7),_0x380069),{'politeness':_0x1770b4(0x15a),'isUnsafeHTML':!0x0});}),this[_0x459220(0x1dd)]['on'](_0x459220(0x1ca),(_0x26f113,_0x1221cb,_0x472cb4)=>{const _0x2fd68d=_0x459220;if(_0x472cb4){const _0x2231ff=this[_0x2fd68d(0x1dd)][_0x2fd68d(0x164)][_0x2fd68d(0x18b)];_0x2fc0f8[_0x2fd68d(0x187)](_0x40dd05(_0x56e1ec,_0x2fd68d(0x1e3),_0x2231ff));}});}[_0x51d173(0x1ee)](_0x782b53){const _0x4a7a30=_0x51d173,_0x225489=this[_0x4a7a30(0x158)][_0x4a7a30(0x1de)](_0x782b53),_0x2b0846=this[_0x4a7a30(0x19f)],_0x1199e2=_0x2b0846[_0x4a7a30(0x1a3)][_0x4a7a30(0x17d)][_0x4a7a30(0x1b9)],_0x5db4a2=_0x2b0846[_0x4a7a30(0x203)][_0x4a7a30(0x1de)](_0x4a7a30(0x18d)),_0x5cb92b=_0x2b0846[_0x4a7a30(0x1b1)][_0x4a7a30(0x1de)](_0x59de53),_0x40e6f1=''+(_0x225489[_0x4a7a30(0x19d)]!==_0x903bbb?_0x225489[_0x4a7a30(0x1f3)]+':\x20':'')+_0x225489[_0x4a7a30(0x1ad)];if(!0x1!==_0x225489[_0x4a7a30(0x1a9)]&&_0x1199e2[_0x4a7a30(0x1c4)]){const _0xae83ee=_0x1e2d0a(_0x1199e2[_0x4a7a30(0x1d2)]())||_0x2b0846[_0x4a7a30(0x1a3)][_0x4a7a30(0x1da)][_0x4a7a30(0x19e)](_0x1199e2);_0x2b0846[_0x4a7a30(0x1a3)][_0x4a7a30(0x195)](_0x102cee=>{const _0xc3413b=_0x4a7a30;_0x102cee[_0xc3413b(0x1e6)](_0xae83ee,'in');});}_0x5cb92b[_0x4a7a30(0x1c0)](),_0x5db4a2[_0x4a7a30(0x200)](_0x225489[_0x4a7a30(0x184)],_0x40e6f1,_0x4a7a30(0x1c3)+_0x782b53);}[_0x51d173(0x1bf)](_0x38223c,_0x1d6c17,_0x21c431,_0x2128ba){const _0x4d73b8=_0x51d173,_0x4a5b4f=this[_0x4d73b8(0x19f)],_0x1d0907=_0x4a5b4f[_0x4d73b8(0x1be)],_0x60f6c3=new _0x5d4f66(_0x1d0907),_0x5263ea=U(_0x4a5b4f,_0x21c431)[_0x4d73b8(0x1c5)](_0x547bd1=>_0x547bd1[_0x4d73b8(0x203)][_0x4d73b8(0x1b3)]);0x1===_0x5263ea[_0x4d73b8(0x1b3)]?this[_0x4d73b8(0x1d1)]({'command':_0x38223c,'commands':_0x5263ea[0x0][_0x4d73b8(0x203)],'parentMenuView':_0x1d6c17,'onExecute':_0x2128ba})[_0x4d73b8(0x204)](_0x5769e6=>_0x60f6c3[_0x4d73b8(0x1f5)][_0x4d73b8(0x17e)](_0x5769e6)):_0x5263ea[_0x4d73b8(0x204)](({groupId:_0x139b63,groupLabel:_0x329c0d,commands:_0x52f4f8})=>{const _0x41e96b=_0x4d73b8,_0x38bf8f=new _0x3b68a6(_0x1d0907,_0x1d6c17),_0x28b8a0=new _0x4b8e9b(_0x1d0907),_0x11c1a4=new _0x5d4f66(_0x1d0907),_0x1c5b6b=this[_0x41e96b(0x1d1)]({'command':_0x38223c,'commands':_0x52f4f8,'parentMenuView':_0x28b8a0,'onExecute':_0x2128ba});_0x28b8a0[_0x41e96b(0x176)][_0x41e96b(0x1ab)]({'label':_0x329c0d||_0x139b63}),_0x28b8a0[_0x41e96b(0x198)](_0x41e96b(0x200))['to'](_0x1d6c17),_0x11c1a4[_0x41e96b(0x1f5)][_0x41e96b(0x178)](_0x1c5b6b),_0x28b8a0[_0x41e96b(0x16a)][_0x41e96b(0x1d5)][_0x41e96b(0x17e)](_0x11c1a4),_0x38bf8f[_0x41e96b(0x1d5)][_0x41e96b(0x17e)](_0x28b8a0),_0x60f6c3[_0x41e96b(0x1f5)][_0x41e96b(0x17e)](_0x38bf8f);}),_0x1d6c17[_0x4d73b8(0x16a)][_0x4d73b8(0x1d5)][_0x4d73b8(0x17e)](_0x60f6c3);}[_0x51d173(0x1d1)]({command:_0xd51533,commands:_0x1d5ec1,parentMenuView:_0x53e128,onExecute:_0x402339}){const _0x97d8c5=_0x51d173,_0x553a0f=this[_0x97d8c5(0x19f)],_0x2b7d86=_0x553a0f[_0x97d8c5(0x1be)];return U(_0x553a0f,_0x1d5ec1)[_0x97d8c5(0x17b)](_0x58809e=>{const _0x2b3794=_0x97d8c5,_0x2c65de=new _0x3b68a6(_0x2b7d86,_0x53e128),_0x3508f9=new _0x4f37e2(_0x2b7d86);return _0x3508f9[_0x2b3794(0x1ab)]({'label':_0x58809e[_0x2b3794(0x1ad)]}),_0x3508f9[_0x2b3794(0x198)](_0x2b3794(0x200))['to'](_0x53e128),_0x3508f9['on'](_0x2b3794(0x200),()=>_0x402339(_0x58809e['id'])),_0x3508f9[_0x2b3794(0x171)](_0x2b3794(0x1bc))['to'](_0xd51533,_0x2b3794(0x162),_0x4811f7=>_0x4811f7[_0x2b3794(0x192)](_0x58809e['id'])),_0x2c65de[_0x2b3794(0x1d5)][_0x2b3794(0x17e)](_0x3508f9),_0x2c65de;});}}function T(_0x3e8e31,_0x39b566){const _0x204cd3=_0x51d173;return void 0x0!==_0x3e8e31[_0x204cd3(0x1d8)]&&void 0x0===_0x39b566[_0x204cd3(0x1d8)]?0x1:void 0x0===_0x3e8e31[_0x204cd3(0x1d8)]&&void 0x0!==_0x39b566[_0x204cd3(0x1d8)]?-0x1:void 0x0!==_0x3e8e31[_0x204cd3(0x1d8)]&&void 0x0!==_0x39b566[_0x204cd3(0x1d8)]?_0x3e8e31[_0x204cd3(0x1d8)]-_0x39b566[_0x204cd3(0x1d8)]:0x0;}function _0x2e09(){const _0x17bdf6=['get','replaceContent','ai.assistant.commands','expired','_initAriaAiStatusChangeAnnouncements','Error\x20during\x20AI\x20content\x20generation:\x20%0','from','_uiCssClasses','setSelection','AIAssistantUI','updatePosition','ck-ai-assistant-button\x20','menuPanelClass','copy','featureNotAllowed','componentFactory','_onExecute','214mMwGQW','editing','destroy','_createAIAssistantUIButton','groupLabel','aiLicenseKeyDomainLimit','items','isOfficialPlugin','AI\x20Assistant','ck-ai-commands-dropdown\x20','listenTo','domainLimit','DataTransfer','ai.assistant.contentAreaCssClass','aiLicenseKeyTrialLimit','hideUI','trim','execute','view','\x20ck-ai-assistant-ui_theme','commands','forEach','reset','licenseKey','_commandDefinitions','media','polite','ai-commands-config-order-collision','aiLicenseKeyValid','hideFakeVisualSelection','21fBktyo','aiAssistant','pluginName','config','enabledCommandsIds','EDITOR_TOP_SIDE','errorView','push','tableOfContents','invalid','queryView','updateView','panelView','source','_dialog','ai.assistant.useTheme','text/html','change:isProcessing','hide','bind','2251350DUDqnK','textAdapter','requires','menuView','buttonView','promptView','addMany','aiCommands','trialLimit','map','getRanges','document','add','<p>','change:enabledCommandsIds','replace','render','aiLicenseKeyEvaluationLimit','prompt','_aiAdapter','usageLimit','announce','menuitemcheckbox','_forceMarkersCopy','_licenseKeyCheckInterval','text','1397514MdgjCZ','showAIAssistant','currentContext','values','fire','5725224XgFPPK','includes','_aiAssistantController','showUI','change','define','isPremiumPlugin','delegate','focus','_showLicenseError','rawHtml','aiLicenseKeyInvalid','groupId','getLimitElement','editor','sort','_getResolvedCommandsDefinitions','AI\x20Commands','model','fieldView','REPLACE','8159aznoHY','Generated\x20content:\x20%0','ck-ai-assistant-ui','requiresContent','insertContentBelow','set','ai.assistant.disabledElements','label','AIAssistant','2292296StjULs','insertContent','plugins','body','length','6739010GJYlLu','update','comment','AI\x20is\x20writing','buttons','selection','menuBar:aiCommands','isFlat','isEnabled','_initView','locale','_populateMenuBarMenu','showFakeVisualSelection','once','getData','command:','isCollapsed','filter','3031452LxPKbx','splice','menuBar:aiAssistant','INSERT','change:isError','show','getSelectedElement','aiLicenseKeyUsageLimit','evaluationLimit','aiLicenseKeyNotAllowed','wasMoved','_getMenuBarGroupButtons','getSelectedBlocks','</p>','contentArea','children','aiLicenseKeyExpired','init','order','change:value','schema','isOn','custom','_formView'];_0x2e09=function(){return _0x17bdf6;};return _0x2e09();}function U(_0x4c7cea,_0xbcf6c8){const _0x4f2b05=_0x51d173;_0xbcf6c8[_0x4f2b05(0x1a0)](T);const _0x3bdd2f={},_0x3b4b5f=[];for(const _0x2e9edd of _0xbcf6c8)if(void 0x0!==_0x2e9edd[_0x4f2b05(0x1d8)]){if(_0x2e9edd[_0x4f2b05(0x1d8)]in _0x3bdd2f)throw new _0x12258f(_0x4f2b05(0x15b),_0x4c7cea,{'conflictingDefinitions':[_0x2e9edd,_0x3bdd2f[_0x2e9edd[_0x4f2b05(0x1d8)]]]});_0x3bdd2f[_0x2e9edd[_0x4f2b05(0x1d8)]]=_0x2e9edd,_0x3b4b5f[_0x4f2b05(0x1c7)](_0x2e9edd[_0x4f2b05(0x1d8)],0x0,_0x2e9edd);}else _0x3b4b5f[_0x4f2b05(0x165)](_0x2e9edd);return _0x3b4b5f;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x3aa0ac,_0x559491){var _0x10676f=_0x1437,_0x5d5d28=_0x3aa0ac();while(!![]){try{var _0x69aa22=parseInt(_0x10676f(0x193))/0x1*(parseInt(_0x10676f(0x190))/0x2)+parseInt(_0x10676f(0x197))/0x3*(-parseInt(_0x10676f(0x194))/0x4)+parseInt(_0x10676f(0x18f))/0x5*(-parseInt(_0x10676f(0x195))/0x6)+-parseInt(_0x10676f(0x18e))/0x7+parseInt(_0x10676f(0x18d))/0x8*(parseInt(_0x10676f(0x196))/0x9)+-parseInt(_0x10676f(0x191))/0xa+parseInt(_0x10676f(0x192))/0xb;if(_0x69aa22===_0x559491)break;else _0x5d5d28['push'](_0x5d5d28['shift']());}catch(_0x52aa6f){_0x5d5d28['push'](_0x5d5d28['shift']());}}}(_0x5aa0,0xc26c3));function _0x1437(_0x5cb898,_0x4785e6){var _0x5aa0ad=_0x5aa0();return _0x1437=function(_0x143704,_0x346957){_0x143704=_0x143704-0x18d;var _0x26b244=_0x5aa0ad[_0x143704];return _0x26b244;},_0x1437(_0x5cb898,_0x4785e6);}import{CKEditorError as _0x5f3d74}from'ckeditor5/src/utils.js';function _0x5aa0(){var _0x460a5d=['20684510oOHaJm','5312QgvJoX','278964FJhbxg','42lruXgC','9DtjmiF','33CQytCQ','9771640sWbIUD','3294550fXtziA','692330jUlmAY','380CKWXCN','11077270NbPukF'];_0x5aa0=function(){return _0x460a5d;};return _0x5aa0();}
23
+ (function(_0x571467,_0x4824c1){var _0x521ff2=_0x5adf,_0x5b190e=_0x571467();while(!![]){try{var _0x5f2483=parseInt(_0x521ff2(0x97))/0x1+parseInt(_0x521ff2(0x9f))/0x2+-parseInt(_0x521ff2(0x9e))/0x3+parseInt(_0x521ff2(0x9b))/0x4+-parseInt(_0x521ff2(0x9c))/0x5*(-parseInt(_0x521ff2(0x9a))/0x6)+parseInt(_0x521ff2(0x98))/0x7*(parseInt(_0x521ff2(0x99))/0x8)+parseInt(_0x521ff2(0x9d))/0x9*(-parseInt(_0x521ff2(0xa0))/0xa);if(_0x5f2483===_0x4824c1)break;else _0x5b190e['push'](_0x5b190e['shift']());}catch(_0x371e3b){_0x5b190e['push'](_0x5b190e['shift']());}}}(_0x3975,0xa81fe));function _0x5adf(_0x5c2c39,_0x1e80f5){var _0x3975ad=_0x3975();return _0x5adf=function(_0x5adfa4,_0xc22bd1){_0x5adfa4=_0x5adfa4-0x97;var _0x58e10a=_0x3975ad[_0x5adfa4];return _0x58e10a;},_0x5adf(_0x5c2c39,_0x1e80f5);}function _0x3975(){var _0x4a0dc8=['182021sCwHeQ','104WrulbP','540FHsWfF','4904100jENebp','40005oCLCZw','27qAwsDf','681741Cyhjij','2032428hRtCoX','9777030DtrpkW','548626dWFDpp'];_0x3975=function(){return _0x4a0dc8;};return _0x3975();}import{CKEditorError as _0x251e63}from'ckeditor5/src/utils.js';
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x59ef(_0x2636c4,_0x27b1fb){const _0x202fd5=_0x202f();return _0x59ef=function(_0x59ef78,_0x1d63c4){_0x59ef78=_0x59ef78-0x8c;let _0x1d9e69=_0x202fd5[_0x59ef78];return _0x1d9e69;},_0x59ef(_0x2636c4,_0x27b1fb);}const _0x5d7da1=_0x59ef;(function(_0x2c1c22,_0x185280){const _0x1307b7=_0x59ef,_0x51d493=_0x2c1c22();while(!![]){try{const _0x4cd8ad=-parseInt(_0x1307b7(0xb2))/0x1+-parseInt(_0x1307b7(0xe5))/0x2*(-parseInt(_0x1307b7(0x95))/0x3)+-parseInt(_0x1307b7(0x98))/0x4+parseInt(_0x1307b7(0x9d))/0x5+parseInt(_0x1307b7(0xd0))/0x6+-parseInt(_0x1307b7(0x9e))/0x7*(-parseInt(_0x1307b7(0xa9))/0x8)+-parseInt(_0x1307b7(0xba))/0x9;if(_0x4cd8ad===_0x185280)break;else _0x51d493['push'](_0x51d493['shift']());}catch(_0x4297b9){_0x51d493['push'](_0x51d493['shift']());}}}(_0x202f,0x9925e));import{ObservableMixin as _0x12ff9b}from'ckeditor5/src/utils.js';import{AIRequestError as _0x3442c8}from'../adapters/aiadapter.js';import{Matcher as _0x31ad4d,ViewUpcastWriter as _0x5e4fa8}from'ckeditor5/src/engine.js';const fs=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');function _0x202f(){const _0xeb5ac9=['previousLabel','config','rename','listenTo','stringify','_stripMarkdownSyntax','ai.assistant.preserveComments','_sanitizeHTML','childNodes','previousActionId','1503240TLRhPj','_domParser','destroy','push','currentContext','editing','domConverter','makeRequest','trim','972055jHKXoh','data','textAdapter','_normalizeResponseHeadings','nodeType','catch','finally','set','9541548BtDTyT','reset','```html','get','finishProcessing','viewToDom','render','previousContext','currentResponse','element','markers','tryAgainEvent','initialContext','once','from','updateView','prompt','previousQuery','view','mainAction','parseFromString','isRendered','2046606KHgQBz','htmlProcessor','toView','clear','```','editor','_parseAndNormalizeContent','innerHTML','length','stopProcessing','div','startProcessing','remove','message','toModel','startsWith','document','substring','_sanitizationContainer','stopListening','body','1036286ldiBND','ELEMENT_NODE','match','processor','serializeToString','handleError','_handleQuery','name','abort','querySelector','value','isProcessing','setContentOf','<h1></h1>','reverse','createElement','endsWith','exec','_isH1TagSupportEnabled','6mYpOlw','_xmlSerializer','then','3476916MEcEsn','custom','set:currentContext','submitPrompt','text/html','6059190KQjPxN','35qYfAIR'];_0x202f=function(){return _0xeb5ac9;};return _0x202f();}export class AIAssistantController extends/* #__PURE__ -- @preserve */
24
- _0x12ff9b(){[_0x5d7da1(0xd5)];[_0x5d7da1(0xb4)];[_0x5d7da1(0xcc)];[_0x5d7da1(0xe2)];[_0x5d7da1(0xaa)];[_0x5d7da1(0x96)];constructor(_0x245f8a,_0x3348fb,_0x237376){const _0x408ec0=_0x5d7da1;super(),this[_0x408ec0(0xd5)]=_0x245f8a,this[_0x408ec0(0xb4)]=_0x3348fb,this[_0x408ec0(0xe2)]=document[_0x408ec0(0x91)](_0x408ec0(0xda)),this[_0x408ec0(0xaa)]=new DOMParser(),this[_0x408ec0(0x96)]=new XMLSerializer(),this[_0x408ec0(0xcc)]=_0x237376,this[_0x408ec0(0xb9)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x408ec0(0x9a),(_0x441644,_0x1a41ed,_0x22c180)=>{const _0x1f9f44=_0x408ec0;this[_0x1f9f44(0xcc)][_0x1f9f44(0x8c)]=this[_0x1f9f44(0xa6)](_0x22c180);}),this[_0x408ec0(0xa2)](this[_0x408ec0(0xcc)],_0x408ec0(0x9b),(_0x23b15f,_0x50a046)=>{const _0x2fa79f=_0x408ec0,_0x201a58=this[_0x2fa79f(0xad)]||this[_0x2fa79f(0xc6)];this[_0x2fa79f(0xeb)](_0x50a046,_0x201a58,_0x2fa79f(0x99));}),this[_0x408ec0(0xa2)](this[_0x408ec0(0xcc)],_0x408ec0(0xc5),()=>{const _0x4f34d4=_0x408ec0;this[_0x4f34d4(0xcc)][_0x4f34d4(0xca)]=this[_0x4f34d4(0x9f)],this[_0x4f34d4(0xeb)](this[_0x4f34d4(0xcb)],this[_0x4f34d4(0xc1)],this[_0x4f34d4(0xa8)],this[_0x4f34d4(0x9f)]);}),this[_0x408ec0(0xa2)](this[_0x408ec0(0xcc)],_0x408ec0(0xd9),()=>{const _0x4fefaf=_0x408ec0;this[_0x4fefaf(0xd9)]();});}[_0x5d7da1(0xab)](){const _0x2139f0=_0x5d7da1;this[_0x2139f0(0xe3)]();}async[_0x5d7da1(0xc9)]({actionId:_0x3482f3,query:_0x3a2dd1,htmlContent:_0x440ba5,label:_0x5aaf31,mainActionLabel:_0x4f3684}){const _0x11d5d5=_0x5d7da1;this[_0x11d5d5(0xcc)][_0x11d5d5(0xca)]=_0x5aaf31,this[_0x11d5d5(0xcc)][_0x11d5d5(0xcd)]=_0x4f3684,this[_0x11d5d5(0xc6)]=_0x440ba5,_0x3a2dd1&&(this[_0x11d5d5(0xcc)][_0x11d5d5(0xcf)]?this[_0x11d5d5(0xeb)](_0x3a2dd1,_0x440ba5,_0x3482f3,_0x5aaf31):this[_0x11d5d5(0xcc)][_0x11d5d5(0xc7)](_0x11d5d5(0xc0),()=>{const _0x203662=_0x11d5d5;this[_0x203662(0xeb)](_0x3a2dd1,_0x440ba5,_0x3482f3,_0x5aaf31);}));}[_0x5d7da1(0xd9)](){const _0x317379=_0x5d7da1;this[_0x317379(0x8d)]&&(this[_0x317379(0x8d)]=!0x1,this[_0x317379(0xcc)][_0x317379(0xbe)](),this[_0x317379(0xb4)][_0x317379(0xed)]());}[_0x5d7da1(0xbb)](){const _0x13a4ea=_0x5d7da1;this[_0x13a4ea(0xc6)]='',this[_0x13a4ea(0xad)]='',this[_0x13a4ea(0xc2)]='',this[_0x13a4ea(0xc1)]='',this[_0x13a4ea(0xcb)]='',this[_0x13a4ea(0x9f)]='',this[_0x13a4ea(0xa8)]=void 0x0,this[_0x13a4ea(0xcc)][_0x13a4ea(0xbb)](),this[_0x13a4ea(0xd9)]();}async[_0x5d7da1(0xeb)](_0xff4565,_0x45c714,_0x254ac3,_0x581622){const _0xb6e3fb=_0x5d7da1;return this[_0xb6e3fb(0x8d)]=!0x0,this[_0xb6e3fb(0xcc)][_0xb6e3fb(0xdb)](),this[_0xb6e3fb(0xc1)]=_0x45c714,this[_0xb6e3fb(0xcb)]=_0xff4565,this[_0xb6e3fb(0x9f)]=_0x581622||_0xff4565,this[_0xb6e3fb(0xa8)]=_0x254ac3,new Promise(_0x5e993b=>{const _0x5d821e=_0xb6e3fb;this[_0x5d821e(0xb4)][_0x5d821e(0xb0)]({'query':_0xff4565,'context':_0x45c714,'onData':_0x1ffdd0=>{const _0x4f7269=_0x5d821e;this[_0x4f7269(0xc2)]=_0x1ffdd0,this[_0x4f7269(0xad)]=this[_0x4f7269(0xd6)](this[_0x4f7269(0xc2)]);},'actionId':_0x254ac3})[_0x5d821e(0x97)](()=>{const _0x2c0aa7=_0x5d821e;!this[_0x2c0aa7(0xad)]&&this[_0x2c0aa7(0xc2)]&&(this[_0x2c0aa7(0xad)]=this[_0x2c0aa7(0xd6)](this[_0x2c0aa7(0xc2)],!0x0));})[_0x5d821e(0xb7)](_0x379dca=>{const _0x1ad981=_0x5d821e;_0x379dca instanceof _0x3442c8?this[_0x1ad981(0xcc)][_0x1ad981(0xea)](_0x379dca[_0x1ad981(0xdd)]):this[_0x1ad981(0xcc)][_0x1ad981(0xea)](),_0x5e993b();})[_0x5d821e(0xb8)](()=>{const _0x242d53=_0x5d821e;this[_0x242d53(0xd9)](),_0x5e993b();});});}[_0x5d7da1(0xd6)](_0x1bbf40,_0x311bfa=!0x1){const _0x5434f6=_0x5d7da1,_0x37b848=fs[_0x5434f6(0x93)](_0x1bbf40);_0x1bbf40=_0x37b848?_0x1bbf40[_0x5434f6(0xe1)](_0x37b848[0x1][_0x5434f6(0xd8)]):_0x1bbf40[_0x5434f6(0xd8)]<0x64&&!_0x311bfa?'':this[_0x5434f6(0xa4)](_0x1bbf40);const _0x9bb2cf=this[_0x5434f6(0xaa)][_0x5434f6(0xce)](_0x1bbf40,_0x5434f6(0x9c));if(_0x37b848){const _0x1dc91e=Array[_0x5434f6(0xc8)](_0x9bb2cf[_0x5434f6(0xe4)][_0x5434f6(0xa7)]);_0x1dc91e[_0x5434f6(0x90)]();for(const _0x129e83 of _0x1dc91e){if(_0x129e83[_0x5434f6(0xb6)]==Node[_0x5434f6(0xe6)])break;_0x129e83[_0x5434f6(0xdc)]();}}const _0x58975a=this[_0x5434f6(0xd5)][_0x5434f6(0xb3)][_0x5434f6(0xe8)][_0x5434f6(0xd2)](this[_0x5434f6(0x96)][_0x5434f6(0xe9)](_0x9bb2cf[_0x5434f6(0xe4)]));this[_0x5434f6(0x94)]()||this[_0x5434f6(0xb5)](_0x58975a);const _0x22d4e4=this[_0x5434f6(0xd5)][_0x5434f6(0xa0)][_0x5434f6(0xbd)](_0x5434f6(0xa5)),_0x1ec77a=this[_0x5434f6(0xd5)][_0x5434f6(0xb3)][_0x5434f6(0xde)](_0x58975a);return _0x22d4e4||_0x1ec77a[_0x5434f6(0xc4)][_0x5434f6(0xd3)](),this[_0x5434f6(0xd5)][_0x5434f6(0xb3)][_0x5434f6(0xa3)](_0x1ec77a);}[_0x5d7da1(0xb5)](_0x1eb2ce){const _0x3d2cf6=_0x5d7da1,_0x3040e7=new _0x5e4fa8(this[_0x3d2cf6(0xd5)][_0x3d2cf6(0xae)][_0x3d2cf6(0xcc)][_0x3d2cf6(0xe0)]),_0x360f64=new _0x31ad4d({'name':/^h[1-5]$/}),_0x1eb605=[];let _0x4cafde=!0x1;for(const _0x4de266 of _0x1eb2ce)_0x4de266['is'](_0x3d2cf6(0xc3))&&_0x360f64[_0x3d2cf6(0xe7)](_0x4de266)&&(_0x1eb605[_0x3d2cf6(0xac)](_0x4de266),'h1'==_0x4de266[_0x3d2cf6(0xec)]&&(_0x4cafde=!0x0));if(_0x4cafde){for(const _0x5449da of _0x1eb605)_0x3040e7[_0x3d2cf6(0xa1)]('h'+(parseInt(_0x5449da[_0x3d2cf6(0xec)][0x1])+0x1),_0x5449da);}}[_0x5d7da1(0x94)](){const _0x2f5b99=_0x5d7da1,{data:_0x294370,editing:_0x47f9c4}=this[_0x2f5b99(0xd5)],_0x7c4618=_0x294370[_0x2f5b99(0xd1)][_0x2f5b99(0xd2)](_0x2f5b99(0x8f)),_0x4181b0=_0x294370[_0x2f5b99(0xd2)](_0x294370[_0x2f5b99(0xde)](_0x7c4618));return!!_0x47f9c4[_0x2f5b99(0xcc)][_0x2f5b99(0xaf)][_0x2f5b99(0xbf)](_0x4181b0)[_0x2f5b99(0xee)]('h1');}[_0x5d7da1(0xa6)](_0x425f5a){const _0x1592f1=_0x5d7da1;return this[_0x1592f1(0xd5)][_0x1592f1(0xae)][_0x1592f1(0xcc)][_0x1592f1(0xaf)][_0x1592f1(0x8e)](this[_0x1592f1(0xe2)],_0x425f5a),this[_0x1592f1(0xe2)][_0x1592f1(0xd7)];}[_0x5d7da1(0xa4)](_0x4bdbb6){const _0x45497a=_0x5d7da1,_0x31b846=_0x4bdbb6[_0x45497a(0xb1)]();return _0x31b846[_0x45497a(0xdf)](_0x45497a(0xbc))?_0x31b846[_0x45497a(0x92)](_0x45497a(0xd4))?_0x31b846[_0x45497a(0xe1)](0x7,_0x31b846[_0x45497a(0xd8)]-0x3):_0x31b846[_0x45497a(0xe1)](0x7):_0x4bdbb6;}}
23
+ const _0x5e9c50=_0x12cc;(function(_0x182af7,_0x44d964){const _0x4a11e6=_0x12cc,_0x46bd46=_0x182af7();while(!![]){try{const _0xa79b81=parseInt(_0x4a11e6(0x19d))/0x1*(-parseInt(_0x4a11e6(0x16f))/0x2)+parseInt(_0x4a11e6(0x17f))/0x3+-parseInt(_0x4a11e6(0x193))/0x4*(parseInt(_0x4a11e6(0x187))/0x5)+-parseInt(_0x4a11e6(0x1cd))/0x6*(-parseInt(_0x4a11e6(0x184))/0x7)+-parseInt(_0x4a11e6(0x1a2))/0x8*(-parseInt(_0x4a11e6(0x19b))/0x9)+parseInt(_0x4a11e6(0x181))/0xa+parseInt(_0x4a11e6(0x1bb))/0xb;if(_0xa79b81===_0x44d964)break;else _0x46bd46['push'](_0x46bd46['shift']());}catch(_0x2acf7f){_0x46bd46['push'](_0x46bd46['shift']());}}}(_0x26b7,0x6bd63));function _0x26b7(){const _0x1b678c=['tryAgainEvent','from','prompt','render','substring','submitPrompt','toModel','trim','listenTo','isRendered','_normalizeResponseHeadings','value','markers','7431842SwYctd','ai.assistant.preserveComments','currentContext','set:currentContext','```','once','config','nodeType','currentResponse','_parseAndNormalizeContent','text/html','document','parseFromString','previousQuery','clear','exec','abort','_stripMarkdownSyntax','266946xcYtTS','_xmlSerializer','setContentOf','data','makeRequest','_sanitizationContainer','startProcessing','20674AvqrTb','element','rename','_handleQuery','innerHTML','editing','_sanitizeHTML','match','view','updateView','previousActionId','div','processor','childNodes','createElement','textAdapter','405468JLbIZn','handleError','360110vmyVTQ','previousLabel','push','49hOxyPv','endsWith','toView','60RZBvuQ','stopProcessing','```html','body','name','length','viewToDom','editor','_isH1TagSupportEnabled','then','remove','ELEMENT_NODE','241364tjjzav','destroy','set','finishProcessing','finally','get','stopListening','reverse','63DtcnjF','<h1></h1>','27dywvVE','_domParser','previousContext','domConverter','startsWith','327616VioRmm','htmlProcessor','reset','querySelector','isProcessing','message','stringify','serializeToString','initialContext','mainAction','catch','custom'];_0x26b7=function(){return _0x1b678c;};return _0x26b7();}import{ObservableMixin as _0x575eae}from'ckeditor5/src/utils.js';import{AIRequestError as _0x4dbdcb}from'../adapters/aiadapter.js';import{Matcher as _0xd1f721,ViewUpcastWriter as _0x4bd44f}from'ckeditor5/src/engine.js';function _0x12cc(_0x36da1b,_0x5555a0){const _0x26b7c8=_0x26b7();return _0x12cc=function(_0x12cc09,_0x757961){_0x12cc09=_0x12cc09-0x16e;let _0xa13dd5=_0x26b7c8[_0x12cc09];return _0xa13dd5;},_0x12cc(_0x36da1b,_0x5555a0);}const hs=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
24
+ _0x575eae(){[_0x5e9c50(0x18e)];[_0x5e9c50(0x17e)];[_0x5e9c50(0x177)];[_0x5e9c50(0x1d2)];[_0x5e9c50(0x19e)];[_0x5e9c50(0x1ce)];constructor(_0x44eeab,_0x111f5a,_0x5387a3){const _0x2fce07=_0x5e9c50;super(),this[_0x2fce07(0x18e)]=_0x44eeab,this[_0x2fce07(0x17e)]=_0x111f5a,this[_0x2fce07(0x1d2)]=document[_0x2fce07(0x17d)](_0x2fce07(0x17a)),this[_0x2fce07(0x19e)]=new DOMParser(),this[_0x2fce07(0x1ce)]=new XMLSerializer(),this[_0x2fce07(0x177)]=_0x5387a3,this[_0x2fce07(0x195)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x2fce07(0x1be),(_0x3448a7,_0x9ae84,_0x520839)=>{const _0x3ae6bd=_0x2fce07;this[_0x3ae6bd(0x177)][_0x3ae6bd(0x1b9)]=this[_0x3ae6bd(0x175)](_0x520839);}),this[_0x2fce07(0x1b6)](this[_0x2fce07(0x177)],_0x2fce07(0x1b3),(_0x5ca9cd,_0x28a2fe)=>{const _0x50bb68=_0x2fce07,_0x421059=this[_0x50bb68(0x1bd)]||this[_0x50bb68(0x1aa)];this[_0x50bb68(0x172)](_0x28a2fe,_0x421059,_0x50bb68(0x1ad));}),this[_0x2fce07(0x1b6)](this[_0x2fce07(0x177)],_0x2fce07(0x1ae),()=>{const _0x310afb=_0x2fce07;this[_0x310afb(0x177)][_0x310afb(0x1b0)]=this[_0x310afb(0x182)],this[_0x310afb(0x172)](this[_0x310afb(0x1c8)],this[_0x310afb(0x19f)],this[_0x310afb(0x179)],this[_0x310afb(0x182)]);}),this[_0x2fce07(0x1b6)](this[_0x2fce07(0x177)],_0x2fce07(0x188),()=>{const _0x1caa4c=_0x2fce07;this[_0x1caa4c(0x188)]();});}[_0x5e9c50(0x194)](){const _0x2f6fd2=_0x5e9c50;this[_0x2f6fd2(0x199)]();}async[_0x5e9c50(0x178)]({actionId:_0x5c67a2,query:_0x469db8,htmlContent:_0x1c7605,label:_0x47fe80,mainActionLabel:_0x4b71ed}){const _0xd9cd05=_0x5e9c50;this[_0xd9cd05(0x177)][_0xd9cd05(0x1b0)]=_0x47fe80,this[_0xd9cd05(0x177)][_0xd9cd05(0x1ab)]=_0x4b71ed,this[_0xd9cd05(0x1aa)]=_0x1c7605,_0x469db8&&(this[_0xd9cd05(0x177)][_0xd9cd05(0x1b7)]?this[_0xd9cd05(0x172)](_0x469db8,_0x1c7605,_0x5c67a2,_0x47fe80):this[_0xd9cd05(0x177)][_0xd9cd05(0x1c0)](_0xd9cd05(0x1b1),()=>{const _0xacf824=_0xd9cd05;this[_0xacf824(0x172)](_0x469db8,_0x1c7605,_0x5c67a2,_0x47fe80);}));}[_0x5e9c50(0x188)](){const _0x5ba6ce=_0x5e9c50;this[_0x5ba6ce(0x1a6)]&&(this[_0x5ba6ce(0x1a6)]=!0x1,this[_0x5ba6ce(0x177)][_0x5ba6ce(0x196)](),this[_0x5ba6ce(0x17e)][_0x5ba6ce(0x1cb)]());}[_0x5e9c50(0x1a4)](){const _0x4a49e8=_0x5e9c50;this[_0x4a49e8(0x1aa)]='',this[_0x4a49e8(0x1bd)]='',this[_0x4a49e8(0x1c3)]='',this[_0x4a49e8(0x19f)]='',this[_0x4a49e8(0x1c8)]='',this[_0x4a49e8(0x182)]='',this[_0x4a49e8(0x179)]=void 0x0,this[_0x4a49e8(0x177)][_0x4a49e8(0x1a4)](),this[_0x4a49e8(0x188)]();}async[_0x5e9c50(0x172)](_0x3af47c,_0x6e0c8e,_0x2ee6fb,_0x29f9aa){const _0x877d7b=_0x5e9c50;return this[_0x877d7b(0x1a6)]=!0x0,this[_0x877d7b(0x177)][_0x877d7b(0x16e)](),this[_0x877d7b(0x19f)]=_0x6e0c8e,this[_0x877d7b(0x1c8)]=_0x3af47c,this[_0x877d7b(0x182)]=_0x29f9aa||_0x3af47c,this[_0x877d7b(0x179)]=_0x2ee6fb,new Promise(_0x336328=>{const _0x5773e1=_0x877d7b;this[_0x5773e1(0x17e)][_0x5773e1(0x1d1)]({'query':_0x3af47c,'context':_0x6e0c8e,'onData':_0x57057d=>{const _0x4a351=_0x5773e1;this[_0x4a351(0x1c3)]=_0x57057d,this[_0x4a351(0x1bd)]=this[_0x4a351(0x1c4)](this[_0x4a351(0x1c3)]);},'actionId':_0x2ee6fb})[_0x5773e1(0x190)](()=>{const _0x5ee326=_0x5773e1;!this[_0x5ee326(0x1bd)]&&this[_0x5ee326(0x1c3)]&&(this[_0x5ee326(0x1bd)]=this[_0x5ee326(0x1c4)](this[_0x5ee326(0x1c3)],!0x0));})[_0x5773e1(0x1ac)](_0xa0d693=>{const _0x45754b=_0x5773e1;_0xa0d693 instanceof _0x4dbdcb?this[_0x45754b(0x177)][_0x45754b(0x180)](_0xa0d693[_0x45754b(0x1a7)]):this[_0x45754b(0x177)][_0x45754b(0x180)](),_0x336328();})[_0x5773e1(0x197)](()=>{const _0x4f47c1=_0x5773e1;this[_0x4f47c1(0x188)](),_0x336328();});});}[_0x5e9c50(0x1c4)](_0x2f0411,_0x42994a=!0x1){const _0x669365=_0x5e9c50,_0x1942ec=hs[_0x669365(0x1ca)](_0x2f0411);_0x2f0411=_0x1942ec?_0x2f0411[_0x669365(0x1b2)](_0x1942ec[0x1][_0x669365(0x18c)]):_0x2f0411[_0x669365(0x18c)]<0x64&&!_0x42994a?'':this[_0x669365(0x1cc)](_0x2f0411);const _0x513e16=this[_0x669365(0x19e)][_0x669365(0x1c7)](_0x2f0411,_0x669365(0x1c5));if(_0x1942ec){const _0xa7d883=Array[_0x669365(0x1af)](_0x513e16[_0x669365(0x18a)][_0x669365(0x17c)]);_0xa7d883[_0x669365(0x19a)]();for(const _0x506ff1 of _0xa7d883){if(_0x506ff1[_0x669365(0x1c2)]==Node[_0x669365(0x192)])break;_0x506ff1[_0x669365(0x191)]();}}const _0x152cda=this[_0x669365(0x18e)][_0x669365(0x1d0)][_0x669365(0x17b)][_0x669365(0x186)](this[_0x669365(0x1ce)][_0x669365(0x1a9)](_0x513e16[_0x669365(0x18a)]));this[_0x669365(0x18f)]()||this[_0x669365(0x1b8)](_0x152cda);const _0x8acd4a=this[_0x669365(0x18e)][_0x669365(0x1c1)][_0x669365(0x198)](_0x669365(0x1bc)),_0x200307=this[_0x669365(0x18e)][_0x669365(0x1d0)][_0x669365(0x1b4)](_0x152cda);return _0x8acd4a||_0x200307[_0x669365(0x1ba)][_0x669365(0x1c9)](),this[_0x669365(0x18e)][_0x669365(0x1d0)][_0x669365(0x1a8)](_0x200307);}[_0x5e9c50(0x1b8)](_0x27bbe9){const _0x2d6c3d=_0x5e9c50,_0x189786=new _0x4bd44f(this[_0x2d6c3d(0x18e)][_0x2d6c3d(0x174)][_0x2d6c3d(0x177)][_0x2d6c3d(0x1c6)]),_0x4ba74b=new _0xd1f721({'name':/^h[1-5]$/}),_0x2794b9=[];let _0x237ff9=!0x1;for(const _0x375cb2 of _0x27bbe9)_0x375cb2['is'](_0x2d6c3d(0x170))&&_0x4ba74b[_0x2d6c3d(0x176)](_0x375cb2)&&(_0x2794b9[_0x2d6c3d(0x183)](_0x375cb2),'h1'==_0x375cb2[_0x2d6c3d(0x18b)]&&(_0x237ff9=!0x0));if(_0x237ff9){for(const _0x174a04 of _0x2794b9)_0x189786[_0x2d6c3d(0x171)]('h'+(parseInt(_0x174a04[_0x2d6c3d(0x18b)][0x1])+0x1),_0x174a04);}}[_0x5e9c50(0x18f)](){const _0x551fbf=_0x5e9c50,{data:_0xefa03,editing:_0x252a11}=this[_0x551fbf(0x18e)],_0x5e11c4=_0xefa03[_0x551fbf(0x1a3)][_0x551fbf(0x186)](_0x551fbf(0x19c)),_0x18502d=_0xefa03[_0x551fbf(0x186)](_0xefa03[_0x551fbf(0x1b4)](_0x5e11c4));return!!_0x252a11[_0x551fbf(0x177)][_0x551fbf(0x1a0)][_0x551fbf(0x18d)](_0x18502d)[_0x551fbf(0x1a5)]('h1');}[_0x5e9c50(0x175)](_0x359d1c){const _0x4cdc4f=_0x5e9c50;return this[_0x4cdc4f(0x18e)][_0x4cdc4f(0x174)][_0x4cdc4f(0x177)][_0x4cdc4f(0x1a0)][_0x4cdc4f(0x1cf)](this[_0x4cdc4f(0x1d2)],_0x359d1c),this[_0x4cdc4f(0x1d2)][_0x4cdc4f(0x173)];}[_0x5e9c50(0x1cc)](_0x422617){const _0x269bf8=_0x5e9c50,_0x3f4445=_0x422617[_0x269bf8(0x1b5)]();return _0x3f4445[_0x269bf8(0x1a1)](_0x269bf8(0x189))?_0x3f4445[_0x269bf8(0x185)](_0x269bf8(0x1bf))?_0x3f4445[_0x269bf8(0x1b2)](0x7,_0x3f4445[_0x269bf8(0x18c)]-0x3):_0x3f4445[_0x269bf8(0x1b2)](0x7):_0x422617;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c67aa=_0x1d3d;function _0x1d3d(_0x4b88c4,_0xfc84da){const _0xa018e3=_0xa018();return _0x1d3d=function(_0x1d3d7a,_0x30ef8e){_0x1d3d7a=_0x1d3d7a-0x190;let _0x5d606f=_0xa018e3[_0x1d3d7a];return _0x5d606f;},_0x1d3d(_0x4b88c4,_0xfc84da);}(function(_0x524cb2,_0x292794){const _0x580678=_0x1d3d,_0x5bc536=_0x524cb2();while(!![]){try{const _0x29ce5f=parseInt(_0x580678(0x1c0))/0x1+-parseInt(_0x580678(0x1bc))/0x2*(-parseInt(_0x580678(0x194))/0x3)+-parseInt(_0x580678(0x1a8))/0x4*(parseInt(_0x580678(0x1b7))/0x5)+-parseInt(_0x580678(0x1b4))/0x6*(-parseInt(_0x580678(0x1c7))/0x7)+-parseInt(_0x580678(0x1e3))/0x8*(parseInt(_0x580678(0x195))/0x9)+-parseInt(_0x580678(0x1ac))/0xa*(-parseInt(_0x580678(0x1e2))/0xb)+-parseInt(_0x580678(0x1e4))/0xc;if(_0x29ce5f===_0x292794)break;else _0x5bc536['push'](_0x5bc536['shift']());}catch(_0xb07d94){_0x5bc536['push'](_0x5bc536['shift']());}}}(_0xa018,0xa90dc));import{global as _0x4af0fe}from'ckeditor5/src/utils.js';import{View as _0x1f5068,ButtonView as _0x29ed9d,SpinnerView as _0x2c607f}from'ckeditor5/src/ui.js';import{IconCheck as _0x3492b6,IconCopy as _0x41f29c}from'ckeditor5/src/icons.js';import{getTranslation as _0x1120d6}from'../../utils/common-translations.js';function _0xa018(){const _0x3be30b=['422963wMQUFX','querySelector','copyButtonView','firstElementChild','Copy','innerHTML','bind','7ZGrkHb','scrollTo','smooth','setContent','position','execCommand','icon','class','ck-ai-form__content-field','write','ClipboardItem','setStartAfter','setEndBefore','wheel','ck-reset_all-excluded','_copyHTMLToClipboard','ck-ai-form__loader','addRange','contentFieldView','isProcessing','ck-ai-form__content-area-wrapper','\x20ck-ai-form__copy-button--copied','focus','<span>[</span>','createElement','copy','div','11cFVjFN','1754576SOfZSe','2846268jXqkzz','removeAllRanges','-9999px','change:isProcessing','style','change:value','isEnabled','75vRftwz','36PqCmbt','createRange','render','setTemplate','set','.ck-ai-form__loader','body','left','<span>]</span>','text/html','_createCopyButton','loaderView','ck-ai-form__content-area','ck-ai-form__copy-button','scrollHeight','isVisible','absolute','value','locale','28796zoNUxS','element','bindTemplate','mousedown','8141450cLNuyi','_createLoader','listenTo','remove','appendLoader','ck-content','AI\x20is\x20writing...','appendChild','6611952KAtEEx','text/plain','lastElementChild','605VkuHvi','execute','ck-hidden','clipboard','textContent','27112RwQRoM','ck-ai-form__copy-button-wrapper','getSelection','ck-ai-form__content-area--processing'];_0xa018=function(){return _0x3be30b;};return _0xa018();}export class AIFormContentArea extends _0x1f5068{[_0x2c67aa(0x1d9)];[_0x2c67aa(0x1c2)];constructor(_0x41adfa,_0x5bf2d3=''){const _0x3c70f8=_0x2c67aa;super(_0x41adfa),this[_0x3c70f8(0x199)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x40b31d=this[_0x3c70f8(0x1aa)];this[_0x3c70f8(0x1d9)]=new ContentFieldView(_0x41adfa,_0x5bf2d3),this[_0x3c70f8(0x1c2)]=this[_0x3c70f8(0x19f)](),this[_0x3c70f8(0x198)]({'tag':_0x3c70f8(0x1e1),'attributes':{'class':['ck',_0x3c70f8(0x1db),_0x40b31d['if'](_0x3c70f8(0x1a4),_0x3c70f8(0x1b9),_0x1acbaf=>!_0x1acbaf)],'tabindex':'-1'},'children':[{'tag':_0x3c70f8(0x1e1),'attributes':{'class':['ck',_0x3c70f8(0x1a1),_0x40b31d['if'](_0x3c70f8(0x1da),_0x3c70f8(0x1bf))]},'children':[this[_0x3c70f8(0x1d9)],{'tag':_0x3c70f8(0x1e1),'attributes':{'class':['ck',_0x3c70f8(0x1bd)]},'children':[this[_0x3c70f8(0x1c2)]]}]}]});}[_0x2c67aa(0x197)](){const _0x344ed2=_0x2c67aa;super[_0x344ed2(0x197)](),this[_0x344ed2(0x1a6)]&&this[_0x344ed2(0x1d9)][_0x344ed2(0x1ca)](this[_0x344ed2(0x1a6)]);let _0x18d1d0=!0x1;this['on'](_0x344ed2(0x192),(_0x4b2399,_0x3e6746,_0x35e4bf)=>{const _0x172daa=_0x344ed2,_0x4eed65=!this[_0x172daa(0x1d9)][_0x172daa(0x1a9)][_0x172daa(0x1c1)](_0x172daa(0x19a));this[_0x172daa(0x1d9)][_0x172daa(0x1ca)](_0x35e4bf),this[_0x172daa(0x1da)]&&_0x4eed65&&!_0x18d1d0&&this[_0x172daa(0x1a9)][_0x172daa(0x1c8)]({'top':this[_0x172daa(0x1a9)][_0x172daa(0x1a3)],'behavior':_0x172daa(0x1c9)});}),this['on'](_0x344ed2(0x190),(_0x19ddae,_0x20406f,_0x411700)=>{const _0x1c5240=_0x344ed2;_0x18d1d0=!0x1,_0x411700?(this[_0x1c5240(0x1a6)]=null,this[_0x1c5240(0x1d9)][_0x1c5240(0x1b0)]()):this[_0x1c5240(0x1a6)]||this[_0x1c5240(0x1d9)][_0x1c5240(0x1ca)]('');}),this[_0x344ed2(0x1ae)](this[_0x344ed2(0x1a9)],_0x344ed2(0x1d4),()=>{_0x18d1d0=!0x0;}),this[_0x344ed2(0x1ae)](this[_0x344ed2(0x1a9)],_0x344ed2(0x1ab),()=>{_0x18d1d0=!0x0;});}[_0x2c67aa(0x1dd)](){const _0x833491=_0x2c67aa;this[_0x833491(0x1a9)][_0x833491(0x1dd)]();}[_0x2c67aa(0x19f)](){const _0x5dec1a=_0x2c67aa,_0x3720ba=this[_0x5dec1a(0x1a7)],_0x3675d9=new _0x29ed9d(this[_0x5dec1a(0x1a7)]),_0x3550da=_0x5dec1a(0x1a2);return _0x3675d9[_0x5dec1a(0x199)]({'label':_0x1120d6(_0x3720ba,_0x5dec1a(0x1c4)),'icon':_0x41f29c,'class':_0x3550da,'tooltip':!0x0}),_0x3675d9[_0x5dec1a(0x1c6)](_0x5dec1a(0x1a4))['to'](this,_0x5dec1a(0x1a6),_0x24aaf0=>!!_0x24aaf0),_0x3675d9[_0x5dec1a(0x1c6)](_0x5dec1a(0x193))['to'](this,_0x5dec1a(0x1da),_0x5980ac=>!_0x5980ac),_0x3675d9['on'](_0x5dec1a(0x1b8),()=>{const _0x4f7537=_0x5dec1a;this[_0x4f7537(0x1d6)](this[_0x4f7537(0x1d9)][_0x4f7537(0x1a9)]),_0x3675d9[_0x4f7537(0x1cd)]=_0x3492b6,_0x3675d9[_0x4f7537(0x1ce)]=_0x3550da+_0x4f7537(0x1dc),this[_0x4f7537(0x1dd)](),setTimeout(()=>{const _0x4047b7=_0x4f7537;_0x3675d9[_0x4047b7(0x1cd)]=_0x41f29c,_0x3675d9[_0x4047b7(0x1ce)]=_0x3550da;},0x3e8);}),_0x3675d9;}[_0x2c67aa(0x1d6)](_0x3e84cf){const _0x5a873d=_0x2c67aa,{window:_0x2b93fb,document:_0x4bfab1}=_0x4af0fe;if(_0x2b93fb[_0x5a873d(0x1d1)]){const {Blob:_0x2c1c1c,ClipboardItem:_0x7be8c5}=_0x2b93fb,_0x57a18a=[new _0x7be8c5({'text/html':new _0x2c1c1c([_0x3e84cf[_0x5a873d(0x1c5)]],{'type':_0x5a873d(0x19e)}),'text/plain':new _0x2c1c1c([_0x3e84cf[_0x5a873d(0x1bb)]||''],{'type':_0x5a873d(0x1b5)})})];navigator[_0x5a873d(0x1ba)][_0x5a873d(0x1d0)](_0x57a18a);}else{const _0x280c49=_0x4bfab1[_0x5a873d(0x1df)](_0x5a873d(0x1e1));_0x280c49[_0x5a873d(0x191)][_0x5a873d(0x1cb)]=_0x5a873d(0x1a5),_0x280c49[_0x5a873d(0x191)][_0x5a873d(0x19c)]=_0x5a873d(0x1e6),_0x280c49[_0x5a873d(0x1c5)]=_0x5a873d(0x1de)+_0x3e84cf[_0x5a873d(0x1c5)]+_0x5a873d(0x19d),_0x4bfab1[_0x5a873d(0x19b)][_0x5a873d(0x1b3)](_0x280c49);const _0x2bbb48=_0x4bfab1[_0x5a873d(0x196)]();_0x2bbb48[_0x5a873d(0x1d2)](_0x280c49[_0x5a873d(0x1c3)]),_0x2bbb48[_0x5a873d(0x1d3)](_0x280c49[_0x5a873d(0x1b6)]);const _0x226ce1=_0x2b93fb[_0x5a873d(0x1be)]();_0x226ce1[_0x5a873d(0x1e5)](),_0x226ce1[_0x5a873d(0x1d8)](_0x2bbb48),_0x4bfab1[_0x5a873d(0x1cc)](_0x5a873d(0x1e0)),_0x280c49[_0x5a873d(0x1af)]();}}}export class ContentFieldView extends _0x1f5068{constructor(_0xf4cc77,_0x38b59a=''){const _0x37df89=_0x2c67aa;super(_0xf4cc77),this[_0x37df89(0x1a0)]=this[_0x37df89(0x1ad)](),this[_0x37df89(0x198)]({'tag':_0x37df89(0x1e1),'attributes':{'class':['ck',_0x37df89(0x1b1),_0x38b59a,_0x37df89(0x1d5),_0x37df89(0x1cf)]}});}[_0x2c67aa(0x1ca)](_0x4fe0bb){const _0x276b57=_0x2c67aa;this[_0x276b57(0x1a9)][_0x276b57(0x1c5)]=_0x4fe0bb;}[_0x2c67aa(0x1b0)](){const _0xfc8b76=_0x2c67aa;this[_0xfc8b76(0x1a9)][_0xfc8b76(0x1b3)](this[_0xfc8b76(0x1a0)][_0xfc8b76(0x1a9)]);}[_0x2c67aa(0x1ad)](){const _0x28391f=_0x2c67aa,_0xcdc7f8=new _0x1f5068(),_0x5b3225=this[_0x28391f(0x1a7)],_0x661f50=new _0x2c607f();return _0x661f50[_0x28391f(0x1a4)]=!0x0,_0xcdc7f8[_0x28391f(0x198)]({'tag':_0x28391f(0x1e1),'attributes':{'class':['ck',_0x28391f(0x1d7)]},'children':[_0x661f50,{'text':_0x1120d6(_0x5b3225,_0x28391f(0x1b2))}]}),_0xcdc7f8[_0x28391f(0x197)](),_0xcdc7f8;}}
23
+ const _0x1cb378=_0x3ca9;(function(_0x3c1dd2,_0x393136){const _0x20c9f4=_0x3ca9,_0x502765=_0x3c1dd2();while(!![]){try{const _0x4a320e=-parseInt(_0x20c9f4(0x1b7))/0x1+parseInt(_0x20c9f4(0x1c4))/0x2+-parseInt(_0x20c9f4(0x1dd))/0x3*(parseInt(_0x20c9f4(0x1de))/0x4)+-parseInt(_0x20c9f4(0x1e8))/0x5*(-parseInt(_0x20c9f4(0x1b4))/0x6)+parseInt(_0x20c9f4(0x1dc))/0x7+parseInt(_0x20c9f4(0x1c7))/0x8*(parseInt(_0x20c9f4(0x1b6))/0x9)+-parseInt(_0x20c9f4(0x1ae))/0xa*(parseInt(_0x20c9f4(0x1ec))/0xb);if(_0x4a320e===_0x393136)break;else _0x502765['push'](_0x502765['shift']());}catch(_0x112324){_0x502765['push'](_0x502765['shift']());}}}(_0x2b20,0x9302c));import{global as _0xfe64d5}from'ckeditor5/src/utils.js';import{View as _0x471142,ButtonView as _0x224587,SpinnerView as _0x1c61e2}from'ckeditor5/src/ui.js';function _0x2b20(){const _0x2abfda=['\x20ck-ai-form__copy-button--copied','icon','mousedown','appendChild','_copyHTMLToClipboard','isEnabled','innerHTML','value','ck-ai-form__copy-button-wrapper','.ck-ai-form__loader','text/plain','body','class','loaderView','2438352DHtoYe','1874781qmjmXF','4jxwSnk','setStartAfter','execCommand','wheel','-9999px','createElement','removeAllRanges','AI\x20is\x20writing...','scrollTo','Copy','40EFQWOk','_createLoader','ck-ai-form__loader','text/html','1243hnGVim','copyButtonView','setTemplate','lastElementChild','copy','focus','<span>]</span>','clipboard','bindTemplate','ck-ai-form__content-area','ClipboardItem','change:isProcessing','getSelection','ck-content','ck-ai-form__content-field','isProcessing','absolute','setContent','element','_createCopyButton','addRange','isVisible','position','firstElementChild','68270riFfnr','ck-ai-form__content-area--processing','smooth','left','div','appendLoader','287286KKWbsM','listenTo','9daAyiD','809240ZFTmhM','createRange','render','contentFieldView','write','setEndBefore','ck-reset_all-excluded','textContent','<span>[</span>','locale','style','change:value','execute','2334554JEmceu','bind','scrollHeight','7272904kbHtQe','set','ck-ai-form__content-area-wrapper','ck-ai-form__copy-button','remove','querySelector','ck-hidden'];_0x2b20=function(){return _0x2abfda;};return _0x2b20();}function _0x3ca9(_0x35d16a,_0x1da7f4){const _0x2b205a=_0x2b20();return _0x3ca9=function(_0x3ca921,_0xe82470){_0x3ca921=_0x3ca921-0x1a8;let _0x455728=_0x2b205a[_0x3ca921];return _0x455728;},_0x3ca9(_0x35d16a,_0x1da7f4);}import{IconCheck as _0x35d81e,IconCopy as _0x4f4ff4}from'ckeditor5/src/icons.js';import{getTranslation as _0x35e5d8}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x471142{[_0x1cb378(0x1ba)];[_0x1cb378(0x1ed)];constructor(_0x36661b,_0x36d39f=''){const _0x2a8db0=_0x1cb378;super(_0x36661b),this[_0x2a8db0(0x1c8)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x120572=this[_0x2a8db0(0x1f4)];this[_0x2a8db0(0x1ba)]=new ContentFieldView(_0x36661b,_0x36d39f),this[_0x2a8db0(0x1ed)]=this[_0x2a8db0(0x1a9)](),this[_0x2a8db0(0x1ee)]({'tag':_0x2a8db0(0x1b2),'attributes':{'class':['ck',_0x2a8db0(0x1c9),_0x120572['if'](_0x2a8db0(0x1ab),_0x2a8db0(0x1cd),_0x12ab1d=>!_0x12ab1d)],'tabindex':'-1'},'children':[{'tag':_0x2a8db0(0x1b2),'attributes':{'class':['ck',_0x2a8db0(0x1f5),_0x120572['if'](_0x2a8db0(0x1fb),_0x2a8db0(0x1af))]},'children':[this[_0x2a8db0(0x1ba)],{'tag':_0x2a8db0(0x1b2),'attributes':{'class':['ck',_0x2a8db0(0x1d6)]},'children':[this[_0x2a8db0(0x1ed)]]}]}]});}[_0x1cb378(0x1b9)](){const _0x253c53=_0x1cb378;super[_0x253c53(0x1b9)](),this[_0x253c53(0x1d5)]&&this[_0x253c53(0x1ba)][_0x253c53(0x1fd)](this[_0x253c53(0x1d5)]);let _0x1bddb0=!0x1;this['on'](_0x253c53(0x1c2),(_0x330d18,_0x3bd0cf,_0x1edb95)=>{const _0x5032f1=_0x253c53,_0x521ca3=!this[_0x5032f1(0x1ba)][_0x5032f1(0x1a8)][_0x5032f1(0x1cc)](_0x5032f1(0x1d7));this[_0x5032f1(0x1ba)][_0x5032f1(0x1fd)](_0x1edb95),this[_0x5032f1(0x1fb)]&&_0x521ca3&&!_0x1bddb0&&this[_0x5032f1(0x1a8)][_0x5032f1(0x1e6)]({'top':this[_0x5032f1(0x1a8)][_0x5032f1(0x1c6)],'behavior':_0x5032f1(0x1b0)});}),this['on'](_0x253c53(0x1f7),(_0x358a94,_0x3ff843,_0x16b34d)=>{const _0xd7c4fe=_0x253c53;_0x1bddb0=!0x1,_0x16b34d?(this[_0xd7c4fe(0x1d5)]=null,this[_0xd7c4fe(0x1ba)][_0xd7c4fe(0x1b3)]()):this[_0xd7c4fe(0x1d5)]||this[_0xd7c4fe(0x1ba)][_0xd7c4fe(0x1fd)]('');}),this[_0x253c53(0x1b5)](this[_0x253c53(0x1a8)],_0x253c53(0x1e1),()=>{_0x1bddb0=!0x0;}),this[_0x253c53(0x1b5)](this[_0x253c53(0x1a8)],_0x253c53(0x1d0),()=>{_0x1bddb0=!0x0;});}[_0x1cb378(0x1f1)](){const _0x337350=_0x1cb378;this[_0x337350(0x1a8)][_0x337350(0x1f1)]();}[_0x1cb378(0x1a9)](){const _0x4c6afa=_0x1cb378,_0x16bfa8=this[_0x4c6afa(0x1c0)],_0x31c408=new _0x224587(this[_0x4c6afa(0x1c0)]),_0x36f4f9=_0x4c6afa(0x1ca);return _0x31c408[_0x4c6afa(0x1c8)]({'label':_0x35e5d8(_0x16bfa8,_0x4c6afa(0x1e7)),'icon':_0x4f4ff4,'class':_0x36f4f9,'tooltip':!0x0}),_0x31c408[_0x4c6afa(0x1c5)](_0x4c6afa(0x1ab))['to'](this,_0x4c6afa(0x1d5),_0x1298f8=>!!_0x1298f8),_0x31c408[_0x4c6afa(0x1c5)](_0x4c6afa(0x1d3))['to'](this,_0x4c6afa(0x1fb),_0x209d2e=>!_0x209d2e),_0x31c408['on'](_0x4c6afa(0x1c3),()=>{const _0x3e4991=_0x4c6afa;this[_0x3e4991(0x1d2)](this[_0x3e4991(0x1ba)][_0x3e4991(0x1a8)]),_0x31c408[_0x3e4991(0x1cf)]=_0x35d81e,_0x31c408[_0x3e4991(0x1da)]=_0x36f4f9+_0x3e4991(0x1ce),this[_0x3e4991(0x1f1)](),setTimeout(()=>{const _0x24c3b6=_0x3e4991;_0x31c408[_0x24c3b6(0x1cf)]=_0x4f4ff4,_0x31c408[_0x24c3b6(0x1da)]=_0x36f4f9;},0x3e8);}),_0x31c408;}[_0x1cb378(0x1d2)](_0x32ab05){const _0x4163bf=_0x1cb378,{window:_0x2f7071,document:_0x49a9ec}=_0xfe64d5;if(_0x2f7071[_0x4163bf(0x1f6)]){const {Blob:_0x188810,ClipboardItem:_0x57bcb3}=_0x2f7071,_0x1bc550=[new _0x57bcb3({'text/html':new _0x188810([_0x32ab05[_0x4163bf(0x1d4)]],{'type':_0x4163bf(0x1eb)}),'text/plain':new _0x188810([_0x32ab05[_0x4163bf(0x1be)]||''],{'type':_0x4163bf(0x1d8)})})];navigator[_0x4163bf(0x1f3)][_0x4163bf(0x1bb)](_0x1bc550);}else{const _0x16864c=_0x49a9ec[_0x4163bf(0x1e3)](_0x4163bf(0x1b2));_0x16864c[_0x4163bf(0x1c1)][_0x4163bf(0x1ac)]=_0x4163bf(0x1fc),_0x16864c[_0x4163bf(0x1c1)][_0x4163bf(0x1b1)]=_0x4163bf(0x1e2),_0x16864c[_0x4163bf(0x1d4)]=_0x4163bf(0x1bf)+_0x32ab05[_0x4163bf(0x1d4)]+_0x4163bf(0x1f2),_0x49a9ec[_0x4163bf(0x1d9)][_0x4163bf(0x1d1)](_0x16864c);const _0x4fe6ed=_0x49a9ec[_0x4163bf(0x1b8)]();_0x4fe6ed[_0x4163bf(0x1df)](_0x16864c[_0x4163bf(0x1ad)]),_0x4fe6ed[_0x4163bf(0x1bc)](_0x16864c[_0x4163bf(0x1ef)]);const _0x4420e0=_0x2f7071[_0x4163bf(0x1f8)]();_0x4420e0[_0x4163bf(0x1e4)](),_0x4420e0[_0x4163bf(0x1aa)](_0x4fe6ed),_0x49a9ec[_0x4163bf(0x1e0)](_0x4163bf(0x1f0)),_0x16864c[_0x4163bf(0x1cb)]();}}}export class ContentFieldView extends _0x471142{constructor(_0x350a77,_0x125776=''){const _0x318f33=_0x1cb378;super(_0x350a77),this[_0x318f33(0x1db)]=this[_0x318f33(0x1e9)](),this[_0x318f33(0x1ee)]({'tag':_0x318f33(0x1b2),'attributes':{'class':['ck',_0x318f33(0x1f9),_0x125776,_0x318f33(0x1bd),_0x318f33(0x1fa)]}});}[_0x1cb378(0x1fd)](_0x471ee7){const _0x464c5f=_0x1cb378;this[_0x464c5f(0x1a8)][_0x464c5f(0x1d4)]=_0x471ee7;}[_0x1cb378(0x1b3)](){const _0x125d50=_0x1cb378;this[_0x125d50(0x1a8)][_0x125d50(0x1d1)](this[_0x125d50(0x1db)][_0x125d50(0x1a8)]);}[_0x1cb378(0x1e9)](){const _0xe2c02a=_0x1cb378,_0x3b8acd=new _0x471142(),_0x41bc78=this[_0xe2c02a(0x1c0)],_0x10db9c=new _0x1c61e2();return _0x10db9c[_0xe2c02a(0x1ab)]=!0x0,_0x3b8acd[_0xe2c02a(0x1ee)]({'tag':_0xe2c02a(0x1b2),'attributes':{'class':['ck',_0xe2c02a(0x1ea)]},'children':[_0x10db9c,{'text':_0x35e5d8(_0x41bc78,_0xe2c02a(0x1e5))}]}),_0x3b8acd[_0xe2c02a(0x1b9)](),_0x3b8acd;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x35ff(){const _0xf678fd=['2653371WaOhtL','2361992cKloia','div','bindTemplate','1990944EXnREC','68BpJOlv','setTemplate','set','150806UtcVFS','content','ck-ai-form__error','2829645TdnzmP','6RLClIE','1299154mtBCMg','text','62142nRyCjP'];_0x35ff=function(){return _0xf678fd;};return _0x35ff();}(function(_0x4f1417,_0x3fc51){const _0x153059=_0x207b,_0xc04fed=_0x4f1417();while(!![]){try{const _0x3ebe5e=parseInt(_0x153059(0x1dd))/0x1+parseInt(_0x153059(0x1d2))/0x2+parseInt(_0x153059(0x1d4))/0x3*(-parseInt(_0x153059(0x1da))/0x4)+-parseInt(_0x153059(0x1e0))/0x5+parseInt(_0x153059(0x1d1))/0x6*(parseInt(_0x153059(0x1d5))/0x7)+parseInt(_0x153059(0x1d6))/0x8+-parseInt(_0x153059(0x1d9))/0x9;if(_0x3ebe5e===_0x3fc51)break;else _0xc04fed['push'](_0xc04fed['shift']());}catch(_0x659db7){_0xc04fed['push'](_0xc04fed['shift']());}}}(_0x35ff,0x51e2a));import{IconError as _0xf466d2}from'ckeditor5/src/icons.js';import{View as _0x487397,IconView as _0x9c083f}from'ckeditor5/src/ui.js';function _0x207b(_0x137d41,_0x5b5e26){const _0x35ff7e=_0x35ff();return _0x207b=function(_0x207b37,_0xcd1b0c){_0x207b37=_0x207b37-0x1d1;let _0x46625b=_0x35ff7e[_0x207b37];return _0x46625b;},_0x207b(_0x137d41,_0x5b5e26);}export class AIFormErrorView extends _0x487397{constructor(_0x3d01d5,_0x9a2fa9=''){const _0x14d2c2=_0x207b;super(_0x3d01d5);const _0x31cae9=new _0x9c083f(),_0x59585f=this[_0x14d2c2(0x1d8)];this[_0x14d2c2(0x1dc)](_0x14d2c2(0x1d3),_0x9a2fa9),_0x31cae9[_0x14d2c2(0x1de)]=_0xf466d2,this[_0x14d2c2(0x1db)]({'tag':_0x14d2c2(0x1d7),'attributes':{'class':['ck',_0x14d2c2(0x1df)]},'children':[_0x31cae9,{'text':_0x59585f['to'](_0x14d2c2(0x1d3))}]});}}
23
+ (function(_0x25997c,_0x328926){const _0x169b3d=_0x198c,_0xc131d=_0x25997c();while(!![]){try{const _0x2c991d=-parseInt(_0x169b3d(0xda))/0x1*(-parseInt(_0x169b3d(0xdc))/0x2)+-parseInt(_0x169b3d(0xd9))/0x3+-parseInt(_0x169b3d(0xe1))/0x4+-parseInt(_0x169b3d(0xe3))/0x5*(-parseInt(_0x169b3d(0xdd))/0x6)+-parseInt(_0x169b3d(0xe7))/0x7+-parseInt(_0x169b3d(0xe8))/0x8+-parseInt(_0x169b3d(0xe6))/0x9*(-parseInt(_0x169b3d(0xdb))/0xa);if(_0x2c991d===_0x328926)break;else _0xc131d['push'](_0xc131d['shift']());}catch(_0x31620b){_0xc131d['push'](_0xc131d['shift']());}}}(_0xd939,0x1ed16));import{IconError as _0x378eee}from'ckeditor5/src/icons.js';import{View as _0x1950aa,IconView as _0x496a4d}from'ckeditor5/src/ui.js';function _0xd939(){const _0x307bb5=['708MsUzLh','30iyfCpf','252ictmJR','12ThLmkb','ck-ai-form__error','div','setTemplate','182028TytHRY','content','74315MULYwW','text','bindTemplate','1504422vBgATZ','1012865UrQjGA','2012656tnsinv','set','157182MBlfUe'];_0xd939=function(){return _0x307bb5;};return _0xd939();}function _0x198c(_0x495fe9,_0x2d159f){const _0xd93913=_0xd939();return _0x198c=function(_0x198cd6,_0x349b8e){_0x198cd6=_0x198cd6-0xd8;let _0xc1ee45=_0xd93913[_0x198cd6];return _0xc1ee45;},_0x198c(_0x495fe9,_0x2d159f);}export class AIFormErrorView extends _0x1950aa{constructor(_0x539aac,_0x4bc864=''){const _0x209bca=_0x198c;super(_0x539aac);const _0x2720d4=new _0x496a4d(),_0xeb4a0e=this[_0x209bca(0xe5)];this[_0x209bca(0xd8)](_0x209bca(0xe4),_0x4bc864),_0x2720d4[_0x209bca(0xe2)]=_0x378eee,this[_0x209bca(0xe0)]({'tag':_0x209bca(0xdf),'attributes':{'class':['ck',_0x209bca(0xde)]},'children':[_0x2720d4,{'text':_0xeb4a0e['to'](_0x209bca(0xe4))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x51ff4b=_0x450e;(function(_0x45558a,_0x3521c4){const _0x4f3d3e=_0x450e,_0x2135e0=_0x45558a();while(!![]){try{const _0x1cec8c=-parseInt(_0x4f3d3e(0x19d))/0x1*(-parseInt(_0x4f3d3e(0x19a))/0x2)+parseInt(_0x4f3d3e(0x186))/0x3*(parseInt(_0x4f3d3e(0x17b))/0x4)+-parseInt(_0x4f3d3e(0x1ae))/0x5*(-parseInt(_0x4f3d3e(0x18f))/0x6)+-parseInt(_0x4f3d3e(0x18d))/0x7+parseInt(_0x4f3d3e(0x1a8))/0x8*(-parseInt(_0x4f3d3e(0x179))/0x9)+parseInt(_0x4f3d3e(0x1b0))/0xa*(-parseInt(_0x4f3d3e(0x196))/0xb)+parseInt(_0x4f3d3e(0x182))/0xc;if(_0x1cec8c===_0x3521c4)break;else _0x2135e0['push'](_0x2135e0['shift']());}catch(_0x507381){_0x2135e0['push'](_0x2135e0['shift']());}}}(_0x1e49,0x73227));function _0x1e49(){const _0x1b69d4=['fieldWrapperChildren','isEmpty','Submit','right','1387855QMMxGV','set','723876cZHCJC','window','rtl','add','execute','isVisible','History','46651eigPrX','focusableChildren','focusFirst','_createSubmitButton','1216868hPdJwA','submit','keystrokes','1vewlWw','submitButtonView','showHistoryButtonView','focus','ck-ai-form__toggle-history','value','focusCycler','maxRows','render','bind','isEnabled','5259152ThfhQJ','minRows','style','ck-ai-form__submit','left','uiLanguageDirection','35cFuKSn','element','1630YksXse','fire','width','requestAnimationFrame','update','9xXfCTo','enter','16rDzxBi','filteredView','_createShowHistoryButton','children','locale','target','excludeScrollbarsAndBorders','5583420pdmJgi','fieldView','resultsView','isOn','75219LzrCOG','focusLast','queryView'];_0x1e49=function(){return _0x1b69d4;};return _0x1e49();}import{Rect as _0x125b16,global as _0x538999,isVisible as _0xb6a2fd}from'ckeditor5/src/utils.js';function _0x450e(_0x39e21b,_0x201e37){const _0x1e49e3=_0x1e49();return _0x450e=function(_0x450e6d,_0x1a9c03){_0x450e6d=_0x450e6d-0x175;let _0x2324cd=_0x1e49e3[_0x450e6d];return _0x2324cd;},_0x450e(_0x39e21b,_0x201e37);}import{IconAIHistory as _0x194e53,IconSubmit as _0x24d0b3}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x58bfaf,ButtonView as _0x390e0f}from'ckeditor5/src/ui.js';import{getTranslation as _0x5cdbc8}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x58bfaf{[_0x51ff4b(0x19e)];[_0x51ff4b(0x19f)];constructor(_0x2bcfd4,_0x47c869){const _0xd4e3b2=_0x51ff4b;super(_0x2bcfd4,_0x47c869),this[_0xd4e3b2(0x188)][_0xd4e3b2(0x183)][_0xd4e3b2(0x1a9)]=0x1,this[_0xd4e3b2(0x188)][_0xd4e3b2(0x183)][_0xd4e3b2(0x1a4)]=0x3,this[_0xd4e3b2(0x19e)]=this[_0xd4e3b2(0x199)](),this[_0xd4e3b2(0x19f)]=this[_0xd4e3b2(0x17d)](),this[_0xd4e3b2(0x197)][_0xd4e3b2(0x192)](this[_0xd4e3b2(0x19f)],0x1),this[_0xd4e3b2(0x197)][_0xd4e3b2(0x192)](this[_0xd4e3b2(0x19e)]);}[_0x51ff4b(0x1a5)](){const _0x367825=_0x51ff4b;super[_0x367825(0x1a5)](),this[_0x367825(0x188)][_0x367825(0x189)][_0x367825(0x192)](this[_0x367825(0x19f)]),this[_0x367825(0x17e)][_0x367825(0x192)](this[_0x367825(0x19e)]),this[_0x367825(0x19c)][_0x367825(0x18e)](_0x367825(0x17a),(_0x3dea00,_0x3c3be3)=>{const _0x390c17=_0x367825;_0x3dea00[_0x390c17(0x180)]==this[_0x390c17(0x188)][_0x390c17(0x183)][_0x390c17(0x1af)]&&(this[_0x390c17(0x19b)](),_0x3c3be3());});}[_0x51ff4b(0x199)](){const _0xb4c9da=_0x51ff4b,_0x15bc1f=new _0x390e0f(this[_0xb4c9da(0x17f)]),_0x31d2a6=this[_0xb4c9da(0x17f)];return _0x15bc1f[_0xb4c9da(0x18e)]({'icon':_0x24d0b3,'label':_0x5cdbc8(_0x31d2a6,_0xb4c9da(0x18b)),'isVisible':!0x0,'tooltip':!0x0,'class':_0xb4c9da(0x1ab)}),_0x15bc1f['on'](_0xb4c9da(0x193),()=>{const _0x1ad2b7=_0xb4c9da;this[_0x1ad2b7(0x19b)]();}),_0x15bc1f[_0xb4c9da(0x1a6)](_0xb4c9da(0x1a7))['to'](this[_0xb4c9da(0x188)][_0xb4c9da(0x183)],_0xb4c9da(0x18a),this,_0xb4c9da(0x1a7),(_0x31cb83,_0x5de9d5)=>!_0x31cb83&&_0x5de9d5),_0x15bc1f;}[_0x51ff4b(0x17d)](){const _0x4173b9=_0x51ff4b,_0x2ec9dd=new _0x390e0f(this[_0x4173b9(0x17f)]),_0x399ca7=this[_0x4173b9(0x184)],_0x52db0b=this[_0x4173b9(0x17f)];_0x2ec9dd[_0x4173b9(0x18e)]({'label':_0x5cdbc8(_0x52db0b,_0x4173b9(0x195)),'withText':!0x1,'icon':_0x194e53,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x4173b9(0x1a1)}),_0x2ec9dd[_0x4173b9(0x1a6)](_0x4173b9(0x185))['to'](_0x399ca7,_0x4173b9(0x194)),_0x2ec9dd[_0x4173b9(0x1a6)](_0x4173b9(0x1a7))['to'](this,_0x4173b9(0x1a7)),_0x2ec9dd['on'](_0x4173b9(0x193),()=>{const _0x54d402=_0x4173b9;_0x399ca7[_0x54d402(0x194)]=!_0x399ca7[_0x54d402(0x194)],_0x399ca7[_0x54d402(0x194)]?this[_0x54d402(0x17c)][_0x54d402(0x1a0)]():this[_0x54d402(0x1a0)]();});const _0x3caef1=()=>{const _0xff9206=_0x4173b9;_0x538999[_0xff9206(0x190)][_0xff9206(0x177)](()=>{const _0x1ff895=_0xff9206;if(_0xb6a2fd(this[_0x1ff895(0x1af)])){const _0x528fbe=new _0x125b16(this[_0x1ff895(0x188)][_0x1ff895(0x183)][_0x1ff895(0x1af)]),_0x55e8fb=_0x528fbe[_0x1ff895(0x176)],_0x5af955=_0x1ff895(0x191)===_0x52db0b[_0x1ff895(0x1ad)]?_0x1ff895(0x1ac):_0x1ff895(0x18c);_0x528fbe[_0x1ff895(0x181)](),_0x2ec9dd[_0x1ff895(0x1af)][_0x1ff895(0x1aa)][_0x5af955]=_0x55e8fb-_0x528fbe[_0x1ff895(0x176)]+0x1+'px';}});};return this[_0x4173b9(0x188)][_0x4173b9(0x183)]['on'](_0x4173b9(0x178),_0x3caef1),this['on'](_0x4173b9(0x1a5),_0x3caef1),_0x2ec9dd;}[_0x51ff4b(0x19b)](){const _0x5930e8=_0x51ff4b,_0x3630f7=this[_0x5930e8(0x188)][_0x5930e8(0x183)][_0x5930e8(0x1af)][_0x5930e8(0x1a2)];this[_0x5930e8(0x175)](_0x5930e8(0x19b),_0x3630f7);}[_0x51ff4b(0x1a0)](_0x5b1f88){const _0x92e035=_0x51ff4b;-0x1===_0x5b1f88?this[_0x92e035(0x1a3)][_0x92e035(0x187)]():this[_0x92e035(0x1a3)][_0x92e035(0x198)]();}}
23
+ const _0x213803=_0x2420;(function(_0x1a41e9,_0x356486){const _0x3bb046=_0x2420,_0x2f4795=_0x1a41e9();while(!![]){try{const _0x4e09ff=-parseInt(_0x3bb046(0x1c4))/0x1*(parseInt(_0x3bb046(0x1d4))/0x2)+parseInt(_0x3bb046(0x1f1))/0x3*(-parseInt(_0x3bb046(0x1dc))/0x4)+parseInt(_0x3bb046(0x1db))/0x5+parseInt(_0x3bb046(0x1de))/0x6+-parseInt(_0x3bb046(0x1e4))/0x7+parseInt(_0x3bb046(0x1da))/0x8+-parseInt(_0x3bb046(0x1f7))/0x9*(-parseInt(_0x3bb046(0x1e9))/0xa);if(_0x4e09ff===_0x356486)break;else _0x2f4795['push'](_0x2f4795['shift']());}catch(_0x3942fc){_0x2f4795['push'](_0x2f4795['shift']());}}}(_0x1c1b,0x295b2));import{Rect as _0x57aac9,global as _0x1e42d4,isVisible as _0x3dd69f}from'ckeditor5/src/utils.js';function _0x2420(_0x30ac0d,_0x2fbf80){const _0x1c1ba6=_0x1c1b();return _0x2420=function(_0x2420ed,_0x924804){_0x2420ed=_0x2420ed-0x1c3;let _0x586364=_0x1c1ba6[_0x2420ed];return _0x586364;},_0x2420(_0x30ac0d,_0x2fbf80);}import{IconAIHistory as _0x425f4c,IconSubmit as _0x30ff3b}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x2d5562,ButtonView as _0x3099da}from'ckeditor5/src/ui.js';import{getTranslation as _0x2e56a1}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x2d5562{[_0x213803(0x1f4)];[_0x213803(0x1c9)];constructor(_0x27e5a1,_0xe70bdc){const _0xa133ba=_0x213803;super(_0x27e5a1,_0xe70bdc),this[_0xa133ba(0x1f2)][_0xa133ba(0x1e1)][_0xa133ba(0x1f3)]=0x1,this[_0xa133ba(0x1f2)][_0xa133ba(0x1e1)][_0xa133ba(0x1cd)]=0x3,this[_0xa133ba(0x1f4)]=this[_0xa133ba(0x1ec)](),this[_0xa133ba(0x1c9)]=this[_0xa133ba(0x1e5)](),this[_0xa133ba(0x1f9)][_0xa133ba(0x1d7)](this[_0xa133ba(0x1c9)],0x1),this[_0xa133ba(0x1f9)][_0xa133ba(0x1d7)](this[_0xa133ba(0x1f4)]);}[_0x213803(0x1e2)](){const _0x49c08a=_0x213803;super[_0x49c08a(0x1e2)](),this[_0x49c08a(0x1f2)][_0x49c08a(0x1df)][_0x49c08a(0x1d7)](this[_0x49c08a(0x1c9)]),this[_0x49c08a(0x1cb)][_0x49c08a(0x1d7)](this[_0x49c08a(0x1f4)]),this[_0x49c08a(0x1e8)][_0x49c08a(0x1fa)](_0x49c08a(0x1eb),(_0x2d4c71,_0x364e06)=>{const _0x28962b=_0x49c08a;_0x2d4c71[_0x28962b(0x1e7)]==this[_0x28962b(0x1f2)][_0x28962b(0x1e1)][_0x28962b(0x1e0)]&&(this[_0x28962b(0x1dd)](),_0x364e06());});}[_0x213803(0x1ec)](){const _0x3c310b=_0x213803,_0x27b12e=new _0x3099da(this[_0x3c310b(0x1c6)]),_0x13091d=this[_0x3c310b(0x1c6)];return _0x27b12e[_0x3c310b(0x1fa)]({'icon':_0x30ff3b,'label':_0x2e56a1(_0x13091d,_0x3c310b(0x1fc)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x3c310b(0x1ea)}),_0x27b12e['on'](_0x3c310b(0x1e3),()=>{const _0x42750b=_0x3c310b;this[_0x42750b(0x1dd)]();}),_0x27b12e[_0x3c310b(0x1d0)](_0x3c310b(0x1ce))['to'](this[_0x3c310b(0x1f2)][_0x3c310b(0x1e1)],_0x3c310b(0x1fb),this,_0x3c310b(0x1ce),(_0x19a5a9,_0x39d09c)=>!_0x19a5a9&&_0x39d09c),_0x27b12e;}[_0x213803(0x1e5)](){const _0x2142a4=_0x213803,_0x57c75f=new _0x3099da(this[_0x2142a4(0x1c6)]),_0x17e2d8=this[_0x2142a4(0x1d1)],_0x38412c=this[_0x2142a4(0x1c6)];_0x57c75f[_0x2142a4(0x1fa)]({'label':_0x2e56a1(_0x38412c,_0x2142a4(0x1f5)),'withText':!0x1,'icon':_0x425f4c,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x2142a4(0x1d6)}),_0x57c75f[_0x2142a4(0x1d0)](_0x2142a4(0x1d2))['to'](_0x17e2d8,_0x2142a4(0x1e6)),_0x57c75f[_0x2142a4(0x1d0)](_0x2142a4(0x1ce))['to'](this,_0x2142a4(0x1ce)),_0x57c75f['on'](_0x2142a4(0x1e3),()=>{const _0xac889c=_0x2142a4;_0x17e2d8[_0xac889c(0x1e6)]=!_0x17e2d8[_0xac889c(0x1e6)],_0x17e2d8[_0xac889c(0x1e6)]?this[_0xac889c(0x1c3)][_0xac889c(0x1f0)]():this[_0xac889c(0x1f0)]();});const _0x472182=()=>{const _0x2943eb=_0x2142a4;_0x1e42d4[_0x2943eb(0x1d3)][_0x2943eb(0x1cc)](()=>{const _0x16a0fd=_0x2943eb;if(_0x3dd69f(this[_0x16a0fd(0x1e0)])){const _0x42bd04=new _0x57aac9(this[_0x16a0fd(0x1f2)][_0x16a0fd(0x1e1)][_0x16a0fd(0x1e0)]),_0x470a5d=_0x42bd04[_0x16a0fd(0x1ed)],_0x2bc57b=_0x16a0fd(0x1d5)===_0x38412c[_0x16a0fd(0x1c7)]?_0x16a0fd(0x1c8):_0x16a0fd(0x1ca);_0x42bd04[_0x16a0fd(0x1c5)](),_0x57c75f[_0x16a0fd(0x1e0)][_0x16a0fd(0x1f8)][_0x2bc57b]=_0x470a5d-_0x42bd04[_0x16a0fd(0x1ed)]+0x1+'px';}});};return this[_0x2142a4(0x1f2)][_0x2142a4(0x1e1)]['on'](_0x2142a4(0x1d9),_0x472182),this['on'](_0x2142a4(0x1e2),_0x472182),_0x57c75f;}[_0x213803(0x1dd)](){const _0x30d709=_0x213803,_0x2da272=this[_0x30d709(0x1f2)][_0x30d709(0x1e1)][_0x30d709(0x1e0)][_0x30d709(0x1d8)];this[_0x30d709(0x1ee)](_0x30d709(0x1dd),_0x2da272);}[_0x213803(0x1f0)](_0x1d38db){const _0xe60eac=_0x213803;-0x1===_0x1d38db?this[_0xe60eac(0x1ef)][_0xe60eac(0x1cf)]():this[_0xe60eac(0x1ef)][_0xe60eac(0x1f6)]();}}function _0x1c1b(){const _0x3fe228=['focusLast','bind','resultsView','isOn','window','161464BZmoyK','rtl','ck-ai-form__toggle-history','add','value','update','1012816TnLAtU','13030xZPQfP','160616qSpdyH','submit','1758054CjkSDT','fieldWrapperChildren','element','fieldView','render','execute','1993061zNEluZ','_createShowHistoryButton','isVisible','target','keystrokes','8980uzclmf','ck-ai-form__submit','enter','_createSubmitButton','width','fire','focusCycler','focus','15kSOaBw','queryView','minRows','submitButtonView','History','focusFirst','3141GiXikd','style','focusableChildren','set','isEmpty','Submit','filteredView','1mSgLtu','excludeScrollbarsAndBorders','locale','uiLanguageDirection','left','showHistoryButtonView','right','children','requestAnimationFrame','maxRows','isEnabled'];_0x1c1b=function(){return _0x3fe228;};return _0x1c1b();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3c49e1=_0x110d;(function(_0x3e95ce,_0x5e270b){const _0x31110e=_0x110d,_0x2a259c=_0x3e95ce();while(!![]){try{const _0x1baa7b=parseInt(_0x31110e(0x14a))/0x1+parseInt(_0x31110e(0x139))/0x2*(-parseInt(_0x31110e(0x148))/0x3)+parseInt(_0x31110e(0x156))/0x4+parseInt(_0x31110e(0x142))/0x5+-parseInt(_0x31110e(0x145))/0x6*(parseInt(_0x31110e(0x13b))/0x7)+parseInt(_0x31110e(0x135))/0x8+-parseInt(_0x31110e(0x14e))/0x9;if(_0x1baa7b===_0x5e270b)break;else _0x2a259c['push'](_0x2a259c['shift']());}catch(_0x1a9092){_0x2a259c['push'](_0x2a259c['shift']());}}}(_0x54c1,0xc872d));function _0x54c1(){const _0x378b1b=['replaceButton','addMany','REPLACE','2890632JndiVu','ck-ai-form__toolbar','ck-hidden','9678064ztQpPZ','Stop','toUpperCase','AI_','2IscRJj','locale','7Tunnmx','extendTemplate','insertButton','bind','stopButton','_createButton','Insert\x20below','174290JsTvoe','insert','ck-button-action','1734726UrVyDC','label','isVisible','617157PCpzRR','mainAction','907527KipEgv','set','_CONTENT','replace','14030316IaQLMm','tryAgainButton','bindTemplate','Try\x20again','items'];_0x54c1=function(){return _0x378b1b;};return _0x54c1();}import{ToolbarView as _0x463613,ButtonView as _0x476430}from'ckeditor5/src/ui.js';function _0x110d(_0x5c5da8,_0x44d7b3){const _0x54c187=_0x54c1();return _0x110d=function(_0x110d14,_0x551997){_0x110d14=_0x110d14-0x134;let _0x192fbd=_0x54c187[_0x110d14];return _0x192fbd;},_0x110d(_0x5c5da8,_0x44d7b3);}import{getTranslation as _0x91f12b}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x3c49e1(0x14d),'INSERT':_0x3c49e1(0x143)};export class AIFormToolbarView extends _0x463613{constructor(_0x49105b){const _0x252c98=_0x3c49e1;super(_0x49105b),this[_0x252c98(0x14b)](_0x252c98(0x147),!0x1),this[_0x252c98(0x14b)](_0x252c98(0x149),AIFormToolbarViewMainActionLabel[_0x252c98(0x155)]),this[_0x252c98(0x153)]=this[_0x252c98(0x140)]('',_0x252c98(0x144)),this[_0x252c98(0x153)][_0x252c98(0x13e)](_0x252c98(0x146))['to'](this,_0x252c98(0x149),_0x425f49=>_0x91f12b(_0x49105b,_0x252c98(0x138)+_0x425f49[_0x252c98(0x137)]()+_0x252c98(0x14c))),this[_0x252c98(0x13d)]=this[_0x252c98(0x140)](_0x91f12b(_0x49105b,_0x252c98(0x141))),this[_0x252c98(0x14f)]=this[_0x252c98(0x140)](_0x91f12b(_0x49105b,_0x252c98(0x151))),this[_0x252c98(0x13f)]=this[_0x252c98(0x140)](_0x91f12b(_0x49105b,_0x252c98(0x136)));const _0x5ca401=this[_0x252c98(0x150)];this[_0x252c98(0x13c)]({'attributes':{'class':[_0x252c98(0x157),_0x5ca401['if'](_0x252c98(0x147),_0x252c98(0x134),_0x5052c6=>!_0x5052c6)]}}),this[_0x252c98(0x152)][_0x252c98(0x154)]([this[_0x252c98(0x153)],this[_0x252c98(0x13d)],this[_0x252c98(0x14f)],this[_0x252c98(0x13f)]]);}[_0x3c49e1(0x140)](_0x283cd0,_0x46d1b7){const _0x12552a=_0x3c49e1,_0x412e8a=new _0x476430(this[_0x12552a(0x13a)]);return _0x412e8a[_0x12552a(0x14b)]({'label':_0x283cd0,'class':_0x46d1b7||'','isVisible':!0x0,'withText':!0x0}),_0x412e8a;}}
23
+ const _0x330824=_0x376a;function _0x376a(_0x579780,_0x14a9d8){const _0xfdad71=_0xfdad();return _0x376a=function(_0x376a74,_0x19ee6){_0x376a74=_0x376a74-0x1b5;let _0x46812f=_0xfdad71[_0x376a74];return _0x46812f;},_0x376a(_0x579780,_0x14a9d8);}(function(_0x1a6c67,_0x575f44){const _0x29b10c=_0x376a,_0x71a7b8=_0x1a6c67();while(!![]){try{const _0x43baf5=-parseInt(_0x29b10c(0x1d6))/0x1*(parseInt(_0x29b10c(0x1c7))/0x2)+-parseInt(_0x29b10c(0x1ba))/0x3+parseInt(_0x29b10c(0x1b6))/0x4+-parseInt(_0x29b10c(0x1bc))/0x5+parseInt(_0x29b10c(0x1c3))/0x6*(-parseInt(_0x29b10c(0x1c4))/0x7)+-parseInt(_0x29b10c(0x1cf))/0x8+parseInt(_0x29b10c(0x1cd))/0x9*(parseInt(_0x29b10c(0x1bb))/0xa);if(_0x43baf5===_0x575f44)break;else _0x71a7b8['push'](_0x71a7b8['shift']());}catch(_0x5f3e3b){_0x71a7b8['push'](_0x71a7b8['shift']());}}}(_0xfdad,0x4a8d7));import{ToolbarView as _0x225325,ButtonView as _0x461c9a}from'ckeditor5/src/ui.js';import{getTranslation as _0x323804}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x330824(0x1c0),'INSERT':_0x330824(0x1b5)};export class AIFormToolbarView extends _0x225325{constructor(_0x42f645){const _0x34fae1=_0x330824;super(_0x42f645),this[_0x34fae1(0x1d3)](_0x34fae1(0x1d9),!0x1),this[_0x34fae1(0x1d3)](_0x34fae1(0x1d1),AIFormToolbarViewMainActionLabel[_0x34fae1(0x1b9)]),this[_0x34fae1(0x1bd)]=this[_0x34fae1(0x1c1)]('',_0x34fae1(0x1d2)),this[_0x34fae1(0x1bd)][_0x34fae1(0x1c5)](_0x34fae1(0x1b7))['to'](this,_0x34fae1(0x1d1),_0x281c2e=>_0x323804(_0x42f645,_0x34fae1(0x1ce)+_0x281c2e[_0x34fae1(0x1d7)]()+_0x34fae1(0x1c2))),this[_0x34fae1(0x1b8)]=this[_0x34fae1(0x1c1)](_0x323804(_0x42f645,_0x34fae1(0x1d4))),this[_0x34fae1(0x1ca)]=this[_0x34fae1(0x1c1)](_0x323804(_0x42f645,_0x34fae1(0x1cb))),this[_0x34fae1(0x1d0)]=this[_0x34fae1(0x1c1)](_0x323804(_0x42f645,_0x34fae1(0x1d8)));const _0x425450=this[_0x34fae1(0x1c8)];this[_0x34fae1(0x1cc)]({'attributes':{'class':[_0x34fae1(0x1bf),_0x425450['if'](_0x34fae1(0x1d9),_0x34fae1(0x1c9),_0x387048=>!_0x387048)]}}),this[_0x34fae1(0x1c6)][_0x34fae1(0x1d5)]([this[_0x34fae1(0x1bd)],this[_0x34fae1(0x1b8)],this[_0x34fae1(0x1ca)],this[_0x34fae1(0x1d0)]]);}[_0x330824(0x1c1)](_0x523adc,_0x2b32b1){const _0x59da38=_0x330824,_0x44e036=new _0x461c9a(this[_0x59da38(0x1be)]);return _0x44e036[_0x59da38(0x1d3)]({'label':_0x523adc,'class':_0x2b32b1||'','isVisible':!0x0,'withText':!0x0}),_0x44e036;}}function _0xfdad(){const _0x4bc534=['locale','ck-ai-form__toolbar','replace','_createButton','_CONTENT','6tbAhZU','1128442BvHoSz','bind','items','6lPYTGk','bindTemplate','ck-hidden','tryAgainButton','Try\x20again','extendTemplate','1737oJNwBh','AI_','3323840qCKkjY','stopButton','mainAction','ck-button-action','set','Insert\x20below','addMany','56859FdLqkZ','toUpperCase','Stop','isVisible','insert','1459616lNQlaY','label','insertButton','REPLACE','567102jeDkFc','56390QmFwMZ','1057835ODKCJh','replaceButton'];_0xfdad=function(){return _0x4bc534;};return _0xfdad();}