@ckeditor/ckeditor5-ai 47.2.0-alpha.1 → 47.2.0-alpha.3

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 (365) 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 +34 -34
  188. package/lang/translations/bg.po +26 -26
  189. package/lang/translations/bn.po +26 -26
  190. package/lang/translations/ca.po +26 -26
  191. package/lang/translations/cs.po +28 -28
  192. package/lang/translations/da.po +26 -26
  193. package/lang/translations/de.po +26 -26
  194. package/lang/translations/el.po +26 -26
  195. package/lang/translations/es.po +26 -26
  196. package/lang/translations/et.po +26 -26
  197. package/lang/translations/fi.po +26 -26
  198. package/lang/translations/fr.po +26 -26
  199. package/lang/translations/he.po +26 -26
  200. package/lang/translations/hi.po +26 -26
  201. package/lang/translations/hu.po +26 -26
  202. package/lang/translations/id.po +24 -24
  203. package/lang/translations/it.po +26 -26
  204. package/lang/translations/ja.po +24 -24
  205. package/lang/translations/ko.po +24 -24
  206. package/lang/translations/lt.po +28 -28
  207. package/lang/translations/lv.po +28 -28
  208. package/lang/translations/ms.po +24 -24
  209. package/lang/translations/nl.po +26 -26
  210. package/lang/translations/no.po +26 -26
  211. package/lang/translations/pl.po +28 -28
  212. package/lang/translations/pt-br.po +26 -26
  213. package/lang/translations/pt.po +26 -26
  214. package/lang/translations/ro.po +28 -28
  215. package/lang/translations/ru.po +28 -28
  216. package/lang/translations/sk.po +28 -28
  217. package/lang/translations/sr.po +28 -28
  218. package/lang/translations/sv.po +26 -26
  219. package/lang/translations/th.po +24 -24
  220. package/lang/translations/tr.po +26 -26
  221. package/lang/translations/uk.po +28 -28
  222. package/lang/translations/vi.po +24 -24
  223. package/lang/translations/zh-cn.po +24 -24
  224. package/lang/translations/zh.po +24 -24
  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/aichat/utils/scrollmanager.js +1 -1
  288. package/src/aichathistory/aichathistory.js +1 -1
  289. package/src/aichathistory/aichathistorycontroller.js +1 -1
  290. package/src/aichathistory/aichathistoryui.js +1 -1
  291. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  292. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  293. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  294. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  295. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  296. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  297. package/src/aicore/aiconnector.js +1 -1
  298. package/src/aicore/aiediting.js +1 -1
  299. package/src/aicore/model/aicapabilities.js +1 -1
  300. package/src/aicore/model/aicontext.js +1 -1
  301. package/src/aicore/model/aiinteraction.js +1 -1
  302. package/src/aicore/model/aimodels.js +1 -1
  303. package/src/aicore/model/aireply.js +1 -1
  304. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  305. package/src/aicore/pipeline/airesponseparser.js +2 -2
  306. package/src/aicore/ui/aidisclaimerview.js +1 -1
  307. package/src/aicore/ui/aiskeleton.js +1 -1
  308. package/src/aicore/ui/aispinner.js +1 -1
  309. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  310. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  311. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  312. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  313. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  314. package/src/aicore/utils/common-translations.js +1 -1
  315. package/src/aicore/utils/createresizebutton.js +1 -1
  316. package/src/aicore/utils/documentposition.js +1 -1
  317. package/src/aicore/utils/documentrange.js +1 -1
  318. package/src/aicore/utils/eventnames.js +1 -1
  319. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  320. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  321. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  322. package/src/aicore/utils/htmlparser.js +1 -1
  323. package/src/aicore/utils/htmlstreamer.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/aireviewmode/aireviewcheckdefinitions.js +1 -1
  335. package/src/aireviewmode/aireviewmode.js +1 -1
  336. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  337. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  338. package/src/aireviewmode/aireviewmodeui.js +1 -1
  339. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  340. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  341. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  342. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  343. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  344. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  345. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  346. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  347. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  348. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  349. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  350. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  351. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  352. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  353. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  354. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  355. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  356. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  357. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  358. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  359. package/src/aitabs/aitabs.js +1 -1
  360. package/src/aitabs/aitabsmainview.js +1 -1
  361. package/src/aitabs/tabs/aitabsview.js +1 -1
  362. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  363. package/src/aitabs/tabs/tabpanelview.js +1 -1
  364. package/src/errors.js +1 -1
  365. package/src/index.js +1 -1
@@ -1010,97 +1010,97 @@ msgstr "義大利文"
1010
1010
  msgctxt "Tooltip of the button that shows the changes in the suggestion in the AI chat feed."
1011
1011
  msgid "AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP"
1012
1012
  msgid_plural "Show changes in the document"
1013
- msgstr[0] ""
1013
+ msgstr[0] "顯示文件中的變更"
1014
1014
 
1015
1015
  msgctxt "Tooltip of the button that inserts the suggestions in the AI chat feed."
1016
1016
  msgid "AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP"
1017
1017
  msgid_plural "Insert changes as suggestions"
1018
- msgstr[0] ""
1018
+ msgstr[0] "將變更作為建議插入"
1019
1019
 
1020
1020
  msgctxt "The label of the header displayed in the AI chat sources panel."
1021
1021
  msgid "AI_CHAT_SOURCES_HEADER"
1022
- msgstr ""
1022
+ msgstr "來源"
1023
1023
 
1024
1024
  msgctxt "The label of the toolbar button that toggles the AI chat panel."
1025
1025
  msgid "AI_TOGGLE_BUTTON_LABEL"
1026
- msgstr ""
1026
+ msgstr "AI"
1027
1027
 
1028
1028
  msgctxt "Label for the AI quick action to translate content to Spanish."
1029
1029
  msgid "AI_QUICK_ACTIONS_TRANSLATE_SPANISH"
1030
- msgstr ""
1030
+ msgstr "西班牙文"
1031
1031
 
1032
1032
  msgctxt "Label for the AI quick action to translate content to German."
1033
1033
  msgid "AI_QUICK_ACTIONS_TRANSLATE_GERMAN"
1034
- msgstr ""
1034
+ msgstr "德文"
1035
1035
 
1036
1036
  msgctxt "The message displayed when the AI actions encounters a generic error."
1037
1037
  msgid "AI_ACTIONS_GENERIC_ERROR"
1038
- msgstr ""
1038
+ msgstr "抱歉,無法產生回覆。請稍後再試一次。"
1039
1039
 
1040
1040
  msgctxt "The title of the header displayed in the AI balloon."
1041
1041
  msgid "AI_BALLOON_HEADER_TITLE"
1042
- msgstr ""
1042
+ msgstr "變更 %0"
1043
1043
 
1044
1044
  msgctxt "The tooltip for the button that navigates to the previous AI interaction in the AI actions balloon."
1045
1045
  msgid "AI_ACTIONS_PREVIOUS_INTERACTION"
1046
- msgstr ""
1046
+ msgstr "上一個"
1047
1047
 
1048
1048
  msgctxt "The tooltip for the button that navigates to the next AI interaction in the AI actions balloon."
1049
1049
  msgid "AI_ACTIONS_NEXT_INTERACTION"
1050
- msgstr ""
1050
+ msgstr "下一個"
1051
1051
 
1052
1052
  msgctxt "Text displayed when there were no changes suggested at all to review in the AI review mode."
1053
1053
  msgid "AI_REVIEW_MODE_EMPTY_RESULTS_TEXT"
1054
- msgstr ""
1054
+ msgstr "沒有可建議的變更。"
1055
1055
 
1056
1056
  msgctxt "The tooltip text for the icon indicator used for outdated suggestions"
1057
1057
  msgid "AI_SUGGESTION_CONTENT_PART_OUTDATED"
1058
- msgstr ""
1058
+ msgstr "變更已過時"
1059
1059
 
1060
1060
  msgctxt "Message displayed when a suggestion content part is removed, suggesting to use the \"Show details\" button to learn more."
1061
1061
  msgid "AI_SUGGESTION_CONTENT_PART_REMOVED"
1062
- msgstr ""
1062
+ msgstr "內容已移除。請使用「顯示詳細資訊」來深入瞭解。"
1063
1063
 
1064
1064
  msgctxt "The text displayed when the selected model is no longer available, before the button to start a new conversation."
1065
1065
  msgid "AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT"
1066
- msgstr ""
1066
+ msgstr "所選模型已不再提供使用,因此無法繼續此對話。請"
1067
1067
 
1068
1068
  msgctxt "Label of the inline button to start a new conversation."
1069
1069
  msgid "AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON"
1070
- msgstr ""
1070
+ msgstr "開始新的對話。"
1071
1071
 
1072
1072
  msgctxt "The error message displayed when the original content selection no longer exists and AI changes cannot be applied."
1073
1073
  msgid "AI_ACTIONS_SELECTION_REMOVED_ERROR"
1074
- msgstr ""
1074
+ msgstr "無法套用變更。原始內容已不存在。"
1075
1075
 
1076
1076
  msgctxt "The error message displayed when the prompt is empty in the AI review mode."
1077
1077
  msgid "AI_REVIEW_MODE_PROMPT_EMPTY_ERROR"
1078
- msgstr ""
1078
+ msgstr "提示詞不得為空白"
1079
1079
 
1080
1080
  msgctxt "Label for the button indicating that the AI review suggestion was accepted."
1081
1081
  msgid "AI_REVIEW_MODE_CHECK_STATUS_ACCEPTED"
1082
- msgstr ""
1082
+ msgstr "已接受"
1083
1083
 
1084
1084
  msgctxt "Label for the button indicating that the AI review suggestion was rejected."
1085
1085
  msgid "AI_REVIEW_MODE_CHECK_STATUS_REJECTED"
1086
- msgstr ""
1086
+ msgstr "已駁回"
1087
1087
 
1088
1088
  msgctxt "Label for the button indicating that the AI review suggestion was marked as outdated."
1089
1089
  msgid "AI_REVIEW_MODE_CHECK_STATUS_OUTDATED"
1090
- msgstr ""
1090
+ msgstr "已過時"
1091
1091
 
1092
1092
  msgctxt "The name of the automatically selected model."
1093
1093
  msgid "AI_MODEL_NAME_AUTO"
1094
- msgstr ""
1094
+ msgstr "自動"
1095
1095
 
1096
1096
  msgctxt "The description of the automatically selected model."
1097
1097
  msgid "AI_MODEL_DESCRIPTION_AUTO"
1098
- msgstr ""
1098
+ msgstr "自動選取兼顧速度、品質及成本的最佳模型。"
1099
1099
 
1100
1100
  msgctxt "The description of the Claude-4-5-Haiku model."
1101
1101
  msgid "AI_MODEL_DESCRIPTION_CLAUDE-4-5-HAIKU"
1102
- msgstr ""
1102
+ msgstr "具成本效益且推理能力有所提升的模型,適合快速互動"
1103
1103
 
1104
1104
  msgctxt "The description of the Claude-4-5-Sonnet model."
1105
1105
  msgid "AI_MODEL_DESCRIPTION_CLAUDE-4-5-SONNET"
1106
- msgstr ""
1106
+ msgstr "創意、可靠度及推理能力皆有所提升的進階模型"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ai",
3
- "version": "47.2.0-alpha.1",
3
+ "version": "47.2.0-alpha.3",
4
4
  "description": "AI features for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -29,20 +29,20 @@
29
29
  ],
30
30
  "dependencies": {
31
31
  "@aws-sdk/client-bedrock-runtime": "3.823.0",
32
- "@ckeditor/ckeditor5-clipboard": "47.2.0-alpha.1",
33
- "@ckeditor/ckeditor5-cloud-services": "47.2.0-alpha.1",
34
- "@ckeditor/ckeditor5-collaboration-core": "47.2.0-alpha.1",
35
- "@ckeditor/ckeditor5-core": "47.2.0-alpha.1",
36
- "@ckeditor/ckeditor5-engine": "47.2.0-alpha.1",
37
- "@ckeditor/ckeditor5-icons": "47.2.0-alpha.1",
38
- "@ckeditor/ckeditor5-markdown-gfm": "47.2.0-alpha.1",
39
- "@ckeditor/ckeditor5-table": "47.2.0-alpha.1",
40
- "@ckeditor/ckeditor5-theme-lark": "47.2.0-alpha.1",
41
- "@ckeditor/ckeditor5-ui": "47.2.0-alpha.1",
42
- "@ckeditor/ckeditor5-utils": "47.2.0-alpha.1",
43
- "@ckeditor/ckeditor5-real-time-collaboration": "47.2.0-alpha.1",
44
- "ckeditor5": "47.2.0-alpha.1",
45
- "ckeditor5-collaboration": "47.2.0-alpha.1",
32
+ "@ckeditor/ckeditor5-clipboard": "47.2.0-alpha.3",
33
+ "@ckeditor/ckeditor5-cloud-services": "47.2.0-alpha.3",
34
+ "@ckeditor/ckeditor5-collaboration-core": "47.2.0-alpha.3",
35
+ "@ckeditor/ckeditor5-core": "47.2.0-alpha.3",
36
+ "@ckeditor/ckeditor5-engine": "47.2.0-alpha.3",
37
+ "@ckeditor/ckeditor5-icons": "47.2.0-alpha.3",
38
+ "@ckeditor/ckeditor5-markdown-gfm": "47.2.0-alpha.3",
39
+ "@ckeditor/ckeditor5-table": "47.2.0-alpha.3",
40
+ "@ckeditor/ckeditor5-theme-lark": "47.2.0-alpha.3",
41
+ "@ckeditor/ckeditor5-ui": "47.2.0-alpha.3",
42
+ "@ckeditor/ckeditor5-utils": "47.2.0-alpha.3",
43
+ "@ckeditor/ckeditor5-real-time-collaboration": "47.2.0-alpha.3",
44
+ "ckeditor5": "47.2.0-alpha.3",
45
+ "ckeditor5-collaboration": "47.2.0-alpha.3",
46
46
  "es-toolkit": "1.39.5",
47
47
  "eventsource-parser": "3.0.2",
48
48
  "htmlparser2": "10.0.0",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3772(_0x1766a5,_0x2a3063){const _0x180f6c=_0x180f();return _0x3772=function(_0x377235,_0x478b41){_0x377235=_0x377235-0xdd;let _0x40afed=_0x180f6c[_0x377235];return _0x40afed;},_0x3772(_0x1766a5,_0x2a3063);}const _0x14e726=_0x3772;(function(_0x44a0c2,_0x56fa59){const _0x4d2d35=_0x3772,_0x2bf6c1=_0x44a0c2();while(!![]){try{const _0x19f751=parseInt(_0x4d2d35(0x173))/0x1*(-parseInt(_0x4d2d35(0x124))/0x2)+parseInt(_0x4d2d35(0x140))/0x3+-parseInt(_0x4d2d35(0x16a))/0x4+-parseInt(_0x4d2d35(0x19a))/0x5*(parseInt(_0x4d2d35(0x1a0))/0x6)+parseInt(_0x4d2d35(0x13d))/0x7*(-parseInt(_0x4d2d35(0xe3))/0x8)+parseInt(_0x4d2d35(0x105))/0x9+-parseInt(_0x4d2d35(0x1a9))/0xa*(-parseInt(_0x4d2d35(0x11d))/0xb);if(_0x19f751===_0x56fa59)break;else _0x2bf6c1['push'](_0x2bf6c1['shift']());}catch(_0x4f4019){_0x2bf6c1['push'](_0x2bf6c1['shift']());}}}(_0x180f,0x98b71));import{Plugin as _0x17ef6c}from'ckeditor5/src/core.js';import{AIConnector as _0x4829df}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0xcd0656}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x1f548f,ButtonView as _0x5e2901,ViewCollection as _0x4b75e7,View as _0x2f90e6}from'ckeditor5/src/ui.js';import{AIEditing as _0x2d428c}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x29426a}from'./model/aiactionsinteraction.js';import{CKEditorError as _0xc43016,first as _0x3e80dd}from'ckeditor5/src/utils.js';function _0x180f(){const _0x2371e4=['TrackChangesEditing','isCollapsed','config','_disableCustomViews','getSelectedContent','hideError','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','_setErrorState','_clearSuggestionContent','ai-no-track-changes','actionName','change','upsertCustomAIActionRating','selection','model','hasPendingParts','rootName','2816232cCLJrF','getSelectedBlocks','_refreshInteraction','$graveyard','queueEmptyPromise','howMany','reinsert','message','AI_ACTIONS_NEXT_INTERACTION','170867tuPOIP','_promiseQueue','ck-ai-custom-action-button','_stopInteraction','_interactions','_isAbortError','enqueue','focus','indexOf','startsWith','isDocumentOperation','clearLoading','insertSuggestion','type','getAncestors','toolbar','replyContentUpdated','_filterOperationsOutsideRange','documentFragment','locale','dialogClosed','abort','move','parent','batch','_updateNavigationUI','push','add','_navigateToNext','miniToolbarView','setErrorState','element','replies','getChild','addNavigationItem','nodeAfter','listenTo','path','stopInteraction','30hJnVYr','_aiConnector','Error\x20refreshing\x20interaction:','showLoader','executeAction','balloonView','15270QNEtLT','hasError','modelToViewWithIds','_anchorOperation','getSelectedTableCells','updateContent','Error\x20updating\x20content\x20during\x20navigation:','AIConnector','stop','30vrmjgZ','processor','setSelection','data','has','getDocumentContext','AI_ACTIONS_PREVIOUS_INTERACTION','AIBalloon','first','span','root','interactionFinished','random','_currentInteractionIndex','editor','_clearInteractionHistory','_clone','includes','catch','accepted','_clearLoadingState','_execute','replyChangeGroupStateUpdated','ai-request-aborted','open','getCommonAncestor','ck-ai-navigation-button\x20ck-ai-previous-button','set','selectionRemoved','_interaction','_displayInteractionAtIndex','_isNavigationPreviousButtonInView','changeGroups','6980632TzazxJ','merge','version','pluginName','_navigationPreviousButton','AIActions','schema','showError','_setLoadingState','error','toData','Error\x20updating\x20content\x20in\x20replyCreated:','isPremiumPlugin','_createInteraction','getFirstRange','1/1','areChangesVisible','mainView','bodyView','getSelectionAsFragment','_isNavigationCounterInView','forEach','_navigationNextButton','setLoading','_balloonShowDiff','length','baseVersion','textContent','bind','history','getRanges','createRange','_setupCustomViews','_navigationCounter','2149542EUMEiQ','streaming','range','createPositionAfter','clearErrorState','documentContextContent','setTemplate','ck-ai-navigation-button\x20ck-ai-next-button','createPositionBefore','isEnabled','isLoading','_children','close','_interactionParams','rename','actionCallId','rejected','split','showChangesButton','toggleSuggestionDisplayMode','stopListening','start','removeNavigationItem','_clearErrorState','7928943iBtsXZ','getLimitElement','replyCreated','insert','end','TableSelection','_wrapWithCommonAncestors','6WjWYYy','requires','Error\x20updating\x20content\x20in\x20replyContentUpdated:','hideLoader','sourcePosition','get','pending','createPositionAt','_customViews','clone','getOperations','_isNavigationNextButtonInView','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','upsertAIActionRating','_executeAction','_getExecuteDataRegular','icon','signal','_appendChild','_applyOperationsAsSuggestions','execute','setChangeGroupState','nextSibling','static','isBusy','7yEBRau','remove','slice','986256awwsnP','plugins','getChildAtOffset','AI_ACTIONS_TRY_AGAIN','operationsA','isOfficialPlugin','ai.availableReplyActions','applySuggestion','Attribute','applyOperation','_getExecuteDataInTable','document','addOperation','position','stickiness','_applyChanges','map','_navigateToPrevious','AI_ACTIONS_GENERIC_ERROR','ck-ai-interaction-counter','TrackChanges','state','filter','aiBalloon','getRoot'];_0x180f=function(){return _0x2371e4;};return _0x180f();}import{IconAIQuickActions as _0x5e7d8c,IconRefresh as _0x3d3c11,IconNextArrow as _0x57f53a,IconPreviousArrow as _0x478ee6,IconShowChangesOff as _0x24c223}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x19d5a9}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x2502b8}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x375185}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x575629}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0xc30ece}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x295bc9,getOperationsFromReply as _0x386c98}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x5583db,ModelRange as _0x2fcff2,ModelPosition as _0x41e1c1,_DetachOperation as _0x299b9d,transformOperationSets as _0x5ab5eb}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x24196}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x17ef6c{static get[_0x14e726(0x125)](){return[_0x4829df,_0x1f548f,_0x2d428c,_0x19d5a9,_0xc30ece];}static get[_0x14e726(0xe6)](){const _0x1d963a=_0x14e726;return _0x1d963a(0xe8);}static get[_0x14e726(0x145)](){return!0x0;}static get[_0x14e726(0xef)](){return!0x0;}[_0x14e726(0x19b)];[_0x14e726(0x177)]=[];[_0x14e726(0x1b6)]=0x0;[_0x14e726(0x112)];[_0x14e726(0xfb)]=!0x1;[_0x14e726(0x12c)]=new _0x4b75e7();[_0x14e726(0xe7)];[_0x14e726(0x104)];[_0x14e726(0xf7)]=!0x1;[_0x14e726(0xf9)];[_0x14e726(0xe1)]=!0x1;[_0x14e726(0x12f)]=!0x1;[_0x14e726(0x174)];get[_0x14e726(0xdf)](){const _0x5ea3c8=_0x14e726;return this[_0x5ea3c8(0x177)][this[_0x5ea3c8(0x177)][_0x5ea3c8(0xfc)]-0x1];}constructor(_0x3b8f79){const _0x6cdebd=_0x14e726;super(_0x3b8f79),this[_0x6cdebd(0x19b)]=this[_0x6cdebd(0x1b7)][_0x6cdebd(0x141)][_0x6cdebd(0x129)](_0x6cdebd(0x1a7)),this[_0x6cdebd(0xdd)](_0x6cdebd(0x13c),!0x1),this[_0x6cdebd(0x174)]=new _0x2502b8(),this[_0x6cdebd(0x103)]();}[_0x14e726(0x199)](){const _0x59fa25=_0x14e726;this[_0x59fa25(0x176)]();}async[_0x14e726(0x19e)](_0x30f7ba,_0xab6cee,_0x3577c2){const _0x12d730=_0x14e726;if(this[_0x12d730(0x1b7)][_0x12d730(0x141)][_0x12d730(0x1ad)](_0x12d730(0x122))){if(this[_0x12d730(0x1b7)][_0x12d730(0x141)][_0x12d730(0x129)](_0x12d730(0x122))[_0x12d730(0x1a4)]()){const {modelFragment:_0x20b7cf,anchorData:_0xb8b22}=this[_0x12d730(0x14a)]();return this[_0x12d730(0x132)](_0x30f7ba,_0x20b7cf,_0xb8b22,_0xab6cee,_0x3577c2);}}const {modelFragment:_0x25ced1,anchorData:_0x41229b}=this[_0x12d730(0x133)]();return this[_0x12d730(0x132)](_0x30f7ba,_0x25ced1,_0x41229b,_0xab6cee,_0x3577c2);}[_0x14e726(0x133)](){const _0x495e7f=_0x14e726,_0x2d9132=this[_0x495e7f(0x1b7)][_0x495e7f(0x167)][_0x495e7f(0x14b)][_0x495e7f(0x166)];if(_0x2d9132[_0x495e7f(0x15a)]){const _0x131bcc=_0x3e80dd(_0x2d9132[_0x495e7f(0x16b)]())||this[_0x495e7f(0x1b7)][_0x495e7f(0x167)][_0x495e7f(0xe9)][_0x495e7f(0x11e)](_0x2d9132);this[_0x495e7f(0x1b7)][_0x495e7f(0x167)][_0x495e7f(0x164)](_0x1c98de=>{const _0x129d26=_0x495e7f;_0x1c98de[_0x129d26(0x1ab)](_0x131bcc,'in');});}const _0x1df20b=_0x2d9132[_0x495e7f(0xf1)](),_0x2bb820=this[_0x495e7f(0x123)](this[_0x495e7f(0x1b7)][_0x495e7f(0x167)][_0x495e7f(0x15d)](_0x2d9132),_0x1df20b[_0x495e7f(0x11a)],_0x1df20b[_0x495e7f(0x121)]),_0x3ee74c=_0x2d9132[_0x495e7f(0xf1)]()[_0x495e7f(0x11a)],_0x4551cc=new Map();let _0x55cd7d=_0x2bb820;for(let _0x29d230=0x0;_0x29d230<_0x3ee74c[_0x495e7f(0x198)][_0x495e7f(0xfc)];_0x29d230++)_0x4551cc[_0x495e7f(0xdd)](_0x55cd7d,_0x3ee74c[_0x495e7f(0x198)][_0x29d230]),_0x55cd7d=_0x55cd7d[_0x495e7f(0x194)](0x0);return{'modelFragment':_0x2bb820,'anchorData':_0x4551cc};}[_0x14e726(0x14a)](){const _0x5181ce=_0x14e726,_0x2da185=this[_0x5181ce(0x1b7)][_0x5181ce(0x167)][_0x5181ce(0x14b)][_0x5181ce(0x166)],_0x5b48c9=this[_0x5181ce(0x1b7)][_0x5181ce(0x141)][_0x5181ce(0x129)](_0x5181ce(0x122))[_0x5181ce(0xf6)](),_0x253c2b=_0x2da185[_0x5181ce(0xf1)]()[_0x5181ce(0x11a)][_0x5181ce(0x18a)][_0x5181ce(0x18a)],_0x4d80c7=this[_0x5181ce(0x123)](_0x5b48c9,this[_0x5181ce(0x1b7)][_0x5181ce(0x167)][_0x5181ce(0x10d)](_0x253c2b),this[_0x5181ce(0x1b7)][_0x5181ce(0x167)][_0x5181ce(0x108)](_0x253c2b)),_0x9362e9=_0x2da185[_0x5181ce(0xf1)]()[_0x5181ce(0x11a)],_0x383f87=new Map();let _0x1fef33=_0x4d80c7;for(let _0x1269fc=0x0;_0x1269fc<_0x9362e9[_0x5181ce(0x198)][_0x5181ce(0xfc)];_0x1269fc++)if(_0x383f87[_0x5181ce(0xdd)](_0x1fef33,_0x9362e9[_0x5181ce(0x198)][_0x1269fc]),_0x1269fc<_0x9362e9[_0x5181ce(0x198)][_0x5181ce(0xfc)]-0x1)_0x1fef33=_0x1fef33[_0x5181ce(0x194)](0x0);else{let _0x1d1fe8=_0x1fef33[_0x5181ce(0x13a)];for(;_0x1d1fe8;)_0x383f87[_0x5181ce(0xdd)](_0x1d1fe8,_0x9362e9[_0x5181ce(0x198)][_0x1269fc]),_0x1d1fe8=_0x1d1fe8[_0x5181ce(0x13a)];}return{'modelFragment':_0x4d80c7,'anchorData':_0x383f87};}[_0x14e726(0x132)](_0x3c67fa,_0x362d8a,_0x37f752,_0x3a5b50,_0x484d3b){const _0x1821c9=_0x14e726,_0x4eda94=this[_0x1821c9(0x1b7)][_0x1821c9(0x141)][_0x1821c9(0x129)](_0x2d428c),_0x24a11d=this[_0x1821c9(0x1b7)][_0x1821c9(0x141)][_0x1821c9(0x129)](_0x19d5a9),_0x438359=this[_0x1821c9(0x1b7)][_0x1821c9(0x167)][_0x1821c9(0x14b)][_0x1821c9(0x166)],_0x111b7e=_0x4eda94[_0x1821c9(0x1a2)](_0x362d8a),_0xe003a9=this[_0x1821c9(0x1b7)][_0x1821c9(0x1ac)][_0x1821c9(0x1aa)][_0x1821c9(0xed)](_0x111b7e),_0x4aa7ad=this[_0x1821c9(0x1b7)][_0x1821c9(0x167)][_0x1821c9(0x14b)][_0x1821c9(0xe5)],_0x4609b7=[..._0x438359[_0x1821c9(0x101)]()];let _0x58ce26=this[_0x1821c9(0x1b7)][_0x1821c9(0x15b)][_0x1821c9(0x129)](_0x1821c9(0x146))||[..._0x24196];this[_0x1821c9(0x1b7)][_0x1821c9(0x141)][_0x1821c9(0x1ad)](_0x1821c9(0x154))||(_0x58ce26=_0x58ce26[_0x1821c9(0x156)](_0x3af2c9=>_0x1821c9(0x17f)!=_0x3af2c9));const _0x38c093=new _0xcd0656(this[_0x1821c9(0x1b7)][_0x1821c9(0x186)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x1821c9(0x134),'customView':this[_0x1821c9(0x12c)]},'showUnchangedParts':!0x0,'availableActions':_0x58ce26});return _0x24a11d[_0x1821c9(0x1c1)]({'index':0x3e8*Math[_0x1821c9(0x1b5)]()%0x3e8,'title':_0x3a5b50,'icon':_0x484d3b||_0x5e7d8c,'mainView':_0x38c093,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x4609b7}),this[_0x1821c9(0xeb)](_0x38c093,_0x24a11d),this[_0x1821c9(0x197)](_0x24a11d,_0x1821c9(0x147),()=>{const _0xb653c0=_0x1821c9;this[_0xb653c0(0x14f)](_0x362d8a,_0x37f752,!0x1);}),this[_0x1821c9(0x197)](_0x24a11d,_0x1821c9(0x17f),()=>{const _0x4e45d4=_0x1821c9;this[_0x4e45d4(0x14f)](_0x362d8a,_0x37f752,!0x0);}),this[_0x1821c9(0x197)](_0x24a11d,_0x1821c9(0xde),()=>{const _0x985d00=_0x1821c9;this[_0x985d00(0x176)](),this[_0x985d00(0x15c)]();}),this[_0x1821c9(0x197)](_0x24a11d,_0x1821c9(0x187),()=>{const _0xcc5fc6=_0x1821c9;if(this[_0xcc5fc6(0xdf)]&&this[_0xcc5fc6(0xdf)][_0xcc5fc6(0x193)][_0xcc5fc6(0xfc)]>0x0){const _0x2ff082=this[_0xcc5fc6(0xdf)][_0xcc5fc6(0x193)][this[_0xcc5fc6(0xdf)][_0xcc5fc6(0x193)][_0xcc5fc6(0xfc)]-0x1],_0x22ff88=_0x2ff082[_0xcc5fc6(0xe2)][0x0];_0x22ff88&&_0xcc5fc6(0x12a)===_0x22ff88[_0xcc5fc6(0x155)]&&_0x2ff082[_0xcc5fc6(0x139)](0x0,_0xcc5fc6(0x115));}this[_0xcc5fc6(0x176)](),this[_0xcc5fc6(0x1b8)](),this[_0xcc5fc6(0x119)](_0x24a11d);}),this[_0x1821c9(0xf0)](_0xe003a9,_0x4aa7ad,_0x38c093,_0x24a11d,_0x3c67fa);}[_0x14e726(0x123)](_0x48ac69,_0x2923f5,_0x2ac356){const _0x5114bc=_0x14e726,_0x5466bd=this[_0x5114bc(0x1b7)][_0x5114bc(0x167)][_0x5114bc(0x102)](_0x2923f5,_0x2ac356)[_0x5114bc(0x1c2)](),_0xf5e4b4=_0x5466bd['is'](_0x5114bc(0x185))?[]:_0x5466bd[_0x5114bc(0x181)]({'includeSelf':!0x0})[_0x5114bc(0x13f)](0x1);if(_0xf5e4b4[_0x5114bc(0xfc)]){const _0x291c18=_0xf5e4b4[_0x5114bc(0x150)](_0xa450e7=>_0xa450e7[_0x5114bc(0x1b9)](!0x1));for(let _0x551dd5=0x1;_0x551dd5<_0x291c18[_0x5114bc(0xfc)];_0x551dd5++)_0x291c18[_0x551dd5-0x1][_0x5114bc(0x136)](_0x291c18[_0x551dd5]);return _0x291c18[_0x291c18[_0x5114bc(0xfc)]-0x1][_0x5114bc(0x136)](_0x48ac69),new _0x5583db(_0x291c18[0x0]);}return _0x48ac69;}async[_0x14e726(0xf0)](_0x134de9,_0x3d871f,_0x2c6d34,_0x56b81e,_0x414670){const _0x24b6b0=_0x14e726,_0x2368dc=this[_0x24b6b0(0x1b7)];this[_0x24b6b0(0x112)]={'action':_0x414670,'content':_0x134de9,'version':_0x3d871f,'mainView':_0x2c6d34,'aiBalloon':_0x56b81e};const _0x2b276a=new _0x29426a({'connector':this[_0x24b6b0(0x19b)],'editor':_0x2368dc,'content':_0x134de9,'version':_0x3d871f,..._0x414670});this[_0x24b6b0(0x177)][_0x24b6b0(0x18d)](_0x2b276a),_0x2c6d34[_0x24b6b0(0x15e)]();const _0x135752=(_0x35eeaf,_0x83aef6,_0xc59685=!0x1,_0x458642=_0x24b6b0(0x106))=>this[_0x24b6b0(0x174)][_0x24b6b0(0x179)](async _0x4254ef=>{const _0x2a2691=_0x24b6b0;try{const _0x34f92a=_0x575629({'editor':_0x2368dc,'changeGroups':_0x35eeaf[_0x2a2691(0xe2)],'documentContextContent':_0x35eeaf[_0x2a2691(0x10a)],'showDiff':_0xc59685,'trimUnchanged':!0x1});await _0x83aef6[_0x2a2691(0x1a5)]({'parts':_0x34f92a,'renderingStrategy':_0x458642,'abortSignal':_0x4254ef});}catch(_0x2d2640){if(this[_0x2a2691(0x178)](_0x2d2640))return;throw _0x2d2640;}});this[_0x24b6b0(0xdf)]['on'](_0x24b6b0(0x11f),(_0x71c931,_0x14ff39)=>{const _0x9c208=_0x24b6b0;_0x2c6d34[_0x9c208(0x127)](),_0x135752(_0x14ff39,_0x2c6d34)[_0x9c208(0x1bb)](_0x9f972f=>{const _0x5c3a5c=_0x9c208;this[_0x5c3a5c(0x178)](_0x9f972f)||(console[_0x5c3a5c(0xec)](_0x5c3a5c(0xee),_0x9f972f),this[_0x5c3a5c(0x160)](_0x2b276a,_0x2c6d34));});}),this[_0x24b6b0(0xdf)]['on'](_0x24b6b0(0x183),(_0xa61040,_0x4ff614)=>{const _0x291f55=_0x24b6b0;_0x135752(_0x4ff614,_0x2c6d34)[_0x291f55(0x1bb)](_0xb74941=>{const _0x21541f=_0x291f55;this[_0x21541f(0x178)](_0xb74941)||(console[_0x21541f(0xec)](_0x21541f(0x126),_0xb74941),this[_0x21541f(0x160)](_0x2b276a,_0x2c6d34));});}),this[_0x24b6b0(0xdf)]['on'](_0x24b6b0(0x1b4),async()=>{const _0x36c08c=_0x24b6b0;try{await this[_0x36c08c(0x1bd)](_0x2c6d34,_0x56b81e),this[_0x36c08c(0x18c)]();}catch(_0x9d11f6){this[_0x36c08c(0x178)](_0x9d11f6)||(console[_0x36c08c(0xec)](_0x36c08c(0x130),_0x9d11f6),this[_0x36c08c(0x160)](_0x2b276a,_0x2c6d34));}}),this[_0x24b6b0(0x197)](_0x2c6d34,_0x24b6b0(0x118),(_0x15cb0b,{showDiff:_0x133421})=>{const _0x17d983=_0x24b6b0;this[_0x17d983(0xfb)]=_0x133421;const _0x2737ef=this[_0x17d983(0xdf)][_0x17d983(0x193)][this[_0x17d983(0xdf)][_0x17d983(0x193)][_0x17d983(0xfc)]-0x1];_0x2737ef&&_0x135752(_0x2737ef,_0x2c6d34,_0x133421,_0x17d983(0x13b))[_0x17d983(0x1bb)](_0x441cab=>{const _0x4cf742=_0x17d983;this[_0x4cf742(0x178)](_0x441cab)||(console[_0x4cf742(0xec)](_0x4cf742(0x15f),_0x441cab),this[_0x4cf742(0x160)](_0x2b276a,_0x2c6d34));});}),this[_0x24b6b0(0xdf)]['on'](_0x24b6b0(0x1bf),(_0x5c4d46,{reply:_0x4dc545})=>{const _0xb4af57=_0x24b6b0,_0x399cc7={'positiveCount':_0x4dc545[_0xb4af57(0xe2)][_0xb4af57(0x156)](_0x1a013e=>_0xb4af57(0x1bc)===_0x1a013e[_0xb4af57(0x155)])[_0xb4af57(0xfc)],'totalCount':_0x4dc545[_0xb4af57(0xe2)][_0xb4af57(0xfc)]},_0x3c7d64=this[_0xb4af57(0xdf)][_0xb4af57(0x114)],_0x49643e=this[_0xb4af57(0xdf)][_0xb4af57(0x163)];_0x49643e?this[_0xb4af57(0x19b)][_0xb4af57(0x131)](_0x49643e,_0x3c7d64,_0x399cc7):this[_0xb4af57(0x19b)][_0xb4af57(0x165)](_0x3c7d64,_0x399cc7);}),this[_0x24b6b0(0xeb)](_0x2c6d34,_0x56b81e);try{const _0x1001e7=await this[_0x24b6b0(0xdf)][_0x24b6b0(0x11a)]();return this[_0x24b6b0(0x18c)](),_0x1001e7;}catch(_0x3b385f){if(this[_0x24b6b0(0x178)](_0x3b385f))return;_0x2c6d34[_0x24b6b0(0x127)](),this[_0x24b6b0(0x160)](_0x2b276a,_0x2c6d34);}}[_0x14e726(0x14f)](_0x4b1c6a,_0x5c4a1b,_0x532e22){const _0x1f768b=_0x14e726,_0x2566ce=this[_0x1f768b(0x1b7)];if(_0x532e22&&!_0x2566ce[_0x1f768b(0x141)][_0x1f768b(0x1ad)](_0x1f768b(0x154)))throw new _0xc43016(_0x1f768b(0x162),null);const _0x14de36=this[_0x1f768b(0x1b7)][_0x1f768b(0x141)][_0x1f768b(0x129)](_0xc30ece),_0x117177=this[_0x1f768b(0xdf)],_0x2bd9e9=this[_0x1f768b(0xdf)][_0x1f768b(0x193)][this[_0x1f768b(0xdf)][_0x1f768b(0x193)][_0x1f768b(0xfc)]-0x1],_0xb40593=_0x2bd9e9[_0x1f768b(0xe2)];_0x2bd9e9[_0x1f768b(0x139)](0x0,_0x1f768b(0x1bc));let _0x42a94f=_0x386c98({'editor':_0x2566ce,'reply':_0x2bd9e9,'interaction':_0x117177,'groups':_0xb40593,'transform':!0x1,'documentCompare':_0x14de36,'documentCompareOptions':{'anchor':_0x2566ce[_0x1f768b(0x167)][_0x1f768b(0x12b)](_0x4b1c6a,0x0),'markDeletions':_0x532e22}});_0x42a94f=this[_0x1f768b(0x184)](_0x42a94f,_0x5c4a1b);for(const _0x19c509 of _0x42a94f)this[_0x1f768b(0x1a3)](_0x5c4a1b,_0x19c509,_0x2566ce[_0x1f768b(0x167)][_0x1f768b(0x14b)][_0x1f768b(0x158)]());const _0xac4833=_0x117177[_0x1f768b(0x1ae)]()[_0x1f768b(0xe5)],_0x22b75a=_0x2566ce[_0x1f768b(0x167)][_0x1f768b(0x14b)][_0x1f768b(0x100)][_0x1f768b(0x12e)](_0xac4833),_0x175b5a={'document':_0x2566ce[_0x1f768b(0x167)][_0x1f768b(0x14b)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x4fbee3=_0x5ab5eb(_0x42a94f,_0x22b75a,_0x175b5a)[_0x1f768b(0x144)];_0x2566ce[_0x1f768b(0x167)][_0x1f768b(0x164)](_0x221a92=>{const _0x56af35=_0x1f768b;if(_0x221a92[_0x56af35(0x1ab)](_0x2566ce[_0x56af35(0x167)][_0x56af35(0x14b)][_0x56af35(0x166)][_0x56af35(0x17a)]),_0x532e22)_0x2566ce[_0x56af35(0x141)][_0x56af35(0x129)](_0x56af35(0x159))[_0x56af35(0x137)](_0x4fbee3);else{for(const _0x5d4e29 of _0x4fbee3)_0x5d4e29[_0x56af35(0xfd)]=_0x2566ce[_0x56af35(0x167)][_0x56af35(0x14b)][_0x56af35(0xe5)],_0x295bc9(_0x2566ce,_0x5d4e29),_0x221a92[_0x56af35(0x18b)][_0x56af35(0x14c)](_0x5d4e29),_0x2566ce[_0x56af35(0x167)][_0x56af35(0x149)](_0x5d4e29);}}),this[_0x1f768b(0x1b7)][_0x1f768b(0x141)][_0x1f768b(0x129)](_0x1f768b(0x1b0))[_0x1f768b(0x111)]();}[_0x14e726(0x184)](_0x1f4089,_0x248387){const _0x56565f=_0x14e726;return _0x1f4089[_0x56565f(0x156)](_0x10d677=>{const _0x2d13ca=_0x56565f;if(_0x2d13ca(0x113)==_0x10d677[_0x2d13ca(0x180)]){const _0x5cca5f=_0x10d677[_0x2d13ca(0x14d)][_0x2d13ca(0x196)];return!_0x248387[_0x2d13ca(0x1ad)](_0x5cca5f);}if(_0x10d677[_0x2d13ca(0x180)][_0x2d13ca(0x17b)](_0x2d13ca(0x148))>-0x1){const _0x54584e=_0x10d677[_0x2d13ca(0x107)][_0x2d13ca(0x11a)][_0x2d13ca(0x196)];return!_0x248387[_0x2d13ca(0x1ad)](_0x54584e);}return!0x0;});}[_0x14e726(0x1a3)](_0x241200,_0x2d10e8,_0x5b4744){const _0x1859e8=_0x14e726,_0x3451c5=_0x2d10e8[_0x1859e8(0x12d)]();for(const _0x4fc178 in _0x2d10e8){const _0x1fd754=_0x2d10e8[_0x4fc178];_0x1fd754 instanceof _0x2fcff2?_0x2d10e8[_0x4fc178]=new _0x2fcff2(_0x164f1d(_0x1fd754[_0x1859e8(0x11a)]),_0x164f1d(_0x1fd754[_0x1859e8(0x121)])):_0x1fd754 instanceof _0x41e1c1&&(_0x2d10e8[_0x4fc178]=_0x164f1d(_0x1fd754));}if([_0x1859e8(0x120),_0x1859e8(0x189),_0x1859e8(0x13e),_0x1859e8(0x170),_0x1859e8(0x116),_0x1859e8(0xe4)][_0x1859e8(0x1ba)](_0x3451c5[_0x1859e8(0x180)])){if(_0x3451c5[_0x1859e8(0x17d)]=!0x1,_0x3451c5[_0x1859e8(0xfd)]=null,_0x1859e8(0x13e)==_0x3451c5[_0x1859e8(0x180)]){const _0x429bfa=_0x3451c5[_0x1859e8(0x128)],_0x37845c=_0x3451c5[_0x1859e8(0x16f)];new _0x299b9d(_0x429bfa,_0x37845c)[_0x1859e8(0x1be)]();}else _0x3451c5[_0x1859e8(0x1be)]();}function _0x164f1d(_0x94d11e){const _0x59d609=_0x1859e8;if(_0x59d609(0x16d)==_0x94d11e[_0x59d609(0x1b3)][_0x59d609(0x169)])return _0x94d11e;const _0x5e4875=[];let _0x298bc6=_0x94d11e[_0x59d609(0x1b3)];for(let _0x3c7dbb=0x0;_0x3c7dbb<_0x94d11e[_0x59d609(0x198)][_0x59d609(0xfc)];_0x3c7dbb++){const _0x1ada0c=_0x241200[_0x59d609(0x129)](_0x298bc6)||0x0;_0x5e4875[_0x3c7dbb]=_0x94d11e[_0x59d609(0x198)][_0x3c7dbb]+_0x1ada0c,_0x298bc6=_0x298bc6[_0x59d609(0x142)](_0x94d11e[_0x59d609(0x198)][_0x3c7dbb]);}return new _0x41e1c1(_0x5b4744,_0x5e4875,_0x94d11e[_0x59d609(0x14e)]);}}[_0x14e726(0x16c)](){const _0x2a5ccf=_0x14e726;if(!this[_0x2a5ccf(0x112)])return;this[_0x2a5ccf(0x177)][_0x2a5ccf(0xfc)]>0x0&&this[_0x2a5ccf(0x176)](),this[_0x2a5ccf(0x1b6)]=0x0,this[_0x2a5ccf(0xfb)]=!0x1;const {action:_0x53db63,content:_0x26793e,version:_0x3472e0,mainView:_0x51595b,aiBalloon:_0x4a6aee}=this[_0x2a5ccf(0x112)];_0x51595b[_0x2a5ccf(0xf3)]=!0x1,_0x51595b[_0x2a5ccf(0x15e)](),this[_0x2a5ccf(0x11c)](_0x51595b,_0x4a6aee);const _0x177204=_0x51595b;_0x177204[_0x2a5ccf(0x190)]&&_0x177204[_0x2a5ccf(0x190)][_0x2a5ccf(0x117)]&&_0x177204[_0x2a5ccf(0x190)][_0x2a5ccf(0x117)][_0x2a5ccf(0xdd)]({'isOn':!0x1,'icon':_0x24c223}),this[_0x2a5ccf(0x161)](_0x51595b),_0x51595b[_0x2a5ccf(0x19d)](),this[_0x2a5ccf(0x18c)](),this[_0x2a5ccf(0xf0)](_0x26793e,_0x3472e0,_0x51595b,_0x4a6aee,_0x53db63)[_0x2a5ccf(0x1bb)](_0x3b54f6=>{const _0xf82d5a=_0x2a5ccf;this[_0xf82d5a(0x178)](_0x3b54f6)||console[_0xf82d5a(0xec)](_0xf82d5a(0x19c),_0x3b54f6);});}[_0x14e726(0x161)](_0x25c4c8){const _0x316455=_0x14e726,_0x4d0927=_0x25c4c8[_0x316455(0xf5)][_0x316455(0x110)];for(;_0x4d0927[_0x316455(0xfc)]>0x0;)_0x4d0927[_0x316455(0x13e)](_0x4d0927[_0x316455(0x1b1)]);_0x25c4c8[_0x316455(0xf5)][_0x316455(0x168)]=!0x1;}[_0x14e726(0x178)](_0x5a7d96){const _0xf47c05=_0x14e726;return!!_0x5a7d96[_0xf47c05(0x171)]&&_0x5a7d96[_0xf47c05(0x171)][_0xf47c05(0x17c)](_0xf47c05(0x1c0));}[_0x14e726(0x1b8)](){const _0x1a6c01=_0x14e726;this[_0x1a6c01(0x177)]=[],this[_0x1a6c01(0x112)]=void 0x0,this[_0x1a6c01(0x1b6)]=0x0,this[_0x1a6c01(0x18c)]();}[_0x14e726(0x176)](){const _0x1ef1e3=_0x14e726;this[_0x1ef1e3(0xdf)]&&this[_0x1ef1e3(0xdf)][_0x1ef1e3(0x1a8)](),this[_0x1ef1e3(0x174)][_0x1ef1e3(0x188)](),this[_0x1ef1e3(0x13c)]=!0x1;}[_0x14e726(0x103)](){const _0x36d158=_0x14e726,_0x414c8d=new _0x5e2901(this[_0x36d158(0x1b7)][_0x36d158(0x186)]),_0x4097d9=new _0x5e2901(this[_0x36d158(0x1b7)][_0x36d158(0x186)]),_0xa8dbe9=new _0x2f90e6(this[_0x36d158(0x1b7)][_0x36d158(0x186)]),_0x4e6599=new _0x5e2901(this[_0x36d158(0x1b7)][_0x36d158(0x186)]);_0x414c8d[_0x36d158(0xdd)]({'icon':_0x3d3c11,'label':_0x375185(this[_0x36d158(0x1b7)][_0x36d158(0x186)],_0x36d158(0x143)),'tooltip':!0x0,'class':_0x36d158(0x175)}),_0x4097d9[_0x36d158(0xdd)]({'icon':_0x478ee6,'tooltip':_0x375185(this[_0x36d158(0x1b7)][_0x36d158(0x186)],_0x36d158(0x1af)),'class':_0x36d158(0x1c3)}),_0xa8dbe9[_0x36d158(0x10b)]({'tag':_0x36d158(0x1b2),'attributes':{'class':[_0x36d158(0x153)]},'children':[_0x36d158(0xf2)]}),_0x4e6599[_0x36d158(0xdd)]({'icon':_0x57f53a,'tooltip':_0x375185(this[_0x36d158(0x1b7)][_0x36d158(0x186)],_0x36d158(0x172)),'class':_0x36d158(0x10c)}),_0x414c8d[_0x36d158(0xff)](_0x36d158(0x10e))['to'](this,_0x36d158(0x13c),_0x4d094d=>!_0x4d094d),_0x414c8d['on'](_0x36d158(0x138),()=>{const _0x15555d=_0x36d158;this[_0x15555d(0x16c)]();}),_0x4097d9[_0x36d158(0xff)](_0x36d158(0x10e))['to'](this,_0x36d158(0x13c),_0xa3f8a6=>!_0xa3f8a6),_0x4097d9['on'](_0x36d158(0x138),()=>{const _0x2139f3=_0x36d158;this[_0x2139f3(0x151)]();}),_0x4e6599[_0x36d158(0xff)](_0x36d158(0x10e))['to'](this,_0x36d158(0x13c),_0x409c0d=>!_0x409c0d),_0x4e6599['on'](_0x36d158(0x138),()=>{const _0x9c054f=_0x36d158;this[_0x9c054f(0x18f)]();}),this[_0x36d158(0xe7)]=_0x4097d9,this[_0x36d158(0x104)]=_0xa8dbe9,this[_0x36d158(0xf9)]=_0x4e6599,this[_0x36d158(0x12c)][_0x36d158(0x18e)](_0x414c8d);}[_0x14e726(0x151)](){const _0x4d72cb=_0x14e726,_0x5912ab=this[_0x4d72cb(0x177)][_0x4d72cb(0xfc)];this[_0x4d72cb(0x1b6)]<_0x5912ab-0x1&&this[_0x4d72cb(0xe0)](this[_0x4d72cb(0x1b6)]+0x1);}[_0x14e726(0x18f)](){const _0xffe5c9=_0x14e726;this[_0xffe5c9(0x1b6)]>0x0&&this[_0xffe5c9(0xe0)](this[_0xffe5c9(0x1b6)]-0x1);}async[_0x14e726(0xe0)](_0x5e12f9){const _0x25ee69=_0x14e726;if(!this[_0x25ee69(0x112)])return;this[_0x25ee69(0x1b6)]=_0x5e12f9;const {mainView:_0x2d31eb}=this[_0x25ee69(0x112)],_0x523ff8=this[_0x25ee69(0x177)][this[_0x25ee69(0x177)][_0x25ee69(0xfc)]-0x1-this[_0x25ee69(0x1b6)]];if(!_0x523ff8)return;if(_0x523ff8[_0x25ee69(0x1a1)])return this[_0x25ee69(0x160)](_0x523ff8,_0x2d31eb),void this[_0x25ee69(0x18c)]();if(!_0x523ff8[_0x25ee69(0x193)][_0x25ee69(0xfc)])return;_0x2d31eb[_0x25ee69(0x15e)](),this[_0x25ee69(0x112)]&&this[_0x25ee69(0x11c)](_0x2d31eb,this[_0x25ee69(0x112)][_0x25ee69(0x157)]);const _0x582a56=_0x523ff8[_0x25ee69(0x193)][_0x523ff8[_0x25ee69(0x193)][_0x25ee69(0xfc)]-0x1];if(_0x582a56){const _0x4c6cec=this[_0x25ee69(0x1b7)];this[_0x25ee69(0x161)](_0x2d31eb);try{const _0x461a3a=_0x575629({'editor':_0x4c6cec,'changeGroups':_0x582a56[_0x25ee69(0xe2)],'documentContextContent':_0x582a56[_0x25ee69(0x10a)],'showDiff':this[_0x25ee69(0xfb)],'trimUnchanged':!0x1});this[_0x25ee69(0x161)](_0x2d31eb),await new Promise(_0x581fda=>setTimeout(_0x581fda,0x32)),await _0x2d31eb[_0x25ee69(0x1a5)]({'parts':_0x461a3a,'renderingStrategy':_0x25ee69(0x13b),'abortSignal':new AbortController()[_0x25ee69(0x135)]});}catch(_0x3397b5){this[_0x25ee69(0x178)](_0x3397b5)||console[_0x25ee69(0xec)](_0x25ee69(0x1a6),_0x3397b5);}}this[_0x25ee69(0x18c)]();}[_0x14e726(0x18c)](){const _0x34cda0=_0x14e726;if(!this[_0x34cda0(0xe7)]||!this[_0x34cda0(0x104)]||!this[_0x34cda0(0xf9)])return;const _0x4d8b20=this[_0x34cda0(0x177)][_0x34cda0(0xfc)],_0x3d19f=_0x4d8b20>0x1,_0x128cdc=this[_0x34cda0(0x112)]?.[_0x34cda0(0xf4)];if(_0x3d19f){this[_0x34cda0(0xe1)]||this[_0x34cda0(0xf7)]||this[_0x34cda0(0x12f)]||(this[_0x34cda0(0x12c)][_0x34cda0(0x18e)](this[_0x34cda0(0xe7)]),_0x128cdc?.[_0x34cda0(0x195)](this[_0x34cda0(0xe7)]),this[_0x34cda0(0xe1)]=!0x0,this[_0x34cda0(0x12c)][_0x34cda0(0x18e)](this[_0x34cda0(0x104)]),_0x128cdc?.[_0x34cda0(0x195)](this[_0x34cda0(0x104)]),this[_0x34cda0(0xf7)]=!0x0,this[_0x34cda0(0x12c)][_0x34cda0(0x18e)](this[_0x34cda0(0xf9)]),_0x128cdc?.[_0x34cda0(0x195)](this[_0x34cda0(0xf9)]),this[_0x34cda0(0x12f)]=!0x0);const _0xd1cab1=_0x4d8b20-this[_0x34cda0(0x1b6)];this[_0x34cda0(0x104)][_0x34cda0(0x192)]&&(this[_0x34cda0(0x104)][_0x34cda0(0x192)][_0x34cda0(0xfe)]=_0xd1cab1+'/'+_0x4d8b20),this[_0x34cda0(0xe7)][_0x34cda0(0x10e)]=this[_0x34cda0(0x1b6)]<_0x4d8b20-0x1,this[_0x34cda0(0xf9)][_0x34cda0(0x10e)]=this[_0x34cda0(0x1b6)]>0x0;}else(this[_0x34cda0(0xe1)]||this[_0x34cda0(0xf7)]||this[_0x34cda0(0x12f)])&&(this[_0x34cda0(0x12c)][_0x34cda0(0x13e)](this[_0x34cda0(0xe7)]),_0x128cdc?.[_0x34cda0(0x11b)](this[_0x34cda0(0xe7)]),this[_0x34cda0(0xe1)]=!0x1,this[_0x34cda0(0x12c)][_0x34cda0(0x13e)](this[_0x34cda0(0x104)]),_0x128cdc?.[_0x34cda0(0x11b)](this[_0x34cda0(0x104)]),this[_0x34cda0(0xf7)]=!0x1,this[_0x34cda0(0x12c)][_0x34cda0(0x13e)](this[_0x34cda0(0xf9)]),_0x128cdc?.[_0x34cda0(0x11b)](this[_0x34cda0(0xf9)]),this[_0x34cda0(0x12f)]=!0x1);}[_0x14e726(0xeb)](_0x476f47,_0x5f3bec){const _0x1dd9c2=_0x14e726;_0x476f47[_0x1dd9c2(0xfa)](),_0x5f3bec[_0x1dd9c2(0x19f)][_0x1dd9c2(0xfa)](),this[_0x1dd9c2(0x13c)]=!0x0;}async[_0x14e726(0x160)](_0x366a03,_0x4cdf4e){const _0xd1d56f=_0x14e726,_0x218472=_0x375185(this[_0xd1d56f(0x1b7)][_0xd1d56f(0x186)],_0xd1d56f(0x152));_0x4cdf4e[_0xd1d56f(0xea)](_0x218472),_0x366a03[_0xd1d56f(0x1a1)]=!0x0,await this[_0xd1d56f(0x174)][_0xd1d56f(0x16e)],_0x4cdf4e[_0xd1d56f(0x191)](),this[_0xd1d56f(0x112)]?.[_0xd1d56f(0x157)][_0xd1d56f(0x19f)][_0xd1d56f(0x182)]&&(this[_0xd1d56f(0x112)][_0xd1d56f(0x157)][_0xd1d56f(0x19f)][_0xd1d56f(0x182)][_0xd1d56f(0x10f)]=!0x0);}[_0x14e726(0x11c)](_0x55d1be,_0x2cd4c2){const _0x48ebf0=_0x14e726;_0x55d1be[_0x48ebf0(0x109)](),_0x2cd4c2[_0x48ebf0(0x19f)][_0x48ebf0(0x182)]&&(_0x2cd4c2[_0x48ebf0(0x19f)][_0x48ebf0(0x182)][_0x48ebf0(0x10f)]=!0x1);}async[_0x14e726(0x1bd)](_0x8211fe,_0x15c4fe){const _0xe19975=_0x14e726;await this[_0xe19975(0x174)][_0xe19975(0x16e)],this[_0xe19975(0x13c)]=!0x1,_0x8211fe[_0xe19975(0x17e)](),_0x15c4fe[_0xe19975(0x19f)][_0xe19975(0x17e)]();}[_0x14e726(0x15c)](){const _0x50305f=_0x14e726;this[_0x50305f(0x12c)][_0x50305f(0xf8)](_0x5ef41b=>{const _0x37d51f=_0x50305f;_0x37d51f(0x10e)in _0x5ef41b&&(_0x5ef41b[_0x37d51f(0x10e)]=!0x1);});}}
23
+ const _0x15bbf6=_0x441f;(function(_0x4f488e,_0x2ebbb8){const _0x4e3eaf=_0x441f,_0x4e6c7f=_0x4f488e();while(!![]){try{const _0x394c12=-parseInt(_0x4e3eaf(0x222))/0x1+parseInt(_0x4e3eaf(0x172))/0x2+parseInt(_0x4e3eaf(0x143))/0x3*(parseInt(_0x4e3eaf(0x148))/0x4)+parseInt(_0x4e3eaf(0x18b))/0x5*(-parseInt(_0x4e3eaf(0x1f1))/0x6)+parseInt(_0x4e3eaf(0x1d5))/0x7*(-parseInt(_0x4e3eaf(0x16d))/0x8)+-parseInt(_0x4e3eaf(0x209))/0x9*(parseInt(_0x4e3eaf(0x171))/0xa)+-parseInt(_0x4e3eaf(0x203))/0xb*(-parseInt(_0x4e3eaf(0x1b6))/0xc);if(_0x394c12===_0x2ebbb8)break;else _0x4e6c7f['push'](_0x4e6c7f['shift']());}catch(_0x59f28d){_0x4e6c7f['push'](_0x4e6c7f['shift']());}}}(_0x48b5,0x6e63a));import{Plugin as _0x3733fd}from'ckeditor5/src/core.js';import{AIConnector as _0x459b49}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x39b66c}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x48b5(){const _0x2f238c=['_wrapWithCommonAncestors','batch','$graveyard','isDocumentOperation','length','clearLoading','split','upsertAIActionRating','catch','_navigationNextButton','queueEmptyPromise','_clearErrorState','AIActions','replyChangeGroupStateUpdated','processor','open','126132KreOPl','editor','document','map','_isAbortError','_balloonShowDiff','_getExecuteDataRegular','removeNavigationItem','_currentInteractionIndex','nextSibling','textContent','bind','replyContentUpdated','_navigationCounter','merge','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','selection','_clearInteractionHistory','requires','getSelectionAsFragment','miniToolbarView','_clone','balloonView','type','reinsert','operationsA','_execute','showError','span','clone','ck-ai-navigation-button\x20ck-ai-previous-button','604212KFnGyi','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','AI_ACTIONS_PREVIOUS_INTERACTION','_clearSuggestionContent','AI_ACTIONS_GENERIC_ERROR','insertSuggestion','ai-request-aborted','showChangesButton','_appendChild','parent','_applyChanges','isLoading','addNavigationItem','getSelectedBlocks','applySuggestion','position','accepted','bodyView','documentFragment','error','actionCallId','close','schema','AIConnector','changeGroups','_stopInteraction','dialogClosed','config','414CFbHAO','_displayInteractionAtIndex','setLoading','signal','_customViews','mainView','ck-ai-navigation-button\x20ck-ai-next-button','nodeAfter','slice','startsWith','_navigateToNext','_setLoadingState','getSelectedContent','end','_interactionParams','path','ck-ai-custom-action-button','toggleSuggestionDisplayMode','2321kXTXZo','has','Error\x20updating\x20content\x20in\x20replyCreated:','insert','pluginName','documentContextContent','1017lFYOsm','_setErrorState','isEnabled','Error\x20refreshing\x20interaction:','rootName','_refreshInteraction','focus','aiBalloon','_createInteraction','isBusy','root','random','start','addOperation','setTemplate','move','forEach','areChangesVisible','static','toolbar','TrackChanges','_setupCustomViews','range','_getExecuteDataInTable','model','347276ULlqNz','set','message','getFirstRange','toData','_aiConnector','_clearLoadingState','_isNavigationNextButtonInView','add','3fkZkKk','isCollapsed','streaming','baseVersion','ai-no-track-changes','729472HXRTNC','getCommonAncestor','executeAction','ai.availableReplyActions','applyOperation','hasError','version','ck-ai-interaction-counter','getRanges','hasPendingParts','getChildAtOffset','replies','replyCreated','state','getDocumentContext','_promiseQueue','AI_ACTIONS_TRY_AGAIN','first','filter','clearErrorState','interactionFinished','1/1','element','createRange','_children','plugins','TrackChangesEditing','getOperations','sourcePosition','upsertCustomAIActionRating','_navigationPreviousButton','_interactions','stopInteraction','howMany','_isNavigationCounterInView','createPositionAt','push','72qGSQOC','showLoader','setErrorState','icon','25290ebFEcn','640582ToMKHu','hideError','history','isOfficialPlugin','change','setSelection','_applyOperationsAsSuggestions','stop','rejected','get','_isNavigationPreviousButtonInView','data','indexOf','execute','createPositionAfter','listenTo','getSelectedTableCells','locale','AI_ACTIONS_NEXT_INTERACTION','isPremiumPlugin','createPositionBefore','getRoot','actionName','stopListening','remove','62205ihUSky','_interaction','AIBalloon','_updateNavigationUI','setChangeGroupState','pending','enqueue','Error\x20updating\x20content\x20in\x20replyContentUpdated:','_filterOperationsOutsideRange','modelToViewWithIds','rename','hideLoader','Error\x20updating\x20content\x20during\x20navigation:','updateContent','getChild','_anchorOperation','getLimitElement','Attribute','selectionRemoved','abort','TableSelection','includes','stickiness','getAncestors','_disableCustomViews','_navigateToPrevious','_executeAction'];_0x48b5=function(){return _0x2f238c;};return _0x48b5();}import{Dialog as _0x1cdbef,ButtonView as _0x2af5e5,ViewCollection as _0x112915,View as _0xcc7ce9}from'ckeditor5/src/ui.js';import{AIEditing as _0x3dbf97}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x58173e}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x10b568,first as _0x109b03}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x5aa519,IconRefresh as _0x3648f2,IconNextArrow as _0x34388e,IconPreviousArrow as _0x188ec3,IconShowChangesOff as _0x5c670e}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x39fd04}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x5b2433}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x197314}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x115773}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x1869dc}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x7d73c5,getOperationsFromReply as _0x2c2ac2}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x158839,ModelRange as _0x248325,ModelPosition as _0x5811ee,_DetachOperation as _0x3ca4bd,transformOperationSets as _0x55a5db}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0xef571e}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x441f(_0x5c143e,_0x51ce4f){const _0x48b52d=_0x48b5();return _0x441f=function(_0x441fcb,_0x53f9b8){_0x441fcb=_0x441fcb-0x140;let _0x2a90b8=_0x48b52d[_0x441fcb];return _0x2a90b8;},_0x441f(_0x5c143e,_0x51ce4f);}export class AIActions extends _0x3733fd{static get[_0x15bbf6(0x1c8)](){return[_0x459b49,_0x1cdbef,_0x3dbf97,_0x39fd04,_0x1869dc];}static get[_0x15bbf6(0x207)](){const _0x3e1f5f=_0x15bbf6;return _0x3e1f5f(0x1b2);}static get[_0x15bbf6(0x175)](){return!0x0;}static get[_0x15bbf6(0x185)](){return!0x0;}[_0x15bbf6(0x227)];[_0x15bbf6(0x167)]=[];[_0x15bbf6(0x1be)]=0x0;[_0x15bbf6(0x1ff)];[_0x15bbf6(0x1bb)]=!0x1;[_0x15bbf6(0x1f5)]=new _0x112915();[_0x15bbf6(0x166)];[_0x15bbf6(0x1c3)];[_0x15bbf6(0x16a)]=!0x1;[_0x15bbf6(0x1af)];[_0x15bbf6(0x17c)]=!0x1;[_0x15bbf6(0x141)]=!0x1;[_0x15bbf6(0x157)];get[_0x15bbf6(0x18c)](){const _0x42eaba=_0x15bbf6;return this[_0x42eaba(0x167)][this[_0x42eaba(0x167)][_0x42eaba(0x1aa)]-0x1];}constructor(_0x2527f0){const _0x270093=_0x15bbf6;super(_0x2527f0),this[_0x270093(0x227)]=this[_0x270093(0x1b7)][_0x270093(0x161)][_0x270093(0x17b)](_0x270093(0x1ec)),this[_0x270093(0x223)](_0x270093(0x212),!0x1),this[_0x270093(0x157)]=new _0x5b2433(),this[_0x270093(0x21e)]();}[_0x15bbf6(0x168)](){const _0x505339=_0x15bbf6;this[_0x505339(0x1ee)]();}async[_0x15bbf6(0x14a)](_0x10a27d,_0x2dea65,_0x52fbcc){const _0xa2b3de=_0x15bbf6;if(this[_0xa2b3de(0x1b7)][_0xa2b3de(0x161)][_0xa2b3de(0x204)](_0xa2b3de(0x19f))){if(this[_0xa2b3de(0x1b7)][_0xa2b3de(0x161)][_0xa2b3de(0x17b)](_0xa2b3de(0x19f))[_0xa2b3de(0x182)]()){const {modelFragment:_0x40010d,anchorData:_0x1d3fc6}=this[_0xa2b3de(0x220)]();return this[_0xa2b3de(0x1a5)](_0x10a27d,_0x40010d,_0x1d3fc6,_0x2dea65,_0x52fbcc);}}const {modelFragment:_0x108fd3,anchorData:_0x400eab}=this[_0xa2b3de(0x1bc)]();return this[_0xa2b3de(0x1a5)](_0x10a27d,_0x108fd3,_0x400eab,_0x2dea65,_0x52fbcc);}[_0x15bbf6(0x1bc)](){const _0x200e2d=_0x15bbf6,_0x1b1b1b=this[_0x200e2d(0x1b7)][_0x200e2d(0x221)][_0x200e2d(0x1b8)][_0x200e2d(0x1c6)];if(_0x1b1b1b[_0x200e2d(0x144)]){const _0x589194=_0x109b03(_0x1b1b1b[_0x200e2d(0x1e2)]())||this[_0x200e2d(0x1b7)][_0x200e2d(0x221)][_0x200e2d(0x1eb)][_0x200e2d(0x19b)](_0x1b1b1b);this[_0x200e2d(0x1b7)][_0x200e2d(0x221)][_0x200e2d(0x176)](_0x3070b5=>{const _0x39889f=_0x200e2d;_0x3070b5[_0x39889f(0x177)](_0x589194,'in');});}const _0x27b87a=_0x1b1b1b[_0x200e2d(0x225)](),_0x441859=this[_0x200e2d(0x1a6)](this[_0x200e2d(0x1b7)][_0x200e2d(0x221)][_0x200e2d(0x1fd)](_0x1b1b1b),_0x27b87a[_0x200e2d(0x215)],_0x27b87a[_0x200e2d(0x1fe)]),_0x53ff26=_0x1b1b1b[_0x200e2d(0x225)]()[_0x200e2d(0x215)],_0x22db57=new Map();let _0x5b3025=_0x441859;for(let _0x2ef663=0x0;_0x2ef663<_0x53ff26[_0x200e2d(0x200)][_0x200e2d(0x1aa)];_0x2ef663++)_0x22db57[_0x200e2d(0x223)](_0x5b3025,_0x53ff26[_0x200e2d(0x200)][_0x2ef663]),_0x5b3025=_0x5b3025[_0x200e2d(0x199)](0x0);return{'modelFragment':_0x441859,'anchorData':_0x22db57};}[_0x15bbf6(0x220)](){const _0x540a06=_0x15bbf6,_0x590122=this[_0x540a06(0x1b7)][_0x540a06(0x221)][_0x540a06(0x1b8)][_0x540a06(0x1c6)],_0x2debb3=this[_0x540a06(0x1b7)][_0x540a06(0x161)][_0x540a06(0x17b)](_0x540a06(0x19f))[_0x540a06(0x1c9)](),_0x39f0a0=_0x590122[_0x540a06(0x225)]()[_0x540a06(0x215)][_0x540a06(0x1de)][_0x540a06(0x1de)],_0x3fa7ac=this[_0x540a06(0x1a6)](_0x2debb3,this[_0x540a06(0x1b7)][_0x540a06(0x221)][_0x540a06(0x186)](_0x39f0a0),this[_0x540a06(0x1b7)][_0x540a06(0x221)][_0x540a06(0x180)](_0x39f0a0)),_0xec9fe9=_0x590122[_0x540a06(0x225)]()[_0x540a06(0x215)],_0x309ff4=new Map();let _0x3b1014=_0x3fa7ac;for(let _0x23171a=0x0;_0x23171a<_0xec9fe9[_0x540a06(0x200)][_0x540a06(0x1aa)];_0x23171a++)if(_0x309ff4[_0x540a06(0x223)](_0x3b1014,_0xec9fe9[_0x540a06(0x200)][_0x23171a]),_0x23171a<_0xec9fe9[_0x540a06(0x200)][_0x540a06(0x1aa)]-0x1)_0x3b1014=_0x3b1014[_0x540a06(0x199)](0x0);else{let _0x5315ca=_0x3b1014[_0x540a06(0x1bf)];for(;_0x5315ca;)_0x309ff4[_0x540a06(0x223)](_0x5315ca,_0xec9fe9[_0x540a06(0x200)][_0x23171a]),_0x5315ca=_0x5315ca[_0x540a06(0x1bf)];}return{'modelFragment':_0x3fa7ac,'anchorData':_0x309ff4};}[_0x15bbf6(0x1a5)](_0x1a521a,_0x4df79a,_0x35b0a7,_0x5d27e7,_0x3b6a9e){const _0x5c8987=_0x15bbf6,_0x3ab826=this[_0x5c8987(0x1b7)][_0x5c8987(0x161)][_0x5c8987(0x17b)](_0x3dbf97),_0x2bc329=this[_0x5c8987(0x1b7)][_0x5c8987(0x161)][_0x5c8987(0x17b)](_0x39fd04),_0x125dee=this[_0x5c8987(0x1b7)][_0x5c8987(0x221)][_0x5c8987(0x1b8)][_0x5c8987(0x1c6)],_0x56f389=_0x3ab826[_0x5c8987(0x194)](_0x4df79a),_0x49f786=this[_0x5c8987(0x1b7)][_0x5c8987(0x17d)][_0x5c8987(0x1b4)][_0x5c8987(0x226)](_0x56f389),_0x51c503=this[_0x5c8987(0x1b7)][_0x5c8987(0x221)][_0x5c8987(0x1b8)][_0x5c8987(0x14e)],_0x149530=[..._0x125dee[_0x5c8987(0x150)]()];let _0xb7bbc9=this[_0x5c8987(0x1b7)][_0x5c8987(0x1f0)][_0x5c8987(0x17b)](_0x5c8987(0x14b))||[..._0xef571e];this[_0x5c8987(0x1b7)][_0x5c8987(0x161)][_0x5c8987(0x204)](_0x5c8987(0x21d))||(_0xb7bbc9=_0xb7bbc9[_0x5c8987(0x15a)](_0x2150be=>_0x5c8987(0x1da)!=_0x2150be));const _0x3382f1=new _0x39b66c(this[_0x5c8987(0x1b7)][_0x5c8987(0x183)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x5c8987(0x170),'customView':this[_0x5c8987(0x1f5)]},'showUnchangedParts':!0x0,'availableActions':_0xb7bbc9});return _0x2bc329[_0x5c8987(0x1b5)]({'index':0x3e8*Math[_0x5c8987(0x214)]()%0x3e8,'title':_0x5d27e7,'icon':_0x3b6a9e||_0x5aa519,'mainView':_0x3382f1,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x5c8987(0x1b7)][_0x5c8987(0x161)][_0x5c8987(0x204)](_0x5c8987(0x21d)),'ranges':_0x149530}),this[_0x5c8987(0x1fc)](_0x3382f1,_0x2bc329),this[_0x5c8987(0x181)](_0x2bc329,_0x5c8987(0x1e3),()=>{const _0x27adef=_0x5c8987;this[_0x27adef(0x1df)](_0x4df79a,_0x35b0a7,!0x1);}),this[_0x5c8987(0x181)](_0x2bc329,_0x5c8987(0x1da),()=>{const _0x254a0b=_0x5c8987;this[_0x254a0b(0x1df)](_0x4df79a,_0x35b0a7,!0x0);}),this[_0x5c8987(0x181)](_0x2bc329,_0x5c8987(0x19d),()=>{const _0x503d02=_0x5c8987;this[_0x503d02(0x1ee)](),this[_0x503d02(0x1a3)]();}),this[_0x5c8987(0x181)](_0x2bc329,_0x5c8987(0x1ef),()=>{const _0x54c0fe=_0x5c8987;if(this[_0x54c0fe(0x18c)]&&this[_0x54c0fe(0x18c)][_0x54c0fe(0x153)][_0x54c0fe(0x1aa)]>0x0){const _0x18f34d=this[_0x54c0fe(0x18c)][_0x54c0fe(0x153)][this[_0x54c0fe(0x18c)][_0x54c0fe(0x153)][_0x54c0fe(0x1aa)]-0x1],_0x302404=_0x18f34d[_0x54c0fe(0x1ed)][0x0];_0x302404&&_0x54c0fe(0x190)===_0x302404[_0x54c0fe(0x155)]&&_0x18f34d[_0x54c0fe(0x18f)](0x0,_0x54c0fe(0x17a));}this[_0x54c0fe(0x1ee)](),this[_0x54c0fe(0x1c7)](),this[_0x54c0fe(0x189)](_0x2bc329);}),this[_0x5c8987(0x211)](_0x49f786,_0x51c503,_0x3382f1,_0x2bc329,_0x1a521a);}[_0x15bbf6(0x1a6)](_0xdb18d0,_0x21eb97,_0x179dea){const _0xee49a5=_0x15bbf6,_0x4294f5=this[_0xee49a5(0x1b7)][_0xee49a5(0x221)][_0xee49a5(0x15f)](_0x21eb97,_0x179dea)[_0xee49a5(0x149)](),_0x506412=_0x4294f5['is'](_0xee49a5(0x1e7))?[]:_0x4294f5[_0xee49a5(0x1a2)]({'includeSelf':!0x0})[_0xee49a5(0x1f9)](0x1);if(_0x506412[_0xee49a5(0x1aa)]){const _0x5bbbb9=_0x506412[_0xee49a5(0x1b9)](_0x36740d=>_0x36740d[_0xee49a5(0x1cb)](!0x1));for(let _0x8fd6c=0x1;_0x8fd6c<_0x5bbbb9[_0xee49a5(0x1aa)];_0x8fd6c++)_0x5bbbb9[_0x8fd6c-0x1][_0xee49a5(0x1dd)](_0x5bbbb9[_0x8fd6c]);return _0x5bbbb9[_0x5bbbb9[_0xee49a5(0x1aa)]-0x1][_0xee49a5(0x1dd)](_0xdb18d0),new _0x158839(_0x5bbbb9[0x0]);}return _0xdb18d0;}async[_0x15bbf6(0x211)](_0x256e5e,_0x599c7d,_0x1bbf2d,_0xa0ee09,_0x458c40){const _0x1cf1c3=_0x15bbf6,_0x2226fa=this[_0x1cf1c3(0x1b7)];this[_0x1cf1c3(0x1ff)]={'action':_0x458c40,'content':_0x256e5e,'version':_0x599c7d,'mainView':_0x1bbf2d,'aiBalloon':_0xa0ee09};const _0x1c3a2c=new _0x58173e({'connector':this[_0x1cf1c3(0x227)],'editor':_0x2226fa,'content':_0x256e5e,'version':_0x599c7d,..._0x458c40});this[_0x1cf1c3(0x167)][_0x1cf1c3(0x16c)](_0x1c3a2c),_0x1bbf2d[_0x1cf1c3(0x173)]();const _0x23f5d5=(_0x48eed5,_0x341532,_0x412151=!0x1,_0x4e33c7=_0x1cf1c3(0x145))=>this[_0x1cf1c3(0x157)][_0x1cf1c3(0x191)](async _0x24e1ef=>{const _0x4621cf=_0x1cf1c3;try{const _0x1d9fc0=_0x115773({'editor':_0x2226fa,'changeGroups':_0x48eed5[_0x4621cf(0x1ed)],'documentContextContent':_0x48eed5[_0x4621cf(0x208)],'showDiff':_0x412151,'trimUnchanged':!0x1});await _0x341532[_0x4621cf(0x198)]({'parts':_0x1d9fc0,'renderingStrategy':_0x4e33c7,'abortSignal':_0x24e1ef});}catch(_0x378bfd){if(this[_0x4621cf(0x1ba)](_0x378bfd))return;throw _0x378bfd;}});this[_0x1cf1c3(0x18c)]['on'](_0x1cf1c3(0x154),(_0x11c4a,_0x3fcc2d)=>{const _0x287dd6=_0x1cf1c3;_0x1bbf2d[_0x287dd6(0x196)](),_0x23f5d5(_0x3fcc2d,_0x1bbf2d)[_0x287dd6(0x1ae)](_0x4b2a9a=>{const _0x4ee6cd=_0x287dd6;this[_0x4ee6cd(0x1ba)](_0x4b2a9a)||(console[_0x4ee6cd(0x1e8)](_0x4ee6cd(0x205),_0x4b2a9a),this[_0x4ee6cd(0x20a)](_0x1c3a2c,_0x1bbf2d));});}),this[_0x1cf1c3(0x18c)]['on'](_0x1cf1c3(0x1c2),(_0x297c93,_0x332c75)=>{const _0x79718a=_0x1cf1c3;_0x23f5d5(_0x332c75,_0x1bbf2d)[_0x79718a(0x1ae)](_0x1d6c00=>{const _0x45ffda=_0x79718a;this[_0x45ffda(0x1ba)](_0x1d6c00)||(console[_0x45ffda(0x1e8)](_0x45ffda(0x192),_0x1d6c00),this[_0x45ffda(0x20a)](_0x1c3a2c,_0x1bbf2d));});}),this[_0x1cf1c3(0x18c)]['on'](_0x1cf1c3(0x15c),async()=>{const _0x40bcf2=_0x1cf1c3;try{await this[_0x40bcf2(0x140)](_0x1bbf2d,_0xa0ee09),this[_0x40bcf2(0x18e)]();}catch(_0x5324b3){this[_0x40bcf2(0x1ba)](_0x5324b3)||(console[_0x40bcf2(0x1e8)](_0x40bcf2(0x1d6),_0x5324b3),this[_0x40bcf2(0x20a)](_0x1c3a2c,_0x1bbf2d));}}),this[_0x1cf1c3(0x181)](_0x1bbf2d,_0x1cf1c3(0x202),(_0x49e5e3,{showDiff:_0xd46220})=>{const _0x9e9f79=_0x1cf1c3;this[_0x9e9f79(0x1bb)]=_0xd46220;const _0x4e0f04=this[_0x9e9f79(0x18c)][_0x9e9f79(0x153)][this[_0x9e9f79(0x18c)][_0x9e9f79(0x153)][_0x9e9f79(0x1aa)]-0x1];_0x4e0f04&&_0x23f5d5(_0x4e0f04,_0x1bbf2d,_0xd46220,_0x9e9f79(0x21b))[_0x9e9f79(0x1ae)](_0xbeec57=>{const _0x2a47ce=_0x9e9f79;this[_0x2a47ce(0x1ba)](_0xbeec57)||(console[_0x2a47ce(0x1e8)](_0x2a47ce(0x1c5),_0xbeec57),this[_0x2a47ce(0x20a)](_0x1c3a2c,_0x1bbf2d));});}),this[_0x1cf1c3(0x18c)]['on'](_0x1cf1c3(0x1b3),(_0x3b4e28,{reply:_0x55a905})=>{const _0x59003b=_0x1cf1c3,_0x58e979={'positiveCount':_0x55a905[_0x59003b(0x1ed)][_0x59003b(0x15a)](_0x4dbee8=>_0x59003b(0x1e5)===_0x4dbee8[_0x59003b(0x155)])[_0x59003b(0x1aa)],'totalCount':_0x55a905[_0x59003b(0x1ed)][_0x59003b(0x1aa)]},_0x1cdbd0=this[_0x59003b(0x18c)][_0x59003b(0x1e9)],_0x253109=this[_0x59003b(0x18c)][_0x59003b(0x188)];_0x253109?this[_0x59003b(0x227)][_0x59003b(0x1ad)](_0x253109,_0x1cdbd0,_0x58e979):this[_0x59003b(0x227)][_0x59003b(0x165)](_0x1cdbd0,_0x58e979);}),this[_0x1cf1c3(0x1fc)](_0x1bbf2d,_0xa0ee09);try{const _0x1318be=await this[_0x1cf1c3(0x18c)][_0x1cf1c3(0x215)]();return this[_0x1cf1c3(0x18e)](),_0x1318be;}catch(_0x26f30d){if(this[_0x1cf1c3(0x1ba)](_0x26f30d))return;_0x1bbf2d[_0x1cf1c3(0x196)](),this[_0x1cf1c3(0x20a)](_0x1c3a2c,_0x1bbf2d);}}[_0x15bbf6(0x1df)](_0x5ecad6,_0x15c58b,_0x39b027){const _0x5b546a=_0x15bbf6,_0x4c383f=this[_0x5b546a(0x1b7)];if(_0x39b027&&!_0x4c383f[_0x5b546a(0x161)][_0x5b546a(0x204)](_0x5b546a(0x21d)))throw new _0x10b568(_0x5b546a(0x147),null);const _0x444655=this[_0x5b546a(0x1b7)][_0x5b546a(0x161)][_0x5b546a(0x17b)](_0x1869dc),_0x4ab3fa=this[_0x5b546a(0x18c)],_0x1c9168=this[_0x5b546a(0x18c)][_0x5b546a(0x153)][this[_0x5b546a(0x18c)][_0x5b546a(0x153)][_0x5b546a(0x1aa)]-0x1],_0x451d41=_0x1c9168[_0x5b546a(0x1ed)];_0x1c9168[_0x5b546a(0x18f)](0x0,_0x5b546a(0x1e5));let _0x12fbc6=_0x2c2ac2({'editor':_0x4c383f,'reply':_0x1c9168,'interaction':_0x4ab3fa,'groups':_0x451d41,'transform':!0x1,'documentCompare':_0x444655,'documentCompareOptions':{'anchor':_0x4c383f[_0x5b546a(0x221)][_0x5b546a(0x16b)](_0x5ecad6,0x0),'markDeletions':_0x39b027}});_0x12fbc6=this[_0x5b546a(0x193)](_0x12fbc6,_0x15c58b);for(const _0x2350b4 of _0x12fbc6)this[_0x5b546a(0x19a)](_0x15c58b,_0x2350b4,_0x4c383f[_0x5b546a(0x221)][_0x5b546a(0x1b8)][_0x5b546a(0x187)]());const _0x3a0323=_0x4ab3fa[_0x5b546a(0x156)]()[_0x5b546a(0x14e)],_0x51f7db=_0x4c383f[_0x5b546a(0x221)][_0x5b546a(0x1b8)][_0x5b546a(0x174)][_0x5b546a(0x163)](_0x3a0323),_0xdcdc1f={'document':_0x4c383f[_0x5b546a(0x221)][_0x5b546a(0x1b8)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x1f4c08=_0x55a5db(_0x12fbc6,_0x51f7db,_0xdcdc1f)[_0x5b546a(0x1cf)];_0x4c383f[_0x5b546a(0x221)][_0x5b546a(0x176)](_0x59a51c=>{const _0x192957=_0x5b546a;if(_0x59a51c[_0x192957(0x177)](_0x4c383f[_0x192957(0x221)][_0x192957(0x1b8)][_0x192957(0x1c6)][_0x192957(0x20f)]),_0x39b027)_0x4c383f[_0x192957(0x161)][_0x192957(0x17b)](_0x192957(0x162))[_0x192957(0x178)](_0x1f4c08);else{for(const _0x439078 of _0x1f4c08)_0x439078[_0x192957(0x146)]=_0x4c383f[_0x192957(0x221)][_0x192957(0x1b8)][_0x192957(0x14e)],_0x7d73c5(_0x4c383f,_0x439078),_0x59a51c[_0x192957(0x1a7)][_0x192957(0x216)](_0x439078),_0x4c383f[_0x192957(0x221)][_0x192957(0x14c)](_0x439078);}}),this[_0x5b546a(0x1b7)][_0x5b546a(0x161)][_0x5b546a(0x17b)](_0x5b546a(0x18d))[_0x5b546a(0x1ea)]();}[_0x15bbf6(0x193)](_0x2ceced,_0x1b0a37){const _0xf4576b=_0x15bbf6;return _0x2ceced[_0xf4576b(0x15a)](_0x2f4868=>{const _0x33d1a4=_0xf4576b;if(_0x33d1a4(0x195)==_0x2f4868[_0x33d1a4(0x1cd)]){const _0x2e70ef=_0x2f4868[_0x33d1a4(0x1e4)][_0x33d1a4(0x1f8)];return!_0x1b0a37[_0x33d1a4(0x204)](_0x2e70ef);}if(_0x2f4868[_0x33d1a4(0x1cd)][_0x33d1a4(0x17e)](_0x33d1a4(0x19c))>-0x1){const _0xe5b17=_0x2f4868[_0x33d1a4(0x21f)][_0x33d1a4(0x215)][_0x33d1a4(0x1f8)];return!_0x1b0a37[_0x33d1a4(0x204)](_0xe5b17);}return!0x0;});}[_0x15bbf6(0x19a)](_0x24ebf9,_0x26b8f7,_0x27136c){const _0x5ab740=_0x15bbf6,_0x2274cc=_0x26b8f7[_0x5ab740(0x1d3)]();for(const _0x5df00d in _0x26b8f7){const _0x4a29ca=_0x26b8f7[_0x5df00d];_0x4a29ca instanceof _0x248325?_0x26b8f7[_0x5df00d]=new _0x248325(_0x5d0bee(_0x4a29ca[_0x5ab740(0x215)]),_0x5d0bee(_0x4a29ca[_0x5ab740(0x1fe)])):_0x4a29ca instanceof _0x5811ee&&(_0x26b8f7[_0x5df00d]=_0x5d0bee(_0x4a29ca));}if([_0x5ab740(0x206),_0x5ab740(0x218),_0x5ab740(0x18a),_0x5ab740(0x1ce),_0x5ab740(0x1ac),_0x5ab740(0x1c4)][_0x5ab740(0x1a0)](_0x2274cc[_0x5ab740(0x1cd)])){if(_0x2274cc[_0x5ab740(0x1a9)]=!0x1,_0x2274cc[_0x5ab740(0x146)]=null,_0x5ab740(0x18a)==_0x2274cc[_0x5ab740(0x1cd)]){const _0x17284f=_0x2274cc[_0x5ab740(0x164)],_0x2e18f2=_0x2274cc[_0x5ab740(0x169)];new _0x3ca4bd(_0x17284f,_0x2e18f2)[_0x5ab740(0x1d0)]();}else _0x2274cc[_0x5ab740(0x1d0)]();}function _0x5d0bee(_0x7f6194){const _0x2aeb9f=_0x5ab740;if(_0x2aeb9f(0x1a8)==_0x7f6194[_0x2aeb9f(0x213)][_0x2aeb9f(0x20d)])return _0x7f6194;const _0x4bc832=[];let _0xaef007=_0x7f6194[_0x2aeb9f(0x213)];for(let _0x1b0ceb=0x0;_0x1b0ceb<_0x7f6194[_0x2aeb9f(0x200)][_0x2aeb9f(0x1aa)];_0x1b0ceb++){const _0x5370df=_0x24ebf9[_0x2aeb9f(0x17b)](_0xaef007)||0x0;_0x4bc832[_0x1b0ceb]=_0x7f6194[_0x2aeb9f(0x200)][_0x1b0ceb]+_0x5370df,_0xaef007=_0xaef007[_0x2aeb9f(0x152)](_0x7f6194[_0x2aeb9f(0x200)][_0x1b0ceb]);}return new _0x5811ee(_0x27136c,_0x4bc832,_0x7f6194[_0x2aeb9f(0x1a1)]);}}[_0x15bbf6(0x20e)](){const _0x1e7523=_0x15bbf6;if(!this[_0x1e7523(0x1ff)])return;this[_0x1e7523(0x167)][_0x1e7523(0x1aa)]>0x0&&this[_0x1e7523(0x1ee)](),this[_0x1e7523(0x1be)]=0x0,this[_0x1e7523(0x1bb)]=!0x1;const {action:_0x23bd8f,content:_0x3970ba,version:_0x2934b1,mainView:_0x288cf4,aiBalloon:_0x1a2c74}=this[_0x1e7523(0x1ff)];_0x288cf4[_0x1e7523(0x21a)]=!0x1,_0x288cf4[_0x1e7523(0x173)](),this[_0x1e7523(0x1b1)](_0x288cf4,_0x1a2c74);const _0x1e5afd=_0x288cf4;_0x1e5afd[_0x1e7523(0x1ca)]&&_0x1e5afd[_0x1e7523(0x1ca)][_0x1e7523(0x1dc)]&&_0x1e5afd[_0x1e7523(0x1ca)][_0x1e7523(0x1dc)][_0x1e7523(0x223)]({'isOn':!0x1,'icon':_0x5c670e}),this[_0x1e7523(0x1d8)](_0x288cf4),_0x288cf4[_0x1e7523(0x16e)](),this[_0x1e7523(0x18e)](),this[_0x1e7523(0x211)](_0x3970ba,_0x2934b1,_0x288cf4,_0x1a2c74,_0x23bd8f)[_0x1e7523(0x1ae)](_0x2e2bb7=>{const _0x33f1de=_0x1e7523;this[_0x33f1de(0x1ba)](_0x2e2bb7)||console[_0x33f1de(0x1e8)](_0x33f1de(0x20c),_0x2e2bb7);});}[_0x15bbf6(0x1d8)](_0x4beb77){const _0x35c731=_0x15bbf6,_0x19055e=_0x4beb77[_0x35c731(0x1e6)][_0x35c731(0x160)];for(;_0x19055e[_0x35c731(0x1aa)]>0x0;)_0x19055e[_0x35c731(0x18a)](_0x19055e[_0x35c731(0x159)]);_0x4beb77[_0x35c731(0x1e6)][_0x35c731(0x151)]=!0x1;}[_0x15bbf6(0x1ba)](_0x37dc01){const _0xb7d2f3=_0x15bbf6;return!!_0x37dc01[_0xb7d2f3(0x224)]&&_0x37dc01[_0xb7d2f3(0x224)][_0xb7d2f3(0x1fa)](_0xb7d2f3(0x1db));}[_0x15bbf6(0x1c7)](){const _0x1b81f8=_0x15bbf6;this[_0x1b81f8(0x167)]=[],this[_0x1b81f8(0x1ff)]=void 0x0,this[_0x1b81f8(0x1be)]=0x0,this[_0x1b81f8(0x18e)]();}[_0x15bbf6(0x1ee)](){const _0x10b067=_0x15bbf6;this[_0x10b067(0x18c)]&&this[_0x10b067(0x18c)][_0x10b067(0x179)](),this[_0x10b067(0x157)][_0x10b067(0x19e)](),this[_0x10b067(0x212)]=!0x1;}[_0x15bbf6(0x21e)](){const _0x1147d8=_0x15bbf6,_0xc3054a=new _0x2af5e5(this[_0x1147d8(0x1b7)][_0x1147d8(0x183)]),_0x5148fe=new _0x2af5e5(this[_0x1147d8(0x1b7)][_0x1147d8(0x183)]),_0x518a92=new _0xcc7ce9(this[_0x1147d8(0x1b7)][_0x1147d8(0x183)]),_0x3b9e8f=new _0x2af5e5(this[_0x1147d8(0x1b7)][_0x1147d8(0x183)]);_0xc3054a[_0x1147d8(0x223)]({'icon':_0x3648f2,'label':_0x197314(this[_0x1147d8(0x1b7)][_0x1147d8(0x183)],_0x1147d8(0x158)),'tooltip':!0x0,'class':_0x1147d8(0x201)}),_0x5148fe[_0x1147d8(0x223)]({'icon':_0x188ec3,'tooltip':_0x197314(this[_0x1147d8(0x1b7)][_0x1147d8(0x183)],_0x1147d8(0x1d7)),'class':_0x1147d8(0x1d4)}),_0x518a92[_0x1147d8(0x217)]({'tag':_0x1147d8(0x1d2),'attributes':{'class':[_0x1147d8(0x14f)]},'children':[_0x1147d8(0x15d)]}),_0x3b9e8f[_0x1147d8(0x223)]({'icon':_0x34388e,'tooltip':_0x197314(this[_0x1147d8(0x1b7)][_0x1147d8(0x183)],_0x1147d8(0x184)),'class':_0x1147d8(0x1f7)}),_0xc3054a[_0x1147d8(0x1c1)](_0x1147d8(0x20b))['to'](this,_0x1147d8(0x212),_0x1def98=>!_0x1def98),_0xc3054a['on'](_0x1147d8(0x17f),()=>{const _0x3bd2ab=_0x1147d8;this[_0x3bd2ab(0x20e)]();}),_0x5148fe[_0x1147d8(0x1c1)](_0x1147d8(0x20b))['to'](this,_0x1147d8(0x212),_0x19a8dc=>!_0x19a8dc),_0x5148fe['on'](_0x1147d8(0x17f),()=>{const _0x15b52f=_0x1147d8;this[_0x15b52f(0x1a4)]();}),_0x3b9e8f[_0x1147d8(0x1c1)](_0x1147d8(0x20b))['to'](this,_0x1147d8(0x212),_0x10d5e0=>!_0x10d5e0),_0x3b9e8f['on'](_0x1147d8(0x17f),()=>{const _0xa21e25=_0x1147d8;this[_0xa21e25(0x1fb)]();}),this[_0x1147d8(0x166)]=_0x5148fe,this[_0x1147d8(0x1c3)]=_0x518a92,this[_0x1147d8(0x1af)]=_0x3b9e8f,this[_0x1147d8(0x1f5)][_0x1147d8(0x142)](_0xc3054a);}[_0x15bbf6(0x1a4)](){const _0x405704=_0x15bbf6,_0x5a7138=this[_0x405704(0x167)][_0x405704(0x1aa)];this[_0x405704(0x1be)]<_0x5a7138-0x1&&this[_0x405704(0x1f2)](this[_0x405704(0x1be)]+0x1);}[_0x15bbf6(0x1fb)](){const _0xf190b7=_0x15bbf6;this[_0xf190b7(0x1be)]>0x0&&this[_0xf190b7(0x1f2)](this[_0xf190b7(0x1be)]-0x1);}async[_0x15bbf6(0x1f2)](_0x223941){const _0x5acf42=_0x15bbf6;if(!this[_0x5acf42(0x1ff)])return;this[_0x5acf42(0x1be)]=_0x223941;const {mainView:_0x2ba48b}=this[_0x5acf42(0x1ff)],_0x4c0900=this[_0x5acf42(0x167)][this[_0x5acf42(0x167)][_0x5acf42(0x1aa)]-0x1-this[_0x5acf42(0x1be)]];if(!_0x4c0900)return;if(_0x4c0900[_0x5acf42(0x14d)])return this[_0x5acf42(0x20a)](_0x4c0900,_0x2ba48b),void this[_0x5acf42(0x18e)]();if(!_0x4c0900[_0x5acf42(0x153)][_0x5acf42(0x1aa)])return;_0x2ba48b[_0x5acf42(0x173)](),this[_0x5acf42(0x1ff)]&&this[_0x5acf42(0x1b1)](_0x2ba48b,this[_0x5acf42(0x1ff)][_0x5acf42(0x210)]);const _0x2a7744=_0x4c0900[_0x5acf42(0x153)][_0x4c0900[_0x5acf42(0x153)][_0x5acf42(0x1aa)]-0x1];if(_0x2a7744){const _0x2a087b=this[_0x5acf42(0x1b7)];this[_0x5acf42(0x1d8)](_0x2ba48b);try{const _0x4cea4a=_0x115773({'editor':_0x2a087b,'changeGroups':_0x2a7744[_0x5acf42(0x1ed)],'documentContextContent':_0x2a7744[_0x5acf42(0x208)],'showDiff':this[_0x5acf42(0x1bb)],'trimUnchanged':!0x1});this[_0x5acf42(0x1d8)](_0x2ba48b),await new Promise(_0xb07745=>setTimeout(_0xb07745,0x32)),await _0x2ba48b[_0x5acf42(0x198)]({'parts':_0x4cea4a,'renderingStrategy':_0x5acf42(0x21b),'abortSignal':new AbortController()[_0x5acf42(0x1f4)]});}catch(_0xbeaafa){this[_0x5acf42(0x1ba)](_0xbeaafa)||console[_0x5acf42(0x1e8)](_0x5acf42(0x197),_0xbeaafa);}}this[_0x5acf42(0x18e)]();}[_0x15bbf6(0x18e)](){const _0x56f18c=_0x15bbf6;if(!this[_0x56f18c(0x166)]||!this[_0x56f18c(0x1c3)]||!this[_0x56f18c(0x1af)])return;const _0x4a91a2=this[_0x56f18c(0x167)][_0x56f18c(0x1aa)],_0x9c9441=_0x4a91a2>0x1,_0x2827e8=this[_0x56f18c(0x1ff)]?.[_0x56f18c(0x1f6)];if(_0x9c9441){this[_0x56f18c(0x17c)]||this[_0x56f18c(0x16a)]||this[_0x56f18c(0x141)]||(this[_0x56f18c(0x1f5)][_0x56f18c(0x142)](this[_0x56f18c(0x166)]),_0x2827e8?.[_0x56f18c(0x1e1)](this[_0x56f18c(0x166)]),this[_0x56f18c(0x17c)]=!0x0,this[_0x56f18c(0x1f5)][_0x56f18c(0x142)](this[_0x56f18c(0x1c3)]),_0x2827e8?.[_0x56f18c(0x1e1)](this[_0x56f18c(0x1c3)]),this[_0x56f18c(0x16a)]=!0x0,this[_0x56f18c(0x1f5)][_0x56f18c(0x142)](this[_0x56f18c(0x1af)]),_0x2827e8?.[_0x56f18c(0x1e1)](this[_0x56f18c(0x1af)]),this[_0x56f18c(0x141)]=!0x0);const _0x5d97e1=_0x4a91a2-this[_0x56f18c(0x1be)];this[_0x56f18c(0x1c3)][_0x56f18c(0x15e)]&&(this[_0x56f18c(0x1c3)][_0x56f18c(0x15e)][_0x56f18c(0x1c0)]=_0x5d97e1+'/'+_0x4a91a2),this[_0x56f18c(0x166)][_0x56f18c(0x20b)]=this[_0x56f18c(0x1be)]<_0x4a91a2-0x1,this[_0x56f18c(0x1af)][_0x56f18c(0x20b)]=this[_0x56f18c(0x1be)]>0x0;}else(this[_0x56f18c(0x17c)]||this[_0x56f18c(0x16a)]||this[_0x56f18c(0x141)])&&(this[_0x56f18c(0x1f5)][_0x56f18c(0x18a)](this[_0x56f18c(0x166)]),_0x2827e8?.[_0x56f18c(0x1bd)](this[_0x56f18c(0x166)]),this[_0x56f18c(0x17c)]=!0x1,this[_0x56f18c(0x1f5)][_0x56f18c(0x18a)](this[_0x56f18c(0x1c3)]),_0x2827e8?.[_0x56f18c(0x1bd)](this[_0x56f18c(0x1c3)]),this[_0x56f18c(0x16a)]=!0x1,this[_0x56f18c(0x1f5)][_0x56f18c(0x18a)](this[_0x56f18c(0x1af)]),_0x2827e8?.[_0x56f18c(0x1bd)](this[_0x56f18c(0x1af)]),this[_0x56f18c(0x141)]=!0x1);}[_0x15bbf6(0x1fc)](_0x26b418,_0x45c143){const _0x2976ff=_0x15bbf6;_0x26b418[_0x2976ff(0x1f3)](),_0x45c143[_0x2976ff(0x1cc)][_0x2976ff(0x1f3)](),this[_0x2976ff(0x212)]=!0x0;}async[_0x15bbf6(0x20a)](_0x798759,_0x2bb053){const _0x517676=_0x15bbf6,_0x3074d7=_0x197314(this[_0x517676(0x1b7)][_0x517676(0x183)],_0x517676(0x1d9));_0x2bb053[_0x517676(0x1d1)](_0x3074d7),_0x798759[_0x517676(0x14d)]=!0x0,await this[_0x517676(0x157)][_0x517676(0x1b0)],_0x2bb053[_0x517676(0x16f)](),this[_0x517676(0x1ff)]?.[_0x517676(0x210)][_0x517676(0x1cc)][_0x517676(0x21c)]&&(this[_0x517676(0x1ff)][_0x517676(0x210)][_0x517676(0x1cc)][_0x517676(0x21c)][_0x517676(0x1e0)]=!0x0);}[_0x15bbf6(0x1b1)](_0x2396f5,_0x35adfe){const _0x409f69=_0x15bbf6;_0x2396f5[_0x409f69(0x15b)](),_0x35adfe[_0x409f69(0x1cc)][_0x409f69(0x21c)]&&(_0x35adfe[_0x409f69(0x1cc)][_0x409f69(0x21c)][_0x409f69(0x1e0)]=!0x1);}async[_0x15bbf6(0x140)](_0xadca25,_0x3c455c){const _0x88a45a=_0x15bbf6;await this[_0x88a45a(0x157)][_0x88a45a(0x1b0)],this[_0x88a45a(0x212)]=!0x1,_0xadca25[_0x88a45a(0x1ab)](),_0x3c455c[_0x88a45a(0x1cc)][_0x88a45a(0x1ab)]();}[_0x15bbf6(0x1a3)](){const _0x5eb722=_0x15bbf6;this[_0x5eb722(0x1f5)][_0x5eb722(0x219)](_0x154d97=>{const _0x49e365=_0x5eb722;_0x49e365(0x20b)in _0x154d97&&(_0x154d97[_0x49e365(0x20b)]=!0x1);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ddc63=_0x4a45;function _0x4a45(_0x198403,_0x61e7ca){const _0x48bf83=_0x48bf();return _0x4a45=function(_0x4a459e,_0x45b49c){_0x4a459e=_0x4a459e-0x18e;let _0x35e34f=_0x48bf83[_0x4a459e];return _0x35e34f;},_0x4a45(_0x198403,_0x61e7ca);}(function(_0x23888e,_0x65f60c){const _0x4afd44=_0x4a45,_0x1d825c=_0x23888e();while(!![]){try{const _0x123b2f=-parseInt(_0x4afd44(0x196))/0x1+-parseInt(_0x4afd44(0x1a1))/0x2*(-parseInt(_0x4afd44(0x194))/0x3)+-parseInt(_0x4afd44(0x1a6))/0x4+-parseInt(_0x4afd44(0x19b))/0x5+parseInt(_0x4afd44(0x1a3))/0x6*(-parseInt(_0x4afd44(0x19a))/0x7)+-parseInt(_0x4afd44(0x1a9))/0x8+parseInt(_0x4afd44(0x192))/0x9;if(_0x123b2f===_0x65f60c)break;else _0x1d825c['push'](_0x1d825c['shift']());}catch(_0x5e37a7){_0x1d825c['push'](_0x1d825c['shift']());}}}(_0x48bf,0x6d960));import{AIInteraction as _0x5a3356,AI_MODEL_EVENT_NAMES as _0x41d94f}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x1c8073}from'../../aicore/model/aicontext.js';function _0x48bf(){const _0x43a4e8=['108jgiGdd','current-document','Current\x20document','867668xVGtBn','content','html','1412328YUbZbT','replyCreated','connector','model','replies','version','createReply','args','TEXT','20782116fTQZoe','executeAction','1283577gjdVzd','userMessage','873805VotUWj','getDocumentContext','hasError','executeCustomAction','73234rjNeJq','4162700UCGgLy','sendRequest','actionName','delegate','editor','push','2lvSqdh','fire'];_0x48bf=function(){return _0x43a4e8;};return _0x48bf();}import{AIActionsReply as _0x7e3e60}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x5a3356{[_0x2ddc63(0x1a7)];[_0x2ddc63(0x18e)];[_0x2ddc63(0x19d)];[_0x2ddc63(0x190)];[_0x2ddc63(0x195)];[_0x2ddc63(0x1ac)];[_0x2ddc63(0x198)]=!0x1;constructor(_0x40cd65){const _0x1a0e60=_0x2ddc63;super(_0x40cd65),this[_0x1a0e60(0x1a7)]=_0x40cd65[_0x1a0e60(0x1a7)],this[_0x1a0e60(0x18e)]=_0x40cd65[_0x1a0e60(0x18e)],this[_0x1a0e60(0x19d)]=_0x40cd65[_0x1a0e60(0x19d)],this[_0x1a0e60(0x190)]=_0x40cd65[_0x1a0e60(0x190)],this[_0x1a0e60(0x195)]=_0x40cd65[_0x1a0e60(0x195)],this[_0x1a0e60(0x1ac)]=_0x40cd65[_0x1a0e60(0x1ac)];}async[_0x2ddc63(0x19c)](){const _0x50fecd=_0x2ddc63;return this[_0x50fecd(0x19d)]?this[_0x50fecd(0x1ab)][_0x50fecd(0x193)]({'content':this[_0x50fecd(0x1a7)],'actionName':this[_0x50fecd(0x19d)],'args':this[_0x50fecd(0x190)]}):this[_0x50fecd(0x1ab)][_0x50fecd(0x199)]({'content':this[_0x50fecd(0x1a7)],'message':this[_0x50fecd(0x195)],'model':this[_0x50fecd(0x1ac)],'outputFormat':_0x50fecd(0x1a8)});}[_0x2ddc63(0x197)](){const _0x10d8aa=_0x2ddc63;return{'type':_0x1c8073[_0x10d8aa(0x191)],'content':this[_0x10d8aa(0x1a7)],'version':this[_0x10d8aa(0x18e)],'label':_0x10d8aa(0x1a5),'uiId':_0x10d8aa(0x1a4)};}[_0x2ddc63(0x18f)](_0xce4371){const _0x55150b=_0x2ddc63,_0x155fb9=new _0x7e3e60({'editor':this[_0x55150b(0x19f)],'documentContextContent':this[_0x55150b(0x1a7)],..._0xce4371});return this[_0x55150b(0x1ad)][_0x55150b(0x1a0)](_0x155fb9),_0x155fb9[_0x55150b(0x19e)](..._0x41d94f)['to'](this),this[_0x55150b(0x1a2)](_0x55150b(0x1aa),_0x155fb9),_0x155fb9;}}
23
+ const _0x45146d=_0x388a;function _0x4bfa(){const _0x9d385b=['actionName','replies','args','createReply','replyCreated','679956cdhCji','175255fIXGMo','connector','4650464TGigZC','20KciqDd','fire','916920QzMtNQ','userMessage','executeAction','delegate','sendRequest','model','editor','executeCustomAction','TEXT','hasError','2871724GoOGSx','719526osfUyz','html','version','15885288HRiHXl','push','Current\x20document','4osjCgd','current-document','content','getDocumentContext'];_0x4bfa=function(){return _0x9d385b;};return _0x4bfa();}(function(_0x1058d9,_0xf6e433){const _0x3fcb02=_0x388a,_0x265d7a=_0x1058d9();while(!![]){try{const _0x24864e=-parseInt(_0x3fcb02(0x1b8))/0x1+parseInt(_0x3fcb02(0x1a7))/0x2+parseInt(_0x3fcb02(0x1b7))/0x3*(parseInt(_0x3fcb02(0x1ae))/0x4)+-parseInt(_0x3fcb02(0x1bb))/0x5*(-parseInt(_0x3fcb02(0x1a8))/0x6)+parseInt(_0x3fcb02(0x1ba))/0x7+parseInt(_0x3fcb02(0x1bd))/0x8+-parseInt(_0x3fcb02(0x1ab))/0x9;if(_0x24864e===_0xf6e433)break;else _0x265d7a['push'](_0x265d7a['shift']());}catch(_0x34d3f5){_0x265d7a['push'](_0x265d7a['shift']());}}}(_0x4bfa,0xef78e));import{AIInteraction as _0x3243b3,AI_MODEL_EVENT_NAMES as _0x395446}from'../../aicore/model/aiinteraction.js';function _0x388a(_0x32582b,_0x151ff6){const _0x4bfa65=_0x4bfa();return _0x388a=function(_0x388a5a,_0x10d821){_0x388a5a=_0x388a5a-0x1a1;let _0x92ece1=_0x4bfa65[_0x388a5a];return _0x92ece1;},_0x388a(_0x32582b,_0x151ff6);}import{AIContextItemType as _0x40fa98}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x456d0d}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x3243b3{[_0x45146d(0x1b0)];[_0x45146d(0x1aa)];[_0x45146d(0x1b2)];[_0x45146d(0x1b4)];[_0x45146d(0x1be)];[_0x45146d(0x1a2)];[_0x45146d(0x1a6)]=!0x1;constructor(_0x348849){const _0x3ca383=_0x45146d;super(_0x348849),this[_0x3ca383(0x1b0)]=_0x348849[_0x3ca383(0x1b0)],this[_0x3ca383(0x1aa)]=_0x348849[_0x3ca383(0x1aa)],this[_0x3ca383(0x1b2)]=_0x348849[_0x3ca383(0x1b2)],this[_0x3ca383(0x1b4)]=_0x348849[_0x3ca383(0x1b4)],this[_0x3ca383(0x1be)]=_0x348849[_0x3ca383(0x1be)],this[_0x3ca383(0x1a2)]=_0x348849[_0x3ca383(0x1a2)];}async[_0x45146d(0x1a1)](){const _0xd03c43=_0x45146d;return this[_0xd03c43(0x1b2)]?this[_0xd03c43(0x1b9)][_0xd03c43(0x1bf)]({'content':this[_0xd03c43(0x1b0)],'actionName':this[_0xd03c43(0x1b2)],'args':this[_0xd03c43(0x1b4)]}):this[_0xd03c43(0x1b9)][_0xd03c43(0x1a4)]({'content':this[_0xd03c43(0x1b0)],'message':this[_0xd03c43(0x1be)],'model':this[_0xd03c43(0x1a2)],'outputFormat':_0xd03c43(0x1a9)});}[_0x45146d(0x1b1)](){const _0x56dd80=_0x45146d;return{'type':_0x40fa98[_0x56dd80(0x1a5)],'content':this[_0x56dd80(0x1b0)],'version':this[_0x56dd80(0x1aa)],'label':_0x56dd80(0x1ad),'uiId':_0x56dd80(0x1af)};}[_0x45146d(0x1b5)](_0x58dc38){const _0x4f8d11=_0x45146d,_0x407fe6=new _0x456d0d({'editor':this[_0x4f8d11(0x1a3)],'documentContextContent':this[_0x4f8d11(0x1b0)],..._0x58dc38});return this[_0x4f8d11(0x1b3)][_0x4f8d11(0x1ac)](_0x407fe6),_0x407fe6[_0x4f8d11(0x1c0)](..._0x395446)['to'](this),this[_0x4f8d11(0x1bc)](_0x4f8d11(0x1b6),_0x407fe6),_0x407fe6;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x31e4de=_0x16ad;(function(_0x4506da,_0x18b29f){const _0x199d0e=_0x16ad,_0x58b1bd=_0x4506da();while(!![]){try{const _0x4f538b=parseInt(_0x199d0e(0xaa))/0x1*(-parseInt(_0x199d0e(0xb1))/0x2)+parseInt(_0x199d0e(0x9b))/0x3*(-parseInt(_0x199d0e(0xaf))/0x4)+parseInt(_0x199d0e(0xb4))/0x5*(-parseInt(_0x199d0e(0x95))/0x6)+-parseInt(_0x199d0e(0xa4))/0x7+parseInt(_0x199d0e(0x9d))/0x8*(-parseInt(_0x199d0e(0xad))/0x9)+parseInt(_0x199d0e(0xac))/0xa*(-parseInt(_0x199d0e(0x99))/0xb)+parseInt(_0x199d0e(0x9c))/0xc;if(_0x4f538b===_0x18b29f)break;else _0x58b1bd['push'](_0x58b1bd['shift']());}catch(_0x2fd859){_0x58b1bd['push'](_0x58b1bd['shift']());}}}(_0x10e1,0xbc4ab));import{AIReply as _0x42a945}from'../../aicore/model/aireply.js';function _0x10e1(){const _0xed13b=['new','value','8459231RNOSOu','parsedContent','332517AFyGpM','57730980bCVAgB','199384LvzoZH','removed','updateChangeGroups','documentContextContent','data-id','node','_getDifferentChangeGroups','3594927RMFccD','changeGroups','cloneNode','pop','added','children','210KRwbhh','modified','10WWQjXX','306PzzPjn','childNodes','24OohCGH','length','4920gsWhmq','parsedMergedContent','pending','1820185VzgMUe','map','12mACOJO','isDone'];_0x10e1=function(){return _0xed13b;};return _0x10e1();}function _0x16ad(_0x96ff48,_0x5351a4){const _0x10e1f7=_0x10e1();return _0x16ad=function(_0x16ad3f,_0x59c9cd){_0x16ad3f=_0x16ad3f-0x94;let _0x599ea4=_0x10e1f7[_0x16ad3f];return _0x599ea4;},_0x16ad(_0x96ff48,_0x5351a4);}import{getAttribute as _0x1091fa}from'../../aicore/utils/htmlparser.js';import{uid as _0x3fb488}from'ckeditor5/src/utils.js';import{diffArrays as _0x37db06}from'diff';export class AIActionsReply extends _0x42a945{[_0x31e4de(0x9f)](){const _0x148f5b=_0x31e4de;if(this[_0x148f5b(0xb2)]=this[_0x148f5b(0x9a)][_0x148f5b(0xa6)](!0x0),0x0==this[_0x148f5b(0xb2)][_0x148f5b(0xae)][_0x148f5b(0xb0)])return void(this[_0x148f5b(0xa5)]=[]);const _0x5ef9a4=this[_0x148f5b(0xa0)][_0x148f5b(0xa9)][_0x148f5b(0x94)](_0x2a7975=>({'node':_0x2a7975,'id':_0x1091fa(_0x2a7975,_0x148f5b(0xa1))})),_0x4e221e=this[_0x148f5b(0xb2)][_0x148f5b(0xa9)][_0x148f5b(0x94)](_0x3b4047=>({'node':_0x3b4047,'id':_0x1091fa(_0x3b4047,_0x148f5b(0xa1))||_0x3fb488()})),_0x2a6d07=_0x37db06(_0x5ef9a4,_0x4e221e,{'comparator':(_0xefbe0,_0x2224a7)=>_0xefbe0['id']==_0x2224a7['id'],'oneChangePerToken':!0x0});if(!this[_0x148f5b(0x96)]){for(;_0x2a6d07[_0x148f5b(0xb0)]&&_0x2a6d07[_0x2a6d07[_0x148f5b(0xb0)]-0x1][_0x148f5b(0x9e)];)_0x2a6d07[_0x148f5b(0xa7)]();}const _0x17fcd6=_0x2a6d07[_0x148f5b(0x94)](_0x8d179a=>{const _0x2a911d=_0x148f5b,_0x41ae5a=_0x8d179a[_0x2a911d(0xa8)]?_0x2a911d(0x97):_0x8d179a[_0x2a911d(0x9e)]?_0x2a911d(0x9e):_0x2a911d(0xab);return{'node':_0x8d179a[_0x2a911d(0x98)][0x0][_0x2a911d(0xa2)],'type':_0x41ae5a,'id':_0x8d179a[_0x2a911d(0x98)][0x0]['id']};});this[_0x148f5b(0xa5)]=[{'changes':_0x17fcd6,'state':_0x148f5b(0xb3),'index':0x0}];}[_0x31e4de(0xa3)](_0x2a6476,_0x434a46){return _0x434a46;}}
23
+ const _0x1026b4=_0x436b;function _0x436b(_0x315c05,_0x2abe6a){const _0x3b4f70=_0x3b4f();return _0x436b=function(_0x436bef,_0x286d57){_0x436bef=_0x436bef-0xcf;let _0x1e867d=_0x3b4f70[_0x436bef];return _0x1e867d;},_0x436b(_0x315c05,_0x2abe6a);}(function(_0x2c0a26,_0x147513){const _0x17c0d1=_0x436b,_0xda083b=_0x2c0a26();while(!![]){try{const _0x3156a3=-parseInt(_0x17c0d1(0xd2))/0x1*(-parseInt(_0x17c0d1(0xd5))/0x2)+-parseInt(_0x17c0d1(0xcf))/0x3+-parseInt(_0x17c0d1(0xd8))/0x4+parseInt(_0x17c0d1(0xd7))/0x5+-parseInt(_0x17c0d1(0xd4))/0x6*(-parseInt(_0x17c0d1(0xe0))/0x7)+parseInt(_0x17c0d1(0xdd))/0x8*(-parseInt(_0x17c0d1(0xd6))/0x9)+parseInt(_0x17c0d1(0xe4))/0xa*(-parseInt(_0x17c0d1(0xe2))/0xb);if(_0x3156a3===_0x147513)break;else _0xda083b['push'](_0xda083b['shift']());}catch(_0xf358c5){_0xda083b['push'](_0xda083b['shift']());}}}(_0x3b4f,0xc2f83));import{AIReply as _0x3a3bfe}from'../../aicore/model/aireply.js';import{getAttribute as _0x2e86b5}from'../../aicore/utils/htmlparser.js';import{uid as _0x1d24b3}from'ckeditor5/src/utils.js';import{diffArrays as _0x397773}from'diff';export class AIActionsReply extends _0x3a3bfe{[_0x1026b4(0xde)](){const _0x38d8e6=_0x1026b4;if(this[_0x38d8e6(0xd3)]=this[_0x38d8e6(0xdf)][_0x38d8e6(0xeb)](!0x0),0x0==this[_0x38d8e6(0xd3)][_0x38d8e6(0xec)][_0x38d8e6(0xdb)])return void(this[_0x38d8e6(0xd0)]=[]);const _0x51d7db=this[_0x38d8e6(0xda)][_0x38d8e6(0xee)][_0x38d8e6(0xe3)](_0x5cfe7d=>({'node':_0x5cfe7d,'id':_0x2e86b5(_0x5cfe7d,_0x38d8e6(0xd1))})),_0x2ec2f9=this[_0x38d8e6(0xd3)][_0x38d8e6(0xee)][_0x38d8e6(0xe3)](_0x493c8a=>({'node':_0x493c8a,'id':_0x2e86b5(_0x493c8a,_0x38d8e6(0xd1))||_0x1d24b3()})),_0x5aa856=_0x397773(_0x51d7db,_0x2ec2f9,{'comparator':(_0x7520b,_0x114c5c)=>_0x7520b['id']==_0x114c5c['id'],'oneChangePerToken':!0x0});if(!this[_0x38d8e6(0xe6)]){for(;_0x5aa856[_0x38d8e6(0xdb)]&&_0x5aa856[_0x5aa856[_0x38d8e6(0xdb)]-0x1][_0x38d8e6(0xd9)];)_0x5aa856[_0x38d8e6(0xe7)]();}const _0x467865=_0x5aa856[_0x38d8e6(0xe3)](_0x45cf25=>{const _0x17cc7f=_0x38d8e6,_0x108a27=_0x45cf25[_0x17cc7f(0xe5)]?_0x17cc7f(0xea):_0x45cf25[_0x17cc7f(0xd9)]?_0x17cc7f(0xd9):_0x17cc7f(0xe9);return{'node':_0x45cf25[_0x17cc7f(0xe1)][0x0][_0x17cc7f(0xe8)],'type':_0x108a27,'id':_0x45cf25[_0x17cc7f(0xe1)][0x0]['id']};});this[_0x38d8e6(0xd0)]=[{'changes':_0x467865,'state':_0x38d8e6(0xdc),'index':0x0}];}[_0x1026b4(0xed)](_0x1281bf,_0x1d56de){return _0x1d56de;}}function _0x3b4f(){const _0x17a84a=['updateChangeGroups','parsedContent','7MrKWKS','value','121HPXqRM','map','1331530uObtZR','added','isDone','pop','node','modified','new','cloneNode','childNodes','_getDifferentChangeGroups','children','3731271FsesRg','changeGroups','data-id','787UUcPVk','parsedMergedContent','7613406BZiQFZ','4058LQMCre','362790rKenmj','4279655KmDlto','374760FhxfNv','removed','documentContextContent','length','pending','24GKFQDG'];_0x3b4f=function(){return _0x17a84a;};return _0x3b4f();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x34389d=_0x2a34;(function(_0x3e84e3,_0x2885a2){var _0x34cbd8=_0x2a34,_0x22a9c7=_0x3e84e3();while(!![]){try{var _0x592401=-parseInt(_0x34cbd8(0xf8))/0x1+-parseInt(_0x34cbd8(0xf7))/0x2+-parseInt(_0x34cbd8(0xe9))/0x3*(parseInt(_0x34cbd8(0xf3))/0x4)+-parseInt(_0x34cbd8(0xf1))/0x5*(parseInt(_0x34cbd8(0xf0))/0x6)+-parseInt(_0x34cbd8(0xea))/0x7*(-parseInt(_0x34cbd8(0xeb))/0x8)+parseInt(_0x34cbd8(0xee))/0x9*(-parseInt(_0x34cbd8(0xef))/0xa)+-parseInt(_0x34cbd8(0xf4))/0xb*(-parseInt(_0x34cbd8(0xe8))/0xc);if(_0x592401===_0x2885a2)break;else _0x22a9c7['push'](_0x22a9c7['shift']());}catch(_0x63e5b2){_0x22a9c7['push'](_0x22a9c7['shift']());}}}(_0x1dde,0xec208));function _0x1dde(){var _0x2f12e9=['81tOfqlt','1559050XXPlRI','6183066aioazF','5mWQeAt','AIRequestError','6287012LhYIQa','943316lEQIhD','aiadapter-text-adapter-not-set','name','2932244XnRhKp','980742ZljEFV','afterInit','textAdapter','pluginName','AIAdapter','948nKdwAR','3rWvKIo','119cYbROJ','303400bxPPQC','isPremiumPlugin','isOfficialPlugin'];_0x1dde=function(){return _0x2f12e9;};return _0x1dde();}function _0x2a34(_0x228be4,_0x18646f){var _0x1ddec5=_0x1dde();return _0x2a34=function(_0x2a344f,_0x4f2f82){_0x2a344f=_0x2a344f-0xe6;var _0x5fcadc=_0x1ddec5[_0x2a344f];return _0x5fcadc;},_0x2a34(_0x228be4,_0x18646f);}import{Plugin as _0x452b1f}from'ckeditor5/src/core.js';import{CKEditorError as _0x437b10}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x452b1f{static get[_0x34389d(0xe6)](){var _0x5b2575=_0x34389d;return _0x5b2575(0xe7);}static get[_0x34389d(0xed)](){return!0x0;}static get[_0x34389d(0xec)](){return!0x0;}[_0x34389d(0xf9)](){var _0x2d2412=_0x34389d;if(!this[_0x2d2412(0xfa)])throw new _0x437b10(_0x2d2412(0xf5),null);}}export class AIRequestError extends Error{constructor(_0xdc6ef8){var _0xc492d=_0x34389d;super(_0xdc6ef8),this[_0xc492d(0xf6)]=_0xc492d(0xf2);}}
23
+ var _0x47e167=_0xc192;function _0x4609(){var _0x4db4cb=['318xLMawY','isPremiumPlugin','textAdapter','1328153SbZdkn','112206UlnbZq','isOfficialPlugin','81AdScRB','name','4111248aRmGhD','805365PqRzDD','54gkinnz','pluginName','4157996ripmzh','afterInit','AIRequestError','38773yQicll','aiadapter-text-adapter-not-set','AIAdapter','3450890cRtjfR'];_0x4609=function(){return _0x4db4cb;};return _0x4609();}(function(_0x4e3440,_0x677c08){var _0x4fb5c3=_0xc192,_0x3df902=_0x4e3440();while(!![]){try{var _0x23c5e6=-parseInt(_0x4fb5c3(0x86))/0x1+-parseInt(_0x4fb5c3(0x87))/0x2*(parseInt(_0x4fb5c3(0x89))/0x3)+parseInt(_0x4fb5c3(0x8f))/0x4+-parseInt(_0x4fb5c3(0x8c))/0x5+parseInt(_0x4fb5c3(0x96))/0x6*(parseInt(_0x4fb5c3(0x92))/0x7)+parseInt(_0x4fb5c3(0x8b))/0x8+parseInt(_0x4fb5c3(0x8d))/0x9*(parseInt(_0x4fb5c3(0x95))/0xa);if(_0x23c5e6===_0x677c08)break;else _0x3df902['push'](_0x3df902['shift']());}catch(_0x396ffe){_0x3df902['push'](_0x3df902['shift']());}}}(_0x4609,0xdf05b));import{Plugin as _0x685e84}from'ckeditor5/src/core.js';function _0xc192(_0xab3c20,_0x11af4d){var _0x460986=_0x4609();return _0xc192=function(_0xc19271,_0x194aca){_0xc19271=_0xc19271-0x85;var _0x225c98=_0x460986[_0xc19271];return _0x225c98;},_0xc192(_0xab3c20,_0x11af4d);}import{CKEditorError as _0x2bfb2b}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x685e84{static get[_0x47e167(0x8e)](){var _0x265e25=_0x47e167;return _0x265e25(0x94);}static get[_0x47e167(0x88)](){return!0x0;}static get[_0x47e167(0x97)](){return!0x0;}[_0x47e167(0x90)](){var _0x5e9485=_0x47e167;if(!this[_0x5e9485(0x85)])throw new _0x2bfb2b(_0x5e9485(0x93),null);}}export class AIRequestError extends Error{constructor(_0x5a60c4){var _0x397f52=_0x47e167;super(_0x5a60c4),this[_0x397f52(0x8a)]=_0x397f52(0x91);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x52b106=_0x2672;(function(_0x277723,_0xb07669){const _0x3186c9=_0x2672,_0x4381e4=_0x277723();while(!![]){try{const _0x228b56=-parseInt(_0x3186c9(0x14b))/0x1+-parseInt(_0x3186c9(0x140))/0x2+parseInt(_0x3186c9(0x144))/0x3*(parseInt(_0x3186c9(0x13d))/0x4)+parseInt(_0x3186c9(0x149))/0x5+-parseInt(_0x3186c9(0x143))/0x6*(-parseInt(_0x3186c9(0x139))/0x7)+-parseInt(_0x3186c9(0x146))/0x8*(-parseInt(_0x3186c9(0x136))/0x9)+-parseInt(_0x3186c9(0x145))/0xa;if(_0x228b56===_0xb07669)break;else _0x4381e4['push'](_0x4381e4['shift']());}catch(_0x1dc842){_0x4381e4['push'](_0x4381e4['shift']());}}}(_0x5941,0xbfeac));import{Plugin as _0x29e87b}from'ckeditor5/src/core.js';function _0x2672(_0x1153dc,_0x481b83){const _0x5941fa=_0x5941();return _0x2672=function(_0x2672c4,_0x158778){_0x2672c4=_0x2672c4-0x136;let _0x995027=_0x5941fa[_0x2672c4];return _0x995027;},_0x2672(_0x1153dc,_0x481b83);}function _0x5941(){const _0x413a85=['signal','aitextadapter-send-request-failed','init','abort','plugins','reject','3920877wKtAHq','sendRequest','editor','14mYljYH','error','textAdapter','_prepareRequestHeaders','77344OUUQJB','get','resolve','283250DPvKfo','assign','catch','3661674UMRfRp','69KnsiRj','25320100pXWqvZ','16XTCazr','AI_ERROR_GET_PARAMETERS','name','6770205qFKPIq','abortController','430906FyvXJl','_prepareRequestParameters','application/json','AbortError','requires','aborted','object','makeRequest','AI_ERROR_GET_HEADERS','locale'];_0x5941=function(){return _0x413a85;};return _0x5941();}import{CKEditorError as _0x76e013}from'ckeditor5/src/utils.js';import{AIAdapter as _0x4d1115,AIRequestError as _0x528bc3}from'./aiadapter.js';import{getTranslation as _0x2fb4dd}from'../utils/common-translations.js';export class AITextAdapter extends _0x29e87b{[_0x52b106(0x14a)];static get[_0x52b106(0x14f)](){return[_0x4d1115];}constructor(_0x207007){const _0x530876=_0x52b106;super(_0x207007),this[_0x530876(0x14a)]=new AbortController();}[_0x52b106(0x157)](){const _0x11e53e=_0x52b106;this[_0x11e53e(0x138)][_0x11e53e(0x159)][_0x11e53e(0x13e)](_0x4d1115)[_0x11e53e(0x13b)]=this;}[_0x52b106(0x158)](){const _0x2dd764=_0x52b106;this[_0x2dd764(0x14a)][_0x2dd764(0x155)][_0x2dd764(0x150)]||(this[_0x2dd764(0x14a)][_0x2dd764(0x158)](),this[_0x2dd764(0x14a)]=new AbortController());}async[_0x52b106(0x152)](_0x113d2b){const _0x4a663d=_0x52b106;return this[_0x4a663d(0x137)](_0x113d2b)[_0x4a663d(0x142)](_0x3697db=>{const _0x5f3395=_0x4a663d;if(_0x3697db instanceof _0x528bc3)return Promise[_0x5f3395(0x15a)](_0x3697db);if(_0x5f3395(0x14e)==_0x3697db[_0x5f3395(0x148)])return Promise[_0x5f3395(0x13f)]();throw console[_0x5f3395(0x13a)](_0x3697db),new _0x76e013(_0x5f3395(0x156),null);});}async[_0x52b106(0x13c)](_0x3c243b,_0x4f711d){const _0x16430e=_0x52b106,_0x5d8a19=this[_0x16430e(0x138)][_0x16430e(0x154)],_0x56abdf={'Content-Type':_0x16430e(0x14d)};if(_0x16430e(0x151)==typeof _0x3c243b)Object[_0x16430e(0x141)](_0x56abdf,_0x3c243b);else{if(_0x3c243b)try{const _0x59d492=await _0x3c243b(_0x4f711d);Object[_0x16430e(0x141)](_0x56abdf,_0x59d492);}catch{return Promise[_0x16430e(0x15a)](new _0x528bc3(_0x2fb4dd(_0x5d8a19,_0x16430e(0x153))));}}return _0x56abdf;}async[_0x52b106(0x14c)](_0x2a335b,_0xe35bb1){const _0x438dd1=_0x52b106,_0x37424b=this[_0x438dd1(0x138)][_0x438dd1(0x154)];if(_0x438dd1(0x151)==typeof _0x2a335b)return _0x2a335b;try{return await _0x2a335b(_0xe35bb1);}catch{return Promise[_0x438dd1(0x15a)](new _0x528bc3(_0x2fb4dd(_0x37424b,_0x438dd1(0x147))));}}}
23
+ const _0x242809=_0x6bd7;(function(_0x499f57,_0xe00ee2){const _0x4e8fb2=_0x6bd7,_0x4cffb2=_0x499f57();while(!![]){try{const _0x499720=-parseInt(_0x4e8fb2(0x123))/0x1*(-parseInt(_0x4e8fb2(0x121))/0x2)+-parseInt(_0x4e8fb2(0x130))/0x3*(-parseInt(_0x4e8fb2(0x13a))/0x4)+-parseInt(_0x4e8fb2(0x128))/0x5+parseInt(_0x4e8fb2(0x139))/0x6*(-parseInt(_0x4e8fb2(0x124))/0x7)+-parseInt(_0x4e8fb2(0x11f))/0x8+parseInt(_0x4e8fb2(0x127))/0x9+parseInt(_0x4e8fb2(0x137))/0xa;if(_0x499720===_0xe00ee2)break;else _0x4cffb2['push'](_0x4cffb2['shift']());}catch(_0x4738ce){_0x4cffb2['push'](_0x4cffb2['shift']());}}}(_0x40a4,0xbf777));import{Plugin as _0x49d9cb}from'ckeditor5/src/core.js';import{CKEditorError as _0x52f459}from'ckeditor5/src/utils.js';import{AIAdapter as _0xaca1ce,AIRequestError as _0x3a78c6}from'./aiadapter.js';function _0x40a4(){const _0x1c2cb9=['get','1ARVsuZ','7xcTbyA','sendRequest','init','1938591XWOWVK','5457305fuMSWQ','aborted','AI_ERROR_GET_PARAMETERS','locale','name','resolve','makeRequest','signal','3lZDYLh','AI_ERROR_GET_HEADERS','abort','error','textAdapter','reject','object','20706090OWidas','application/json','7253478aLXWDN','5899292docjTD','abortController','catch','editor','_prepareRequestParameters','aitextadapter-send-request-failed','AbortError','_prepareRequestHeaders','requires','assign','8718592fSAEOz','plugins','827228EUBNDl'];_0x40a4=function(){return _0x1c2cb9;};return _0x40a4();}import{getTranslation as _0x2afca2}from'../utils/common-translations.js';function _0x6bd7(_0x46684d,_0x4f6fd8){const _0x40a470=_0x40a4();return _0x6bd7=function(_0x6bd77,_0x347e9f){_0x6bd77=_0x6bd77-0x11c;let _0x1ff9d2=_0x40a470[_0x6bd77];return _0x1ff9d2;},_0x6bd7(_0x46684d,_0x4f6fd8);}export class AITextAdapter extends _0x49d9cb{[_0x242809(0x13b)];static get[_0x242809(0x11d)](){return[_0xaca1ce];}constructor(_0x482c5c){const _0x189310=_0x242809;super(_0x482c5c),this[_0x189310(0x13b)]=new AbortController();}[_0x242809(0x126)](){const _0x18c68e=_0x242809;this[_0x18c68e(0x13d)][_0x18c68e(0x120)][_0x18c68e(0x122)](_0xaca1ce)[_0x18c68e(0x134)]=this;}[_0x242809(0x132)](){const _0x1fce32=_0x242809;this[_0x1fce32(0x13b)][_0x1fce32(0x12f)][_0x1fce32(0x129)]||(this[_0x1fce32(0x13b)][_0x1fce32(0x132)](),this[_0x1fce32(0x13b)]=new AbortController());}async[_0x242809(0x12e)](_0x4943af){const _0x421d01=_0x242809;return this[_0x421d01(0x125)](_0x4943af)[_0x421d01(0x13c)](_0xa00bc8=>{const _0x36919b=_0x421d01;if(_0xa00bc8 instanceof _0x3a78c6)return Promise[_0x36919b(0x135)](_0xa00bc8);if(_0x36919b(0x140)==_0xa00bc8[_0x36919b(0x12c)])return Promise[_0x36919b(0x12d)]();throw console[_0x36919b(0x133)](_0xa00bc8),new _0x52f459(_0x36919b(0x13f),null);});}async[_0x242809(0x11c)](_0x4e7417,_0x3896b8){const _0x203383=_0x242809,_0x422743=this[_0x203383(0x13d)][_0x203383(0x12b)],_0x192e69={'Content-Type':_0x203383(0x138)};if(_0x203383(0x136)==typeof _0x4e7417)Object[_0x203383(0x11e)](_0x192e69,_0x4e7417);else{if(_0x4e7417)try{const _0x2b2a08=await _0x4e7417(_0x3896b8);Object[_0x203383(0x11e)](_0x192e69,_0x2b2a08);}catch{return Promise[_0x203383(0x135)](new _0x3a78c6(_0x2afca2(_0x422743,_0x203383(0x131))));}}return _0x192e69;}async[_0x242809(0x13e)](_0x5bbed4,_0x3853cb){const _0x22da74=_0x242809,_0x31d5b5=this[_0x22da74(0x13d)][_0x22da74(0x12b)];if(_0x22da74(0x136)==typeof _0x5bbed4)return _0x5bbed4;try{return await _0x5bbed4(_0x3853cb);}catch{return Promise[_0x22da74(0x135)](new _0x3a78c6(_0x2afca2(_0x31d5b5,_0x22da74(0x12a))));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c4121=_0x56f7;function _0x56f7(_0x5d89be,_0x7e2de2){const _0x581d68=_0x581d();return _0x56f7=function(_0x56f758,_0x124a97){_0x56f758=_0x56f758-0xc1;let _0x45639b=_0x581d68[_0x56f758];return _0x45639b;},_0x56f7(_0x5d89be,_0x7e2de2);}(function(_0xf7218f,_0x157ae2){const _0x51e9a0=_0x56f7,_0x4ac390=_0xf7218f();while(!![]){try{const _0x2e8bd6=-parseInt(_0x51e9a0(0x108))/0x1*(-parseInt(_0x51e9a0(0x109))/0x2)+-parseInt(_0x51e9a0(0xf0))/0x3+parseInt(_0x51e9a0(0xcf))/0x4+-parseInt(_0x51e9a0(0xe1))/0x5+parseInt(_0x51e9a0(0xed))/0x6+-parseInt(_0x51e9a0(0xec))/0x7+parseInt(_0x51e9a0(0xc5))/0x8;if(_0x2e8bd6===_0x157ae2)break;else _0x4ac390['push'](_0x4ac390['shift']());}catch(_0x48e72d){_0x4ac390['push'](_0x4ac390['shift']());}}}(_0x581d,0x7aed3));import{AITextAdapter as _0x483825}from'./aitextadapter.js';import{AIRequestError as _0x2914c2}from'./aiadapter.js';function _0x581d(){const _0x1f0dc=['_apiUrl','4336490yrgtVr','stringify','abortController','_prepareRequestParameters','Human:\x0a','bedrock-2023-05-31','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','signal','ai.assistant.adapter.aws.bedrockClientConfig','POST','AI_ERROR_UNSUPPORTED_MODEL','7018081mRavul','2372556JKVptp','map','anthropic.claude','2071152AnnrFO','join','_processAWSRequest','editor','_prepareRequestHeaders','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','bytes','utf-8','generations','generation','ai.assistant.adapter.aws.requestHeaders','resolve','_readStreamableResponse','anthropic.claude-v2','text','getModelFamily','pluginName','\x0a\x0aAssistant:','parse','read','<<SYS>>\x0a','length','_bedrockClientConfig','_readAsyncIterableResponse','10297BscBWb','44BmieQC','data','ai.assistant.adapter.aws.apiUrl','config','meta.llama','ai21.j2','preparePrompt','body','\x0a[/INST]','_readStaticResponse','17172816iIfpwn','_processProxyRequest','json','AWSTextAdapter','split','_getGeneratedText','cohere.command','getReader','get','_requestHeaders','1180840UfRKBp','_requestParameters','send','decode','sendRequest','ai.assistant.adapter.aws.requestParameters','test','filter','application/json','define','chunk','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','completions','Instruction:\x0a','completion','locale','\x0a<</SYS>>\x0a[INST]\x0a'];_0x581d=function(){return _0x1f0dc;};return _0x581d();}import{BedrockRuntimeClient as _0x528cbe,InvokeModelCommand as _0x2b8860,InvokeModelWithResponseStreamCommand as _0x4d0571}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x5ad90b}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x483825{[_0x1c4121(0xe0)];[_0x1c4121(0xce)];[_0x1c4121(0x106)];[_0x1c4121(0xd0)];static get[_0x1c4121(0x100)](){const _0x9dfef9=_0x1c4121;return _0x9dfef9(0xc8);}constructor(_0x44701d){const _0x275eff=_0x1c4121;super(_0x44701d),_0x44701d[_0x275eff(0x10c)][_0x275eff(0xcd)](_0x275eff(0xd4))||_0x44701d[_0x275eff(0x10c)][_0x275eff(0xd8)](_0x275eff(0xd4),{'model':_0x275eff(0xfd),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x275eff(0xe6),'stream':!0x0}),this[_0x275eff(0xe0)]=_0x44701d[_0x275eff(0x10c)][_0x275eff(0xcd)](_0x275eff(0x10b)),this[_0x275eff(0x106)]=_0x44701d[_0x275eff(0x10c)][_0x275eff(0xcd)](_0x275eff(0xe9)),this[_0x275eff(0xce)]=_0x44701d[_0x275eff(0x10c)][_0x275eff(0xcd)](_0x275eff(0xfa)),this[_0x275eff(0xd0)]=_0x44701d[_0x275eff(0x10c)][_0x275eff(0xcd)](_0x275eff(0xd4));}async[_0x1c4121(0xd3)]({query:_0x3d8839,context:_0x436d11,onData:_0x30bde0,actionId:_0x264c4e}){const _0xea0dbd=_0x1c4121,{model:_0x780e7a,stream:_0x489f30,..._0x3d9fb7}=await this[_0xea0dbd(0xe4)](this[_0xea0dbd(0xd0)],_0x264c4e),_0x23b41a={'prompt':await this[_0xea0dbd(0xc1)](_0x3d8839,_0x436d11,_0x780e7a,_0x264c4e),..._0x3d9fb7};this[_0xea0dbd(0xe0)]?await this[_0xea0dbd(0xc6)](_0x23b41a,_0x780e7a,_0x489f30,_0x30bde0,_0x264c4e):await this[_0xea0dbd(0xf2)](_0x23b41a,_0x780e7a,_0x489f30,_0x30bde0);}async[_0x1c4121(0xc1)](_0x5393ff,_0x5a6710,_0x29e486,_0x9b1829){const _0x228202=_0x1c4121;let _0x27ea45,_0x3950ee;return _0x5a6710?(_0x27ea45=_0x228202(0xe7),_0x3950ee=_0x228202(0xdc)+_0x5393ff+_0x228202(0xda)+_0x5a6710):(_0x27ea45=_0x228202(0xf5),_0x3950ee=_0x5393ff),_0x228202(0x10d)==this[_0x228202(0xff)](_0x29e486)?_0x228202(0x104)+_0x27ea45+_0x228202(0xdf)+_0x3950ee+_0x228202(0xc3):_0x228202(0xe5)+_0x27ea45+'\x0a'+_0x3950ee+_0x228202(0x101);}[_0x1c4121(0xff)](_0x56d99e){const _0x42ffd7=_0x1c4121;if(/^anthropic\.claude/[_0x42ffd7(0xd5)](_0x56d99e))return _0x42ffd7(0xef);if(/^ai21\.j2/[_0x42ffd7(0xd5)](_0x56d99e))return _0x42ffd7(0x10e);if(/^cohere\.command/[_0x42ffd7(0xd5)](_0x56d99e))return _0x42ffd7(0xcb);if(/^meta\.llama/[_0x42ffd7(0xd5)](_0x56d99e))return _0x42ffd7(0x10d);throw new _0x2914c2(_0x5ad90b(this[_0x42ffd7(0xf3)][_0x42ffd7(0xde)],_0x42ffd7(0xeb),_0x56d99e));}async[_0x1c4121(0xc6)](_0x47923c,_0x1dca47,_0x472fa4,_0x22f226,_0x14ef6e){const _0x5c349e=_0x1c4121,_0x3f097a={'method':_0x5c349e(0xea),'headers':await this[_0x5c349e(0xf4)](this[_0x5c349e(0xce)],_0x14ef6e),'body':JSON[_0x5c349e(0xe2)]({..._0x47923c,'model':_0x1dca47,'stream':_0x472fa4}),'signal':this[_0x5c349e(0xe3)][_0x5c349e(0xe8)]},_0x4800d9=await fetch(this[_0x5c349e(0xe0)],_0x3f097a);_0x472fa4?await this[_0x5c349e(0xfc)](_0x4800d9,_0x1dca47,_0x22f226):await this[_0x5c349e(0xc4)](_0x4800d9,_0x1dca47,_0x22f226);}async[_0x1c4121(0xf2)](_0x2e549e,_0x2576e6,_0x337775,_0x3beba8){const _0x1e2719=_0x1c4121,_0x448d26=new _0x528cbe(this[_0x1e2719(0x106)]),_0x44c9a0={'body':JSON[_0x1e2719(0xe2)](_0x2e549e),'contentType':_0x1e2719(0xd7),'accept':_0x1e2719(0xd7),'modelId':_0x2576e6};let _0x5d2bc6;if(_0x337775){const _0x9c6b81=new _0x4d0571(_0x44c9a0);_0x5d2bc6=await _0x448d26[_0x1e2719(0xd1)](_0x9c6b81,{'abortSignal':this[_0x1e2719(0xe3)][_0x1e2719(0xe8)]}),await this[_0x1e2719(0x107)](_0x5d2bc6,_0x2576e6,_0x3beba8);}else{const _0x3b8551=new _0x2b8860(_0x44c9a0);_0x5d2bc6=await _0x448d26[_0x1e2719(0xd1)](_0x3b8551,{'abortSignal':this[_0x1e2719(0xe3)][_0x1e2719(0xe8)]}),await this[_0x1e2719(0xc4)](_0x5d2bc6,_0x2576e6,_0x3beba8);}}async[_0x1c4121(0x107)](_0x41a5eb,_0x534677,_0x598e23){const _0x53644e=_0x1c4121,_0x5cebf1=_0x41a5eb[_0x53644e(0xc2)],_0x215ca1=new TextDecoder(_0x53644e(0xf7));let _0x164c54='';for await(const _0x522d7e of _0x5cebf1)if(_0x522d7e[_0x53644e(0xd9)]){const _0x59dbb9=_0x215ca1[_0x53644e(0xd2)](_0x522d7e[_0x53644e(0xd9)][_0x53644e(0xf6)]),_0x37637d=JSON[_0x53644e(0x102)](_0x59dbb9);_0x164c54+=this[_0x53644e(0xca)](_0x37637d,_0x534677),_0x598e23(_0x164c54);}return Promise[_0x53644e(0xfb)]();}async[_0x1c4121(0xfc)](_0x1864dc,_0xbadc45,_0x13871e){const _0x4b63e4=_0x1c4121,_0x5858fc=_0x1864dc[_0x4b63e4(0xc2)],_0x2feb78=new TextDecoder(_0x4b63e4(0xf7)),_0x1da342=_0x5858fc[_0x4b63e4(0xcc)]();let _0x1dd7fb='',_0x3e8f1d='',_0x223292=!0x1;for(;!_0x223292;){const {done:_0x6a8831,value:_0x5e3824}=await _0x1da342[_0x4b63e4(0x103)]();if(_0x223292=_0x6a8831,_0x223292)break;const _0x3f78dc=(_0x1dd7fb+_0x2feb78[_0x4b63e4(0xd2)](_0x5e3824))[_0x4b63e4(0xc9)]('\x0a')[_0x4b63e4(0xee)](_0x109de6=>{const _0x38282c=_0x4b63e4;try{return _0x1dd7fb='',JSON[_0x38282c(0x102)](_0x109de6);}catch{return _0x1dd7fb=_0x109de6,null;}})[_0x4b63e4(0xd6)](_0x466627=>null!==_0x466627);_0x3f78dc[_0x4b63e4(0x105)]&&(_0x3e8f1d+=_0x3f78dc[_0x4b63e4(0xee)](_0x2243f3=>this[_0x4b63e4(0xca)](_0x2243f3,_0xbadc45))[_0x4b63e4(0xf1)](''),_0x13871e(_0x3e8f1d));}return Promise[_0x4b63e4(0xfb)]();}async[_0x1c4121(0xc4)](_0x5ab5bc,_0x16217c,_0x429827){const _0x1ef416=_0x1c4121;let _0x372e58;return _0x372e58=_0x5ab5bc instanceof Response?await _0x5ab5bc[_0x1ef416(0xc7)]():JSON[_0x1ef416(0x102)](new TextDecoder(_0x1ef416(0xf7))[_0x1ef416(0xd2)](_0x5ab5bc[_0x1ef416(0xc2)])),(_0x429827(this[_0x1ef416(0xca)](_0x372e58,_0x16217c)),Promise[_0x1ef416(0xfb)]());}[_0x1c4121(0xca)](_0x537769,_0x298426){const _0xe2260d=_0x1c4121;switch(this[_0xe2260d(0xff)](_0x298426)){case _0xe2260d(0xef):return _0x537769[_0xe2260d(0xdd)];case _0xe2260d(0x10e):return _0x537769[_0xe2260d(0xdb)][0x0][_0xe2260d(0x10a)][_0xe2260d(0xfe)];case _0xe2260d(0xcb):return _0x537769[_0xe2260d(0xf8)][0x0][_0xe2260d(0xfe)];case _0xe2260d(0x10d):return _0x537769[_0xe2260d(0xf9)];}}}
23
+ function _0x1e7e(_0x5d1ed6,_0x1dd8e6){const _0x55303f=_0x5530();return _0x1e7e=function(_0x1e7eb7,_0x3f6379){_0x1e7eb7=_0x1e7eb7-0xae;let _0x37cd5a=_0x55303f[_0x1e7eb7];return _0x37cd5a;},_0x1e7e(_0x5d1ed6,_0x1dd8e6);}const _0x4381bd=_0x1e7e;(function(_0x75d425,_0x18c0ea){const _0x401011=_0x1e7e,_0x6a03bd=_0x75d425();while(!![]){try{const _0x59410a=parseInt(_0x401011(0xbd))/0x1*(-parseInt(_0x401011(0xb6))/0x2)+-parseInt(_0x401011(0xcc))/0x3*(-parseInt(_0x401011(0xb3))/0x4)+parseInt(_0x401011(0xc3))/0x5+parseInt(_0x401011(0xf0))/0x6*(parseInt(_0x401011(0xdf))/0x7)+-parseInt(_0x401011(0xe6))/0x8*(parseInt(_0x401011(0xeb))/0x9)+-parseInt(_0x401011(0xc1))/0xa*(parseInt(_0x401011(0xff))/0xb)+parseInt(_0x401011(0xb2))/0xc;if(_0x59410a===_0x18c0ea)break;else _0x6a03bd['push'](_0x6a03bd['shift']());}catch(_0x23e2e3){_0x6a03bd['push'](_0x6a03bd['shift']());}}}(_0x5530,0xdffb5));function _0x5530(){const _0xacb408=['14GTxlKZ','decode','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','pluginName','<<SYS>>\x0a','get','bedrock-2023-05-31','7304rBrcZq','_requestParameters','ai.assistant.adapter.aws.bedrockClientConfig','read','getModelFamily','11952dzVvun','preparePrompt','_readStreamableResponse','stringify','_apiUrl','5158278ENherw','parse','ai.assistant.adapter.aws.requestHeaders','config','abortController','generation','application/json','chunk','AI_ERROR_UNSUPPORTED_MODEL','text','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','resolve','body','locale','join','2734688cdXrOx','completion','meta.llama','ai.assistant.adapter.aws.apiUrl','sendRequest','3225012gLUvqJ','3528qlaLcj','getReader','utf-8','14KEaAKP','AWSTextAdapter','bytes','\x0a\x0aAssistant:','anthropic.claude-v2','_bedrockClientConfig','Instruction:\x0a','113699ImmZyj','_prepareRequestParameters','POST','data','20YnnxRU','ai.assistant.adapter.aws.requestParameters','4735395nohkSM','\x0a<</SYS>>\x0a[INST]\x0a','cohere.command','_readAsyncIterableResponse','ai21.j2','test','signal','_requestHeaders','editor','1659eUgcQJ','_prepareRequestHeaders','split','_readStaticResponse','Human:\x0a','_processProxyRequest','generations','send','_processAWSRequest','json','anthropic.claude','completions','length','map','define','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','_getGeneratedText','\x0a[/INST]','filter'];_0x5530=function(){return _0xacb408;};return _0x5530();}import{AITextAdapter as _0x236668}from'./aitextadapter.js';import{AIRequestError as _0x18e901}from'./aiadapter.js';import{BedrockRuntimeClient as _0x226e7c,InvokeModelCommand as _0x1bd394,InvokeModelWithResponseStreamCommand as _0x40bbfb}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x10da36}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x236668{[_0x4381bd(0xef)];[_0x4381bd(0xca)];[_0x4381bd(0xbb)];[_0x4381bd(0xe7)];static get[_0x4381bd(0xe2)](){const _0x41570b=_0x4381bd;return _0x41570b(0xb7);}constructor(_0x4284c2){const _0x49aaca=_0x4381bd;super(_0x4284c2),_0x4284c2[_0x49aaca(0xf3)][_0x49aaca(0xe4)](_0x49aaca(0xc2))||_0x4284c2[_0x49aaca(0xf3)][_0x49aaca(0xda)](_0x49aaca(0xc2),{'model':_0x49aaca(0xba),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x49aaca(0xe5),'stream':!0x0}),this[_0x49aaca(0xef)]=_0x4284c2[_0x49aaca(0xf3)][_0x49aaca(0xe4)](_0x49aaca(0xb0)),this[_0x49aaca(0xbb)]=_0x4284c2[_0x49aaca(0xf3)][_0x49aaca(0xe4)](_0x49aaca(0xe8)),this[_0x49aaca(0xca)]=_0x4284c2[_0x49aaca(0xf3)][_0x49aaca(0xe4)](_0x49aaca(0xf2)),this[_0x49aaca(0xe7)]=_0x4284c2[_0x49aaca(0xf3)][_0x49aaca(0xe4)](_0x49aaca(0xc2));}async[_0x4381bd(0xb1)]({query:_0x20643f,context:_0xc1989a,onData:_0x4ab25b,actionId:_0x3b8630}){const _0x21a6c1=_0x4381bd,{model:_0x177ab3,stream:_0x119423,..._0x25540b}=await this[_0x21a6c1(0xbe)](this[_0x21a6c1(0xe7)],_0x3b8630),_0xaf4bc7={'prompt':await this[_0x21a6c1(0xec)](_0x20643f,_0xc1989a,_0x177ab3,_0x3b8630),..._0x25540b};this[_0x21a6c1(0xef)]?await this[_0x21a6c1(0xd1)](_0xaf4bc7,_0x177ab3,_0x119423,_0x4ab25b,_0x3b8630):await this[_0x21a6c1(0xd4)](_0xaf4bc7,_0x177ab3,_0x119423,_0x4ab25b);}async[_0x4381bd(0xec)](_0x3fa037,_0x27b44e,_0x41d1bd,_0x2d006d){const _0x537057=_0x4381bd;let _0x43472e,_0x3c0dd6;return _0x27b44e?(_0x43472e=_0x537057(0xdb),_0x3c0dd6=_0x537057(0xbc)+_0x3fa037+_0x537057(0xe1)+_0x27b44e):(_0x43472e=_0x537057(0xfa),_0x3c0dd6=_0x3fa037),_0x537057(0xaf)==this[_0x537057(0xea)](_0x41d1bd)?_0x537057(0xe3)+_0x43472e+_0x537057(0xc4)+_0x3c0dd6+_0x537057(0xdd):_0x537057(0xd0)+_0x43472e+'\x0a'+_0x3c0dd6+_0x537057(0xb9);}[_0x4381bd(0xea)](_0x5f00b9){const _0x109b24=_0x4381bd;if(/^anthropic\.claude/[_0x109b24(0xc8)](_0x5f00b9))return _0x109b24(0xd6);if(/^ai21\.j2/[_0x109b24(0xc8)](_0x5f00b9))return _0x109b24(0xc7);if(/^cohere\.command/[_0x109b24(0xc8)](_0x5f00b9))return _0x109b24(0xc5);if(/^meta\.llama/[_0x109b24(0xc8)](_0x5f00b9))return _0x109b24(0xaf);throw new _0x18e901(_0x10da36(this[_0x109b24(0xcb)][_0x109b24(0xfd)],_0x109b24(0xf8),_0x5f00b9));}async[_0x4381bd(0xd1)](_0x15345e,_0x25b0f6,_0x527e69,_0x14d062,_0x214ece){const _0x4c3293=_0x4381bd,_0x24e137={'method':_0x4c3293(0xbf),'headers':await this[_0x4c3293(0xcd)](this[_0x4c3293(0xca)],_0x214ece),'body':JSON[_0x4c3293(0xee)]({..._0x15345e,'model':_0x25b0f6,'stream':_0x527e69}),'signal':this[_0x4c3293(0xf4)][_0x4c3293(0xc9)]},_0x33cf91=await fetch(this[_0x4c3293(0xef)],_0x24e137);_0x527e69?await this[_0x4c3293(0xed)](_0x33cf91,_0x25b0f6,_0x14d062):await this[_0x4c3293(0xcf)](_0x33cf91,_0x25b0f6,_0x14d062);}async[_0x4381bd(0xd4)](_0x54aa9e,_0x45e23e,_0x5707b7,_0x434598){const _0x27e322=_0x4381bd,_0xedf3b=new _0x226e7c(this[_0x27e322(0xbb)]),_0x575f15={'body':JSON[_0x27e322(0xee)](_0x54aa9e),'contentType':_0x27e322(0xf6),'accept':_0x27e322(0xf6),'modelId':_0x45e23e};let _0x14a89b;if(_0x5707b7){const _0x4f17cf=new _0x40bbfb(_0x575f15);_0x14a89b=await _0xedf3b[_0x27e322(0xd3)](_0x4f17cf,{'abortSignal':this[_0x27e322(0xf4)][_0x27e322(0xc9)]}),await this[_0x27e322(0xc6)](_0x14a89b,_0x45e23e,_0x434598);}else{const _0x4e9b70=new _0x1bd394(_0x575f15);_0x14a89b=await _0xedf3b[_0x27e322(0xd3)](_0x4e9b70,{'abortSignal':this[_0x27e322(0xf4)][_0x27e322(0xc9)]}),await this[_0x27e322(0xcf)](_0x14a89b,_0x45e23e,_0x434598);}}async[_0x4381bd(0xc6)](_0x3e9df9,_0x57b846,_0x36990c){const _0x3bbba5=_0x4381bd,_0x15584b=_0x3e9df9[_0x3bbba5(0xfc)],_0x37863b=new TextDecoder(_0x3bbba5(0xb5));let _0x49261d='';for await(const _0x203aea of _0x15584b)if(_0x203aea[_0x3bbba5(0xf7)]){const _0x2d7005=_0x37863b[_0x3bbba5(0xe0)](_0x203aea[_0x3bbba5(0xf7)][_0x3bbba5(0xb8)]),_0x6748fa=JSON[_0x3bbba5(0xf1)](_0x2d7005);_0x49261d+=this[_0x3bbba5(0xdc)](_0x6748fa,_0x57b846),_0x36990c(_0x49261d);}return Promise[_0x3bbba5(0xfb)]();}async[_0x4381bd(0xed)](_0x43a706,_0x52f5ae,_0x4576b3){const _0x56b45a=_0x4381bd,_0xd8a6ab=_0x43a706[_0x56b45a(0xfc)],_0x14e332=new TextDecoder(_0x56b45a(0xb5)),_0x5211a4=_0xd8a6ab[_0x56b45a(0xb4)]();let _0x2e5e5a='',_0x4d8dd3='',_0x1528d2=!0x1;for(;!_0x1528d2;){const {done:_0x43650a,value:_0x38ccc6}=await _0x5211a4[_0x56b45a(0xe9)]();if(_0x1528d2=_0x43650a,_0x1528d2)break;const _0x26983f=(_0x2e5e5a+_0x14e332[_0x56b45a(0xe0)](_0x38ccc6))[_0x56b45a(0xce)]('\x0a')[_0x56b45a(0xd9)](_0x43458e=>{const _0xb5bde1=_0x56b45a;try{return _0x2e5e5a='',JSON[_0xb5bde1(0xf1)](_0x43458e);}catch{return _0x2e5e5a=_0x43458e,null;}})[_0x56b45a(0xde)](_0x17a05d=>null!==_0x17a05d);_0x26983f[_0x56b45a(0xd8)]&&(_0x4d8dd3+=_0x26983f[_0x56b45a(0xd9)](_0x4aa9ed=>this[_0x56b45a(0xdc)](_0x4aa9ed,_0x52f5ae))[_0x56b45a(0xfe)](''),_0x4576b3(_0x4d8dd3));}return Promise[_0x56b45a(0xfb)]();}async[_0x4381bd(0xcf)](_0x1fa56c,_0x2b35c2,_0x9cc9c8){const _0x114168=_0x4381bd;let _0x2b1b1e;return _0x2b1b1e=_0x1fa56c instanceof Response?await _0x1fa56c[_0x114168(0xd5)]():JSON[_0x114168(0xf1)](new TextDecoder(_0x114168(0xb5))[_0x114168(0xe0)](_0x1fa56c[_0x114168(0xfc)])),(_0x9cc9c8(this[_0x114168(0xdc)](_0x2b1b1e,_0x2b35c2)),Promise[_0x114168(0xfb)]());}[_0x4381bd(0xdc)](_0x5457f9,_0x322b1d){const _0x41635b=_0x4381bd;switch(this[_0x41635b(0xea)](_0x322b1d)){case _0x41635b(0xd6):return _0x5457f9[_0x41635b(0xae)];case _0x41635b(0xc7):return _0x5457f9[_0x41635b(0xd7)][0x0][_0x41635b(0xc0)][_0x41635b(0xf9)];case _0x41635b(0xc5):return _0x5457f9[_0x41635b(0xd2)][0x0][_0x41635b(0xf9)];case _0x41635b(0xaf):return _0x5457f9[_0x41635b(0xf5)];}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xc3fe(_0x484f03,_0x5453a8){const _0x33cd56=_0x33cd();return _0xc3fe=function(_0xc3fe6e,_0x432f6b){_0xc3fe6e=_0xc3fe6e-0x9b;let _0x25dc44=_0x33cd56[_0xc3fe6e];return _0x25dc44;},_0xc3fe(_0x484f03,_0x5453a8);}const _0x21d43a=_0xc3fe;(function(_0xd67303,_0x526fbb){const _0x52bbe5=_0xc3fe,_0x57b36e=_0xd67303();while(!![]){try{const _0x309805=-parseInt(_0x52bbe5(0xdd))/0x1*(parseInt(_0x52bbe5(0xa2))/0x2)+parseInt(_0x52bbe5(0xd7))/0x3*(parseInt(_0x52bbe5(0xc6))/0x4)+parseInt(_0x52bbe5(0xa7))/0x5+parseInt(_0x52bbe5(0x9e))/0x6+parseInt(_0x52bbe5(0xe2))/0x7*(parseInt(_0x52bbe5(0xb3))/0x8)+parseInt(_0x52bbe5(0xda))/0x9*(parseInt(_0x52bbe5(0xdf))/0xa)+-parseInt(_0x52bbe5(0xb2))/0xb*(parseInt(_0x52bbe5(0xbf))/0xc);if(_0x309805===_0x526fbb)break;else _0x57b36e['push'](_0x57b36e['shift']());}catch(_0x5e8422){_0x57b36e['push'](_0x57b36e['shift']());}}}(_0x33cd,0xd2cbb));import{AITextAdapter as _0x4c5ec6}from'./aitextadapter.js';import{AIRequestError as _0x159ebb}from'./aiadapter.js';import{getTranslation as _0x464322}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x4c5ec6{[_0x21d43a(0xa9)];[_0x21d43a(0xd0)];[_0x21d43a(0xaa)];static get[_0x21d43a(0xa8)](){const _0x52d70a=_0x21d43a;return _0x52d70a(0xcd);}constructor(_0xfb3bcd){const _0x3726f3=_0x21d43a;super(_0xfb3bcd),_0xfb3bcd[_0x3726f3(0xce)][_0x3726f3(0x9d)](_0x3726f3(0xbc),_0x3726f3(0xa4)),_0xfb3bcd[_0x3726f3(0xce)][_0x3726f3(0xa6)](_0x3726f3(0xe1))||_0xfb3bcd[_0x3726f3(0xce)][_0x3726f3(0x9d)](_0x3726f3(0xe1),{'model':_0x3726f3(0xdc),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x3726f3(0xa9)]=_0xfb3bcd[_0x3726f3(0xce)][_0x3726f3(0xa6)](_0x3726f3(0xbc)),this[_0x3726f3(0xd0)]=_0xfb3bcd[_0x3726f3(0xce)][_0x3726f3(0xa6)](_0x3726f3(0xae))||{},this[_0x3726f3(0xaa)]=_0xfb3bcd[_0x3726f3(0xce)][_0x3726f3(0xa6)](_0x3726f3(0xe1));}async[_0x21d43a(0xbe)]({query:_0x292c30,context:_0x4e9646,onData:_0xc61abb,actionId:_0x108be4}){const _0x3f6369=_0x21d43a,_0x33ddca=this[_0x3f6369(0xcb)][_0x3f6369(0xb4)],_0x36512d=await this[_0x3f6369(0xb1)](_0x292c30,_0x4e9646,_0x108be4),_0x220a95=await this[_0x3f6369(0xe0)](this[_0x3f6369(0xd0)],_0x108be4),_0x10853a=await this[_0x3f6369(0xbb)](this[_0x3f6369(0xaa)],_0x108be4),_0xed3e5={'messages':_0x36512d,..._0x10853a},_0x67377f={'method':_0x3f6369(0xc0),'headers':_0x220a95,'body':JSON[_0x3f6369(0x9b)](_0xed3e5),'signal':this[_0x3f6369(0xc4)][_0x3f6369(0xbd)]},_0x33c8ac=await fetch(this[_0x3f6369(0xa9)],_0x67377f);if(_0x33c8ac['ok'])return _0x10853a[_0x3f6369(0xa5)]?await this[_0x3f6369(0xa0)](_0x33c8ac,_0xc61abb):await this[_0x3f6369(0xdb)](_0x33c8ac,_0xc61abb),Promise[_0x3f6369(0xc2)]();{const _0x325859=await _0x33c8ac[_0x3f6369(0xd4)]();return _0x325859[_0x3f6369(0xc9)](_0x3f6369(0xc8))?Promise[_0x3f6369(0xb8)](new _0x159ebb(_0x464322(_0x33ddca,_0x3f6369(0xd5)))):_0x325859[_0x3f6369(0xc9)](_0x3f6369(0xba))?Promise[_0x3f6369(0xb8)](new _0x159ebb(_0x464322(_0x33ddca,_0x3f6369(0xac)))):Promise[_0x3f6369(0xb8)](new Error(_0x325859));}}async[_0x21d43a(0xb1)](_0x2772d8,_0x4e923a,_0x23380b){const _0x32ddec=_0x21d43a;let _0x64e4d9,_0x55a2e7;return _0x4e923a?(_0x64e4d9=_0x32ddec(0xd6),_0x55a2e7=_0x32ddec(0xd1)+_0x2772d8+_0x32ddec(0xd9)+_0x4e923a):(_0x64e4d9=_0x32ddec(0xb0),_0x55a2e7=_0x2772d8),[{'role':_0x32ddec(0x9c),'content':_0x64e4d9},{'role':_0x32ddec(0xb9),'content':_0x55a2e7}];}async[_0x21d43a(0xa0)](_0x729f8d,_0x1bdcc8){const _0x3d4eec=_0x21d43a,_0x1d2e79=_0x729f8d[_0x3d4eec(0xca)][_0x3d4eec(0xc7)](),_0x494533=new TextDecoder();let _0x4828e7='',_0x27cf92='',_0x4dcae8='',_0x4b299f=!0x1;for(;!_0x4b299f;){const {done:_0x8bc8f2,value:_0x18cb8b}=await _0x1d2e79[_0x3d4eec(0xa1)](),_0x46063a=_0x4828e7+_0x494533[_0x3d4eec(0xb7)](_0x18cb8b);let _0x2c0757='';_0x4b299f=_0x8bc8f2;try{_0x2c0757=this[_0x3d4eec(0xd8)](_0x46063a),_0x4828e7='';}catch{_0x4828e7=_0x46063a;continue;}_0x27cf92+=_0x2c0757,!_0x4b299f&&this[_0x3d4eec(0xb5)](_0x27cf92)||_0x27cf92&&(_0x4dcae8+=_0x27cf92,_0x27cf92='',_0x1bdcc8(_0x4dcae8));}return Promise[_0x3d4eec(0xc2)]();}async[_0x21d43a(0xdb)](_0x3a7d96,_0x1ae553){const _0x5ca480=_0x21d43a;return _0x1ae553((await _0x3a7d96[_0x5ca480(0xd3)]())[_0x5ca480(0xad)][0x0][_0x5ca480(0xc1)][_0x5ca480(0xc3)]),Promise[_0x5ca480(0xc2)]();}[_0x21d43a(0xb5)](_0x2b916e){const _0x17bfa1=_0x21d43a,_0x57c4d3=_0x2b916e[_0x17bfa1(0xb6)]('<')[_0x17bfa1(0x9f)]!==_0x2b916e[_0x17bfa1(0xb6)]('>')[_0x17bfa1(0x9f)],_0x4a4f57=_0x2b916e[_0x17bfa1(0x9f)]<0x1e;return _0x57c4d3&&_0x4a4f57;}[_0x21d43a(0xd8)](_0x1bc437){const _0x308b0f=_0x21d43a;return _0x1bc437[_0x308b0f(0xb6)](/\n(?![^{]*\})/g)[_0x308b0f(0xde)](_0x4112b6=>_0x4112b6[_0x308b0f(0xa3)](_0x308b0f(0xcc),''))[_0x308b0f(0xd2)](_0x14a4f5=>_0x14a4f5&&_0x14a4f5[_0x308b0f(0x9f)]>0x0&&_0x308b0f(0xc5)!==_0x14a4f5)[_0x308b0f(0xde)](_0xafe124=>{const _0x5fa055=_0x308b0f,{choices:_0x46afc4}=JSON[_0x5fa055(0xcf)](_0xafe124);if(_0x46afc4[0x0]?.[_0x5fa055(0xab)]?.[_0x5fa055(0xc3)])return _0x46afc4[0x0][_0x5fa055(0xab)][_0x5fa055(0xc3)];})[_0x308b0f(0xd2)](_0x30dba9=>_0x30dba9)[_0x308b0f(0xaf)]('');}}function _0x33cd(){const _0x3bf10a=['text','AI_ERROR_CONTEXT_LENGTH','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','2342373UUVOXY','_cleanUpData','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','27thDlmk','_readStaticResponse','gpt-4o','1609845kURwBb','map','128380iJXuhH','_prepareRequestHeaders','ai.assistant.adapter.openAI.requestParameters','1494514BmGkSr','stringify','system','define','8811108cbBndZ','length','_readStreamableResponse','read','2hjwCyI','replace','https://api.openai.com/v1/chat/completions','stream','get','2302080VaPvkY','pluginName','_apiUrl','_requestParameters','delta','AI_ERROR_MODERATION','choices','ai.assistant.adapter.openAI.requestHeaders','join','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','prepareMessages','14767335aiKsoq','40NQqgTA','locale','_isBufferIncomplete','split','decode','reject','user','Moderation','_prepareRequestParameters','ai.assistant.adapter.openAI.apiUrl','signal','sendRequest','12siUzow','POST','message','resolve','content','abortController','[DONE]','4rqtgtk','getReader','context_length_exceeded','includes','body','editor','data:\x20','OpenAITextAdapter','config','parse','_requestHeaders','Instruction:\x0a','filter','json'];_0x33cd=function(){return _0x3bf10a;};return _0x33cd();}
23
+ const _0x3ed49a=_0x8115;function _0x8115(_0x22ec3b,_0x5dfbd8){const _0x370a06=_0x370a();return _0x8115=function(_0x81157f,_0x30fa55){_0x81157f=_0x81157f-0xda;let _0x290d82=_0x370a06[_0x81157f];return _0x290d82;},_0x8115(_0x22ec3b,_0x5dfbd8);}(function(_0x1b519b,_0x514681){const _0x1cb3ea=_0x8115,_0x263636=_0x1b519b();while(!![]){try{const _0x3ba7fa=-parseInt(_0x1cb3ea(0xef))/0x1+-parseInt(_0x1cb3ea(0xe0))/0x2*(-parseInt(_0x1cb3ea(0x110))/0x3)+parseInt(_0x1cb3ea(0xfd))/0x4*(-parseInt(_0x1cb3ea(0x11d))/0x5)+-parseInt(_0x1cb3ea(0x10b))/0x6+parseInt(_0x1cb3ea(0x115))/0x7+-parseInt(_0x1cb3ea(0xe6))/0x8+-parseInt(_0x1cb3ea(0xdd))/0x9*(-parseInt(_0x1cb3ea(0xdb))/0xa);if(_0x3ba7fa===_0x514681)break;else _0x263636['push'](_0x263636['shift']());}catch(_0x3bc0f9){_0x263636['push'](_0x263636['shift']());}}}(_0x370a,0xd973c));function _0x370a(){const _0x2552c9=['json','prepareMessages','9668460KiWKqT','length','_prepareRequestParameters','message','_cleanUpData','1149BxoXmo','user','https://api.openai.com/v1/chat/completions','POST','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','11221154TNijxR','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','filter','_readStreamableResponse','Instruction:\x0a','includes','resolve','join','65QmBEOH','_apiUrl','reject','delta','43955770UQiKWn','get','9hpZVPg','ai.assistant.adapter.openAI.apiUrl','_readStaticResponse','444potGfU','getReader','choices','stringify','sendRequest','ai.assistant.adapter.openAI.requestParameters','7884400bYHhLj','_isBufferIncomplete','abortController','text','editor','data:\x20','config','_requestHeaders','_requestParameters','1463083oSSxUE','pluginName','define','replace','split','Moderation','read','map','signal','gpt-4o','locale','AI_ERROR_MODERATION','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','body','348584vAgLvG','decode','parse','ai.assistant.adapter.openAI.requestHeaders','[DONE]','AI_ERROR_CONTEXT_LENGTH','stream','content','_prepareRequestHeaders','context_length_exceeded','system','OpenAITextAdapter'];_0x370a=function(){return _0x2552c9;};return _0x370a();}import{AITextAdapter as _0x276ac8}from'./aitextadapter.js';import{AIRequestError as _0xc27f12}from'./aiadapter.js';import{getTranslation as _0x1d1f78}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x276ac8{[_0x3ed49a(0x11e)];[_0x3ed49a(0xed)];[_0x3ed49a(0xee)];static get[_0x3ed49a(0xf0)](){const _0x290651=_0x3ed49a;return _0x290651(0x108);}constructor(_0x33b3c1){const _0x344f8f=_0x3ed49a;super(_0x33b3c1),_0x33b3c1[_0x344f8f(0xec)][_0x344f8f(0xf1)](_0x344f8f(0xde),_0x344f8f(0x112)),_0x33b3c1[_0x344f8f(0xec)][_0x344f8f(0xdc)](_0x344f8f(0xe5))||_0x33b3c1[_0x344f8f(0xec)][_0x344f8f(0xf1)](_0x344f8f(0xe5),{'model':_0x344f8f(0xf8),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x344f8f(0x11e)]=_0x33b3c1[_0x344f8f(0xec)][_0x344f8f(0xdc)](_0x344f8f(0xde)),this[_0x344f8f(0xed)]=_0x33b3c1[_0x344f8f(0xec)][_0x344f8f(0xdc)](_0x344f8f(0x100))||{},this[_0x344f8f(0xee)]=_0x33b3c1[_0x344f8f(0xec)][_0x344f8f(0xdc)](_0x344f8f(0xe5));}async[_0x3ed49a(0xe4)]({query:_0x23b39a,context:_0x58a8b0,onData:_0x4defd5,actionId:_0x4d89e2}){const _0x31c232=_0x3ed49a,_0x3b995e=this[_0x31c232(0xea)][_0x31c232(0xf9)],_0x1a959d=await this[_0x31c232(0x10a)](_0x23b39a,_0x58a8b0,_0x4d89e2),_0x39cd76=await this[_0x31c232(0x105)](this[_0x31c232(0xed)],_0x4d89e2),_0x5c8fa2=await this[_0x31c232(0x10d)](this[_0x31c232(0xee)],_0x4d89e2),_0x4d42d7={'messages':_0x1a959d,..._0x5c8fa2},_0x486fd4={'method':_0x31c232(0x113),'headers':_0x39cd76,'body':JSON[_0x31c232(0xe3)](_0x4d42d7),'signal':this[_0x31c232(0xe8)][_0x31c232(0xf7)]},_0x1ead47=await fetch(this[_0x31c232(0x11e)],_0x486fd4);if(_0x1ead47['ok'])return _0x5c8fa2[_0x31c232(0x103)]?await this[_0x31c232(0x118)](_0x1ead47,_0x4defd5):await this[_0x31c232(0xdf)](_0x1ead47,_0x4defd5),Promise[_0x31c232(0x11b)]();{const _0x151c09=await _0x1ead47[_0x31c232(0xe9)]();return _0x151c09[_0x31c232(0x11a)](_0x31c232(0x106))?Promise[_0x31c232(0x11f)](new _0xc27f12(_0x1d1f78(_0x3b995e,_0x31c232(0x102)))):_0x151c09[_0x31c232(0x11a)](_0x31c232(0xf4))?Promise[_0x31c232(0x11f)](new _0xc27f12(_0x1d1f78(_0x3b995e,_0x31c232(0xfa)))):Promise[_0x31c232(0x11f)](new Error(_0x151c09));}}async[_0x3ed49a(0x10a)](_0x147c43,_0x21b32a,_0x331a15){const _0x2a563d=_0x3ed49a;let _0x4693c3,_0x36f200;return _0x21b32a?(_0x4693c3=_0x2a563d(0x116),_0x36f200=_0x2a563d(0x119)+_0x147c43+_0x2a563d(0xfb)+_0x21b32a):(_0x4693c3=_0x2a563d(0x114),_0x36f200=_0x147c43),[{'role':_0x2a563d(0x107),'content':_0x4693c3},{'role':_0x2a563d(0x111),'content':_0x36f200}];}async[_0x3ed49a(0x118)](_0x22af4b,_0x616a1d){const _0x2dbf1f=_0x3ed49a,_0x2fd3cc=_0x22af4b[_0x2dbf1f(0xfc)][_0x2dbf1f(0xe1)](),_0x411daf=new TextDecoder();let _0x4b874f='',_0x685423='',_0x52a528='',_0x4614f0=!0x1;for(;!_0x4614f0;){const {done:_0x31f349,value:_0x30e8c}=await _0x2fd3cc[_0x2dbf1f(0xf5)](),_0x5cc875=_0x4b874f+_0x411daf[_0x2dbf1f(0xfe)](_0x30e8c);let _0x585aa5='';_0x4614f0=_0x31f349;try{_0x585aa5=this[_0x2dbf1f(0x10f)](_0x5cc875),_0x4b874f='';}catch{_0x4b874f=_0x5cc875;continue;}_0x685423+=_0x585aa5,!_0x4614f0&&this[_0x2dbf1f(0xe7)](_0x685423)||_0x685423&&(_0x52a528+=_0x685423,_0x685423='',_0x616a1d(_0x52a528));}return Promise[_0x2dbf1f(0x11b)]();}async[_0x3ed49a(0xdf)](_0x18b465,_0x3b3aa1){const _0x24ad29=_0x3ed49a;return _0x3b3aa1((await _0x18b465[_0x24ad29(0x109)]())[_0x24ad29(0xe2)][0x0][_0x24ad29(0x10e)][_0x24ad29(0x104)]),Promise[_0x24ad29(0x11b)]();}[_0x3ed49a(0xe7)](_0x1fa9d5){const _0x408ba6=_0x3ed49a,_0x52cfa6=_0x1fa9d5[_0x408ba6(0xf3)]('<')[_0x408ba6(0x10c)]!==_0x1fa9d5[_0x408ba6(0xf3)]('>')[_0x408ba6(0x10c)],_0x2ee126=_0x1fa9d5[_0x408ba6(0x10c)]<0x1e;return _0x52cfa6&&_0x2ee126;}[_0x3ed49a(0x10f)](_0x27fc6b){const _0x3788d9=_0x3ed49a;return _0x27fc6b[_0x3788d9(0xf3)](/\n(?![^{]*\})/g)[_0x3788d9(0xf6)](_0x4585f6=>_0x4585f6[_0x3788d9(0xf2)](_0x3788d9(0xeb),''))[_0x3788d9(0x117)](_0x3b7aad=>_0x3b7aad&&_0x3b7aad[_0x3788d9(0x10c)]>0x0&&_0x3788d9(0x101)!==_0x3b7aad)[_0x3788d9(0xf6)](_0x181c7f=>{const _0x38fe8f=_0x3788d9,{choices:_0xe7d96c}=JSON[_0x38fe8f(0xff)](_0x181c7f);if(_0xe7d96c[0x0]?.[_0x38fe8f(0xda)]?.[_0x38fe8f(0x104)])return _0xe7d96c[0x0][_0x38fe8f(0xda)][_0x38fe8f(0x104)];})[_0x3788d9(0x117)](_0x242883=>_0x242883)[_0x3788d9(0x11c)]('');}}