@ckeditor/ckeditor5-comments 44.0.0 → 44.1.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. package/build/comments.js +1 -1
  2. package/dist/annotations/annotation.d.ts +1 -1
  3. package/dist/annotations/annotationcollection.d.ts +1 -1
  4. package/dist/annotations/annotations.d.ts +1 -1
  5. package/dist/annotations/annotationsuis.d.ts +1 -1
  6. package/dist/annotations/editorannotations.d.ts +1 -1
  7. package/dist/annotations/inlineannotations.d.ts +1 -1
  8. package/dist/annotations/narrowsidebar.d.ts +1 -1
  9. package/dist/annotations/sidebar.d.ts +1 -1
  10. package/dist/annotations/view/annotationcounterbuttonview.d.ts +1 -1
  11. package/dist/annotations/view/annotationview.d.ts +1 -1
  12. package/dist/annotations/view/sidebaritemview.d.ts +1 -1
  13. package/dist/annotations/view/sidebarview.d.ts +1 -1
  14. package/dist/annotations/widesidebar.d.ts +1 -1
  15. package/dist/augmentation.d.ts +1 -1
  16. package/dist/comments/addcommentthreadcommand.d.ts +1 -1
  17. package/dist/comments/commentsarchive.d.ts +1 -1
  18. package/dist/comments/commentsarchiveui.d.ts +1 -1
  19. package/dist/comments/commentsediting.d.ts +3 -2
  20. package/dist/comments/commentsrepository.d.ts +1 -1
  21. package/dist/comments/commentsui.d.ts +1 -1
  22. package/dist/comments/integrations/clipboard.d.ts +1 -1
  23. package/dist/comments/integrations/commentsrestrictededitingmode.d.ts +1 -1
  24. package/dist/comments/integrations/importword.d.ts +1 -1
  25. package/dist/comments/integrations/showcommenthighlights.d.ts +23 -0
  26. package/dist/comments/ui/commenteditor/commenteditor.d.ts +1 -1
  27. package/dist/comments/ui/commenteditor/commenteditorui.d.ts +1 -1
  28. package/dist/comments/ui/commenteditor/commenteditoruiview.d.ts +1 -1
  29. package/dist/comments/ui/commentthreadcontroller.d.ts +1 -1
  30. package/dist/comments/ui/view/basecommentthreadview.d.ts +1 -1
  31. package/dist/comments/ui/view/basecommentview.d.ts +1 -1
  32. package/dist/comments/ui/view/collapsedcommentsview.d.ts +1 -1
  33. package/dist/comments/ui/view/commentcontentview.d.ts +1 -1
  34. package/dist/comments/ui/view/commentinputview.d.ts +1 -1
  35. package/dist/comments/ui/view/commentsarchiveview.d.ts +1 -1
  36. package/dist/comments/ui/view/commentslistview.d.ts +1 -1
  37. package/dist/comments/ui/view/commentthreadheadercontextview.d.ts +1 -1
  38. package/dist/comments/ui/view/commentthreadheaderview.d.ts +1 -1
  39. package/dist/comments/ui/view/commentthreadinputview.d.ts +1 -1
  40. package/dist/comments/ui/view/commentthreadview.d.ts +1 -1
  41. package/dist/comments/ui/view/commentview.d.ts +1 -1
  42. package/dist/comments.d.ts +1 -1
  43. package/dist/commentsonly.d.ts +1 -1
  44. package/dist/config.d.ts +1 -1
  45. package/dist/index-content.css +30 -0
  46. package/dist/index-editor.css +0 -27
  47. package/dist/index.css +19 -19
  48. package/dist/index.d.ts +1 -1
  49. package/dist/index.js +9 -9
  50. package/dist/translations/af.js +1 -1
  51. package/dist/translations/af.umd.js +1 -1
  52. package/dist/translations/ar.js +1 -1
  53. package/dist/translations/ar.umd.js +1 -1
  54. package/dist/translations/ast.js +1 -1
  55. package/dist/translations/ast.umd.js +1 -1
  56. package/dist/translations/az.js +1 -1
  57. package/dist/translations/az.umd.js +1 -1
  58. package/dist/translations/bg.js +1 -1
  59. package/dist/translations/bg.umd.js +1 -1
  60. package/dist/translations/bn.js +1 -1
  61. package/dist/translations/bn.umd.js +1 -1
  62. package/dist/translations/bs.js +1 -1
  63. package/dist/translations/bs.umd.js +1 -1
  64. package/dist/translations/ca.js +1 -1
  65. package/dist/translations/ca.umd.js +1 -1
  66. package/dist/translations/cs.js +1 -1
  67. package/dist/translations/cs.umd.js +1 -1
  68. package/dist/translations/da.js +1 -1
  69. package/dist/translations/da.umd.js +1 -1
  70. package/dist/translations/de-ch.js +1 -1
  71. package/dist/translations/de-ch.umd.js +1 -1
  72. package/dist/translations/de.js +1 -1
  73. package/dist/translations/de.umd.js +1 -1
  74. package/dist/translations/el.js +1 -1
  75. package/dist/translations/el.umd.js +1 -1
  76. package/dist/translations/en-au.js +1 -1
  77. package/dist/translations/en-au.umd.js +1 -1
  78. package/dist/translations/en-gb.js +1 -1
  79. package/dist/translations/en-gb.umd.js +1 -1
  80. package/dist/translations/en.js +1 -1
  81. package/dist/translations/en.umd.js +1 -1
  82. package/dist/translations/eo.js +1 -1
  83. package/dist/translations/eo.umd.js +1 -1
  84. package/dist/translations/es-co.js +1 -1
  85. package/dist/translations/es-co.umd.js +1 -1
  86. package/dist/translations/es.js +1 -1
  87. package/dist/translations/es.umd.js +1 -1
  88. package/dist/translations/et.js +1 -1
  89. package/dist/translations/et.umd.js +1 -1
  90. package/dist/translations/eu.js +1 -1
  91. package/dist/translations/eu.umd.js +1 -1
  92. package/dist/translations/fa.js +1 -1
  93. package/dist/translations/fa.umd.js +1 -1
  94. package/dist/translations/fi.js +1 -1
  95. package/dist/translations/fi.umd.js +1 -1
  96. package/dist/translations/fr.js +1 -1
  97. package/dist/translations/fr.umd.js +1 -1
  98. package/dist/translations/gl.js +1 -1
  99. package/dist/translations/gl.umd.js +1 -1
  100. package/dist/translations/gu.js +1 -1
  101. package/dist/translations/gu.umd.js +1 -1
  102. package/dist/translations/he.js +1 -1
  103. package/dist/translations/he.umd.js +1 -1
  104. package/dist/translations/hi.js +1 -1
  105. package/dist/translations/hi.umd.js +1 -1
  106. package/dist/translations/hr.js +1 -1
  107. package/dist/translations/hr.umd.js +1 -1
  108. package/dist/translations/hu.js +1 -1
  109. package/dist/translations/hu.umd.js +1 -1
  110. package/dist/translations/hy.js +1 -1
  111. package/dist/translations/hy.umd.js +1 -1
  112. package/dist/translations/id.js +1 -1
  113. package/dist/translations/id.umd.js +1 -1
  114. package/dist/translations/it.js +1 -1
  115. package/dist/translations/it.umd.js +1 -1
  116. package/dist/translations/ja.js +1 -1
  117. package/dist/translations/ja.umd.js +1 -1
  118. package/dist/translations/jv.js +1 -1
  119. package/dist/translations/jv.umd.js +1 -1
  120. package/dist/translations/kk.js +1 -1
  121. package/dist/translations/kk.umd.js +1 -1
  122. package/dist/translations/km.js +1 -1
  123. package/dist/translations/km.umd.js +1 -1
  124. package/dist/translations/kn.js +1 -1
  125. package/dist/translations/kn.umd.js +1 -1
  126. package/dist/translations/ko.js +1 -1
  127. package/dist/translations/ko.umd.js +1 -1
  128. package/dist/translations/ku.js +1 -1
  129. package/dist/translations/ku.umd.js +1 -1
  130. package/dist/translations/lt.js +1 -1
  131. package/dist/translations/lt.umd.js +1 -1
  132. package/dist/translations/lv.js +1 -1
  133. package/dist/translations/lv.umd.js +1 -1
  134. package/dist/translations/ms.js +1 -1
  135. package/dist/translations/ms.umd.js +1 -1
  136. package/dist/translations/nb.js +1 -1
  137. package/dist/translations/nb.umd.js +1 -1
  138. package/dist/translations/ne.js +1 -1
  139. package/dist/translations/ne.umd.js +1 -1
  140. package/dist/translations/nl.js +1 -1
  141. package/dist/translations/nl.umd.js +1 -1
  142. package/dist/translations/no.js +1 -1
  143. package/dist/translations/no.umd.js +1 -1
  144. package/dist/translations/oc.js +1 -1
  145. package/dist/translations/oc.umd.js +1 -1
  146. package/dist/translations/pl.js +1 -1
  147. package/dist/translations/pl.umd.js +1 -1
  148. package/dist/translations/pt-br.js +1 -1
  149. package/dist/translations/pt-br.umd.js +1 -1
  150. package/dist/translations/pt.js +1 -1
  151. package/dist/translations/pt.umd.js +1 -1
  152. package/dist/translations/ro.js +1 -1
  153. package/dist/translations/ro.umd.js +1 -1
  154. package/dist/translations/ru.js +1 -1
  155. package/dist/translations/ru.umd.js +1 -1
  156. package/dist/translations/si.js +1 -1
  157. package/dist/translations/si.umd.js +1 -1
  158. package/dist/translations/sk.js +1 -1
  159. package/dist/translations/sk.umd.js +1 -1
  160. package/dist/translations/sl.js +1 -1
  161. package/dist/translations/sl.umd.js +1 -1
  162. package/dist/translations/sq.js +1 -1
  163. package/dist/translations/sq.umd.js +1 -1
  164. package/dist/translations/sr-latn.js +1 -1
  165. package/dist/translations/sr-latn.umd.js +1 -1
  166. package/dist/translations/sr.js +1 -1
  167. package/dist/translations/sr.umd.js +1 -1
  168. package/dist/translations/sv.js +1 -1
  169. package/dist/translations/sv.umd.js +1 -1
  170. package/dist/translations/th.js +1 -1
  171. package/dist/translations/th.umd.js +1 -1
  172. package/dist/translations/ti.js +1 -1
  173. package/dist/translations/ti.umd.js +1 -1
  174. package/dist/translations/tk.js +1 -1
  175. package/dist/translations/tk.umd.js +1 -1
  176. package/dist/translations/tr.js +1 -1
  177. package/dist/translations/tr.umd.js +1 -1
  178. package/dist/translations/tt.js +1 -1
  179. package/dist/translations/tt.umd.js +1 -1
  180. package/dist/translations/ug.js +1 -1
  181. package/dist/translations/ug.umd.js +1 -1
  182. package/dist/translations/uk.js +1 -1
  183. package/dist/translations/uk.umd.js +1 -1
  184. package/dist/translations/ur.js +1 -1
  185. package/dist/translations/ur.umd.js +1 -1
  186. package/dist/translations/uz.js +1 -1
  187. package/dist/translations/uz.umd.js +1 -1
  188. package/dist/translations/vi.js +1 -1
  189. package/dist/translations/vi.umd.js +1 -1
  190. package/dist/translations/zh-cn.js +1 -1
  191. package/dist/translations/zh-cn.umd.js +1 -1
  192. package/dist/translations/zh.js +1 -1
  193. package/dist/translations/zh.umd.js +1 -1
  194. package/dist/utils/common-translations.d.ts +1 -1
  195. package/dist/utils/createmutationobserver.d.ts +1 -1
  196. package/package.json +16 -15
  197. package/src/annotations/annotation.d.ts +1 -1
  198. package/src/annotations/annotation.js +2 -2
  199. package/src/annotations/annotationcollection.d.ts +1 -1
  200. package/src/annotations/annotationcollection.js +1 -1
  201. package/src/annotations/annotations.d.ts +1 -1
  202. package/src/annotations/annotations.js +1 -1
  203. package/src/annotations/annotationsuis.d.ts +1 -1
  204. package/src/annotations/annotationsuis.js +1 -1
  205. package/src/annotations/editorannotations.d.ts +1 -1
  206. package/src/annotations/editorannotations.js +1 -1
  207. package/src/annotations/inlineannotations.d.ts +1 -1
  208. package/src/annotations/inlineannotations.js +1 -1
  209. package/src/annotations/narrowsidebar.d.ts +1 -1
  210. package/src/annotations/narrowsidebar.js +1 -1
  211. package/src/annotations/sidebar.d.ts +1 -1
  212. package/src/annotations/sidebar.js +1 -1
  213. package/src/annotations/view/annotationcounterbuttonview.d.ts +1 -1
  214. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  215. package/src/annotations/view/annotationview.d.ts +1 -1
  216. package/src/annotations/view/annotationview.js +1 -1
  217. package/src/annotations/view/sidebaritemview.d.ts +1 -1
  218. package/src/annotations/view/sidebaritemview.js +1 -1
  219. package/src/annotations/view/sidebarview.d.ts +1 -1
  220. package/src/annotations/view/sidebarview.js +1 -1
  221. package/src/annotations/widesidebar.d.ts +1 -1
  222. package/src/annotations/widesidebar.js +1 -1
  223. package/src/augmentation.d.ts +1 -1
  224. package/src/comments/addcommentthreadcommand.d.ts +1 -1
  225. package/src/comments/addcommentthreadcommand.js +1 -1
  226. package/src/comments/commentsarchive.d.ts +1 -1
  227. package/src/comments/commentsarchive.js +1 -1
  228. package/src/comments/commentsarchiveui.d.ts +1 -1
  229. package/src/comments/commentsarchiveui.js +1 -1
  230. package/src/comments/commentsediting.d.ts +3 -2
  231. package/src/comments/commentsediting.js +1 -1
  232. package/src/comments/commentsrepository.d.ts +1 -1
  233. package/src/comments/commentsrepository.js +3 -3
  234. package/src/comments/commentsui.d.ts +1 -1
  235. package/src/comments/commentsui.js +1 -1
  236. package/src/comments/integrations/clipboard.d.ts +1 -1
  237. package/src/comments/integrations/clipboard.js +1 -1
  238. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +1 -1
  239. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  240. package/src/comments/integrations/importword.d.ts +1 -1
  241. package/src/comments/integrations/importword.js +1 -1
  242. package/src/comments/integrations/showcommenthighlights.d.ts +19 -0
  243. package/src/comments/integrations/showcommenthighlights.js +23 -0
  244. package/src/comments/ui/commenteditor/commenteditor.d.ts +1 -1
  245. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  246. package/src/comments/ui/commenteditor/commenteditorui.d.ts +1 -1
  247. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  248. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +1 -1
  249. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  250. package/src/comments/ui/commentthreadcontroller.d.ts +1 -1
  251. package/src/comments/ui/commentthreadcontroller.js +2 -2
  252. package/src/comments/ui/view/basecommentthreadview.d.ts +1 -1
  253. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  254. package/src/comments/ui/view/basecommentview.d.ts +1 -1
  255. package/src/comments/ui/view/basecommentview.js +1 -1
  256. package/src/comments/ui/view/collapsedcommentsview.d.ts +1 -1
  257. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  258. package/src/comments/ui/view/commentcontentview.d.ts +1 -1
  259. package/src/comments/ui/view/commentcontentview.js +1 -1
  260. package/src/comments/ui/view/commentinputview.d.ts +1 -1
  261. package/src/comments/ui/view/commentinputview.js +1 -1
  262. package/src/comments/ui/view/commentsarchiveview.d.ts +1 -1
  263. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  264. package/src/comments/ui/view/commentslistview.d.ts +1 -1
  265. package/src/comments/ui/view/commentslistview.js +1 -1
  266. package/src/comments/ui/view/commentthreadheadercontextview.d.ts +1 -1
  267. package/src/comments/ui/view/commentthreadheadercontextview.js +1 -1
  268. package/src/comments/ui/view/commentthreadheaderview.d.ts +1 -1
  269. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  270. package/src/comments/ui/view/commentthreadinputview.d.ts +1 -1
  271. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  272. package/src/comments/ui/view/commentthreadview.d.ts +1 -1
  273. package/src/comments/ui/view/commentthreadview.js +2 -2
  274. package/src/comments/ui/view/commentview.d.ts +1 -1
  275. package/src/comments/ui/view/commentview.js +2 -2
  276. package/src/comments.d.ts +1 -1
  277. package/src/comments.js +1 -1
  278. package/src/commentsonly.d.ts +1 -1
  279. package/src/commentsonly.js +1 -1
  280. package/src/config.d.ts +1 -1
  281. package/src/index.d.ts +1 -1
  282. package/src/index.js +1 -1
  283. package/src/utils/common-translations.d.ts +1 -1
  284. package/src/utils/common-translations.js +1 -1
  285. package/src/utils/createmutationobserver.d.ts +1 -1
  286. package/src/utils/createmutationobserver.js +1 -1
  287. package/theme/annotation-inline.css +1 -1
  288. package/theme/annotation.css +1 -1
  289. package/theme/comment.css +1 -1
  290. package/theme/commentinput.css +1 -1
  291. package/theme/commentmarker.css +3 -3
  292. package/theme/commentsarchive.css +1 -1
  293. package/theme/commentthread.css +1 -1
  294. package/theme/sidebar-narrow.css +1 -1
  295. package/theme/sidebar.css +1 -1
package/dist/index.js CHANGED
@@ -20,12 +20,12 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Editor as _0xded787,icons as _0x479de6,ContextPlugin as _0x100c9b,PendingActions as ht,Command as _0x47a299,Plugin as _0x3731df,Context as _0x4f4139}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x10bc89,uid as _0x5567a4,KeystrokeHandler as jt,FocusTracker as _0x5ad3fb,diff as _0x13ef69,Collection as _0x836a36,Rect as _0x2a3eae,CKEditorError as _0x2569ef,first as _0x4e3be5,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0x5c62f8,keyCodes as _0x18edba}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x5e4afb,AriaDescriptionView as Zt,setupThreadKeyboardNavigation as ts,ConfirmMixin as ti,LateFocusButtonView as _0xa7f655,trimHtml as _0x47102d,LateFocusDropdownButtonView as _0x4f8272,Users as it,getDateTimeFormatter as mt,hashObject as lt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0xf6ad3}from'ckeditor5-collaboration/dist/index.js';import{throttle as bt,isEqual as It,cloneDeep as pt,set as wt,unset as At,debounce as _0x56ae16}from'lodash-es';import{EditorUIView as Xt,InlineEditableUIView as $t,EditorUI as Ut,View as kt,FocusCycler as Ft,ButtonView as _0x59879a,ViewCollection as _0x21afed,createDropdown as _0x22a83e,ListView as _0x6bd2c3,focusChildOnDropdownOpen as _0x16b614,ListItemView as _0xc8d90e,MenuBarMenuListItemButtonView as _0x16cede,BodyCollection as _0x2f4a53,BalloonPanelView as _0x1dbba4,ContextualBalloon as _0x169945,Dialog as _0x56a89c,DialogViewPosition as _0x68270e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0xf633b7}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as Bt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as Et,ShiftEnter as Gt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Jt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Kt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Lt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Nt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x25b99b}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class yt extends/* #__PURE__ -- @preserve */
24
- _0x10bc89(){['model'];['view'];constructor(_0x1a1b5c,_0x3fb8e7){super(),this['model']=_0x1a1b5c,this['model']['_isAttached']=!0x0,this['view']=_0x3fb8e7,this['listenTo'](_0x3fb8e7,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x3fb8e7,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x3fb8e7,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x3fb8e7,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x3fb8e7,'addComment',(_0x46155f,_0x204be4)=>this['addComment'](_0x204be4)),this['listenTo'](_0x3fb8e7,'updateComment',(_0x258b95,_0x37dd1a,_0x5dd07f)=>this['updateComment'](_0x37dd1a,_0x5dd07f)),this['listenTo'](_0x3fb8e7,'removeComment',(_0x59a742,_0x305ce3)=>this['removeComment'](_0x305ce3));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x33d9f8){this['model']['addComment']({'content':_0x33d9f8,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x463aab,_0xe973fe){this['model']['getComment'](_0x463aab)['update']({'content':_0xe973fe});}['removeComment'](_0x46badc){this['model']['getComment'](_0x46badc)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x276887,_0x333c2b,_0x4ca549){const t=_0x276887['t'];switch(_0x333c2b){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'Annotations\x20sidebar':return t('Annotations\x20sidebar');case'Annotations\x20list':return t('Annotations\x20list');case'Thread\x20comments':return t('Thread\x20comments');case'THREAD_CONTEXT_LABEL':return t({'string':'Thread\x20context:\x20%0','id':'THREAD_CONTEXT_LABEL'},_0x4ca549);case'COMMENT_THREAD_LABEL':return t({'string':'Comment\x20thread\x20by\x20%1.\x20%1\x20reply.','plural':'Comment\x20thread\x20by\x20%1.\x20%0\x20replies.','id':'COMMENT_THREAD_LABEL'},_0x4ca549);case'COMMENT_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'COMMENT_THREAD_DESCRIPTION'});case'COMMENT_ARIA_LABEL':return t({'string':'Comment\x20by\x20%0.\x20Created\x20on\x20%1.\x20%2.\x20%3','id':'COMMENT_ARIA_LABEL'},_0x4ca549);case'LEAVE_COMMENT_ANNOUNCEMENT':return t({'string':'Leaving\x20a\x20content\x20with\x20comments.','id':'LEAVE_COMMENT_ANNOUNCEMENT'});case'ENTER_COMMENT_ANNOUNCEMENT':return t({'string':'Entering\x20a\x20content\x20with\x20comments.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_COMMENT_ANNOUNCEMENT'},_0x4ca549);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x4ca549);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x4ca549);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4ca549);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4ca549);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Vt extends Xt{['main'];['editable'];constructor(_0x359fae,_0x32f03d){super(_0x359fae);const _0x5955da=_0x5567a4();this['main']=this['createCollection'](),this['editable']=new $t(_0x359fae,_0x32f03d,void 0x0,{'label':()=>S(_0x359fae,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x359fae['uiLanguageDirection'],'lang':_0x359fae['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x5955da},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Ot extends Ut{['view'];constructor(_0x4123ae){super(_0x4123ae),this['view']=new Vt(_0x4123ae['locale'],_0x4123ae['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x1603d8=this['editor']['editing']['view'],_0xb4ab3d=this['view']['editable'],_0x986860=_0x1603d8['document']['getRoot']();_0xb4ab3d['name']=_0x986860['rootName'],this['view']['render']();const _0x4e0d6e=_0xb4ab3d['element'];this['setEditableElement'](_0xb4ab3d['name'],_0x4e0d6e),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1603d8['attachDomRoot'](_0x4e0d6e),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[Bt,Et,Gt,Jt,Kt,Lt,Nt];class Rt extends/* #__PURE__ -- @preserve */
25
- _0x10bc89(_0xded787){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Qt)());constructor(_0x3abaec={}){function _0x578f3c(_0x2f0bf9){return _0x2f0bf9['map'](_0x547f77=>String['fromCharCode'](_0x547f77))['join']('');}(_0x3abaec=Object['assign']({},_0x3abaec))['plugins']||(_0x3abaec['plugins']=Rt['defaultPlugins']),super(_0x3abaec),this['ui']=new Ot(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x578f3c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x578f3c([0x76,0x69,0x65,0x77])][_0x578f3c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x578f3c([0x61,0x75,0x74,0x6f]),this[_0x578f3c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x578f3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x578f3c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x578f3c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x578f3c([0x6f,0x6b])});}['create'](){const _0x42c8ab=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x42c8ab))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x5b768f=>{const _0x5c557e=this['model']['document']['getRoot'](),_0x34bfdc=_0x5c557e&&_0x5c557e['getChild'](_0x5c557e['childCount']-0x1);_0x5b768f['setSelection'](_0x34bfdc,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x193384=this['editing']['view'],_0x522f9d=_0x193384['document']['getRoot'](),_0x17140f=_0x522f9d['getChild'](0x0);_0x522f9d['childCount']>0x1||!_0x17140f||'p'!=_0x17140f['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x193384,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x17140f['placeholder']=this['placeholder']),St({'view':_0x193384,'element':_0x17140f,'keepOnFocus':!0x0}),this['placeholderElement']=_0x17140f);}}class hs extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x321975,_0x1cf929={}){super(_0x321975),this['editor']=null,this['_editorConfig']=_0x1cf929,this['set']('value',_0x1cf929['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x321975,'Reply...')),this['set']('submitLabel',S(_0x321975,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x5ad3fb(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x1c0649,_0x24def9)=>{this['cancelButtonView']['fire']('execute'),_0x24def9();}),this['keystrokes']['set']('Ctrl+Enter',(_0x438b24,_0x570bd6)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x570bd6());}),this['on']('submit',(_0x279b7c,_0x10d002)=>{_0x10d002['length']>0xfde8?(alert(S(_0x321975,'TOO_LONG_COMMENT_ALERT',[_0x10d002['length'],0xfde8])),_0x279b7c['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Rt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x117e4c=this['editor'];this['element']['insertBefore'](_0x117e4c['ui']['element'],this['element']['firstChild']),_0x117e4c['model']['document']['on']('change',()=>this['value']=_0x117e4c['getData']()),_0x117e4c['bind']('placeholder')['to'](this),this['focusables']['add'](_0x117e4c['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x4f6e8e){-0x1===_0x4f6e8e?(this['focusCycler']['focusFirst'](),this['focusCycler']['focusLast']()):this['focusCycler']['focusFirst']();}async['destroy'](){this['_isDestroyed']||(this['_isDestroyed']=!0x0,this['editor']&&(await this['_editorCreationPromise'],await this['editor']['destroy'](),this['fire']('editorDestroyed',this['editor'])),await super['destroy']());}['_createSubmitButton'](){const {locale:_0x4acdc7}=this,_0x552398=new _0x59879a(_0x4acdc7);return _0x552398['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x552398['withText']=!0x0,_0x552398['bind']('label')['to'](this,'submitLabel'),_0x552398['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x552398['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x356501,_0x549cff)=>!_0x549cff&&!!_0x356501['trim']()),_0x552398;}['_createCancelButton'](){const {locale:_0x151305}=this,_0x496ccc=new _0x59879a(_0x151305);return _0x496ccc['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x496ccc['label']=S(_0x151305,'Cancel'),_0x496ccc['withText']=!0x0,_0x496ccc['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x496ccc;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x4764fe=>{this['focusTracker']['add'](_0x4764fe['element']);}),this['focusables']['on']('change',(_0x59550c,_0xd1fa2)=>{for(const _0x28b88d of Array['from'](_0xd1fa2['added'])['reverse']())this['focusTracker']['add'](_0x28b88d['element']);});}}class ie extends kt{constructor(_0x1ddaf2,_0x556ba8,_0x18af8d){super(_0x1ddaf2),this['commentInputView']=new hs(_0x1ddaf2,_0x18af8d),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x59a4cb,_0x275e27)=>_0x59a4cb||!!_0x275e27),this['set']('showInput',!0x1),this['on']('change:showInput',()=>{this['showInput']&&!this['commentInputView']['editor']&&this['commentInputView']['createEditor']();}),this['commentInputView']['delegate']('editorReady')['to'](this),this['commentInputView']['delegate']('editorDestroyed')['to'](this),this['userView']=new _0x5e4afb(_0x1ddaf2,_0x556ba8),this['userView']['extendTemplate']({'attributes':{'class':'ck-thread__user','aria-hidden':!0x0}}),this['commentInputView']['extendTemplate']({'attributes':{'class':'ck-thread__input'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-container',this['bindTemplate']['if']('showInput','ck-comment__input-container--active')]},'children':[this['userView'],this['commentInputView']]});}['render'](){super['render'](),this['_focusOnNonInteractiveMouseDown']();}['destroy'](){return this['commentInputView']['destroy']()['then'](()=>super['destroy']());}['focus'](_0xa91a90){this['commentInputView']['focus'](_0xa91a90);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x31fbfe,_0x21827f)=>{const {submitButtonView:_0x22a52d,cancelButtonView:_0x5dd105,editor:_0x295675}=this['commentInputView'];[_0x22a52d['element'],_0x5dd105['element'],_0x295675?_0x295675['editing']['view']['getDomRoot']():null]['filter'](_0xef4e70=>_0xef4e70)['some'](_0xca6f3a=>_0xca6f3a['contains'](_0x21827f['target']))||(this['focus'](),_0x21827f['preventDefault']());});}}class cs extends kt{constructor(_0x3aefd7){super(_0x3aefd7);const _0x293e78=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x293e78['to']('count',_0xbf5c70=>S(_0x3aefd7,'NUMBER_OF_COMMENTS',_0xbf5c70))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x388ca5,_0x1dd6c3,_0x210b2d){super(_0x388ca5);const _0x79f81c=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x1dd6c3['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x1dd6c3,this['_config']=_0x210b2d,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x5ad3fb(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3e6b19=>this['commentViews']['map'](_0x1ba4b3=>_0x1ba4b3['element'])['includes'](_0x3e6b19['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x388ca5),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x31eaff=>_0x31eaff-this['_config']['maxCommentsWhenCollapsed']);for(const _0x153715 of _0x1dd6c3['comments'])this['_handleNewCommentModel'](_0x153715);this['_handleInfoComment'](),this['listenTo'](_0x1dd6c3['comments'],'add',(_0x6571f3,_0x3e2864)=>{const _0x3aec64=this['_calculatePosition'](_0x3e2864);this['length']++,this['_handleNewCommentModel'](_0x3e2864,_0x3aec64),this['refreshVisibleViews']();}),this['listenTo'](_0x1dd6c3['comments'],'remove',(_0x55dc6a,_0x978255)=>{this['length']--,this['_handleRemoveCommentModel'](_0x978255),this['refreshVisibleViews']();}),this['listenTo'](_0x1dd6c3,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x1dd6c3,'change:isResolved',()=>this['_handleInfoComment']()),this['on']('change:isActive',()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this['setTemplate']({'tag':'ul','attributes':{'class':['ck-thread__comments',_0x79f81c['if']('length','ck-hidden',_0x2e784c=>!_0x2e784c)],'aria-label':S(_0x388ca5,'Thread\x20comments')},'children':this['visibleViews']});}get['_shouldCollapse'](){return this['_model']['weight']>this['_config']['maxThreadTotalWeight']&&!this['isActive']&&!this['hasDirtyComment'];}['render'](){super['render'](),this['refreshVisibleViews'](),this['_setupKeyboardNavigation']();}['focus'](_0x57003a){-0x1===_0x57003a?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x36e669 of this['commentViews'])_0x36e669['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x36a559,_0x2c5fa5){const _0x1df4f5=new this['_config']['CommentView'](this['locale'],_0x36a559,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x1df4f5['viewUid']=_0x36a559['id'],_0x1df4f5['delegate']('removeComment')['to'](this),_0x1df4f5['delegate']('updateComment')['to'](this),_0x1df4f5['delegate']('resolveCommentThread')['to'](this),_0x1df4f5['delegate']('editorReady')['to'](this),_0x1df4f5['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x1df4f5,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x1df4f5,_0x2c5fa5);}['_calculatePosition'](_0xb564){const _0x5cde25=this['_model']['_findOptimalIndex'](_0xb564);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0xb564['authoredAt']?_0x5cde25-0x1:_0x5cde25:_0x5cde25-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x4b3450={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':S(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x4b3450,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x4b3450));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x7c1823){const _0x16f56b=this['commentViews']['remove'](_0x7c1823['id']);this['stopListening'](_0x16f56b),_0x16f56b['isEditMode']&&this['_updateHasDirtyComment'](),_0x16f56b['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x38b233=>_0x38b233['isEditMode']);}['_rearrangeCollapse'](){const _0x55ae48=function(_0x46a2aa){const _0x49f634=new _0x836a36();for(const _0x1ba9df of _0x46a2aa)_0x49f634['add'](_0x1ba9df);return _0x49f634;}(this['commentViews']),_0x158ae5=this['_collapsedCommentsView']['count'];for(let _0x2e7224=0x1;_0x2e7224<=_0x158ae5;_0x2e7224++)_0x55ae48['remove'](0x1);for(const _0x503e67 of _0x55ae48)_0x503e67['collapse']();_0x158ae5>0x0&&_0x55ae48['add'](this['_collapsedCommentsView'],0x1),ns(_0x13ef69(Array['from'](this['visibleViews']),Array['from'](_0x55ae48)),this['visibleViews'],_0x55ae48);}['_rearrangeExpand'](){ns(_0x13ef69(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x536123 of this['visibleViews'])_0x536123['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x2c87a1=>{this['focusTracker']['add'](_0x2c87a1['element']),this['keystrokes']['listenTo'](_0x2c87a1['element']);}),this['commentViews']['on']('change',(_0x365746,_0x9bb3e0)=>{for(const _0x22413a of _0x9bb3e0['removed'])this['focusTracker']['remove'](_0x22413a['element']),this['keystrokes']['stopListening'](_0x22413a['element']);for(const _0xb545b1 of Array['from'](_0x9bb3e0['added'])['reverse']())this['focusTracker']['add'](_0xb545b1['element']),this['keystrokes']['listenTo'](_0xb545b1['element']);});}}function ns(_0x8b8dd9,_0x286555,_0x5b6eeb){let _0x4e4878=0x0;for(const _0xc91747 of _0x8b8dd9)switch(_0xc91747){case'insert':_0x286555['add'](_0x5b6eeb['get'](_0x4e4878),_0x4e4878),_0x4e4878++;break;case'delete':_0x286555['remove'](_0x4e4878);break;case'equal':_0x4e4878++;}}class as extends kt{constructor(_0x163853){super(_0x163853);const _0x2d1c0d=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x2d1c0d['to']('contextValue',_0x1c9630=>S(_0x163853,'THREAD_CONTEXT_LABEL',_0x1c9630)),'tabindex':-0x1},'children':[{'text':_0x2d1c0d['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0xf3aa09,_0x1755ad){super(_0xf3aa09);const _0x28034a=this['bindTemplate'];this['_model']=_0x1755ad,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x5ad3fb(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x563517=>!!_0x563517),this['bind']('contextValue')['to'](this['_model'],'context',_0x578f28=>_0x578f28&&_0x578f28['value']?this['_trimContextValue'](_0x578f28['value']):S(this['locale'],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':['ck-context-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-context',_0x28034a['if']('hasContext','ck-context--quotes')]},'children':[this['contextView']]}]},{'tag':'div','attributes':{'class':['ck-annotation__actions']},'children':[this['reopenButtonView']]}]});}['render'](){super['render'](),this['_attachContextActions'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_createReopenButton'](){const _0x1618f6=new _0x59879a(this['locale']);return _0x1618f6['label']=S(this['locale'],'Reopen'),_0x1618f6['tooltip']=S(this['locale'],'Reopen'),_0x1618f6['icon']='<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22m5.042\x209.367\x202.189\x201.837a.75.75\x200\x200\x201-.965\x201.149l-3.788-3.18a.747.747\x200\x200\x201-.21-.284.75.75\x200\x200\x201\x20.17-.945L6.23\x204.762a.75.75\x200\x201\x201\x20.964\x201.15L4.863\x207.866h8.917A.75.75\x200\x200\x201\x2014\x207.9a4\x204\x200\x201\x201-1.477\x207.718l.344-1.489a2.5\x202.5\x200\x201\x200\x201.094-4.73l.008-.032H5.042z\x22/></svg>',_0x1618f6['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x5ac321=>!_0x5ac321),_0x1618f6['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x707098,_0x48aae3)=>_0x707098&&_0x48aae3),_0x1618f6['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x1618f6;}['_trimContextValue'](_0x1dc465){if(_0x1dc465['length']<0x96)return _0x1dc465;const _0x223aa8=_0x1dc465['lastIndexOf']('\x20',0x93);return _0x1dc465['substring'](0x0,_0x223aa8>-0x1?_0x223aa8:0x93)+'...';}['_attachContextActions'](){const _0x23633d=this['element']['querySelector']('.ck-context'),_0x2454bd=_0x23633d['querySelector']('.ck-context__value');this['listenTo'](_0x23633d,'mouseenter',()=>{_0x2454bd['offsetWidth']<_0x2454bd['scrollWidth']&&_0x23633d['classList']['add']('overlay');}),this['listenTo'](_0x23633d,'mouseleave',()=>{_0x23633d['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x840054 of this['focusables'])this['focusTracker']['add'](_0x840054['element']),this['keystrokes']['listenTo'](_0x840054['element']);}['_createContextView'](){const _0x593555=new as(this['locale']);return _0x593555['bind']('contextValue')['to'](this),_0x593555;}}class ss extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x45db8f,_0xccb840,_0x37d038,_0x4fdd25){super(_0x45db8f),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0xccb840,this['_localUser']=_0x37d038,this['_config']=_0x4fdd25,this['commentThreadHeaderView']=new Yt(_0x45db8f,_0xccb840),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0x45db8f,S(_0x45db8f,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x45db8f,_0xccb840,Object['assign']({'CommentView':this['_config']['CommentView']},_0x4fdd25)),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['delegate']('resolveCommentThread')['to'](this),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['listenTo'](this,'resolveCommentThread',()=>{this['focus']();}),this['set']('length',this['commentsListView']['length']),this['bind']('length')['to'](this['commentsListView'],'length'),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2f1026,_0x523af7)=>_0x2f1026||!!_0x523af7),this['bind']('isUnlinked')['to'](_0xccb840,'unlinkedAt',_0x2c7085=>!!_0x2c7085),this['bind']('ariaLabel')['to'](this,'length',_0x29f85b=>{const _0x3e911a=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x29f85b,_0x3e911a]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x5ad3fb(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xc24f6e=>_0xc24f6e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),ts(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x4796b7=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5df266=_0x4796b7['commentInputView'];return _0x4796b7['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x5df266,'value',(_0x545673,_0x5184c4,_0x40a9ec,_0x2ba560,_0x1c3c83)=>!!_0x1c3c83||!!_0x2ba560&&_0x40a9ec&&!_0x5184c4||_0x545673&&_0x40a9ec&&!_0x5184c4),_0x5df266['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x12f9f5,_0x2ac499,_0x564357)=>{let _0x1808b9;return _0x1808b9=_0x564357&&_0x2ac499?'Reply\x20to\x20reopen\x20discussion...':_0x12f9f5?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x1808b9);}),_0x5df266['bind']('submitLabel')['to'](this,'length',_0x461a17=>S(this['locale'],_0x461a17?'Reply':'Comment')),_0x5df266['on']('submit',(_0x930a9b,_0x2ccae1)=>{this['fire']('addComment',_0x2ccae1),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x5df266['on']('cancel',()=>{this['focus']();}),_0x5df266['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x5df266['on']('cancel',_0x2701b8=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x2701b8['stop']());}),this['on']('change:isActive',(_0x2a2261,_0x4ac8e6,_0x1c6e7c)=>{_0x1c6e7c||this['length']||_0x5df266['value']||this['fire']('removeCommentThread');}),_0x4796b7;}}class Ct extends/* #__PURE__ -- @preserve */
27
- ti(ss){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x4dddf8,_0x75d9c2,_0x25c3ee,_0x19bd7f){super(_0x4dddf8,_0x75d9c2,_0x25c3ee,_0x19bd7f),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x4dddf8,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x4377b8,_0x228bc6,_0x2bd913)=>{_0x2bd913||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x525136,_0x198fe9,_0x4edbf7)=>{_0x4edbf7&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x3e6960=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x3e6960['if']('isActive','ck-thread--active'),_0x3e6960['if']('isUnlinked','ck-thread--unlinked'),_0x3e6960['if']('isConfirm','ck-thread--remove-confirmation'),_0x3e6960['to']('actionIndicator',_0x17f58b=>_0x17f58b?'ck-thread--'+_0x17f58b:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x3e6960['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':this['commentThreadChildren']}]};}['render'](){super['render'](),this['containerElement']=this['element']['querySelector']('.ck-thread__container'),this['_model']['on']('change:archivedAt',()=>{this['_updateArchivedThreadHeader']();}),this['_updateArchivedThreadHeader']();}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x82bb96 of this['commentsListView']['commentViews'])_0x82bb96['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x4a8dce}=this,_0x41a2f9=this['commentsListView']['commentViews']['get'](0x0);_0x41a2f9===this['_boundFirstCommentView']||_0x41a2f9['isSystemComment']||(this['_boundFirstCommentView']=_0x41a2f9,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x41a2f9,'actionIndicator',_0x2d19bd=>'remove'===_0x2d19bd?'remove':null),_0x41a2f9['placeholder']=S(_0x4a8dce,'Write\x20a\x20comment...'),_0x41a2f9['removeButton']['on']('execute',_0x57222a=>{_0x57222a['stop'](),this['showConfirm'](S(_0x4a8dce,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x41a2f9['focus']();}),_0x41a2f9['actionBar']['add'](this['resolveButton'],0x0),_0x41a2f9['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x28bab2=new _0xa7f655(this['locale']);return _0x28bab2['label']=S(this['locale'],'Resolve'),_0x28bab2['tooltip']=S(this['locale'],'Resolve'),_0x28bab2['icon']=_0x479de6['check'],_0x28bab2['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x28bab2['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1d63bb=>!_0x1d63bb),_0x28bab2['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x145375,_0x53662b)=>_0x145375&&!_0x53662b),_0x28bab2['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x28bab2;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class es extends kt{constructor(_0x1ce2c5){super(_0x1ce2c5),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x16fd25,_0x1bd5b7,_0x4e3269)=>{this['element']['innerHTML']=_0x4e3269;}),this['element']['innerHTML']=this['content'];}}class os extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x59d279,_0x2a5037,_0x4e5914){super(_0x59d279),this['_model']=_0x2a5037,this['_config']=_0x4e5914,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x2a5037,'content',_0x2a5037,'authoredAt',(_0x3e147e,_0xf42786)=>S(_0x59d279,'COMMENT_ARIA_LABEL',[_0x2a5037['author']['name'],_0x4e5914['formatDateTime'](_0xf42786),new DOMParser()['parseFromString'](_0x3e147e,'text/html')['body']['textContent'],_0x2a5037['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Zt(_0x59d279,S(_0x59d279,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x21afed(),this['focusTracker']=new _0x5ad3fb(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x10dcda=>_0x10dcda['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['expand'](){this['isCollapsed']=!0x1;}['collapse'](){this['isEditMode']||(this['isCollapsed']=!0x0);}['focus'](){this['element']['focus']();}['render'](){super['render'](),this['_setupKeyboardNavigation']();}async['destroy'](){await this['visibleView']['get'](0x0)['destroy'](),super['destroy']();}['switchToEditMode'](){this['isEditMode']||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentInputView']()));}['switchToDisplayMode'](){this['isEditMode']&&(this['isEditMode']=!0x1,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentContentView']()));}['getExternalCommentNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?S(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):S(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?S(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):S(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x1726a2=new es(this['locale']);return _0x1726a2['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x15ffa8,_0x231c3e)=>_0x231c3e?_0x47102d(_0x15ffa8,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x15ffa8),_0x1726a2;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x3d5a41=new hs(this['locale'],this['_config']['editorConfig']);return _0x3d5a41['value']=this['_model']['content'],_0x3d5a41['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x3d5a41['submitLabel']=S(this['locale'],'Save'),_0x3d5a41['on']('submit',(_0x6caf1b,_0x131051)=>{this['fire']('updateComment',this['_model']['id'],_0x131051),this['switchToDisplayMode'](),this['focus']();}),_0x3d5a41['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x3d5a41['once']('editorReady',()=>{_0x3d5a41['focus']();}),_0x3d5a41['createEditor'](),_0x3d5a41['delegate']('editorReady')['to'](this),_0x3d5a41['delegate']('editorDestroyed')['to'](this),_0x3d5a41;}['_setupKeyboardNavigation'](){const _0xf66508=this['element'];this['keystrokes']['listenTo'](_0xf66508);for(const _0x13f0b6 of this['focusables'])this['focusTracker']['add'](_0x13f0b6['element']),this['keystrokes']['listenTo'](_0x13f0b6['element']);this['focusables']['on']('change',(_0x1f07cd,_0x3c7d43)=>{for(const _0x5e31be of _0x3c7d43['removed'])this['focusTracker']['remove'](_0x5e31be['element']),this['keystrokes']['stopListening'](_0x5e31be['element']);for(const _0x32a54f of _0x3c7d43['added'])this['focusTracker']['add'](_0x32a54f['element']),this['keystrokes']['listenTo'](_0x32a54f['element']);}),this['keystrokes']['set']('enter',(_0x68fa21,_0x2c5342)=>{_0xf66508===_0x68fa21['target']&&(this['focusCycler']['focusFirst'](),_0x2c5342());}),this['keystrokes']['set']('esc',(_0xc6ccb5,_0x3dec0d)=>{_0xf66508!==_0xc6ccb5['target']&&(this['focus'](),_0x3dec0d());});}}class vt extends/* #__PURE__ -- @preserve */
28
- ti(os){['actionBar'];['userView'];constructor(_0x78514d,_0x3936a5,_0x40b7d6){super(_0x78514d,_0x3936a5,_0x40b7d6),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x78514d,'Reply...')),this['bind']('authoredAt')['to'](_0x3936a5),this['bind']('resolvedAt')['to'](_0x3936a5),this['actionBar']=this['createCollection'](),this['isSystemComment']||(this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['items']=this['createCollection'](),this['items']['addMany']([this['editButton'],this['removeButton']]),this['dropdown']=this['_createDropdown'](),this['actionBar']['add'](this['dropdown']),this['focusables']['add'](this['dropdown'])),this['userView']=new _0x5e4afb(_0x78514d,_0x3936a5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x3936a5,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x25a985=this['bindTemplate'],_0x40d766=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x25a985['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x25a985['to']('authoredAt',_0x103b7e=>this['_config']['formatDateTime'](_0x103b7e))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x25a985['if']('isEditMode','ck-comment__actions--hidden'),_0x25a985['if']('isEditMode','ck-annotation__actions--hidden')]},'children':this['actionBar']},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']},this['ariaDescriptionView']];return this['_model']['isExternal']&&_0x40d766['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x25a985['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x25a985['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x25a985['if']('isEditMode','ck-comment--edit'),_0x25a985['if']('isSystemComment','ck-comment--info'),_0x25a985['to']('actionIndicator',_0x11e5e8=>_0x11e5e8?'ck-comment--'+_0x11e5e8:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id'],'role':'group'},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':_0x40d766}]}]};}['_createEditButton'](){const _0x1d1f07=new _0x59879a(this['locale']);return _0x1d1f07['label']=S(this['locale'],'Edit'),_0x1d1f07['icon']=_0x479de6['pencil'],_0x1d1f07['withText']=!0x0,_0x1d1f07['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x1d1f07['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2d8ac1=>!_0x2d8ac1),_0x1d1f07['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x1d1f07['on']('execute',()=>this['switchToEditMode']()),_0x1d1f07;}['_createRemoveButton'](){const _0x507c79=new _0x59879a(this['locale']);return _0x507c79['label']=S(this['locale'],'Remove'),_0x507c79['icon']='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M5.2\x207h9.2c.6\x200\x201\x20.4\x201\x201v9.9c0\x20.5-.4\x201-1\x201H5.2a1\x201\x200\x200\x201-1-1V8c0-.6.4-1\x201-1zm1\x201.5c-.3\x200-.5.2-.5.5v8c0\x20.3.2.5.5.5h.5c.2\x200\x20.5-.2.5-.5V9c0-.3-.3-.5-.5-.5h-.5zm3.2\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.4zm3.5\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.5zm-1.4-7.1H8.3L6.5\x203.6H3.8c-.5\x200-.7.3-.7.8s.2.7.7.7h12c.6\x200\x20.9-.2.9-.7\x200-.5-.3-.8-1-.8h-2.4l-1.8-2.2z\x22/></svg>\x0a',_0x507c79['withText']=!0x0,_0x507c79['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x507c79['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x261a3d=>!_0x261a3d),_0x507c79['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x507c79['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x507c79;}['_createDropdown'](){const _0x28dfdf=_0x22a83e(this['locale'],_0x4f8272),_0x5be8f1=_0x28dfdf['panelView']['children'],_0x529f45=new _0x6bd2c3(this['locale']),_0x2a39ad=_0x28dfdf['bindTemplate'];_0x16b614(_0x28dfdf,()=>this['items']['find'](_0x2196dc=>_0x2196dc['isVisible'])),_0x28dfdf['extendTemplate']({'attributes':{'class':[_0x2a39ad['if']('isVisible','ck-hidden',_0x3c51a7=>!_0x3c51a7)]}});const _0x1bb6d9=(_0x456973,_0x47fca7=-0x1)=>{const _0x3886c0=new _0xc8d90e(this['locale']);_0x3886c0['children']['add'](_0x456973);const _0x48b505=_0x47fca7>-0x1?_0x47fca7:_0x529f45['items']['length'];_0x529f45['items']['add'](_0x3886c0,_0x48b505);const _0x5ef50b=Array['from'](this['items']);_0x28dfdf['unbind']('isEnabled','isVisible'),_0x28dfdf['bind']('isEnabled')['toMany'](_0x5ef50b,'isEnabled',(..._0x1c84fd)=>_0x1c84fd['some'](_0xd78cbb=>_0xd78cbb)),_0x28dfdf['bind']('isVisible')['toMany'](_0x5ef50b,'isVisible',(..._0x253271)=>_0x253271['some'](_0x490480=>_0x490480));};_0x28dfdf['panelPosition']='sw',_0x28dfdf['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x479de6['threeVerticalDots']});for(const _0x512f3f of this['items'])_0x1bb6d9(_0x512f3f);return _0x5be8f1['add'](_0x529f45),_0x28dfdf['listenTo'](this['items'],'add',(_0x541449,_0x21e3e9,_0x34c18b)=>{_0x1bb6d9(_0x21e3e9,_0x34c18b);}),_0x28dfdf['listenTo'](this['items'],'remove',(_0x4101e0,_0x5365fa,_0x452395)=>{_0x529f45['items']['remove'](_0x452395);}),_0x28dfdf;}['_attachActions'](_0x36ea6f,_0x22d1e6){const _0x37e6e3=_0x36ea6f&&_0x36ea6f['element'];_0x37e6e3&&(this['listenTo'](_0x37e6e3,'mouseenter',()=>this['actionIndicator']=_0x22d1e6),this['listenTo'](_0x37e6e3,'focus',()=>this['actionIndicator']=_0x22d1e6),this['listenTo'](_0x37e6e3,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x37e6e3,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x530778=super['_createCommentInputView']();return _0x530778['bind']('placeholder')['to'](this),_0x530778;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Dt(_0x201cc1){const _0x257b3e=bt(_0x201cc1,0x1e),_0x231144=new MutationObserver(_0x489b1d=>{for(const _0x2fa4d8 of _0x489b1d)('attributes'==_0x2fa4d8['type']&&'class'==_0x2fa4d8['attributeName']||'childList'==_0x2fa4d8['type']||'characterData'==_0x2fa4d8['type'])&&_0x257b3e();});return{'attach'(_0x3fb92b){_0x231144['observe'](_0x3fb92b,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x231144['disconnect'](),_0x257b3e['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x279adf,_0x3bf35a){super(_0x279adf),this['id']=_0x5567a4(),this['focusTracker']=new _0x5ad3fb(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x2d4cd8,_0x4f207c)=>this['fire']('Esc',_0x4f207c)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=Dt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x3bf35a),this['mainView']=_0x3bf35a;const _0x9f0d6a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x9f0d6a['if']('isActive','ck-annotation-wrapper--active')],'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['focusTracker']['add'](this['element']),this['keystrokes']['listenTo'](this['element']),this['_mutationObserver']['attach'](this['element']);}['destroy'](){this['content']['clear'](),this['keystrokes']['destroy'](),this['focusTracker']['destroy'](),this['_mutationObserver']['detach'](),super['destroy']();}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['_updateHeight'](){const _0x2b29d2=this['element']['clientHeight'];_0x2b29d2&&(this['height']=_0x2b29d2);}}class d extends/* #__PURE__ -- @preserve */
29
- _0x10bc89(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x4f15b7,target:_0x3e061b,type:_0x47e035,isVisible:_0x25ec67=!0x0}){super(),this['view']=_0x4f15b7,this['view']['element']||this['view']['render'](),this['_type']=_0x47e035,this['_target']=_0x3e061b,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x836a36([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x34823e,_0x2e985a)=>{this['view']['focusTracker']['add'](_0x2e985a);}),this['focusableElements']['on']('remove',(_0x54845e,_0x2c5d6e)=>{this['view']['focusTracker']['remove'](_0x2c5d6e);}),this['set']('isVisible',_0x25ec67);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x5e8172=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x5e8172),_0x5e8172;}get['targetRect'](){const _0x3029c1=this['target'];if(null===_0x3029c1)return null;if(_0x3029c1 instanceof _0x2a3eae)return _0x3029c1;const _0xfb5feb=_0x3029c1['filter'](_0x420796=>function(_0x56af49){const _0x15cbd9=_0x56af49['offsetParent'];if(_0x15cbd9)return!0x0;const _0x44a200=_0x56af49['getClientRects']()['item'](0x0);return!!_0x44a200;}(_0x420796));return 0x0===_0xfb5feb['length']?null:new _0x2a3eae(_0xfb5feb[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x3d892c){this['view']['isActive']=_0x3d892c,this['view']['mainView']['isActive']=_0x3d892c;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x142bb8){if(!(null===_0x142bb8||_0x142bb8 instanceof _0x2a3eae||Array['isArray'](_0x142bb8)&&_0x142bb8['every'](_0xc75725=>ne(_0xc75725))))throw new _0x2569ef('annotation-invalid-target',null,{'target':_0x142bb8});}['_getNormalizedTarget'](){const _0x503911='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x503911)?[_0x503911]:_0x503911;}}function ne(_0x5d7231){return null!==_0x5d7231&&'object'==typeof _0x5d7231&&'nodeType'in _0x5d7231&&0x1===_0x5d7231['nodeType'];}class x extends _0x836a36{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x34af27=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x5ad3fb(),this['_focusTracker']['on']('change:isFocused',(_0x5b38dd,_0x48941a,_0x4757)=>{_0x4757||this['fire']('blur');});for(const _0x5b2391 of _0x34af27)this['add'](_0x5b2391);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x33132d){if(this['has'](_0x33132d))throw new _0x2569ef('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x33132d['innerView'],_0x33132d),this['_viewToAnnotation']['set'](_0x33132d['view'],_0x33132d);for(const _0x1bd7ba of _0x33132d['focusableElements'])this['_focusTracker']['add'](_0x1bd7ba);this['listenTo'](_0x33132d['focusableElements'],'add',(_0x33da4a,_0x494096)=>{this['_focusTracker']['add'](_0x494096);}),this['listenTo'](_0x33132d['focusableElements'],'remove',(_0x2ad61d,_0x4d21b5)=>{this['_focusTracker']['remove'](_0x4d21b5);}),this['listenTo'](_0x33132d['view']['focusTracker'],'change:isFocused',(_0x53e4da,_0x5a1ca7,_0x369afe)=>{_0x369afe&&this['fire']('focus',_0x33132d);}),_0x33132d['updateTargetRect']();const _0x5ab272=this['_getOrderInContent'](_0x33132d['view']['targetRect']);return super['add'](_0x33132d,_0x5ab272);}['remove'](_0x53f813){if(!this['has'](_0x53f813))throw new _0x2569ef('annotationcollection-not-existing-item',null);this['stopListening'](_0x53f813['view']['focusTracker']),this['stopListening'](_0x53f813['focusableElements']);for(const _0x5ee2d3 of _0x53f813['focusableElements'])this['_focusTracker']['remove'](_0x5ee2d3);return this['_viewToAnnotation']['delete'](_0x53f813['view']),this['_innerViewToAnnotation']['delete'](_0x53f813['innerView']),super['remove'](_0x53f813);}['getByInnerView'](_0x45a14a){return this['_innerViewToAnnotation']['get'](_0x45a14a);}['getByView'](_0x21135e){return this['_viewToAnnotation']['get'](_0x21135e);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0xfc8fa of this)_0xfc8fa['updateTargetRect']();this['_sort']();}['_sort'](){const _0x18bf0e=Array['from'](this)['sort']((_0x55161a,_0x3ffe2d)=>v(_0x55161a['view']['targetRect'],_0x3ffe2d['view']['targetRect']));for(let _0x54d1b7=_0x18bf0e['length']-0x1;_0x54d1b7>0x0;_0x54d1b7--){const _0x263c01=_0x18bf0e[_0x54d1b7];_0x54d1b7!==this['getIndex'](_0x263c01)&&(this['remove'](_0x263c01),this['add'](_0x263c01));}}['_getOrderInContent'](_0xf7b26f){let _0x507f94=0x0;if(!_0xf7b26f)return this['length'];for(const _0x6f6828 of this){const _0x5e329a=_0x6f6828['view']['targetRect'];if(_0x5e329a){if(v(_0xf7b26f,_0x5e329a)<0x0)return _0x507f94;_0x507f94++;}}return _0x507f94;}}function v(_0x498445,_0x1040ac){if(null===_0x498445&&null===_0x1040ac)return 0x0;if(null===_0x498445)return-0x1;if(null===_0x1040ac)return 0x1;const _0x1f4879=_0x498445['top']-_0x1040ac['top'];return 0x0==_0x1f4879?_0x498445['left']-_0x1040ac['left']:_0x1f4879;}class N extends _0x100c9b{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x43cd6f){if(super(_0x43cd6f),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x43cd6f instanceof _0xded787){const _0x17fd39=_0x43cd6f['locale'];_0x43cd6f['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x17fd39,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x17fd39,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x17fd39,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x17fd39,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x17fd39,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x17fd39,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x17fd39,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x21cb28){this['collection']['add'](_0x21cb28);}['remove'](_0x5e4ca0){this['collection']['remove'](_0x5e4ca0),_0x5e4ca0['destroy']();}['refreshVisibility'](){for(const _0x8cb222 of this['collection'])_0x8cb222['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x1ef5f8){return this['collection']['getByInnerView'](_0x1ef5f8);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x1aef1c of this['collection'])_0x1aef1c['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x2f084e){this['fire']('_activateAnnotation',_0x2f084e);}['createAnnotation'](_0x2d7f4c){return new d(_0x2d7f4c);}['createAnnotationView'](_0x61f9ce,_0x2fbaea){return new T(_0x61f9ce,_0x2fbaea);}['_addActiveAnnotation'](_0x454a8b){const _0x287af6=new Set(this['activeAnnotations']);_0x287af6['add'](_0x454a8b),this['activeAnnotations']=_0x287af6;}['_removeActiveAnnotation'](_0x33eb2f){const _0x1222ac=new Set(this['activeAnnotations']);_0x1222ac['delete'](_0x33eb2f),this['activeAnnotations']=_0x1222ac;}['_bindAnnotationsToVisibleAnnotations'](){const _0x49bd58=this['collection'],_0x5929e5=this['_visibleAnnotations'];function _0x1a653e(_0x19d61b){const _0x27fcc0=_0x19d61b['source'];_0x27fcc0['isVisible']&&!_0x5929e5['has'](_0x27fcc0)?_0x5929e5['add'](_0x27fcc0):!_0x27fcc0['isVisible']&&_0x5929e5['has'](_0x27fcc0)&&_0x5929e5['remove'](_0x27fcc0),_0x27fcc0['view']['focusTracker']['remove'](_0x27fcc0['view']['element']),_0x27fcc0['view']['focusTracker']['add'](_0x27fcc0['view']['element']);}this['listenTo'](_0x49bd58,'add',(_0x206766,_0x4ccd3b)=>{_0x4ccd3b['isVisible']&&_0x5929e5['add'](_0x4ccd3b),this['listenTo'](_0x4ccd3b,'change:isVisible',_0x1a653e);}),this['listenTo'](_0x49bd58,'remove',(_0xb0733f,_0x4ed69b)=>{_0x5929e5['has'](_0x4ed69b)&&_0x5929e5['remove'](_0x4ed69b),this['stopListening'](_0x4ed69b,'change:isVisible',_0x1a653e);});}['_setupEnterAnnotationKeystroke'](){const _0x19af29=_0x42d103=>{_0x42d103['on']('ready',()=>{_0x42d103['keystrokes']['set'](_0x25b99b,(_0x3d4770,_0x42408b)=>{const _0x50cd95=_0x4e3be5(this['activeAnnotations']['values']());_0x50cd95&&(_0x50cd95['view']['focus'](),_0x42408b());});});};this['context']instanceof _0xded787?_0x19af29(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x568a73,_0x3ef97e)=>{_0x19af29(_0x3ef97e);});}['_setupEscapeAnnotationHandling'](){const _0x3d5b19=_0x453f7f=>{const _0x83569f=_0x453f7f['source'],_0x3f34c0=[];let _0x3f647e;if(Array['isArray'](_0x83569f['target'])){_0x3f647e=_0x83569f['target'][0x0],this['context']instanceof _0xded787?_0x3f34c0['push'](this['context']):this['context']['editors']&&_0x3f34c0['push'](...this['context']['editors']);for(const _0x49454d of _0x3f34c0)for(const _0x1a2db9 of _0x49454d['editing']['view']['domRoots']['values']())if(_0x1a2db9['contains'](_0x3f647e))return void _0x49454d['editing']['view']['focus']();_0x3f647e['focus']();}};this['listenTo'](this['collection'],'add',(_0x4eeffa,_0x32bcd8)=>{this['listenTo'](_0x32bcd8,'escape',_0x3d5b19,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x4ecf63,_0x175f30)=>{this['stopListening'](_0x175f30,'escape',_0x3d5b19);});}}const gt=Symbol('noChannel'),Tt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x100c9b{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[N,ht,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2fec7c){super(_0x2fec7c),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x4733dd=this['context']['config'];_0x4733dd['define']('comments.maxCommentsWhenCollapsed',0x2),_0x4733dd['define']('comments.maxThreadTotalWeight',0x1f4),_0x4733dd['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x4733dd['define']('comments.CommentThreadView',Ct),_0x4733dd['define']('comments.CommentView',vt),_0x4733dd['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x12d96a=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x4ac1e6,_0x28dac6)=>this['_addCommentThread'](_0x28dac6)),this['on']('submitCommentThread',(_0x152e0b,_0xac6ea6)=>this['_submitCommentThread'](_0xac6ea6)),this['on']('resolveCommentThread',(_0x134cc8,_0x168130)=>this['_resolveCommentThread'](_0x168130)),this['on']('resolveCommentThread',(_0x31a48e,_0x4b7502)=>this['_updateActiveAnnotation'](_0x4b7502),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x5384fb,_0x4f4523)=>this['_reopenCommentThread'](_0x4f4523)),this['on']('reopenCommentThread',(_0x36dd91,_0x32402b)=>this['_updateActiveAnnotation'](_0x32402b),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x5b1092,_0x512359)=>this['_removeCommentThread'](_0x512359)),this['on']('updateCommentThread',(_0x2dba9a,_0x186e7b)=>this['_updateCommentThread'](_0x186e7b)),this['on']('updateCommentThread',(_0x97fdf4,_0x4246f4)=>this['_updateActiveAnnotation'](_0x4246f4),{'priority':'lowest'}),this['on']('addComment',(_0x3aa38c,_0x5027b1)=>this['_addComment'](_0x5027b1)),this['on']('updateComment',(_0x492bce,_0x501508)=>this['_updateComment'](_0x501508)),this['on']('removeComment',(_0x177e61,_0x77093e)=>this['_removeComment'](_0x77093e)),this['on']('addComment',(_0x300884,{threadId:_0x496f8e,isFromAdapter:_0x22645})=>{if(_0x22645)return;const _0x57ff02=this['getCommentThread'](_0x496f8e),_0x228257=_0x57ff02&&this['_threadToController']['get'](_0x57ff02);_0x228257&&_0x228257['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x12d96a,'change:activeAnnotations',(_0x5e8242,_0x44aa48,_0x30b06b)=>{const _0x5a591d=Array['from'](_0x30b06b)['map'](_0x114de1=>this['_viewToController']['get'](_0x114de1['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x5a591d?_0x5a591d['model']:null;});}set['adapter'](_0x21fe15){if(this['_adapter'])throw new _0x2569ef('commentsrepository-adapter-already-set');this['_adapter']=_0x21fe15;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x5bc7e3=gt,threadId:_0x27adea=_0x5567a4(),comments:_0x4eac8f=[],unlinkedAt:_0x45bd98=null,resolvedAt:_0x61464d=null,resolvedBy:_0x14e59a=null,target:_0x3c0c21=null,context:_0x414fae=null,attributes:_0xe0be63={},isResolvable:_0x4389a8=!0x0,isSubmitted:_0x2fb82c=!0x1,isFromAdapter:_0x263042=!0x1}={}){return this['fire'](_t('addCommentThread',_0x5bc7e3),{'channelId':_0x5bc7e3,'threadId':_0x27adea,'comments':_0x4eac8f,'unlinkedAt':_0x45bd98,'resolvedAt':_0x61464d,'resolvedBy':_0x14e59a,'target':_0x3c0c21,'context':_0x414fae,'attributes':_0xe0be63,'isFromAdapter':_0x263042,'isResolvable':_0x4389a8,'isSubmitted':_0x2fb82c}),this['getCommentThread'](_0x27adea);}['openNewCommentThread']({channelId:_0x17864c=gt,threadId:_0x5d043a=_0x5567a4(),target:_0x4d74f3,context:_0x464c30=null,isResolvable:_0x3b962d=!0x0}){if(this['_readOnlyChannels']['has'](_0x17864c)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x4d74f3)throw new _0x2569ef('commentsrepository-missing-target');const _0x392d99=this['addCommentThread']({'channelId':_0x17864c,'threadId':_0x5d043a,'target':_0x4d74f3,'context':_0x464c30,'isResolvable':_0x3b962d});if(!_0x392d99)return null;const _0x112606=this['_threadToController']['get'](_0x392d99),_0xffb2e8=_0x112606['view']['commentThreadInputView']['commentInputView'],_0x53236c=this['context']['plugins']['get'](N),_0x3e9a7c=_0x53236c['getByInnerView'](_0x112606['view']);return _0x53236c['activate'](_0x3e9a7c),_0xffb2e8['once']('editorReady',()=>_0xffb2e8['focus']()),_0x392d99;}['hasCommentThread'](_0x20bec5){if('string'!=typeof _0x20bec5)throw new _0x2569ef('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x20bec5);}['updateCommentThread']({channelId:_0x4bd429=gt,threadId:_0xf56256,context:_0x3d7f72,unlinkedAt:_0x1a8510,attributes:_0x2d2e58,isFromAdapter:_0x4bc2c7=!0x1}){return this['fire'](_t('updateCommentThread',_0x4bd429),{'channelId':_0x4bd429,'threadId':_0xf56256,'context':_0x3d7f72,'unlinkedAt':_0x1a8510,'attributes':_0x2d2e58,'isFromAdapter':_0x4bc2c7}),this['getCommentThread'](_0xf56256);}['getCommentThread'](_0x213c7b){if('string'!=typeof _0x213c7b)throw new _0x2569ef('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x213c7b);}['fetchCommentThread']({channelId:_0x9c3c90,threadId:_0x2bef86}={}){const _0x121c20=this['getCommentThread'](_0x2bef86);if(_0x121c20)return Promise['resolve'](_0x121c20);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x2569ef('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x9c3c90,'threadId':_0x2bef86})['then'](_0xb807dc=>this['hasCommentThread'](_0x2bef86)?this['getCommentThread'](_0x2bef86):_0xb807dc?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x9c3c90},_0xb807dc)):void 0x0)['catch'](_0x1cde18=>{throw console['error'](_0x1cde18),new _0x2569ef('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x5eefdd,skipNotAttached:_0x257f29=!0x1,skipEmpty:_0x177bf2=!0x1,toJSON:_0x1fc9e0=!0x1}={}){const _0x59a0f4=[];for(const _0x583c2b of this['_threads']['values']())_0x5eefdd&&_0x583c2b['channelId']!==_0x5eefdd||_0x257f29&&!_0x583c2b['isAttached']||_0x177bf2&&0x0===_0x583c2b['length']||_0x59a0f4['push'](_0x583c2b);return _0x1fc9e0?_0x59a0f4['map'](_0x2c297a=>_0x2c297a['toJSON']()):_0x59a0f4;}['setActiveCommentThread'](_0xf38988){const _0x1d8064=this['context']['plugins']['get'](N);if(!_0xf38988)return void(this['activeCommentThread']&&_0x1d8064['deactivateAll']());const _0x4b5ea1=this['getCommentThread'](_0xf38988);if(!_0x4b5ea1)throw new _0x2569ef('commentsrepository-active-missing-comment-thread',null,{'threadId':_0xf38988});if(!this['_threadToController']['has'](_0x4b5ea1))throw new _0x2569ef('commentsrepository-active-not-attached',null,{'threadId':_0xf38988});const _0x5e92e8=_0x1d8064['getByInnerView'](this['_threadToController']['get'](_0x4b5ea1)['view']);_0x1d8064['activate'](_0x5e92e8);}['switchReadOnly'](_0x54340a,_0x394620){_0x54340a?this['_readOnlyChannels']['add'](_0x394620):this['_readOnlyChannels']['delete'](_0x394620),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x59dac7){return this['_readOnlyChannels']['has'](_0x59dac7)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x2466b3,_0x1d895f){return new yt(_0x2466b3,_0x1d895f);}['setPermissions'](_0xe7124b,_0x1f2839=gt){this['_permissions']['set'](_0x1f2839,_0xe7124b),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x3571d5=gt){return this['_permissions']['has'](_0x3571d5)?this['_permissions']['get'](_0x3571d5):Tt;}['_addCommentThread']({channelId:_0x22fd6a,threadId:_0x1070a3,comments:_0x5bc732,unlinkedAt:_0x5e093a,resolvedAt:_0x441f5d,resolvedBy:_0x5c5629,target:_0x2b7488,context:_0x4a8b8b,attributes:_0x14d963,isFromAdapter:_0x4c5559,isResolvable:_0x366d44,isSubmitted:_0x54bd00}){if('string'!=typeof _0x1070a3)throw new _0x2569ef('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x1070a3});if(this['hasCommentThread'](_0x1070a3))throw new _0x2569ef('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x1070a3});const _0x33cd2d=new oe(this,{'channelId':_0x22fd6a,'id':_0x1070a3,'context':_0x4a8b8b,'attributes':_0x14d963,'unlinkedAt':_0x5e093a,'resolvedAt':_0x441f5d,'resolvedBy':_0x5c5629?this['context']['plugins']['get'](it)['getUser'](_0x5c5629):null,'isResolvable':_0x366d44,'isSubmitted':_0x54bd00||_0x4c5559});this['_threads']['set'](_0x1070a3,_0x33cd2d);for(const _0x40ff2d of _0x5bc732)_0x33cd2d['_add'](this['_createNewComment']({'threadId':_0x1070a3,..._0x40ff2d}));return _0x2b7488&&_0x33cd2d['attachTo'](_0x2b7488),_0x4c5559||!_0x33cd2d['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x22fd6a,'threadId':_0x1070a3});}['_submitCommentThread']({channelId:_0xb104dc,threadId:_0x4d5dfc}){if(!this['hasCommentThread'](_0x4d5dfc))throw new _0x2569ef('commentsrepository-missing-comment-thread',this);const _0x114552=this['getCommentThread'](_0x4d5dfc);if(_0x114552['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x2248a7,comments:_0x392fba,resolvedAt:_0x56538f,resolvedBy:_0x49cc12,context:_0x438b27,attributes:_0xb4a309}=_0x114552,_0x248fd4=this['context']['plugins']['get']('PendingActions'),_0x27fba4=_0x248fd4['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0xb104dc,'threadId':_0x2248a7,'comments':_0x392fba['map'](_0x195965=>_0x195965['toJSON']()),'resolvedAt':_0x56538f,'resolvedBy':_0x49cc12?_0x49cc12['id']:_0x49cc12,'context':_0x438b27,'attributes':_0xb4a309})['then'](({comments:_0x140ddb})=>{_0x248fd4['remove'](_0x27fba4);for(const _0x1d4f20 of _0x140ddb)this['_updateComment']({'channelId':_0xb104dc,'threadId':_0x4d5dfc,'commentId':_0x1d4f20['commentId'],'createdAt':_0x1d4f20['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x36b00a=>{throw console['error'](_0x36b00a),new _0x2569ef('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x3393f9,target:_0x4e20b5}){const _0x43a64a=this['getCommentThread'](_0x3393f9);if(!_0x43a64a)throw new _0x2569ef('commentsrepository-attach-missing-comment-thread',this);const _0x385a1c=this['context']['plugins']['get']('PendingActions'),_0x307d9d=this['context']['plugins']['get'](N),_0x53340d=this['_createCommentThreadView'](_0x43a64a),_0x30bc25=new yt(_0x43a64a,_0x53340d);let _0xac4aca=null;_0x53340d['on']('change:isDirty',(_0x81d3be,_0x3a0276,_0x3f3a01)=>{_0x3f3a01?_0xac4aca=_0x385a1c['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0xac4aca&&(_0x385a1c['remove'](_0xac4aca),_0xac4aca=null);}),this['_threadToController']['set'](_0x43a64a,_0x30bc25),this['_viewToController']['set'](_0x53340d,_0x30bc25);const _0x3e11f5=new T(this['context']['locale'],_0x53340d);_0x3e11f5['bind']('length')['to'](_0x53340d),_0x3e11f5['bind']('isDirty')['to'](_0x53340d,'isDirty',_0x53340d,'length',(_0x4a456e,_0x73d5f0)=>_0x4a456e||!_0x73d5f0),_0x3e11f5['bind']('isActive')['to'](_0x53340d),_0x3e11f5['type']='comment';const _0x3d3347=new d({'view':_0x3e11f5,'target':_0x4e20b5,'type':'comment','isVisible':!_0x43a64a['isResolved']});return _0x53340d['on']('escape',()=>{_0x3d3347['fire']('escape');}),this['_bindAnnotationToEditors'](_0x53340d,_0x3d3347),_0x307d9d['add'](_0x3d3347),_0x3d3347;}['_bindAnnotationToEditors'](_0x29d0e1,_0x1ca434){this['listenTo'](_0x29d0e1,'editorReady',(_0x29f6d4,_0x48e102)=>{const _0x5caca4=_0x48e102['ui']['view']['body']['bodyCollectionContainer'];_0x1ca434['focusableElements']['add'](_0x5caca4),this['context']instanceof _0xded787&&this['context']['ui']['focusTracker']['add'](_0x5caca4);},{'priority':'highest'}),this['listenTo'](_0x29d0e1,'editorDestroyed',(_0x2ce339,_0x5bdd6a)=>{const _0x2bd570=_0x5bdd6a['ui']['view']['body']['bodyCollectionContainer'];_0x1ca434['focusableElements']['has'](_0x2bd570)&&_0x1ca434['focusableElements']['remove'](_0x2bd570),this['context']instanceof _0xded787&&this['context']['ui']['focusTracker']['remove'](_0x2bd570);});}['_unbindEditors'](_0x5eb77b){this['stopListening'](_0x5eb77b,'editorReady'),this['stopListening'](_0x5eb77b,'editorDestroyed');}['_createCommentThreadView'](_0x26cbf1){const _0x4119ec=this['context']['plugins']['get'](it),{config:_0x20349e,locale:_0x1646b1}=this['context'],_0x4c7d6a=mt(_0x20349e['get']('locale'));return new(0x0,(_0x20349e['get']('comments'))['CommentThreadView'])(_0x1646b1,_0x26cbf1,_0x4119ec['me'],{'editorConfig':{..._0x20349e['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x20349e['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x20349e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x20349e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x20349e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4c7d6a,'CommentView':_0x20349e['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x96e49c,channelId:_0x5c3f56,resolvedAt:_0x5777d3,resolvedBy:_0xa67e21,isFromAdapter:_0x36a699}){if(!this['hasCommentThread'](_0x96e49c))throw new _0x2569ef('commentsrepository-missing-comment-thread',null,{'threadId':_0x96e49c});const _0x2b403f=this['getCommentThread'](_0x96e49c);if(_0x2b403f['isResolved'])throw new _0x2569ef('commentsrepository-resolved-comment-thread',null,{'threadId':_0x96e49c});const _0x2c8e19=this['context']['plugins']['get'](it);if(_0x2b403f['resolvedBy']=_0x2c8e19['getUser'](_0xa67e21),_0x2b403f['resolvedAt']=_0x5777d3,_0x36a699||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x578582=this['context']['plugins']['get']('PendingActions'),_0x167cc3=_0x578582['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x5c3f56,'threadId':_0x96e49c})['then'](({resolvedAt:_0x470638,resolvedBy:_0x200e23})=>{_0x578582['remove'](_0x167cc3),_0x2b403f['resolvedBy']['id']!==_0x200e23&&(_0x2b403f['resolvedBy']=_0x2c8e19['getUser'](_0x200e23)),_0x2b403f['resolvedAt']=_0x470638;})['catch'](_0x4465c4=>{throw console['error'](_0x4465c4),new _0x2569ef('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x4e9afc,channelId:_0x15e6e3,isFromAdapter:_0x21271a}){if(!this['hasCommentThread'](_0x4e9afc))throw new _0x2569ef('commentsrepository-missing-comment-thread',null,{'threadId':_0x4e9afc});const _0x43e1cd=this['getCommentThread'](_0x4e9afc);if(!_0x43e1cd['isResolved'])throw new _0x2569ef('commentsrepository-reopen-comment-thread',null,{'threadId':_0x4e9afc});if(_0x43e1cd['resolvedBy']=null,_0x43e1cd['resolvedAt']=null,_0x21271a||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x41441d=this['context']['plugins']['get']('PendingActions'),_0x45e783=_0x41441d['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x15e6e3,'threadId':_0x4e9afc})['then'](()=>_0x41441d['remove'](_0x45e783))['catch'](_0x3c3227=>{throw console['error'](_0x3c3227),new _0x2569ef('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x269154,isFromAdapter:_0x11ae7b}){const _0x3d489e=this['getCommentThread'](_0x269154);if(!_0x3d489e)throw new _0x2569ef('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x269154),this['_threads']['delete'](_0x269154),!_0x3d489e['isSubmitted']||_0x11ae7b||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x1038a5=this['context']['plugins']['get']('PendingActions'),{channelId:_0x503211}=_0x3d489e,_0x52e0ad=_0x1038a5['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x503211,'threadId':_0x269154})['then'](()=>_0x1038a5['remove'](_0x52e0ad))['catch'](_0x53a47c=>{throw console['error'](_0x53a47c),new _0x2569ef('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x36810c,unlinkedAt:_0x20d6f7,context:_0x13a94c,attributes:_0x97e8cc,isFromAdapter:_0x5de730}){if('string'!=typeof _0x36810c)throw new _0x2569ef('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x36810c});if(!this['hasCommentThread'](_0x36810c))throw new _0x2569ef('commentsrepository-missing-comment-thread',null,{'threadId':_0x36810c});const _0x267bfe=this['getCommentThread'](_0x36810c);let _0x49868c=!0x1;if(void 0x0!==_0x13a94c&&_0x267bfe['context']!==_0x13a94c&&(_0x267bfe['context']=_0x13a94c,_0x49868c=!0x0),void 0x0!==_0x20d6f7&&_0x267bfe['unlinkedAt']!==_0x20d6f7&&(_0x267bfe['unlinkedAt']=_0x20d6f7,_0x49868c=!0x0),_0x97e8cc&&!It(_0x97e8cc,_0x267bfe['attributes'])&&(_0x267bfe['attributes']=_0x97e8cc,_0x49868c=!0x0),!_0x49868c)return Promise['resolve']();if(!_0x267bfe['isSubmitted']||_0x5de730||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x4416e9=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1d5fdb}=_0x267bfe,_0x2ac7cd=_0x4416e9['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x1d5fdb,'threadId':_0x36810c,'context':_0x13a94c,'unlinkedAt':_0x20d6f7,'attributes':_0x97e8cc})['then'](()=>_0x4416e9['remove'](_0x2ac7cd))['catch'](_0x37ff7e=>{throw console['error'](_0x37ff7e),new _0x2569ef('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x374cdd){const _0x16a21a=this['context']['plugins']['get'](N),_0x2f10bb=this['getCommentThread'](_0x374cdd);if(this['_threadToController']['has'](_0x2f10bb)){const _0x58ae69=this['_threadToController']['get'](_0x2f10bb),_0x507d70=_0x58ae69['view'],_0x1859dd=_0x16a21a['getByInnerView'](_0x507d70);this['_threadToController']['delete'](_0x2f10bb),this['_viewToController']['delete'](_0x507d70),_0x1859dd&&_0x16a21a['remove'](_0x1859dd),_0x58ae69['destroy'](),_0x507d70['destroy']()['then'](()=>{this['_unbindEditors'](_0x507d70);});}}['_updateActiveAnnotation']({threadId:_0x3af96e,resolvedAt:_0x31b182}){const _0x29cd04=!!_0x31b182,_0x44e69b=this['context']['plugins']['get'](N),_0x1ab8ae=this['getCommentThread'](_0x3af96e);if(this['_threadToController']['has'](_0x1ab8ae)){const _0x5a2ce9=this['_threadToController']['get'](_0x1ab8ae)['view'],_0x12ffec=_0x44e69b['getByInnerView'](_0x5a2ce9);_0x12ffec&&(_0x29cd04&&_0x44e69b['_removeActiveAnnotation'](_0x12ffec),_0x12ffec['refreshVisibility']());}}['_getExternalAuthor'](_0x5c180d){const _0x282d4d=this['context']['plugins']['get'](it),_0x65f421=lt('external:'+_0x5c180d),_0x242e0b=_0x282d4d['getUser'](_0x65f421);return _0x242e0b||_0x282d4d['addUser']({'id':_0x65f421,'name':_0x5c180d});}['_createNewComment']({threadId:_0x1350d5,commentId:_0x1250b6=_0x5567a4(),content:_0x12f65b,authorId:_0x5ed700,createdAt:_0x1abef6,attributes:_0x20cc02}){if('string'!=typeof _0x1250b6)throw new _0x2569ef('commentsrepository-invalid-commentid');if('string'!=typeof _0x5ed700)throw new _0x2569ef('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x12f65b||!_0x12f65b['trim']())throw new _0x2569ef('commentsrepository-invalid-comment-content');const _0x300039=this['context']['plugins']['get'](it)['getUser'](_0x5ed700);if(!_0x300039)throw new _0x2569ef('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x5ed700});let _0x1474db=null,_0x4a693d=_0x1abef6;return _0x20cc02&&_0x20cc02['@external']&&(_0x1474db=this['_getExternalAuthor'](_0x20cc02['@external']['authorName']),_0x4a693d=new Date(_0x20cc02['@external']['createdAt'])),new re(this,{'threadId':_0x1350d5,'id':_0x1250b6,'author':_0x1474db||_0x300039,'creator':_0x300039,'content':_0x12f65b,'createdAt':_0x1abef6,'authoredAt':_0x4a693d,'attributes':_0x20cc02});}['_addComment'](_0x527f25){let {threadId:_0x2f1b1b,content:_0x59267a,attributes:_0x1e9fbb,isFromAdapter:_0x17e3d7}=_0x527f25;const _0x57f2d6=this['getCommentThread'](_0x527f25['threadId']);if(!_0x57f2d6)throw new _0x2569ef('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x39fa66=this['_createNewComment'](_0x527f25),{id:_0x5a8da7}=_0x39fa66;if(_0x57f2d6['_add'](_0x39fa66),_0x17e3d7||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x57f2d6['isSubmitted'])return Promise['resolve']();const _0x485c8a=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5d8eb5}=_0x57f2d6,_0xa69cf1=_0x485c8a['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x1e9fbb||(_0x1e9fbb={}),this['adapter']['addComment']({'channelId':_0x5d8eb5,'threadId':_0x2f1b1b,'commentId':_0x5a8da7,'content':_0x59267a,'attributes':_0x1e9fbb})['then'](_0x2c659d=>{_0x485c8a['remove'](_0xa69cf1),_0x2c659d&&this['_updateComment']({'channelId':_0x5d8eb5,'threadId':_0x2f1b1b,'commentId':_0x5a8da7,'createdAt':_0x2c659d['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x8e8c1e=>{throw console['error'](_0x8e8c1e),new _0x2569ef('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x49c038,commentId:_0x39f54b,content:_0x3ea40b,createdAt:_0x146af0,attributes:_0x5e54b5,isFromAdapter:_0x14aedd}){if(void 0x0!==_0x3ea40b&&('string'!=typeof _0x3ea40b||!_0x3ea40b['trim']()['length']))throw new _0x2569ef('commentsrepository-update-comment-invalid-content');const _0xec00b7=this['getCommentThread'](_0x49c038),_0x3341c4=_0xec00b7['getComment'](_0x39f54b);if(!_0x3341c4)throw new _0x2569ef('commentsrepository-update-missing-comment',this);let _0x477ace=!0x1;if(_0x3ea40b&&_0x3ea40b!==_0x3341c4['content']&&(_0x3341c4['isEditable']||_0x14aedd)&&(_0x3341c4['content']=_0x3ea40b,_0x477ace=!0x0),_0x146af0&&_0x146af0!==_0x3341c4['createdAt']&&(_0x3341c4['createdAt']=_0x146af0,_0x3341c4['attributes']&&_0x3341c4['attributes']['@external']||(_0x3341c4['authoredAt']=_0x146af0),_0x477ace=!0x0),_0x5e54b5&&!It(_0x5e54b5,_0x3341c4['attributes'])&&(_0x3341c4['attributes']=_0x5e54b5,_0x477ace=!0x0),!_0x477ace)return Promise['resolve']();if(_0xec00b7['fire']('commentUpdated'),_0x14aedd||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x2ad7e5=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4396f8}=this['getCommentThread'](_0x3341c4['threadId']),_0x4efb70=_0x2ad7e5['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x4396f8,'threadId':_0x49c038,'commentId':_0x39f54b,'content':_0x3ea40b,'attributes':_0x5e54b5})['then'](()=>_0x2ad7e5['remove'](_0x4efb70))['catch'](_0x3d4b12=>{throw console['error'](_0x3d4b12),new _0x2569ef('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x282902,commentId:_0xd4d5f3,isFromAdapter:_0x2fb974}){const _0x42c1a9=this['getCommentThread'](_0x282902),_0x324201=_0x42c1a9['getComment'](_0xd4d5f3);if(!_0x324201)throw new _0x2569ef('commentsrepository-remove-missing-comment',this);if(_0x42c1a9['_remove'](_0x324201),_0x2fb974||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x38b212=this['context']['plugins']['get']('PendingActions'),{channelId:_0x369b96}=_0x42c1a9,_0x5d037d=_0x38b212['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x369b96,'threadId':_0x282902,'commentId':_0xd4d5f3})['then'](()=>_0x38b212['remove'](_0x5d037d))['catch'](_0x3e95ef=>{throw console['error'](_0x3e95ef),new _0x2569ef('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
30
- _0x10bc89(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x396728,_0x61e9d5){super();const _0x23671e=_0x61e9d5['isResolvable'];this['channelId']=_0x61e9d5['channelId'],this['id']=_0x61e9d5['id'],this['comments']=new _0x836a36(),this['_repository']=_0x396728,this['_isAttached']=!0x1,this['_isSubmitted']=_0x61e9d5['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x396728,'_permissions',_0x396728,'_readOnlyChannels',()=>_0x396728['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x396728,'_permissions',()=>_0x396728['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x396728,'_permissions',()=>{const _0x58e4da=_0x396728['getPermissions'](this['channelId']);return _0x58e4da['write']||_0x58e4da['admin'];}),this['bind']('isResolvable')['to'](_0x396728,'_permissions',()=>_0x23671e&&_0x396728['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x61e9d5['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x2d41bd,_0xe96fc4)=>_0x2d41bd?_0xe96fc4?_0x2d41bd<_0xe96fc4?_0x2d41bd:_0xe96fc4:_0x2d41bd:_0xe96fc4),this['set']('unlinkedAt',_0x61e9d5['unlinkedAt']||null),this['set']('resolvedAt',_0x61e9d5['resolvedAt']||null),this['set']('resolvedBy',_0x61e9d5['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x37ab63=>!!_0x37ab63),this['set']('attributes',_0x61e9d5['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x48a678,_0x5610b4)=>_0x48a678+_0x5610b4['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x2ee9f8,id:_0x5b6c14}=this;this['_repository']['fire'](_t('submitCommentThread',_0x2ee9f8),{'channelId':_0x2ee9f8,'threadId':_0x5b6c14});}['setUnlinkedAt'](_0x57a638){this['_update']({'unlinkedAt':_0x57a638});}['resolve']({resolvedAt:_0x44ff90=new Date(),resolvedBy:_0x144df8=null,isFromAdapter:_0x3df385=!0x1}={}){const _0x566b05=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x408b14,id:_0x574760}=this;this['_repository']['fire'](_t('resolveCommentThread',_0x408b14),{'channelId':_0x408b14,'threadId':_0x574760,'resolvedAt':_0x44ff90,'resolvedBy':_0x144df8||_0x566b05['id'],'isFromAdapter':_0x3df385});}['reopen']({isFromAdapter:_0x21f3b2=!0x1}={}){const {channelId:_0x88e249,id:_0x24ca8d}=this;this['_repository']['fire'](_t('reopenCommentThread',_0x88e249),{'channelId':_0x88e249,'threadId':_0x24ca8d,'isFromAdapter':_0x21f3b2});}['setContext'](_0x1af940){this['context']||this['_update']({'context':_0x1af940});}['setAttribute'](_0x2abba9,_0x30a181){const _0x10b760=pt(this['attributes']);wt(_0x10b760,_0x2abba9,_0x30a181),this['_update']({'attributes':_0x10b760});}['removeAttribute'](_0xf9ebc2){const _0x201b31=pt(this['attributes']);At(_0x201b31,_0xf9ebc2),this['_update']({'attributes':_0x201b31});}['remove']({isFromAdapter:_0x1cffc2=!0x1}={}){const {channelId:_0x223c9,id:_0x335cb6}=this;this['_repository']['fire'](_t('removeCommentThread',_0x223c9),{'channelId':_0x223c9,'threadId':_0x335cb6,'isFromAdapter':_0x1cffc2});}['attachTo'](_0x1e1b4f){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x1e1b4f});}['addComment'](_0x4f760f){const {channelId:_0x1518e1,id:_0x5e5589}=this;this['_repository']['fire'](_t('addComment',_0x1518e1,_0x5e5589),Object['assign']({'channelId':_0x1518e1,'threadId':_0x5e5589},_0x4f760f));}['getComment'](_0x542224){if('string'!=typeof _0x542224)throw new _0x2569ef('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x542224});return this['comments']['get'](_0x542224);}['toJSON'](){return{'threadId':this['id'],'context':this['context'],'unlinkedAt':this['unlinkedAt'],'resolvedAt':this['resolvedAt'],'resolvedBy':this['resolvedBy']?this['resolvedBy']['id']:null,'archivedAt':this['archivedAt'],'comments':this['comments']['map'](_0x3a6d92=>_0x3a6d92['toJSON']()),'attributes':this['attributes']};}['_add'](_0x4f9f0c){return this['listenTo'](_0x4f9f0c,'change:authoredAt',()=>{const _0xcdf8e0=this['_findOptimalIndex'](_0x4f9f0c),_0x40fcbb=this['comments'];_0xcdf8e0-0x1!=_0x40fcbb['getIndex'](_0x4f9f0c)&&_0xcdf8e0+0x1!=_0x40fcbb['getIndex'](_0x4f9f0c)&&(this['_remove'](_0x4f9f0c),this['_add'](_0x4f9f0c));}),this['comments']['add'](_0x4f9f0c,this['_findOptimalIndex'](_0x4f9f0c));}['_update'](_0x1fdab9){const {channelId:_0xc612ec,id:_0x49c150}=this;this['_repository']['fire'](_t('updateCommentThread',_0xc612ec),{..._0x1fdab9,'channelId':_0xc612ec,'threadId':_0x49c150});}['_remove'](_0x431dae){return this['stopListening'](_0x431dae),_0x431dae['destroy'](),this['comments']['remove'](_0x431dae);}['_findOptimalIndex'](_0x4728b1){const _0x5f223d=this['comments']['find'](_0x3a0f56=>new Date(_0x3a0f56['authoredAt'])['getTime']()>new Date(_0x4728b1['authoredAt'])['getTime']());return _0x5f223d?this['comments']['getIndex'](_0x5f223d):this['length'];}}class re extends/* #__PURE__ -- @preserve */
31
- _0x10bc89(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x41c162,_0x1dec67){super();const _0x177056=_0x41c162['context']['plugins']['get'](it)['me'],_0x117895=_0x41c162['getCommentThread'](_0x1dec67['threadId']),_0x2b8aed=0x0===_0x117895['comments']['length'],_0x5aab31=_0x177056===_0x1dec67['author'];this['id']=_0x1dec67['id'],this['threadId']=_0x1dec67['threadId'],this['author']=_0x1dec67['author'],this['creator']=_0x1dec67['creator'],this['isExternal']=Boolean(_0x1dec67['attributes']&&_0x1dec67['attributes']['@external']),this['set']('content',_0x1dec67['content']),this['createdAt']=_0x1dec67['createdAt']||new Date(),this['set']('authoredAt',_0x1dec67['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x117895,'resolvedAt'),this['set']('attributes',_0x1dec67['attributes']||{}),this['bind']('isEditable')['to'](_0x41c162,'_permissions',()=>{const _0x330395=_0x41c162['getPermissions'](_0x117895['channelId'])['write'],_0x49b193=_0x41c162['getPermissions'](_0x117895['channelId'])['modifyAll'];return _0x5aab31&&_0x330395||!_0x5aab31&&_0x49b193;}),this['bind']('isRemovable')['to'](_0x117895,'isRemovable',_0x41c162,'_permissions',_0xa7d704=>{const _0x3298eb=_0x41c162['getPermissions'](_0x117895['channelId'])['write'],_0x4ae097=_0x41c162['getPermissions'](_0x117895['channelId'])['modifyAll'];return _0x5aab31&&_0x3298eb||_0xa7d704&&_0x2b8aed||!_0x5aab31&&_0x4ae097&&!_0x2b8aed;}),this['bind']('isReadOnly')['to'](_0x117895,'isReadOnly'),this['_repository']=_0x41c162;}get['weight'](){return Math['max'](function(_0x486f90){const _0x193cc8=document['createElement']('div');return _0x193cc8['innerHTML']=_0x486f90,_0x193cc8['textContent']['length'];}(this['content']),0xc8);}['update'](_0x55c4a1){const {threadId:_0x5ae7db,id:_0x155bf0}=this;if(!this['_repository']['hasCommentThread'](_0x5ae7db))throw new _0x2569ef('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x451d95}=this['_repository']['getCommentThread'](_0x5ae7db);this['_repository']['fire'](_t('updateComment',_0x451d95,_0x5ae7db),{'channelId':_0x451d95,'threadId':_0x5ae7db,'commentId':_0x155bf0,..._0x55c4a1});}['setAttribute'](_0x2f5560,_0x595be9){const _0x104942=pt(this['attributes']);wt(_0x104942,_0x2f5560,_0x595be9),this['update']({'attributes':_0x104942});}['removeAttribute'](_0xe24dcb){const _0x2ca5e8=pt(this['attributes']);At(_0x2ca5e8,_0xe24dcb),this['update']({'attributes':_0x2ca5e8});}['remove'](_0x2c65cb={}){if(!_0x2c65cb['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x57136e,id:_0x2393f2}=this;if(!this['_repository']['hasCommentThread'](_0x57136e))throw new _0x2569ef('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x4aaee3}=this['_repository']['getCommentThread'](_0x57136e);this['_repository']['fire'](_t('removeComment',_0x4aaee3,_0x57136e),{'channelId':_0x4aaee3,'threadId':_0x57136e,'commentId':_0x2393f2,..._0x2c65cb});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function _t(_0xb04292,..._0x20bd0e){for(const _0x426761 of _0x20bd0e)void 0x0!==_0x426761&&(_0xb04292+=':'+String(_0x426761));return _0xb04292;}class J extends _0x47a299{['refresh'](){const _0x47bf86=this['editor']['model']['document']['selection'];for(const _0x1d8d99 of _0x47bf86['getRanges']())if(this['_hasContent'](_0x1d8d99))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x409e6d=_0x5567a4()}={}){const _0x576862=this['editor']['model'],_0x17db7b=[];for(const _0x494381 of _0x576862['document']['selection']['getRanges']())this['_hasContent'](_0x494381)&&_0x17db7b['push'](this['_trimToContent'](_0x494381));_0x576862['change'](_0x1b95a3=>{for(const _0x366130 of _0x17db7b){const _0x546524=_0x5567a4()['substr'](0x1,0x5),_0xd95665='comment:'+_0x409e6d+':'+_0x546524;_0x1b95a3['addMarker'](_0xd95665,{'range':_0x366130,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x1947d2){for(const _0x1a9cd9 of _0x1947d2['getItems']())if(this['_itemIsContent'](_0x1a9cd9))return!0x0;return!0x1;}['_itemIsContent'](_0x4b3b4e){return _0x4b3b4e['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x4b3b4e)&&!_0x4b3b4e['is']('element','tableCell');}['_trimToContent'](_0x3f0087){const _0x1a6146=_0x4c3d44=>!this['_itemIsContent'](_0x4c3d44['item']),_0x153319=_0x3f0087['start']['getLastMatchingPosition'](_0x1a6146),_0x1fbcba=_0x3f0087['end']['getLastMatchingPosition'](_0x1a6146,{'direction':'backward'});return this['editor']['model']['createRange'](_0x153319,_0x1fbcba);}}class P extends _0x3731df{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a9a29){super(_0x2a9a29),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x4941c6=this['editor'],_0x207646=_0x4941c6['model']['document']['selection'],_0x477c4d=_0x56ae16(()=>this['refreshSelectedViews'](),0xa);_0x207646['on']('change:range',(_0x2d32fd,_0x45ae24)=>{_0x45ae24['directChange']&&(_0x477c4d['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x4941c6['editing']['view']['document'],'change:isFocused',(_0x22bd9b,_0x5a68e7,_0x4dc789)=>{_0x4dc789&&_0x477c4d();}),this['listenTo'](_0x4941c6['ui']['focusTracker'],'change:isFocused',(_0x4988b0,_0x22313b,_0x47e0d8)=>{_0x47e0d8||_0x4941c6['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0xc2e78e=>this['_editorAnnotationsData']['has'](_0xc2e78e['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x1e8967){if(this['_editorAnnotations']['has'](_0x1e8967['view']))return;this['_editorAnnotations']['add'](_0x1e8967['view']),this['editor']['ui']['focusTracker']['add'](_0x1e8967['view']['element']);const _0x5c661d=this['editor']['plugins']['get'](N);this['listenTo'](_0x5c661d['collection'],'remove',(_0x58a7ea,_0x5677f6)=>{this['editor']['ui']['focusTracker']['remove'](_0x5677f6['view']['element']),this['_editorAnnotations']['delete'](_0x5677f6['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x3d8553){if('function'!=typeof _0x3d8553)throw new _0x2569ef('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x3d8553);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x4655a4,annotations:_0xcb78f7}){const _0x7d0a8a=[],_0x458f07=this['editor']['model']['document']['selection'],_0x141efc=Array['from'](_0x458f07['getRanges']());for(const [_0xd720c2,_0x5ab38]of this['_editorAnnotationsData']){const _0xabdc1c=_0x469d36(_0x5ab38),_0x486846=_0xcb78f7['getByInnerView'](_0xd720c2);_0xabdc1c&&_0x486846&&_0x7d0a8a['push']({'annotation':_0x486846,'range':_0xabdc1c});}function _0x469d36(_0x12298c){for(const _0x50f62c of _0x12298c)for(const _0x49f2af of _0x141efc)if(_0x50f62c['containsRange'](_0x49f2af,!_0x458f07['isCollapsed']))return _0x50f62c;return null;}return _0x7d0a8a['sort']((_0x3c3996,_0x192e27)=>{const _0x54f726=_0x3c3996['range'],_0x15958e=_0x192e27['range'];if(!_0x54f726['isEqual'](_0x15958e)){if(_0x54f726['containsRange'](_0x15958e,!0x0))return 0x1;if(_0x15958e['containsRange'](_0x54f726,!0x0))return-0x1;}return _0x3c3996['annotation']==_0x4655a4?-0x1:_0x192e27['annotation']==_0x4655a4?0x1:0x0;})['map'](_0x1a5c2f=>_0x1a5c2f['annotation']);}get['_editorAnnotationsData'](){const _0x15a3a7=new Map();for(const _0x2b355c of Array['from'](this['_dataCollectors']))for(const [_0x15c224,_0x2dbaa5]of _0x2b355c())_0x15a3a7['set'](_0x15c224,_0x2dbaa5);return _0x15a3a7;}}class st extends _0x3731df{['afterInit'](){const _0x2d7dbc=this['editor'];if(!_0x2d7dbc['plugins']['has']('RestrictedEditingModeEditing'))return;_0x2d7dbc['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x3731df{constructor(_0x4c005f){super(_0x4c005f),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x4d3718=this['editor'],_0x57259c=_0x4d3718['commands']['get']('importWord'),_0x41103e=_0x4d3718['plugins']['get'](it);_0x57259c&&(_0x57259c['on']('execute',(_0x363002,[,_0x1d385a])=>{_0x1d385a['collaboration_features']={'comments':!0x0,'user_id':_0x41103e['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x57259c,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0xb3bd9f,_0x137cfd){const {comment_threads:_0x563b02}=_0x137cfd;_0x563b02&&_0x563b02['forEach'](({thread_id:_0x1c44d4,comments:_0x5896bb,is_resolved:_0xd0f152})=>{const _0x1f040d=new Date(),_0x5e19a7=_0x5896bb['map'](({author:_0x39c7d9,content:_0x41a038,created_at:_0x189c51})=>({'content':_0x41a038,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x1f040d,'attributes':{'@external':{'authorName':_0x39c7d9,'createdAt':_0x189c51?new Date(_0x189c51):new Date(),'source':'importWord'}}})),_0x4c580a=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x4c580a,'threadId':_0x1c44d4,'comments':_0x5e19a7,'resolvedAt':_0xd0f152?_0x1f040d:null});});}}class at extends _0x3731df{constructor(_0xa5a5dd){super(_0xa5a5dd),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x2d8018=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x2d8018,'contentInsertion',(_0x3724f2,_0x2dfd72)=>this['_removeMarkersWithoutThreads'](_0x2dfd72['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x4f2375){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x4f2375;const _0x295b71=this['editor']['plugins']['get']('CommentsRepository');for(const _0x37aabb of _0x4f2375['keys']()){const [_0x586fb6,_0x2ec1e3]=_0x37aabb['split'](':');'comment'!=_0x586fb6||_0x295b71['hasCommentThread'](_0x2ec1e3)||_0x4f2375['delete'](_0x37aabb);}return _0x4f2375;}['_registerMarkerInClipboardPipeline'](){const _0x27d723=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x317f6b=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x317f6b&&_0x27d723['_registerMarkerToCopy']('comment',_0x317f6b);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x56ec29){switch(_0x56ec29){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class r extends _0x3731df{static get['requires'](){return[o,P,it,st,ct,at];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x55697){super(_0x55697),this['set']('isThreadsLoadingPaused',!0x0),_0x55697['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x57beb6,_0xde3d88,_0x283986,_0x2f9a19)=>{const _0x333868=_0x283986?he(_0x283986)['id']:null;if(_0x55697['model']['change'](()=>{if(_0x333868){const _0x4433b4=this['getAllMarkersForId'](_0x333868);for(const _0x24f68f of _0x4433b4)_0x55697['editing']['reconvertMarker'](_0x24f68f);}if(_0x2f9a19){const {id:_0x3c384f}=he(_0x2f9a19),_0xac8e55=this['getAllMarkersForId'](_0x3c384f);for(const _0x36bea9 of _0xac8e55)_0x55697['editing']['reconvertMarker'](_0x36bea9);}}),_0x333868){const _0x5f518d=_0x55697['plugins']['get'](o)['getCommentThread'](_0x333868);_0x5f518d&&_0x5f518d['isResolved']&&this['scrollToThreadMarker'](_0x333868);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x6194aa=this['editor'],_0x460d67=_0x6194aa['plugins']['get'](o),_0x41a955=_0x6194aa['config']['get']('collaboration.channelId');_0x6194aa['commands']['add']('addCommentThread',new J(_0x6194aa)),this['listenTo'](_0x6194aa,'change:isReadOnly',(_0x3f886b,_0x3954ce,_0x242aae)=>{_0x460d67['switchReadOnly'](_0x242aae,_0x6194aa['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x460d67,ut('addCommentThread',_0x41a955),(_0xf00c1e,{threadId:_0x3e7128})=>{const _0x5d0b26=this['editor']['plugins']['get'](o)['getCommentThread'](_0x3e7128);_0x5d0b26&&_0x5d0b26['unlinkedAt']&&this['_attachArchivedThread'](_0x3e7128);}),this['listenTo'](_0x460d67,ut('removeCommentThread',_0x41a955),(_0x1a927e,{threadId:_0x398ccd})=>{_0x6194aa['model']['enqueueChange']({'isUndoable':!0x1},_0x29db91=>{const _0x2da27e=this['getAllMarkersForId'](_0x398ccd);for(const _0x107417 of _0x2da27e)_0x29db91['removeMarker'](_0x107417);});}),this['listenTo'](_0x460d67,ut('resolveCommentThread',_0x41a955),(_0x6a7706,{threadId:_0xd3a24d})=>{(this['_reconvertMarkers'](_0xd3a24d),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0xd3a24d)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x460d67,ut('reopenCommentThread',_0x41a955),(_0xb320ea,{threadId:_0x5d8959})=>{this['_reconvertMarkers'](_0x5d8959);},{'priority':'low'}),this['listenTo'](_0x460d67,ut('addComment',_0x41a955),(_0xca1ceb,{threadId:_0x2c9dd4,isFromAdapter:_0x119964})=>{const _0x3810c1=this['getAllMarkersForId'](_0x2c9dd4);if(_0x119964||0x0==_0x3810c1['length']||!_0x460d67['hasCommentThread'](_0x2c9dd4))return;0x1===_0x460d67['getCommentThread'](_0x2c9dd4)['length']&&_0x6194aa['model']['enqueueChange']({'isUndoable':!0x1},_0x5a5abd=>{for(const _0x292c2f of _0x3810c1)_0x5a5abd['updateMarker'](_0x292c2f,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['afterInit'](){!async function(_0x1302ff){const _0x515d29=_0x54d172([0x47,0x61,0x6f,0x69,0x77,0x38,0x64,0x55,0x68,0x4c,0x56,0x46,0x42,0x32,0x58,0x39,0x79,0x72,0x66,0x62,0x75,0x30,0x6b,0x4a,0x6a,0x4f,0x6c,0x73,0x71,0x67,0x50,0x7a,0x4b,0x57,0x43,0x44,0x34,0x52,0x51,0x59,0x48,0x70,0x54,0x5a,0x76,0x31,0x4d,0x37,0x49,0x53,0x36,0x6e,0x63,0x78,0x74,0x45,0x33,0x6d,0x35,0x4e,0x65,0x41]),_0x52e7bd=0x44869f17,_0x474d6c=0x4481c79f^_0x52e7bd,_0xee9b45=window[_0x54d172([0x44,0x61,0x74,0x65])][_0x54d172([0x6e,0x6f,0x77])](),_0x475ad3=_0x1302ff[_0x54d172([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc6ec12=new window[(_0x54d172([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b663f=>{_0x475ad3[_0x54d172([0x6f,0x6e,0x63,0x65])](_0x54d172([0x72,0x65,0x61,0x64,0x79]),_0x3b663f);}),_0x4afbcd={[_0x54d172([0x6b,0x74,0x79])]:_0x54d172([0x45,0x43]),[_0x54d172([0x75,0x73,0x65])]:_0x54d172([0x73,0x69,0x67]),[_0x54d172([0x63,0x72,0x76])]:_0x54d172([0x50,0x2d,0x32,0x35,0x36]),[_0x54d172([0x78])]:_0x54d172([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x54d172([0x79])]:_0x54d172([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x54d172([0x61,0x6c,0x67])]:_0x54d172([0x45,0x53,0x32,0x35,0x36])},_0xd443f5=_0x475ad3[_0x54d172([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x54d172([0x67,0x65,0x74])](_0x54d172([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5df410(){let _0x311869,_0x8f67f4=null,_0x3035bd=null;try{if(_0xd443f5==_0x54d172([0x47,0x50,0x4c]))return _0x54d172([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x311869=_0x39dde1(),!_0x311869)return _0x54d172([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x311869[_0x54d172([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3035bd=_0x227167(_0x311869[_0x54d172([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x311869[_0x54d172([0x6a,0x74,0x69])])),await _0x441d70()?_0x3f4423()?_0x76e4eb()?_0x54d172([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x6e6256()?(_0x311869[_0x54d172([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54d172([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x8f67f4=_0x540ea2(_0x54d172([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x311869[_0x54d172([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54d172([0x74,0x72,0x69,0x61,0x6c])&&(_0x8f67f4=_0x540ea2(_0x54d172([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x311869[_0x54d172([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54d172([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x8f67f4=_0x540ea2(_0x54d172([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5e67de()):_0x54d172([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x54d172([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x54d172([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x413da1){return _0x54d172([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x76e4eb(){const _0x4e6cd4=[_0x54d172([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x54d172([0x74,0x72,0x69,0x61,0x6c])][_0x54d172([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x311869[_0x54d172([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xee9b45/0x3e8:0xe10*_0x474d6c;return _0x311869[_0x54d172([0x65,0x78,0x70])]<_0x4e6cd4;}function _0x3f4423(){const _0x342f03=_0x311869[_0x54d172([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x342f03)return!0x1;if(_0x342f03[_0x54d172([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54d172([0x2a])))return!0x0;if(_0x342f03[_0x54d172([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54d172([0x43,0x4d,0x54])))return!0x0;if(_0x342f03[_0x54d172([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54d172([0x52,0x43,0x4d,0x54]))){if(_0x5f5492())return!0x0;if(_0x49914a()||_0x4edf55())return!0x0;}return!0x1;}function _0x6e6256(){const _0x487d49=_0x311869[_0x54d172([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x487d49||0x0==_0x487d49[_0x54d172([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x209878}=new URL(window[_0x54d172([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x487d49[_0x54d172([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x209878))return!0x0;const _0x213dde=_0x209878[_0x54d172([0x73,0x70,0x6c,0x69,0x74])](_0x54d172([0x2e]));return _0x487d49[_0x54d172([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x545f67=>_0x545f67[_0x54d172([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54d172([0x2a])))[_0x54d172([0x6d,0x61,0x70])](_0x239461=>_0x239461[_0x54d172([0x73,0x70,0x6c,0x69,0x74])](_0x54d172([0x2e])))[_0x54d172([0x73,0x6f,0x6d,0x65])](_0x2a5451=>_0x213dde[_0x54d172([0x65,0x76,0x65,0x72,0x79])]((_0x516025,_0x58d229)=>_0x2a5451[_0x58d229]===_0x516025||_0x2a5451[_0x58d229]===_0x54d172([0x2a])));}function _0x5e67de(){return _0x8f67f4&&_0x3035bd?new window[(_0x54d172([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26de0f,_0x307fe5)=>{_0x8f67f4[_0x54d172([0x74,0x68,0x65,0x6e])](_0x26de0f,_0x307fe5),_0x3035bd[_0x54d172([0x74,0x68,0x65,0x6e])](_0x541763=>{_0x541763!=_0x54d172([0x56,0x61,0x6c,0x69,0x64])&&_0x26de0f(_0x541763);},_0x307fe5);}):_0x8f67f4||_0x3035bd||_0x54d172([0x56,0x61,0x6c,0x69,0x64]);}}function _0x227167(_0x4e17c3,_0x1c5eb6){return new window[(_0x54d172([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b2e24=>{if(_0x324b94())return _0x2b2e24(_0x54d172([0x56,0x61,0x6c,0x69,0x64]));_0xe18cae(),_0x475ad3[_0x54d172([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x54d172([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x53433d=!0x1;const _0xe30af8=_0x5567a4();function _0x2c1eb7(_0x568d18){return!!_0x568d18&&(typeof _0x568d18===_0x54d172([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x568d18===_0x54d172([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x568d18[_0x54d172([0x74,0x68,0x65,0x6e])]===_0x54d172([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x568d18[_0x54d172([0x63,0x61,0x74,0x63,0x68])]===_0x54d172([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c47b3(_0x3bda64){_0xd9f61c(_0x3bda64)[_0x54d172([0x74,0x68,0x65,0x6e])](_0x4cb7be=>{if(!_0x4cb7be||_0x4cb7be[_0x54d172([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x54d172([0x6f,0x6b]))return _0x54d172([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xd2a1a(_0x4833e0(_0xe30af8+_0x1c5eb6))!=_0x4cb7be[_0x54d172([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x54d172([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x54d172([0x56,0x61,0x6c,0x69,0x64]);})[_0x54d172([0x74,0x68,0x65,0x6e])](_0x276dc9=>(_0x2d798c(),_0x276dc9),()=>{const _0x2852b8=_0x3e416e();return null==_0x2852b8?(_0x2d798c(),_0x54d172([0x56,0x61,0x6c,0x69,0x64])):_0x54d172(_0xee9b45-_0x2852b8>(0x608a1b17^_0x52e7bd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x54d172([0x74,0x68,0x65,0x6e])](_0x2b2e24)[_0x54d172([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2b2e24(_0x54d172([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1cc442=0x44b07197^_0x52e7bd;function _0x2d798c(){const _0x3fcadc=_0x54d172([0x6c,0x6c,0x63,0x74,0x2d])+_0xd2a1a(_0x4833e0(_0x4e17c3)),_0x1a2b1b=_0x515dfb(_0xd2a1a(window[_0x54d172([0x4d,0x61,0x74,0x68])][_0x54d172([0x63,0x65,0x69,0x6c])](_0xee9b45/_0x1cc442)));window[_0x54d172([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54d172([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3fcadc,_0x1a2b1b);}function _0x3e416e(){const _0x5f2c5d=_0x54d172([0x6c,0x6c,0x63,0x74,0x2d])+_0xd2a1a(_0x4833e0(_0x4e17c3)),_0xabb748=window[_0x54d172([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54d172([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5f2c5d);return _0xabb748?window[_0x54d172([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x515dfb(_0xabb748),0x10)*_0x1cc442:null;}function _0xd9f61c(_0x50efb3){return new window[(_0x54d172([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ea9c5,_0x182515)=>{_0x50efb3[_0x54d172([0x74,0x68,0x65,0x6e])](_0x1ea9c5,_0x182515),window[_0x54d172([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x182515,0x44874bd7^_0x52e7bd);});}}_0x475ad3[_0x54d172([0x6f,0x6e])](_0x54d172([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x58787b,_0x3d6c4a)=>{if(_0x3d6c4a[0x0]!=_0x4e17c3)return _0x2b2e24(_0x54d172([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d6c4a[0x1]={..._0x3d6c4a[0x1],[_0x54d172([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xe30af8};},{[_0x54d172([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54d172([0x68,0x69,0x67,0x68])}),_0x475ad3[_0x54d172([0x6f,0x6e])](_0x54d172([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4392a5=>{_0x2c1eb7(_0x4392a5[_0x54d172([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x53433d=!0x0,_0x4c47b3(_0x4392a5[_0x54d172([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x54d172([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54d172([0x6c,0x6f,0x77])}),_0xc6ec12[_0x54d172([0x74,0x68,0x65,0x6e])](()=>{_0x53433d||_0x2b2e24(_0x54d172([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x324b94(){return _0x475ad3[_0x54d172([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54d172([0x76,0x69,0x65,0x77])][_0x54d172([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x54d172([0x61,0x75,0x74,0x6f]);}function _0xe18cae(){_0x475ad3[_0x54d172([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54d172([0x76,0x69,0x65,0x77])][_0x54d172([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x54d172([0x61,0x75,0x74,0x6f]);}}function _0x540ea2(_0x4385f8){const _0xa5d629=[new window[(_0x54d172([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c84ed=>setTimeout(_0x3c84ed,0x448fa1db^_0x52e7bd)),_0xc6ec12[_0x54d172([0x74,0x68,0x65,0x6e])](()=>new window[(_0x54d172([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x575228=>{let _0xbaea84=0x0;_0x475ad3[_0x54d172([0x6d,0x6f,0x64,0x65,0x6c])][_0x54d172([0x6f,0x6e])](_0x54d172([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x40f85a,_0x158bbb)=>{_0x158bbb[0x0][_0x54d172([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xbaea84++,_0xbaea84==(0x44869eef^_0x52e7bd)&&(_0x575228(),_0x40f85a[_0x54d172([0x6f,0x66,0x66])]());});}))];return window[_0x54d172([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x54d172([0x72,0x61,0x63,0x65])](_0xa5d629)[_0x54d172([0x74,0x68,0x65,0x6e])](()=>_0x4385f8);}async function _0xdbd331(){await _0xc6ec12,_0x475ad3[_0x54d172([0x6d,0x6f,0x64,0x65,0x6c])][_0x54d172([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x151775,_0x475ad3[_0x54d172([0x6d,0x6f,0x64,0x65,0x6c])][_0x54d172([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x151775,_0x475ad3[_0x54d172([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x54d172([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5f5492(){return _0x53f101(_0x54d172([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x446577(_0x54d172([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x54d172([0x73,0x74,0x61,0x74,0x65])]==_0x54d172([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x49914a(){return _0x53f101(_0x54d172([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x4edf55(){return _0x53f101(_0x54d172([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x47c5c2(_0x142df8){const _0x525361=_0x327613();_0x475ad3[_0x525361]=_0x54d172([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x142df8,_0x142df8!=_0x54d172([0x56,0x61,0x6c,0x69,0x64])&&_0xdbd331();}function _0x327613(){const _0x2a0c1c=window[_0x54d172([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x54d172([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x54d172([0x6e,0x6f,0x77])]())[_0x54d172([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x54d172([0x2e]),'');let _0x5d95d2=_0x54d172([0x47]);for(let _0x4fb6c9=0x0;_0x4fb6c9<_0x2a0c1c[_0x54d172([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4fb6c9+=0x2){let _0x5193a3=window[_0x54d172([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a0c1c[_0x54d172([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4fb6c9,_0x4fb6c9+0x2));_0x5193a3>=_0x515d29[_0x54d172([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5193a3-=_0x515d29[_0x54d172([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d95d2+=_0x515d29[_0x5193a3];}return _0x5d95d2;}function _0x39dde1(){const _0x20376a=_0xd443f5[_0x54d172([0x73,0x70,0x6c,0x69,0x74])](_0x54d172([0x2e]));if(0x3!=_0x20376a[_0x54d172([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x36e822(_0x20376a[0x1]);function _0x36e822(_0x2436ee){const _0x43759d=_0x275e4a(_0x2436ee);return _0x43759d&&_0x4a7868()?_0x43759d:null;function _0x4a7868(){const _0x59c4cc=_0x43759d[_0x54d172([0x6a,0x74,0x69])],_0x406849=window[_0x54d172([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59c4cc[_0x54d172([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59c4cc[_0x54d172([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5a434b={..._0x43759d,[_0x54d172([0x6a,0x74,0x69])]:_0x59c4cc[_0x54d172([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x59c4cc[_0x54d172([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5a434b[_0x54d172([0x76,0x63])],_0x4833e0(_0x5a434b)==_0x406849;}}}async function _0x441d70(){let _0xd657d=!0x0;try{const _0x555e1f=_0xd443f5[_0x54d172([0x73,0x70,0x6c,0x69,0x74])](_0x54d172([0x2e])),[_0x3cc25d,_0x424805,_0x311a32]=_0x555e1f;return _0xa84a20(_0x3cc25d),await _0x390bf3(_0x3cc25d,_0x424805,_0x311a32),_0xd657d;}catch(_0x41960e){return!0x1;}function _0xa84a20(_0x501736){const _0x137e47=_0x275e4a(_0x501736);_0x137e47&&_0x137e47[_0x54d172([0x61,0x6c,0x67])]==_0x54d172([0x45,0x53,0x32,0x35,0x36])||(_0xd657d=!0x1);}async function _0x390bf3(_0x1a2a64,_0x57042a,_0x272ef7){const _0x4ffcff=window[_0x54d172([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x54d172([0x66,0x72,0x6f,0x6d])](_0xaaa4f0(_0x272ef7),_0x9877e7=>_0x9877e7[_0x54d172([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3221bd=new window[(_0x54d172([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x54d172([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1a2a64+_0x54d172([0x2e])+_0x57042a),_0x25a351=window[_0x54d172([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x54d172([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x25a351)return;const _0x5da202=await _0x25a351[_0x54d172([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x54d172([0x6a,0x77,0x6b]),_0x4afbcd,{[_0x54d172([0x6e,0x61,0x6d,0x65])]:_0x54d172([0x45,0x43,0x44,0x53,0x41]),[_0x54d172([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x54d172([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x54d172([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x25a351[_0x54d172([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x54d172([0x6e,0x61,0x6d,0x65])]:_0x54d172([0x45,0x43,0x44,0x53,0x41]),[_0x54d172([0x68,0x61,0x73,0x68])]:{[_0x54d172([0x6e,0x61,0x6d,0x65])]:_0x54d172([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5da202,_0x4ffcff,_0x3221bd)||(_0xd657d=!0x1);}}function _0x275e4a(_0x10d8b5){return _0x10d8b5[_0x54d172([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x54d172([0x65,0x79]))?JSON[_0x54d172([0x70,0x61,0x72,0x73,0x65])](_0xaaa4f0(_0x10d8b5)):null;}function _0xaaa4f0(_0x477982){return window[_0x54d172([0x61,0x74,0x6f,0x62])](_0x477982[_0x54d172([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x54d172([0x2b]))[_0x54d172([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x54d172([0x2f])));}function _0x4833e0(_0x48b964){let _0xc24b9f=0x1505;function _0x48b8b6(_0x1ed24c){for(let _0x34644c=0x0;_0x34644c<_0x1ed24c[_0x54d172([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34644c++){const _0x46f920=_0x1ed24c[_0x54d172([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x34644c);_0xc24b9f=(_0xc24b9f<<0x5)+_0xc24b9f+_0x46f920,_0xc24b9f&=_0xc24b9f;}}function _0x232ce0(_0x2dceae){Array[_0x54d172([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2dceae)?_0x2dceae[_0x54d172([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x232ce0):_0x2dceae&&typeof _0x2dceae==_0x54d172([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x54d172([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2dceae)[_0x54d172([0x73,0x6f,0x72,0x74])]()[_0x54d172([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3978ec,_0x296a78])=>{_0x48b8b6(_0x3978ec),_0x232ce0(_0x296a78);}):_0x48b8b6(window[_0x54d172([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2dceae));}return _0x232ce0(_0x48b964),_0xc24b9f>>>0x0;}function _0xd2a1a(_0xb8161a){return _0xb8161a[_0x54d172([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x54d172([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x54d172([0x30]));}function _0x515dfb(_0x12d388){return _0x12d388[_0x54d172([0x73,0x70,0x6c,0x69,0x74])]('')[_0x54d172([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x54d172([0x6a,0x6f,0x69,0x6e])]('');}function _0x53f101(_0x1ee99b){return _0x475ad3[_0x54d172([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x54d172([0x68,0x61,0x73])](_0x1ee99b);}function _0x446577(_0x4cdd01){return _0x475ad3[_0x54d172([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x54d172([0x67,0x65,0x74])](_0x4cdd01);}function _0x151775(){}function _0x54d172(_0x1b3237){return _0x1b3237['map'](_0x1cfacc=>String['fromCharCode'](_0x1cfacc))['join']('');}_0x47c5c2(await _0x5df410());}(this);}['destroy'](){const _0x31ad41=this['editor']['plugins']['get'](o),_0x4c6a53=this['editor']['config']['get']('collaboration.channelId');for(const _0x4bc9af of _0x31ad41['getCommentThreads']({'channelId':_0x4c6a53}))_0x31ad41['_detachCommentThread'](_0x4bc9af['id']),_0x31ad41['_threads']['delete'](_0x4bc9af['id']);super['destroy']();}['hasMarkerForId'](_0x4eea5f){return this['getAllMarkersForId'](_0x4eea5f)['length']>0x0;}['getAllMarkersForId'](_0x429e53){const _0x2df61a=[];for(const _0x58cfe3 of this['editor']['model']['markers'])_0x58cfe3['name']['startsWith']('comment:'+_0x429e53)&&_0x2df61a['push'](_0x58cfe3);return _0x2df61a;}['scrollToThreadMarker'](_0x5dd9c9){const _0x351635=this['_getTargetForId'](_0x5dd9c9);_0x351635&&setTimeout(()=>{this['activeMarker']&&he(this['activeMarker'])['id']===_0x5dd9c9&&rt({'target':_0x351635[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x133773){this['editor']['model']['change'](()=>{for(const _0x895cf8 of this['getAllMarkersForId'](_0x133773))this['editor']['editing']['reconvertMarker'](_0x895cf8);});}['_attachArchivedThread'](_0x10c18a){const _0x1cb84e=this['editor']['plugins']['get'](o),_0xf0867b=this['editor']['plugins']['get'](P),_0x2eca6f=_0x1cb84e['getCommentThread'](_0x10c18a);if(!_0x2eca6f['isAttached']){const _0x274651=_0x2eca6f['attachTo'](()=>this['_getTargetForId'](_0x2eca6f['id']));_0xf0867b['registerAnnotation'](_0x274651),_0x2eca6f['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x30b984=this['editor'],_0x7662a7=_0x30b984['plugins']['get'](it);_0x30b984['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x4068a2,_0x2218cf)=>{const {id:_0x39f099}=he(_0x4068a2['markerName']),_0x176330=_0x30b984['plugins']['get'](o)['getCommentThread'](_0x39f099),_0x237c99=this['activeMarker']&&he(this['activeMarker'])['id']===_0x39f099;let _0x7a3d09;if(_0x176330&&_0x176330['isResolved']&&!_0x237c99&&_0x4068a2['item'])return _0x2218cf['consumable']['consume'](_0x4068a2['item'],'addMarker:'+_0x4068a2['markerName']),_0x2218cf['consumable']['consume'](_0x4068a2['item'],'removeMarker:'+_0x4068a2['markerName']),null;const _0x341e33=['ck-comment-marker'];return _0x237c99&&_0x341e33['push']('ck-comment-marker--active'),_0x7a3d09=_0x176330&&_0x176330['length']?_0x176330['comments']['first']['author']['id']:_0x7662a7['me']['id'],{'classes':_0x341e33,'attributes':{'data-comment':_0x39f099,'data-author-id':_0x7a3d09}};}}),_0x30b984['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x3f98df,{options:_0x3cee39})=>{const _0xf1f939=_0x30b984['plugins']['get'](o),_0x7534fb=_0x30b984['model']['markers']['get'](_0x3f98df),{id:_0x4804e7,part:_0x4ac457}=he(_0x3f98df);if(_0x7534fb&&!_0x7534fb['affectsData'])return null;if(_0x3cee39['ignoreResolvedComments']){const _0x458dbe=_0xf1f939['getCommentThread'](_0x4804e7);if(_0x458dbe&&_0x458dbe['isResolved'])return null;}return{'group':'comment','name':_0x4ac457?_0x4804e7+':'+_0x4ac457:_0x4804e7};}}),_0x30b984['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x4ca2ca,{writer:_0x401be1})=>_0x401be1['createElement']('$marker',{'data-name':'comment:'+_0x4ca2ca['getAttribute']('id')})}),_0x30b984['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0xb9536d=this['editor'],_0x29e62a=_0xb9536d['plugins']['get'](o),_0x641881=new Set(),_0x237e03=new Set();_0xb9536d['model']['document']['registerPostFixer'](_0x3d05c7=>{let _0x43520a=!0x1;for(const {name:_0x2ec3ee,data:_0x5c2de9}of _0xb9536d['model']['document']['differ']['getChangedMarkers']()){const {group:_0x2e488d,id:_0x168696}=he(_0x2ec3ee);let _0x391130=_0x5c2de9['newRange'];if('comment'!==_0x2e488d||!_0x391130)continue;const _0x1035e0='$graveyard'===_0x391130['root']['rootName'];_0x1035e0||(_0x391130=ft(_0x391130,_0xb9536d['model']),!_0x391130||_0x391130['isCollapsed']||!_0x5c2de9['newRange']||_0x391130['isEqual'](_0x5c2de9['newRange']))?_0xb9536d['model']['hasContent'](_0x391130)&&!_0x1035e0?this['isThreadsLoadingPaused']?_0x641881['add'](_0x2ec3ee):this['_handleThreadMarker'](_0x2ec3ee,_0x168696):(_0x237e03['add'](_0x2ec3ee),_0x641881['delete'](_0x2ec3ee),_0x3d05c7['removeMarker'](_0x2ec3ee),_0x43520a=!0x0):(_0x3d05c7['updateMarker'](_0x2ec3ee,{'range':_0x391130}),_0x43520a=!0x0);}return _0x43520a;}),this['on']('change:isThreadsLoadingPaused',(_0x130a1c,_0x200a13,_0x422a0e)=>{if(!_0x422a0e&&_0x641881['size'])for(const _0x3a01ce of _0x641881){const {id:_0x2134e4}=he(_0x3a01ce);_0x641881['delete'](_0x3a01ce),_0xb9536d['model']['markers']['get'](_0x3a01ce)&&this['_handleThreadMarker'](_0x3a01ce,_0x2134e4);}}),this['listenTo'](_0xb9536d['model']['document'],'change',(_0x18e8ae,_0x52225d)=>{for(const {name:_0x46235d,data:{newRange:_0x25200d}}of _0xb9536d['model']['document']['differ']['getChangedMarkers']()){const {group:_0x2c5837,id:_0xab2c14}=he(_0x46235d);if('comment'!==_0x2c5837)continue;const _0x5cd12d=_0x29e62a['getCommentThread'](_0xab2c14),_0x3ac9a3=this['hasMarkerForId'](_0xab2c14);_0x5cd12d&&(!_0x5cd12d['_hasTargetInContent']&&_0x25200d&&_0xb9536d['editing']['view']['once']('render',()=>{const _0x2bc309=_0xb9536d['plugins']['get'](N),_0x4b9ca4=_0x29e62a['_threadToController']['get'](_0x5cd12d)['view'];_0x2bc309['getByInnerView'](_0x4b9ca4)['refreshVisibility']();},{'priority':'low'}),_0x5cd12d['_hasTargetInContent']=_0x3ac9a3||!!_0x25200d),_0x25200d||(_0x237e03['add'](_0x46235d),_0x641881['delete'](_0x46235d));}if(_0x52225d['isLocal'])for(const _0x138713 of _0x237e03){const {id:_0x51e06d}=he(_0x138713),_0xddb3da=_0x29e62a['getCommentThread'](_0x51e06d),_0x18deaf=this['hasMarkerForId'](_0x51e06d);_0x641881['delete'](_0x138713),!_0xddb3da||_0x18deaf||_0xddb3da['unlinkedAt']||_0xddb3da['setUnlinkedAt'](new Date());}_0x237e03['clear']();});}['_getTargetForId'](_0x5a5189){const _0x642c3d=this['editor'],_0x397955=this['getAllMarkersForId'](_0x5a5189);return et(_0x642c3d['editing'],_0x397955);}['_getTextContext'](_0x4beae8){const _0x4d7051=this['getAllMarkersForId'](_0x4beae8);let _0x5b0465='',_0x3b3d4f=!0x1;for(const _0x57f91a of _0x4d7051){const _0x3fb479=_0x57f91a['getRange']();for(const _0xbbe1ad of Array['from'](_0x3fb479['getItems']()))_0xbbe1ad['is']('$textProxy')?(_0x5b0465&&_0x3b3d4f&&(_0x5b0465+='\x20',_0x3b3d4f=!0x1),_0x5b0465+=_0xbbe1ad['data']):_0x3b3d4f=!0x0;_0x3b3d4f=!0x0;}return _0x5b0465['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x5cd5e5,_0x2c1aa7){const _0x12d49e=this['editor'],_0x1adef7=_0x12d49e['plugins']['get'](o);let _0xcdcf4d=_0x1adef7['getCommentThread'](_0x2c1aa7);const _0x2791f9=_0x12d49e['config']['get']('collaboration.channelId'),_0x18c2a3=_0x12d49e['plugins']['get'](P);if(_0xcdcf4d&&(_0xcdcf4d['unlinkedAt']&&_0xcdcf4d['setUnlinkedAt'](null),_0xcdcf4d['isAttached']))return _0xcdcf4d;return!this['getAllMarkersForId'](_0x2c1aa7)[0x0]['managedUsingOperations']?_0x12d49e['editing']['view']['once']('render',()=>{if(_0x1adef7['getCommentThread'](_0x2c1aa7))return;const _0x3d17b6=_0x12d49e['plugins']['get'](N);_0xcdcf4d=_0x1adef7['openNewCommentThread']({'channelId':_0x2791f9,'threadId':_0x2c1aa7,'target':()=>this['_getTargetForId'](_0x2c1aa7),'context':{'type':'text','value':this['_getTextContext'](_0x2c1aa7)}});const _0x158e61=_0x1adef7['_threadToController']['get'](_0xcdcf4d)['view'],_0x1ae86c=_0x3d17b6['getByInnerView'](_0x158e61);_0x1ae86c&&_0x18c2a3['registerAnnotation'](_0x1ae86c);},{'priority':'low'}):_0x1adef7['fetchCommentThread']({'channelId':_0x2791f9,'threadId':_0x2c1aa7})['then'](_0x28c56b=>{if('destroyed'!==_0x12d49e['state']){if(_0xcdcf4d=_0x28c56b,_0xcdcf4d&&!_0xcdcf4d['isAttached']){const _0x481d43=_0xcdcf4d['attachTo'](()=>this['_getTargetForId'](_0x2c1aa7));_0x18c2a3['registerAnnotation'](_0x481d43),_0xcdcf4d['isResolved']&&this['_reconvertMarkers'](_0x2c1aa7);}else{if(!_0xcdcf4d){const _0x54f559=this['getAllMarkersForId'](_0x2c1aa7);_0x12d49e['model']['change'](_0x342ae9=>{for(const _0x4add25 of _0x54f559)_0x342ae9['removeMarker'](_0x4add25);});}}}}),_0xcdcf4d;}['_handleThreadMarker'](_0x315e1b,_0x4bbdd2){const _0x1b0679=this['_attachMarkerToThread'](_0x315e1b,_0x4bbdd2);_0x1b0679&&!_0x1b0679['context']&&_0x1b0679['setContext']({'type':'text','value':this['_getTextContext'](_0x4bbdd2)});}['_initAriaMarkerChangeAnnouncements'](){const _0x5f1d36=this['editor'];ot(_0x5f1d36['model'],({left:_0x21483a,entered:_0xa24628})=>{for(const _0x25a25c of _0x21483a)if(dt(_0x25a25c)){_0x5f1d36['ui']['ariaLiveAnnouncer']['announce'](S(_0x5f1d36['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x45fe12 of _0xa24628)if(dt(_0x45fe12)){_0x5f1d36['ui']['ariaLiveAnnouncer']['announce'](S(_0x5f1d36['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0xf6ad3)));break;}});}}function ut(_0x28c181,_0xd1e21e){return _0xd1e21e?_0x28c181+':'+_0xd1e21e:_0x28c181;}function he(_0x579036){const _0x28cd00=_0x579036['split'](':');return{'group':_0x28cd00[0x0],'id':_0x28cd00[0x1],'part':_0x28cd00[0x2]};}function ft(_0x554c44,_0xa99521){const _0x36fde8=_0xa99521['schema'],_0x441e79=_0xa99521['createRange'](_0x554c44['start']);for(const _0x50e7bc of _0x554c44['getWalker']()){const {type:_0x386168,item:_0x547d44,nextPosition:_0x5d0b04}=_0x50e7bc;if('text'===_0x386168||_0x36fde8['isObject'](_0x547d44)){const _0x4618bc=_0xa99521['createPositionBefore'](_0x547d44);_0x441e79['isCollapsed']&&(_0x441e79['start']=_0x4618bc),_0x441e79['end']=_0x5d0b04;}}return _0x441e79;}function dt(_0x360577){return'comment'===he(_0x360577['name'])['group'];}var xt='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M4\x201.5h12A3.5\x203.5\x200\x200\x201\x2019.5\x205v8l-.005.192a3.5\x203.5\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.371-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.271-2.63l-.062-.07H4A3.5\x203.5\x200\x200\x201\x20.5\x2013V5A3.5\x203.5\x200\x200\x201\x204\x201.5ZM4\x203a2\x202\x200\x200\x200-2\x202v8a2\x202\x200\x200\x200\x202\x202h6.924a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L14.962\x2015H16a2\x202\x200\x200\x200\x202-2V5a2\x202\x200\x200\x200-2-2H4Z\x22/><path\x20d=\x22M9.75\x205a.75.75\x200\x200\x200-.75.75v2.5H6.5a.75.75\x200\x200\x200\x200\x201.5H9v2.5a.75.75\x200\x200\x200\x201.5\x200v-2.5H13a.75.75\x200\x200\x200\x200-1.5h-2.5v-2.5A.75.75\x200\x200\x200\x209.75\x205Z\x22/></svg>\x0a';class i extends _0x3731df{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,P,N];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x52b59e=this['editor'],_0x21d41a=_0x52b59e['plugins']['get'](o),_0x16237d=_0x52b59e['plugins']['get'](r),_0x52eed0=_0x52b59e['plugins']['get'](N),_0x5bd7dc=_0x52b59e['plugins']['get'](P);_0x52b59e['ui']['componentFactory']['add']('comment',()=>{const _0x5a02bb=this['_createUIButton'](_0x59879a);return _0x5a02bb['tooltip']=!0x0,_0x5a02bb;}),_0x52b59e['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x16cede)),_0x5bd7dc['addSourceCollector'](()=>{const _0x5a482e=[];for(const [_0x1872a0,_0x680b02]of _0x21d41a['_threadToController']){const _0x3d8ff7=_0x16237d['getAllMarkersForId'](_0x1872a0['id']),_0x510edf=_0x3d8ff7['map'](_0x363666=>_0x363666['getRange']());_0x3d8ff7['length']>0x0&&_0x5a482e['push']([_0x680b02['view'],_0x510edf]);}return _0x5a482e;}),this['listenTo'](_0x52eed0,'change:activeAnnotations',(_0x22b71a,_0x3306e0,_0x5e7e9a)=>{const _0x28f130=Array['from'](_0x5e7e9a)['map'](_0x22fd41=>_0x22fd41['innerView'])['find'](_0x18e684=>_0x21d41a['_viewToController']['has'](_0x18e684));if(!_0x28f130)return void(_0x16237d['activeMarker']=null);const _0x4d5626=_0x21d41a['_viewToController']['get'](_0x28f130)['model']['id'],_0x4183b7='comment:'+_0x4d5626;_0x4d5626&&_0x16237d['hasMarkerForId'](_0x4d5626)?_0x16237d['activeMarker']=_0x4183b7:_0x16237d['activeMarker']&&(_0x16237d['activeMarker']=null);}),this['listenTo'](_0x21d41a,'removeCommentThread',(_0x198671,{threadId:_0x13cf85,isFromAdapter:_0x10f48c})=>{!_0x10f48c&&_0x52b59e['ui']['focusTracker']['isFocused']&&_0x16237d['hasMarkerForId'](_0x13cf85)&&_0x52b59e['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x21d41a,'addComment',(_0x35f7db,{threadId:_0x19cca5,isFromAdapter:_0x3e30db})=>{if(_0x3e30db||!_0x16237d['hasMarkerForId'](_0x19cca5)||!_0x21d41a['hasCommentThread'](_0x19cca5))return;0x1===_0x21d41a['getCommentThread'](_0x19cca5)['length']&&(_0x52b59e['editing']['view']['focus'](),_0x35f7db['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5b5685=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4feed6;for(const _0x1268a3 in _0x5b5685){const _0x69e572=_0x1268a3,_0x2864fc=_0x5b5685[_0x69e572];if('commentsLicenseKeyValid'==_0x2864fc||'commentsLicenseKeyInvalid'==_0x2864fc||'commentsLicenseKeyExpired'==_0x2864fc||'commentsLicenseKeyDomainLimit'==_0x2864fc||'commentsLicenseKeyNotAllowed'==_0x2864fc||'commentsLicenseKeyEvaluationLimit'==_0x2864fc||'commentsLicenseKeyTrialLimit'==_0x2864fc||'commentsLicenseKeyDevelopmentLimit'==_0x2864fc||'commentsLicenseKeyUsageLimit'==_0x2864fc){delete _0x5b5685[_0x69e572],_0x4feed6=_0x2864fc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x4feed6&&_0x5b5685['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x4feed6&&_0x5b5685['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x4feed6&&_0x5b5685['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x4feed6&&_0x5b5685['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x4feed6&&_0x5b5685['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x4feed6&&_0x5b5685['_showLicenseError']('trialLimit'),'commentsLicenseKeyDevelopmentLimit'==_0x4feed6&&_0x5b5685['_showLicenseError']('developmentLimit'),'commentsLicenseKeyUsageLimit'==_0x4feed6&&_0x5b5685['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x484b3d){const _0x223f5e=this['editor'],_0x239f86=new _0x484b3d(_0x223f5e['locale']),_0x5d0e1e=_0x223f5e['commands']['get']('addCommentThread');return _0x239f86['set']({'label':S(_0x223f5e['locale'],'Comment'),'icon':xt}),_0x239f86['bind']('isEnabled')['to'](_0x5d0e1e),this['listenTo'](_0x239f86,'execute',()=>_0x5d0e1e['execute']()),_0x239f86;}}class s extends _0x3731df{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x215a65){super(_0x215a65),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x3932fc,_0x5728ac,_0xfac992)=>{_0xfac992?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0xd8247e,_0x3b6c85]of this['editor']['commands'])_0x3b6c85['affectsData']&&'addCommentThread'!==_0xd8247e&&_0x3b6c85['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0x48f913=this['editor']['editing']['view']['document'];this['listenTo'](_0x48f913,'cut',_0x257db=>_0x257db['stop'](),{'priority':'highest'}),this['listenTo'](_0x48f913,'clipboardInput',_0x492e96=>_0x492e96['stop'](),{'priority':'highest'}),this['listenTo'](_0x48f913,'delete',_0x1efaad=>_0x1efaad['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x5b9d80,_0x181f67]of this['editor']['commands'])_0x181f67['affectsData']&&'addCommentThread'!==_0x5b9d80&&_0x181f67['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x100c9b{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x309bfb){super(_0x309bfb),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x5c7e32=this['context']['plugins']['get'](N);this['listenTo'](_0x5c7e32,'_activateAnnotation',(_0x344f2d,_0x5b1590)=>{for(const _0x1962f7 of this['activeUIs']){const _0x4e413b=this['_uis']['get'](_0x1962f7);(0x0,this['_uisData']['get'](_0x1962f7)['filter'])(_0x5b1590)&&_0x4e413b['setActiveAnnotation'](_0x5b1590);}}),this['listenTo'](_0x5c7e32,'_deactivateAllAnnotations',()=>{for(const _0x205456 of this['activeUIs']){this['_uis']['get'](_0x205456)['setActiveAnnotation'](null);}}),this['listenTo'](_0x5c7e32['_visibleAnnotations'],'add',(_0x567876,_0x1f1c71)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1f1c71);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x19271e){return this['activeUIs']['has'](_0x19271e);}['activate'](_0x380ed3,_0x558fdb=()=>!0x0){const _0x242854=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x380ed3))throw new _0x2569ef('annotationsuis-missing-ui',this,{'uiName':_0x380ed3});this['isActive'](_0x380ed3)&&this['deactivate'](_0x380ed3),this['activeUIs']['add'](_0x380ed3);const _0x16e2e7=new x();!function({source:_0x437e09,target:_0x2a40c0,filter:_0x140179}){for(const _0x1eabe9 of _0x437e09)_0x140179(_0x1eabe9)&&_0x2a40c0['add'](_0x1eabe9);_0x2a40c0['listenTo'](_0x437e09,'add',(_0x48c170,_0x3ae2a9)=>{_0x140179(_0x3ae2a9)&&_0x2a40c0['add'](_0x3ae2a9);}),_0x2a40c0['listenTo'](_0x437e09,'remove',(_0x23578f,_0x23cfa5)=>{_0x2a40c0['has'](_0x23cfa5)&&_0x2a40c0['remove'](_0x23cfa5);});}({'source':_0x242854['_visibleAnnotations'],'target':_0x16e2e7,'filter':_0x558fdb}),this['_uisData']['set'](_0x380ed3,{'collection':_0x16e2e7,'filter':_0x558fdb});const _0x57e8ae=this['_uis']['get'](_0x380ed3);_0x57e8ae['attach'](_0x16e2e7),this['listenTo'](_0x57e8ae,'change:activeAnnotation',(_0x4eab8b,_0x3158ba,_0x25d8b8,_0x32d427)=>{_0x32d427&&_0x242854['_removeActiveAnnotation'](_0x32d427),_0x25d8b8&&_0x242854['_addActiveAnnotation'](_0x25d8b8);});}['deactivate'](_0x59965f){if(this['activeUIs']['delete'](_0x59965f),!this['_uis']['has'](_0x59965f))throw new _0x2569ef('annotationsuis-missing-ui',this,{'uiName':_0x59965f});const _0x2f9206=this['_uis']['get'](_0x59965f);_0x2f9206['detach'](),this['stopListening'](_0x2f9206),this['_uisData']['get'](_0x59965f)['collection']['destroy'](),this['_uisData']['delete'](_0x59965f);}['switchTo'](_0x3c6f92){if(!this['_uis']['has'](_0x3c6f92))throw new _0x2569ef('annotationsuis-missing-ui',this,{'uiName':_0x3c6f92});const _0x564d79=this['context']['plugins']['get'](N),_0x24f06d=Array['from'](_0x564d79['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x3c6f92);const _0x50360c=this['_uis']['get'](_0x3c6f92);_0x50360c['setActiveAnnotation'](_0x24f06d),_0x50360c['_setSelectedAnnotations']&&_0x24f06d&&_0x50360c['_setSelectedAnnotations']([_0x24f06d]);}['deactivateAll'](){for(const _0x48cc52 of this['activeUIs'])this['deactivate'](_0x48cc52);}['register'](_0x1d45b9,_0x3f3413){if(this['_uis']['has'](_0x1d45b9))throw new _0x2569ef('annotationsuis-register-already-registered');if('function'!=typeof _0x3f3413['attach']||'function'!=typeof _0x3f3413['detach']||'function'!=typeof _0x3f3413['setActiveAnnotation'])throw new _0x2569ef('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x1d45b9,_0x3f3413);}['refilterAnnotations'](){const _0x2b0be0=this['context']['plugins']['get'](N)['collection'],_0x5446d3=new Map(),_0x4948f3=Array['from'](this['activeUIs']);for(const _0x5e06d6 of this['activeUIs']){const _0x48e2fc=this['_uisData']['get'](_0x5e06d6)['collection'];for(const _0x281f50 of _0x48e2fc)_0x5446d3['set'](_0x281f50,_0x5e06d6);}for(const _0xbf6ba0 of _0x2b0be0){const _0x475afb=_0x5446d3['get'](_0xbf6ba0);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xbf6ba0);const _0x11e0d6=_0x4948f3['find'](_0x226e63=>this['_uisData']['get'](_0x226e63)['filter'](_0xbf6ba0));_0x475afb!==_0x11e0d6&&(_0x475afb&&this['_uisData']['get'](_0x475afb)['collection']['remove'](_0xbf6ba0),_0x11e0d6&&this['_uisData']['get'](_0x11e0d6)['collection']['add'](_0xbf6ba0));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x279725){const _0x2c201b=[];for(const _0x187bc0 of this['activeUIs']){(0x0,this['_uisData']['get'](_0x187bc0)['filter'])(_0x279725)&&_0x2c201b['push'](_0x187bc0);}if(_0x2c201b['length']>0x1)throw new _0x2569ef('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x2c201b,'annotationType':_0x279725['type']});}}const ae=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x562b1e){super(_0x562b1e);const _0x1cb3fb=this['bindTemplate'];this['set']('minHeight',0x0),this['set']('class',''),this['list']=this['createCollection'](),this['focusables']=this['createCollection'](),this['list']['delegate']('arrowup','arrowdown')['to'](this),this['focusTracker']=new _0x5ad3fb(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x1cb3fb['to']('class')],'style':{'minHeight':_0x1cb3fb['to']('minHeight',_0x2f4751=>'number'==typeof _0x2f4751?ae(_0x2f4751+0xa):null)},'dir':_0x562b1e['uiLanguageDirection'],'role':'application','aria-label':S(_0x562b1e,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x562b1e,'Annotations\x20list')},'children':this['list']}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_setupKeyboardNavigation'](){this['list']['delegate']('change:top')['to'](this),this['on']('change:top',_0x108826=>{this['_updateItemPositionInFocusables'](_0x108826['source']);}),this['list']['forEach'](_0x5c7693=>{this['focusTracker']['add'](_0x5c7693['element']),this['_updateItemPositionInFocusables'](_0x5c7693);}),this['list']['on']('change',(_0x114cec,_0x22aa53)=>{for(const _0x279047 of _0x22aa53['removed'])this['focusTracker']['remove'](_0x279047['element']),this['focusables']['remove'](_0x279047);for(const _0x12ade4 of _0x22aa53['added'])this['focusTracker']['add'](_0x12ade4['element']),this['_updateItemPositionInFocusables'](_0x12ade4);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x5bffd7){const _0x3c3909=this['focusables']['getIndex'](_0x5bffd7);let _0x48cc8a,_0x1f3b6a;for(const _0x173c7d of this['focusables'])if(_0x5bffd7['top']<_0x173c7d['top']){_0x48cc8a=_0x173c7d;break;}if(_0x1f3b6a=_0x48cc8a?this['focusables']['getIndex'](_0x48cc8a):this['focusables']['length'],-0x1!==_0x3c3909){if(_0x3c3909===_0x1f3b6a-0x1)return;this['focusables']['remove'](_0x5bffd7),_0x1f3b6a=_0x48cc8a?this['focusables']['getIndex'](_0x48cc8a):this['focusables']['length'];}this['focusables']['add'](_0x5bffd7,_0x1f3b6a);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x558001){super(_0x558001),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x5e173e,_0xb6bbd3)=>_0x5e173e+_0xb6bbd3),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Dt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x572e2a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x572e2a['to']('isAnimationDisabled',_0x51d5ec=>_0x51d5ec?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x572e2a['to']('top',_0x4ed62c=>qt(_0x4ed62c))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x1f352f=this['element']['clientHeight'];_0x1f352f&&(this['height']=_0x1f352f);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x100c9b{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f48ff){super(_0x4f48ff),this['set']('_lastItem',void 0x0),this['view']=this['_createSidebarView'](),this['set']('container',null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this['_annotationToSidebarItemView']=new Map(),this['context']['config']['define']('sidebar.preventScrollOutOfView',!0x1),this['_annotations']=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}['init'](){const _0x3ff9ed=this['context']['config']['get']('sidebar.container');_0x3ff9ed&&this['setContainer'](_0x3ff9ed);}['setContainer'](_0x57bdb7){if(!y(_0x57bdb7))throw new _0x2569ef('sidebar-setcontainer-invalid-element');this['container']=_0x57bdb7;}['_attachToContainer']({viewClass:_0x48bdb5='',spaceBetweenItems:_0x56ecd1=0x19}={}){if(!y(this['container']))throw new _0x2569ef('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x48bdb5,this['_spaceBetweenItems']=_0x56ecd1;}['rearrange']({removedAnnotation:_0x48b5f6,previousAnnotation:_0x29e5b9,nextAnnotation:_0x213c9d}){const _0x3d5a10=this['getSidebarItemView'](_0x48b5f6);this['view']['list']['remove'](_0x3d5a10),this['_destroySidebarItemView'](_0x48b5f6),_0x29e5b9&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x29e5b9)),_0x213c9d&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x213c9d)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x28a71b,activatedAnnotation:_0x41f11a,disableAnimationOnActivatedAnnotation:_0x14844e}){if(this['_activeAnnotation']=_0x41f11a,_0x28a71b){_0x28a71b['isActive']=!0x1;const _0x934092=this['getSidebarItemView'](_0x28a71b);_0x934092&&_0x14844e&&(_0x934092['isAnimationDisabled']=!0x1);}if(_0x41f11a){const _0x169b89=this['getSidebarItemView'](_0x41f11a);_0x169b89&&(_0x41f11a['isActive']=!0x0,_0x14844e&&(_0x169b89['isAnimationDisabled']=!0x0,_0x169b89['top']+=0x1),this['_alignToTargetRect'](_0x169b89));}}['_detachFromContainer'](_0x56ee1a){if(this['view']['element']['remove'](),_0x56ee1a){for(const _0x17b068 of _0x56ee1a)this['_destroySidebarItemView'](_0x17b068);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x170c05,_0x215440){_0x215440||(_0x215440=_0x170c05['view']);const _0x2edbf8=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x2edbf8,_0x170c05),this['_annotationToSidebarItemView']['set'](_0x170c05,_0x2edbf8),_0x2edbf8['content']['add'](_0x215440),this['listenTo'](_0x170c05['view'],'change:targetRect',(_0x3aed51,_0x5cd4ea,_0x3f1460)=>{const _0x292274=this['_getTargetTop'](_0x170c05,_0x3f1460);_0x2edbf8['_targetTop']!=_0x292274&&(_0x2edbf8['_targetTop']=_0x292274,this['_setItemTop'](_0x2edbf8,_0x292274));}),this['listenTo'](_0x2edbf8,'change:top',()=>{this['_recalculate'](_0x2edbf8,'top');}),this['listenTo'](_0x2edbf8,'change:bottom',()=>{this['_recalculate'](_0x2edbf8,'bottom');}),this['_alignToTargetRect'](_0x2edbf8);const _0x5308e3=this['_getItemBefore'](_0x2edbf8);if(_0x5308e3)this['_alignAfterItem'](_0x5308e3,_0x2edbf8)||this['_alignToTargetRect'](_0x2edbf8);else this['_alignToTargetRect'](_0x2edbf8);return this['_updateLastItem'](),this['view']['list']['add'](_0x2edbf8),_0x2edbf8;}['_alignForTopChange'](_0xfc08a3){if(!_0xfc08a3['content']['length'])return;const _0x50b32f=this['_getItemBefore'](_0xfc08a3);if(!_0x50b32f)return;const _0x2ace79=this['_sidebarItemViewToAnnotation']['get'](_0x50b32f),_0x2a1991=this['_activeAnnotation'];_0x2a1991&&_0x2a1991===_0x2ace79?this['_alignAfterItem'](_0x50b32f,_0xfc08a3):this['_alignBeforeItem'](_0xfc08a3,_0x50b32f);}['_alignForBottomChange'](_0x925ff1){if(!_0x925ff1['content']['length'])return;const _0x1108eb=this['_getItemAfter'](_0x925ff1);if(!_0x1108eb)return;const _0x46a335=this['_sidebarItemViewToAnnotation']['get'](_0x1108eb),_0x3a2d53=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x2409e5=this['_activeAnnotation'];_0x2409e5&&_0x2409e5===_0x46a335&&_0x3a2d53?(this['_alignBeforeItem'](_0x1108eb,_0x925ff1),this['_alignAfterItem'](_0x925ff1,_0x1108eb)):_0x2409e5&&_0x2409e5===_0x46a335?this['_alignBeforeItem'](_0x1108eb,_0x925ff1):this['_alignAfterItem'](_0x925ff1,_0x1108eb);}['_recalculate'](_0x21b395,_0x229580){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x465104,changedProp:_0x1028c4}of this['_recalculateBuffer'])'top'===_0x1028c4?this['_alignForTopChange'](_0x465104):this['_alignForBottomChange'](_0x465104);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x21b395,'changedProp':_0x229580});}['getSidebarItemView'](_0x1373e9){return this['_annotationToSidebarItemView']['get'](_0x1373e9);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x1da7e6){const _0x1018b9=this['getSidebarItemView'](_0x1da7e6);this['stopListening'](_0x1018b9),this['stopListening'](_0x1da7e6['view']),_0x1018b9['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x1da7e6),this['_sidebarItemViewToAnnotation']['delete'](_0x1018b9);}['_createSidebarView'](){const _0x2b0daa=new V(this['context']['locale']);return _0x2b0daa['render'](),this['on']('change:_lastItem',(_0x5c1a97,_0x2fa04a,_0x46e33a,_0x544eb0)=>{_0x544eb0&&_0x2b0daa['unbind']('minHeight'),_0x46e33a?_0x2b0daa['bind']('minHeight')['to'](_0x46e33a,'bottom'):_0x2b0daa['minHeight']=null;}),_0x2b0daa;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x3e704c){const _0x1797e0=this['_sidebarItemViewToAnnotation']['get'](_0x3e704c),_0x5cda0c=_0x1797e0&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x1797e0)-0x1);return _0x5cda0c&&this['getSidebarItemView'](_0x5cda0c)||null;}['_getItemAfter'](_0x3aa149){const _0x3c40db=this['_sidebarItemViewToAnnotation']['get'](_0x3aa149),_0x36409a=_0x3c40db&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x3c40db)+0x1);return _0x36409a&&this['getSidebarItemView'](_0x36409a)||null;}['_alignBeforeItem'](_0x1764ca,_0xdbeb38){_0x1764ca['updateHeight']();const _0x595882=R(_0xdbeb38['bottom']+this['_spaceBetweenItems'],_0x1764ca['top']);return!!_0x595882&&(this['_setItemTop'](_0xdbeb38,_0xdbeb38['top']-_0x595882),!0x0);}['_alignAfterItem'](_0x3a0271,_0x5924b6){_0x3a0271['updateHeight']();const _0x5dcf20=R(_0x3a0271['bottom']+this['_spaceBetweenItems'],_0x5924b6['top']);return!!_0x5dcf20&&(this['_setItemTop'](_0x5924b6,_0x5924b6['top']+_0x5dcf20,!0x1),!0x0);}['_alignToTargetRect'](_0x5ad140){const _0x245b38=this['_sidebarItemViewToAnnotation']['get'](_0x5ad140);if(!_0x245b38||!_0x245b38['target']||!_0x245b38['targetRect'])return;const _0x1ba1e4=this['_getTargetTop'](_0x245b38,_0x245b38['targetRect']);this['_setItemTop'](_0x5ad140,_0x1ba1e4);}['_getTargetTop'](_0x3548f5,_0x44a777){if(null===_0x44a777)return 0x0;if(_0x3548f5['target']instanceof _0x2a3eae)return _0x44a777['top'];{const _0x1f7373=new _0x2a3eae(this['view']['element'])['top'];return _0x44a777['top']-_0x1f7373;}}['_setItemTop'](_0x1e4ece,_0x876c8f,_0x242dbd=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x242dbd&&(_0x876c8f=Math['max'](_0x876c8f,this['_getMaxAvailableTop'](_0x1e4ece))),_0x1e4ece['top']=_0x876c8f;}['_getMaxAvailableTop'](_0x1c4674){let _0x15b8c8=this['_getItemBefore'](_0x1c4674),_0x1875e4=0x0;for(;_0x15b8c8;)_0x15b8c8['updateHeight'](),_0x1875e4+=this['_spaceBetweenItems']+_0x15b8c8['height'],_0x15b8c8=this['_getItemBefore'](_0x15b8c8);return _0x1875e4;}}function R(_0xd3925b,_0x51d596){return Math['max'](_0xd3925b-_0x51d596,0x0);}function y(_0x146481){return null!==_0x146481&&'object'==typeof _0x146481&&0x1===_0x146481['nodeType'];}class e extends _0x100c9b{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,M];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c0ace){super(_0x3c0ace),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x836a36(),this['_refreshPositioningDebounced']=_0x56ae16(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x48cc45=this['context']['plugins']['get'](M),_0x18dbc0=this['context']['plugins']['get'](z);_0x48cc45['register']('wideSidebar',this),_0x18dbc0['container']&&_0x48cc45['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x54d999){if(_0x54d999===this['activeAnnotation'])return;const _0x3e1014=this['context']['plugins']['get'](z);_0x3e1014['_activeAnnotation']=_0x54d999;const _0xf1896a=this['activeAnnotation'];this['activeAnnotation']=_0x54d999,_0x3e1014['refresh']({'blurredAnnotation':_0xf1896a,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x4d7723){this['annotations']=_0x4d7723;const _0x163dac=this['context']['plugins']['get'](z);if(_0x163dac['_annotations']=_0x4d7723,this['isAttached'])throw new _0x2569ef('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x163dac,'set:container',()=>{this['detach'](),this['listenTo'](_0x163dac,'change:container',_0x243ab9=>{_0x243ab9['off'](),this['attach'](_0x4d7723);});}),_0x163dac['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x3e2f45=_0x1c0b68=>{_0x1c0b68['updateTargetRect'](),_0x163dac['addAnnotation'](_0x1c0b68);};for(const _0x4462a5 of _0x4d7723)_0x3e2f45(_0x4462a5);this['listenTo'](_0x4d7723,'add',(_0x2bfb15,_0x1dbf33)=>{_0x3e2f45(_0x1dbf33);}),this['listenTo'](_0x4d7723,'remove',(_0x3f64f4,_0x41d0f7,_0x43756d)=>{_0x163dac['rearrange']({'removedAnnotation':_0x41d0f7,'previousAnnotation':_0x4d7723['get'](_0x43756d-0x1),'nextAnnotation':_0x4d7723['get'](_0x43756d+0x1)}),_0x41d0f7===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x4d7723,'focus',(_0x2cc5e4,_0x149fd8)=>{this['setActiveAnnotation'](_0x149fd8);}),this['listenTo'](_0x4d7723,'blur',()=>{this['setActiveAnnotation'](null);});const _0x3fb122=this['context']instanceof _0x4f4139?this['context']['editors']:new _0x836a36([this['context']]);for(const _0x2679e4 of _0x3fb122)this['_integrateWithEditorAnnotations'](_0x2679e4);this['listenTo'](_0x3fb122,'add',(_0x3c5305,_0x50fe3f)=>{this['listenTo'](_0x50fe3f,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x50fe3f);});}),this['listenTo'](_0x3fb122,'remove',(_0x48c016,_0x47e55b)=>{_0x47e55b['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x47e55b['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x2569ef('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x43e26b=this['context']['plugins']['get'](z);_0x43e26b['_detachFromContainer'](this['annotations']),this['stopListening'](_0x43e26b),this['stopListening'](this['annotations']),this['context']instanceof _0x4f4139&&this['stopListening'](this['context']['editors']);for(const _0x48efce of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x48efce);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0xfae82e){if(!_0xfae82e['plugins']['has']('EditorAnnotations'))return;const _0x3ed690=_0xfae82e['plugins']['get']('EditorAnnotations'),_0x2404f7=()=>{const _0x4fa3b4=_0x3ed690['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x4fa3b4[0x0]||null);};this['listenTo'](_0x3ed690,'refresh',_0x2404f7),this['listenTo'](_0x3ed690,'blur',(_0x15597a,{isAnnotationTracked:_0x336ea4})=>{this['activeAnnotation']&&_0x336ea4(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x3ed690,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x34b2c6=>{_0x3ed690['hasDomSelection']()&&(_0x2404f7(),_0x34b2c6['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x3ed690);}['_destroyEditorAnnotationsIntegration'](_0x5079e3){this['stopListening'](_0x5079e3),this['_editorAnnotations']['remove'](_0x5079e3);}}class D extends _0x59879a{['counterView'];constructor(_0x827887){super(_0x827887);const _0xb52176=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x233620,_0x100c80)=>_0x233620?'...':_0x100c80['toString']()),this['set']('annotationType',''),this['icon']=xt,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0xb52176['to']('annotationType',_0x4d1b40=>'ck-annotation-counter__badge--'+_0x4d1b40),_0xb52176['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0xb52176['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x100c9b{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,M];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5f3c72){super(_0x5f3c72),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x5c62f8),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x836a36(),this['_refreshPositioningDebounced']=_0x56ae16(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x2f4a53(this['context']['locale']),this['balloonPanelView']=new _0x1dbba4(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x1977a2){this['annotations']=_0x1977a2;const _0x18fd9f=this['context']['plugins']['get'](z),_0x1afb9a=this['balloonPanelView'];if(_0x18fd9f['_annotations']=_0x1977a2,this['isAttached'])throw new _0x2569ef('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x18fd9f,'set:container',()=>{this['detach'](),this['listenTo'](_0x18fd9f,'change:container',_0x4667c9=>{_0x4667c9['off'](),this['attach'](_0x1977a2);});}),_0x18fd9f['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x2dc012=_0x579215=>{const _0x231b1e=new D(this['context']['locale']);_0x18fd9f['addAnnotation'](_0x579215,_0x231b1e),this['_annotationToNarrowView']['set'](_0x579215,_0x231b1e),_0x231b1e['bind']('isDirty','annotationType','number')['to'](_0x579215['view'],'isDirty','type','length'),_0x231b1e['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x1afb9a['content']['first']!==_0x579215['view']?(this['_showBalloon'](_0x579215),_0x579215['view']['element']['focus'](),this['setActiveAnnotation'](_0x579215)):this['setActiveAnnotation'](null);});};for(const _0xa59dcf of _0x1977a2)_0x2dc012(_0xa59dcf);this['listenTo'](_0x1977a2,'add',(_0x2dfbdf,_0x3c9fc8)=>{_0x2dc012(_0x3c9fc8);}),this['listenTo'](_0x1977a2,'remove',(_0x3d31ab,_0x4182b6,_0x34850e)=>{this['_annotationToNarrowView']['get'](_0x4182b6)['destroy'](),this['_annotationToNarrowView']['delete'](_0x4182b6),_0x18fd9f['rearrange']({'removedAnnotation':_0x4182b6,'previousAnnotation':_0x1977a2['get'](_0x34850e-0x1),'nextAnnotation':_0x1977a2['get'](_0x34850e+0x1)}),_0x4182b6===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x1977a2,'focus',(_0x5c4b88,_0x23d00a)=>{this['setActiveAnnotation'](_0x23d00a);}),this['listenTo'](_0x1977a2,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x25fe75,_0x28160f)=>{_0x28160f['keyCode']===_0x18edba['esc']&&_0x1afb9a['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x1afb9a['content']['first']),this['_hideBalloon'](),_0x28160f['stopPropagation'](),_0x28160f['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x14ded4,_0x990f1d)=>{const _0x45e6af=_0x990f1d['target'];_0x1afb9a['isVisible']&&_0x1afb9a['element']['contains'](_0x45e6af)||_0x18fd9f['view']['element']['contains'](_0x45e6af)||_0x14ded4['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x2348ca=>_0x2348ca['contains'](_0x45e6af))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x47c365=this['context']instanceof _0x4f4139?this['context']['editors']:new _0x836a36([this['context']]);for(const _0x1e34f7 of _0x47c365)this['_integrateWithEditorAnnotations'](_0x1e34f7);this['listenTo'](_0x47c365,'add',(_0x401a9f,_0x41d092)=>{this['listenTo'](_0x41d092,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x41d092);});}),this['listenTo'](_0x47c365,'remove',(_0x53d0ab,_0x34369f)=>{_0x34369f['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x34369f['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x45a8b2){if(_0x45a8b2===this['activeAnnotation'])return;const _0x1ab166=this['context']['plugins']['get'](z);if(_0x1ab166['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x45a8b2,'disableAnimationOnActivatedAnnotation':!0x0}),_0x45a8b2)_0x1ab166['getSidebarItemView'](_0x45a8b2)?this['_showBalloon'](_0x45a8b2):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x45a8b2;}['detach'](){if(!this['isAttached'])throw new _0x2569ef('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0xb02d4f=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x596211=>_0x596211['destroy']()),this['_annotationToNarrowView']['clear'](),_0xb02d4f['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x4f4139&&this['stopListening'](this['context']['editors']);for(const _0x416d4f of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x416d4f);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['_selectedAnnotations']=[],this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['bodyCollection']['detachFromDom']();}['_integrateWithEditorAnnotations'](_0x55ccb5){if(!_0x55ccb5['plugins']['has']('EditorAnnotations'))return;const _0x695a51=_0x55ccb5['plugins']['get']('EditorAnnotations'),_0x8e5d06=this['context']['plugins']['get'](z),_0x3c51f4=this['annotations'],_0x56a97a=this['balloonPanelView'],_0x280d0c=()=>{const _0x86db58=_0x695a51['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x86db58),this['setActiveAnnotation'](_0x86db58[0x0]||null);};this['listenTo'](_0x695a51,'refresh',_0x280d0c),this['listenTo'](_0x695a51,'blur',(_0x5e7524,{isAnnotationTracked:_0x3f930d})=>{this['activeAnnotation']&&_0x3f930d(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x695a51,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x3c51f4,'blur',_0x4cad41=>{_0x695a51['hasDomSelection']()&&_0x4cad41['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x45c624,_0x236453)=>{const _0x28ab47=_0x236453['target'];_0x56a97a['isVisible']&&_0x56a97a['element']['contains'](_0x28ab47)||_0x8e5d06['view']['element']['contains'](_0x28ab47)||this['activeAnnotation']&&_0x695a51['hasDomSelection']()&&(_0x280d0c(),_0x45c624['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x695a51);}['_destroyEditorAnnotationsIntegration'](_0x530680){_0x530680&&(this['stopListening'](_0x530680),this['_editorAnnotations']['remove'](_0x530680));}['_setSelectedAnnotations'](_0x2b10d9){for(const _0x4bec22 of this['_selectedAnnotations'])_0x2b10d9['includes'](_0x4bec22)||this['_manuallyClosedAnnotationViews']['delete'](_0x4bec22['view']);this['_selectedAnnotations']=_0x2b10d9;}['_refreshPositioning'](){const _0x25b814=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x25b814['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x6f3782){if(this['_manuallyClosedAnnotationViews']['has'](_0x6f3782['view']))return;const _0xd10d5d=this['balloonPanelView']['content']['first'];_0xd10d5d!==_0x6f3782['view']?(_0xd10d5d&&this['_detachListeners'](_0xd10d5d),this['_attachListeners'](_0x6f3782['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x6f3782['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x587132=this['balloonPanelView']['content']['first'],_0x2897af=_0x587132&&this['annotations']['getByView'](_0x587132);if(!_0x2897af||!this['_annotationToNarrowView']['has'](_0x2897af))return;const _0x14fd75=this['_annotationToNarrowView']['get'](_0x2897af)['element'],_0x488059=(function(){const _0x597a77=_0x1dbba4['defaultPositions'];return[_0x597a77['southArrowNorthEast'],_0x597a77['northArrowSouthEast'],_0x597a77['southArrowNorth'],_0x597a77['northArrowSouth'],_0x597a77['southArrowNorthWest'],_0x597a77['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x14fd75,'positions':_0x488059});}['_hideBalloon'](){const _0x400a9b=this['balloonPanelView'],_0x3cae68=_0x400a9b['content']['first'];_0x3cae68&&(this['_detachListeners'](_0x3cae68),_0x400a9b['unpin'](),_0x400a9b['content']['clear']());}['_attachListeners'](_0x4ce603){this['listenTo'](_0x4ce603,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x4ce603,'Esc',(_0x5764de,_0x5b8eb5)=>{this['_manuallyClosedAnnotationViews']['add'](_0x4ce603),this['_hideBalloon'](),_0x5b8eb5();});}['_detachListeners'](_0x558e17){this['stopListening'](_0x558e17);}}class c extends _0x3731df{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x169945,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x40405d){super(_0x40405d),_0x40405d['editing']['view']['addObserver'](_0xf633b7),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x40405d['plugins']['get'](_0x169945),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x2a2309=this['editor']['plugins']['get'](M);_0x2a2309['context']===this['editor']&&(_0x2a2309['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x1e8d05,_0x396126)=>{const _0x258e93=this['_balloon'];if(this['isAttached']&&_0x258e93['visibleView']){const _0x430df1=this['annotations']['getByView'](_0x258e93['visibleView']);_0x430df1&&this['_closeAnnotation'](_0x430df1),_0x396126();}}));}['afterInit'](){const _0x307773=this['editor']['plugins']['get'](M);_0x307773['context']===this['editor']&&(_0x307773['hasActive']()||_0x307773['switchTo']('inline'));}['setActiveAnnotation'](_0x473bb4){_0x473bb4!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x473bb4&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x473bb4)&&this['_addAnnotationToBalloon'](_0x473bb4,!0x0),_0x473bb4['isActive']=!0x0),_0x473bb4||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x473bb4);}['attach'](_0x5efaf8){this['annotations']=_0x5efaf8;const _0x34a52f=this['editor']['plugins']['get'](M),_0x299326=this['_balloon'];if(this['isAttached'])throw new _0x2569ef('inlineannotations-attach-already-attached',this);if(_0x34a52f['context']!==this['editor'])throw new _0x2569ef('inlineannotations-not-allowed-with-context',this);const _0x15bc3b=this['editor']['plugins']['get'](P);this['listenTo'](_0x15bc3b,'refresh',()=>{const _0x10de24=_0x15bc3b['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x5d7f3f,_0x1c3c72;!this['_forceRefresh']&&(_0x5d7f3f=_0x10de24,_0x1c3c72=this['_selectedAnnotations'],_0x5d7f3f['length']===_0x1c3c72['length']&&_0x5d7f3f['every'](_0x56bdb5=>_0x1c3c72['includes'](_0x56bdb5)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x10de24),this['setActiveAnnotation'](_0x10de24[0x0]||null));}),this['listenTo'](_0x15bc3b,'blur',(_0xef2174,{isAnnotationTracked:_0x15a9c1})=>{this['activeAnnotation']&&_0x15a9c1(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0xac16f0,_0x212fdd,_0x5d3fb5)=>{_0x5d3fb5||this['setActiveAnnotation'](null);}),this['listenTo'](_0x5efaf8,'remove',(_0x177e06,_0x437e69)=>{this['_removeAnnotationFromBalloon'](_0x437e69),_0x437e69===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x299326,'change:visibleView',(_0x1ee42b,_0x3acd17,_0x1806cc,_0x5e18b9)=>{_0x5e18b9&&this['stopListening'](_0x5e18b9);const _0x420ac8=_0x5efaf8['getByView'](_0x1806cc);_0x1806cc&&_0x420ac8&&(this['listenTo'](_0x1806cc,'change:height',()=>{_0x299326['updatePosition']();}),this['listenTo'](_0x1806cc,'Esc',()=>{this['_closeAnnotation'](_0x420ac8),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x420ac8&&this['setActiveAnnotation'](_0x420ac8));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x299326['visibleView']&&(_0x5efaf8['getByView'](_0x299326['visibleView'])&&_0x299326['updatePosition']());}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',()=>{this['_forceRefresh']=!0x0,this['_manuallyClosed']['clear']();}),this['editor']['editing']['view']['document']['selection']['editableElement']&&this['editor']['editing']['view']['focus'](),this['isAttached']=!0x0;}['detach'](){if(!this['isAttached'])throw new _0x2569ef('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x1f0faa of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x1f0faa);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x497be){for(const _0x46a7d0 of this['_selectedAnnotations'])_0x497be['includes'](_0x46a7d0)||this['_manuallyClosed']['delete'](_0x46a7d0);for(const _0x106440 of this['annotations'])_0x497be['includes'](_0x106440)||this['_removeAnnotationFromBalloon'](_0x106440);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x4e2916 of _0x497be)this['_addAnnotationToBalloon'](_0x4e2916);}this['_selectedAnnotations']=_0x497be;}['_addAnnotationToBalloon'](_0x5a35c8,_0xe264b8=!0x1){this['_manuallyClosed']['has'](_0x5a35c8)||(this['_addedAnnotations']['has'](_0x5a35c8)||this['_balloon']['hasView'](_0x5a35c8['view'])||(this['_addedAnnotations']['add'](_0x5a35c8),this['_balloon']['add']({'stackId':_0x5a35c8['view']['id'],'view':_0x5a35c8['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x5a35c8)}})),_0xe264b8&&this['_balloon']['showStack'](_0x5a35c8['view']['id']));}['_getBalloonTargetForAnnotation'](_0x139b53){const _0x128be2=_0x139b53['target'],_0x4025c9=this['editor']['editing']['view'],_0x1a3103=_0x4025c9['document']['selection']['getFirstRange'](),_0x2e5806=_0x4025c9['domConverter']['viewRangeToDom'](_0x1a3103);if(_0x2e5806['collapse'](!0x0),_0x128be2){if(_0x128be2 instanceof _0x2a3eae)return _0x128be2;let _0x448293=[];for(const _0x3561e9 of _0x128be2)_0x448293['push'](...(_0x49b912=_0x3561e9['getClientRects'](),Array['from'](_0x49b912)['map'](DOMRect['fromRect'])));_0x448293=function(_0x87e0d4){const _0x122605=[];let _0x1c98e6=_0x87e0d4[0x0];for(let _0x137584=0x1;_0x137584<_0x87e0d4['length'];_0x137584++)b(_0x1c98e6,_0x87e0d4[_0x137584])?_0x1c98e6['width']+=_0x87e0d4[_0x137584]['width']:(_0x122605['push'](_0x1c98e6),_0x1c98e6=_0x87e0d4[_0x137584]);return _0x122605['push'](_0x1c98e6),_0x122605;}(_0x448293);const _0x293cef=_0x2e5806['getBoundingClientRect']();return _0x448293['find'](_0xc5402d=>_0xc5402d['top']<=_0x293cef['top']&&_0xc5402d['bottom']>=_0x293cef['bottom']&&_0xc5402d['left']<=_0x293cef['left']&&_0xc5402d['right']>=_0x293cef['right'])||_0x448293[0x0];}var _0x49b912;return _0x139b53['targetRect']||_0x2e5806;}['_removeAnnotationFromBalloon'](_0x8f1dd9){this['_addedAnnotations']['has'](_0x8f1dd9)&&this['_balloon']['hasView'](_0x8f1dd9['view'])&&(this['_addedAnnotations']['delete'](_0x8f1dd9),this['_balloon']['remove'](_0x8f1dd9['view']));}['_closeAnnotation'](_0xd27b03){this['_manuallyClosed']['add'](_0xd27b03),this['_removeAnnotationFromBalloon'](_0xd27b03);}}function b(_0x46efbf,_0x4ab60a){return _0x46efbf['top']===_0x4ab60a['top']&&_0x46efbf['bottom']===_0x4ab60a['bottom']&&_0x46efbf['right']===_0x4ab60a['left'];}var Z='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M14\x203.5A3.5\x203.5\x200\x200\x201\x2017.5\x207v6l-.005.192a3.501\x203.501\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.37-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.272-2.63l-.062-.07-4.729-.046a3.5\x203.5\x200\x200\x201-3.5-3.5v-6a3.5\x203.5\x200\x200\x201\x203.5-3.5L14\x203.5ZM3.5\x204.954a2\x202\x200\x200\x200-2\x202v6a2\x202\x200\x200\x200\x202\x202L8.924\x2015a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L12.962\x2015H14a2\x202\x200\x200\x200\x202-2V7a2\x202\x200\x200\x200-2-2L3.5\x204.954Z\x22/><path\x20d=\x22M16.5.5h-10a3.5\x203.5\x200\x200\x200-3.162\x202h1.84A2\x202\x200\x200\x201\x206.5\x202h10a2\x202\x200\x200\x201\x202\x202v8.873a3.502\x203.502\x200\x200\x200\x201.495-2.681L20\x2010V4A3.5\x203.5\x200\x200\x200\x2016.5.5Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M12.013\x207.453a.75.75\x200\x200\x201\x20.034\x201.06l-3.75\x204a.75.75\x200\x200\x201-1.045.048l-2.25-2a.75.75\x200\x200\x201\x20.996-1.122l1.704\x201.515\x203.25-3.467a.75.75\x200\x200\x201\x201.061-.034Z\x22/></svg>\x0a';class tt extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x2f71e1,_0x198a5b){super(_0x2f71e1),this['set']('isEmpty',!_0x198a5b['length']),this['focusTracker']=new _0x5ad3fb(),this['_annotationViews']=_0x198a5b,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x198a5b,'focusTracker':this['focusTracker']}),this['listenTo'](_0x198a5b,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x198a5b,'remove',(_0x2868c6,_0x20582e)=>{_0x20582e['isActive']&&this['focus'](),_0x198a5b['length']||(this['isEmpty']=!0x0);});const _0x21047b=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x2f71e1,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x198a5b},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x21047b['if']('isEmpty','ck-hidden',_0x329135=>!_0x329135)]},'children':[{'text':S(_0x2f71e1,'EMPTY_COMMENTS_ARCHIVE')}]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy']();}['focus'](){this['focusCycler']['first']?this['focusCycler']['focusFirst']():this['element']['focus']();}['_setupKeyboardNavigation'](){for(const _0x16f0ab of this['_annotationViews'])this['focusTracker']['add'](_0x16f0ab['element']);this['_annotationViews']['on']('change',(_0x58bb38,{added:_0x4bbfca,removed:_0x4fa104})=>{for(const _0x4ca8cb of _0x4bbfca)this['focusTracker']['add'](_0x4ca8cb['element']);for(const _0x54f799 of _0x4fa104)this['focusTracker']['remove'](_0x54f799['element']);});}}class f extends _0x100c9b{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x1c75d9){super(_0x1c75d9),this['archivedThreads']=new _0x836a36();}['init'](){const _0x301236=this['context'],_0x2cf171=_0x301236['plugins']['get'](o),_0x3f8a49=_0x301236['plugins']['get'](N);this['listenTo'](_0x2cf171,'addCommentThread',(_0x2c1274,{threadId:_0x2f7720})=>{const _0x4f9fe=_0x2cf171['getCommentThread'](_0x2f7720);_0x4f9fe['archivedAt']&&this['archivedThreads']['add'](_0x4f9fe,this['_calculatePosition'](_0x4f9fe['archivedAt'])),this['listenTo'](_0x4f9fe,'change:archivedAt',(_0x27dc72,_0x39c4fc,_0x424ae7)=>{_0x424ae7?this['archivedThreads']['has'](_0x4f9fe)||this['archivedThreads']['add'](_0x4f9fe,this['_calculatePosition'](_0x4f9fe['archivedAt'])):this['archivedThreads']['has'](_0x4f9fe)&&this['archivedThreads']['remove'](_0x4f9fe);});}),this['listenTo'](_0x2cf171,'removeCommentThread',(_0x46a00d,{threadId:_0x10a5ed})=>{const _0x34f4d4=_0x2cf171['getCommentThread'](_0x10a5ed);this['stopListening'](_0x34f4d4),this['archivedThreads']['has'](_0x34f4d4)&&this['archivedThreads']['remove'](_0x34f4d4);},{'priority':'highest'}),this['listenTo'](_0x3f8a49['collection'],'focus',(_0x404e9f,_0x47c1e6)=>{_0x47c1e6['isVisible']||(_0x47c1e6['isActive']=!0x0,_0x3f8a49['activate'](_0x47c1e6));});}['_calculatePosition'](_0xb0a67f){const _0x380d3a=[...this['archivedThreads']]['findIndex'](_0x2564a3=>_0x2564a3['archivedAt']<_0xb0a67f);return _0x380d3a>-0x1?_0x380d3a:this['archivedThreads']['length'];}}class a extends _0x3731df{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x56a89c];}constructor(_0x4776ef){super(_0x4776ef),this['annotationViews']=new _0x21afed(),this['_pendingThreads']=[];}['init'](){const _0x4045c5=this['editor'],_0x3c334a=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x4045c5['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x59879a,!0x0)),_0x4045c5['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x1a0b16=this['_createCommentsArchiveButton'](_0x16cede);return _0x1a0b16['set']({'role':'menuitemcheckbox'}),_0x1a0b16;});const _0x17a297=_0x4045c5['plugins']['get'](f),_0x455bc4=_0x4045c5['plugins']['get']('Annotations'),_0x3d928b=_0x4045c5['plugins']['get']('CommentsRepository');this['listenTo'](_0x17a297['archivedThreads'],'add',(_0x196e28,_0x2e64c6)=>{const _0x5589e2=_0x4045c5['config']['get']('collaboration.channelId');if(!_0x5589e2||_0x2e64c6['channelId']===_0x5589e2){const _0x264797=_0x3d928b['_threadToController']['get'](_0x2e64c6);if(!_0x264797)return void this['_pendingThreads']['push'](_0x2e64c6);const _0x31456e=this['_calculatePosition'](_0x2e64c6['archivedAt']),_0x10165b=_0x455bc4['getByInnerView'](_0x264797['view']);_0x10165b['isVisible']&&_0x455bc4['_visibleAnnotations']['remove'](_0x10165b),this['annotationViews']['add'](_0x10165b['view'],_0x31456e);}}),this['listenTo'](_0x455bc4['collection'],'add',(_0x2f6561,_0xdb4729)=>{const _0x2f06fd=this['_pendingThreads']['find'](_0x902b94=>{const _0xc1303a=_0x3d928b['_threadToController']['get'](_0x902b94);return _0xc1303a&&_0xdb4729['innerView']===_0xc1303a['view'];});if(_0x2f06fd){const _0x8666bf=this['_calculatePosition'](_0x2f06fd['archivedAt']);this['annotationViews']['add'](_0xdb4729['view'],_0x8666bf),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x2f06fd),0x1);}}),this['listenTo'](_0x17a297['archivedThreads'],'remove',(_0x5ae82d,_0x1624ac)=>{const _0x3706ec=_0x4045c5['config']['get']('collaboration.channelId');if(!_0x3706ec||_0x1624ac['channelId']===_0x3706ec){const _0x4cd6a9=_0x3d928b['_threadToController']['get'](_0x1624ac),_0x495bff=_0x455bc4['getByInnerView'](_0x4cd6a9['view']);this['annotationViews']['remove'](_0x495bff['view']),this['stopListening'](_0x495bff['focusableElements']);}}),this['listenTo'](_0x455bc4['collection'],'add',(_0x4ad124,_0x2feeb5)=>{this['listenTo'](_0x2feeb5,'escape',_0x3c334a);}),this['listenTo'](_0x455bc4['collection'],'remove',(_0x5d3c8f,_0x51ad0b)=>{this['stopListening'](_0x51ad0b,'escape',_0x3c334a);});}['_calculatePosition'](_0x17cff9){const _0x41c305=this['editor']['config']['get']('collaboration.channelId'),_0x1f6ed4=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x4660d3=>_0x4660d3['channelId']===_0x41c305)['findIndex'](_0x60cf9c=>_0x60cf9c['archivedAt']<_0x17cff9);return _0x1f6ed4<0x0||_0x1f6ed4>this['annotationViews']['length']?this['annotationViews']['length']:_0x1f6ed4-0x1;}['_toggleDialog'](){const _0x25f133=this['editor'],_0x45c1d3=_0x25f133['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x25f133['locale'],this['annotationViews'])),'commentsArchive'===_0x45c1d3['id']?_0x45c1d3['hide']():_0x45c1d3['show']({'id':'commentsArchive','title':S(_0x25f133['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x68270e['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0xa6de4e,_0x1e0a62=!0x1){const _0x21f054=this['editor']['locale'],_0x344c6b=this['editor']['plugins']['get']('Dialog'),_0x20b549=new _0xa6de4e(_0x21f054);return _0x20b549['bind']('isEnabled')['to'](this,'isEnabled'),_0x20b549['bind']('isOn')['to'](_0x344c6b,'id',_0x2c3ace=>'commentsArchive'===_0x2c3ace),_0x20b549['set']({'label':S(_0x21f054,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x1e0a62&&(_0x20b549['tooltip']=!0x0),this['listenTo'](_0x20b549,'execute',()=>this['_toggleDialog']()),_0x20b549;}['_hideDialogOnAnnotationEscape']=_0x5c6498=>{const _0x3f3ed8=_0x5c6498['source'];if(!this['annotationViews']['has'](_0x3f3ed8['view']))return;const _0x9cedf4=this['editor']['plugins']['get']('Dialog');_0x9cedf4['isOpen']&&'commentsArchive'===_0x9cedf4['id']&&(_0x9cedf4['hide'](),_0x5c6498['stop']());};}class p extends _0x3731df{static get['requires'](){return[o,r,i,f,a,s,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{d as Annotation,x as AnnotationCollection,T as AnnotationView,N as Annotations,M as AnnotationsUIs,ss as BaseCommentThreadView,os as BaseCommentView,re as Comment,oe as CommentThread,yt as CommentThreadController,ie as CommentThreadInputView,Ct as CommentThreadView,vt as CommentView,p as Comments,f as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,e as WideSidebar};
23
+ import{Editor as _0x7b8ae4,icons as _0x3754dc,ContextPlugin as _0x33497c,PendingActions as ht,Command as _0x103186,Plugin as _0x3a3b81,Context as _0x2ef1cd}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x14feae,uid as _0x442df7,KeystrokeHandler as jt,FocusTracker as _0x36f890,diff as _0x4c46f7,Collection as _0x7c7e6e,Rect as _0x30b314,CKEditorError as _0x346f93,first as _0x88e0b3,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0x1bf9b5,keyCodes as _0x1e16ed}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x22ff58,AriaDescriptionView as ts,setupThreadKeyboardNavigation as _0x1f2ff8,ConfirmMixin as ti,LateFocusButtonView as _0x1900b7,trimHtml as _0x1c7267,LateFocusDropdownButtonView as _0x56ddee,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x139946}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as yt,debounce as _0x2dddc1}from'lodash-es';import{EditorUIView as Yt,InlineEditableUIView as $t,EditorUI as Vt,View as kt,FocusCycler as Ft,ButtonView as _0x3ea547,ViewCollection as _0x2cd9a9,createDropdown as _0x3dc29b,ListView as _0x4e4552,focusChildOnDropdownOpen as _0x5d33d9,ListItemView as _0x36f369,MenuBarMenuListItemButtonView as _0x22933f,BodyCollection as _0x17836d,BalloonPanelView as _0x4cbc09,ContextualBalloon as _0x49da12,Dialog as _0xb3c417,DialogViewPosition as _0x539a3d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x2a5d33}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as Bt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as Et,ShiftEnter as Gt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Jt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Kt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Nt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Qt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x5ee158}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x395dd4}from'@ckeditor/ckeditor5-widget/dist/index.js';class Ct extends/* #__PURE__ -- @preserve */
24
+ _0x14feae(){['model'];['view'];constructor(_0x28afb7,_0x2c7661){super(),this['model']=_0x28afb7,this['model']['_isAttached']=!0x0,this['view']=_0x2c7661,this['listenTo'](_0x2c7661,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x2c7661,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x2c7661,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x2c7661,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x2c7661,'addComment',(_0x3d0cdd,_0x3c8b01)=>this['addComment'](_0x3c8b01)),this['listenTo'](_0x2c7661,'updateComment',(_0x1b6883,_0x373fff,_0x54c4e4)=>this['updateComment'](_0x373fff,_0x54c4e4)),this['listenTo'](_0x2c7661,'removeComment',(_0x145a09,_0x388e11)=>this['removeComment'](_0x388e11));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x1b331b){this['model']['addComment']({'content':_0x1b331b,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0xf05293,_0x51c6d4){this['model']['getComment'](_0xf05293)['update']({'content':_0x51c6d4});}['removeComment'](_0x1378aa){this['model']['getComment'](_0x1378aa)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x16b287,_0x2a93bc,_0x2599d6){const t=_0x16b287['t'];switch(_0x2a93bc){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'Annotations\x20sidebar':return t('Annotations\x20sidebar');case'Annotations\x20list':return t('Annotations\x20list');case'Thread\x20comments':return t('Thread\x20comments');case'THREAD_CONTEXT_LABEL':return t({'string':'Thread\x20context:\x20%0','id':'THREAD_CONTEXT_LABEL'},_0x2599d6);case'COMMENT_THREAD_LABEL':return t({'string':'Comment\x20thread\x20by\x20%1.\x20%1\x20reply.','plural':'Comment\x20thread\x20by\x20%1.\x20%0\x20replies.','id':'COMMENT_THREAD_LABEL'},_0x2599d6);case'COMMENT_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'COMMENT_THREAD_DESCRIPTION'});case'COMMENT_ARIA_LABEL':return t({'string':'Comment\x20by\x20%0.\x20Created\x20on\x20%1.\x20%2.\x20%3','id':'COMMENT_ARIA_LABEL'},_0x2599d6);case'LEAVE_COMMENT_ANNOUNCEMENT':return t({'string':'Leaving\x20a\x20content\x20with\x20comments.','id':'LEAVE_COMMENT_ANNOUNCEMENT'});case'ENTER_COMMENT_ANNOUNCEMENT':return t({'string':'Entering\x20a\x20content\x20with\x20comments.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_COMMENT_ANNOUNCEMENT'},_0x2599d6);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x2599d6);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x2599d6);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2599d6);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2599d6);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Xt extends Yt{['main'];['editable'];constructor(_0x115e6a,_0xfac009){super(_0x115e6a);const _0x58190b=_0x442df7();this['main']=this['createCollection'](),this['editable']=new $t(_0x115e6a,_0xfac009,void 0x0,{'label':()=>S(_0x115e6a,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x115e6a['uiLanguageDirection'],'lang':_0x115e6a['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x58190b},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Ot extends Vt{['view'];constructor(_0x5af2bd){super(_0x5af2bd),this['view']=new Xt(_0x5af2bd['locale'],_0x5af2bd['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x450458=this['editor']['editing']['view'],_0x2e9e88=this['view']['editable'],_0x4e1d15=_0x450458['document']['getRoot']();_0x2e9e88['name']=_0x4e1d15['rootName'],this['view']['render']();const _0x41cf4b=_0x2e9e88['element'];this['setEditableElement'](_0x2e9e88['name'],_0x41cf4b),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x450458['attachDomRoot'](_0x41cf4b),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Rt=[Bt,Et,Gt,Jt,Kt,Nt,Qt];class Ut extends/* #__PURE__ -- @preserve */
25
+ _0x14feae(_0x7b8ae4){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Rt)());constructor(_0x543450={}){function _0x2c0609(_0x323d12){return _0x323d12['map'](_0x529c1b=>String['fromCharCode'](_0x529c1b))['join']('');}(_0x543450=Object['assign']({},_0x543450))['plugins']||(_0x543450['plugins']=Ut['defaultPlugins']),super(_0x543450),this['ui']=new Ot(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x2c0609([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c0609([0x76,0x69,0x65,0x77])][_0x2c0609([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c0609([0x61,0x75,0x74,0x6f]),this[_0x2c0609([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2c0609([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c0609([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2c0609([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2c0609([0x6f,0x6b])});}['create'](){const _0xbfcce7=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0xbfcce7))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x28e331=>{const _0x43f34b=this['model']['document']['getRoot'](),_0x30a666=_0x43f34b&&_0x43f34b['getChild'](_0x43f34b['childCount']-0x1);_0x28e331['setSelection'](_0x30a666,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x688c7=this['editing']['view'],_0xdf9de4=_0x688c7['document']['getRoot'](),_0x3dd722=_0xdf9de4['getChild'](0x0);_0xdf9de4['childCount']>0x1||!_0x3dd722||'p'!=_0x3dd722['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x688c7,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x3dd722['placeholder']=this['placeholder']),St({'view':_0x688c7,'element':_0x3dd722,'keepOnFocus':!0x0}),this['placeholderElement']=_0x3dd722);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x4d2daa,_0x5abfd1={}){super(_0x4d2daa),this['editor']=null,this['_editorConfig']=_0x5abfd1,this['set']('value',_0x5abfd1['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x4d2daa,'Reply...')),this['set']('submitLabel',S(_0x4d2daa,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x36f890(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x1210c8,_0x356046)=>{this['cancelButtonView']['fire']('execute'),_0x356046();}),this['keystrokes']['set']('Ctrl+Enter',(_0x18d035,_0x79e66a)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x79e66a());}),this['on']('submit',(_0x36aeb8,_0x57b171)=>{_0x57b171['length']>0xfde8?(alert(S(_0x4d2daa,'TOO_LONG_COMMENT_ALERT',[_0x57b171['length'],0xfde8])),_0x36aeb8['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Ut(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x4c8904=this['editor'];this['element']['insertBefore'](_0x4c8904['ui']['element'],this['element']['firstChild']),_0x4c8904['model']['document']['on']('change',()=>this['value']=_0x4c8904['getData']()),_0x4c8904['bind']('placeholder')['to'](this),this['focusables']['add'](_0x4c8904['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x2bd3de){-0x1===_0x2bd3de?(this['focusCycler']['focusFirst'](),this['focusCycler']['focusLast']()):this['focusCycler']['focusFirst']();}async['destroy'](){this['_isDestroyed']||(this['_isDestroyed']=!0x0,this['editor']&&(await this['_editorCreationPromise'],await this['editor']['destroy'](),this['fire']('editorDestroyed',this['editor'])),await super['destroy']());}['_createSubmitButton'](){const {locale:_0x414aec}=this,_0x51b2ae=new _0x3ea547(_0x414aec);return _0x51b2ae['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x51b2ae['withText']=!0x0,_0x51b2ae['bind']('label')['to'](this,'submitLabel'),_0x51b2ae['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x51b2ae['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x1f84d7,_0x5dde39)=>!_0x5dde39&&!!_0x1f84d7['trim']()),_0x51b2ae;}['_createCancelButton'](){const {locale:_0x3cf62e}=this,_0x2508e2=new _0x3ea547(_0x3cf62e);return _0x2508e2['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x2508e2['label']=S(_0x3cf62e,'Cancel'),_0x2508e2['withText']=!0x0,_0x2508e2['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x2508e2;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0xa3d88e=>{this['focusTracker']['add'](_0xa3d88e['element']);}),this['focusables']['on']('change',(_0x190f2f,_0x31f65c)=>{for(const _0x5ae977 of Array['from'](_0x31f65c['added'])['reverse']())this['focusTracker']['add'](_0x5ae977['element']);});}}class ie extends kt{constructor(_0x447075,_0x1cc284,_0x4dbbe8){super(_0x447075),this['commentInputView']=new os(_0x447075,_0x4dbbe8),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x559741,_0x548e95)=>_0x559741||!!_0x548e95),this['set']('showInput',!0x1),this['on']('change:showInput',()=>{this['showInput']&&!this['commentInputView']['editor']&&this['commentInputView']['createEditor']();}),this['commentInputView']['delegate']('editorReady')['to'](this),this['commentInputView']['delegate']('editorDestroyed')['to'](this),this['userView']=new _0x22ff58(_0x447075,_0x1cc284),this['userView']['extendTemplate']({'attributes':{'class':'ck-thread__user','aria-hidden':!0x0}}),this['commentInputView']['extendTemplate']({'attributes':{'class':'ck-thread__input'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-container',this['bindTemplate']['if']('showInput','ck-comment__input-container--active')]},'children':[this['userView'],this['commentInputView']]});}['render'](){super['render'](),this['_focusOnNonInteractiveMouseDown']();}['destroy'](){return this['commentInputView']['destroy']()['then'](()=>super['destroy']());}['focus'](_0x28e649){this['commentInputView']['focus'](_0x28e649);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x3ca795,_0x3e7643)=>{const {submitButtonView:_0x2b0d54,cancelButtonView:_0xee2f03,editor:_0x15827d}=this['commentInputView'];[_0x2b0d54['element'],_0xee2f03['element'],_0x15827d?_0x15827d['editing']['view']['getDomRoot']():null]['filter'](_0x37f77=>_0x37f77)['some'](_0x3004f3=>_0x3004f3['contains'](_0x3e7643['target']))||(this['focus'](),_0x3e7643['preventDefault']());});}}class cs extends kt{constructor(_0x2c76c3){super(_0x2c76c3);const _0x120f05=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x120f05['to']('count',_0x25629c=>S(_0x2c76c3,'NUMBER_OF_COMMENTS',_0x25629c))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x454ae8,_0xad0b60,_0x412a3a){super(_0x454ae8);const _0x65f15=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0xad0b60['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0xad0b60,this['_config']=_0x412a3a,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x36f890(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5130b6=>this['commentViews']['map'](_0x34b9f0=>_0x34b9f0['element'])['includes'](_0x5130b6['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x454ae8),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x31533a=>_0x31533a-this['_config']['maxCommentsWhenCollapsed']);for(const _0x449d81 of _0xad0b60['comments'])this['_handleNewCommentModel'](_0x449d81);this['_handleInfoComment'](),this['listenTo'](_0xad0b60['comments'],'add',(_0x4305b9,_0x3e454c)=>{const _0x19f748=this['_calculatePosition'](_0x3e454c);this['length']++,this['_handleNewCommentModel'](_0x3e454c,_0x19f748),this['refreshVisibleViews']();}),this['listenTo'](_0xad0b60['comments'],'remove',(_0x4b75b1,_0x20bce3)=>{this['length']--,this['_handleRemoveCommentModel'](_0x20bce3),this['refreshVisibleViews']();}),this['listenTo'](_0xad0b60,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0xad0b60,'change:isResolved',()=>this['_handleInfoComment']()),this['on']('change:isActive',()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this['setTemplate']({'tag':'ul','attributes':{'class':['ck-thread__comments',_0x65f15['if']('length','ck-hidden',_0x3f8fc5=>!_0x3f8fc5)],'aria-label':S(_0x454ae8,'Thread\x20comments')},'children':this['visibleViews']});}get['_shouldCollapse'](){return this['_model']['weight']>this['_config']['maxThreadTotalWeight']&&!this['isActive']&&!this['hasDirtyComment'];}['render'](){super['render'](),this['refreshVisibleViews'](),this['_setupKeyboardNavigation']();}['focus'](_0x57c190){-0x1===_0x57c190?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x3d5367 of this['commentViews'])_0x3d5367['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x1b01a5,_0x511a59){const _0x1d1bbc=new this['_config']['CommentView'](this['locale'],_0x1b01a5,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x1d1bbc['viewUid']=_0x1b01a5['id'],_0x1d1bbc['delegate']('removeComment')['to'](this),_0x1d1bbc['delegate']('updateComment')['to'](this),_0x1d1bbc['delegate']('resolveCommentThread')['to'](this),_0x1d1bbc['delegate']('editorReady')['to'](this),_0x1d1bbc['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x1d1bbc,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x1d1bbc,_0x511a59);}['_calculatePosition'](_0x51076a){const _0x2b51bb=this['_model']['_findOptimalIndex'](_0x51076a);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x51076a['authoredAt']?_0x2b51bb-0x1:_0x2b51bb:_0x2b51bb-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x32a17c={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':S(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x32a17c,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x32a17c));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x473f15){const _0x2b9f31=this['commentViews']['remove'](_0x473f15['id']);this['stopListening'](_0x2b9f31),_0x2b9f31['isEditMode']&&this['_updateHasDirtyComment'](),_0x2b9f31['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x14caaf=>_0x14caaf['isEditMode']);}['_rearrangeCollapse'](){const _0x1c0be0=function(_0x239dc0){const _0x5e3ce4=new _0x7c7e6e();for(const _0x155c91 of _0x239dc0)_0x5e3ce4['add'](_0x155c91);return _0x5e3ce4;}(this['commentViews']),_0x49ffae=this['_collapsedCommentsView']['count'];for(let _0x55d443=0x1;_0x55d443<=_0x49ffae;_0x55d443++)_0x1c0be0['remove'](0x1);for(const _0xe366b5 of _0x1c0be0)_0xe366b5['collapse']();_0x49ffae>0x0&&_0x1c0be0['add'](this['_collapsedCommentsView'],0x1),as(_0x4c46f7(Array['from'](this['visibleViews']),Array['from'](_0x1c0be0)),this['visibleViews'],_0x1c0be0);}['_rearrangeExpand'](){as(_0x4c46f7(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x4d006f of this['visibleViews'])_0x4d006f['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x2e4253=>{this['focusTracker']['add'](_0x2e4253['element']),this['keystrokes']['listenTo'](_0x2e4253['element']);}),this['commentViews']['on']('change',(_0x334cad,_0x46a212)=>{for(const _0x332d82 of _0x46a212['removed'])this['focusTracker']['remove'](_0x332d82['element']),this['keystrokes']['stopListening'](_0x332d82['element']);for(const _0x2edee5 of Array['from'](_0x46a212['added'])['reverse']())this['focusTracker']['add'](_0x2edee5['element']),this['keystrokes']['listenTo'](_0x2edee5['element']);});}}function as(_0x29a6f3,_0x2ff20c,_0x51e7a6){let _0x7fe656=0x0;for(const _0x3714ef of _0x29a6f3)switch(_0x3714ef){case'insert':_0x2ff20c['add'](_0x51e7a6['get'](_0x7fe656),_0x7fe656),_0x7fe656++;break;case'delete':_0x2ff20c['remove'](_0x7fe656);break;case'equal':_0x7fe656++;}}class ls extends kt{constructor(_0x165d99){super(_0x165d99);const _0x502941=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x502941['to']('contextValue',_0x571d81=>S(_0x165d99,'THREAD_CONTEXT_LABEL',_0x571d81)),'tabindex':-0x1},'children':[{'text':_0x502941['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Zt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x5591de,_0x19b642){super(_0x5591de);const _0xb55629=this['bindTemplate'];this['_model']=_0x19b642,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x36f890(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x51e027=>!!_0x51e027),this['bind']('contextValue')['to'](this['_model'],'context',_0x25f906=>_0x25f906&&_0x25f906['value']?this['_trimContextValue'](_0x25f906['value']):S(this['locale'],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':['ck-context-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-context',_0xb55629['if']('hasContext','ck-context--quotes')]},'children':[this['contextView']]}]},{'tag':'div','attributes':{'class':['ck-annotation__actions']},'children':[this['reopenButtonView']]}]});}['render'](){super['render'](),this['_attachContextActions'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_createReopenButton'](){const _0xada3d0=new _0x3ea547(this['locale']);return _0xada3d0['label']=S(this['locale'],'Reopen'),_0xada3d0['tooltip']=S(this['locale'],'Reopen'),_0xada3d0['icon']='<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22m5.042\x209.367\x202.189\x201.837a.75.75\x200\x200\x201-.965\x201.149l-3.788-3.18a.747.747\x200\x200\x201-.21-.284.75.75\x200\x200\x201\x20.17-.945L6.23\x204.762a.75.75\x200\x201\x201\x20.964\x201.15L4.863\x207.866h8.917A.75.75\x200\x200\x201\x2014\x207.9a4\x204\x200\x201\x201-1.477\x207.718l.344-1.489a2.5\x202.5\x200\x201\x200\x201.094-4.73l.008-.032H5.042z\x22/></svg>',_0xada3d0['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2ecca6=>!_0x2ecca6),_0xada3d0['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x5caebe,_0x4f502)=>_0x5caebe&&_0x4f502),_0xada3d0['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0xada3d0;}['_trimContextValue'](_0x49160d){if(_0x49160d['length']<0x96)return _0x49160d;const _0x475103=_0x49160d['lastIndexOf']('\x20',0x93);return _0x49160d['substring'](0x0,_0x475103>-0x1?_0x475103:0x93)+'...';}['_attachContextActions'](){const _0x564b7c=this['element']['querySelector']('.ck-context'),_0x559dbb=_0x564b7c['querySelector']('.ck-context__value');this['listenTo'](_0x564b7c,'mouseenter',()=>{_0x559dbb['offsetWidth']<_0x559dbb['scrollWidth']&&_0x564b7c['classList']['add']('overlay');}),this['listenTo'](_0x564b7c,'mouseleave',()=>{_0x564b7c['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x5c15f7 of this['focusables'])this['focusTracker']['add'](_0x5c15f7['element']),this['keystrokes']['listenTo'](_0x5c15f7['element']);}['_createContextView'](){const _0x24c7a4=new ls(this['locale']);return _0x24c7a4['bind']('contextValue')['to'](this),_0x24c7a4;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x5eacf0,_0x185ec4,_0x1a214c,_0x33e0b2){super(_0x5eacf0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x185ec4,this['_localUser']=_0x1a214c,this['_config']=_0x33e0b2,this['commentThreadHeaderView']=new Zt(_0x5eacf0,_0x185ec4),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new ts(_0x5eacf0,S(_0x5eacf0,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x5eacf0,_0x185ec4,Object['assign']({'CommentView':this['_config']['CommentView']},_0x33e0b2)),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['delegate']('resolveCommentThread')['to'](this),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['listenTo'](this,'resolveCommentThread',()=>{this['focus']();}),this['set']('length',this['commentsListView']['length']),this['bind']('length')['to'](this['commentsListView'],'length'),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x487a41,_0x309dd2)=>_0x487a41||!!_0x309dd2),this['bind']('isUnlinked')['to'](_0x185ec4,'unlinkedAt',_0x4f7813=>!!_0x4f7813),this['bind']('ariaLabel')['to'](this,'length',_0x5989f3=>{const _0x3e8e92=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x5989f3,_0x3e8e92]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x36f890(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1ce511=>_0x1ce511['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x1f2ff8(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0xd45733=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x265c76=_0xd45733['commentInputView'];return _0xd45733['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x265c76,'value',(_0x30c2e3,_0x5f743,_0x4dd362,_0x35c59c,_0x435112)=>!!_0x435112||!!_0x35c59c&&_0x4dd362&&!_0x5f743||_0x30c2e3&&_0x4dd362&&!_0x5f743),_0x265c76['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3da6c4,_0x36423f,_0x4e7f42)=>{let _0x3e6350;return _0x3e6350=_0x4e7f42&&_0x36423f?'Reply\x20to\x20reopen\x20discussion...':_0x3da6c4?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x3e6350);}),_0x265c76['bind']('submitLabel')['to'](this,'length',_0x30bcc8=>S(this['locale'],_0x30bcc8?'Reply':'Comment')),_0x265c76['on']('submit',(_0x2b25c5,_0xa0dc81)=>{this['fire']('addComment',_0xa0dc81),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x265c76['on']('cancel',()=>{this['focus']();}),_0x265c76['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x265c76['on']('cancel',_0x589669=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x589669['stop']());}),this['on']('change:isActive',(_0xd47e84,_0x313785,_0x4fd5de)=>{_0x4fd5de||this['length']||_0x265c76['value']||this['fire']('removeCommentThread');}),_0xd45733;}}class vt extends/* #__PURE__ -- @preserve */
27
+ ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x13236c,_0x4c7051,_0x13ff19,_0x29bc59){super(_0x13236c,_0x4c7051,_0x13ff19,_0x29bc59),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x13236c,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x179c5b,_0xb33416,_0x9cad63)=>{_0x9cad63||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x4c4b8c,_0x51cf71,_0x46f02d)=>{_0x46f02d&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x441d6c=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x441d6c['if']('isActive','ck-thread--active'),_0x441d6c['if']('isUnlinked','ck-thread--unlinked'),_0x441d6c['if']('isConfirm','ck-thread--remove-confirmation'),_0x441d6c['to']('actionIndicator',_0x17ee78=>_0x17ee78?'ck-thread--'+_0x17ee78:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x441d6c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':this['commentThreadChildren']}]};}['render'](){super['render'](),this['containerElement']=this['element']['querySelector']('.ck-thread__container'),this['_model']['on']('change:archivedAt',()=>{this['_updateArchivedThreadHeader']();}),this['_updateArchivedThreadHeader']();}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x39cea0 of this['commentsListView']['commentViews'])_0x39cea0['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x5f3549}=this,_0x4e3002=this['commentsListView']['commentViews']['get'](0x0);_0x4e3002===this['_boundFirstCommentView']||_0x4e3002['isSystemComment']||(this['_boundFirstCommentView']=_0x4e3002,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x4e3002,'actionIndicator',_0x3c06bb=>'remove'===_0x3c06bb?'remove':null),_0x4e3002['placeholder']=S(_0x5f3549,'Write\x20a\x20comment...'),_0x4e3002['removeButton']['on']('execute',_0x40e8c8=>{_0x40e8c8['stop'](),this['showConfirm'](S(_0x5f3549,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x4e3002['focus']();}),_0x4e3002['actionBar']['add'](this['resolveButton'],0x0),_0x4e3002['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x4d7424=new _0x1900b7(this['locale']);return _0x4d7424['label']=S(this['locale'],'Resolve'),_0x4d7424['tooltip']=S(this['locale'],'Resolve'),_0x4d7424['icon']=_0x3754dc['check'],_0x4d7424['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x4d7424['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x523e29=>!_0x523e29),_0x4d7424['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x16ce55,_0x2e948e)=>_0x16ce55&&!_0x2e948e),_0x4d7424['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x4d7424;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class hs extends kt{constructor(_0x458efd){super(_0x458efd),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0xce9d57,_0xea0a16,_0x489933)=>{this['element']['innerHTML']=_0x489933;}),this['element']['innerHTML']=this['content'];}}class rs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x469404,_0x4d14ab,_0x400d85){super(_0x469404),this['_model']=_0x4d14ab,this['_config']=_0x400d85,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x4d14ab,'content',_0x4d14ab,'authoredAt',(_0x27a872,_0x29eb54)=>S(_0x469404,'COMMENT_ARIA_LABEL',[_0x4d14ab['author']['name'],_0x400d85['formatDateTime'](_0x29eb54),new DOMParser()['parseFromString'](_0x27a872,'text/html')['body']['textContent'],_0x4d14ab['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new ts(_0x469404,S(_0x469404,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x2cd9a9(),this['focusTracker']=new _0x36f890(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x362404=>_0x362404['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['expand'](){this['isCollapsed']=!0x1;}['collapse'](){this['isEditMode']||(this['isCollapsed']=!0x0);}['focus'](){this['element']['focus']();}['render'](){super['render'](),this['_setupKeyboardNavigation']();}async['destroy'](){await this['visibleView']['get'](0x0)['destroy'](),super['destroy']();}['switchToEditMode'](){this['isEditMode']||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentInputView']()));}['switchToDisplayMode'](){this['isEditMode']&&(this['isEditMode']=!0x1,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentContentView']()));}['getExternalCommentNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?S(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):S(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?S(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):S(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x4fbfba=new hs(this['locale']);return _0x4fbfba['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x178383,_0x34168d)=>_0x34168d?_0x1c7267(_0x178383,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x178383),_0x4fbfba;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x1fc797=new os(this['locale'],this['_config']['editorConfig']);return _0x1fc797['value']=this['_model']['content'],_0x1fc797['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x1fc797['submitLabel']=S(this['locale'],'Save'),_0x1fc797['on']('submit',(_0x4473ca,_0x489b63)=>{this['fire']('updateComment',this['_model']['id'],_0x489b63),this['switchToDisplayMode'](),this['focus']();}),_0x1fc797['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x1fc797['once']('editorReady',()=>{_0x1fc797['focus']();}),_0x1fc797['createEditor'](),_0x1fc797['delegate']('editorReady')['to'](this),_0x1fc797['delegate']('editorDestroyed')['to'](this),_0x1fc797;}['_setupKeyboardNavigation'](){const _0x30e5fd=this['element'];this['keystrokes']['listenTo'](_0x30e5fd);for(const _0x3d114e of this['focusables'])this['focusTracker']['add'](_0x3d114e['element']),this['keystrokes']['listenTo'](_0x3d114e['element']);this['focusables']['on']('change',(_0x13bdf0,_0x11e35a)=>{for(const _0x2a5cf4 of _0x11e35a['removed'])this['focusTracker']['remove'](_0x2a5cf4['element']),this['keystrokes']['stopListening'](_0x2a5cf4['element']);for(const _0x358f81 of _0x11e35a['added'])this['focusTracker']['add'](_0x358f81['element']),this['keystrokes']['listenTo'](_0x358f81['element']);}),this['keystrokes']['set']('enter',(_0x1ae5ee,_0x5a4d52)=>{_0x30e5fd===_0x1ae5ee['target']&&(this['focusCycler']['focusFirst'](),_0x5a4d52());}),this['keystrokes']['set']('esc',(_0x4fc826,_0x12a72e)=>{_0x30e5fd!==_0x4fc826['target']&&(this['focus'](),_0x12a72e());});}}class gt extends/* #__PURE__ -- @preserve */
28
+ ti(rs){['actionBar'];['userView'];constructor(_0xe80f14,_0x2c97ff,_0x5a0577){super(_0xe80f14,_0x2c97ff,_0x5a0577),this['set']('actionIndicator',null),this['set']('placeholder',S(_0xe80f14,'Reply...')),this['bind']('authoredAt')['to'](_0x2c97ff),this['bind']('resolvedAt')['to'](_0x2c97ff),this['actionBar']=this['createCollection'](),this['isSystemComment']||(this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['items']=this['createCollection'](),this['items']['addMany']([this['editButton'],this['removeButton']]),this['dropdown']=this['_createDropdown'](),this['actionBar']['add'](this['dropdown']),this['focusables']['add'](this['dropdown'])),this['userView']=new _0x22ff58(_0xe80f14,_0x2c97ff['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x2c97ff,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x364d19=this['bindTemplate'],_0x1a0512=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x364d19['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x364d19['to']('authoredAt',_0x3f006e=>this['_config']['formatDateTime'](_0x3f006e))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x364d19['if']('isEditMode','ck-comment__actions--hidden'),_0x364d19['if']('isEditMode','ck-annotation__actions--hidden')]},'children':this['actionBar']},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']},this['ariaDescriptionView']];return this['_model']['isExternal']&&_0x1a0512['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x364d19['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x364d19['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x364d19['if']('isEditMode','ck-comment--edit'),_0x364d19['if']('isSystemComment','ck-comment--info'),_0x364d19['to']('actionIndicator',_0x6fcb3a=>_0x6fcb3a?'ck-comment--'+_0x6fcb3a:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id'],'role':'group'},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':_0x1a0512}]}]};}['_createEditButton'](){const _0x2a6483=new _0x3ea547(this['locale']);return _0x2a6483['label']=S(this['locale'],'Edit'),_0x2a6483['icon']=_0x3754dc['pencil'],_0x2a6483['withText']=!0x0,_0x2a6483['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x2a6483['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x19a354=>!_0x19a354),_0x2a6483['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x2a6483['on']('execute',()=>this['switchToEditMode']()),_0x2a6483;}['_createRemoveButton'](){const _0x221ec7=new _0x3ea547(this['locale']);return _0x221ec7['label']=S(this['locale'],'Remove'),_0x221ec7['icon']='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M5.2\x207h9.2c.6\x200\x201\x20.4\x201\x201v9.9c0\x20.5-.4\x201-1\x201H5.2a1\x201\x200\x200\x201-1-1V8c0-.6.4-1\x201-1zm1\x201.5c-.3\x200-.5.2-.5.5v8c0\x20.3.2.5.5.5h.5c.2\x200\x20.5-.2.5-.5V9c0-.3-.3-.5-.5-.5h-.5zm3.2\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.4zm3.5\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.5zm-1.4-7.1H8.3L6.5\x203.6H3.8c-.5\x200-.7.3-.7.8s.2.7.7.7h12c.6\x200\x20.9-.2.9-.7\x200-.5-.3-.8-1-.8h-2.4l-1.8-2.2z\x22/></svg>\x0a',_0x221ec7['withText']=!0x0,_0x221ec7['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x221ec7['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x232cde=>!_0x232cde),_0x221ec7['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x221ec7['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x221ec7;}['_createDropdown'](){const _0x1c7b97=_0x3dc29b(this['locale'],_0x56ddee),_0x2bdbc3=_0x1c7b97['panelView']['children'],_0x3e3782=new _0x4e4552(this['locale']),_0x13a11f=_0x1c7b97['bindTemplate'];_0x5d33d9(_0x1c7b97,()=>this['items']['find'](_0x22519d=>_0x22519d['isVisible'])),_0x1c7b97['extendTemplate']({'attributes':{'class':[_0x13a11f['if']('isVisible','ck-hidden',_0x1ab1c9=>!_0x1ab1c9)]}});const _0x153231=(_0xfab61c,_0x12f04d=-0x1)=>{const _0x1fcb44=new _0x36f369(this['locale']);_0x1fcb44['children']['add'](_0xfab61c);const _0x4b510a=_0x12f04d>-0x1?_0x12f04d:_0x3e3782['items']['length'];_0x3e3782['items']['add'](_0x1fcb44,_0x4b510a);const _0x394626=Array['from'](this['items']);_0x1c7b97['unbind']('isEnabled','isVisible'),_0x1c7b97['bind']('isEnabled')['toMany'](_0x394626,'isEnabled',(..._0xc234b7)=>_0xc234b7['some'](_0x569877=>_0x569877)),_0x1c7b97['bind']('isVisible')['toMany'](_0x394626,'isVisible',(..._0x181f44)=>_0x181f44['some'](_0x436039=>_0x436039));};_0x1c7b97['panelPosition']='sw',_0x1c7b97['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x3754dc['threeVerticalDots']});for(const _0x46e345 of this['items'])_0x153231(_0x46e345);return _0x2bdbc3['add'](_0x3e3782),_0x1c7b97['listenTo'](this['items'],'add',(_0x5a9985,_0x37339c,_0x5e4bf9)=>{_0x153231(_0x37339c,_0x5e4bf9);}),_0x1c7b97['listenTo'](this['items'],'remove',(_0x4c6b52,_0x4c75f5,_0x2dab22)=>{_0x3e3782['items']['remove'](_0x2dab22);}),_0x1c7b97;}['_attachActions'](_0x26308f,_0x259b8a){const _0x31553f=_0x26308f&&_0x26308f['element'];_0x31553f&&(this['listenTo'](_0x31553f,'mouseenter',()=>this['actionIndicator']=_0x259b8a),this['listenTo'](_0x31553f,'focus',()=>this['actionIndicator']=_0x259b8a),this['listenTo'](_0x31553f,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x31553f,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x5e3512=super['_createCommentInputView']();return _0x5e3512['bind']('placeholder')['to'](this),_0x5e3512;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0x5a46db){const _0x3b2db=Dt(_0x5a46db,0x1e),_0x498ef1=new MutationObserver(_0x4a11c7=>{for(const _0x5602bc of _0x4a11c7)('attributes'==_0x5602bc['type']&&'class'==_0x5602bc['attributeName']||'childList'==_0x5602bc['type']||'characterData'==_0x5602bc['type'])&&_0x3b2db();});return{'attach'(_0x1c389d){_0x498ef1['observe'](_0x1c389d,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x498ef1['disconnect'](),_0x3b2db['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x49069c,_0x567870){super(_0x49069c),this['id']=_0x442df7(),this['focusTracker']=new _0x36f890(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x42e4c2,_0x5a4279)=>this['fire']('Esc',_0x5a4279)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=Lt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x567870),this['mainView']=_0x567870;const _0x3ccc6a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x3ccc6a['if']('isActive','ck-annotation-wrapper--active')],'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['focusTracker']['add'](this['element']),this['keystrokes']['listenTo'](this['element']),this['_mutationObserver']['attach'](this['element']);}['destroy'](){this['content']['clear'](),this['keystrokes']['destroy'](),this['focusTracker']['destroy'](),this['_mutationObserver']['detach'](),super['destroy']();}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['_updateHeight'](){const _0x11069b=this['element']['clientHeight'];_0x11069b&&(this['height']=_0x11069b);}}class d extends/* #__PURE__ -- @preserve */
29
+ _0x14feae(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x1ebc4f,target:_0x32b288,type:_0x5912ab,isVisible:_0x10c122=!0x0}){super(),this['view']=_0x1ebc4f,this['view']['element']||this['view']['render'](),this['_type']=_0x5912ab,this['_target']=_0x32b288,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x7c7e6e([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x296e97,_0x10698a)=>{this['view']['focusTracker']['add'](_0x10698a);}),this['focusableElements']['on']('remove',(_0x2f47b4,_0x41bf09)=>{this['view']['focusTracker']['remove'](_0x41bf09);}),this['set']('isVisible',_0x10c122);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x566f4c=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x566f4c),_0x566f4c;}get['targetRect'](){const _0x32d8f4=this['target'];if(null===_0x32d8f4)return null;if(_0x32d8f4 instanceof _0x30b314)return _0x32d8f4;const _0x59d28f=_0x32d8f4['filter'](_0x3a9e1c=>function(_0x2f2e0f){const _0x529676=_0x2f2e0f['offsetParent'];if(_0x529676)return!0x0;const _0x2e21b6=_0x2f2e0f['getClientRects']()['item'](0x0);return!!_0x2e21b6;}(_0x3a9e1c));return 0x0===_0x59d28f['length']?null:new _0x30b314(_0x59d28f[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x2e3c07){this['view']['isActive']=_0x2e3c07,this['view']['mainView']['isActive']=_0x2e3c07;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x2a100c){if(!(null===_0x2a100c||_0x2a100c instanceof _0x30b314||Array['isArray'](_0x2a100c)&&_0x2a100c['every'](_0x21985a=>ne(_0x21985a))))throw new _0x346f93('annotation-invalid-target',null,{'target':_0x2a100c});}['_getNormalizedTarget'](){const _0x48c4df='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x48c4df)?[_0x48c4df]:_0x48c4df;}}function ne(_0x3631bd){return null!==_0x3631bd&&'object'==typeof _0x3631bd&&'nodeType'in _0x3631bd&&0x1===_0x3631bd['nodeType'];}class x extends _0x7c7e6e{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x33cb67=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x36f890(),this['_focusTracker']['on']('change:isFocused',(_0x539089,_0x1d4e2f,_0x5cccc4)=>{_0x5cccc4||this['fire']('blur');});for(const _0x5741f2 of _0x33cb67)this['add'](_0x5741f2);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x49a692){if(this['has'](_0x49a692))throw new _0x346f93('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x49a692['innerView'],_0x49a692),this['_viewToAnnotation']['set'](_0x49a692['view'],_0x49a692);for(const _0x5544c4 of _0x49a692['focusableElements'])this['_focusTracker']['add'](_0x5544c4);this['listenTo'](_0x49a692['focusableElements'],'add',(_0x283381,_0x1acc73)=>{this['_focusTracker']['add'](_0x1acc73);}),this['listenTo'](_0x49a692['focusableElements'],'remove',(_0x5cfab0,_0x34f423)=>{this['_focusTracker']['remove'](_0x34f423);}),this['listenTo'](_0x49a692['view']['focusTracker'],'change:isFocused',(_0x6e5424,_0x1fc62e,_0xf6c429)=>{_0xf6c429&&this['fire']('focus',_0x49a692);}),_0x49a692['updateTargetRect']();const _0x3dfe9c=this['_getOrderInContent'](_0x49a692['view']['targetRect']);return super['add'](_0x49a692,_0x3dfe9c);}['remove'](_0x1e5fe5){if(!this['has'](_0x1e5fe5))throw new _0x346f93('annotationcollection-not-existing-item',null);this['stopListening'](_0x1e5fe5['view']['focusTracker']),this['stopListening'](_0x1e5fe5['focusableElements']);for(const _0x24b178 of _0x1e5fe5['focusableElements'])this['_focusTracker']['remove'](_0x24b178);return this['_viewToAnnotation']['delete'](_0x1e5fe5['view']),this['_innerViewToAnnotation']['delete'](_0x1e5fe5['innerView']),super['remove'](_0x1e5fe5);}['getByInnerView'](_0x423476){return this['_innerViewToAnnotation']['get'](_0x423476);}['getByView'](_0x3f8cca){return this['_viewToAnnotation']['get'](_0x3f8cca);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x42e85e of this)_0x42e85e['updateTargetRect']();this['_sort']();}['_sort'](){const _0x40ecfc=Array['from'](this)['sort']((_0x4f429c,_0x3682fc)=>v(_0x4f429c['view']['targetRect'],_0x3682fc['view']['targetRect']));for(let _0x5ea717=_0x40ecfc['length']-0x1;_0x5ea717>0x0;_0x5ea717--){const _0x154fef=_0x40ecfc[_0x5ea717];_0x5ea717!==this['getIndex'](_0x154fef)&&(this['remove'](_0x154fef),this['add'](_0x154fef));}}['_getOrderInContent'](_0x52fe6a){let _0xb2a01d=0x0;if(!_0x52fe6a)return this['length'];for(const _0x573764 of this){const _0x710452=_0x573764['view']['targetRect'];if(_0x710452){if(v(_0x52fe6a,_0x710452)<0x0)return _0xb2a01d;_0xb2a01d++;}}return _0xb2a01d;}}function v(_0x348047,_0x4d3d0c){if(null===_0x348047&&null===_0x4d3d0c)return 0x0;if(null===_0x348047)return-0x1;if(null===_0x4d3d0c)return 0x1;const _0x4f19f4=_0x348047['top']-_0x4d3d0c['top'];return 0x0==_0x4f19f4?_0x348047['left']-_0x4d3d0c['left']:_0x4f19f4;}class N extends _0x33497c{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x517a58){if(super(_0x517a58),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x517a58 instanceof _0x7b8ae4){const _0x14656d=_0x517a58['locale'];_0x517a58['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x14656d,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x14656d,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x14656d,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x14656d,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x14656d,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x14656d,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x14656d,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x4fc5d6){this['collection']['add'](_0x4fc5d6);}['remove'](_0x410f48){this['collection']['remove'](_0x410f48),_0x410f48['destroy']();}['refreshVisibility'](){for(const _0x3ed24c of this['collection'])_0x3ed24c['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x2af152){return this['collection']['getByInnerView'](_0x2af152);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x51bcaf of this['collection'])_0x51bcaf['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x22ca0a){this['fire']('_activateAnnotation',_0x22ca0a);}['createAnnotation'](_0x5ee4ff){return new d(_0x5ee4ff);}['createAnnotationView'](_0x179183,_0x3b675a){return new T(_0x179183,_0x3b675a);}['_addActiveAnnotation'](_0x1b5b1b){const _0x5cdfee=new Set(this['activeAnnotations']);_0x5cdfee['add'](_0x1b5b1b),this['activeAnnotations']=_0x5cdfee;}['_removeActiveAnnotation'](_0x472447){const _0x335b9b=new Set(this['activeAnnotations']);_0x335b9b['delete'](_0x472447),this['activeAnnotations']=_0x335b9b;}['_bindAnnotationsToVisibleAnnotations'](){const _0x4236c8=this['collection'],_0x454a51=this['_visibleAnnotations'];function _0x2c03ba(_0xf23098){const _0x2eee16=_0xf23098['source'];_0x2eee16['isVisible']&&!_0x454a51['has'](_0x2eee16)?_0x454a51['add'](_0x2eee16):!_0x2eee16['isVisible']&&_0x454a51['has'](_0x2eee16)&&_0x454a51['remove'](_0x2eee16),_0x2eee16['view']['focusTracker']['remove'](_0x2eee16['view']['element']),_0x2eee16['view']['focusTracker']['add'](_0x2eee16['view']['element']);}this['listenTo'](_0x4236c8,'add',(_0x31b8be,_0x2db89b)=>{_0x2db89b['isVisible']&&_0x454a51['add'](_0x2db89b),this['listenTo'](_0x2db89b,'change:isVisible',_0x2c03ba);}),this['listenTo'](_0x4236c8,'remove',(_0x506f1b,_0x95303c)=>{_0x454a51['has'](_0x95303c)&&_0x454a51['remove'](_0x95303c),this['stopListening'](_0x95303c,'change:isVisible',_0x2c03ba);});}['_setupEnterAnnotationKeystroke'](){const _0x409809=_0x5297b4=>{_0x5297b4['on']('ready',()=>{_0x5297b4['keystrokes']['set'](_0x5ee158,(_0xc81c80,_0x4e2259)=>{const _0x5b6e4c=_0x88e0b3(this['activeAnnotations']['values']());_0x5b6e4c&&(_0x5b6e4c['view']['focus'](),_0x4e2259());});});};this['context']instanceof _0x7b8ae4?_0x409809(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x2cb59f,_0x3495eb)=>{_0x409809(_0x3495eb);});}['_setupEscapeAnnotationHandling'](){const _0x5495a5=_0x1efb0e=>{const _0x2142ce=_0x1efb0e['source'],_0x5a0e6a=[];let _0x53e728;if(Array['isArray'](_0x2142ce['target'])){_0x53e728=_0x2142ce['target'][0x0],this['context']instanceof _0x7b8ae4?_0x5a0e6a['push'](this['context']):this['context']['editors']&&_0x5a0e6a['push'](...this['context']['editors']);for(const _0x5c1b78 of _0x5a0e6a)for(const _0x229efe of _0x5c1b78['editing']['view']['domRoots']['values']())if(_0x229efe['contains'](_0x53e728))return void _0x5c1b78['editing']['view']['focus']();_0x53e728['focus']();}};this['listenTo'](this['collection'],'add',(_0x256fe3,_0xccc0f)=>{this['listenTo'](_0xccc0f,'escape',_0x5495a5,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x1ca685,_0x13a2ed)=>{this['stopListening'](_0x13a2ed,'escape',_0x5495a5);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x33497c{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[N,ht,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x517451){super(_0x517451),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x1011a3=this['context']['config'];_0x1011a3['define']('comments.maxCommentsWhenCollapsed',0x2),_0x1011a3['define']('comments.maxThreadTotalWeight',0x1f4),_0x1011a3['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x1011a3['define']('comments.CommentThreadView',vt),_0x1011a3['define']('comments.CommentView',gt),_0x1011a3['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x4082f4=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x175b3b,_0x496f93)=>this['_addCommentThread'](_0x496f93)),this['on']('submitCommentThread',(_0x35338c,_0x52f658)=>this['_submitCommentThread'](_0x52f658)),this['on']('resolveCommentThread',(_0x38bed6,_0x5427bb)=>this['_resolveCommentThread'](_0x5427bb)),this['on']('resolveCommentThread',(_0x41b34c,_0x2c699e)=>this['_updateActiveAnnotation'](_0x2c699e),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x5422f6,_0xd42247)=>this['_reopenCommentThread'](_0xd42247)),this['on']('reopenCommentThread',(_0x6c816d,_0x53631b)=>this['_updateActiveAnnotation'](_0x53631b),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x57f4d,_0x7ae63d)=>this['_removeCommentThread'](_0x7ae63d)),this['on']('updateCommentThread',(_0x4b9fdf,_0x4fc9c4)=>this['_updateCommentThread'](_0x4fc9c4)),this['on']('updateCommentThread',(_0x282252,_0x59f681)=>this['_updateActiveAnnotation'](_0x59f681),{'priority':'lowest'}),this['on']('addComment',(_0x4a0bfa,_0x2b6a23)=>this['_addComment'](_0x2b6a23)),this['on']('updateComment',(_0x19f74b,_0xe66b64)=>this['_updateComment'](_0xe66b64)),this['on']('removeComment',(_0x215da7,_0x4084fe)=>this['_removeComment'](_0x4084fe)),this['on']('addComment',(_0x4b21d5,{threadId:_0x108eff,isFromAdapter:_0x451333})=>{if(_0x451333)return;const _0x35f631=this['getCommentThread'](_0x108eff),_0x28c35f=_0x35f631&&this['_threadToController']['get'](_0x35f631);_0x28c35f&&_0x28c35f['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x4082f4,'change:activeAnnotations',(_0x134b1d,_0x1c433e,_0xa966e7)=>{const _0x34dad2=Array['from'](_0xa966e7)['map'](_0x188989=>this['_viewToController']['get'](_0x188989['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x34dad2?_0x34dad2['model']:null;});}set['adapter'](_0x40eb63){if(this['_adapter'])throw new _0x346f93('commentsrepository-adapter-already-set');this['_adapter']=_0x40eb63;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x33f5ed=Tt,threadId:_0x53c3f9=_0x442df7(),comments:_0x529547=[],unlinkedAt:_0x5ec18b=null,resolvedAt:_0x579276=null,resolvedBy:_0x4d49c9=null,target:_0x472436=null,context:_0x3f2f35=null,attributes:_0x2fd177={},isResolvable:_0x3e20f9=!0x0,isSubmitted:_0x1ffb3e=!0x1,isFromAdapter:_0x3fad9b=!0x1}={}){return this['fire'](bt('addCommentThread',_0x33f5ed),{'channelId':_0x33f5ed,'threadId':_0x53c3f9,'comments':_0x529547,'unlinkedAt':_0x5ec18b,'resolvedAt':_0x579276,'resolvedBy':_0x4d49c9,'target':_0x472436,'context':_0x3f2f35,'attributes':_0x2fd177,'isFromAdapter':_0x3fad9b,'isResolvable':_0x3e20f9,'isSubmitted':_0x1ffb3e}),this['getCommentThread'](_0x53c3f9);}['openNewCommentThread']({channelId:_0x2be990=Tt,threadId:_0x2bc621=_0x442df7(),target:_0x3746a9,context:_0x3c7ae7=null,isResolvable:_0xcf680b=!0x0}){if(this['_readOnlyChannels']['has'](_0x2be990)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x3746a9)throw new _0x346f93('commentsrepository-missing-target');const _0x1bd95a=this['addCommentThread']({'channelId':_0x2be990,'threadId':_0x2bc621,'target':_0x3746a9,'context':_0x3c7ae7,'isResolvable':_0xcf680b});if(!_0x1bd95a)return null;const _0x5e40ff=this['_threadToController']['get'](_0x1bd95a),_0x4101ff=_0x5e40ff['view']['commentThreadInputView']['commentInputView'],_0x53c2e8=this['context']['plugins']['get'](N),_0x3a3e24=_0x53c2e8['getByInnerView'](_0x5e40ff['view']);return _0x53c2e8['activate'](_0x3a3e24),_0x4101ff['once']('editorReady',()=>_0x4101ff['focus']()),_0x1bd95a;}['hasCommentThread'](_0x40ae53){if('string'!=typeof _0x40ae53)throw new _0x346f93('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x40ae53);}['updateCommentThread']({channelId:_0x172ae6=Tt,threadId:_0x5957f2,context:_0x1fa171,unlinkedAt:_0x3c24e9,attributes:_0x2d9409,isFromAdapter:_0x26bd89=!0x1}){return this['fire'](bt('updateCommentThread',_0x172ae6),{'channelId':_0x172ae6,'threadId':_0x5957f2,'context':_0x1fa171,'unlinkedAt':_0x3c24e9,'attributes':_0x2d9409,'isFromAdapter':_0x26bd89}),this['getCommentThread'](_0x5957f2);}['getCommentThread'](_0x2e662d){if('string'!=typeof _0x2e662d)throw new _0x346f93('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x2e662d);}['fetchCommentThread']({channelId:_0xe9f7a0,threadId:_0x4dcca1}={}){const _0x21ac6b=this['getCommentThread'](_0x4dcca1);if(_0x21ac6b)return Promise['resolve'](_0x21ac6b);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x346f93('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0xe9f7a0,'threadId':_0x4dcca1})['then'](_0x19ca8b=>this['hasCommentThread'](_0x4dcca1)?this['getCommentThread'](_0x4dcca1):_0x19ca8b?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0xe9f7a0},_0x19ca8b)):void 0x0)['catch'](_0x5b86ad=>{throw console['error'](_0x5b86ad),new _0x346f93('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x1dd47c,skipNotAttached:_0x4f233c=!0x1,skipEmpty:_0x3ede8b=!0x1,toJSON:_0x39746d=!0x1}={}){const _0x191c71=[];for(const _0x2e2ae9 of this['_threads']['values']())_0x1dd47c&&_0x2e2ae9['channelId']!==_0x1dd47c||_0x4f233c&&!_0x2e2ae9['isAttached']||_0x3ede8b&&0x0===_0x2e2ae9['length']||_0x191c71['push'](_0x2e2ae9);return _0x39746d?_0x191c71['map'](_0x4a3198=>_0x4a3198['toJSON']()):_0x191c71;}['setActiveCommentThread'](_0x508b18){const _0x7b74b7=this['context']['plugins']['get'](N);if(!_0x508b18)return void(this['activeCommentThread']&&_0x7b74b7['deactivateAll']());const _0x50bce4=this['getCommentThread'](_0x508b18);if(!_0x50bce4)throw new _0x346f93('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x508b18});if(!this['_threadToController']['has'](_0x50bce4))throw new _0x346f93('commentsrepository-active-not-attached',null,{'threadId':_0x508b18});const _0x33bb29=_0x7b74b7['getByInnerView'](this['_threadToController']['get'](_0x50bce4)['view']);_0x7b74b7['activate'](_0x33bb29);}['switchReadOnly'](_0x1c8197,_0xc45b4b){_0x1c8197?this['_readOnlyChannels']['add'](_0xc45b4b):this['_readOnlyChannels']['delete'](_0xc45b4b),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0xd5e156){return this['_readOnlyChannels']['has'](_0xd5e156)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x48d31f,_0x4cf4a2){return new Ct(_0x48d31f,_0x4cf4a2);}['setPermissions'](_0xb32e8f,_0x3db90f=Tt){this['_permissions']['set'](_0x3db90f,_0xb32e8f),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0xbd9507=Tt){return this['_permissions']['has'](_0xbd9507)?this['_permissions']['get'](_0xbd9507):_t;}['_addCommentThread']({channelId:_0x51c68a,threadId:_0x5a7f1a,comments:_0x44f214,unlinkedAt:_0x2924b8,resolvedAt:_0x389d8b,resolvedBy:_0x4fd8ab,target:_0xf0a90a,context:_0x24ec98,attributes:_0x2c5895,isFromAdapter:_0x352c6c,isResolvable:_0x14d648,isSubmitted:_0x2f7557}){if('string'!=typeof _0x5a7f1a)throw new _0x346f93('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x5a7f1a});if(this['hasCommentThread'](_0x5a7f1a))throw new _0x346f93('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x5a7f1a});const _0x503c38=new oe(this,{'channelId':_0x51c68a,'id':_0x5a7f1a,'context':_0x24ec98,'attributes':_0x2c5895,'unlinkedAt':_0x2924b8,'resolvedAt':_0x389d8b,'resolvedBy':_0x4fd8ab?this['context']['plugins']['get'](it)['getUser'](_0x4fd8ab):null,'isResolvable':_0x14d648,'isSubmitted':_0x2f7557||_0x352c6c});this['_threads']['set'](_0x5a7f1a,_0x503c38);for(const _0x58b6e9 of _0x44f214)_0x503c38['_add'](this['_createNewComment']({'threadId':_0x5a7f1a,..._0x58b6e9}));return _0xf0a90a&&_0x503c38['attachTo'](_0xf0a90a),_0x352c6c||!_0x503c38['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x51c68a,'threadId':_0x5a7f1a});}['_submitCommentThread']({channelId:_0x1bd947,threadId:_0x4458f3}){if(!this['hasCommentThread'](_0x4458f3))throw new _0x346f93('commentsrepository-missing-comment-thread',this);const _0x54ac7e=this['getCommentThread'](_0x4458f3);if(_0x54ac7e['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x3bc02b,comments:_0x27b981,resolvedAt:_0x1e40cc,resolvedBy:_0x383a1a,context:_0x30d83d,attributes:_0x385c51}=_0x54ac7e,_0x1856bc=this['context']['plugins']['get']('PendingActions'),_0x5c159f=_0x1856bc['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x1bd947,'threadId':_0x3bc02b,'comments':_0x27b981['map'](_0x209590=>_0x209590['toJSON']()),'resolvedAt':_0x1e40cc,'resolvedBy':_0x383a1a?_0x383a1a['id']:_0x383a1a,'context':_0x30d83d,'attributes':_0x385c51})['then'](({comments:_0x3574d3})=>{_0x1856bc['remove'](_0x5c159f);for(const _0x3302bd of _0x3574d3)this['_updateComment']({'channelId':_0x1bd947,'threadId':_0x4458f3,'commentId':_0x3302bd['commentId'],'createdAt':_0x3302bd['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x39fbbc=>{throw console['error'](_0x39fbbc),new _0x346f93('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0xafbcfa,target:_0x7a3d74}){const _0x4e33c1=this['getCommentThread'](_0xafbcfa);if(!_0x4e33c1)throw new _0x346f93('commentsrepository-attach-missing-comment-thread',this);const _0x2cd5ac=this['context']['plugins']['get']('PendingActions'),_0x39a223=this['context']['plugins']['get'](N),_0x2616ef=this['_createCommentThreadView'](_0x4e33c1),_0x3cceaf=new Ct(_0x4e33c1,_0x2616ef);let _0x2eb439=null;_0x2616ef['on']('change:isDirty',(_0x602b48,_0x1346af,_0x2d3972)=>{_0x2d3972?_0x2eb439=_0x2cd5ac['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x2eb439&&(_0x2cd5ac['remove'](_0x2eb439),_0x2eb439=null);}),this['_threadToController']['set'](_0x4e33c1,_0x3cceaf),this['_viewToController']['set'](_0x2616ef,_0x3cceaf);const _0x4cc920=new T(this['context']['locale'],_0x2616ef);_0x4cc920['bind']('length')['to'](_0x2616ef),_0x4cc920['bind']('isDirty')['to'](_0x2616ef,'isDirty',_0x2616ef,'length',(_0x172aed,_0x469f21)=>_0x172aed||!_0x469f21),_0x4cc920['bind']('isActive')['to'](_0x2616ef),_0x4cc920['type']='comment';const _0x559ce3=new d({'view':_0x4cc920,'target':_0x7a3d74,'type':'comment','isVisible':!_0x4e33c1['isResolved']});return _0x2616ef['on']('escape',()=>{_0x559ce3['fire']('escape');}),this['_bindAnnotationToEditors'](_0x2616ef,_0x559ce3),_0x39a223['add'](_0x559ce3),_0x559ce3;}['_bindAnnotationToEditors'](_0x2ed2b6,_0xb436c8){this['listenTo'](_0x2ed2b6,'editorReady',(_0x81fce2,_0x333ce2)=>{const _0x22bbe0=_0x333ce2['ui']['view']['body']['bodyCollectionContainer'];_0xb436c8['focusableElements']['add'](_0x22bbe0),this['context']instanceof _0x7b8ae4&&this['context']['ui']['focusTracker']['add'](_0x22bbe0);},{'priority':'highest'}),this['listenTo'](_0x2ed2b6,'editorDestroyed',(_0x175ca6,_0x2a8c35)=>{const _0x1d5a88=_0x2a8c35['ui']['view']['body']['bodyCollectionContainer'];_0xb436c8['focusableElements']['has'](_0x1d5a88)&&_0xb436c8['focusableElements']['remove'](_0x1d5a88),this['context']instanceof _0x7b8ae4&&this['context']['ui']['focusTracker']['remove'](_0x1d5a88);});}['_unbindEditors'](_0x505953){this['stopListening'](_0x505953,'editorReady'),this['stopListening'](_0x505953,'editorDestroyed');}['_createCommentThreadView'](_0x35ea2e){const _0x52a15c=this['context']['plugins']['get'](it),{config:_0x531125,locale:_0x253c30}=this['context'],_0x22c666=lt(_0x531125['get']('locale'));return new(0x0,(_0x531125['get']('comments'))['CommentThreadView'])(_0x253c30,_0x35ea2e,_0x52a15c['me'],{'editorConfig':{..._0x531125['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x531125['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x531125['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x531125['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x531125['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x22c666,'CommentView':_0x531125['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0xc9d882,channelId:_0x3cb1b7,resolvedAt:_0x41b268,resolvedBy:_0x4a991b,isFromAdapter:_0x455690}){if(!this['hasCommentThread'](_0xc9d882))throw new _0x346f93('commentsrepository-missing-comment-thread',null,{'threadId':_0xc9d882});const _0x43c46b=this['getCommentThread'](_0xc9d882);if(_0x43c46b['isResolved'])throw new _0x346f93('commentsrepository-resolved-comment-thread',null,{'threadId':_0xc9d882});const _0x362562=this['context']['plugins']['get'](it);if(_0x43c46b['resolvedBy']=_0x362562['getUser'](_0x4a991b),_0x43c46b['resolvedAt']=_0x41b268,_0x455690||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x5d3e35=this['context']['plugins']['get']('PendingActions'),_0x1ec295=_0x5d3e35['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x3cb1b7,'threadId':_0xc9d882})['then'](({resolvedAt:_0x4f8537,resolvedBy:_0x5ef0b9})=>{_0x5d3e35['remove'](_0x1ec295),_0x43c46b['resolvedBy']['id']!==_0x5ef0b9&&(_0x43c46b['resolvedBy']=_0x362562['getUser'](_0x5ef0b9)),_0x43c46b['resolvedAt']=_0x4f8537;})['catch'](_0xe972a=>{throw console['error'](_0xe972a),new _0x346f93('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x37208a,channelId:_0x9c2668,isFromAdapter:_0x444855}){if(!this['hasCommentThread'](_0x37208a))throw new _0x346f93('commentsrepository-missing-comment-thread',null,{'threadId':_0x37208a});const _0x2d691e=this['getCommentThread'](_0x37208a);if(!_0x2d691e['isResolved'])throw new _0x346f93('commentsrepository-reopen-comment-thread',null,{'threadId':_0x37208a});if(_0x2d691e['resolvedBy']=null,_0x2d691e['resolvedAt']=null,_0x444855||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x54419d=this['context']['plugins']['get']('PendingActions'),_0x3077ed=_0x54419d['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x9c2668,'threadId':_0x37208a})['then'](()=>_0x54419d['remove'](_0x3077ed))['catch'](_0x1f6702=>{throw console['error'](_0x1f6702),new _0x346f93('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x56ca5d,isFromAdapter:_0x1481ba}){const _0x4c3690=this['getCommentThread'](_0x56ca5d);if(!_0x4c3690)throw new _0x346f93('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x56ca5d),this['_threads']['delete'](_0x56ca5d),!_0x4c3690['isSubmitted']||_0x1481ba||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x4f5c6e=this['context']['plugins']['get']('PendingActions'),{channelId:_0xab31b8}=_0x4c3690,_0x190469=_0x4f5c6e['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0xab31b8,'threadId':_0x56ca5d})['then'](()=>_0x4f5c6e['remove'](_0x190469))['catch'](_0x43e62a=>{throw console['error'](_0x43e62a),new _0x346f93('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x5ab19d,unlinkedAt:_0x5931fa,context:_0xc72066,attributes:_0x51a8de,isFromAdapter:_0x5da66a}){if('string'!=typeof _0x5ab19d)throw new _0x346f93('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x5ab19d});if(!this['hasCommentThread'](_0x5ab19d))throw new _0x346f93('commentsrepository-missing-comment-thread',null,{'threadId':_0x5ab19d});const _0x5a1be0=this['getCommentThread'](_0x5ab19d);let _0xd34fc1=!0x1;if(void 0x0!==_0xc72066&&_0x5a1be0['context']!==_0xc72066&&(_0x5a1be0['context']=_0xc72066,_0xd34fc1=!0x0),void 0x0!==_0x5931fa&&_0x5a1be0['unlinkedAt']!==_0x5931fa&&(_0x5a1be0['unlinkedAt']=_0x5931fa,_0xd34fc1=!0x0),_0x51a8de&&!wt(_0x51a8de,_0x5a1be0['attributes'])&&(_0x5a1be0['attributes']=_0x51a8de,_0xd34fc1=!0x0),!_0xd34fc1)return Promise['resolve']();if(!_0x5a1be0['isSubmitted']||_0x5da66a||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x490714=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5c664f}=_0x5a1be0,_0x4a31d5=_0x490714['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x5c664f,'threadId':_0x5ab19d,'context':_0xc72066,'unlinkedAt':_0x5931fa,'attributes':_0x51a8de})['then'](()=>_0x490714['remove'](_0x4a31d5))['catch'](_0x3563f8=>{throw console['error'](_0x3563f8),new _0x346f93('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0xcd5c9b){const _0x56721b=this['context']['plugins']['get'](N),_0x2d0b9e=this['getCommentThread'](_0xcd5c9b);if(_0x2d0b9e['_isAttached']=!0x1,this['_threadToController']['has'](_0x2d0b9e)){const _0x2d3c3d=this['_threadToController']['get'](_0x2d0b9e),_0x1511f8=_0x2d3c3d['view'],_0x106e33=_0x56721b['getByInnerView'](_0x1511f8);this['_threadToController']['delete'](_0x2d0b9e),this['_viewToController']['delete'](_0x1511f8),_0x106e33&&_0x56721b['remove'](_0x106e33),_0x2d3c3d['destroy'](),_0x1511f8['destroy']()['then'](()=>{this['_unbindEditors'](_0x1511f8);});}}['_updateActiveAnnotation']({threadId:_0x54806d,resolvedAt:_0xda7357}){const _0x3d6095=!!_0xda7357,_0x809c18=this['context']['plugins']['get'](N),_0x599d61=this['getCommentThread'](_0x54806d);if(this['_threadToController']['has'](_0x599d61)){const _0x33805f=this['_threadToController']['get'](_0x599d61)['view'],_0x165454=_0x809c18['getByInnerView'](_0x33805f);_0x165454&&(_0x3d6095&&_0x809c18['_removeActiveAnnotation'](_0x165454),_0x165454['refreshVisibility']());}}['_getExternalAuthor'](_0x28d990){const _0x95ddf9=this['context']['plugins']['get'](it),_0x56d41d=pt('external:'+_0x28d990),_0x55bdeb=_0x95ddf9['getUser'](_0x56d41d);return _0x55bdeb||_0x95ddf9['addUser']({'id':_0x56d41d,'name':_0x28d990});}['_createNewComment']({threadId:_0x8b6726,commentId:_0x56b712=_0x442df7(),content:_0x260bce,authorId:_0x1e5193,createdAt:_0x531b0d,attributes:_0xe25943}){if('string'!=typeof _0x56b712)throw new _0x346f93('commentsrepository-invalid-commentid');if('string'!=typeof _0x1e5193)throw new _0x346f93('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x260bce||!_0x260bce['trim']())throw new _0x346f93('commentsrepository-invalid-comment-content');const _0x2ac4fd=this['context']['plugins']['get'](it)['getUser'](_0x1e5193);if(!_0x2ac4fd)throw new _0x346f93('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x1e5193});let _0x358a61=null,_0x317106=_0x531b0d;return _0xe25943&&_0xe25943['@external']&&(_0x358a61=this['_getExternalAuthor'](_0xe25943['@external']['authorName']),_0x317106=new Date(_0xe25943['@external']['createdAt'])),new re(this,{'threadId':_0x8b6726,'id':_0x56b712,'author':_0x358a61||_0x2ac4fd,'creator':_0x2ac4fd,'content':_0x260bce,'createdAt':_0x531b0d,'authoredAt':_0x317106,'attributes':_0xe25943});}['_addComment'](_0x136af6){let {threadId:_0x11a1a2,content:_0x2d7aef,attributes:_0x22bc88,isFromAdapter:_0x15b51c}=_0x136af6;const _0x5bd136=this['getCommentThread'](_0x136af6['threadId']);if(!_0x5bd136)throw new _0x346f93('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x557f12=this['_createNewComment'](_0x136af6),{id:_0x1ef4e8}=_0x557f12;if(_0x5bd136['_add'](_0x557f12),_0x15b51c||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x5bd136['isSubmitted'])return Promise['resolve']();const _0x256308=this['context']['plugins']['get']('PendingActions'),{channelId:_0x47af30}=_0x5bd136,_0x26ae0a=_0x256308['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x22bc88||(_0x22bc88={}),this['adapter']['addComment']({'channelId':_0x47af30,'threadId':_0x11a1a2,'commentId':_0x1ef4e8,'content':_0x2d7aef,'attributes':_0x22bc88})['then'](_0x275736=>{_0x256308['remove'](_0x26ae0a),_0x275736&&this['_updateComment']({'channelId':_0x47af30,'threadId':_0x11a1a2,'commentId':_0x1ef4e8,'createdAt':_0x275736['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x4daf07=>{throw console['error'](_0x4daf07),new _0x346f93('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x3fafd7,commentId:_0x557512,content:_0x4d1677,createdAt:_0x3a01b1,attributes:_0xb0c34c,isFromAdapter:_0x322b55}){if(void 0x0!==_0x4d1677&&('string'!=typeof _0x4d1677||!_0x4d1677['trim']()['length']))throw new _0x346f93('commentsrepository-update-comment-invalid-content');const _0x30be9b=this['getCommentThread'](_0x3fafd7),_0x32e829=_0x30be9b['getComment'](_0x557512);if(!_0x32e829)throw new _0x346f93('commentsrepository-update-missing-comment',this);let _0x9f0bb7=!0x1;if(_0x4d1677&&_0x4d1677!==_0x32e829['content']&&(_0x32e829['isEditable']||_0x322b55)&&(_0x32e829['content']=_0x4d1677,_0x9f0bb7=!0x0),_0x3a01b1&&_0x3a01b1!==_0x32e829['createdAt']&&(_0x32e829['createdAt']=_0x3a01b1,_0x32e829['attributes']&&_0x32e829['attributes']['@external']||(_0x32e829['authoredAt']=_0x3a01b1),_0x9f0bb7=!0x0),_0xb0c34c&&!wt(_0xb0c34c,_0x32e829['attributes'])&&(_0x32e829['attributes']=_0xb0c34c,_0x9f0bb7=!0x0),!_0x9f0bb7)return Promise['resolve']();if(_0x30be9b['fire']('commentUpdated'),_0x322b55||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x4229eb=this['context']['plugins']['get']('PendingActions'),{channelId:_0x163fd8}=this['getCommentThread'](_0x32e829['threadId']),_0x489abd=_0x4229eb['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x163fd8,'threadId':_0x3fafd7,'commentId':_0x557512,'content':_0x4d1677,'attributes':_0xb0c34c})['then'](()=>_0x4229eb['remove'](_0x489abd))['catch'](_0x5c437f=>{throw console['error'](_0x5c437f),new _0x346f93('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x2bf43c,commentId:_0x5b8436,isFromAdapter:_0x39a5a7}){const _0x204845=this['getCommentThread'](_0x2bf43c),_0x3cd215=_0x204845['getComment'](_0x5b8436);if(!_0x3cd215)throw new _0x346f93('commentsrepository-remove-missing-comment',this);if(_0x204845['_remove'](_0x3cd215),_0x39a5a7||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x5363c8=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3084f9}=_0x204845,_0x537bb6=_0x5363c8['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x3084f9,'threadId':_0x2bf43c,'commentId':_0x5b8436})['then'](()=>_0x5363c8['remove'](_0x537bb6))['catch'](_0x409063=>{throw console['error'](_0x409063),new _0x346f93('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
30
+ _0x14feae(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x2b7566,_0x533a8a){super();const _0x4046de=_0x533a8a['isResolvable'];this['channelId']=_0x533a8a['channelId'],this['id']=_0x533a8a['id'],this['comments']=new _0x7c7e6e(),this['_repository']=_0x2b7566,this['_isAttached']=!0x1,this['_isSubmitted']=_0x533a8a['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x2b7566,'_permissions',_0x2b7566,'_readOnlyChannels',()=>_0x2b7566['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x2b7566,'_permissions',()=>_0x2b7566['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x2b7566,'_permissions',()=>{const _0x1e0d62=_0x2b7566['getPermissions'](this['channelId']);return _0x1e0d62['write']||_0x1e0d62['admin'];}),this['bind']('isResolvable')['to'](_0x2b7566,'_permissions',()=>_0x4046de&&_0x2b7566['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x533a8a['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0xf81951,_0x42bfaa)=>_0xf81951?_0x42bfaa?_0xf81951<_0x42bfaa?_0xf81951:_0x42bfaa:_0xf81951:_0x42bfaa),this['set']('unlinkedAt',_0x533a8a['unlinkedAt']||null),this['set']('resolvedAt',_0x533a8a['resolvedAt']||null),this['set']('resolvedBy',_0x533a8a['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x44fd83=>!!_0x44fd83),this['set']('attributes',_0x533a8a['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x41061a,_0x3b775e)=>_0x41061a+_0x3b775e['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x5d2c9c,id:_0x36a1e0}=this;this['_repository']['fire'](bt('submitCommentThread',_0x5d2c9c),{'channelId':_0x5d2c9c,'threadId':_0x36a1e0});}['setUnlinkedAt'](_0xcbf8d8){this['_update']({'unlinkedAt':_0xcbf8d8});}['resolve']({resolvedAt:_0x433675=new Date(),resolvedBy:_0x364150=null,isFromAdapter:_0x19eec2=!0x1}={}){const _0x5b46f0=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x1be508,id:_0x9e576d}=this;this['_repository']['fire'](bt('resolveCommentThread',_0x1be508),{'channelId':_0x1be508,'threadId':_0x9e576d,'resolvedAt':_0x433675,'resolvedBy':_0x364150||_0x5b46f0['id'],'isFromAdapter':_0x19eec2});}['reopen']({isFromAdapter:_0x57dcfa=!0x1}={}){const {channelId:_0x5041e4,id:_0x69249e}=this;this['_repository']['fire'](bt('reopenCommentThread',_0x5041e4),{'channelId':_0x5041e4,'threadId':_0x69249e,'isFromAdapter':_0x57dcfa});}['setContext'](_0x4d82f6){this['context']||this['_update']({'context':_0x4d82f6});}['setAttribute'](_0x2d3c5f,_0x3b2da9){const _0x23c2f7=It(this['attributes']);At(_0x23c2f7,_0x2d3c5f,_0x3b2da9),this['_update']({'attributes':_0x23c2f7});}['removeAttribute'](_0xa2fa92){const _0x59ffec=It(this['attributes']);yt(_0x59ffec,_0xa2fa92),this['_update']({'attributes':_0x59ffec});}['remove']({isFromAdapter:_0x5f16a3=!0x1}={}){const {channelId:_0x592305,id:_0xf6dce7}=this;this['_repository']['fire'](bt('removeCommentThread',_0x592305),{'channelId':_0x592305,'threadId':_0xf6dce7,'isFromAdapter':_0x5f16a3});}['attachTo'](_0x1bf844){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x1bf844});}['addComment'](_0x5f5669){const {channelId:_0x1fe277,id:_0x7085bb}=this;this['_repository']['fire'](bt('addComment',_0x1fe277,_0x7085bb),Object['assign']({'channelId':_0x1fe277,'threadId':_0x7085bb},_0x5f5669));}['getComment'](_0x12726c){if('string'!=typeof _0x12726c)throw new _0x346f93('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x12726c});return this['comments']['get'](_0x12726c);}['toJSON'](){return{'threadId':this['id'],'context':this['context'],'unlinkedAt':this['unlinkedAt'],'resolvedAt':this['resolvedAt'],'resolvedBy':this['resolvedBy']?this['resolvedBy']['id']:null,'archivedAt':this['archivedAt'],'comments':this['comments']['map'](_0x55ef0b=>_0x55ef0b['toJSON']()),'attributes':this['attributes']};}['_add'](_0x3cd4e8){return this['listenTo'](_0x3cd4e8,'change:authoredAt',()=>{const _0x108c4a=this['_findOptimalIndex'](_0x3cd4e8),_0x52f4db=this['comments'];_0x108c4a-0x1!=_0x52f4db['getIndex'](_0x3cd4e8)&&_0x108c4a+0x1!=_0x52f4db['getIndex'](_0x3cd4e8)&&(this['_remove'](_0x3cd4e8),this['_add'](_0x3cd4e8));}),this['comments']['add'](_0x3cd4e8,this['_findOptimalIndex'](_0x3cd4e8));}['_update'](_0x1ecd98){const {channelId:_0x4503c3,id:_0x30ece4}=this;this['_repository']['fire'](bt('updateCommentThread',_0x4503c3),{..._0x1ecd98,'channelId':_0x4503c3,'threadId':_0x30ece4});}['_remove'](_0x34040d){return this['stopListening'](_0x34040d),_0x34040d['destroy'](),this['comments']['remove'](_0x34040d);}['_findOptimalIndex'](_0x1460bb){const _0x9afa2e=this['comments']['find'](_0x38af5c=>new Date(_0x38af5c['authoredAt'])['getTime']()>new Date(_0x1460bb['authoredAt'])['getTime']());return _0x9afa2e?this['comments']['getIndex'](_0x9afa2e):this['length'];}}class re extends/* #__PURE__ -- @preserve */
31
+ _0x14feae(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x2dc284,_0x17028f){super();const _0xbe5768=_0x2dc284['context']['plugins']['get'](it)['me'],_0x4bc3d6=_0x2dc284['getCommentThread'](_0x17028f['threadId']),_0x35d918=0x0===_0x4bc3d6['comments']['length'],_0x27043f=_0xbe5768===_0x17028f['author'];this['id']=_0x17028f['id'],this['threadId']=_0x17028f['threadId'],this['author']=_0x17028f['author'],this['creator']=_0x17028f['creator'],this['isExternal']=Boolean(_0x17028f['attributes']&&_0x17028f['attributes']['@external']),this['set']('content',_0x17028f['content']),this['createdAt']=_0x17028f['createdAt']||new Date(),this['set']('authoredAt',_0x17028f['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x4bc3d6,'resolvedAt'),this['set']('attributes',_0x17028f['attributes']||{}),this['bind']('isEditable')['to'](_0x2dc284,'_permissions',()=>{const _0xae4248=_0x2dc284['getPermissions'](_0x4bc3d6['channelId'])['write'],_0x3b2a47=_0x2dc284['getPermissions'](_0x4bc3d6['channelId'])['modifyAll'];return _0x27043f&&_0xae4248||!_0x27043f&&_0x3b2a47;}),this['bind']('isRemovable')['to'](_0x4bc3d6,'isRemovable',_0x2dc284,'_permissions',_0x482eb3=>{const _0x2ebb30=_0x2dc284['getPermissions'](_0x4bc3d6['channelId'])['write'],_0x396609=_0x2dc284['getPermissions'](_0x4bc3d6['channelId'])['modifyAll'];return _0x27043f&&_0x2ebb30||_0x482eb3&&_0x35d918||!_0x27043f&&_0x396609&&!_0x35d918;}),this['bind']('isReadOnly')['to'](_0x4bc3d6,'isReadOnly'),this['_repository']=_0x2dc284;}get['weight'](){return Math['max'](function(_0x119158){const _0x5a0b99=document['createElement']('div');return _0x5a0b99['innerHTML']=_0x119158,_0x5a0b99['textContent']['length'];}(this['content']),0xc8);}['update'](_0x43ef9c){const {threadId:_0x5b7167,id:_0x191aa1}=this;if(!this['_repository']['hasCommentThread'](_0x5b7167))throw new _0x346f93('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x45d793}=this['_repository']['getCommentThread'](_0x5b7167);this['_repository']['fire'](bt('updateComment',_0x45d793,_0x5b7167),{'channelId':_0x45d793,'threadId':_0x5b7167,'commentId':_0x191aa1,..._0x43ef9c});}['setAttribute'](_0x408a57,_0x2073bb){const _0x198228=It(this['attributes']);At(_0x198228,_0x408a57,_0x2073bb),this['update']({'attributes':_0x198228});}['removeAttribute'](_0x4ae884){const _0x459e77=It(this['attributes']);yt(_0x459e77,_0x4ae884),this['update']({'attributes':_0x459e77});}['remove'](_0x53e81f={}){if(!_0x53e81f['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x278e26,id:_0x407aef}=this;if(!this['_repository']['hasCommentThread'](_0x278e26))throw new _0x346f93('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x1fa685}=this['_repository']['getCommentThread'](_0x278e26);this['_repository']['fire'](bt('removeComment',_0x1fa685,_0x278e26),{'channelId':_0x1fa685,'threadId':_0x278e26,'commentId':_0x407aef,..._0x53e81f});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x2833e0,..._0x249ede){for(const _0x51927f of _0x249ede)void 0x0!==_0x51927f&&(_0x2833e0+=':'+String(_0x51927f));return _0x2833e0;}class J extends _0x103186{['refresh'](){const _0x724d93=this['editor']['model']['document']['selection'];for(const _0x20d3ae of _0x724d93['getRanges']())if(this['_hasContent'](_0x20d3ae))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x57a493=_0x442df7()}={}){const _0x2cf282=this['editor']['model'],_0x57897e=[];for(const _0x3f6110 of _0x2cf282['document']['selection']['getRanges']())this['_hasContent'](_0x3f6110)&&_0x57897e['push'](this['_trimToContent'](_0x3f6110));_0x2cf282['change'](_0x523737=>{for(const _0x31e23d of _0x57897e){const _0x117741=_0x442df7()['substr'](0x1,0x5),_0x33a6ef='comment:'+_0x57a493+':'+_0x117741;_0x523737['addMarker'](_0x33a6ef,{'range':_0x31e23d,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x3d2734){for(const _0xb9adb4 of _0x3d2734['getItems']())if(this['_itemIsContent'](_0xb9adb4))return!0x0;return!0x1;}['_itemIsContent'](_0xf6ce36){return _0xf6ce36['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0xf6ce36)&&!_0xf6ce36['is']('element','tableCell');}['_trimToContent'](_0xb1d32f){const _0x3b094d=_0x1c8caf=>!this['_itemIsContent'](_0x1c8caf['item']),_0x3d370a=_0xb1d32f['start']['getLastMatchingPosition'](_0x3b094d),_0x503670=_0xb1d32f['end']['getLastMatchingPosition'](_0x3b094d,{'direction':'backward'});return this['editor']['model']['createRange'](_0x3d370a,_0x503670);}}class P extends _0x3a3b81{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x32163f){super(_0x32163f),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x5cfdbf=this['editor'],_0x4d8bcb=_0x5cfdbf['model']['document']['selection'],_0x371ac4=_0x2dddc1(()=>this['refreshSelectedViews'](),0xa);_0x4d8bcb['on']('change:range',(_0x153ba0,_0x349e7d)=>{_0x349e7d['directChange']&&(_0x371ac4['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x5cfdbf['editing']['view']['document'],'change:isFocused',(_0x5dd95e,_0x3bce56,_0x484155)=>{_0x484155&&_0x371ac4();}),this['listenTo'](_0x5cfdbf['ui']['focusTracker'],'change:isFocused',(_0x146040,_0x8b7320,_0xa8c28b)=>{_0xa8c28b||_0x5cfdbf['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x4316b8=>this['_editorAnnotationsData']['has'](_0x4316b8['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x4cb42e){if(this['_editorAnnotations']['has'](_0x4cb42e['view']))return;this['_editorAnnotations']['add'](_0x4cb42e['view']),this['editor']['ui']['focusTracker']['add'](_0x4cb42e['view']['element']);const _0x54724c=this['editor']['plugins']['get'](N);this['listenTo'](_0x54724c['collection'],'remove',(_0x3dfda9,_0x197bda)=>{this['editor']['ui']['focusTracker']['remove'](_0x197bda['view']['element']),this['_editorAnnotations']['delete'](_0x197bda['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x14d49e){if('function'!=typeof _0x14d49e)throw new _0x346f93('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x14d49e);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x4c73ce,annotations:_0x3b8a88}){const _0x8c260f=[],_0x9a40fc=this['editor']['model']['document']['selection'],_0x1a545b=Array['from'](_0x9a40fc['getRanges']());for(const [_0x2a8a8c,_0x274cc9]of this['_editorAnnotationsData']){const _0x84192e=_0x566a65(_0x274cc9),_0xa38c3b=_0x3b8a88['getByInnerView'](_0x2a8a8c);_0x84192e&&_0xa38c3b&&_0x8c260f['push']({'annotation':_0xa38c3b,'range':_0x84192e});}function _0x566a65(_0x251803){for(const _0x15982d of _0x251803)for(const _0x1f954b of _0x1a545b)if(_0x15982d['containsRange'](_0x1f954b,!_0x9a40fc['isCollapsed']))return _0x15982d;return null;}return _0x8c260f['sort']((_0x5aedf1,_0x187b05)=>{const _0x2954bd=_0x5aedf1['range'],_0x9fa6de=_0x187b05['range'];if(!_0x2954bd['isEqual'](_0x9fa6de)){if(_0x2954bd['containsRange'](_0x9fa6de,!0x0))return 0x1;if(_0x9fa6de['containsRange'](_0x2954bd,!0x0))return-0x1;}return _0x5aedf1['annotation']==_0x4c73ce?-0x1:_0x187b05['annotation']==_0x4c73ce?0x1:0x0;})['map'](_0x14cbeb=>_0x14cbeb['annotation']);}get['_editorAnnotationsData'](){const _0x5ae5c3=new Map();for(const _0x5d9573 of Array['from'](this['_dataCollectors']))for(const [_0x33a0c1,_0x3ad60a]of _0x5d9573())_0x5ae5c3['set'](_0x33a0c1,_0x3ad60a);return _0x5ae5c3;}}class st extends _0x3a3b81{['afterInit'](){const _0x5d7639=this['editor'];if(!_0x5d7639['plugins']['has']('RestrictedEditingModeEditing'))return;_0x5d7639['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x3a3b81{constructor(_0x48e812){super(_0x48e812),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x690eb7=this['editor'],_0x4e9716=_0x690eb7['commands']['get']('importWord'),_0x1084b9=_0x690eb7['plugins']['get'](it);_0x4e9716&&(_0x4e9716['on']('execute',(_0x138700,[,_0xde4c80])=>{_0xde4c80['collaboration_features']={'comments':!0x0,'user_id':_0x1084b9['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x4e9716,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x1e5ef0,_0x32e313){const {comment_threads:_0x322e4a}=_0x32e313;_0x322e4a&&_0x322e4a['forEach'](({thread_id:_0x4f509c,comments:_0x4244e,is_resolved:_0x18a813})=>{const _0x2e05d2=new Date(),_0x23ff07=_0x4244e['map'](({author:_0x7131ba,content:_0x5102fd,created_at:_0x507ee0})=>({'content':_0x5102fd,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x2e05d2,'attributes':{'@external':{'authorName':_0x7131ba,'createdAt':_0x507ee0?new Date(_0x507ee0):new Date(),'source':'importWord'}}})),_0x5c3ddf=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x5c3ddf,'threadId':_0x4f509c,'comments':_0x23ff07,'resolvedAt':_0x18a813?_0x2e05d2:null});});}}class at extends _0x3a3b81{constructor(_0x2bd34d){super(_0x2bd34d),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x1ec875=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x1ec875,'contentInsertion',(_0x162855,_0x3191e3)=>this['_removeMarkersWithoutThreads'](_0x3191e3['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x3d4068){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x3d4068;const _0xf9088f=this['editor']['plugins']['get']('CommentsRepository');for(const _0x5cd6c5 of _0x3d4068['keys']()){const [_0x29975a,_0x2c2e2a]=_0x5cd6c5['split'](':');'comment'!=_0x29975a||_0xf9088f['hasCommentThread'](_0x2c2e2a)||_0x3d4068['delete'](_0x5cd6c5);}return _0x3d4068;}['_registerMarkerInClipboardPipeline'](){const _0x403d43=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x2a8128=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x2a8128&&_0x403d43['_registerMarkerToCopy']('comment',_0x2a8128);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x4fdae0){switch(_0x4fdae0){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class ut extends _0x3a3b81{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x31d74f,_0x4a243e)=>{if(!_0x4a243e['options']['showCommentHighlights'])return null;if(_0x4a243e['options']['ignoreResolvedComments']){const {id:_0x4df5ef}=er(_0x31d74f['markerName']),_0x5e640f=this['editor']['plugins']['get'](o)['getCommentThread'](_0x4df5ef);if(_0x5e640f&&_0x5e640f['isResolved']&&_0x31d74f['item'])return _0x4a243e['consumable']['consume'](_0x31d74f['item'],'addMarker:'+_0x31d74f['markerName']),_0x4a243e['consumable']['consume'](_0x31d74f['item'],'removeMarker:'+_0x31d74f['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x20b246=>{_0x20b246['on']('addMarker:comment',(_0x22835a,_0x123c3f,_0x21d74c)=>{if(!_0x21d74c['options']['showCommentHighlights'])return;const _0x37c47b=_0x123c3f['item'];if(!_0x37c47b)return;const _0x8de303=_0x21d74c['mapper']['toViewElement'](_0x37c47b);this['editor']['model']['schema']['isObject'](_0x37c47b)&&_0x8de303&&!_0x8de303['getCustomProperty']('widget')&&_0x8de303['is']('containerElement')&&_0x395dd4(_0x8de303,_0x21d74c['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x345c6e,{writer:_0x1a08ea,options:_0x3523a0})=>{if(!_0x3523a0['showCommentHighlights'])return null;const _0x410aa6=_0x1a08ea['createContainerElement']('div'),_0x152c19=_0x1a08ea['createEmptyElement']('hr');return _0x1a08ea['addClass']('ck-horizontal-line',_0x410aa6),_0x1a08ea['insert'](_0x1a08ea['createPositionAt'](_0x410aa6,0x0),_0x152c19),_0x410aa6;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x243473,{writer:_0x204470,options:_0x1bb425})=>{if(!_0x1bb425['showCommentHighlights'])return null;const _0x4482d9=_0x204470['createContainerElement']('span'),_0x31a6f3=_0x204470['createEmptyElement']('img');return _0x204470['addClass']('image-inline',_0x4482d9),_0x204470['insert'](_0x204470['createPositionAt'](_0x4482d9,0x0),_0x31a6f3),_0x4482d9;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x56a7e9,{writer:_0x4ad708,options:_0x3d8096})=>{if(_0x3d8096['showCommentHighlights'])return _0x4ad708['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x302f3e,_0x3f1d09,_0x1e967f)=>{_0x1e967f['options']['showCommentHighlights']&&_0x302f3e['stop']();},{'priority':'high'});}}class r extends _0x3a3b81{static get['requires'](){return[o,P,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5d4b44){super(_0x5d4b44),this['set']('isThreadsLoadingPaused',!0x0),_0x5d4b44['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x7f2706,_0x3a0ce7,_0x20fc32,_0x5a798a)=>{const _0x530a51=_0x5d4b44['plugins']['get'](o),_0x266d59=_0x20fc32?er(_0x20fc32)['id']:null;if(_0x5d4b44['model']['change'](()=>{if(_0x266d59){const _0x42dc3d=this['getAllMarkersForId'](_0x266d59);for(const _0x3594c9 of _0x42dc3d)_0x5d4b44['editing']['reconvertMarker'](_0x3594c9);}if(_0x5a798a){const {id:_0x18744b}=er(_0x5a798a),_0x1e038b=_0x530a51['getCommentThread'](_0x18744b);if(_0x1e038b&&!_0x1e038b['isAttached'])return;const _0x4775dd=this['getAllMarkersForId'](_0x18744b);for(const _0x22111f of _0x4775dd)_0x5d4b44['editing']['reconvertMarker'](_0x22111f);}}),_0x266d59){const _0x3ff127=_0x530a51['getCommentThread'](_0x266d59);_0x3ff127&&_0x3ff127['isResolved']&&this['scrollToThreadMarker'](_0x266d59);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3986d1=this['editor'],_0x26f9aa=_0x3986d1['plugins']['get'](o),_0x1f51e0=_0x3986d1['config']['get']('collaboration.channelId');_0x3986d1['commands']['add']('addCommentThread',new J(_0x3986d1)),this['listenTo'](_0x3986d1,'change:isReadOnly',(_0x5c4e50,_0x3852c1,_0x2c0fb9)=>{_0x26f9aa['switchReadOnly'](_0x2c0fb9,_0x3986d1['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x26f9aa,ft('addCommentThread',_0x1f51e0),(_0x109f78,{threadId:_0x22ae9b})=>{const _0x4a7610=this['editor']['plugins']['get'](o)['getCommentThread'](_0x22ae9b);_0x4a7610&&_0x4a7610['unlinkedAt']&&this['_attachArchivedThread'](_0x22ae9b);}),this['listenTo'](_0x26f9aa,ft('removeCommentThread',_0x1f51e0),(_0x452fd3,{threadId:_0x896e6e})=>{_0x3986d1['model']['enqueueChange']({'isUndoable':!0x1},_0x18fdc2=>{const _0xc60bd3=this['getAllMarkersForId'](_0x896e6e);for(const _0x3f75f0 of _0xc60bd3)_0x18fdc2['removeMarker'](_0x3f75f0);});}),this['listenTo'](_0x26f9aa,ft('resolveCommentThread',_0x1f51e0),(_0x2ab06f,{threadId:_0x4f3116})=>{(this['_reconvertMarkers'](_0x4f3116),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x4f3116)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x26f9aa,ft('reopenCommentThread',_0x1f51e0),(_0x787e3e,{threadId:_0x9291aa})=>{this['_reconvertMarkers'](_0x9291aa);},{'priority':'low'}),this['listenTo'](_0x26f9aa,ft('addComment',_0x1f51e0),(_0xf52e33,{threadId:_0x3fb316,isFromAdapter:_0x192b55})=>{const _0x53dac8=this['getAllMarkersForId'](_0x3fb316);if(_0x192b55||0x0==_0x53dac8['length']||!_0x26f9aa['hasCommentThread'](_0x3fb316))return;0x1===_0x26f9aa['getCommentThread'](_0x3fb316)['length']&&_0x3986d1['model']['enqueueChange']({'isUndoable':!0x1},_0x5b83ec=>{for(const _0x4c2e67 of _0x53dac8)_0x5b83ec['updateMarker'](_0x4c2e67,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['afterInit'](){!async function(_0xd7ace4){const _0x477a53=_0x14e530([0x43,0x42,0x54,0x53,0x70,0x57,0x37,0x6d,0x6e,0x55,0x32,0x67,0x62,0x79,0x68,0x64,0x71,0x51,0x30,0x4e,0x36,0x6b,0x6c,0x63,0x75,0x48,0x46,0x59,0x44,0x31,0x41,0x6a,0x38,0x4b,0x76,0x77,0x33,0x50,0x5a,0x47,0x4f,0x66,0x35,0x74,0x78,0x39,0x72,0x58,0x4d,0x65,0x6f,0x73,0x49,0x4c,0x69,0x61,0x52,0x4a,0x7a,0x56,0x45,0x34]),_0x3631ce=0x1ae7b988,_0x129c4e=0x1ae0e0f0^_0x3631ce,_0x5555bd=window[_0x14e530([0x44,0x61,0x74,0x65])][_0x14e530([0x6e,0x6f,0x77])](),_0x1fbf7b=_0xd7ace4[_0x14e530([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2b511e=new window[(_0x14e530([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x454ef0=>{_0x1fbf7b[_0x14e530([0x6f,0x6e,0x63,0x65])](_0x14e530([0x72,0x65,0x61,0x64,0x79]),_0x454ef0);}),_0x3c7785={[_0x14e530([0x6b,0x74,0x79])]:_0x14e530([0x45,0x43]),[_0x14e530([0x75,0x73,0x65])]:_0x14e530([0x73,0x69,0x67]),[_0x14e530([0x63,0x72,0x76])]:_0x14e530([0x50,0x2d,0x32,0x35,0x36]),[_0x14e530([0x78])]:_0x14e530([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x14e530([0x79])]:_0x14e530([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x14e530([0x61,0x6c,0x67])]:_0x14e530([0x45,0x53,0x32,0x35,0x36])},_0xf56480=_0x1fbf7b[_0x14e530([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x14e530([0x67,0x65,0x74])](_0x14e530([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xab699a(){let _0x5d46b8,_0x168636=null,_0x2c28e6=null;try{if(_0xf56480==_0x14e530([0x47,0x50,0x4c]))return _0x14e530([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5d46b8=_0x2603b9(),!_0x5d46b8)return _0x14e530([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5d46b8[_0x14e530([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2c28e6=_0x34ed59(_0x5d46b8[_0x14e530([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5d46b8[_0x14e530([0x6a,0x74,0x69])])),await _0x4b0432()?_0x2484aa()?_0x1fd1c3()?_0x14e530([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x9e77d2()?(_0x5d46b8[_0x14e530([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14e530([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x168636=_0x58faf0(_0x14e530([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5d46b8[_0x14e530([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14e530([0x74,0x72,0x69,0x61,0x6c])&&(_0x168636=_0x58faf0(_0x14e530([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x5d46b8[_0x14e530([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14e530([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x168636=_0x58faf0(_0x14e530([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x39f416()):_0x14e530([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x14e530([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x14e530([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x229f60){return _0x14e530([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1fd1c3(){const _0x3fe4c0=[_0x14e530([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x14e530([0x74,0x72,0x69,0x61,0x6c])][_0x14e530([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d46b8[_0x14e530([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5555bd/0x3e8:0xe10*_0x129c4e;return _0x5d46b8[_0x14e530([0x65,0x78,0x70])]<_0x3fe4c0;}function _0x2484aa(){const _0x4ed23c=_0x5d46b8[_0x14e530([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4ed23c)return!0x1;if(_0x4ed23c[_0x14e530([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14e530([0x2a])))return!0x0;if(_0x4ed23c[_0x14e530([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14e530([0x43,0x4d,0x54])))return!0x0;if(_0x4ed23c[_0x14e530([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14e530([0x52,0x43,0x4d,0x54]))){if(_0xb707ec())return!0x0;if(_0xb438d4()||_0x185342())return!0x0;}return!0x1;}function _0x9e77d2(){const _0x58f31b=_0x5d46b8[_0x14e530([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x58f31b||0x0==_0x58f31b[_0x14e530([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x365cd4}=new URL(window[_0x14e530([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x58f31b[_0x14e530([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x365cd4))return!0x0;const _0x2b6682=_0x365cd4[_0x14e530([0x73,0x70,0x6c,0x69,0x74])](_0x14e530([0x2e]));return _0x58f31b[_0x14e530([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x581210=>_0x581210[_0x14e530([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14e530([0x2a])))[_0x14e530([0x6d,0x61,0x70])](_0x3d6eae=>_0x3d6eae[_0x14e530([0x73,0x70,0x6c,0x69,0x74])](_0x14e530([0x2e])))[_0x14e530([0x73,0x6f,0x6d,0x65])](_0x19543e=>_0x2b6682[_0x14e530([0x65,0x76,0x65,0x72,0x79])]((_0x43987d,_0x2bd2d1)=>_0x19543e[_0x2bd2d1]===_0x43987d||_0x19543e[_0x2bd2d1]===_0x14e530([0x2a])));}function _0x39f416(){return _0x168636&&_0x2c28e6?new window[(_0x14e530([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e809f,_0x2fac46)=>{_0x168636[_0x14e530([0x74,0x68,0x65,0x6e])](_0x1e809f,_0x2fac46),_0x2c28e6[_0x14e530([0x74,0x68,0x65,0x6e])](_0x356e00=>{_0x356e00!=_0x14e530([0x56,0x61,0x6c,0x69,0x64])&&_0x1e809f(_0x356e00);},_0x2fac46);}):_0x168636||_0x2c28e6||_0x14e530([0x56,0x61,0x6c,0x69,0x64]);}}function _0x34ed59(_0x1efa45,_0x41c105){return new window[(_0x14e530([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e797f=>{if(_0x444acb())return _0x1e797f(_0x14e530([0x56,0x61,0x6c,0x69,0x64]));_0x175802(),_0x1fbf7b[_0x14e530([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x14e530([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x174e9f=!0x1;const _0x43a6e6=_0x442df7();function _0x32eb79(_0xed66db){return!!_0xed66db&&(typeof _0xed66db===_0x14e530([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xed66db===_0x14e530([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xed66db[_0x14e530([0x74,0x68,0x65,0x6e])]===_0x14e530([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xed66db[_0x14e530([0x63,0x61,0x74,0x63,0x68])]===_0x14e530([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x19f5b8(_0x386d89){_0x250ea8(_0x386d89)[_0x14e530([0x74,0x68,0x65,0x6e])](_0x5ac0cc=>{if(!_0x5ac0cc||_0x5ac0cc[_0x14e530([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x14e530([0x6f,0x6b]))return _0x14e530([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4bafd8(_0x23bb1d(_0x43a6e6+_0x41c105))!=_0x5ac0cc[_0x14e530([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x14e530([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x14e530([0x56,0x61,0x6c,0x69,0x64]);})[_0x14e530([0x74,0x68,0x65,0x6e])](_0x36fc9b=>(_0x46ab71(),_0x36fc9b),()=>{const _0xe12e74=_0x307d7b();return null==_0xe12e74?(_0x46ab71(),_0x14e530([0x56,0x61,0x6c,0x69,0x64])):_0x14e530(_0x5555bd-_0xe12e74>(0x3eeb3d88^_0x3631ce)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x14e530([0x74,0x68,0x65,0x6e])](_0x1e797f)[_0x14e530([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1e797f(_0x14e530([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5af1ea=0x1ad15708^_0x3631ce;function _0x46ab71(){const _0x13ecaf=_0x14e530([0x6c,0x6c,0x63,0x74,0x2d])+_0x4bafd8(_0x23bb1d(_0x1efa45)),_0xb3b74a=_0x11c6e5(_0x4bafd8(window[_0x14e530([0x4d,0x61,0x74,0x68])][_0x14e530([0x63,0x65,0x69,0x6c])](_0x5555bd/_0x5af1ea)));window[_0x14e530([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14e530([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13ecaf,_0xb3b74a);}function _0x307d7b(){const _0x538091=_0x14e530([0x6c,0x6c,0x63,0x74,0x2d])+_0x4bafd8(_0x23bb1d(_0x1efa45)),_0x232b25=window[_0x14e530([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14e530([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x538091);return _0x232b25?window[_0x14e530([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11c6e5(_0x232b25),0x10)*_0x5af1ea:null;}function _0x250ea8(_0x1c27f4){return new window[(_0x14e530([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x314d86,_0x511440)=>{_0x1c27f4[_0x14e530([0x74,0x68,0x65,0x6e])](_0x314d86,_0x511440),window[_0x14e530([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x511440,0x1ae66d48^_0x3631ce);});}}_0x1fbf7b[_0x14e530([0x6f,0x6e])](_0x14e530([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5e166c,_0x2e1c69)=>{if(_0x2e1c69[0x0]!=_0x1efa45)return _0x1e797f(_0x14e530([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2e1c69[0x1]={..._0x2e1c69[0x1],[_0x14e530([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x43a6e6};},{[_0x14e530([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14e530([0x68,0x69,0x67,0x68])}),_0x1fbf7b[_0x14e530([0x6f,0x6e])](_0x14e530([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4690de=>{_0x32eb79(_0x4690de[_0x14e530([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x174e9f=!0x0,_0x19f5b8(_0x4690de[_0x14e530([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x14e530([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14e530([0x6c,0x6f,0x77])}),_0x2b511e[_0x14e530([0x74,0x68,0x65,0x6e])](()=>{_0x174e9f||_0x1e797f(_0x14e530([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x444acb(){return _0x1fbf7b[_0x14e530([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14e530([0x76,0x69,0x65,0x77])][_0x14e530([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x14e530([0x61,0x75,0x74,0x6f]);}function _0x175802(){_0x1fbf7b[_0x14e530([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14e530([0x76,0x69,0x65,0x77])][_0x14e530([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14e530([0x61,0x75,0x74,0x6f]);}}function _0x58faf0(_0x2fdbc6){const _0x3fb349=[new window[(_0x14e530([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9fc1f9=>setTimeout(_0x9fc1f9,0x1aee8744^_0x3631ce)),_0x2b511e[_0x14e530([0x74,0x68,0x65,0x6e])](()=>new window[(_0x14e530([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x444540=>{let _0x195dc1=0x0;_0x1fbf7b[_0x14e530([0x6d,0x6f,0x64,0x65,0x6c])][_0x14e530([0x6f,0x6e])](_0x14e530([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x7f86fe,_0x11b8fa)=>{_0x11b8fa[0x0][_0x14e530([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x195dc1++,_0x195dc1==(0x1ae7b870^_0x3631ce)&&(_0x444540(),_0x7f86fe[_0x14e530([0x6f,0x66,0x66])]());});}))];return window[_0x14e530([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14e530([0x72,0x61,0x63,0x65])](_0x3fb349)[_0x14e530([0x74,0x68,0x65,0x6e])](()=>_0x2fdbc6);}async function _0x3593ff(){await _0x2b511e,_0x1fbf7b[_0x14e530([0x6d,0x6f,0x64,0x65,0x6c])][_0x14e530([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x226aba,_0x1fbf7b[_0x14e530([0x6d,0x6f,0x64,0x65,0x6c])][_0x14e530([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x226aba,_0x1fbf7b[_0x14e530([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x14e530([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xb707ec(){return _0x2783dc(_0x14e530([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5ad9d6(_0x14e530([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x14e530([0x73,0x74,0x61,0x74,0x65])]==_0x14e530([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xb438d4(){return _0x2783dc(_0x14e530([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x185342(){return _0x2783dc(_0x14e530([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x246495(_0x68c2ba){const _0x4d5c4e=_0x4ba00d();_0x1fbf7b[_0x4d5c4e]=_0x14e530([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x68c2ba,_0x68c2ba!=_0x14e530([0x56,0x61,0x6c,0x69,0x64])&&_0x3593ff();}function _0x4ba00d(){const _0x5d1cfa=window[_0x14e530([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x14e530([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x14e530([0x6e,0x6f,0x77])]())[_0x14e530([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x14e530([0x2e]),'');let _0x5a2d6a=_0x14e530([0x43]);for(let _0x25e842=0x0;_0x25e842<_0x5d1cfa[_0x14e530([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x25e842+=0x2){let _0x3aa61e=window[_0x14e530([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d1cfa[_0x14e530([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25e842,_0x25e842+0x2));_0x3aa61e>=_0x477a53[_0x14e530([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3aa61e-=_0x477a53[_0x14e530([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5a2d6a+=_0x477a53[_0x3aa61e];}return _0x5a2d6a;}function _0x2603b9(){const _0x20a3a7=_0xf56480[_0x14e530([0x73,0x70,0x6c,0x69,0x74])](_0x14e530([0x2e]));if(0x3!=_0x20a3a7[_0x14e530([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x138489(_0x20a3a7[0x1]);function _0x138489(_0x450ee3){const _0x4d3679=_0x23750a(_0x450ee3);return _0x4d3679&&_0x14097a()?_0x4d3679:null;function _0x14097a(){const _0x438086=_0x4d3679[_0x14e530([0x6a,0x74,0x69])],_0x24f1de=window[_0x14e530([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x438086[_0x14e530([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x438086[_0x14e530([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x286936={..._0x4d3679,[_0x14e530([0x6a,0x74,0x69])]:_0x438086[_0x14e530([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x438086[_0x14e530([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x286936[_0x14e530([0x76,0x63])],_0x23bb1d(_0x286936)==_0x24f1de;}}}async function _0x4b0432(){let _0x5a58b9=!0x0;try{const _0x17389=_0xf56480[_0x14e530([0x73,0x70,0x6c,0x69,0x74])](_0x14e530([0x2e])),[_0x521551,_0x12df42,_0x484a93]=_0x17389;return _0x510916(_0x521551),await _0x1572b6(_0x521551,_0x12df42,_0x484a93),_0x5a58b9;}catch(_0x2a1f3e){return!0x1;}function _0x510916(_0x3593d6){const _0x31787a=_0x23750a(_0x3593d6);_0x31787a&&_0x31787a[_0x14e530([0x61,0x6c,0x67])]==_0x14e530([0x45,0x53,0x32,0x35,0x36])||(_0x5a58b9=!0x1);}async function _0x1572b6(_0x59e5fb,_0x310aad,_0x6ce28f){const _0x25a9df=window[_0x14e530([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x14e530([0x66,0x72,0x6f,0x6d])](_0x595c31(_0x6ce28f),_0x5ad6a0=>_0x5ad6a0[_0x14e530([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2b30f8=new window[(_0x14e530([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x14e530([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x59e5fb+_0x14e530([0x2e])+_0x310aad),_0x9cce6f=window[_0x14e530([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x14e530([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x9cce6f)return;const _0x4e6b96=await _0x9cce6f[_0x14e530([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x14e530([0x6a,0x77,0x6b]),_0x3c7785,{[_0x14e530([0x6e,0x61,0x6d,0x65])]:_0x14e530([0x45,0x43,0x44,0x53,0x41]),[_0x14e530([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x14e530([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x14e530([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x9cce6f[_0x14e530([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x14e530([0x6e,0x61,0x6d,0x65])]:_0x14e530([0x45,0x43,0x44,0x53,0x41]),[_0x14e530([0x68,0x61,0x73,0x68])]:{[_0x14e530([0x6e,0x61,0x6d,0x65])]:_0x14e530([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4e6b96,_0x25a9df,_0x2b30f8)||(_0x5a58b9=!0x1);}}function _0x23750a(_0x5406b6){return _0x5406b6[_0x14e530([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x14e530([0x65,0x79]))?JSON[_0x14e530([0x70,0x61,0x72,0x73,0x65])](_0x595c31(_0x5406b6)):null;}function _0x595c31(_0x153f73){return window[_0x14e530([0x61,0x74,0x6f,0x62])](_0x153f73[_0x14e530([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x14e530([0x2b]))[_0x14e530([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x14e530([0x2f])));}function _0x23bb1d(_0xef1421){let _0x397072=0x1505;function _0x5851a3(_0x3a113d){for(let _0x219c91=0x0;_0x219c91<_0x3a113d[_0x14e530([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x219c91++){const _0x54ad58=_0x3a113d[_0x14e530([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x219c91);_0x397072=(_0x397072<<0x5)+_0x397072+_0x54ad58,_0x397072&=_0x397072;}}function _0x2b0664(_0x43d5c7){Array[_0x14e530([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x43d5c7)?_0x43d5c7[_0x14e530([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2b0664):_0x43d5c7&&typeof _0x43d5c7==_0x14e530([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x14e530([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x43d5c7)[_0x14e530([0x73,0x6f,0x72,0x74])]()[_0x14e530([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xaedba,_0x1c0b56])=>{_0x5851a3(_0xaedba),_0x2b0664(_0x1c0b56);}):_0x5851a3(window[_0x14e530([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x43d5c7));}return _0x2b0664(_0xef1421),_0x397072>>>0x0;}function _0x4bafd8(_0x5dc56d){return _0x5dc56d[_0x14e530([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x14e530([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x14e530([0x30]));}function _0x11c6e5(_0x36aa13){return _0x36aa13[_0x14e530([0x73,0x70,0x6c,0x69,0x74])]('')[_0x14e530([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x14e530([0x6a,0x6f,0x69,0x6e])]('');}function _0x2783dc(_0x9bd382){return _0x1fbf7b[_0x14e530([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x14e530([0x68,0x61,0x73])](_0x9bd382);}function _0x5ad9d6(_0xe92302){return _0x1fbf7b[_0x14e530([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x14e530([0x67,0x65,0x74])](_0xe92302);}function _0x226aba(){}function _0x14e530(_0x30deb3){return _0x30deb3['map'](_0x4f19c9=>String['fromCharCode'](_0x4f19c9))['join']('');}_0x246495(await _0xab699a());}(this);}['destroy'](){const _0x5acb5a=this['editor']['plugins']['get'](o),_0x268efb=this['editor']['config']['get']('collaboration.channelId');for(const _0x139a93 of _0x5acb5a['getCommentThreads']({'channelId':_0x268efb}))_0x5acb5a['_detachCommentThread'](_0x139a93['id']),_0x5acb5a['_threads']['delete'](_0x139a93['id']);super['destroy']();}['hasMarkerForId'](_0x2879fa){return this['getAllMarkersForId'](_0x2879fa)['length']>0x0;}['getAllMarkersForId'](_0x5e3b1b){const _0x1c72a2=[];for(const _0x7086c2 of this['editor']['model']['markers'])_0x7086c2['name']['startsWith']('comment:'+_0x5e3b1b)&&_0x1c72a2['push'](_0x7086c2);return _0x1c72a2;}['scrollToThreadMarker'](_0xbd6028){const _0x3caf5f=this['_getTargetForId'](_0xbd6028);_0x3caf5f&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0xbd6028&&rt({'target':_0x3caf5f[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0xc1fe1d){this['editor']['model']['change'](()=>{for(const _0x1f62c8 of this['getAllMarkersForId'](_0xc1fe1d))this['editor']['editing']['reconvertMarker'](_0x1f62c8);});}['_attachArchivedThread'](_0xf7fb43){const _0x10d5c3=this['editor']['plugins']['get'](o),_0x3c3964=this['editor']['plugins']['get'](P),_0x4c3768=_0x10d5c3['getCommentThread'](_0xf7fb43);if(!_0x4c3768['isAttached']){const _0x199180=_0x4c3768['attachTo'](()=>this['_getTargetForId'](_0x4c3768['id']));_0x3c3964['registerAnnotation'](_0x199180),_0x4c3768['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x4e5d74=this['editor'],_0x259efa=_0x4e5d74['plugins']['get'](it);_0x4e5d74['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x383e74,_0x44b0d6)=>{const {id:_0x5cdd03}=er(_0x383e74['markerName']),_0x3ce5a9=_0x4e5d74['plugins']['get'](o)['getCommentThread'](_0x5cdd03),_0x1116ac=this['activeMarker']&&er(this['activeMarker'])['id']===_0x5cdd03;let _0xb2e4a8;if(_0x3ce5a9&&_0x3ce5a9['isResolved']&&!_0x1116ac&&_0x383e74['item'])return _0x44b0d6['consumable']['consume'](_0x383e74['item'],'addMarker:'+_0x383e74['markerName']),_0x44b0d6['consumable']['consume'](_0x383e74['item'],'removeMarker:'+_0x383e74['markerName']),null;const _0x20f4c6=['ck-comment-marker'];return _0x1116ac&&_0x20f4c6['push']('ck-comment-marker--active'),_0xb2e4a8=_0x3ce5a9&&_0x3ce5a9['length']?_0x3ce5a9['comments']['first']['author']['id']:_0x259efa['me']['id'],{'classes':_0x20f4c6,'attributes':{'data-comment':_0x5cdd03,'data-author-id':_0xb2e4a8}};}}),_0x4e5d74['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x4c68a3,{options:_0x40dd54})=>{if(_0x40dd54['showCommentHighlights'])return null;const _0x1cd396=_0x4e5d74['plugins']['get'](o),_0x38566f=_0x4e5d74['model']['markers']['get'](_0x4c68a3),{id:_0x4e9932,part:_0x414a4d}=er(_0x4c68a3);if(_0x38566f&&!_0x38566f['affectsData'])return null;if(_0x40dd54['ignoreResolvedComments']){const _0x3c6ab2=_0x1cd396['getCommentThread'](_0x4e9932);if(_0x3c6ab2&&_0x3c6ab2['isResolved'])return null;}return{'group':'comment','name':_0x414a4d?_0x4e9932+':'+_0x414a4d:_0x4e9932};}}),_0x4e5d74['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x32668a,{writer:_0x2ff38})=>_0x2ff38['createElement']('$marker',{'data-name':'comment:'+_0x32668a['getAttribute']('id')})}),_0x4e5d74['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x3ab479=this['editor'],_0x10be74=_0x3ab479['plugins']['get'](o),_0x48bf5c=new Set(),_0x5e7db6=new Set();_0x3ab479['model']['document']['registerPostFixer'](_0x1087f1=>{let _0x5aab4e=!0x1;for(const {name:_0x33ebd0,data:_0x1d9176}of _0x3ab479['model']['document']['differ']['getChangedMarkers']()){const {group:_0x4b471e,id:_0xa58d4a}=er(_0x33ebd0);let _0x3e1948=_0x1d9176['newRange'];if('comment'!==_0x4b471e||!_0x3e1948)continue;const _0x5e5833='$graveyard'===_0x3e1948['root']['rootName'];_0x5e5833||(_0x3e1948=dt(_0x3e1948,_0x3ab479['model']),!_0x3e1948||_0x3e1948['isCollapsed']||!_0x1d9176['newRange']||_0x3e1948['isEqual'](_0x1d9176['newRange']))?_0x3ab479['model']['hasContent'](_0x3e1948)&&!_0x5e5833?this['isThreadsLoadingPaused']?_0x48bf5c['add'](_0x33ebd0):this['_handleThreadMarker'](_0x33ebd0,_0xa58d4a):(_0x5e7db6['add'](_0x33ebd0),_0x48bf5c['delete'](_0x33ebd0),_0x1087f1['removeMarker'](_0x33ebd0),_0x5aab4e=!0x0):(_0x1087f1['updateMarker'](_0x33ebd0,{'range':_0x3e1948}),_0x5aab4e=!0x0);}return _0x5aab4e;}),this['on']('change:isThreadsLoadingPaused',(_0x3a236b,_0x491e0d,_0x5069d3)=>{if(!_0x5069d3&&_0x48bf5c['size'])for(const _0x4bc459 of _0x48bf5c){const {id:_0x5d426e}=er(_0x4bc459);_0x48bf5c['delete'](_0x4bc459),_0x3ab479['model']['markers']['get'](_0x4bc459)&&this['_handleThreadMarker'](_0x4bc459,_0x5d426e);}}),this['listenTo'](_0x3ab479['model']['document'],'change',()=>{for(const {name:_0x1f60c0,data:{newRange:_0x29356d}}of _0x3ab479['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3bf905,id:_0x39e197}=er(_0x1f60c0);if('comment'!==_0x3bf905)continue;const _0x4beeff=_0x10be74['getCommentThread'](_0x39e197),_0x162526=this['hasMarkerForId'](_0x39e197);_0x4beeff&&(!_0x4beeff['_hasTargetInContent']&&_0x29356d&&_0x3ab479['editing']['view']['once']('render',()=>{const _0x966347=_0x3ab479['plugins']['get'](N),_0x9a8854=_0x10be74['_threadToController']['get'](_0x4beeff)['view'];_0x966347['getByInnerView'](_0x9a8854)['refreshVisibility']();},{'priority':'low'}),_0x4beeff['_hasTargetInContent']=_0x162526||!!_0x29356d),_0x29356d||(_0x5e7db6['add'](_0x1f60c0),_0x48bf5c['delete'](_0x1f60c0));}for(const _0x34e8cb of _0x5e7db6){const {id:_0x311ee7}=er(_0x34e8cb),_0x208c6f=_0x10be74['getCommentThread'](_0x311ee7);if(_0x48bf5c['delete'](_0x34e8cb),!_0x208c6f)continue;const _0x185b72=this['hasMarkerForId'](_0x311ee7);_0x185b72||_0x208c6f['isSubmitted']?_0x185b72||_0x208c6f['unlinkedAt']||_0x208c6f['setUnlinkedAt'](new Date()):_0x208c6f['remove']();}_0x5e7db6['clear']();});}['_getTargetForId'](_0x1f9e74){const _0x55d171=this['editor'],_0x2630a5=this['getAllMarkersForId'](_0x1f9e74);return et(_0x55d171['editing'],_0x2630a5);}['_getTextContext'](_0x3236d3){const _0x56c8f8=this['getAllMarkersForId'](_0x3236d3);let _0x65ff2d='',_0x3b9c2b=!0x1;for(const _0xc214d5 of _0x56c8f8){const _0x22699f=_0xc214d5['getRange']();for(const _0x1a72eb of Array['from'](_0x22699f['getItems']()))_0x1a72eb['is']('$textProxy')?(_0x65ff2d&&_0x3b9c2b&&(_0x65ff2d+='\x20',_0x3b9c2b=!0x1),_0x65ff2d+=_0x1a72eb['data']):_0x3b9c2b=!0x0;_0x3b9c2b=!0x0;}return _0x65ff2d['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x2788ca,_0x476c87){const _0x1dab7d=this['editor'],_0xe365af=_0x1dab7d['plugins']['get'](o);let _0x4c524a=_0xe365af['getCommentThread'](_0x476c87);const _0x59837b=_0x1dab7d['config']['get']('collaboration.channelId'),_0x2d18c6=_0x1dab7d['plugins']['get'](P);if(_0x4c524a&&(_0x4c524a['unlinkedAt']&&_0x4c524a['setUnlinkedAt'](null),_0x4c524a['isAttached']))return _0x4c524a;return!this['getAllMarkersForId'](_0x476c87)[0x0]['managedUsingOperations']?_0x1dab7d['editing']['view']['once']('render',()=>{if(_0xe365af['getCommentThread'](_0x476c87))return;const _0x2b5650=_0x1dab7d['plugins']['get'](N);_0x4c524a=_0xe365af['openNewCommentThread']({'channelId':_0x59837b,'threadId':_0x476c87,'target':()=>this['_getTargetForId'](_0x476c87),'context':{'type':'text','value':this['_getTextContext'](_0x476c87)}});const _0x241eb4=_0xe365af['_threadToController']['get'](_0x4c524a)['view'],_0x4ac33f=_0x2b5650['getByInnerView'](_0x241eb4);_0x4ac33f&&_0x2d18c6['registerAnnotation'](_0x4ac33f);},{'priority':'low'}):_0xe365af['fetchCommentThread']({'channelId':_0x59837b,'threadId':_0x476c87})['then'](_0x4f1a92=>{if('destroyed'!==_0x1dab7d['state']){if(_0x4c524a=_0x4f1a92,_0x4c524a&&!_0x4c524a['isAttached']){const _0x2d5d56=_0x4c524a['attachTo'](()=>this['_getTargetForId'](_0x476c87));_0x2d18c6['registerAnnotation'](_0x2d5d56),_0x4c524a['isResolved']&&this['_reconvertMarkers'](_0x476c87);}else{if(!_0x4c524a){const _0x158fc7=this['getAllMarkersForId'](_0x476c87);_0x1dab7d['model']['change'](_0x2d3692=>{for(const _0x347493 of _0x158fc7)_0x2d3692['removeMarker'](_0x347493);});}}}}),_0x4c524a;}['_handleThreadMarker'](_0x2226d9,_0x32c669){const _0x221dc0=this['_attachMarkerToThread'](_0x2226d9,_0x32c669);_0x221dc0&&!_0x221dc0['context']&&_0x221dc0['setContext']({'type':'text','value':this['_getTextContext'](_0x32c669)});}['_initAriaMarkerChangeAnnouncements'](){const _0x576b2c=this['editor'];ot(_0x576b2c['model'],({left:_0x194486,entered:_0x243343})=>{for(const _0x5dc41f of _0x194486)if(mt(_0x5dc41f)){_0x576b2c['ui']['ariaLiveAnnouncer']['announce'](S(_0x576b2c['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x53402c of _0x243343)if(mt(_0x53402c)){_0x576b2c['ui']['ariaLiveAnnouncer']['announce'](S(_0x576b2c['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x139946)));break;}});}}function ft(_0x55408f,_0x369ec0){return _0x369ec0?_0x55408f+':'+_0x369ec0:_0x55408f;}function er(_0x5d76ad){const _0x5e773c=_0x5d76ad['split'](':');return{'group':_0x5e773c[0x0],'id':_0x5e773c[0x1],'part':_0x5e773c[0x2]};}function dt(_0x1cf57e,_0x531485){const _0xfec923=_0x531485['schema'],_0x48ccb7=_0x531485['createRange'](_0x1cf57e['start']);for(const _0x20c0ae of _0x1cf57e['getWalker']()){const {type:_0x7f4165,item:_0x17944d,nextPosition:_0x32ecde}=_0x20c0ae;if('text'===_0x7f4165||_0xfec923['isObject'](_0x17944d)){const _0x2318df=_0x531485['createPositionBefore'](_0x17944d);_0x48ccb7['isCollapsed']&&(_0x48ccb7['start']=_0x2318df),_0x48ccb7['end']=_0x32ecde;}}return _0x48ccb7;}function mt(_0x4fe3ce){return'comment'===er(_0x4fe3ce['name'])['group'];}var xt='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M4\x201.5h12A3.5\x203.5\x200\x200\x201\x2019.5\x205v8l-.005.192a3.5\x203.5\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.371-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.271-2.63l-.062-.07H4A3.5\x203.5\x200\x200\x201\x20.5\x2013V5A3.5\x203.5\x200\x200\x201\x204\x201.5ZM4\x203a2\x202\x200\x200\x200-2\x202v8a2\x202\x200\x200\x200\x202\x202h6.924a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L14.962\x2015H16a2\x202\x200\x200\x200\x202-2V5a2\x202\x200\x200\x200-2-2H4Z\x22/><path\x20d=\x22M9.75\x205a.75.75\x200\x200\x200-.75.75v2.5H6.5a.75.75\x200\x200\x200\x200\x201.5H9v2.5a.75.75\x200\x200\x200\x201.5\x200v-2.5H13a.75.75\x200\x200\x200\x200-1.5h-2.5v-2.5A.75.75\x200\x200\x200\x209.75\x205Z\x22/></svg>\x0a';class i extends _0x3a3b81{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,P,N];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x3bd6df=this['editor'],_0x27581a=_0x3bd6df['plugins']['get'](o),_0x344a9c=_0x3bd6df['plugins']['get'](r),_0x328cb7=_0x3bd6df['plugins']['get'](N),_0x41f9ce=_0x3bd6df['plugins']['get'](P);_0x3bd6df['ui']['componentFactory']['add']('comment',()=>{const _0x37fb05=this['_createUIButton'](_0x3ea547);return _0x37fb05['tooltip']=!0x0,_0x37fb05;}),_0x3bd6df['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x22933f)),_0x41f9ce['addSourceCollector'](()=>{const _0x1d5404=[];for(const [_0x35cfab,_0x2f7037]of _0x27581a['_threadToController']){const _0x12afde=_0x344a9c['getAllMarkersForId'](_0x35cfab['id']),_0x4832b7=_0x12afde['map'](_0x8864fa=>_0x8864fa['getRange']());_0x12afde['length']>0x0&&_0x1d5404['push']([_0x2f7037['view'],_0x4832b7]);}return _0x1d5404;}),this['listenTo'](_0x328cb7,'change:activeAnnotations',(_0x99ba51,_0xe9fbda,_0x2ed2aa)=>{const _0x9657e2=Array['from'](_0x2ed2aa)['map'](_0x265fcf=>_0x265fcf['innerView'])['find'](_0x50f0ac=>_0x27581a['_viewToController']['has'](_0x50f0ac));if(!_0x9657e2)return void(_0x344a9c['activeMarker']=null);const _0x5f2cd5=_0x27581a['_viewToController']['get'](_0x9657e2)['model']['id'],_0x5eeeaf='comment:'+_0x5f2cd5;_0x5f2cd5&&_0x344a9c['hasMarkerForId'](_0x5f2cd5)?_0x344a9c['activeMarker']=_0x5eeeaf:_0x344a9c['activeMarker']&&(_0x344a9c['activeMarker']=null);}),this['listenTo'](_0x27581a,'removeCommentThread',(_0x261e87,{threadId:_0x598683,isFromAdapter:_0x1d1bbd})=>{!_0x1d1bbd&&_0x3bd6df['ui']['focusTracker']['isFocused']&&_0x344a9c['hasMarkerForId'](_0x598683)&&_0x3bd6df['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x27581a,'addComment',(_0x4c2c56,{threadId:_0x4cf578,isFromAdapter:_0x28bb06})=>{if(_0x28bb06||!_0x344a9c['hasMarkerForId'](_0x4cf578)||!_0x27581a['hasCommentThread'](_0x4cf578))return;0x1===_0x27581a['getCommentThread'](_0x4cf578)['length']&&(_0x3bd6df['editing']['view']['focus'](),_0x4c2c56['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1cefd6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x12b8b8;for(const _0x445e27 in _0x1cefd6){const _0x33e4b0=_0x445e27,_0x48421e=_0x1cefd6[_0x33e4b0];if('commentsLicenseKeyValid'==_0x48421e||'commentsLicenseKeyInvalid'==_0x48421e||'commentsLicenseKeyExpired'==_0x48421e||'commentsLicenseKeyDomainLimit'==_0x48421e||'commentsLicenseKeyNotAllowed'==_0x48421e||'commentsLicenseKeyEvaluationLimit'==_0x48421e||'commentsLicenseKeyTrialLimit'==_0x48421e||'commentsLicenseKeyDevelopmentLimit'==_0x48421e||'commentsLicenseKeyUsageLimit'==_0x48421e){delete _0x1cefd6[_0x33e4b0],_0x12b8b8=_0x48421e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x12b8b8&&_0x1cefd6['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x12b8b8&&_0x1cefd6['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x12b8b8&&_0x1cefd6['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x12b8b8&&_0x1cefd6['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x12b8b8&&_0x1cefd6['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x12b8b8&&_0x1cefd6['_showLicenseError']('trialLimit'),'commentsLicenseKeyDevelopmentLimit'==_0x12b8b8&&_0x1cefd6['_showLicenseError']('developmentLimit'),'commentsLicenseKeyUsageLimit'==_0x12b8b8&&_0x1cefd6['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x592cc2){const _0x5a7b32=this['editor'],_0x5db6ad=new _0x592cc2(_0x5a7b32['locale']),_0x3fc459=_0x5a7b32['commands']['get']('addCommentThread');return _0x5db6ad['set']({'label':S(_0x5a7b32['locale'],'Comment'),'icon':xt}),_0x5db6ad['bind']('isEnabled')['to'](_0x3fc459),this['listenTo'](_0x5db6ad,'execute',()=>_0x3fc459['execute']()),_0x5db6ad;}}class s extends _0x3a3b81{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x193d6f){super(_0x193d6f),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x24fdd2,_0x5fee92,_0x251fd5)=>{_0x251fd5?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x429653,_0x5057ed]of this['editor']['commands'])_0x5057ed['affectsData']&&'addCommentThread'!==_0x429653&&_0x5057ed['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0x3ebc83=this['editor']['editing']['view']['document'];this['listenTo'](_0x3ebc83,'cut',_0x381301=>_0x381301['stop'](),{'priority':'highest'}),this['listenTo'](_0x3ebc83,'clipboardInput',_0x504cde=>_0x504cde['stop'](),{'priority':'highest'}),this['listenTo'](_0x3ebc83,'delete',_0x2aacbe=>_0x2aacbe['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x48a751,_0xb21f37]of this['editor']['commands'])_0xb21f37['affectsData']&&'addCommentThread'!==_0x48a751&&_0xb21f37['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x33497c{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2c09d3){super(_0x2c09d3),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x47dda8=this['context']['plugins']['get'](N);this['listenTo'](_0x47dda8,'_activateAnnotation',(_0x387cbb,_0xeb972)=>{for(const _0x3e50a1 of this['activeUIs']){const _0x59b7da=this['_uis']['get'](_0x3e50a1);(0x0,this['_uisData']['get'](_0x3e50a1)['filter'])(_0xeb972)&&_0x59b7da['setActiveAnnotation'](_0xeb972);}}),this['listenTo'](_0x47dda8,'_deactivateAllAnnotations',()=>{for(const _0x5346c5 of this['activeUIs']){this['_uis']['get'](_0x5346c5)['setActiveAnnotation'](null);}}),this['listenTo'](_0x47dda8['_visibleAnnotations'],'add',(_0x9f2059,_0x32517e)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x32517e);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x8d162){return this['activeUIs']['has'](_0x8d162);}['activate'](_0x23e3af,_0x317515=()=>!0x0){const _0x4462c2=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x23e3af))throw new _0x346f93('annotationsuis-missing-ui',this,{'uiName':_0x23e3af});this['isActive'](_0x23e3af)&&this['deactivate'](_0x23e3af),this['activeUIs']['add'](_0x23e3af);const _0x3ac92e=new x();!function({source:_0x8cd4c4,target:_0x24ac77,filter:_0x3c0bad}){for(const _0x463ad0 of _0x8cd4c4)_0x3c0bad(_0x463ad0)&&_0x24ac77['add'](_0x463ad0);_0x24ac77['listenTo'](_0x8cd4c4,'add',(_0x4ffc0f,_0xda1c78)=>{_0x3c0bad(_0xda1c78)&&_0x24ac77['add'](_0xda1c78);}),_0x24ac77['listenTo'](_0x8cd4c4,'remove',(_0x1d1b36,_0x238c9c)=>{_0x24ac77['has'](_0x238c9c)&&_0x24ac77['remove'](_0x238c9c);});}({'source':_0x4462c2['_visibleAnnotations'],'target':_0x3ac92e,'filter':_0x317515}),this['_uisData']['set'](_0x23e3af,{'collection':_0x3ac92e,'filter':_0x317515});const _0x18e6f2=this['_uis']['get'](_0x23e3af);_0x18e6f2['attach'](_0x3ac92e),this['listenTo'](_0x18e6f2,'change:activeAnnotation',(_0x3f2d8d,_0x20bfaf,_0x56f2c3,_0x25ea6b)=>{_0x25ea6b&&_0x4462c2['_removeActiveAnnotation'](_0x25ea6b),_0x56f2c3&&_0x4462c2['_addActiveAnnotation'](_0x56f2c3);});}['deactivate'](_0xd47e07){if(this['activeUIs']['delete'](_0xd47e07),!this['_uis']['has'](_0xd47e07))throw new _0x346f93('annotationsuis-missing-ui',this,{'uiName':_0xd47e07});const _0x45a4d2=this['_uis']['get'](_0xd47e07);_0x45a4d2['detach'](),this['stopListening'](_0x45a4d2),this['_uisData']['get'](_0xd47e07)['collection']['destroy'](),this['_uisData']['delete'](_0xd47e07);}['switchTo'](_0x1b9431){if(!this['_uis']['has'](_0x1b9431))throw new _0x346f93('annotationsuis-missing-ui',this,{'uiName':_0x1b9431});const _0x294ce9=this['context']['plugins']['get'](N),_0x2fd88b=Array['from'](_0x294ce9['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x1b9431);const _0x2e35e3=this['_uis']['get'](_0x1b9431);_0x2e35e3['setActiveAnnotation'](_0x2fd88b),_0x2e35e3['_setSelectedAnnotations']&&_0x2fd88b&&_0x2e35e3['_setSelectedAnnotations']([_0x2fd88b]);}['deactivateAll'](){for(const _0x3f8864 of this['activeUIs'])this['deactivate'](_0x3f8864);}['register'](_0x2b2786,_0x3363e1){if(this['_uis']['has'](_0x2b2786))throw new _0x346f93('annotationsuis-register-already-registered');if('function'!=typeof _0x3363e1['attach']||'function'!=typeof _0x3363e1['detach']||'function'!=typeof _0x3363e1['setActiveAnnotation'])throw new _0x346f93('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x2b2786,_0x3363e1);}['refilterAnnotations'](){const _0x3370ed=this['context']['plugins']['get'](N)['collection'],_0x419950=new Map(),_0x22021e=Array['from'](this['activeUIs']);for(const _0x6361c6 of this['activeUIs']){const _0x10e68c=this['_uisData']['get'](_0x6361c6)['collection'];for(const _0x37f277 of _0x10e68c)_0x419950['set'](_0x37f277,_0x6361c6);}for(const _0x599403 of _0x3370ed){const _0x57340a=_0x419950['get'](_0x599403);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x599403);const _0x49bc8d=_0x22021e['find'](_0xa98036=>this['_uisData']['get'](_0xa98036)['filter'](_0x599403));_0x57340a!==_0x49bc8d&&(_0x57340a&&this['_uisData']['get'](_0x57340a)['collection']['remove'](_0x599403),_0x49bc8d&&this['_uisData']['get'](_0x49bc8d)['collection']['add'](_0x599403));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1214f4){const _0x357999=[];for(const _0xa280d4 of this['activeUIs']){(0x0,this['_uisData']['get'](_0xa280d4)['filter'])(_0x1214f4)&&_0x357999['push'](_0xa280d4);}if(_0x357999['length']>0x1)throw new _0x346f93('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x357999,'annotationType':_0x1214f4['type']});}}const he=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0xbfa8e9){super(_0xbfa8e9);const _0x8e585c=this['bindTemplate'];this['set']('minHeight',0x0),this['set']('class',''),this['list']=this['createCollection'](),this['focusables']=this['createCollection'](),this['list']['delegate']('arrowup','arrowdown')['to'](this),this['focusTracker']=new _0x36f890(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x8e585c['to']('class')],'style':{'minHeight':_0x8e585c['to']('minHeight',_0x27b26a=>'number'==typeof _0x27b26a?he(_0x27b26a+0xa):null)},'dir':_0xbfa8e9['uiLanguageDirection'],'role':'application','aria-label':S(_0xbfa8e9,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0xbfa8e9,'Annotations\x20list')},'children':this['list']}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_setupKeyboardNavigation'](){this['list']['delegate']('change:top')['to'](this),this['on']('change:top',_0x45bde7=>{this['_updateItemPositionInFocusables'](_0x45bde7['source']);}),this['list']['forEach'](_0x29955e=>{this['focusTracker']['add'](_0x29955e['element']),this['_updateItemPositionInFocusables'](_0x29955e);}),this['list']['on']('change',(_0x49000c,_0x1e4112)=>{for(const _0x33ad23 of _0x1e4112['removed'])this['focusTracker']['remove'](_0x33ad23['element']),this['focusables']['remove'](_0x33ad23);for(const _0x17004f of _0x1e4112['added'])this['focusTracker']['add'](_0x17004f['element']),this['_updateItemPositionInFocusables'](_0x17004f);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x34c4aa){const _0x4ac65a=this['focusables']['getIndex'](_0x34c4aa);let _0xed830d,_0x31b692;for(const _0x4986e5 of this['focusables'])if(_0x34c4aa['top']<_0x4986e5['top']){_0xed830d=_0x4986e5;break;}if(_0x31b692=_0xed830d?this['focusables']['getIndex'](_0xed830d):this['focusables']['length'],-0x1!==_0x4ac65a){if(_0x4ac65a===_0x31b692-0x1)return;this['focusables']['remove'](_0x34c4aa),_0x31b692=_0xed830d?this['focusables']['getIndex'](_0xed830d):this['focusables']['length'];}this['focusables']['add'](_0x34c4aa,_0x31b692);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x46f73b){super(_0x46f73b),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x4f6b67,_0x2a9518)=>_0x4f6b67+_0x2a9518),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x204313=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x204313['to']('isAnimationDisabled',_0x4d70d7=>_0x4d70d7?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x204313['to']('top',_0x17aaee=>qt(_0x17aaee))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0xf4fe6e=this['element']['clientHeight'];_0xf4fe6e&&(this['height']=_0xf4fe6e);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x33497c{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x498209){super(_0x498209),this['set']('_lastItem',void 0x0),this['view']=this['_createSidebarView'](),this['set']('container',null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this['_annotationToSidebarItemView']=new Map(),this['context']['config']['define']('sidebar.preventScrollOutOfView',!0x1),this['_annotations']=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}['init'](){const _0x37d13a=this['context']['config']['get']('sidebar.container');_0x37d13a&&this['setContainer'](_0x37d13a);}['setContainer'](_0x3ebbad){if(!y(_0x3ebbad))throw new _0x346f93('sidebar-setcontainer-invalid-element');this['container']=_0x3ebbad;}['_attachToContainer']({viewClass:_0x3a1884='',spaceBetweenItems:_0x1a0a56=0x19}={}){if(!y(this['container']))throw new _0x346f93('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x3a1884,this['_spaceBetweenItems']=_0x1a0a56;}['rearrange']({removedAnnotation:_0x3f8b4f,previousAnnotation:_0x300df2,nextAnnotation:_0x43e18a}){const _0x3c2677=this['getSidebarItemView'](_0x3f8b4f);this['view']['list']['remove'](_0x3c2677),this['_destroySidebarItemView'](_0x3f8b4f),_0x300df2&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x300df2)),_0x43e18a&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x43e18a)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x4ffe44,activatedAnnotation:_0x59f4a2,disableAnimationOnActivatedAnnotation:_0x3b31a1}){if(this['_activeAnnotation']=_0x59f4a2,_0x4ffe44){_0x4ffe44['isActive']=!0x1;const _0x318b8d=this['getSidebarItemView'](_0x4ffe44);_0x318b8d&&_0x3b31a1&&(_0x318b8d['isAnimationDisabled']=!0x1);}if(_0x59f4a2){const _0x1592b7=this['getSidebarItemView'](_0x59f4a2);_0x1592b7&&(_0x59f4a2['isActive']=!0x0,_0x3b31a1&&(_0x1592b7['isAnimationDisabled']=!0x0,_0x1592b7['top']+=0x1),this['_alignToTargetRect'](_0x1592b7));}}['_detachFromContainer'](_0x12e468){if(this['view']['element']['remove'](),_0x12e468){for(const _0x306ac1 of _0x12e468)this['_destroySidebarItemView'](_0x306ac1);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x2dd7bc,_0x3c3206){_0x3c3206||(_0x3c3206=_0x2dd7bc['view']);const _0x2a1224=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x2a1224,_0x2dd7bc),this['_annotationToSidebarItemView']['set'](_0x2dd7bc,_0x2a1224),_0x2a1224['content']['add'](_0x3c3206),this['listenTo'](_0x2dd7bc['view'],'change:targetRect',(_0x4903c7,_0x2b841b,_0x3420fb)=>{const _0xf8d38e=this['_getTargetTop'](_0x2dd7bc,_0x3420fb);_0x2a1224['_targetTop']!=_0xf8d38e&&(_0x2a1224['_targetTop']=_0xf8d38e,this['_setItemTop'](_0x2a1224,_0xf8d38e));}),this['listenTo'](_0x2a1224,'change:top',()=>{this['_recalculate'](_0x2a1224,'top');}),this['listenTo'](_0x2a1224,'change:bottom',()=>{this['_recalculate'](_0x2a1224,'bottom');}),this['_alignToTargetRect'](_0x2a1224);const _0x5ea556=this['_getItemBefore'](_0x2a1224);if(_0x5ea556)this['_alignAfterItem'](_0x5ea556,_0x2a1224)||this['_alignToTargetRect'](_0x2a1224);else this['_alignToTargetRect'](_0x2a1224);return this['_updateLastItem'](),this['view']['list']['add'](_0x2a1224),_0x2a1224;}['_alignForTopChange'](_0x3fee34){if(!_0x3fee34['content']['length'])return;const _0x4bc0a0=this['_getItemBefore'](_0x3fee34);if(!_0x4bc0a0)return;const _0x4376f6=this['_sidebarItemViewToAnnotation']['get'](_0x4bc0a0),_0x553008=this['_activeAnnotation'];_0x553008&&_0x553008===_0x4376f6?this['_alignAfterItem'](_0x4bc0a0,_0x3fee34):this['_alignBeforeItem'](_0x3fee34,_0x4bc0a0);}['_alignForBottomChange'](_0x1a50c7){if(!_0x1a50c7['content']['length'])return;const _0x29cac7=this['_getItemAfter'](_0x1a50c7);if(!_0x29cac7)return;const _0x394858=this['_sidebarItemViewToAnnotation']['get'](_0x29cac7),_0xfd4770=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x564426=this['_activeAnnotation'];_0x564426&&_0x564426===_0x394858&&_0xfd4770?(this['_alignBeforeItem'](_0x29cac7,_0x1a50c7),this['_alignAfterItem'](_0x1a50c7,_0x29cac7)):_0x564426&&_0x564426===_0x394858?this['_alignBeforeItem'](_0x29cac7,_0x1a50c7):this['_alignAfterItem'](_0x1a50c7,_0x29cac7);}['_recalculate'](_0x466834,_0x4899d0){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x6fb5bb,changedProp:_0x504c5f}of this['_recalculateBuffer'])'top'===_0x504c5f?this['_alignForTopChange'](_0x6fb5bb):this['_alignForBottomChange'](_0x6fb5bb);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x466834,'changedProp':_0x4899d0});}['getSidebarItemView'](_0x257a21){return this['_annotationToSidebarItemView']['get'](_0x257a21);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x307eb3){const _0xd9be1c=this['getSidebarItemView'](_0x307eb3);this['stopListening'](_0xd9be1c),this['stopListening'](_0x307eb3['view']),_0xd9be1c['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x307eb3),this['_sidebarItemViewToAnnotation']['delete'](_0xd9be1c);}['_createSidebarView'](){const _0x1afaee=new V(this['context']['locale']);return _0x1afaee['render'](),this['on']('change:_lastItem',(_0x2ce58d,_0x77dde1,_0x372fa3,_0x103c88)=>{_0x103c88&&_0x1afaee['unbind']('minHeight'),_0x372fa3?_0x1afaee['bind']('minHeight')['to'](_0x372fa3,'bottom'):_0x1afaee['minHeight']=null;}),_0x1afaee;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x4f4ada){const _0x1ab0ba=this['_sidebarItemViewToAnnotation']['get'](_0x4f4ada),_0x28bf5e=_0x1ab0ba&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x1ab0ba)-0x1);return _0x28bf5e&&this['getSidebarItemView'](_0x28bf5e)||null;}['_getItemAfter'](_0x51f855){const _0x42fd25=this['_sidebarItemViewToAnnotation']['get'](_0x51f855),_0x3a96a8=_0x42fd25&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x42fd25)+0x1);return _0x3a96a8&&this['getSidebarItemView'](_0x3a96a8)||null;}['_alignBeforeItem'](_0x59878a,_0x1396af){_0x59878a['updateHeight']();const _0xe5c42e=R(_0x1396af['bottom']+this['_spaceBetweenItems'],_0x59878a['top']);return!!_0xe5c42e&&(this['_setItemTop'](_0x1396af,_0x1396af['top']-_0xe5c42e),!0x0);}['_alignAfterItem'](_0x173305,_0x7270df){_0x173305['updateHeight']();const _0x401175=R(_0x173305['bottom']+this['_spaceBetweenItems'],_0x7270df['top']);return!!_0x401175&&(this['_setItemTop'](_0x7270df,_0x7270df['top']+_0x401175,!0x1),!0x0);}['_alignToTargetRect'](_0x51c4cc){const _0x5412e0=this['_sidebarItemViewToAnnotation']['get'](_0x51c4cc);if(!_0x5412e0||!_0x5412e0['target']||!_0x5412e0['targetRect'])return;const _0x1e2b30=this['_getTargetTop'](_0x5412e0,_0x5412e0['targetRect']);this['_setItemTop'](_0x51c4cc,_0x1e2b30);}['_getTargetTop'](_0x485da1,_0x4121bc){if(null===_0x4121bc)return 0x0;if(_0x485da1['target']instanceof _0x30b314)return _0x4121bc['top'];{const _0x42e3c5=new _0x30b314(this['view']['element'])['top'];return _0x4121bc['top']-_0x42e3c5;}}['_setItemTop'](_0x1a9327,_0x2e91a7,_0x5235c9=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x5235c9&&(_0x2e91a7=Math['max'](_0x2e91a7,this['_getMaxAvailableTop'](_0x1a9327))),_0x1a9327['top']=_0x2e91a7;}['_getMaxAvailableTop'](_0x4939a2){let _0x36fa58=this['_getItemBefore'](_0x4939a2),_0x3b7b97=0x0;for(;_0x36fa58;)_0x36fa58['updateHeight'](),_0x3b7b97+=this['_spaceBetweenItems']+_0x36fa58['height'],_0x36fa58=this['_getItemBefore'](_0x36fa58);return _0x3b7b97;}}function R(_0x124246,_0x390a1b){return Math['max'](_0x124246-_0x390a1b,0x0);}function y(_0x3c694b){return null!==_0x3c694b&&'object'==typeof _0x3c694b&&0x1===_0x3c694b['nodeType'];}class e extends _0x33497c{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,M];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x276c0b){super(_0x276c0b),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x7c7e6e(),this['_refreshPositioningDebounced']=_0x2dddc1(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x16e488=this['context']['plugins']['get'](M),_0x13c6c9=this['context']['plugins']['get'](z);_0x16e488['register']('wideSidebar',this),_0x13c6c9['container']&&_0x16e488['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x28c992){if(_0x28c992===this['activeAnnotation'])return;const _0x37f5ac=this['context']['plugins']['get'](z);_0x37f5ac['_activeAnnotation']=_0x28c992;const _0x57256d=this['activeAnnotation'];this['activeAnnotation']=_0x28c992,_0x37f5ac['refresh']({'blurredAnnotation':_0x57256d,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x4c0401){this['annotations']=_0x4c0401;const _0x38aa99=this['context']['plugins']['get'](z);if(_0x38aa99['_annotations']=_0x4c0401,this['isAttached'])throw new _0x346f93('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x38aa99,'set:container',()=>{this['detach'](),this['listenTo'](_0x38aa99,'change:container',_0x17a1d7=>{_0x17a1d7['off'](),this['attach'](_0x4c0401);});}),_0x38aa99['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x12263c=_0x26fe43=>{_0x26fe43['updateTargetRect'](),_0x38aa99['addAnnotation'](_0x26fe43);};for(const _0x2e93bd of _0x4c0401)_0x12263c(_0x2e93bd);this['listenTo'](_0x4c0401,'add',(_0x5da7cf,_0x36d2d2)=>{_0x12263c(_0x36d2d2);}),this['listenTo'](_0x4c0401,'remove',(_0x160a33,_0x140fdc,_0x3706e9)=>{_0x38aa99['rearrange']({'removedAnnotation':_0x140fdc,'previousAnnotation':_0x4c0401['get'](_0x3706e9-0x1),'nextAnnotation':_0x4c0401['get'](_0x3706e9+0x1)}),_0x140fdc===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x4c0401,'focus',(_0x238215,_0x258ae4)=>{this['setActiveAnnotation'](_0x258ae4);}),this['listenTo'](_0x4c0401,'blur',()=>{this['setActiveAnnotation'](null);});const _0x274053=this['context']instanceof _0x2ef1cd?this['context']['editors']:new _0x7c7e6e([this['context']]);for(const _0x2241f9 of _0x274053)this['_integrateWithEditorAnnotations'](_0x2241f9);this['listenTo'](_0x274053,'add',(_0x247d92,_0x1467cc)=>{this['listenTo'](_0x1467cc,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x1467cc);});}),this['listenTo'](_0x274053,'remove',(_0x5a690a,_0x303df0)=>{_0x303df0['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x303df0['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x346f93('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x1cc803=this['context']['plugins']['get'](z);_0x1cc803['_detachFromContainer'](this['annotations']),this['stopListening'](_0x1cc803),this['stopListening'](this['annotations']),this['context']instanceof _0x2ef1cd&&this['stopListening'](this['context']['editors']);for(const _0x5bdb76 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x5bdb76);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x53c0a3){if(!_0x53c0a3['plugins']['has']('EditorAnnotations'))return;const _0x1e8c9e=_0x53c0a3['plugins']['get']('EditorAnnotations'),_0x2e609a=()=>{const _0x3de7b9=_0x1e8c9e['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x3de7b9[0x0]||null);};this['listenTo'](_0x1e8c9e,'refresh',_0x2e609a),this['listenTo'](_0x1e8c9e,'blur',(_0x55375a,{isAnnotationTracked:_0x4f5d21})=>{this['activeAnnotation']&&_0x4f5d21(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x1e8c9e,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x489520=>{_0x1e8c9e['hasDomSelection']()&&(_0x2e609a(),_0x489520['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x1e8c9e);}['_destroyEditorAnnotationsIntegration'](_0x142b8a){this['stopListening'](_0x142b8a),this['_editorAnnotations']['remove'](_0x142b8a);}}class D extends _0x3ea547{['counterView'];constructor(_0x32ffb3){super(_0x32ffb3);const _0x149b66=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x10b638,_0x20c36)=>_0x10b638?'...':_0x20c36['toString']()),this['set']('annotationType',''),this['icon']=xt,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x149b66['to']('annotationType',_0x503f26=>'ck-annotation-counter__badge--'+_0x503f26),_0x149b66['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x149b66['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x33497c{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,M];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x54fc23){super(_0x54fc23),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x1bf9b5),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x7c7e6e(),this['_refreshPositioningDebounced']=_0x2dddc1(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x17836d(this['context']['locale']),this['balloonPanelView']=new _0x4cbc09(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x49326b){this['annotations']=_0x49326b;const _0x25d634=this['context']['plugins']['get'](z),_0x447f74=this['balloonPanelView'];if(_0x25d634['_annotations']=_0x49326b,this['isAttached'])throw new _0x346f93('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x25d634,'set:container',()=>{this['detach'](),this['listenTo'](_0x25d634,'change:container',_0x29c0b9=>{_0x29c0b9['off'](),this['attach'](_0x49326b);});}),_0x25d634['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x3763fa=_0x24527f=>{const _0x28a5e1=new D(this['context']['locale']);_0x25d634['addAnnotation'](_0x24527f,_0x28a5e1),this['_annotationToNarrowView']['set'](_0x24527f,_0x28a5e1),_0x28a5e1['bind']('isDirty','annotationType','number')['to'](_0x24527f['view'],'isDirty','type','length'),_0x28a5e1['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x447f74['content']['first']!==_0x24527f['view']?(this['_showBalloon'](_0x24527f),_0x24527f['view']['element']['focus'](),this['setActiveAnnotation'](_0x24527f)):this['setActiveAnnotation'](null);});};for(const _0x237ce4 of _0x49326b)_0x3763fa(_0x237ce4);this['listenTo'](_0x49326b,'add',(_0x5cfa2a,_0x5b74f8)=>{_0x3763fa(_0x5b74f8);}),this['listenTo'](_0x49326b,'remove',(_0x5ac840,_0x151073,_0x24bb46)=>{this['_annotationToNarrowView']['get'](_0x151073)['destroy'](),this['_annotationToNarrowView']['delete'](_0x151073),_0x25d634['rearrange']({'removedAnnotation':_0x151073,'previousAnnotation':_0x49326b['get'](_0x24bb46-0x1),'nextAnnotation':_0x49326b['get'](_0x24bb46+0x1)}),_0x151073===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x49326b,'focus',(_0x12515f,_0x2a764c)=>{this['setActiveAnnotation'](_0x2a764c);}),this['listenTo'](_0x49326b,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x5e16a8,_0x43c902)=>{_0x43c902['keyCode']===_0x1e16ed['esc']&&_0x447f74['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x447f74['content']['first']),this['_hideBalloon'](),_0x43c902['stopPropagation'](),_0x43c902['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x48d0b2,_0x2b8e4c)=>{const _0x225709=_0x2b8e4c['target'];_0x447f74['isVisible']&&_0x447f74['element']['contains'](_0x225709)||_0x25d634['view']['element']['contains'](_0x225709)||_0x48d0b2['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x55b49e=>_0x55b49e['contains'](_0x225709))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x2ed24e=this['context']instanceof _0x2ef1cd?this['context']['editors']:new _0x7c7e6e([this['context']]);for(const _0x402d0b of _0x2ed24e)this['_integrateWithEditorAnnotations'](_0x402d0b);this['listenTo'](_0x2ed24e,'add',(_0xbf0b09,_0x122a13)=>{this['listenTo'](_0x122a13,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x122a13);});}),this['listenTo'](_0x2ed24e,'remove',(_0x274737,_0x4c4ccb)=>{_0x4c4ccb['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x4c4ccb['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x5d699c){if(_0x5d699c===this['activeAnnotation'])return;const _0x1c20f3=this['context']['plugins']['get'](z);if(_0x1c20f3['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x5d699c,'disableAnimationOnActivatedAnnotation':!0x0}),_0x5d699c)_0x1c20f3['getSidebarItemView'](_0x5d699c)?this['_showBalloon'](_0x5d699c):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x5d699c;}['detach'](){if(!this['isAttached'])throw new _0x346f93('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0xca981e=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x20a61a=>_0x20a61a['destroy']()),this['_annotationToNarrowView']['clear'](),_0xca981e['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x2ef1cd&&this['stopListening'](this['context']['editors']);for(const _0x527a2c of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x527a2c);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['_selectedAnnotations']=[],this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['bodyCollection']['detachFromDom']();}['_integrateWithEditorAnnotations'](_0x50e4a3){if(!_0x50e4a3['plugins']['has']('EditorAnnotations'))return;const _0x19e700=_0x50e4a3['plugins']['get']('EditorAnnotations'),_0x5e3ac5=this['context']['plugins']['get'](z),_0x457abe=this['annotations'],_0x33ec5d=this['balloonPanelView'],_0x407644=()=>{const _0x9f1c85=_0x19e700['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x9f1c85),this['setActiveAnnotation'](_0x9f1c85[0x0]||null);};this['listenTo'](_0x19e700,'refresh',_0x407644),this['listenTo'](_0x19e700,'blur',(_0x5055e1,{isAnnotationTracked:_0x37f187})=>{this['activeAnnotation']&&_0x37f187(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x19e700,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x457abe,'blur',_0x340cc6=>{_0x19e700['hasDomSelection']()&&_0x340cc6['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0xc10ccd,_0x2134f6)=>{const _0x11ca2a=_0x2134f6['target'];_0x33ec5d['isVisible']&&_0x33ec5d['element']['contains'](_0x11ca2a)||_0x5e3ac5['view']['element']['contains'](_0x11ca2a)||this['activeAnnotation']&&_0x19e700['hasDomSelection']()&&(_0x407644(),_0xc10ccd['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x19e700);}['_destroyEditorAnnotationsIntegration'](_0x1e341c){_0x1e341c&&(this['stopListening'](_0x1e341c),this['_editorAnnotations']['remove'](_0x1e341c));}['_setSelectedAnnotations'](_0x379ef9){for(const _0x125412 of this['_selectedAnnotations'])_0x379ef9['includes'](_0x125412)||this['_manuallyClosedAnnotationViews']['delete'](_0x125412['view']);this['_selectedAnnotations']=_0x379ef9;}['_refreshPositioning'](){const _0x2a1701=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x2a1701['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x532ec1){if(this['_manuallyClosedAnnotationViews']['has'](_0x532ec1['view']))return;const _0x55700d=this['balloonPanelView']['content']['first'];_0x55700d!==_0x532ec1['view']?(_0x55700d&&this['_detachListeners'](_0x55700d),this['_attachListeners'](_0x532ec1['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x532ec1['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x2b3556=this['balloonPanelView']['content']['first'],_0x191c81=_0x2b3556&&this['annotations']['getByView'](_0x2b3556);if(!_0x191c81||!this['_annotationToNarrowView']['has'](_0x191c81))return;const _0x323053=this['_annotationToNarrowView']['get'](_0x191c81)['element'],_0x46f395=(function(){const _0x4ab464=_0x4cbc09['defaultPositions'];return[_0x4ab464['southArrowNorthEast'],_0x4ab464['northArrowSouthEast'],_0x4ab464['southArrowNorth'],_0x4ab464['northArrowSouth'],_0x4ab464['southArrowNorthWest'],_0x4ab464['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x323053,'positions':_0x46f395});}['_hideBalloon'](){const _0x320b5a=this['balloonPanelView'],_0x31022d=_0x320b5a['content']['first'];_0x31022d&&(this['_detachListeners'](_0x31022d),_0x320b5a['unpin'](),_0x320b5a['content']['clear']());}['_attachListeners'](_0x57ce1b){this['listenTo'](_0x57ce1b,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x57ce1b,'Esc',(_0x43fd82,_0x19794b)=>{this['_manuallyClosedAnnotationViews']['add'](_0x57ce1b),this['_hideBalloon'](),_0x19794b();});}['_detachListeners'](_0x15f1e6){this['stopListening'](_0x15f1e6);}}class c extends _0x3a3b81{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x49da12,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x74122d){super(_0x74122d),_0x74122d['editing']['view']['addObserver'](_0x2a5d33),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x74122d['plugins']['get'](_0x49da12),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x103a83=this['editor']['plugins']['get'](M);_0x103a83['context']===this['editor']&&(_0x103a83['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0xa1eab0,_0x1ae54a)=>{const _0x28b751=this['_balloon'];if(this['isAttached']&&_0x28b751['visibleView']){const _0x14b09b=this['annotations']['getByView'](_0x28b751['visibleView']);_0x14b09b&&this['_closeAnnotation'](_0x14b09b),_0x1ae54a();}}));}['afterInit'](){const _0x3fe768=this['editor']['plugins']['get'](M);_0x3fe768['context']===this['editor']&&(_0x3fe768['hasActive']()||_0x3fe768['switchTo']('inline'));}['setActiveAnnotation'](_0x493edf){_0x493edf!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x493edf&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x493edf)&&this['_addAnnotationToBalloon'](_0x493edf,!0x0),_0x493edf['isActive']=!0x0),_0x493edf||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x493edf);}['attach'](_0x538bbc){this['annotations']=_0x538bbc;const _0x38d7ea=this['editor']['plugins']['get'](M),_0x5e2a4a=this['_balloon'];if(this['isAttached'])throw new _0x346f93('inlineannotations-attach-already-attached',this);if(_0x38d7ea['context']!==this['editor'])throw new _0x346f93('inlineannotations-not-allowed-with-context',this);const _0x23c2d4=this['editor']['plugins']['get'](P);this['listenTo'](_0x23c2d4,'refresh',()=>{const _0x5c854=_0x23c2d4['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x3b5c48,_0xc9739b;!this['_forceRefresh']&&(_0x3b5c48=_0x5c854,_0xc9739b=this['_selectedAnnotations'],_0x3b5c48['length']===_0xc9739b['length']&&_0x3b5c48['every'](_0xf82b2a=>_0xc9739b['includes'](_0xf82b2a)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x5c854),this['setActiveAnnotation'](_0x5c854[0x0]||null));}),this['listenTo'](_0x23c2d4,'blur',(_0x2eee2c,{isAnnotationTracked:_0x50f39b})=>{this['activeAnnotation']&&_0x50f39b(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x18ddd2,_0x4a596c,_0x2b26a0)=>{_0x2b26a0||this['setActiveAnnotation'](null);}),this['listenTo'](_0x538bbc,'remove',(_0x33ca6c,_0x1eb373)=>{this['_removeAnnotationFromBalloon'](_0x1eb373),_0x1eb373===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x5e2a4a,'change:visibleView',(_0x5a47db,_0x5dd301,_0x443b04,_0xb3eae1)=>{_0xb3eae1&&this['stopListening'](_0xb3eae1);const _0x48226e=_0x538bbc['getByView'](_0x443b04);_0x443b04&&_0x48226e&&(this['listenTo'](_0x443b04,'change:height',()=>{_0x5e2a4a['updatePosition']();}),this['listenTo'](_0x443b04,'Esc',()=>{this['_closeAnnotation'](_0x48226e),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x48226e&&this['setActiveAnnotation'](_0x48226e));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x5e2a4a['visibleView']&&(_0x538bbc['getByView'](_0x5e2a4a['visibleView'])&&_0x5e2a4a['updatePosition']());}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',()=>{this['_forceRefresh']=!0x0,this['_manuallyClosed']['clear']();}),this['editor']['editing']['view']['document']['selection']['editableElement']&&this['editor']['editing']['view']['focus'](),this['isAttached']=!0x0;}['detach'](){if(!this['isAttached'])throw new _0x346f93('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x174af9 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x174af9);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x33587b){for(const _0x13cb61 of this['_selectedAnnotations'])_0x33587b['includes'](_0x13cb61)||this['_manuallyClosed']['delete'](_0x13cb61);for(const _0x4d2e2f of this['annotations'])_0x33587b['includes'](_0x4d2e2f)||this['_removeAnnotationFromBalloon'](_0x4d2e2f);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0xa9f1ed of _0x33587b)this['_addAnnotationToBalloon'](_0xa9f1ed);}this['_selectedAnnotations']=_0x33587b;}['_addAnnotationToBalloon'](_0x48276d,_0x16f63f=!0x1){this['_manuallyClosed']['has'](_0x48276d)||(this['_addedAnnotations']['has'](_0x48276d)||this['_balloon']['hasView'](_0x48276d['view'])||(this['_addedAnnotations']['add'](_0x48276d),this['_balloon']['add']({'stackId':_0x48276d['view']['id'],'view':_0x48276d['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x48276d)}})),_0x16f63f&&this['_balloon']['showStack'](_0x48276d['view']['id']));}['_getBalloonTargetForAnnotation'](_0x107c04){const _0x3cd653=_0x107c04['target'],_0x47f721=this['editor']['editing']['view'],_0x14d236=_0x47f721['document']['selection']['getFirstRange'](),_0x470771=_0x47f721['domConverter']['viewRangeToDom'](_0x14d236);if(_0x470771['collapse'](!0x0),_0x3cd653){if(_0x3cd653 instanceof _0x30b314)return _0x3cd653;let _0x5acaa0=[];for(const _0x5867d3 of _0x3cd653)_0x5acaa0['push'](...(_0x24405d=_0x5867d3['getClientRects'](),Array['from'](_0x24405d)['map'](DOMRect['fromRect'])));_0x5acaa0=function(_0x33ee18){const _0xe4392f=[];let _0x1e00de=_0x33ee18[0x0];for(let _0x1c551c=0x1;_0x1c551c<_0x33ee18['length'];_0x1c551c++)b(_0x1e00de,_0x33ee18[_0x1c551c])?_0x1e00de['width']+=_0x33ee18[_0x1c551c]['width']:(_0xe4392f['push'](_0x1e00de),_0x1e00de=_0x33ee18[_0x1c551c]);return _0xe4392f['push'](_0x1e00de),_0xe4392f;}(_0x5acaa0);const _0x5adaf4=_0x470771['getBoundingClientRect']();return _0x5acaa0['find'](_0x33bd2a=>_0x33bd2a['top']<=_0x5adaf4['top']&&_0x33bd2a['bottom']>=_0x5adaf4['bottom']&&_0x33bd2a['left']<=_0x5adaf4['left']&&_0x33bd2a['right']>=_0x5adaf4['right'])||_0x5acaa0[0x0];}var _0x24405d;return _0x107c04['targetRect']||_0x470771;}['_removeAnnotationFromBalloon'](_0x34f7aa){this['_addedAnnotations']['has'](_0x34f7aa)&&this['_balloon']['hasView'](_0x34f7aa['view'])&&(this['_addedAnnotations']['delete'](_0x34f7aa),this['_balloon']['remove'](_0x34f7aa['view']));}['_closeAnnotation'](_0x3ce2dc){this['_manuallyClosed']['add'](_0x3ce2dc),this['_removeAnnotationFromBalloon'](_0x3ce2dc);}}function b(_0x1ddb1e,_0xc7526){return _0x1ddb1e['top']===_0xc7526['top']&&_0x1ddb1e['bottom']===_0xc7526['bottom']&&_0x1ddb1e['right']===_0xc7526['left'];}var Z='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M14\x203.5A3.5\x203.5\x200\x200\x201\x2017.5\x207v6l-.005.192a3.501\x203.501\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.37-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.272-2.63l-.062-.07-4.729-.046a3.5\x203.5\x200\x200\x201-3.5-3.5v-6a3.5\x203.5\x200\x200\x201\x203.5-3.5L14\x203.5ZM3.5\x204.954a2\x202\x200\x200\x200-2\x202v6a2\x202\x200\x200\x200\x202\x202L8.924\x2015a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L12.962\x2015H14a2\x202\x200\x200\x200\x202-2V7a2\x202\x200\x200\x200-2-2L3.5\x204.954Z\x22/><path\x20d=\x22M16.5.5h-10a3.5\x203.5\x200\x200\x200-3.162\x202h1.84A2\x202\x200\x200\x201\x206.5\x202h10a2\x202\x200\x200\x201\x202\x202v8.873a3.502\x203.502\x200\x200\x200\x201.495-2.681L20\x2010V4A3.5\x203.5\x200\x200\x200\x2016.5.5Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M12.013\x207.453a.75.75\x200\x200\x201\x20.034\x201.06l-3.75\x204a.75.75\x200\x200\x201-1.045.048l-2.25-2a.75.75\x200\x200\x201\x20.996-1.122l1.704\x201.515\x203.25-3.467a.75.75\x200\x200\x201\x201.061-.034Z\x22/></svg>\x0a';class tt extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x42ad56,_0x7efe1e){super(_0x42ad56),this['set']('isEmpty',!_0x7efe1e['length']),this['focusTracker']=new _0x36f890(),this['_annotationViews']=_0x7efe1e,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x7efe1e,'focusTracker':this['focusTracker']}),this['listenTo'](_0x7efe1e,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x7efe1e,'remove',(_0x99dd56,_0x42146b)=>{_0x42146b['isActive']&&this['focus'](),_0x7efe1e['length']||(this['isEmpty']=!0x0);});const _0x20ee93=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x42ad56,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x7efe1e},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x20ee93['if']('isEmpty','ck-hidden',_0x4d9b26=>!_0x4d9b26)]},'children':[{'text':S(_0x42ad56,'EMPTY_COMMENTS_ARCHIVE')}]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy']();}['focus'](){this['focusCycler']['first']?this['focusCycler']['focusFirst']():this['element']['focus']();}['_setupKeyboardNavigation'](){for(const _0x28b07c of this['_annotationViews'])this['focusTracker']['add'](_0x28b07c['element']);this['_annotationViews']['on']('change',(_0x224d4d,{added:_0x3465bd,removed:_0x37289a})=>{for(const _0x523cd6 of _0x3465bd)this['focusTracker']['add'](_0x523cd6['element']);for(const _0x4e35ce of _0x37289a)this['focusTracker']['remove'](_0x4e35ce['element']);});}}class f extends _0x33497c{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x57a996){super(_0x57a996),this['archivedThreads']=new _0x7c7e6e();}['init'](){const _0x4078d2=this['context'],_0xdf921e=_0x4078d2['plugins']['get'](o),_0xa1166=_0x4078d2['plugins']['get'](N);this['listenTo'](_0xdf921e,'addCommentThread',(_0xaf1aae,{threadId:_0x36dd4a})=>{const _0xb4aa22=_0xdf921e['getCommentThread'](_0x36dd4a);_0xb4aa22['archivedAt']&&this['archivedThreads']['add'](_0xb4aa22,this['_calculatePosition'](_0xb4aa22['archivedAt'])),this['listenTo'](_0xb4aa22,'change:archivedAt',(_0x1a078e,_0x22a4b8,_0x5f20fa)=>{_0x5f20fa?this['archivedThreads']['has'](_0xb4aa22)||this['archivedThreads']['add'](_0xb4aa22,this['_calculatePosition'](_0xb4aa22['archivedAt'])):this['archivedThreads']['has'](_0xb4aa22)&&this['archivedThreads']['remove'](_0xb4aa22);});}),this['listenTo'](_0xdf921e,'removeCommentThread',(_0x58f890,{threadId:_0x5eb045})=>{const _0x1d6b06=_0xdf921e['getCommentThread'](_0x5eb045);this['stopListening'](_0x1d6b06),this['archivedThreads']['has'](_0x1d6b06)&&this['archivedThreads']['remove'](_0x1d6b06);},{'priority':'highest'}),this['listenTo'](_0xa1166['collection'],'focus',(_0x3ce24a,_0x13b0d7)=>{_0x13b0d7['isVisible']||(_0x13b0d7['isActive']=!0x0,_0xa1166['activate'](_0x13b0d7));});}['_calculatePosition'](_0x5426e1){const _0x33c5a7=[...this['archivedThreads']]['findIndex'](_0x47a28c=>_0x47a28c['archivedAt']<_0x5426e1);return _0x33c5a7>-0x1?_0x33c5a7:this['archivedThreads']['length'];}}class a extends _0x3a3b81{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0xb3c417];}constructor(_0x27c284){super(_0x27c284),this['annotationViews']=new _0x2cd9a9(),this['_pendingThreads']=[];}['init'](){const _0x43f2f6=this['editor'],_0x7caecf=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x43f2f6['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x3ea547,!0x0)),_0x43f2f6['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x3d6607=this['_createCommentsArchiveButton'](_0x22933f);return _0x3d6607['set']({'role':'menuitemcheckbox'}),_0x3d6607;});const _0x5ef8df=_0x43f2f6['plugins']['get'](f),_0x569500=_0x43f2f6['plugins']['get']('Annotations'),_0x3ec714=_0x43f2f6['plugins']['get']('CommentsRepository');this['listenTo'](_0x5ef8df['archivedThreads'],'add',(_0xf360be,_0x39f7fc)=>{const _0x1b51e4=_0x43f2f6['config']['get']('collaboration.channelId');if(!_0x1b51e4||_0x39f7fc['channelId']===_0x1b51e4){const _0x25791d=_0x3ec714['_threadToController']['get'](_0x39f7fc);if(!_0x25791d)return void this['_pendingThreads']['push'](_0x39f7fc);const _0x5ab7f1=this['_calculatePosition'](_0x39f7fc['archivedAt']),_0x2793d5=_0x569500['getByInnerView'](_0x25791d['view']);_0x2793d5['isVisible']&&_0x569500['_visibleAnnotations']['remove'](_0x2793d5),this['annotationViews']['add'](_0x2793d5['view'],_0x5ab7f1);}}),this['listenTo'](_0x569500['collection'],'add',(_0x343061,_0xd41ce8)=>{const _0x4ec50c=this['_pendingThreads']['find'](_0x25be66=>{const _0x2f1d77=_0x3ec714['_threadToController']['get'](_0x25be66);return _0x2f1d77&&_0xd41ce8['innerView']===_0x2f1d77['view'];});if(_0x4ec50c){const _0x2f6b2c=this['_calculatePosition'](_0x4ec50c['archivedAt']);this['annotationViews']['add'](_0xd41ce8['view'],_0x2f6b2c),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x4ec50c),0x1);}}),this['listenTo'](_0x5ef8df['archivedThreads'],'remove',(_0x1e65c0,_0x4d056e)=>{const _0x48661f=_0x43f2f6['config']['get']('collaboration.channelId');if(!_0x48661f||_0x4d056e['channelId']===_0x48661f){const _0x47700c=_0x3ec714['_threadToController']['get'](_0x4d056e),_0x52587c=_0x569500['getByInnerView'](_0x47700c['view']);this['annotationViews']['remove'](_0x52587c['view']),this['stopListening'](_0x52587c['focusableElements']);}}),this['listenTo'](_0x569500['collection'],'add',(_0x311c8d,_0x159f66)=>{this['listenTo'](_0x159f66,'escape',_0x7caecf);}),this['listenTo'](_0x569500['collection'],'remove',(_0x47bcc5,_0x2f312b)=>{this['stopListening'](_0x2f312b,'escape',_0x7caecf);});}['_calculatePosition'](_0x286088){const _0x437a85=this['editor']['config']['get']('collaboration.channelId'),_0x39fe39=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x4e146d=>_0x4e146d['channelId']===_0x437a85)['findIndex'](_0x1e01d5=>_0x1e01d5['archivedAt']<_0x286088);return _0x39fe39<0x0||_0x39fe39>this['annotationViews']['length']?this['annotationViews']['length']:_0x39fe39-0x1;}['_toggleDialog'](){const _0x47278e=this['editor'],_0x2cec7d=_0x47278e['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x47278e['locale'],this['annotationViews'])),'commentsArchive'===_0x2cec7d['id']?_0x2cec7d['hide']():_0x2cec7d['show']({'id':'commentsArchive','title':S(_0x47278e['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x539a3d['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x36fc64,_0x1d50a7=!0x1){const _0x42417f=this['editor']['locale'],_0x2e66bd=this['editor']['plugins']['get']('Dialog'),_0x3c6124=new _0x36fc64(_0x42417f);return _0x3c6124['bind']('isEnabled')['to'](this,'isEnabled'),_0x3c6124['bind']('isOn')['to'](_0x2e66bd,'id',_0x58f501=>'commentsArchive'===_0x58f501),_0x3c6124['set']({'label':S(_0x42417f,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x1d50a7&&(_0x3c6124['tooltip']=!0x0),this['listenTo'](_0x3c6124,'execute',()=>this['_toggleDialog']()),_0x3c6124;}['_hideDialogOnAnnotationEscape']=_0x48aad3=>{const _0x5c8a02=_0x48aad3['source'];if(!this['annotationViews']['has'](_0x5c8a02['view']))return;const _0x44cdca=this['editor']['plugins']['get']('Dialog');_0x44cdca['isOpen']&&'commentsArchive'===_0x44cdca['id']&&(_0x44cdca['hide'](),_0x48aad3['stop']());};}class p extends _0x3a3b81{static get['requires'](){return[o,r,i,f,a,s,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{d as Annotation,x as AnnotationCollection,T as AnnotationView,N as Annotations,M as AnnotationsUIs,is as BaseCommentThreadView,rs as BaseCommentView,re as Comment,oe as CommentThread,Ct as CommentThreadController,ie as CommentThreadInputView,vt as CommentThreadView,gt as CommentView,p as Comments,f as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,e as WideSidebar};