@ckeditor/ckeditor5-comments 46.0.0-alpha.6 → 46.0.0-alpha.7

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 (193) hide show
  1. package/build/comments.js +1 -1
  2. package/dist/index.js +11 -11
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +18 -18
  150. package/src/annotations/annotation.js +2 -2
  151. package/src/annotations/annotationcollection.js +1 -1
  152. package/src/annotations/annotations.js +1 -1
  153. package/src/annotations/annotationsuis.js +1 -1
  154. package/src/annotations/editorannotations.js +1 -1
  155. package/src/annotations/inlineannotations.js +1 -1
  156. package/src/annotations/narrowsidebar.js +1 -1
  157. package/src/annotations/sidebar.js +1 -1
  158. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  159. package/src/annotations/view/annotationview.js +1 -1
  160. package/src/annotations/view/sidebaritemview.js +2 -2
  161. package/src/annotations/view/sidebarview.js +2 -2
  162. package/src/annotations/widesidebar.js +1 -1
  163. package/src/comments/addcommentthreadcommand.js +1 -1
  164. package/src/comments/commentsarchive.js +1 -1
  165. package/src/comments/commentsarchiveui.js +1 -1
  166. package/src/comments/commentsediting.js +1 -1
  167. package/src/comments/commentsrepository.js +3 -3
  168. package/src/comments/commentsui.js +1 -1
  169. package/src/comments/integrations/clipboard.js +1 -1
  170. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  171. package/src/comments/integrations/importword.js +1 -1
  172. package/src/comments/integrations/showcommenthighlights.js +1 -1
  173. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  174. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  175. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  176. package/src/comments/ui/commentthreadcontroller.js +2 -2
  177. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  178. package/src/comments/ui/view/basecommentview.js +1 -1
  179. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  180. package/src/comments/ui/view/commentcontentview.js +1 -1
  181. package/src/comments/ui/view/commentinputview.js +1 -1
  182. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  183. package/src/comments/ui/view/commentslistview.js +1 -1
  184. package/src/comments/ui/view/commentthreadheadercontextview.js +1 -1
  185. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  186. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  187. package/src/comments/ui/view/commentthreadview.js +2 -2
  188. package/src/comments/ui/view/commentview.js +2 -2
  189. package/src/comments.js +1 -1
  190. package/src/commentsonly.js +1 -1
  191. package/src/index.js +1 -1
  192. package/src/utils/common-translations.js +1 -1
  193. package/src/utils/createmutationobserver.js +1 -1
package/dist/index.js CHANGED
@@ -20,14 +20,14 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Editor as _0x14e4ce,ContextPlugin as _0x5d570f,PendingActions as ht,Command as _0x173239,Plugin as _0x847970,Context as _0x3422b6}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x2f0bd8,uid as _0x3b7a37,KeystrokeHandler as jt,FocusTracker as _0xd0afa6,diff as _0x3ec72e,Collection as _0x52f624,Rect as _0x206900,CKEditorError as _0xcbec56,first as _0x1af6d5,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x3f2fdf,keyCodes as _0x7ba570}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x14525e,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x42cec5,trimHtml as ts,LateFocusDropdownButtonView as _0x2c4173,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x185b3c}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as Ct,debounce as _0x80a969}from'es-toolkit/compat';import{IconUndo as _0x11eb95,IconCheck as _0x227c87,IconPencil as _0x5a54a4,IconRemoveComment as _0x415978,IconThreeVerticalDots as _0x4406d3,IconAddComment as _0x31f37f,IconCommentsArchive as _0x3df419}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0x5aa072,ButtonView as _0x1287d8,ViewCollection as _0x55d301,createDropdown as _0x5cdbae,ListView as _0x367966,focusChildOnDropdownOpen as _0x5b7b39,ListItemView as _0xd5e0a7,MenuBarMenuListItemButtonView as _0x3cebc9,BodyCollection as _0x2a9849,BalloonPanelView as _0x4a0fdd,ContextualBalloon as _0x1c6b4d,Dialog as _0x517e68,DialogViewPosition as _0x42e0d9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as qt,enableViewPlaceholder as St,MouseObserver as _0x28fbef}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as zt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as Bt,ShiftEnter as Et}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Gt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Jt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Kt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Lt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x5c1279}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x274cfe}from'@ckeditor/ckeditor5-widget/dist/index.js';class yt extends/* #__PURE__ -- @preserve */
24
- _0x2f0bd8(){['model'];['view'];constructor(_0x1f28ce,_0xd06820){super(),this['model']=_0x1f28ce,this['model']['_isAttached']=!0x0,this['view']=_0xd06820,this['listenTo'](_0xd06820,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0xd06820,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0xd06820,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0xd06820,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0xd06820,'addComment',(_0x90e403,_0x36401c)=>this['addComment'](_0x36401c)),this['listenTo'](_0xd06820,'updateComment',(_0x3622b1,_0x2451c2,_0x1d30b8)=>this['updateComment'](_0x2451c2,_0x1d30b8)),this['listenTo'](_0xd06820,'removeComment',(_0x4f6f15,_0x2f6fcf)=>this['removeComment'](_0x2f6fcf));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x67c70a){this['model']['addComment']({'content':_0x67c70a,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x39a92c,_0x302916){this['model']['getComment'](_0x39a92c)['update']({'content':_0x302916});}['removeComment'](_0x2193b6){this['model']['getComment'](_0x2193b6)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x27f4d5,_0x2bd05d,_0x44e600){const t=_0x27f4d5['t'];switch(_0x2bd05d){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'},_0x44e600);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'},_0x44e600);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'},_0x44e600);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'},_0x44e600);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x44e600);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'},_0x44e600);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'},_0x44e600);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'},_0x44e600);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 Rt extends $t{['main'];['editable'];constructor(_0x103553,_0x4ce376){super(_0x103553);const _0x30723a=_0x3b7a37();this['main']=this['createCollection'](),this['editable']=new Vt(_0x103553,_0x4ce376,void 0x0,{'label':()=>N(_0x103553,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x103553['uiLanguageDirection'],'lang':_0x103553['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x30723a},'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 Ft extends Ut{['view'];constructor(_0x5be7d3){super(_0x5be7d3),this['view']=new Rt(_0x5be7d3['locale'],_0x5be7d3['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x3f6722=this['editor']['editing']['view'],_0x695d01=this['view']['editable'],_0x4865dc=_0x3f6722['document']['getRoot']();_0x695d01['name']=_0x4865dc['rootName'],this['view']['render']();const _0x53054f=_0x695d01['element'];this['setEditableElement'](_0x695d01['name'],_0x53054f),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3f6722['attachDomRoot'](_0x53054f),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Nt=[zt,Bt,Et,Gt,Jt,Kt,Lt];class Qt extends/* #__PURE__ -- @preserve */
25
- _0x2f0bd8(_0x14e4ce){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Nt)());constructor(_0x45c52b={}){function _0x20882f(_0x50482e){return _0x50482e['map'](_0x3ba6d0=>String['fromCharCode'](_0x3ba6d0))['join']('');}(_0x45c52b=Object['assign']({},_0x45c52b))['plugins']||(_0x45c52b['plugins']=Qt['defaultPlugins']),super(_0x45c52b),this['ui']=new Ft(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x20882f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20882f([0x76,0x69,0x65,0x77])][_0x20882f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20882f([0x61,0x75,0x74,0x6f]),this[_0x20882f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x20882f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20882f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x20882f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x20882f([0x6f,0x6b])});}['create'](){const _0xba0117=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0xba0117))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x5bae79=>{const _0x2f5d24=this['model']['document']['getRoot'](),_0x4f8d05=_0x2f5d24&&_0x2f5d24['getChild'](_0x2f5d24['childCount']-0x1);_0x5bae79['setSelection'](_0x4f8d05,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x336f10=this['editing']['view'],_0x187faa=_0x336f10['document']['getRoot'](),_0x4cba84=_0x187faa['getChild'](0x0);_0x187faa['childCount']>0x1||!_0x4cba84||'p'!=_0x4cba84['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(qt(_0x336f10,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x4cba84['placeholder']=this['placeholder']),St({'view':_0x336f10,'element':_0x4cba84,'keepOnFocus':!0x0}),this['placeholderElement']=_0x4cba84);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x1569f1,_0x506830={}){super(_0x1569f1),this['editor']=null,this['_editorConfig']=_0x506830,this['set']('value',_0x506830['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x1569f1,'Reply...')),this['set']('submitLabel',N(_0x1569f1,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0xd0afa6(),this['focusCycler']=new _0x5aa072({'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',(_0x2a66a6,_0x2dcdf8)=>{this['cancelButtonView']['fire']('execute'),_0x2dcdf8();}),this['keystrokes']['set']('Ctrl+Enter',(_0x4a8409,_0x1da544)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x1da544());}),this['on']('submit',(_0x37f1d4,_0x3aa8e9)=>{_0x3aa8e9['length']>0xfde8?(alert(N(_0x1569f1,'TOO_LONG_COMMENT_ALERT',[_0x3aa8e9['length'],0xfde8])),_0x37f1d4['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Qt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x4377d3=this['editor'];this['element']['insertBefore'](_0x4377d3['ui']['element'],this['element']['firstChild']),_0x4377d3['model']['document']['on']('change',()=>this['value']=_0x4377d3['getData']()),_0x4377d3['bind']('placeholder')['to'](this),this['focusables']['add'](_0x4377d3['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x3500d6){-0x1===_0x3500d6?(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:_0x1c0321}=this,_0x5940f5=new _0x1287d8(_0x1c0321);return _0x5940f5['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x5940f5['withText']=!0x0,_0x5940f5['bind']('label')['to'](this,'submitLabel'),_0x5940f5['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x5940f5['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x15667b,_0x309ac7)=>!_0x309ac7&&!!_0x15667b['trim']()),_0x5940f5;}['_createCancelButton'](){const {locale:_0x206afa}=this,_0x2c762f=new _0x1287d8(_0x206afa);return _0x2c762f['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x2c762f['label']=N(_0x206afa,'Cancel'),_0x2c762f['withText']=!0x0,_0x2c762f['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x2c762f;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x401ed3=>{this['focusTracker']['add'](_0x401ed3['element']);}),this['focusables']['on']('change',(_0x27d3c8,_0x483136)=>{for(const _0x55fed2 of Array['from'](_0x483136['added'])['reverse']())this['focusTracker']['add'](_0x55fed2['element']);});}}class ie extends kt{constructor(_0x1376d2,_0x47628d,_0x5e8551){super(_0x1376d2),this['commentInputView']=new es(_0x1376d2,_0x5e8551),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x5eb802,_0x1354d8)=>_0x5eb802||!!_0x1354d8),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 _0x14525e(_0x1376d2,_0x47628d),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'](_0x378c86){this['commentInputView']['focus'](_0x378c86);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x124377,_0x5370e7)=>{const {submitButtonView:_0x429f86,cancelButtonView:_0x36404b,editor:_0x5e59a0}=this['commentInputView'];[_0x429f86['element'],_0x36404b['element'],_0x5e59a0?_0x5e59a0['editing']['view']['getDomRoot']():null]['filter'](_0xfdd7a4=>_0xfdd7a4)['some'](_0x25ae56=>_0x25ae56['contains'](_0x5370e7['target']))||(this['focus'](),_0x5370e7['preventDefault']());});}}class os extends kt{constructor(_0x5af62e){super(_0x5af62e);const _0x4b5d0f=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x4b5d0f['to']('count',_0x22e840=>N(_0x5af62e,'NUMBER_OF_COMMENTS',_0x22e840))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x390062,_0x50a3f8,_0x1699da){super(_0x390062);const _0x4b9d22=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x50a3f8['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x50a3f8,this['_config']=_0x1699da,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0xd0afa6(),this['keystrokes']=new jt(),this['focusCycler']=new _0x5aa072({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5b4f5f=>this['commentViews']['map'](_0x379221=>_0x379221['element'])['includes'](_0x5b4f5f['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new os(_0x390062),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x1baaaf=>_0x1baaaf-this['_config']['maxCommentsWhenCollapsed']);for(const _0x5e25fa of _0x50a3f8['comments'])this['_handleNewCommentModel'](_0x5e25fa);this['_handleInfoComment'](),this['listenTo'](_0x50a3f8['comments'],'add',(_0x25cb3f,_0x43f916)=>{const _0x49cf90=this['_calculatePosition'](_0x43f916);this['length']++,this['_handleNewCommentModel'](_0x43f916,_0x49cf90),this['refreshVisibleViews']();}),this['listenTo'](_0x50a3f8['comments'],'remove',(_0x24515d,_0x11f6b6)=>{this['length']--,this['_handleRemoveCommentModel'](_0x11f6b6),this['refreshVisibleViews']();}),this['listenTo'](_0x50a3f8,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x50a3f8,'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',_0x4b9d22['if']('length','ck-hidden',_0x2a5346=>!_0x2a5346)],'aria-label':N(_0x390062,'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'](_0x2b6e41){-0x1===_0x2b6e41?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x28b15f of this['commentViews'])_0x28b15f['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x14d7b3,_0x3f266a){const _0x347b52=new this['_config']['CommentView'](this['locale'],_0x14d7b3,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x347b52['viewUid']=_0x14d7b3['id'],_0x347b52['delegate']('removeComment')['to'](this),_0x347b52['delegate']('updateComment')['to'](this),_0x347b52['delegate']('resolveCommentThread')['to'](this),_0x347b52['delegate']('editorReady')['to'](this),_0x347b52['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x347b52,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x347b52,_0x3f266a);}['_calculatePosition'](_0x1f796a){const _0x298260=this['_model']['_findOptimalIndex'](_0x1f796a);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x1f796a['authoredAt']?_0x298260-0x1:_0x298260:_0x298260-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x3409b4={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':N(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x3409b4,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x3409b4));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0xaede78){const _0x420ac2=this['commentViews']['remove'](_0xaede78['id']);this['stopListening'](_0x420ac2),_0x420ac2['isEditMode']&&this['_updateHasDirtyComment'](),_0x420ac2['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x218c60=>_0x218c60['isEditMode']);}['_rearrangeCollapse'](){const _0x1aa583=function(_0x587e8e){const _0x4de10e=new _0x52f624();for(const _0x7b8b5d of _0x587e8e)_0x4de10e['add'](_0x7b8b5d);return _0x4de10e;}(this['commentViews']),_0x5b02c9=this['_collapsedCommentsView']['count'];for(let _0x115894=0x1;_0x115894<=_0x5b02c9;_0x115894++)_0x1aa583['remove'](0x1);for(const _0x117b76 of _0x1aa583)_0x117b76['collapse']();_0x5b02c9>0x0&&_0x1aa583['add'](this['_collapsedCommentsView'],0x1),rs(_0x3ec72e(Array['from'](this['visibleViews']),Array['from'](_0x1aa583)),this['visibleViews'],_0x1aa583);}['_rearrangeExpand'](){rs(_0x3ec72e(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x1f85d4 of this['visibleViews'])_0x1f85d4['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x2ee55b=>{this['focusTracker']['add'](_0x2ee55b['element']),this['keystrokes']['listenTo'](_0x2ee55b['element']);}),this['commentViews']['on']('change',(_0x3b1821,_0x255156)=>{for(const _0x486b7a of _0x255156['removed'])this['focusTracker']['remove'](_0x486b7a['element']),this['keystrokes']['stopListening'](_0x486b7a['element']);for(const _0x418f59 of Array['from'](_0x255156['added'])['reverse']())this['focusTracker']['add'](_0x418f59['element']),this['keystrokes']['listenTo'](_0x418f59['element']);});}}function rs(_0x495392,_0x59aa3e,_0x497a37){let _0x1c04a0=0x0;for(const _0x5153ea of _0x495392)switch(_0x5153ea){case'insert':_0x59aa3e['add'](_0x497a37['get'](_0x1c04a0),_0x1c04a0),_0x1c04a0++;break;case'delete':_0x59aa3e['remove'](_0x1c04a0);break;case'equal':_0x1c04a0++;}}class oe extends kt{constructor(_0x7d2504){super(_0x7d2504);const _0x2097a1=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x2097a1['to']('contextValue',_0x2ebb4b=>N(_0x7d2504,'THREAD_CONTEXT_LABEL',_0x2ebb4b)),'tabindex':-0x1},'children':[{'text':_0x2097a1['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x1775c3,_0x31536d){super(_0x1775c3);const _0x424c25=this['bindTemplate'];this['_model']=_0x31536d,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0xd0afa6(),this['keystrokes']=new jt(),this['focusCycler']=new _0x5aa072({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x13090b=>!!_0x13090b),this['bind']('contextValue')['to'](this['_model'],'context',_0x1cc040=>_0x1cc040&&_0x1cc040['value']?this['_trimContextValue'](_0x1cc040['value']):N(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',_0x424c25['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 _0x3c2bd0=new _0x1287d8(this['locale']);return _0x3c2bd0['label']=N(this['locale'],'Reopen'),_0x3c2bd0['tooltip']=N(this['locale'],'Reopen'),_0x3c2bd0['icon']=_0x11eb95,_0x3c2bd0['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x195259=>!_0x195259),_0x3c2bd0['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x7f0b1c,_0xbe15)=>_0x7f0b1c&&_0xbe15),_0x3c2bd0['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x3c2bd0;}['_trimContextValue'](_0x1d81a4){if(_0x1d81a4['length']<0x96)return _0x1d81a4;const _0x37a2ae=_0x1d81a4['lastIndexOf']('\x20',0x93);return _0x1d81a4['substring'](0x0,_0x37a2ae>-0x1?_0x37a2ae:0x93)+'...';}['_attachContextActions'](){const _0x1cfb98=this['element']['querySelector']('.ck-context'),_0x546b24=_0x1cfb98['querySelector']('.ck-context__value');this['listenTo'](_0x1cfb98,'mouseenter',()=>{_0x546b24['offsetWidth']<_0x546b24['scrollWidth']&&_0x1cfb98['classList']['add']('overlay');}),this['listenTo'](_0x1cfb98,'mouseleave',()=>{_0x1cfb98['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x3cebbf of this['focusables'])this['focusTracker']['add'](_0x3cebbf['element']),this['keystrokes']['listenTo'](_0x3cebbf['element']);}['_createContextView'](){const _0x55d252=new oe(this['locale']);return _0x55d252['bind']('contextValue')['to'](this),_0x55d252;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x2ecd8f,_0x13b180,_0x1e453a,_0x364a47){super(_0x2ecd8f),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x13b180,this['_localUser']=_0x1e453a,this['_config']=_0x364a47,this['commentThreadHeaderView']=new Xt(_0x2ecd8f,_0x13b180),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x2ecd8f,N(_0x2ecd8f,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x2ecd8f,_0x13b180,Object['assign']({'CommentView':this['_config']['CommentView']},_0x364a47)),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',(_0x305339,_0x400a91)=>_0x305339||!!_0x400a91),this['bind']('isUnlinked')['to'](_0x13b180,'unlinkedAt',_0x2a94e8=>!!_0x2a94e8),this['bind']('ariaLabel')['to'](this,'length',_0x5c5ec1=>{const _0x590c3d=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x5c5ec1,_0x590c3d]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0xd0afa6(),this['keystrokes']=new jt(),this['focusCycler']=new _0x5aa072({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1e6b8c=>_0x1e6b8c['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),Zt(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x263075=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x381330=_0x263075['commentInputView'];return _0x263075['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x381330,'value',(_0x4f83bf,_0x275764,_0x488920,_0x50cd44,_0x5597d6)=>!!_0x5597d6||!!_0x50cd44&&_0x488920&&!_0x275764||_0x4f83bf&&_0x488920&&!_0x275764),_0x381330['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3faebe,_0x55bd9f,_0x118b38)=>{let _0x3bede7;return _0x3bede7=_0x118b38&&_0x55bd9f?'Reply\x20to\x20reopen\x20discussion...':_0x3faebe?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x3bede7);}),_0x381330['bind']('submitLabel')['to'](this,'length',_0x2f0145=>N(this['locale'],_0x2f0145?'Reply':'Comment')),_0x381330['on']('submit',(_0x3a2c94,_0x4ca916)=>{this['fire']('addComment',_0x4ca916),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x381330['on']('cancel',()=>{this['focus']();}),_0x381330['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x381330['on']('cancel',_0x24d551=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x24d551['stop']());}),this['on']('change:isActive',(_0xd145ca,_0x581385,_0x46d11c)=>{_0x46d11c||this['length']||_0x381330['value']||this['fire']('removeCommentThread');}),_0x263075;}}class vt extends/* #__PURE__ -- @preserve */
27
- ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x58fca0,_0x532f55,_0x4b3e79,_0x5c5b38){super(_0x58fca0,_0x532f55,_0x4b3e79,_0x5c5b38),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x58fca0,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x36ada8,_0x5ad776,_0x16731a)=>{_0x16731a||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x15c7a7,_0x399c8c,_0x830084)=>{_0x830084&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x5d135e=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x5d135e['if']('isActive','ck-thread--active'),_0x5d135e['if']('isUnlinked','ck-thread--unlinked'),_0x5d135e['if']('isConfirm','ck-thread--remove-confirmation'),_0x5d135e['to']('actionIndicator',_0x55d2d9=>_0x55d2d9?'ck-thread--'+_0x55d2d9:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x5d135e['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 _0x5a8dd8 of this['commentsListView']['commentViews'])_0x5a8dd8['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x2d07b8}=this,_0x8240ff=this['commentsListView']['commentViews']['get'](0x0);_0x8240ff===this['_boundFirstCommentView']||_0x8240ff['isSystemComment']||(this['_boundFirstCommentView']=_0x8240ff,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x8240ff,'actionIndicator',_0x16d341=>'remove'===_0x16d341?'remove':null),_0x8240ff['placeholder']=N(_0x2d07b8,'Write\x20a\x20comment...'),_0x8240ff['removeButton']['on']('execute',_0x5dc1d1=>{_0x5dc1d1['stop'](),this['showConfirm'](N(_0x2d07b8,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x8240ff['focus']();}),_0x8240ff['actionBar']['add'](this['resolveButton'],0x0),_0x8240ff['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x3d4072=new _0x42cec5(this['locale']);return _0x3d4072['label']=N(this['locale'],'Resolve'),_0x3d4072['tooltip']=N(this['locale'],'Resolve'),_0x3d4072['icon']=_0x227c87,_0x3d4072['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x3d4072['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x5cf402=>!_0x5cf402),_0x3d4072['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x1aab07,_0x35c4be)=>_0x1aab07&&!_0x35c4be),_0x3d4072['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x3d4072;}['_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 is extends kt{constructor(_0x38337c){super(_0x38337c),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x530f48,_0x320c31,_0x322cb1)=>{this['element']['innerHTML']=_0x322cb1;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x35a348,_0x24acbf,_0x330bd7){super(_0x35a348),this['_model']=_0x24acbf,this['_config']=_0x330bd7,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x24acbf,'content',_0x24acbf,'authoredAt',(_0x55f7ac,_0x5414cc)=>N(_0x35a348,'COMMENT_ARIA_LABEL',[_0x24acbf['author']['name'],_0x330bd7['formatDateTime'](_0x5414cc),new DOMParser()['parseFromString'](_0x55f7ac,'text/html')['body']['textContent'],_0x24acbf['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x35a348,N(_0x35a348,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x55d301(),this['focusTracker']=new _0xd0afa6(),this['keystrokes']=new jt(),this['focusCycler']=new _0x5aa072({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1ca507=>_0x1ca507['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']?N(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):N(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?N(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):N(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x48eb3b=new is(this['locale']);return _0x48eb3b['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x30b7ae,_0x37aaf0)=>_0x37aaf0?ts(_0x30b7ae,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x30b7ae),_0x48eb3b;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x23a1a5=new es(this['locale'],this['_config']['editorConfig']);return _0x23a1a5['value']=this['_model']['content'],_0x23a1a5['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x23a1a5['submitLabel']=N(this['locale'],'Save'),_0x23a1a5['on']('submit',(_0x471c03,_0x3217db)=>{this['fire']('updateComment',this['_model']['id'],_0x3217db),this['switchToDisplayMode'](),this['focus']();}),_0x23a1a5['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x23a1a5['once']('editorReady',()=>{_0x23a1a5['focus']();}),_0x23a1a5['createEditor'](),_0x23a1a5['delegate']('editorReady')['to'](this),_0x23a1a5['delegate']('editorDestroyed')['to'](this),_0x23a1a5;}['_setupKeyboardNavigation'](){const _0x410389=this['element'];this['keystrokes']['listenTo'](_0x410389);for(const _0x1cc148 of this['focusables'])this['focusTracker']['add'](_0x1cc148['element']),this['keystrokes']['listenTo'](_0x1cc148['element']);this['focusables']['on']('change',(_0x38508d,_0x1f0440)=>{for(const _0x323f2c of _0x1f0440['removed'])this['focusTracker']['remove'](_0x323f2c['element']),this['keystrokes']['stopListening'](_0x323f2c['element']);for(const _0x421f06 of _0x1f0440['added'])this['focusTracker']['add'](_0x421f06['element']),this['keystrokes']['listenTo'](_0x421f06['element']);}),this['keystrokes']['set']('enter',(_0x26939e,_0x4a2a57)=>{_0x410389===_0x26939e['target']&&(this['focusCycler']['focusFirst'](),_0x4a2a57());}),this['keystrokes']['set']('esc',(_0x56c21f,_0x5c4abc)=>{_0x410389!==_0x56c21f['target']&&(this['focus'](),_0x5c4abc());});}}class gt extends/* #__PURE__ -- @preserve */
28
- ti(di){['actionBar'];['userView'];constructor(_0x103077,_0x2fe202,_0x1b1d2e){super(_0x103077,_0x2fe202,_0x1b1d2e),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x103077,'Reply...')),this['bind']('authoredAt')['to'](_0x2fe202),this['bind']('resolvedAt')['to'](_0x2fe202),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 _0x14525e(_0x103077,_0x2fe202['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x2fe202,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5b8f32=this['bindTemplate'],_0x523c9d=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x5b8f32['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5b8f32['to']('authoredAt',_0x220c70=>this['_config']['formatDateTime'](_0x220c70))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x5b8f32['if']('isEditMode','ck-comment__actions--hidden'),_0x5b8f32['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']&&_0x523c9d['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x5b8f32['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x5b8f32['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x5b8f32['if']('isEditMode','ck-comment--edit'),_0x5b8f32['if']('isSystemComment','ck-comment--info'),_0x5b8f32['to']('actionIndicator',_0x3f47ae=>_0x3f47ae?'ck-comment--'+_0x3f47ae:'')],'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':_0x523c9d}]}]};}['_createEditButton'](){const _0x13849f=new _0x1287d8(this['locale']);return _0x13849f['label']=N(this['locale'],'Edit'),_0x13849f['icon']=_0x5a54a4,_0x13849f['withText']=!0x0,_0x13849f['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x13849f['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x16e452=>!_0x16e452),_0x13849f['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x13849f['on']('execute',()=>this['switchToEditMode']()),_0x13849f;}['_createRemoveButton'](){const _0x3a9e2a=new _0x1287d8(this['locale']);return _0x3a9e2a['label']=N(this['locale'],'Remove'),_0x3a9e2a['icon']=_0x415978,_0x3a9e2a['withText']=!0x0,_0x3a9e2a['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x3a9e2a['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x366ff2=>!_0x366ff2),_0x3a9e2a['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x3a9e2a['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x3a9e2a;}['_createDropdown'](){const _0x2cc94d=_0x5cdbae(this['locale'],_0x2c4173),_0x2a91bd=_0x2cc94d['panelView']['children'],_0x364357=new _0x367966(this['locale']),_0x16322e=_0x2cc94d['bindTemplate'];_0x5b7b39(_0x2cc94d,()=>this['items']['find'](_0x30cc7f=>_0x30cc7f['isVisible'])),_0x2cc94d['extendTemplate']({'attributes':{'class':[_0x16322e['if']('isVisible','ck-hidden',_0x31a288=>!_0x31a288)]}});const _0x186be0=(_0x413f64,_0x2d1c8c=-0x1)=>{const _0x3ea86b=new _0xd5e0a7(this['locale']);_0x3ea86b['children']['add'](_0x413f64);const _0x2d0115=_0x2d1c8c>-0x1?_0x2d1c8c:_0x364357['items']['length'];_0x364357['items']['add'](_0x3ea86b,_0x2d0115);const _0x6af741=Array['from'](this['items']);_0x2cc94d['unbind']('isEnabled','isVisible'),_0x2cc94d['bind']('isEnabled')['toMany'](_0x6af741,'isEnabled',(..._0x5e2a4d)=>_0x5e2a4d['some'](_0x45d442=>_0x45d442)),_0x2cc94d['bind']('isVisible')['toMany'](_0x6af741,'isVisible',(..._0x7c78d6)=>_0x7c78d6['some'](_0x5bf10e=>_0x5bf10e));};_0x2cc94d['panelPosition']='sw',_0x2cc94d['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x4406d3});for(const _0x4104ac of this['items'])_0x186be0(_0x4104ac);return _0x2a91bd['add'](_0x364357),_0x2cc94d['listenTo'](this['items'],'add',(_0x3c9c27,_0x1e407c,_0x1f9206)=>{_0x186be0(_0x1e407c,_0x1f9206);}),_0x2cc94d['listenTo'](this['items'],'remove',(_0x5f1d89,_0x3e7b8d,_0x4ea4ed)=>{_0x364357['items']['remove'](_0x4ea4ed);}),_0x2cc94d;}['_attachActions'](_0x18be36,_0x349235){const _0x4522ae=_0x18be36&&_0x18be36['element'];_0x4522ae&&(this['listenTo'](_0x4522ae,'mouseenter',()=>this['actionIndicator']=_0x349235),this['listenTo'](_0x4522ae,'focus',()=>this['actionIndicator']=_0x349235),this['listenTo'](_0x4522ae,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x4522ae,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x4851ef=super['_createCommentInputView']();return _0x4851ef['bind']('placeholder')['to'](this),_0x4851ef;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x12487f){const _0x23ca7c=Dt(_0x12487f,0x1e),_0x4f2647=new MutationObserver(_0x441545=>{for(const _0xd40f8c of _0x441545)('attributes'==_0xd40f8c['type']&&'class'==_0xd40f8c['attributeName']||'childList'==_0xd40f8c['type']||'characterData'==_0xd40f8c['type'])&&_0x23ca7c();});return{'attach'(_0x565163){_0x4f2647['observe'](_0x565163,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x4f2647['disconnect'](),_0x23ca7c['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x341374,_0x4318ca){super(_0x341374),this['id']=_0x3b7a37(),this['focusTracker']=new _0xd0afa6(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x5a8a08,_0x4286e1)=>this['fire']('Esc',_0x4286e1)),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']=xt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x4318ca),this['mainView']=_0x4318ca;const _0x4c71a4=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x4c71a4['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 _0x2c7a34=this['element']['clientHeight'];_0x2c7a34&&(this['height']=_0x2c7a34);}}class T extends/* #__PURE__ -- @preserve */
29
- _0x2f0bd8(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x2c148b,target:_0x1e506c,type:_0x46f990,isVisible:_0x7378c=!0x0}){super(),this['view']=_0x2c148b,this['view']['element']||this['view']['render'](),this['_type']=_0x46f990,this['_target']=_0x1e506c,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x52f624([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x20c088,_0x1e56bf)=>{this['view']['focusTracker']['add'](_0x1e56bf);}),this['focusableElements']['on']('remove',(_0x7b572c,_0x1277e2)=>{this['view']['focusTracker']['remove'](_0x1277e2);}),this['set']('isVisible',_0x7378c);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x3f78ae=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x3f78ae),_0x3f78ae;}get['targetRect'](){const _0x34cba1=this['target'];if(null===_0x34cba1)return null;if(_0x34cba1 instanceof _0x206900)return _0x34cba1;const _0x519666=_0x34cba1['filter'](_0x57618b=>function(_0x316273){const _0x16acfe=_0x316273['offsetParent'];if(_0x16acfe)return!0x0;const _0x3069ec=_0x316273['getClientRects']()['item'](0x0);return!!_0x3069ec;}(_0x57618b));return 0x0===_0x519666['length']?null:new _0x206900(_0x519666[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x7263e6){this['view']['isActive']=_0x7263e6,this['view']['mainView']['isActive']=_0x7263e6;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x361c6c){if(!(null===_0x361c6c||_0x361c6c instanceof _0x206900||Array['isArray'](_0x361c6c)&&_0x361c6c['every'](_0x38dcac=>fi(_0x38dcac))))throw new _0xcbec56('annotation-invalid-target',null,{'target':_0x361c6c});}['_getNormalizedTarget'](){const _0x3fb0ae='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x3fb0ae)?[_0x3fb0ae]:_0x3fb0ae;}}function fi(_0x5c7c1b){return null!==_0x5c7c1b&&'object'==typeof _0x5c7c1b&&'nodeType'in _0x5c7c1b&&0x1===_0x5c7c1b['nodeType'];}class S extends _0x52f624{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x6f9637=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0xd0afa6(),this['_focusTracker']['on']('change:isFocused',(_0x2f5876,_0xedf7f7,_0x58f6ef)=>{_0x58f6ef||this['fire']('blur');});for(const _0x222839 of _0x6f9637)this['add'](_0x222839);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0xaa3245){if(this['has'](_0xaa3245))throw new _0xcbec56('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0xaa3245['innerView'],_0xaa3245),this['_viewToAnnotation']['set'](_0xaa3245['view'],_0xaa3245);for(const _0xd025f7 of _0xaa3245['focusableElements'])this['_focusTracker']['add'](_0xd025f7);this['listenTo'](_0xaa3245['focusableElements'],'add',(_0x118fa5,_0x42f032)=>{this['_focusTracker']['add'](_0x42f032);}),this['listenTo'](_0xaa3245['focusableElements'],'remove',(_0x3f85e2,_0x3bca5d)=>{this['_focusTracker']['remove'](_0x3bca5d);}),this['listenTo'](_0xaa3245['view']['focusTracker'],'change:isFocused',(_0x178811,_0x203346,_0x497360)=>{_0x497360&&this['fire']('focus',_0xaa3245);}),_0xaa3245['updateTargetRect']();const _0x55e3af=this['_getOrderInContent'](_0xaa3245['view']['targetRect']);return super['add'](_0xaa3245,_0x55e3af);}['remove'](_0x44a740){if(!this['has'](_0x44a740))throw new _0xcbec56('annotationcollection-not-existing-item',null);this['stopListening'](_0x44a740['view']['focusTracker']),this['stopListening'](_0x44a740['focusableElements']);for(const _0x15b614 of _0x44a740['focusableElements'])this['_focusTracker']['remove'](_0x15b614);return this['_viewToAnnotation']['delete'](_0x44a740['view']),this['_innerViewToAnnotation']['delete'](_0x44a740['innerView']),super['remove'](_0x44a740);}['getByInnerView'](_0x4b2b3c){return this['_innerViewToAnnotation']['get'](_0x4b2b3c);}['getByView'](_0x58b314){return this['_viewToAnnotation']['get'](_0x58b314);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x28ad23 of this)_0x28ad23['updateTargetRect']();this['_sort']();}['_sort'](){const _0x257516=Array['from'](this)['sort']((_0x4b2609,_0x149ee3)=>w(_0x4b2609['view']['targetRect'],_0x149ee3['view']['targetRect']));for(let _0xb63805=_0x257516['length']-0x1;_0xb63805>0x0;_0xb63805--){const _0x272f9f=_0x257516[_0xb63805];_0xb63805!==this['getIndex'](_0x272f9f)&&(this['remove'](_0x272f9f),this['add'](_0x272f9f));}}['_getOrderInContent'](_0x22337a){let _0x1885bb=0x0;if(!_0x22337a)return this['length'];for(const _0x38ad06 of this){const _0xd320cb=_0x38ad06['view']['targetRect'];if(_0xd320cb){if(w(_0x22337a,_0xd320cb)<0x0)return _0x1885bb;_0x1885bb++;}}return _0x1885bb;}}function v({source:_0x52fcd4,target:_0x4bb3bf,filter:_0x3485ef}){for(const _0x1ae002 of _0x52fcd4)_0x3485ef(_0x1ae002)&&_0x4bb3bf['add'](_0x1ae002);_0x4bb3bf['listenTo'](_0x52fcd4,'add',(_0x323f96,_0x32b164)=>{_0x3485ef(_0x32b164)&&_0x4bb3bf['add'](_0x32b164);}),_0x4bb3bf['listenTo'](_0x52fcd4,'remove',(_0x4edafb,_0x4e40e8)=>{_0x4bb3bf['has'](_0x4e40e8)&&_0x4bb3bf['remove'](_0x4e40e8);});}function w(_0x388229,_0x2c2ffc){if(null===_0x388229&&null===_0x2c2ffc)return 0x0;if(null===_0x388229)return-0x1;if(null===_0x2c2ffc)return 0x1;const _0x43bc54=_0x388229['top']-_0x2c2ffc['top'];return 0x0==_0x43bc54?_0x388229['left']-_0x2c2ffc['left']:_0x43bc54;}class y extends _0x5d570f{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xaa31a6){if(super(_0xaa31a6),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0xaa31a6 instanceof _0x14e4ce){const _0x2ab5bd=_0xaa31a6['locale'];_0xaa31a6['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x2ab5bd,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x2ab5bd,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x2ab5bd,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x2ab5bd,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x2ab5bd,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x2ab5bd,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x2ab5bd,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x2c6175){this['collection']['add'](_0x2c6175);}['remove'](_0x25741d){this['collection']['remove'](_0x25741d),_0x25741d['destroy']();}['refreshVisibility'](){for(const _0x39a297 of this['collection'])_0x39a297['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0xd9af78){return this['collection']['getByInnerView'](_0xd9af78);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0xd8aa8d of this['collection'])_0xd8aa8d['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x1c439c){this['fire']('_activateAnnotation',_0x1c439c);}['createAnnotation'](_0x187dce){return new T(_0x187dce);}['createAnnotationView'](_0x5ec4b8,_0x2a044){return new E(_0x5ec4b8,_0x2a044);}['_addActiveAnnotation'](_0x2eb980){const _0x9c20cb=new Set(this['activeAnnotations']);_0x9c20cb['add'](_0x2eb980),this['activeAnnotations']=_0x9c20cb;}['_removeActiveAnnotation'](_0x255a09){const _0x506267=new Set(this['activeAnnotations']);_0x506267['delete'](_0x255a09),this['activeAnnotations']=_0x506267;}['_bindAnnotationsToVisibleAnnotations'](){const _0x184554=this['collection'],_0x5326a8=this['_visibleAnnotations'];function _0x5cbc2d(_0x4c83d7){const _0x389967=_0x4c83d7['source'];_0x389967['isVisible']&&!_0x5326a8['has'](_0x389967)?_0x5326a8['add'](_0x389967):!_0x389967['isVisible']&&_0x5326a8['has'](_0x389967)&&_0x5326a8['remove'](_0x389967),_0x389967['view']['focusTracker']['remove'](_0x389967['view']['element']),_0x389967['view']['focusTracker']['add'](_0x389967['view']['element']);}this['listenTo'](_0x184554,'add',(_0x191dd4,_0x469a1f)=>{_0x469a1f['isVisible']&&_0x5326a8['add'](_0x469a1f),this['listenTo'](_0x469a1f,'change:isVisible',_0x5cbc2d);}),this['listenTo'](_0x184554,'remove',(_0x1121da,_0x5b69d9)=>{_0x5326a8['has'](_0x5b69d9)&&_0x5326a8['remove'](_0x5b69d9),this['stopListening'](_0x5b69d9,'change:isVisible',_0x5cbc2d);});}['_setupEnterAnnotationKeystroke'](){const _0x449239=_0x3556f3=>{_0x3556f3['on']('ready',()=>{_0x3556f3['keystrokes']['set'](_0x5c1279,(_0x3b2467,_0x31885c)=>{const _0x4e2f1a=_0x1af6d5(this['activeAnnotations']['values']());_0x4e2f1a&&(_0x4e2f1a['view']['focus'](),_0x31885c());});});};this['context']instanceof _0x14e4ce?_0x449239(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0xf58ce5,_0x1c369e)=>{_0x449239(_0x1c369e);});}['_setupEscapeAnnotationHandling'](){const _0x2543c8=_0x5eb76a=>{const _0xa15488=_0x5eb76a['source'],_0xb5550d=[];let _0x52a966;if(Array['isArray'](_0xa15488['target'])){_0x52a966=_0xa15488['target'][0x0],this['context']instanceof _0x14e4ce?_0xb5550d['push'](this['context']):this['context']['editors']&&_0xb5550d['push'](...this['context']['editors']);for(const _0x313db8 of _0xb5550d)for(const _0x23d3b6 of _0x313db8['editing']['view']['domRoots']['values']())if(_0x23d3b6['contains'](_0x52a966))return void _0x313db8['editing']['view']['focus']();_0x52a966['focus']();}};this['listenTo'](this['collection'],'add',(_0x2fdb67,_0x7d3670)=>{this['listenTo'](_0x7d3670,'escape',_0x2543c8,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x585142,_0x9d4035)=>{this['stopListening'](_0x9d4035,'escape',_0x2543c8);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x5d570f{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[y,ht,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36ce2b){super(_0x36ce2b),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x1a5788=this['context']['config'];_0x1a5788['define']('comments.maxCommentsWhenCollapsed',0x2),_0x1a5788['define']('comments.maxThreadTotalWeight',0x1f4),_0x1a5788['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x1a5788['define']('comments.CommentThreadView',vt),_0x1a5788['define']('comments.CommentView',gt),_0x1a5788['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x292c06=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0xdc142e,_0x46c06b)=>this['_addCommentThread'](_0x46c06b)),this['on']('submitCommentThread',(_0x3cf888,_0x38f7ee)=>this['_submitCommentThread'](_0x38f7ee)),this['on']('resolveCommentThread',(_0x15bceb,_0xd948f2)=>this['_resolveCommentThread'](_0xd948f2)),this['on']('resolveCommentThread',(_0x329672,_0x51e704)=>this['_updateActiveAnnotation'](_0x51e704),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x633bc3,_0x3017ff)=>this['_reopenCommentThread'](_0x3017ff)),this['on']('reopenCommentThread',(_0x5c45ed,_0x2d05c2)=>this['_updateActiveAnnotation'](_0x2d05c2),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x5cc207,_0x39b94c)=>this['_removeCommentThread'](_0x39b94c)),this['on']('updateCommentThread',(_0x23b5c4,_0x1cd0b1)=>this['_updateCommentThread'](_0x1cd0b1)),this['on']('updateCommentThread',(_0x2da7df,_0x51005f)=>this['_updateActiveAnnotation'](_0x51005f),{'priority':'lowest'}),this['on']('addComment',(_0x4725fc,_0x3018e5)=>this['_addComment'](_0x3018e5)),this['on']('updateComment',(_0x1c7fe9,_0x494009)=>this['_updateComment'](_0x494009)),this['on']('removeComment',(_0x449a5d,_0x18d14f)=>this['_removeComment'](_0x18d14f)),this['on']('addComment',(_0x126e6e,{threadId:_0x2368d9,isFromAdapter:_0x54b3e2})=>{if(_0x54b3e2)return;const _0x57fd71=this['getCommentThread'](_0x2368d9),_0x5b1418=_0x57fd71&&this['_threadToController']['get'](_0x57fd71);_0x5b1418&&_0x5b1418['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x292c06,'change:activeAnnotations',(_0x11a7e5,_0x1e1e04,_0x4b752a)=>{const _0x4b3547=Array['from'](_0x4b752a)['map'](_0x597df7=>this['_viewToController']['get'](_0x597df7['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x4b3547?_0x4b3547['model']:null;});}set['adapter'](_0x2ff62d){if(this['_adapter'])throw new _0xcbec56('commentsrepository-adapter-already-set');this['_adapter']=_0x2ff62d;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x30e935=Tt,threadId:_0x2fa5ba=_0x3b7a37(),comments:_0xd1fc60=[],unlinkedAt:_0x2d140d=null,resolvedAt:_0x4c0000=null,resolvedBy:_0x1518f3=null,target:_0x3071f2=null,context:_0xb8bdb8=null,attributes:_0x371082={},isResolvable:_0x3da4c3=!0x0,isSubmitted:_0x31fddf=!0x1,isFromAdapter:_0x17acca=!0x1}={}){return this['fire'](bt('addCommentThread',_0x30e935),{'channelId':_0x30e935,'threadId':_0x2fa5ba,'comments':_0xd1fc60,'unlinkedAt':_0x2d140d,'resolvedAt':_0x4c0000,'resolvedBy':_0x1518f3,'target':_0x3071f2,'context':_0xb8bdb8,'attributes':_0x371082,'isFromAdapter':_0x17acca,'isResolvable':_0x3da4c3,'isSubmitted':_0x31fddf}),this['getCommentThread'](_0x2fa5ba);}['openNewCommentThread']({channelId:_0x271635=Tt,threadId:_0x353dbb=_0x3b7a37(),target:_0x59fb57,context:_0x1829a6=null,isResolvable:_0x29f4bd=!0x0}){if(this['_readOnlyChannels']['has'](_0x271635)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x59fb57)throw new _0xcbec56('commentsrepository-missing-target');const _0x3fea95=this['addCommentThread']({'channelId':_0x271635,'threadId':_0x353dbb,'target':_0x59fb57,'context':_0x1829a6,'isResolvable':_0x29f4bd});if(!_0x3fea95)return null;const _0x3a6775=this['_threadToController']['get'](_0x3fea95),_0x44edab=_0x3a6775['view']['commentThreadInputView']['commentInputView'],_0x4ebf45=this['context']['plugins']['get'](y),_0x4d9ba4=_0x4ebf45['getByInnerView'](_0x3a6775['view']);return _0x4ebf45['activate'](_0x4d9ba4),_0x44edab['once']('editorReady',()=>_0x44edab['focus']()),_0x3fea95;}['hasCommentThread'](_0x3d8df5){if('string'!=typeof _0x3d8df5)throw new _0xcbec56('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x3d8df5);}['updateCommentThread']({channelId:_0x1297ab=Tt,threadId:_0x52c6c7,context:_0x39eeee,unlinkedAt:_0x23024f,attributes:_0x162992,isFromAdapter:_0x35dae8=!0x1}){return this['fire'](bt('updateCommentThread',_0x1297ab),{'channelId':_0x1297ab,'threadId':_0x52c6c7,'context':_0x39eeee,'unlinkedAt':_0x23024f,'attributes':_0x162992,'isFromAdapter':_0x35dae8}),this['getCommentThread'](_0x52c6c7);}['getCommentThread'](_0x3654a6){if('string'!=typeof _0x3654a6)throw new _0xcbec56('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x3654a6);}['fetchCommentThread']({channelId:_0x3d3e05,threadId:_0x4a1d63}={}){const _0x5f5b94=this['getCommentThread'](_0x4a1d63);if(_0x5f5b94)return Promise['resolve'](_0x5f5b94);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0xcbec56('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x3d3e05,'threadId':_0x4a1d63})['then'](_0x2bdd57=>this['hasCommentThread'](_0x4a1d63)?this['getCommentThread'](_0x4a1d63):_0x2bdd57?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x3d3e05},_0x2bdd57)):void 0x0)['catch'](_0xb81989=>{throw console['error'](_0xb81989),new _0xcbec56('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x313c2e,skipNotAttached:_0x3ab758=!0x1,skipEmpty:_0x56c3c8=!0x1,toJSON:_0x101f1d=!0x1}={}){const _0x903cdf=[];for(const _0x163821 of this['_threads']['values']())_0x313c2e&&_0x163821['channelId']!==_0x313c2e||_0x3ab758&&!_0x163821['isAttached']||_0x56c3c8&&0x0===_0x163821['length']||_0x903cdf['push'](_0x163821);return _0x101f1d?_0x903cdf['map'](_0x2ff497=>_0x2ff497['toJSON']()):_0x903cdf;}['getAnnotationForCommentThread'](_0x21fdb5){const _0x2f7d7c=this['_threadToController']['get'](_0x21fdb5);if(!_0x2f7d7c)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x2f7d7c['view'])||null;}['getCommentThreadForAnnotation'](_0x5a32c4){const _0xf961d3=this['_viewToController']['get'](_0x5a32c4['innerView']);return _0xf961d3?_0xf961d3['model']:null;}['setActiveCommentThread'](_0x55cd31){const _0x17c413=this['context']['plugins']['get'](y);if(!_0x55cd31)return void(this['activeCommentThread']&&_0x17c413['deactivateAll']());const _0x4a68ad=this['getCommentThread'](_0x55cd31);if(!_0x4a68ad)throw new _0xcbec56('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x55cd31});if(!this['_threadToController']['has'](_0x4a68ad))throw new _0xcbec56('commentsrepository-active-not-attached',null,{'threadId':_0x55cd31});const _0x5594fc=_0x17c413['getByInnerView'](this['_threadToController']['get'](_0x4a68ad)['view']);_0x17c413['activate'](_0x5594fc);}['switchReadOnly'](_0x1d1c03,_0x15d56d){_0x1d1c03?this['_readOnlyChannels']['add'](_0x15d56d):this['_readOnlyChannels']['delete'](_0x15d56d),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x24707c){return this['_readOnlyChannels']['has'](_0x24707c)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x34bf05,_0x353d8c){return new yt(_0x34bf05,_0x353d8c);}['setPermissions'](_0x9002c5,_0x16be48=Tt){this['_permissions']['set'](_0x16be48,_0x9002c5),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x28eea8=Tt){return this['_permissions']['has'](_0x28eea8)?this['_permissions']['get'](_0x28eea8):_t;}['_addCommentThread']({channelId:_0x5cfdac,threadId:_0x5dbf61,comments:_0x6305ba,unlinkedAt:_0x4f1237,resolvedAt:_0x2d7d5f,resolvedBy:_0x6d643e,target:_0x11b1c9,context:_0x2423e0,attributes:_0x5b3f09,isFromAdapter:_0x26574d,isResolvable:_0x3bd241,isSubmitted:_0x2744c5}){if('string'!=typeof _0x5dbf61)throw new _0xcbec56('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x5dbf61});if(this['hasCommentThread'](_0x5dbf61))throw new _0xcbec56('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x5dbf61});const _0x4b91de=new pi(this,{'channelId':_0x5cfdac,'id':_0x5dbf61,'context':_0x2423e0,'attributes':_0x5b3f09,'unlinkedAt':_0x4f1237,'resolvedAt':_0x2d7d5f,'resolvedBy':_0x6d643e?this['context']['plugins']['get'](it)['getUser'](_0x6d643e):null,'isResolvable':_0x3bd241,'isSubmitted':_0x2744c5||_0x26574d});this['_threads']['set'](_0x5dbf61,_0x4b91de);for(const _0x5bb01c of _0x6305ba)_0x4b91de['_add'](this['_createNewComment']({'threadId':_0x5dbf61,..._0x5bb01c}));return _0x11b1c9&&_0x4b91de['attachTo'](_0x11b1c9),_0x26574d||!_0x4b91de['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x5cfdac,'threadId':_0x5dbf61});}['_submitCommentThread']({channelId:_0x51fbfd,threadId:_0x5b7259}){if(!this['hasCommentThread'](_0x5b7259))throw new _0xcbec56('commentsrepository-missing-comment-thread',this);const _0x59f469=this['getCommentThread'](_0x5b7259);if(_0x59f469['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x56c440,comments:_0x1d53bf,resolvedAt:_0x548c8b,resolvedBy:_0x1b3629,context:_0x2b19df,attributes:_0x3decfd}=_0x59f469,_0x409703=this['context']['plugins']['get']('PendingActions'),_0x479c11=_0x409703['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x51fbfd,'threadId':_0x56c440,'comments':_0x1d53bf['map'](_0x1c470=>_0x1c470['toJSON']()),'resolvedAt':_0x548c8b,'resolvedBy':_0x1b3629?_0x1b3629['id']:_0x1b3629,'context':_0x2b19df,'attributes':_0x3decfd})['then'](({comments:_0x7b389e})=>{_0x409703['remove'](_0x479c11);for(const _0x19d52d of _0x7b389e)this['_updateComment']({'channelId':_0x51fbfd,'threadId':_0x5b7259,'commentId':_0x19d52d['commentId'],'createdAt':_0x19d52d['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x56e9f2=>{throw console['error'](_0x56e9f2),new _0xcbec56('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x21e31f,target:_0x9740c1}){const _0x6c07d3=this['getCommentThread'](_0x21e31f);if(!_0x6c07d3)throw new _0xcbec56('commentsrepository-attach-missing-comment-thread',this);const _0x3b35eb=this['context']['plugins']['get']('PendingActions'),_0x4d59f2=this['context']['plugins']['get'](y),_0x4aa4c5=this['_createCommentThreadView'](_0x6c07d3),_0x42f18e=new yt(_0x6c07d3,_0x4aa4c5);let _0x30765f=null;_0x4aa4c5['on']('change:isDirty',(_0x2d8b2b,_0x194c80,_0x12917c)=>{_0x12917c?_0x30765f=_0x3b35eb['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x30765f&&(_0x3b35eb['remove'](_0x30765f),_0x30765f=null);}),this['_threadToController']['set'](_0x6c07d3,_0x42f18e),this['_viewToController']['set'](_0x4aa4c5,_0x42f18e);const _0x32ec94=new E(this['context']['locale'],_0x4aa4c5);_0x32ec94['bind']('length')['to'](_0x4aa4c5),_0x32ec94['bind']('isDirty')['to'](_0x4aa4c5,'isDirty',_0x4aa4c5,'length',(_0x527e3a,_0x3e525a)=>_0x527e3a||!_0x3e525a),_0x32ec94['bind']('isActive')['to'](_0x4aa4c5),_0x32ec94['type']='comment';const _0x4ef611=new T({'view':_0x32ec94,'target':_0x9740c1,'type':'comment','isVisible':!_0x6c07d3['archivedAt']});return _0x4aa4c5['on']('escape',()=>{_0x4ef611['fire']('escape');}),this['_bindAnnotationToEditors'](_0x4aa4c5,_0x4ef611),_0x4d59f2['add'](_0x4ef611),_0x4ef611;}['_bindAnnotationToEditors'](_0x561dfe,_0x1d8b20){this['listenTo'](_0x561dfe,'editorReady',(_0x1f6fc9,_0xb76c72)=>{const _0x3036bc=_0xb76c72['ui']['view']['body']['bodyCollectionContainer'];_0x1d8b20['focusableElements']['add'](_0x3036bc),this['context']instanceof _0x14e4ce&&this['context']['ui']['focusTracker']['add'](_0x3036bc);},{'priority':'highest'}),this['listenTo'](_0x561dfe,'editorDestroyed',(_0x1b90e6,_0xced457)=>{const _0x443472=_0xced457['ui']['view']['body']['bodyCollectionContainer'];_0x1d8b20['focusableElements']['has'](_0x443472)&&_0x1d8b20['focusableElements']['remove'](_0x443472),this['context']instanceof _0x14e4ce&&this['context']['ui']['focusTracker']['remove'](_0x443472);});}['_unbindEditors'](_0x2b9dc3){this['stopListening'](_0x2b9dc3,'editorReady'),this['stopListening'](_0x2b9dc3,'editorDestroyed');}['_createCommentThreadView'](_0x3c8f2c){const _0x4bd6ff=this['context']['plugins']['get'](it),{config:_0x4d21f5,locale:_0x370fa9}=this['context'],_0x11cc4e=lt(_0x4d21f5['get']('locale'),_0x370fa9);return new(0x0,(_0x4d21f5['get']('comments'))['CommentThreadView'])(_0x370fa9,_0x3c8f2c,_0x4bd6ff['me'],{'editorConfig':{..._0x4d21f5['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x4d21f5['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x4d21f5['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4d21f5['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4d21f5['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x11cc4e,'CommentView':_0x4d21f5['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x32aca3,channelId:_0x3306a3,resolvedAt:_0x3434a4,resolvedBy:_0x57c2ac,isFromAdapter:_0xa842a}){if(!this['hasCommentThread'](_0x32aca3))throw new _0xcbec56('commentsrepository-missing-comment-thread',null,{'threadId':_0x32aca3});const _0x106454=this['getCommentThread'](_0x32aca3);if(_0x106454['isResolved'])throw new _0xcbec56('commentsrepository-resolved-comment-thread',null,{'threadId':_0x32aca3});const _0xc3bcc=this['context']['plugins']['get'](it);if(_0x106454['resolvedBy']=_0xc3bcc['getUser'](_0x57c2ac),_0x106454['resolvedAt']=_0x3434a4,_0xa842a||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x8b6740=this['context']['plugins']['get']('PendingActions'),_0x3b8837=_0x8b6740['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x3306a3,'threadId':_0x32aca3})['then'](({resolvedAt:_0x31d672,resolvedBy:_0x5e15fb})=>{_0x8b6740['remove'](_0x3b8837),_0x106454['resolvedBy']['id']!==_0x5e15fb&&(_0x106454['resolvedBy']=_0xc3bcc['getUser'](_0x5e15fb)),_0x106454['resolvedAt']=_0x31d672;})['catch'](_0x2d5e0f=>{throw console['error'](_0x2d5e0f),new _0xcbec56('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x7bcba5,channelId:_0x4f881d,isFromAdapter:_0x3eda01}){if(!this['hasCommentThread'](_0x7bcba5))throw new _0xcbec56('commentsrepository-missing-comment-thread',null,{'threadId':_0x7bcba5});const _0x153a4e=this['getCommentThread'](_0x7bcba5);if(!_0x153a4e['isResolved'])throw new _0xcbec56('commentsrepository-reopen-comment-thread',null,{'threadId':_0x7bcba5});if(_0x153a4e['resolvedBy']=null,_0x153a4e['resolvedAt']=null,_0x3eda01||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x24333f=this['context']['plugins']['get']('PendingActions'),_0x225022=_0x24333f['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x4f881d,'threadId':_0x7bcba5})['then'](()=>_0x24333f['remove'](_0x225022))['catch'](_0x4af221=>{throw console['error'](_0x4af221),new _0xcbec56('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x149442,isFromAdapter:_0x4c439a}){const _0x8794e5=this['getCommentThread'](_0x149442);if(!_0x8794e5)throw new _0xcbec56('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x149442),this['_threads']['delete'](_0x149442),!_0x8794e5['isSubmitted']||_0x4c439a||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x51d21b=this['context']['plugins']['get']('PendingActions'),{channelId:_0x44cc6c}=_0x8794e5,_0x1efcc3=_0x51d21b['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x44cc6c,'threadId':_0x149442})['then'](()=>_0x51d21b['remove'](_0x1efcc3))['catch'](_0xfe75c1=>{throw console['error'](_0xfe75c1),new _0xcbec56('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x433035,unlinkedAt:_0x26b66e,context:_0x20f07f,attributes:_0x1325ab,isFromAdapter:_0xa1ec6d}){if('string'!=typeof _0x433035)throw new _0xcbec56('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x433035});if(!this['hasCommentThread'](_0x433035))throw new _0xcbec56('commentsrepository-missing-comment-thread',null,{'threadId':_0x433035});const _0x457e74=this['getCommentThread'](_0x433035);let _0x3d6491=!0x1;if(void 0x0!==_0x20f07f&&_0x457e74['context']!==_0x20f07f&&(_0x457e74['context']=_0x20f07f,_0x3d6491=!0x0),void 0x0!==_0x26b66e&&_0x457e74['unlinkedAt']!==_0x26b66e&&(_0x457e74['unlinkedAt']=_0x26b66e,_0x3d6491=!0x0),_0x1325ab&&!wt(_0x1325ab,_0x457e74['attributes'])&&(_0x457e74['attributes']=_0x1325ab,_0x3d6491=!0x0),!_0x3d6491)return Promise['resolve']();if(!_0x457e74['isSubmitted']||_0xa1ec6d||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x20bdd0=this['context']['plugins']['get']('PendingActions'),{channelId:_0x26fa04}=_0x457e74,_0x40ddbb=_0x20bdd0['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x26fa04,'threadId':_0x433035,'context':_0x20f07f,'unlinkedAt':_0x26b66e,'attributes':_0x1325ab})['then'](()=>_0x20bdd0['remove'](_0x40ddbb))['catch'](_0x341ba6=>{throw console['error'](_0x341ba6),new _0xcbec56('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x36ea28){const _0x382433=this['context']['plugins']['get'](y),_0x2e19df=this['getCommentThread'](_0x36ea28);if(_0x2e19df['_isAttached']=!0x1,this['_threadToController']['has'](_0x2e19df)){const _0x3adfb0=this['_threadToController']['get'](_0x2e19df),_0x5db8b7=_0x3adfb0['view'],_0x4cd972=_0x382433['getByInnerView'](_0x5db8b7);this['_threadToController']['delete'](_0x2e19df),this['_viewToController']['delete'](_0x5db8b7),_0x4cd972&&_0x382433['remove'](_0x4cd972),_0x3adfb0['destroy'](),_0x5db8b7['destroy']()['then'](()=>{this['_unbindEditors'](_0x5db8b7);});}}['_updateActiveAnnotation']({threadId:_0x464181,resolvedAt:_0x47aec1,unlinkedAt:_0x5aee8d}){const _0x1716cb=!!_0x47aec1,_0x18508e=this['context']['plugins']['get'](y),_0x4fa743=this['getCommentThread'](_0x464181);if(this['_threadToController']['has'](_0x4fa743)){const _0x276542=this['_threadToController']['get'](_0x4fa743)['view'],_0x4ab854=_0x18508e['getByInnerView'](_0x276542);_0x4ab854&&(_0x1716cb&&_0x18508e['_removeActiveAnnotation'](_0x4ab854),_0x5aee8d?_0x4ab854['isVisible']=!0x1:_0x4ab854['refreshVisibility']());}}['_getExternalAuthor'](_0x2f9443){const _0x2b5631=this['context']['plugins']['get'](it),_0x4f200f=pt('external:'+_0x2f9443),_0x53ccb5=_0x2b5631['getUser'](_0x4f200f);return _0x53ccb5||_0x2b5631['addUser']({'id':_0x4f200f,'name':_0x2f9443});}['_createNewComment']({threadId:_0x439ed8,commentId:_0x2dd1f7=_0x3b7a37(),content:_0xa8f7a6,authorId:_0x1115fa,createdAt:_0x33e31c,attributes:_0x1c07e9}){if('string'!=typeof _0x2dd1f7)throw new _0xcbec56('commentsrepository-invalid-commentid');if('string'!=typeof _0x1115fa)throw new _0xcbec56('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0xa8f7a6||!_0xa8f7a6['trim']())throw new _0xcbec56('commentsrepository-invalid-comment-content');const _0x344c55=this['context']['plugins']['get'](it)['getUser'](_0x1115fa);if(!_0x344c55)throw new _0xcbec56('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x1115fa});let _0x1baaf9=null,_0x5c792b=_0x33e31c;return _0x1c07e9?.['@external']&&(_0x1baaf9=this['_getExternalAuthor'](_0x1c07e9['@external']['authorName']),_0x5c792b=new Date(_0x1c07e9['@external']['createdAt'])),new wi(this,{'threadId':_0x439ed8,'id':_0x2dd1f7,'author':_0x1baaf9||_0x344c55,'creator':_0x344c55,'content':_0xa8f7a6,'createdAt':_0x33e31c,'authoredAt':_0x5c792b,'attributes':_0x1c07e9});}['_addComment'](_0x2f7a3b){let {threadId:_0x204984,content:_0x6a6687,attributes:_0x2fd42c,isFromAdapter:_0x8c78e6}=_0x2f7a3b;const _0x117e05=this['getCommentThread'](_0x2f7a3b['threadId']);if(!_0x117e05)throw new _0xcbec56('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x482085=this['_createNewComment'](_0x2f7a3b),{id:_0x4fdce0}=_0x482085;if(_0x117e05['_add'](_0x482085),_0x8c78e6||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x117e05['isSubmitted'])return Promise['resolve']();const _0x554d5b=this['context']['plugins']['get']('PendingActions'),{channelId:_0x309cce}=_0x117e05,_0xccd4d=_0x554d5b['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x2fd42c||(_0x2fd42c={}),this['adapter']['addComment']({'channelId':_0x309cce,'threadId':_0x204984,'commentId':_0x4fdce0,'content':_0x6a6687,'attributes':_0x2fd42c})['then'](_0x137711=>{_0x554d5b['remove'](_0xccd4d),_0x137711&&this['_updateComment']({'channelId':_0x309cce,'threadId':_0x204984,'commentId':_0x4fdce0,'createdAt':_0x137711['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x1dd004=>{throw console['error'](_0x1dd004),new _0xcbec56('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x225f10,commentId:_0x4732cc,content:_0x532cc3,createdAt:_0x35a6fd,attributes:_0x7a7f03,isFromAdapter:_0x327301}){if(void 0x0!==_0x532cc3&&('string'!=typeof _0x532cc3||!_0x532cc3['trim']()['length']))throw new _0xcbec56('commentsrepository-update-comment-invalid-content');const _0x1aa9d3=this['getCommentThread'](_0x225f10),_0x16fa6b=_0x1aa9d3['getComment'](_0x4732cc);if(!_0x16fa6b)throw new _0xcbec56('commentsrepository-update-missing-comment',this);let _0x59d8f6=!0x1;if(_0x532cc3&&_0x532cc3!==_0x16fa6b['content']&&(_0x16fa6b['isEditable']||_0x327301)&&(_0x16fa6b['content']=_0x532cc3,_0x59d8f6=!0x0),_0x35a6fd&&_0x35a6fd!==_0x16fa6b['createdAt']&&(_0x16fa6b['createdAt']=_0x35a6fd,_0x16fa6b['attributes']&&_0x16fa6b['attributes']['@external']||(_0x16fa6b['authoredAt']=_0x35a6fd),_0x59d8f6=!0x0),_0x7a7f03&&!wt(_0x7a7f03,_0x16fa6b['attributes'])&&(_0x16fa6b['attributes']=_0x7a7f03,_0x59d8f6=!0x0),!_0x59d8f6)return Promise['resolve']();if(_0x1aa9d3['fire']('commentUpdated'),_0x327301||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x228e12=this['context']['plugins']['get']('PendingActions'),{channelId:_0x193e32}=this['getCommentThread'](_0x16fa6b['threadId']),_0x2494dc=_0x228e12['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x193e32,'threadId':_0x225f10,'commentId':_0x4732cc,'content':_0x532cc3,'attributes':_0x7a7f03})['then'](()=>_0x228e12['remove'](_0x2494dc))['catch'](_0x4288e9=>{throw console['error'](_0x4288e9),new _0xcbec56('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x158f4e,commentId:_0x39f040,isFromAdapter:_0x30038c}){const _0x7444c8=this['getCommentThread'](_0x158f4e),_0x145d3e=_0x7444c8['getComment'](_0x39f040);if(!_0x145d3e)throw new _0xcbec56('commentsrepository-remove-missing-comment',this);if(_0x7444c8['_remove'](_0x145d3e),_0x30038c||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x73d0da=this['context']['plugins']['get']('PendingActions'),{channelId:_0x637a9d}=_0x7444c8,_0x2515e8=_0x73d0da['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x637a9d,'threadId':_0x158f4e,'commentId':_0x39f040})['then'](()=>_0x73d0da['remove'](_0x2515e8))['catch'](_0x39b57e=>{throw console['error'](_0x39b57e),new _0xcbec56('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
- _0x2f0bd8(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x5e6125,_0x1d8177){super();const _0x558bea=_0x1d8177['isResolvable'];this['channelId']=_0x1d8177['channelId'],this['id']=_0x1d8177['id'],this['comments']=new _0x52f624(),this['_repository']=_0x5e6125,this['_isAttached']=!0x1,this['_isSubmitted']=_0x1d8177['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x5e6125,'_permissions',_0x5e6125,'_readOnlyChannels',()=>_0x5e6125['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x5e6125,'_permissions',()=>_0x5e6125['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x5e6125,'_permissions',()=>{const _0x5ee1c1=_0x5e6125['getPermissions'](this['channelId']);return _0x5ee1c1['write']||_0x5ee1c1['admin'];}),this['bind']('isResolvable')['to'](_0x5e6125,'_permissions',()=>_0x558bea&&_0x5e6125['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x1d8177['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x4228ff,_0x34e4da)=>_0x4228ff?_0x34e4da?_0x4228ff<_0x34e4da?_0x4228ff:_0x34e4da:_0x4228ff:_0x34e4da),this['set']('unlinkedAt',_0x1d8177['unlinkedAt']||null),this['set']('resolvedAt',_0x1d8177['resolvedAt']||null),this['set']('resolvedBy',_0x1d8177['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x475154=>!!_0x475154),this['set']('attributes',_0x1d8177['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x361efd,_0x28199a)=>_0x361efd+_0x28199a['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x4d5d86,id:_0x69f6f7}=this;this['_repository']['fire'](bt('submitCommentThread',_0x4d5d86),{'channelId':_0x4d5d86,'threadId':_0x69f6f7});}['setUnlinkedAt'](_0x39e1e0){this['_update']({'unlinkedAt':_0x39e1e0});}['resolve']({resolvedAt:_0x1c32ba=new Date(),resolvedBy:_0x1cfad1=null,isFromAdapter:_0x44b8c5=!0x1}={}){const _0x1f49f5=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x2b13c9,id:_0x1f2214}=this;this['_repository']['fire'](bt('resolveCommentThread',_0x2b13c9),{'channelId':_0x2b13c9,'threadId':_0x1f2214,'resolvedAt':_0x1c32ba,'resolvedBy':_0x1cfad1||_0x1f49f5['id'],'isFromAdapter':_0x44b8c5});}['reopen']({isFromAdapter:_0x3893db=!0x1}={}){const {channelId:_0x44fe4f,id:_0x1ab7df}=this;this['_repository']['fire'](bt('reopenCommentThread',_0x44fe4f),{'channelId':_0x44fe4f,'threadId':_0x1ab7df,'isFromAdapter':_0x3893db});}['setContext'](_0x570dd8){this['context']||this['_update']({'context':_0x570dd8});}['setAttribute'](_0x4f773a,_0x59bd36){const _0x3f41eb=It(this['attributes']);At(_0x3f41eb,_0x4f773a,_0x59bd36),this['_update']({'attributes':_0x3f41eb});}['removeAttribute'](_0x1c3671){const _0x3a12f4=It(this['attributes']);Ct(_0x3a12f4,_0x1c3671),this['_update']({'attributes':_0x3a12f4});}['remove']({isFromAdapter:_0x4f032f=!0x1}={}){const {channelId:_0xaa03c3,id:_0x1e0f77}=this;this['_repository']['fire'](bt('removeCommentThread',_0xaa03c3),{'channelId':_0xaa03c3,'threadId':_0x1e0f77,'isFromAdapter':_0x4f032f});}['attachTo'](_0x4faf71){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x4faf71});}['addComment'](_0x22a6da){const {channelId:_0x57af35,id:_0x176038}=this;this['_repository']['fire'](bt('addComment',_0x57af35,_0x176038),Object['assign']({'channelId':_0x57af35,'threadId':_0x176038},_0x22a6da));}['getComment'](_0x24c5c0){if('string'!=typeof _0x24c5c0)throw new _0xcbec56('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x24c5c0});return this['comments']['get'](_0x24c5c0);}['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'](_0x2b129=>_0x2b129['toJSON']()),'attributes':this['attributes']};}['_add'](_0x958297){return this['listenTo'](_0x958297,'change:authoredAt',()=>{const _0x45d294=this['_findOptimalIndex'](_0x958297),_0x2d281b=this['comments'];_0x45d294-0x1!=_0x2d281b['getIndex'](_0x958297)&&_0x45d294+0x1!=_0x2d281b['getIndex'](_0x958297)&&(this['_remove'](_0x958297),this['_add'](_0x958297));}),this['comments']['add'](_0x958297,this['_findOptimalIndex'](_0x958297));}['_update'](_0x297561){const {channelId:_0x19d2e4,id:_0x54a983}=this;this['_repository']['fire'](bt('updateCommentThread',_0x19d2e4),{..._0x297561,'channelId':_0x19d2e4,'threadId':_0x54a983});}['_remove'](_0x43944a){return this['stopListening'](_0x43944a),_0x43944a['destroy'](),this['comments']['remove'](_0x43944a);}['_findOptimalIndex'](_0x270978){const _0x402e08=this['comments']['find'](_0x37e8ef=>new Date(_0x37e8ef['authoredAt'])['getTime']()>new Date(_0x270978['authoredAt'])['getTime']());return _0x402e08?this['comments']['getIndex'](_0x402e08):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
- _0x2f0bd8(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x2ea85b,_0x3883b3){super();const _0x1d1ab4=_0x2ea85b['context']['plugins']['get'](it)['me'],_0x4292c=_0x2ea85b['getCommentThread'](_0x3883b3['threadId']),_0x51b32c=0x0===_0x4292c['comments']['length'],_0x2353f9=_0x1d1ab4===_0x3883b3['author'];this['id']=_0x3883b3['id'],this['threadId']=_0x3883b3['threadId'],this['author']=_0x3883b3['author'],this['creator']=_0x3883b3['creator'],this['isExternal']=Boolean(_0x3883b3['attributes']&&_0x3883b3['attributes']['@external']),this['set']('content',_0x3883b3['content']),this['createdAt']=_0x3883b3['createdAt']||new Date(),this['set']('authoredAt',_0x3883b3['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x4292c,'resolvedAt'),this['set']('attributes',_0x3883b3['attributes']||{}),this['bind']('isEditable')['to'](_0x2ea85b,'_permissions',()=>{const _0x2c3b03=_0x2ea85b['getPermissions'](_0x4292c['channelId'])['write'],_0x3cabe0=_0x2ea85b['getPermissions'](_0x4292c['channelId'])['modifyAll'];return _0x2353f9&&_0x2c3b03||!_0x2353f9&&_0x3cabe0;}),this['bind']('isRemovable')['to'](_0x4292c,'isRemovable',_0x2ea85b,'_permissions',_0x3cd34a=>{const _0x103f8b=_0x2ea85b['getPermissions'](_0x4292c['channelId'])['write'],_0x29dd1c=_0x2ea85b['getPermissions'](_0x4292c['channelId'])['modifyAll'];return _0x2353f9&&_0x103f8b||_0x3cd34a&&_0x51b32c||!_0x2353f9&&_0x29dd1c&&!_0x51b32c;}),this['bind']('isReadOnly')['to'](_0x4292c,'isReadOnly'),this['_repository']=_0x2ea85b;}get['weight'](){return Math['max'](function(_0x2adbd0){const _0x21d8e6=document['createElement']('div');return _0x21d8e6['innerHTML']=_0x2adbd0,_0x21d8e6['textContent']['length'];}(this['content']),0xc8);}['update'](_0x3478bc){const {threadId:_0x208982,id:_0x4e6f58}=this;if(!this['_repository']['hasCommentThread'](_0x208982))throw new _0xcbec56('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x4c5b97}=this['_repository']['getCommentThread'](_0x208982);this['_repository']['fire'](bt('updateComment',_0x4c5b97,_0x208982),{'channelId':_0x4c5b97,'threadId':_0x208982,'commentId':_0x4e6f58,..._0x3478bc});}['setAttribute'](_0x7006b0,_0xd110d){const _0x145bd4=It(this['attributes']);At(_0x145bd4,_0x7006b0,_0xd110d),this['update']({'attributes':_0x145bd4});}['removeAttribute'](_0x5f07fd){const _0x4b6870=It(this['attributes']);Ct(_0x4b6870,_0x5f07fd),this['update']({'attributes':_0x4b6870});}['remove'](_0x5b12fe={}){if(!_0x5b12fe['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0xb51564,id:_0x46c974}=this;if(!this['_repository']['hasCommentThread'](_0xb51564))throw new _0xcbec56('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x1e250c}=this['_repository']['getCommentThread'](_0xb51564);this['_repository']['fire'](bt('removeComment',_0x1e250c,_0xb51564),{'channelId':_0x1e250c,'threadId':_0xb51564,'commentId':_0x46c974,..._0x5b12fe});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x1a00f0,..._0x40ed02){for(const _0x3c375a of _0x40ed02)void 0x0!==_0x3c375a&&(_0x1a00f0+=':'+String(_0x3c375a));return _0x1a00f0;}class rt extends _0x173239{constructor(_0x2ab050){super(_0x2ab050),this['set']('hasContent',!0x1);}['refresh'](){const _0x5694cc=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x5694dd of _0x5694cc['getRanges']())if(this['_hasContent'](_0x5694dd))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x3be1b9=_0x3b7a37(),ranges:_0xf6be33,comment:_0xa91962}={}){const _0x5e71f8=this['editor']['model'],_0x140338=_0xf6be33??Array['from'](_0x5e71f8['document']['selection']['getRanges']()),_0x55fb8b=[];for(const _0x1df97c of _0x140338)this['_hasContent'](_0x1df97c)&&_0x55fb8b['push'](this['_trimToContent'](_0x1df97c));if(!_0x55fb8b['length'])throw new _0xcbec56('addcommentthreadcommand-incorrect-ranges',null);_0xa91962&&this['_createCommentThread'](_0x3be1b9,_0xa91962),this['_createMarkersFromRanges'](_0x3be1b9,_0x55fb8b,!!_0xa91962);}['_createMarkersFromRanges'](_0x4de96c,_0x2de2cd,_0x19685e){this['editor']['model']['change'](_0x1f500b=>{for(const _0x54d188 of _0x2de2cd){const _0x56b538=_0x3b7a37()['substr'](0x1,0x5),_0x1b5552='comment:'+_0x4de96c+':'+_0x56b538;_0x1f500b['addMarker'](_0x1b5552,{'range':_0x54d188,'usingOperation':_0x19685e,'affectsData':_0x19685e});}});}['_createCommentThread'](_0x201988,_0x2e7122){const _0x4fe02d=this['editor']['plugins']['get']('CommentsRepository'),_0x280b52=this['editor']['config']['get']('collaboration.channelId'),_0x4b1536=this['editor']['plugins']['get']('Users')['me'];if(!_0x4b1536)throw new _0xcbec56('addcommentthreadcommand-user-not-found',null);_0x4fe02d['addCommentThread']({'threadId':_0x201988,'channelId':_0x280b52,'comments':[{'authorId':_0x4b1536['id'],'content':_0x2e7122,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x105e7f){for(const _0x17f84f of _0x105e7f['getItems']())if(this['_itemIsContent'](_0x17f84f))return!0x0;return!0x1;}['_itemIsContent'](_0x9ebd65){return _0x9ebd65['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x9ebd65)&&!_0x9ebd65['is']('element','tableCell');}['_trimToContent'](_0x54ab06){const _0x24c5d5=_0x50d2a9=>!this['_itemIsContent'](_0x50d2a9['item']),_0xc42481=_0x54ab06['start']['getLastMatchingPosition'](_0x24c5d5),_0x1176a2=_0x54ab06['end']['getLastMatchingPosition'](_0x24c5d5,{'direction':'backward'});return this['editor']['model']['createRange'](_0xc42481,_0x1176a2);}}class b extends _0x847970{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x17df41){super(_0x17df41),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x28ef76=this['editor'],_0x3afa61=_0x28ef76['model']['document']['selection'],_0x50c65e=_0x80a969(()=>this['refreshSelectedViews'](),0xa);_0x3afa61['on']('change:range',(_0x1a7a3e,_0x366529)=>{_0x366529['directChange']&&(_0x50c65e['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x28ef76['editing']['view']['document'],'change:isFocused',(_0x14917f,_0x6f8456,_0x403513)=>{_0x403513&&_0x50c65e();}),this['listenTo'](_0x28ef76['ui']['focusTracker'],'change:isFocused',(_0x19edf1,_0x2662f3,_0x182e86)=>{_0x182e86||_0x28ef76['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x940f3e=>this['_editorAnnotationsData']['has'](_0x940f3e['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x3f8040){if(this['_editorAnnotations']['has'](_0x3f8040['view']))return;this['_editorAnnotations']['add'](_0x3f8040['view']),this['editor']['ui']['focusTracker']['add'](_0x3f8040['view']['element']);const _0x5d91c5=this['editor']['plugins']['get'](y);this['listenTo'](_0x5d91c5['collection'],'remove',(_0x5f0b7c,_0x312bd0)=>{this['editor']['ui']['focusTracker']['remove'](_0x312bd0['view']['element']),this['_editorAnnotations']['delete'](_0x312bd0['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x2ea5b4){if('function'!=typeof _0x2ea5b4)throw new _0xcbec56('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x2ea5b4);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x4651e9,annotations:_0x14b422}){const _0x5a7500=[],_0x50540d=this['editor']['model']['document']['selection'],_0xcd158e=Array['from'](_0x50540d['getRanges']());for(const [_0x5b5d49,_0x504b58]of this['_editorAnnotationsData']){const _0x22749b=_0x3af254(_0x504b58),_0x1ac831=_0x14b422['getByInnerView'](_0x5b5d49);_0x22749b&&_0x1ac831&&_0x5a7500['push']({'annotation':_0x1ac831,'range':_0x22749b});}function _0x3af254(_0x16c727){for(const _0x18eb07 of _0x16c727)for(const _0x550dec of _0xcd158e)if(_0x18eb07['containsRange'](_0x550dec,!_0x50540d['isCollapsed']))return _0x18eb07;return null;}return _0x5a7500['sort']((_0x416a0d,_0x1de472)=>{const _0x1f9713=_0x416a0d['range'],_0x195099=_0x1de472['range'];if(!_0x1f9713['isEqual'](_0x195099)){if(_0x1f9713['containsRange'](_0x195099,!0x0))return 0x1;if(_0x195099['containsRange'](_0x1f9713,!0x0))return-0x1;}return _0x416a0d['annotation']==_0x4651e9?-0x1:_0x1de472['annotation']==_0x4651e9?0x1:0x0;})['map'](_0x1770a2=>_0x1770a2['annotation']);}get['_editorAnnotationsData'](){const _0x197fa1=new Map();for(const _0x4bcf3f of Array['from'](this['_dataCollectors']))for(const [_0x3c0b0b,_0x3332ec]of _0x4bcf3f())_0x197fa1['set'](_0x3c0b0b,_0x3332ec);return _0x197fa1;}}class st extends _0x847970{['afterInit'](){const _0x1fde9d=this['editor'];if(!_0x1fde9d['plugins']['has']('RestrictedEditingModeEditing'))return;_0x1fde9d['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x847970{constructor(_0x4c2141){super(_0x4c2141),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x1caabe=this['editor'],_0x309090=_0x1caabe['commands']['get']('importWord'),_0xf857a5=_0x1caabe['plugins']['get'](it);_0x309090&&(_0x309090['on']('execute',(_0x4ebc53,[,_0x2e3515])=>{_0x2e3515['collaboration_features']={'comments':!0x0,'user_id':_0xf857a5['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x309090,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x5f0829,_0x41f3cb){const {comment_threads:_0x20bec5}=_0x41f3cb;_0x20bec5&&_0x20bec5['forEach'](({thread_id:_0x2c3ce6,comments:_0x18fcc6,is_resolved:_0x4fd600})=>{const _0xfd77be=new Date(),_0x356331=_0x18fcc6['map'](({author:_0x3d604b,content:_0x3d6a43,created_at:_0x33461b})=>({'content':_0x3d6a43,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0xfd77be,'attributes':{'@external':{'authorName':_0x3d604b,'createdAt':_0x33461b?new Date(_0x33461b):new Date(),'source':'importWord'}}})),_0x26555a=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x26555a,'threadId':_0x2c3ce6,'comments':_0x356331,'resolvedAt':_0x4fd600?_0xfd77be:null});});}}class at extends _0x847970{constructor(_0x3abea7){super(_0x3abea7),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x5850dd=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x5850dd,'contentInsertion',(_0x46911f,_0x2fee3b)=>this['_removeMarkersWithoutThreads'](_0x2fee3b['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x4d2998){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x4d2998;const _0x395a7d=this['editor']['plugins']['get']('CommentsRepository');for(const _0xf59cd9 of _0x4d2998['keys']()){const [_0x58aa5b,_0xdabdea]=_0xf59cd9['split'](':');'comment'!=_0x58aa5b||_0x395a7d['hasCommentThread'](_0xdabdea)||_0x4d2998['delete'](_0xf59cd9);}return _0x4d2998;}['_registerMarkerInClipboardPipeline'](){const _0x49c1fe=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x171c20=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x171c20&&_0x49c1fe['_registerMarkerToCopy']('comment',_0x171c20);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x151a4c){switch(_0x151a4c){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 _0x847970{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0xfb3ff1,_0x255f84)=>{if(!_0x255f84['options']['showCommentHighlights'])return null;if(_0x255f84['options']['ignoreResolvedComments']){const {id:_0x4a9e3c}=er(_0xfb3ff1['markerName']),_0x54a7d0=this['editor']['plugins']['get'](o);if(_0x54a7d0['getCommentThread'](_0x4a9e3c)?.['isResolved']&&_0xfb3ff1['item'])return _0x255f84['consumable']['consume'](_0xfb3ff1['item'],'addMarker:'+_0xfb3ff1['markerName']),_0x255f84['consumable']['consume'](_0xfb3ff1['item'],'removeMarker:'+_0xfb3ff1['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x40e9be=>{_0x40e9be['on']('addMarker:comment',(_0x3da865,_0x525af1,_0x35e68c)=>{if(!_0x35e68c['options']['showCommentHighlights'])return;const _0x4ac122=_0x525af1['item'];if(!_0x4ac122)return;const _0x4974b1=_0x35e68c['mapper']['toViewElement'](_0x4ac122);this['editor']['model']['schema']['isObject'](_0x4ac122)&&_0x4974b1&&!_0x4974b1['getCustomProperty']('widget')&&_0x4974b1['is']('containerElement')&&_0x274cfe(_0x4974b1,_0x35e68c['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5ad224,{writer:_0x2b2cc9,options:_0x47ebbd})=>{if(!_0x47ebbd['showCommentHighlights'])return null;const _0x5656be=_0x2b2cc9['createContainerElement']('div'),_0x47f087=_0x2b2cc9['createEmptyElement']('hr');return _0x2b2cc9['addClass']('ck-horizontal-line',_0x5656be),_0x2b2cc9['insert'](_0x2b2cc9['createPositionAt'](_0x5656be,0x0),_0x47f087),_0x5656be;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0xbff7e,{writer:_0x2ff20f,options:_0x44f796})=>{if(!_0x44f796['showCommentHighlights'])return null;const _0x3ffecb=_0x2ff20f['createContainerElement']('span'),_0x3f93d9=_0x2ff20f['createEmptyElement']('img');return _0x2ff20f['addClass']('image-inline',_0x3ffecb),_0x2ff20f['insert'](_0x2ff20f['createPositionAt'](_0x3ffecb,0x0),_0x3f93d9),_0x3ffecb;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1a67b7,{writer:_0x3526a8,options:_0x57f05e})=>{if(_0x57f05e['showCommentHighlights'])return _0x3526a8['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3b2ec7,_0x562f31,_0x376bf0)=>{_0x376bf0['options']['showCommentHighlights']&&_0x3b2ec7['stop']();},{'priority':'high'});}}class r extends _0x847970{static get['requires'](){return[o,b,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x439241){super(_0x439241),this['set']('isThreadsLoadingPaused',!0x0),_0x439241['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x405010,_0x1d594a,_0x2a308f,_0x2bd887)=>{const _0x2e0bb2=_0x439241['plugins']['get'](o),_0x2e778b=_0x2a308f?er(_0x2a308f)['id']:null;_0x439241['model']['change'](()=>{if(_0x2e778b){const _0x49f63d=this['getAllMarkersForId'](_0x2e778b);for(const _0x3ce984 of _0x49f63d)_0x439241['editing']['reconvertMarker'](_0x3ce984);}if(_0x2bd887){const {id:_0x123d7a}=er(_0x2bd887),_0x381c68=_0x2e0bb2['getCommentThread'](_0x123d7a);if(_0x381c68&&_0x381c68['unlinkedAt'])return;if(_0x381c68&&!_0x381c68['isAttached'])return;const _0x55f486=this['getAllMarkersForId'](_0x123d7a);for(const _0x13467a of _0x55f486)_0x439241['editing']['reconvertMarker'](_0x13467a);}}),_0x2e778b&&this['scrollToThreadMarker'](_0x2e778b);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5f49f2=this['editor'],_0x33f1b0=_0x5f49f2['plugins']['get'](o),_0x3442e8=_0x5f49f2['config']['get']('collaboration.channelId'),_0x11389f=_0x33f1b0['getCommentThreads']()['filter'](_0xdfd416=>_0xdfd416['channelId']!==_0x3442e8);_0x5f49f2['commands']['add']('addCommentThread',new rt(_0x5f49f2)),this['listenTo'](_0x5f49f2,'change:isReadOnly',(_0x291dd1,_0x4c130d,_0x396e02)=>{_0x33f1b0['switchReadOnly'](_0x396e02,_0x5f49f2['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x33f1b0,ft('addCommentThread',_0x3442e8),(_0x2247ce,{threadId:_0x4bd250})=>{const _0x59fa61=this['editor']['plugins']['get'](o)['getCommentThread'](_0x4bd250);_0x59fa61?.['unlinkedAt']&&this['_attachArchivedThread'](_0x4bd250);}),this['listenTo'](_0x33f1b0,ft('removeCommentThread',_0x3442e8),(_0x58b190,{threadId:_0x3483f6})=>{_0x5f49f2['model']['enqueueChange']({'isUndoable':!0x1},_0x599d26=>{const _0x283b74=this['getAllMarkersForId'](_0x3483f6);for(const _0x57306a of _0x283b74)_0x599d26['removeMarker'](_0x57306a);});}),this['listenTo'](_0x33f1b0,ft('resolveCommentThread',_0x3442e8),(_0x3b4617,{threadId:_0x5cbf95})=>{(this['_reconvertMarkers'](_0x5cbf95),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x5cbf95)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x33f1b0,ft('reopenCommentThread',_0x3442e8),(_0x383578,{threadId:_0x2237d5})=>{this['_reconvertMarkers'](_0x2237d5);},{'priority':'low'}),this['listenTo'](_0x33f1b0,ft('addComment',_0x3442e8),(_0x4b9ffa,{threadId:_0x831c5d,isFromAdapter:_0x23745d})=>{const _0x54e270=this['getAllMarkersForId'](_0x831c5d);if(_0x23745d||0x0==_0x54e270['length']||!_0x33f1b0['hasCommentThread'](_0x831c5d))return;0x1===_0x33f1b0['getCommentThread'](_0x831c5d)['length']&&_0x5f49f2['model']['enqueueChange']({'isUndoable':!0x1},_0x24054a=>{for(const _0x3b0eca of _0x54e270)_0x24054a['updateMarker'](_0x3b0eca,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x11389f);}['afterInit'](){!async function(_0x593da6){const _0x19b36a=_0x249377([0x58,0x47,0x53,0x76,0x4c,0x5a,0x32,0x4e,0x6d,0x6f,0x78,0x33,0x70,0x52,0x6b,0x68,0x41,0x50,0x72,0x59,0x49,0x6c,0x54,0x36,0x34,0x44,0x73,0x37,0x71,0x4f,0x65,0x4d,0x57,0x74,0x55,0x6e,0x42,0x4b,0x56,0x67,0x61,0x64,0x75,0x77,0x48,0x66,0x6a,0x43,0x51,0x30,0x31,0x62,0x69,0x39,0x38,0x4a,0x63,0x79,0x7a,0x35,0x46,0x45]),_0x3b0189=0x1f51df6c,_0x51bb77=0x1f56b38c^_0x3b0189,_0x2f28fe=window[_0x249377([0x44,0x61,0x74,0x65])][_0x249377([0x6e,0x6f,0x77])](),_0x3a8ca9=_0x593da6[_0x249377([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x16f048=new window[(_0x249377([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x182bb9=>{_0x3a8ca9[_0x249377([0x6f,0x6e,0x63,0x65])](_0x249377([0x72,0x65,0x61,0x64,0x79]),_0x182bb9);}),_0x2a8b3d={[_0x249377([0x6b,0x74,0x79])]:_0x249377([0x45,0x43]),[_0x249377([0x75,0x73,0x65])]:_0x249377([0x73,0x69,0x67]),[_0x249377([0x63,0x72,0x76])]:_0x249377([0x50,0x2d,0x32,0x35,0x36]),[_0x249377([0x78])]:_0x249377([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]),[_0x249377([0x79])]:_0x249377([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]),[_0x249377([0x61,0x6c,0x67])]:_0x249377([0x45,0x53,0x32,0x35,0x36])},_0x56189c=_0x3a8ca9[_0x249377([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x249377([0x67,0x65,0x74])](_0x249377([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x227225(){let _0x4d2f10,_0x50568c=null,_0x3f6449=null;try{if(_0x56189c==_0x249377([0x47,0x50,0x4c]))return _0x249377([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4d2f10=_0x2881ae(),!_0x4d2f10)return _0x249377([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4d2f10[_0x249377([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3f6449=_0x2530c1(_0x4d2f10[_0x249377([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4d2f10[_0x249377([0x6a,0x74,0x69])])),await _0x5248cf()?_0x2560f3()?_0x2ece60()?_0x249377([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5c4ca3()?(_0x4d2f10[_0x249377([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x249377([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x50568c=_0x55f4c4(_0x249377([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4d2f10[_0x249377([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x249377([0x74,0x72,0x69,0x61,0x6c])&&(_0x50568c=_0x55f4c4(_0x249377([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x37561e()):_0x249377([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x249377([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x249377([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x249377([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2ece60(){const _0x451254=[_0x249377([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x249377([0x74,0x72,0x69,0x61,0x6c])][_0x249377([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d2f10[_0x249377([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f28fe/0x3e8:0xe10*_0x51bb77;return _0x4d2f10[_0x249377([0x65,0x78,0x70])]<_0x451254;}function _0x2560f3(){const _0x1463ef=_0x4d2f10[_0x249377([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1463ef)return!0x1;if(_0x1463ef[_0x249377([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x249377([0x2a])))return!0x0;if(_0x1463ef[_0x249377([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x249377([0x43,0x4d,0x54])))return!0x0;if(_0x1463ef[_0x249377([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x249377([0x52,0x43,0x4d,0x54]))){if(_0x4005bd())return!0x0;if(_0x2dc996()||_0x3f34da())return!0x0;}return!0x1;}function _0x5c4ca3(){const _0x1106e5=_0x4d2f10[_0x249377([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1106e5||0x0==_0x1106e5[_0x249377([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x12716b}=new URL(window[_0x249377([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1106e5[_0x249377([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12716b))return!0x0;const _0x21b242=_0x12716b[_0x249377([0x73,0x70,0x6c,0x69,0x74])](_0x249377([0x2e]));return _0x1106e5[_0x249377([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3021cf=>_0x3021cf[_0x249377([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x249377([0x2a])))[_0x249377([0x6d,0x61,0x70])](_0x5baf05=>_0x5baf05[_0x249377([0x73,0x70,0x6c,0x69,0x74])](_0x249377([0x2e])))[_0x249377([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x245bc7=>_0x245bc7[_0x249377([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x21b242[_0x249377([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x249377([0x6d,0x61,0x70])](_0x422cfa=>Array(_0x21b242[_0x249377([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x422cfa[_0x249377([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x249377([0x66,0x69,0x6c,0x6c])](_0x422cfa[0x0]===_0x249377([0x2a])?_0x249377([0x2a]):'')[_0x249377([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x422cfa))[_0x249377([0x73,0x6f,0x6d,0x65])](_0x3594ee=>_0x21b242[_0x249377([0x65,0x76,0x65,0x72,0x79])]((_0x18b08a,_0xf61ed0)=>_0x3594ee[_0xf61ed0]===_0x18b08a||_0x3594ee[_0xf61ed0]===_0x249377([0x2a])));}function _0x37561e(){return _0x50568c&&_0x3f6449?new window[(_0x249377([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x277193,_0x1d05a2)=>{_0x50568c[_0x249377([0x74,0x68,0x65,0x6e])](_0x277193,_0x1d05a2),_0x3f6449[_0x249377([0x74,0x68,0x65,0x6e])](_0x551506=>{_0x551506!=_0x249377([0x56,0x61,0x6c,0x69,0x64])&&_0x277193(_0x551506);},_0x1d05a2);}):_0x50568c||_0x3f6449||_0x249377([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2530c1(_0x6145f1,_0x5c8d47){return new window[(_0x249377([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x369dc4=>{if(_0x27a0f7())return _0x369dc4(_0x249377([0x56,0x61,0x6c,0x69,0x64]));_0xaf153a(),_0x3a8ca9[_0x249377([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x249377([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1dfbbf=!0x1;const _0xc1da20=_0x3b7a37();function _0x174c46(_0x923cdf){return!!_0x923cdf&&(typeof _0x923cdf===_0x249377([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x923cdf===_0x249377([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x923cdf[_0x249377([0x74,0x68,0x65,0x6e])]===_0x249377([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x923cdf[_0x249377([0x63,0x61,0x74,0x63,0x68])]===_0x249377([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x38acda(_0x102dd9){_0x513e68(_0x102dd9)[_0x249377([0x74,0x68,0x65,0x6e])](_0x84f03a=>{if(!_0x84f03a||_0x84f03a[_0x249377([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x249377([0x6f,0x6b]))return _0x249377([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3a3657(_0x5f2af9(_0xc1da20+_0x5c8d47))!=_0x84f03a[_0x249377([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x249377([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x249377([0x56,0x61,0x6c,0x69,0x64]);})[_0x249377([0x74,0x68,0x65,0x6e])](_0xf20737=>(_0x24711f(),_0xf20737),()=>{const _0x297e6e=_0x4f5e05();return null==_0x297e6e?(_0x24711f(),_0x249377([0x56,0x61,0x6c,0x69,0x64])):_0x249377(_0x2f28fe-_0x297e6e>(0x3b5d5b6c^_0x3b0189)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x249377([0x74,0x68,0x65,0x6e])](_0x369dc4)[_0x249377([0x63,0x61,0x74,0x63,0x68])](()=>{_0x369dc4(_0x249377([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x456408=0x1f6731ec^_0x3b0189;function _0x24711f(){const _0x17fe2e=_0x249377([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a3657(_0x5f2af9(_0x6145f1)),_0x598543=_0x678df5(_0x3a3657(window[_0x249377([0x4d,0x61,0x74,0x68])][_0x249377([0x63,0x65,0x69,0x6c])](_0x2f28fe/_0x456408)));window[_0x249377([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x249377([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x17fe2e,_0x598543);}function _0x4f5e05(){const _0x51af83=_0x249377([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a3657(_0x5f2af9(_0x6145f1)),_0x1da8f5=window[_0x249377([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x249377([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51af83);return _0x1da8f5?window[_0x249377([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x678df5(_0x1da8f5),0x10)*_0x456408:null;}function _0x513e68(_0x33d0a8){return new window[(_0x249377([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30dcc3,_0xfec49b)=>{_0x33d0a8[_0x249377([0x74,0x68,0x65,0x6e])](_0x30dcc3,_0xfec49b),window[_0x249377([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xfec49b,0x1f500bac^_0x3b0189);});}}_0x3a8ca9[_0x249377([0x6f,0x6e])](_0x249377([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ef907,_0x1ab490)=>{if(_0x1ab490[0x0]!=_0x6145f1)return _0x369dc4(_0x249377([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1ab490[0x1]={..._0x1ab490[0x1],[_0x249377([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xc1da20};},{[_0x249377([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x249377([0x68,0x69,0x67,0x68])}),_0x3a8ca9[_0x249377([0x6f,0x6e])](_0x249377([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x58e144=>{_0x174c46(_0x58e144[_0x249377([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1dfbbf=!0x0,_0x38acda(_0x58e144[_0x249377([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x249377([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x249377([0x6c,0x6f,0x77])}),_0x16f048[_0x249377([0x74,0x68,0x65,0x6e])](()=>{_0x1dfbbf||_0x369dc4(_0x249377([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x27a0f7(){return _0x3a8ca9[_0x249377([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x249377([0x76,0x69,0x65,0x77])][_0x249377([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x249377([0x61,0x75,0x74,0x6f]);}function _0xaf153a(){_0x3a8ca9[_0x249377([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x249377([0x76,0x69,0x65,0x77])][_0x249377([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x249377([0x61,0x75,0x74,0x6f]);}}function _0x55f4c4(_0x162d59){const _0x3685f4=[new window[(_0x249377([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cf692=>setTimeout(_0x2cf692,0x1f58e1a0^_0x3b0189)),_0x16f048[_0x249377([0x74,0x68,0x65,0x6e])](()=>new window[(_0x249377([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d2712=>{let _0x3aa5aa=0x0;_0x3a8ca9[_0x249377([0x6d,0x6f,0x64,0x65,0x6c])][_0x249377([0x6f,0x6e])](_0x249377([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x223dcd,_0x3cea02)=>{_0x3cea02[0x0][_0x249377([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3aa5aa++,_0x3aa5aa==(0x1f51de94^_0x3b0189)&&(_0x2d2712(),_0x223dcd[_0x249377([0x6f,0x66,0x66])]());});}))];return window[_0x249377([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x249377([0x72,0x61,0x63,0x65])](_0x3685f4)[_0x249377([0x74,0x68,0x65,0x6e])](()=>_0x162d59);}async function _0x5c3ab0(){await _0x16f048,_0x3a8ca9[_0x249377([0x6d,0x6f,0x64,0x65,0x6c])][_0x249377([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x52955e,_0x3a8ca9[_0x249377([0x6d,0x6f,0x64,0x65,0x6c])][_0x249377([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x52955e,_0x3a8ca9[_0x249377([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x249377([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4005bd(){return _0x1ff380(_0x249377([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4f2dae(_0x249377([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x249377([0x73,0x74,0x61,0x74,0x65])]==_0x249377([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2dc996(){return _0x1ff380(_0x249377([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 _0x3f34da(){return _0x1ff380(_0x249377([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5978a4(_0x5e44bd){const _0x458b9c=_0x144f6a();_0x3a8ca9[_0x458b9c]=_0x249377([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5e44bd,_0x5e44bd!=_0x249377([0x56,0x61,0x6c,0x69,0x64])&&_0x5c3ab0();}function _0x144f6a(){const _0x5d0793=window[_0x249377([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x249377([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x249377([0x6e,0x6f,0x77])]())[_0x249377([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x249377([0x2e]),'');let _0x489bc9=_0x249377([0x58]);for(let _0x429176=0x0;_0x429176<_0x5d0793[_0x249377([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x429176+=0x2){let _0x4f79d2=window[_0x249377([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d0793[_0x249377([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x429176,_0x429176+0x2));_0x4f79d2>=_0x19b36a[_0x249377([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4f79d2-=_0x19b36a[_0x249377([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x489bc9+=_0x19b36a[_0x4f79d2];}return _0x489bc9;}function _0x2881ae(){const _0x20598a=_0x56189c[_0x249377([0x73,0x70,0x6c,0x69,0x74])](_0x249377([0x2e]));if(0x3!=_0x20598a[_0x249377([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2007a6(_0x20598a[0x1]);function _0x2007a6(_0x241f33){const _0x1eb61=_0x29d36c(_0x241f33);return _0x1eb61&&_0x24dc34()?_0x1eb61:null;function _0x24dc34(){const _0x356657=_0x1eb61[_0x249377([0x6a,0x74,0x69])],_0x310499=window[_0x249377([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x356657[_0x249377([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x356657[_0x249377([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x12273a={..._0x1eb61,[_0x249377([0x6a,0x74,0x69])]:_0x356657[_0x249377([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x356657[_0x249377([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x12273a[_0x249377([0x76,0x63])],_0x5f2af9(_0x12273a)==_0x310499;}}}async function _0x5248cf(){let _0x42ee92=!0x0;try{const _0xd14bdb=_0x56189c[_0x249377([0x73,0x70,0x6c,0x69,0x74])](_0x249377([0x2e])),[_0x52589a,_0x4e464d,_0x375569]=_0xd14bdb;return _0x4c0bd1(_0x52589a),await _0x2b7f59(_0x52589a,_0x4e464d,_0x375569),_0x42ee92;}catch{return!0x1;}function _0x4c0bd1(_0x421199){const _0x4ef6b4=_0x29d36c(_0x421199);_0x4ef6b4&&_0x4ef6b4[_0x249377([0x61,0x6c,0x67])]==_0x249377([0x45,0x53,0x32,0x35,0x36])||(_0x42ee92=!0x1);}async function _0x2b7f59(_0x4a219d,_0x1fe031,_0x3e6346){const _0xa8b88a=window[_0x249377([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x249377([0x66,0x72,0x6f,0x6d])](_0x4ba5f5(_0x3e6346),_0xc029cb=>_0xc029cb[_0x249377([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2fcc5f=new window[(_0x249377([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x249377([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4a219d+_0x249377([0x2e])+_0x1fe031),_0x13bb0f=window[_0x249377([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x249377([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x13bb0f)return;const _0x5c8ce7=await _0x13bb0f[_0x249377([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x249377([0x6a,0x77,0x6b]),_0x2a8b3d,{[_0x249377([0x6e,0x61,0x6d,0x65])]:_0x249377([0x45,0x43,0x44,0x53,0x41]),[_0x249377([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x249377([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x249377([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x13bb0f[_0x249377([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x249377([0x6e,0x61,0x6d,0x65])]:_0x249377([0x45,0x43,0x44,0x53,0x41]),[_0x249377([0x68,0x61,0x73,0x68])]:{[_0x249377([0x6e,0x61,0x6d,0x65])]:_0x249377([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5c8ce7,_0xa8b88a,_0x2fcc5f)||(_0x42ee92=!0x1);}}function _0x29d36c(_0x4e718e){return _0x4e718e[_0x249377([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x249377([0x65,0x79]))?JSON[_0x249377([0x70,0x61,0x72,0x73,0x65])](_0x4ba5f5(_0x4e718e)):null;}function _0x4ba5f5(_0x2c4d44){return window[_0x249377([0x61,0x74,0x6f,0x62])](_0x2c4d44[_0x249377([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x249377([0x2b]))[_0x249377([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x249377([0x2f])));}function _0x5f2af9(_0xb5085c){let _0x1684c3=0x1505;function _0x37e3af(_0x1829f7){for(let _0x3add3a=0x0;_0x3add3a<_0x1829f7[_0x249377([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3add3a++){const _0x21d6cd=_0x1829f7[_0x249377([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3add3a);_0x1684c3=(_0x1684c3<<0x5)+_0x1684c3+_0x21d6cd,_0x1684c3&=_0x1684c3;}}function _0x2ac036(_0x1124b1){Array[_0x249377([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1124b1)?_0x1124b1[_0x249377([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ac036):_0x1124b1&&typeof _0x1124b1==_0x249377([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x249377([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1124b1)[_0x249377([0x73,0x6f,0x72,0x74])]()[_0x249377([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x21aef9,_0x44377d])=>{_0x37e3af(_0x21aef9),_0x2ac036(_0x44377d);}):_0x37e3af(window[_0x249377([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1124b1));}return _0x2ac036(_0xb5085c),_0x1684c3>>>0x0;}function _0x3a3657(_0x3ab6fd){return _0x3ab6fd[_0x249377([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x249377([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x249377([0x30]));}function _0x678df5(_0x43343d){return _0x43343d[_0x249377([0x73,0x70,0x6c,0x69,0x74])]('')[_0x249377([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x249377([0x6a,0x6f,0x69,0x6e])]('');}function _0x1ff380(_0x4fbdf5){return _0x3a8ca9[_0x249377([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x249377([0x68,0x61,0x73])](_0x4fbdf5);}function _0x4f2dae(_0x3809d1){return _0x3a8ca9[_0x249377([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x249377([0x67,0x65,0x74])](_0x3809d1);}function _0x52955e(){}function _0x249377(_0x3fa3fe){return _0x3fa3fe['map'](_0x3bf368=>String['fromCharCode'](_0x3bf368))['join']('');}_0x5978a4(await _0x227225());}(this);}['destroy'](){const _0x1dc168=this['editor']['plugins']['get'](o),_0x52a7ac=this['editor']['config']['get']('collaboration.channelId');for(const _0x26f2bf of _0x1dc168['getCommentThreads']({'channelId':_0x52a7ac}))_0x1dc168['_detachCommentThread'](_0x26f2bf['id']),_0x1dc168['_threads']['delete'](_0x26f2bf['id']);super['destroy']();}['hasMarkerForId'](_0x54f903){return this['getAllMarkersForId'](_0x54f903)['length']>0x0;}['getAllMarkersForId'](_0x8bd4f6){const _0x54b311=[];for(const _0x301ef4 of this['editor']['model']['markers'])_0x301ef4['name']['startsWith']('comment:'+_0x8bd4f6)&&_0x54b311['push'](_0x301ef4);return _0x54b311;}['scrollToThreadMarker'](_0x29c1e0){setTimeout(()=>{const _0x2a0bdc=this['_getTargetForId'](_0x29c1e0);if(!_0x2a0bdc)return;this['activeMarker']&&er(this['activeMarker'])['id']===_0x29c1e0&&nt({'target':_0x2a0bdc[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x1ccceb){this['editor']['model']['change'](()=>{for(const _0x3cef71 of this['getAllMarkersForId'](_0x1ccceb))this['editor']['editing']['reconvertMarker'](_0x3cef71);});}['_attachArchivedThread'](_0x4424d6){const _0x41bb28=this['editor']['plugins']['get'](o),_0x285902=this['editor']['plugins']['get'](b),_0x527559=_0x41bb28['getCommentThread'](_0x4424d6);if(!_0x527559['isAttached']){const _0x54434c=_0x527559['attachTo'](()=>this['_getTargetForId'](_0x527559['id']));_0x285902['registerAnnotation'](_0x54434c),_0x527559['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x45eb36=this['editor'],_0x56d3bc=_0x45eb36['plugins']['get'](it);_0x45eb36['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0xa81879,_0x36f882)=>{const {id:_0x3fb948}=er(_0xa81879['markerName']),_0x1c5f03=_0x45eb36['plugins']['get'](o)['getCommentThread'](_0x3fb948),_0x5b76d5=this['activeMarker']&&er(this['activeMarker'])['id']===_0x3fb948;let _0x51f5aa;if(_0x1c5f03&&_0x1c5f03['isResolved']&&!_0x5b76d5&&_0xa81879['item'])return _0x36f882['consumable']['consume'](_0xa81879['item'],'addMarker:'+_0xa81879['markerName']),_0x36f882['consumable']['consume'](_0xa81879['item'],'removeMarker:'+_0xa81879['markerName']),null;const _0x56d735=['ck-comment-marker'];return _0x5b76d5&&_0x56d735['push']('ck-comment-marker--active'),_0x51f5aa=_0x1c5f03?.['length']?_0x1c5f03['comments']['first']['author']['id']:_0x56d3bc['me']['id'],{'classes':_0x56d735,'attributes':{'data-comment':_0x3fb948,'data-author-id':_0x51f5aa}};}}),_0x45eb36['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0xf96e43,{options:_0x1b538a})=>{if(_0x1b538a['showCommentHighlights'])return null;const _0x62f1e3=_0x45eb36['plugins']['get'](o),_0x4e3a40=_0x45eb36['model']['markers']['get'](_0xf96e43),{id:_0x46d53e,part:_0x4e5a13}=er(_0xf96e43);return _0x4e3a40&&!_0x4e3a40['affectsData']||_0x1b538a['ignoreResolvedComments']&&_0x62f1e3['getCommentThread'](_0x46d53e)?.['isResolved']?null:{'group':'comment','name':_0x4e5a13?_0x46d53e+':'+_0x4e5a13:_0x46d53e};}}),_0x45eb36['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x25952c,{writer:_0x2fa177})=>_0x2fa177['createElement']('$marker',{'data-name':'comment:'+_0x25952c['getAttribute']('id')})}),_0x45eb36['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x51947f=this['editor'],_0x3df8d0=_0x51947f['plugins']['get'](o),_0x4a2679=new Set(),_0x378b11=new Set();_0x51947f['model']['document']['registerPostFixer'](_0x30c2d0=>{let _0x258054=!0x1;for(const {name:_0x29826b,data:_0x27b0d5}of _0x51947f['model']['document']['differ']['getChangedMarkers']()){const {group:_0x4ff9e2,id:_0x302578}=er(_0x29826b);let _0x354f93=_0x27b0d5['newRange'];if('comment'!==_0x4ff9e2||!_0x354f93)continue;const _0x171ddf='$graveyard'===_0x354f93['root']['rootName'];_0x171ddf||(_0x354f93=dt(_0x354f93,_0x51947f['model']),!_0x354f93||_0x354f93['isCollapsed']||!_0x27b0d5['newRange']||_0x354f93['isEqual'](_0x27b0d5['newRange']))?_0x51947f['model']['hasContent'](_0x354f93)&&!_0x171ddf?this['isThreadsLoadingPaused']?_0x4a2679['add'](_0x29826b):this['_handleThreadMarker'](_0x29826b,_0x302578):(_0x378b11['add'](_0x29826b),_0x4a2679['delete'](_0x29826b),_0x30c2d0['removeMarker'](_0x29826b),_0x258054=!0x0):(_0x30c2d0['updateMarker'](_0x29826b,{'range':_0x354f93}),_0x258054=!0x0);}return _0x258054;}),this['on']('change:isThreadsLoadingPaused',(_0x2ba6be,_0x230a2f,_0x2bc4f2)=>{if(!_0x2bc4f2&&_0x4a2679['size'])for(const _0x183988 of _0x4a2679){const {id:_0x15dbb2}=er(_0x183988);_0x4a2679['delete'](_0x183988),_0x51947f['model']['markers']['get'](_0x183988)&&this['_handleThreadMarker'](_0x183988,_0x15dbb2);}}),this['listenTo'](_0x51947f['model']['document'],'change',()=>{for(const {name:_0x448ff3,data:{newRange:_0x108291}}of _0x51947f['model']['document']['differ']['getChangedMarkers']()){const {group:_0x387ac6,id:_0x510c37}=er(_0x448ff3);if('comment'!==_0x387ac6)continue;const _0x35db63=_0x3df8d0['getCommentThread'](_0x510c37),_0xecd2f7=this['hasMarkerForId'](_0x510c37);_0x35db63&&(!_0x35db63['_hasTargetInContent']&&_0x108291&&_0x51947f['editing']['view']['once']('render',()=>{const _0x3eda52=_0x51947f['plugins']['get'](y),_0x53e81e=_0x3df8d0['_threadToController']['get'](_0x35db63)['view'];_0x3eda52['getByInnerView'](_0x53e81e)['refreshVisibility']();},{'priority':'low'}),_0x35db63['_hasTargetInContent']=_0xecd2f7||!!_0x108291),_0x108291||(_0x378b11['add'](_0x448ff3),_0x4a2679['delete'](_0x448ff3));}for(const _0x5a0925 of _0x378b11){const {id:_0x49e4a9}=er(_0x5a0925),_0x5e54f7=_0x3df8d0['getCommentThread'](_0x49e4a9);if(_0x4a2679['delete'](_0x5a0925),!_0x5e54f7)continue;const _0x33341c=this['hasMarkerForId'](_0x49e4a9);_0x33341c||_0x5e54f7['isSubmitted']?_0x33341c||_0x5e54f7['unlinkedAt']||_0x5e54f7['setUnlinkedAt'](new Date()):_0x5e54f7['remove']();}_0x378b11['clear']();});}['_handleInitialThreads'](_0x475d97){_0x475d97['forEach'](_0x4b2fb3=>{_0x4b2fb3['unlinkedAt']&&this['_attachArchivedThread'](_0x4b2fb3['id']);});}['_getTargetForId'](_0x43a451){const _0x75415d=this['editor'],_0x70681f=this['getAllMarkersForId'](_0x43a451);return et(_0x75415d['editing'],_0x70681f);}['_getTextContext'](_0x447ddc){const _0x324453=this['getAllMarkersForId'](_0x447ddc);let _0xff197a='',_0xc8ba4d=!0x1;for(const _0x3b0505 of _0x324453){const _0x32ed86=_0x3b0505['getRange']();for(const _0x479f27 of Array['from'](_0x32ed86['getItems']()))_0x479f27['is']('$textProxy')?(_0xff197a&&_0xc8ba4d&&(_0xff197a+='\x20',_0xc8ba4d=!0x1),_0xff197a+=_0x479f27['data']):_0xc8ba4d=!0x0;_0xc8ba4d=!0x0;}return _0xff197a['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x2d8bf2,_0x229983){const _0x2e4b33=this['editor'],_0xae64fd=_0x2e4b33['plugins']['get'](o);let _0x4ef92f=_0xae64fd['getCommentThread'](_0x229983);const _0x2be8f3=_0x2e4b33['config']['get']('collaboration.channelId'),_0x10b7af=_0x2e4b33['plugins']['get'](b);if(_0x4ef92f&&(_0x4ef92f['unlinkedAt']&&_0x4ef92f['setUnlinkedAt'](null),_0x4ef92f['isAttached']))return _0x4ef92f;return!this['getAllMarkersForId'](_0x229983)[0x0]['managedUsingOperations']?_0x2e4b33['editing']['view']['once']('render',()=>{if(_0xae64fd['getCommentThread'](_0x229983))return;const _0x3d45dd=_0x2e4b33['plugins']['get'](y);_0x4ef92f=_0xae64fd['openNewCommentThread']({'channelId':_0x2be8f3,'threadId':_0x229983,'target':()=>this['_getTargetForId'](_0x229983),'context':{'type':'text','value':this['_getTextContext'](_0x229983)}});const _0x29aa16=_0xae64fd['_threadToController']['get'](_0x4ef92f)['view'],_0x57e61e=_0x3d45dd['getByInnerView'](_0x29aa16);_0x57e61e&&_0x10b7af['registerAnnotation'](_0x57e61e);},{'priority':'low'}):_0xae64fd['fetchCommentThread']({'channelId':_0x2be8f3,'threadId':_0x229983})['then'](_0x1a3599=>{if('destroyed'!==_0x2e4b33['state']){if(_0x4ef92f=_0x1a3599,_0x4ef92f&&!_0x4ef92f['isAttached']){const _0x3ab7b5=_0x4ef92f['attachTo'](()=>this['_getTargetForId'](_0x229983));_0x10b7af['registerAnnotation'](_0x3ab7b5),_0x4ef92f['isResolved']&&this['_reconvertMarkers'](_0x229983);}else{if(!_0x4ef92f){const _0x5f3f50=this['getAllMarkersForId'](_0x229983);_0x2e4b33['model']['change'](_0x1fda48=>{for(const _0x566b2c of _0x5f3f50)_0x1fda48['removeMarker'](_0x566b2c);});}}}}),_0x4ef92f;}['_handleThreadMarker'](_0x38db22,_0x4e51f3){const _0x3ae90c=this['_attachMarkerToThread'](_0x38db22,_0x4e51f3);_0x3ae90c&&!_0x3ae90c['context']&&_0x3ae90c['setContext']({'type':'text','value':this['_getTextContext'](_0x4e51f3)});}['_initAriaMarkerChangeAnnouncements'](){const _0xf2bacf=this['editor'];ot(_0xf2bacf['model'],({left:_0x3904ae,entered:_0x142db5})=>{for(const _0x4d7ed5 of _0x3904ae)if(mt(_0x4d7ed5)){_0xf2bacf['ui']['ariaLiveAnnouncer']['announce'](N(_0xf2bacf['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x346883 of _0x142db5)if(mt(_0x346883)){_0xf2bacf['ui']['ariaLiveAnnouncer']['announce'](N(_0xf2bacf['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x185b3c)));break;}});}}function ft(_0x4aced3,_0x473c73){return _0x473c73?_0x4aced3+':'+_0x473c73:_0x4aced3;}function er(_0x47fa2e){const _0x16d178=_0x47fa2e['split'](':');return{'group':_0x16d178[0x0],'id':_0x16d178[0x1],'part':_0x16d178[0x2]};}function dt(_0x224ad0,_0x53d5b2){const _0x34e3bd=_0x53d5b2['schema'],_0x5c293f=_0x53d5b2['createRange'](_0x224ad0['start']);for(const _0x1ef21c of _0x224ad0['getWalker']()){const {type:_0x2e7281,item:_0x3f5fa0,nextPosition:_0x1f554d}=_0x1ef21c;if('text'===_0x2e7281||_0x34e3bd['isObject'](_0x3f5fa0)){const _0x543603=_0x53d5b2['createPositionBefore'](_0x3f5fa0);_0x5c293f['isCollapsed']&&(_0x5c293f['start']=_0x543603),_0x5c293f['end']=_0x1f554d;}}return _0x5c293f;}function mt(_0x2726ae){return'comment'===er(_0x2726ae['name'])['group'];}class s extends _0x847970{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,b,y];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x29c812=this['editor'],_0x1cb721=_0x29c812['plugins']['get'](o),_0x4014ef=_0x29c812['plugins']['get'](r),_0x3d190b=_0x29c812['plugins']['get'](y),_0x5e364d=_0x29c812['plugins']['get'](b);_0x29c812['ui']['componentFactory']['add']('comment',()=>{const _0x1307c5=this['_createUIButton'](_0x1287d8);return _0x1307c5['tooltip']=!0x0,_0x1307c5;}),_0x29c812['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x3cebc9)),_0x5e364d['addSourceCollector'](()=>{const _0x475557=[];for(const [_0x1edd81,_0x31fe6b]of _0x1cb721['_threadToController']){const _0x5c0e87=_0x4014ef['getAllMarkersForId'](_0x1edd81['id']),_0x33a072=_0x5c0e87['map'](_0x5c3d94=>_0x5c3d94['getRange']());_0x5c0e87['length']>0x0&&_0x475557['push']([_0x31fe6b['view'],_0x33a072]);}return _0x475557;}),this['listenTo'](_0x3d190b,'change:activeAnnotations',(_0x24ec97,_0x4b5b7,_0x3236ac)=>{const _0x1c4d12=Array['from'](_0x3236ac)['map'](_0x59432c=>_0x59432c['innerView'])['find'](_0x451a7=>_0x1cb721['_viewToController']['has'](_0x451a7));if(!_0x1c4d12)return void(_0x4014ef['activeMarker']=null);const _0x559af0=_0x1cb721['_viewToController']['get'](_0x1c4d12)['model']['id'],_0x287484='comment:'+_0x559af0;_0x559af0&&_0x4014ef['hasMarkerForId'](_0x559af0)?_0x4014ef['activeMarker']=_0x287484:_0x4014ef['activeMarker']&&(_0x4014ef['activeMarker']=null);}),this['listenTo'](_0x1cb721,'removeCommentThread',(_0x1be6e7,{threadId:_0x1c0836,isFromAdapter:_0x1dc74c})=>{!_0x1dc74c&&_0x29c812['ui']['focusTracker']['isFocused']&&_0x4014ef['hasMarkerForId'](_0x1c0836)&&_0x29c812['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x1cb721,'addComment',(_0x57a0d7,{threadId:_0xf9aa76,isFromAdapter:_0x1230e0})=>{if(_0x1230e0||!_0x4014ef['hasMarkerForId'](_0xf9aa76)||!_0x1cb721['hasCommentThread'](_0xf9aa76))return;0x1===_0x1cb721['getCommentThread'](_0xf9aa76)['length']&&(_0x29c812['editing']['view']['focus'](),_0x57a0d7['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x321f4c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1e39e0;for(const _0x22b4dc in _0x321f4c){const _0x1984f0=_0x22b4dc,_0x43adf9=_0x321f4c[_0x1984f0];if('commentsLicenseKeyValid'==_0x43adf9||'commentsLicenseKeyInvalid'==_0x43adf9||'commentsLicenseKeyExpired'==_0x43adf9||'commentsLicenseKeyDomainLimit'==_0x43adf9||'commentsLicenseKeyNotAllowed'==_0x43adf9||'commentsLicenseKeyEvaluationLimit'==_0x43adf9||'commentsLicenseKeyTrialLimit'==_0x43adf9||'commentsLicenseKeyUsageLimit'==_0x43adf9){delete _0x321f4c[_0x1984f0],_0x1e39e0=_0x43adf9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x1e39e0&&_0x321f4c['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x1e39e0&&_0x321f4c['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x1e39e0&&_0x321f4c['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x1e39e0&&_0x321f4c['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x1e39e0&&_0x321f4c['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x1e39e0&&_0x321f4c['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x1e39e0&&_0x321f4c['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x197ade){const _0x346a63=this['editor'],_0x16db8f=new _0x197ade(_0x346a63['locale']),_0x643221=_0x346a63['commands']['get']('addCommentThread');return _0x16db8f['set']({'label':N(_0x346a63['locale'],'Comment'),'icon':_0x31f37f}),_0x16db8f['bind']('isEnabled')['to'](_0x643221,'hasContent'),this['listenTo'](_0x16db8f,'execute',()=>{_0x643221['execute']();}),_0x16db8f;}}class i extends _0x847970{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x314e6a){super(_0x314e6a),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0xd533f0,_0x3283d5,_0x4fc602)=>{_0x4fc602?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x14bb71,_0x2496bb]of this['editor']['commands'])_0x2496bb['affectsData']&&'addCommentThread'!==_0x14bb71&&_0x2496bb['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing'))&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x10af4d=this['editor']['editing']['view']['document'];this['listenTo'](_0x10af4d,'cut',_0x2a2b26=>_0x2a2b26['stop'](),{'priority':'highest'}),this['listenTo'](_0x10af4d,'clipboardInput',_0x4d85fe=>_0x4d85fe['stop'](),{'priority':'highest'}),this['listenTo'](_0x10af4d,'delete',_0x25df3a=>_0x25df3a['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x9a16b4,_0x1b85bc]of this['editor']['commands'])_0x1b85bc['affectsData']&&'addCommentThread'!==_0x9a16b4&&_0x1b85bc['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class j extends _0x5d570f{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a95ca){super(_0x4a95ca),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x258744=this['context']['plugins']['get'](y);this['listenTo'](_0x258744,'_activateAnnotation',(_0xd48962,_0x44686f)=>{for(const _0x28f800 of this['activeUIs']){const _0x551631=this['_uis']['get'](_0x28f800);(0x0,this['uisData']['get'](_0x28f800)['filter'])(_0x44686f)&&_0x551631['setActiveAnnotation'](_0x44686f);}}),this['listenTo'](_0x258744,'_deactivateAllAnnotations',()=>{for(const _0x51d5bb of this['activeUIs']){this['_uis']['get'](_0x51d5bb)['setActiveAnnotation'](null);}}),this['listenTo'](_0x258744['_visibleAnnotations'],'add',(_0x1d5b4c,_0x29ce01)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x29ce01);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x3e6368){return this['activeUIs']['has'](_0x3e6368);}['activate'](_0x5ce050,_0x41fa11=this['defaultFilter']){const _0x87cf97=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x5ce050))throw new _0xcbec56('annotationsuis-missing-ui',this,{'uiName':_0x5ce050});this['isActive'](_0x5ce050)&&this['deactivate'](_0x5ce050),this['activeUIs']['add'](_0x5ce050);const _0x491833=new S();v({'source':_0x87cf97['_visibleAnnotations'],'target':_0x491833,'filter':_0x41fa11}),this['uisData']['set'](_0x5ce050,{'collection':_0x491833,'filter':_0x41fa11});const _0x2b63b6=this['_uis']['get'](_0x5ce050);_0x2b63b6['attach'](_0x491833),this['listenTo'](_0x2b63b6,'change:activeAnnotation',(_0x5bbdb2,_0x50306f,_0x162113,_0x55acd8)=>{_0x55acd8&&_0x87cf97['_removeActiveAnnotation'](_0x55acd8),_0x162113&&_0x87cf97['_addActiveAnnotation'](_0x162113);});}['deactivate'](_0x4ad2c5){if(this['activeUIs']['delete'](_0x4ad2c5),!this['_uis']['has'](_0x4ad2c5))throw new _0xcbec56('annotationsuis-missing-ui',this,{'uiName':_0x4ad2c5});const _0x792b1e=this['_uis']['get'](_0x4ad2c5);_0x792b1e['detach'](),this['stopListening'](_0x792b1e),this['uisData']['get'](_0x4ad2c5)['collection']['destroy'](),this['uisData']['delete'](_0x4ad2c5);}['switchTo'](_0x13349f){if(!this['_uis']['has'](_0x13349f))throw new _0xcbec56('annotationsuis-missing-ui',this,{'uiName':_0x13349f});const _0x14ba9b=this['context']['plugins']['get'](y),_0x37a74b=Array['from'](_0x14ba9b['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x13349f);const _0x53a93b=this['_uis']['get'](_0x13349f);_0x53a93b['setActiveAnnotation'](_0x37a74b),_0x53a93b['_setSelectedAnnotations']&&_0x37a74b&&_0x53a93b['_setSelectedAnnotations']([_0x37a74b]);}['deactivateAll'](){for(const _0x26ae04 of this['activeUIs'])this['deactivate'](_0x26ae04);}['register'](_0x4375eb,_0x3f171a){if(this['_uis']['has'](_0x4375eb))throw new _0xcbec56('annotationsuis-register-already-registered');if('function'!=typeof _0x3f171a['attach']||'function'!=typeof _0x3f171a['detach']||'function'!=typeof _0x3f171a['setActiveAnnotation'])throw new _0xcbec56('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x4375eb,_0x3f171a);}['refilterAnnotations'](){const _0x2b62e5=this['context']['plugins']['get'](y)['collection'],_0x26ae8a=new Map(),_0x177cba=Array['from'](this['activeUIs']);for(const _0x458283 of this['activeUIs']){const _0x35a40e=this['uisData']['get'](_0x458283)['collection'];for(const _0x279154 of _0x35a40e)_0x26ae8a['set'](_0x279154,_0x458283);}for(const _0x500443 of _0x2b62e5){const _0x3de18c=_0x26ae8a['get'](_0x500443);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x500443);const _0x5913b6=_0x177cba['find'](_0x3d0f02=>this['uisData']['get'](_0x3d0f02)['filter'](_0x500443));_0x3de18c!==_0x5913b6&&(_0x3de18c&&this['uisData']['get'](_0x3de18c)['collection']['remove'](_0x500443),_0x5913b6&&this['uisData']['get'](_0x5913b6)['collection']['add'](_0x500443));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x26b996){const _0x3ee935=[];for(const _0x5e507d of this['activeUIs']){(0x0,this['uisData']['get'](_0x5e507d)['filter'])(_0x26b996)&&_0x3ee935['push'](_0x5e507d);}if(_0x3ee935['length']>0x1)throw new _0xcbec56('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x3ee935,'annotationType':_0x26b996['type']});}}const _i=/* #__PURE__ -- @preserve */
32
- Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x28dbed){super(_0x28dbed);const _0xb3dbc8=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 _0xd0afa6(),this['focusCycler']=new _0x5aa072({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0xb3dbc8['to']('class')],'style':{'minHeight':_0xb3dbc8['to']('minHeight',_0x50defd=>'number'==typeof _0x50defd?_i(_0x50defd+0xa):null)},'dir':_0x28dbed['uiLanguageDirection'],'role':'application','aria-label':N(_0x28dbed,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x28dbed,'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',_0x23988b=>{this['_updateItemPositionInFocusables'](_0x23988b['source']);}),this['list']['forEach'](_0x5b4a1d=>{this['focusTracker']['add'](_0x5b4a1d['element']),this['_updateItemPositionInFocusables'](_0x5b4a1d);}),this['list']['on']('change',(_0x1c2265,_0x123cd1)=>{for(const _0x3ce9c1 of _0x123cd1['removed'])this['focusTracker']['remove'](_0x3ce9c1['element']),this['focusables']['remove'](_0x3ce9c1);for(const _0x111e1c of _0x123cd1['added'])this['focusTracker']['add'](_0x111e1c['element']),this['_updateItemPositionInFocusables'](_0x111e1c);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x263b73){const _0x5b237c=this['focusables']['getIndex'](_0x263b73);let _0x503343,_0x5bc956;for(const _0x58726b of this['focusables'])if(_0x263b73['top']<_0x58726b['top']){_0x503343=_0x58726b;break;}if(_0x5bc956=_0x503343?this['focusables']['getIndex'](_0x503343):this['focusables']['length'],-0x1!==_0x5b237c){if(_0x5b237c===_0x5bc956-0x1)return;this['focusables']['remove'](_0x263b73),_0x5bc956=_0x503343?this['focusables']['getIndex'](_0x503343):this['focusables']['length'];}this['focusables']['add'](_0x263b73,_0x5bc956);}}const Ot=/* #__PURE__ -- @preserve */
33
- Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x43c26e){super(_0x43c26e),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x5b5be9,_0x5ef3a6)=>_0x5b5be9+_0x5ef3a6),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x1e4189=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x1e4189['to']('isAnimationDisabled',_0xaecd25=>_0xaecd25?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x1e4189['to']('top',_0x54704e=>Ot(_0x54704e))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x1969e8=this['element']['clientHeight'];_0x1969e8&&(this['height']=_0x1969e8);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x5d570f{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x15eafa){super(_0x15eafa),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 _0x5b6b88=this['context']['config']['get']('sidebar.container');_0x5b6b88&&this['setContainer'](_0x5b6b88);}['setContainer'](_0x5415b2){if(!g(_0x5415b2))throw new _0xcbec56('sidebar-setcontainer-invalid-element');this['container']=_0x5415b2;}['_attachToContainer']({viewClass:_0x513e2e='',spaceBetweenItems:_0x588847=0x19}={}){if(!g(this['container']))throw new _0xcbec56('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x513e2e,this['_spaceBetweenItems']=_0x588847;}['rearrange']({removedAnnotation:_0x8c3e03,previousAnnotation:_0x2ca895,nextAnnotation:_0x54e6ce}){const _0x19a80d=this['getSidebarItemView'](_0x8c3e03);this['view']['list']['remove'](_0x19a80d),this['_destroySidebarItemView'](_0x8c3e03),_0x2ca895&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x2ca895)),_0x54e6ce&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x54e6ce)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0xf3236a,activatedAnnotation:_0x264629,disableAnimationOnActivatedAnnotation:_0x4b89c8}){if(this['_activeAnnotation']=_0x264629,_0xf3236a){_0xf3236a['isActive']=!0x1;const _0x24812f=this['getSidebarItemView'](_0xf3236a);_0x24812f&&_0x4b89c8&&(_0x24812f['isAnimationDisabled']=!0x1);}if(_0x264629){const _0x3b3789=this['getSidebarItemView'](_0x264629);_0x3b3789&&(_0x264629['isActive']=!0x0,_0x4b89c8&&(_0x3b3789['isAnimationDisabled']=!0x0,_0x3b3789['top']+=0x1),this['_alignToTargetRect'](_0x3b3789));}}['_detachFromContainer'](_0x513a04){if(this['view']['element']['remove'](),_0x513a04){for(const _0x3bd1b1 of _0x513a04)this['_destroySidebarItemView'](_0x3bd1b1);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x2c3f55,_0x2bf1a3){_0x2bf1a3||(_0x2bf1a3=_0x2c3f55['view']);const _0x4aad50=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x4aad50,_0x2c3f55),this['_annotationToSidebarItemView']['set'](_0x2c3f55,_0x4aad50),_0x4aad50['content']['add'](_0x2bf1a3),this['listenTo'](_0x2c3f55['view'],'change:targetRect',(_0x2028c8,_0x1167af,_0x3690d8)=>{const _0x249507=this['_getTargetTop'](_0x2c3f55,_0x3690d8);_0x4aad50['_targetTop']!=_0x249507&&(_0x4aad50['_targetTop']=_0x249507,this['_setItemTop'](_0x4aad50,_0x249507));}),this['listenTo'](_0x4aad50,'change:top',()=>{this['_recalculate'](_0x4aad50,'top');}),this['listenTo'](_0x4aad50,'change:bottom',()=>{this['_recalculate'](_0x4aad50,'bottom');}),this['_alignToTargetRect'](_0x4aad50);const _0x3ae8ef=this['_getItemBefore'](_0x4aad50);if(_0x3ae8ef)this['_alignAfterItem'](_0x3ae8ef,_0x4aad50)||this['_alignToTargetRect'](_0x4aad50);else this['_alignToTargetRect'](_0x4aad50);return this['_updateLastItem'](),this['view']['list']['add'](_0x4aad50),_0x4aad50;}['_alignForTopChange'](_0x47715c){if(!_0x47715c['content']['length'])return;const _0x58c202=this['_getItemBefore'](_0x47715c);if(!_0x58c202)return;const _0x1b117e=this['_sidebarItemViewToAnnotation']['get'](_0x58c202),_0x2bb3f9=this['_activeAnnotation'];_0x2bb3f9&&_0x2bb3f9===_0x1b117e?this['_alignAfterItem'](_0x58c202,_0x47715c):this['_alignBeforeItem'](_0x47715c,_0x58c202);}['_alignForBottomChange'](_0x2c526c){if(!_0x2c526c['content']['length'])return;const _0x2ed1b8=this['_getItemAfter'](_0x2c526c);if(!_0x2ed1b8)return;const _0x290072=this['_sidebarItemViewToAnnotation']['get'](_0x2ed1b8),_0x317f2e=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x165fbd=this['_activeAnnotation'];_0x165fbd&&_0x165fbd===_0x290072&&_0x317f2e?(this['_alignBeforeItem'](_0x2ed1b8,_0x2c526c),this['_alignAfterItem'](_0x2c526c,_0x2ed1b8)):_0x165fbd&&_0x165fbd===_0x290072?this['_alignBeforeItem'](_0x2ed1b8,_0x2c526c):this['_alignAfterItem'](_0x2c526c,_0x2ed1b8);}['_recalculate'](_0x394c0e,_0x2f6e3e){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x5402a3,changedProp:_0x5c9952}of this['_recalculateBuffer'])'top'===_0x5c9952?this['_alignForTopChange'](_0x5402a3):this['_alignForBottomChange'](_0x5402a3);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x394c0e,'changedProp':_0x2f6e3e});}['getSidebarItemView'](_0x2b00cb){return this['_annotationToSidebarItemView']['get'](_0x2b00cb);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x272289){const _0x155f20=this['getSidebarItemView'](_0x272289);this['stopListening'](_0x155f20),this['stopListening'](_0x272289['view']),_0x155f20['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x272289),this['_sidebarItemViewToAnnotation']['delete'](_0x155f20);}['_createSidebarView'](){const _0x479035=new H(this['context']['locale']);return _0x479035['render'](),this['on']('change:_lastItem',(_0x159da8,_0x101518,_0x319b49,_0x1d8407)=>{_0x1d8407&&_0x479035['unbind']('minHeight'),_0x319b49?_0x479035['bind']('minHeight')['to'](_0x319b49,'bottom'):_0x479035['minHeight']=null;}),_0x479035;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x585b8b){const _0x34fb9e=this['_sidebarItemViewToAnnotation']['get'](_0x585b8b),_0xc866a7=_0x34fb9e&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x34fb9e)-0x1);return _0xc866a7&&this['getSidebarItemView'](_0xc866a7)||null;}['_getItemAfter'](_0x3aa246){const _0x1c1b20=this['_sidebarItemViewToAnnotation']['get'](_0x3aa246),_0x9a2e5c=_0x1c1b20&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x1c1b20)+0x1);return _0x9a2e5c&&this['getSidebarItemView'](_0x9a2e5c)||null;}['_alignBeforeItem'](_0x3b08b4,_0x1b302f){_0x3b08b4['updateHeight']();const _0xf5069e=G(_0x1b302f['bottom']+this['_spaceBetweenItems'],_0x3b08b4['top']);return!!_0xf5069e&&(this['_setItemTop'](_0x1b302f,_0x1b302f['top']-_0xf5069e),!0x0);}['_alignAfterItem'](_0x151bf9,_0x43e529){_0x151bf9['updateHeight']();const _0x43bc4f=G(_0x151bf9['bottom']+this['_spaceBetweenItems'],_0x43e529['top']);return!!_0x43bc4f&&(this['_setItemTop'](_0x43e529,_0x43e529['top']+_0x43bc4f,!0x1),!0x0);}['_alignToTargetRect'](_0x436fc8){const _0x213db3=this['_sidebarItemViewToAnnotation']['get'](_0x436fc8);if(!_0x213db3||!_0x213db3['target']||!_0x213db3['targetRect'])return;const _0x2b84c2=this['_getTargetTop'](_0x213db3,_0x213db3['targetRect']);this['_setItemTop'](_0x436fc8,_0x2b84c2);}['_getTargetTop'](_0x5b4e08,_0x412729){if(null===_0x412729)return 0x0;if(_0x5b4e08['target']instanceof _0x206900)return _0x412729['top'];{const _0x1d4ae3=new _0x206900(this['view']['element'])['top'];return _0x412729['top']-_0x1d4ae3;}}['_setItemTop'](_0x166513,_0x42e551,_0x385d6c=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x385d6c&&(_0x42e551=Math['max'](_0x42e551,this['_getMaxAvailableTop'](_0x166513))),_0x166513['top']=_0x42e551;}['_getMaxAvailableTop'](_0x27a5c3){let _0x23b273=this['_getItemBefore'](_0x27a5c3),_0x14ce1c=0x0;for(;_0x23b273;)_0x23b273['updateHeight'](),_0x14ce1c+=this['_spaceBetweenItems']+_0x23b273['height'],_0x23b273=this['_getItemBefore'](_0x23b273);return _0x14ce1c;}}function G(_0x18f1d6,_0x4d1712){return Math['max'](_0x18f1d6-_0x4d1712,0x0);}function g(_0x34ebdf){return null!==_0x34ebdf&&'object'==typeof _0x34ebdf&&0x1===_0x34ebdf['nodeType'];}class e extends _0x5d570f{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x15e328){super(_0x15e328),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x52f624(),this['_refreshPositioningDebounced']=_0x80a969(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x55a14e=this['context']['plugins']['get'](j),_0x82234d=this['context']['plugins']['get'](z);_0x55a14e['register']('wideSidebar',this),_0x82234d['container']&&_0x55a14e['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x3a45fd){if(_0x3a45fd===this['activeAnnotation'])return;const _0xb8ce07=this['context']['plugins']['get'](z);_0xb8ce07['_activeAnnotation']=_0x3a45fd;const _0x269c2b=this['activeAnnotation'];_0xb8ce07['refresh']({'blurredAnnotation':_0x269c2b,'activatedAnnotation':_0x3a45fd}),this['activeAnnotation']=_0x3a45fd;}['attach'](_0x4b52a4){this['annotations']=_0x4b52a4;const _0x581c64=this['context']['plugins']['get'](z);if(_0x581c64['_annotations']=_0x4b52a4,this['isAttached'])throw new _0xcbec56('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x581c64,'set:container',()=>{this['detach'](),this['listenTo'](_0x581c64,'change:container',_0x4af4c9=>{_0x4af4c9['off'](),this['attach'](_0x4b52a4);});}),_0x581c64['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x3d0695=_0x266b76=>{_0x266b76['updateTargetRect'](),_0x581c64['addAnnotation'](_0x266b76);};for(const _0x5bb863 of _0x4b52a4)_0x3d0695(_0x5bb863);this['listenTo'](_0x4b52a4,'add',(_0x3afd94,_0x90a858)=>{_0x3d0695(_0x90a858);}),this['listenTo'](_0x4b52a4,'remove',(_0x52a61f,_0xcf24a8,_0x32ea79)=>{_0x581c64['rearrange']({'removedAnnotation':_0xcf24a8,'previousAnnotation':_0x4b52a4['get'](_0x32ea79-0x1),'nextAnnotation':_0x4b52a4['get'](_0x32ea79+0x1)}),_0xcf24a8===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x4b52a4,'focus',(_0x5206be,_0x59b872)=>{this['setActiveAnnotation'](_0x59b872);}),this['listenTo'](_0x4b52a4,'blur',()=>{this['setActiveAnnotation'](null);});const _0x12d001=this['context']instanceof _0x3422b6?this['context']['editors']:new _0x52f624([this['context']]);for(const _0x39318c of _0x12d001)this['_integrateWithEditorAnnotations'](_0x39318c);this['listenTo'](_0x12d001,'add',(_0x2d6abd,_0x4de852)=>{this['listenTo'](_0x4de852,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x4de852);});}),this['listenTo'](_0x12d001,'remove',(_0x48a85c,_0x1bbbfe)=>{_0x1bbbfe['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x1bbbfe['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0xcbec56('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x1c7891=this['context']['plugins']['get'](z);_0x1c7891['_detachFromContainer'](this['annotations']),this['stopListening'](_0x1c7891),this['stopListening'](this['annotations']),this['context']instanceof _0x3422b6&&this['stopListening'](this['context']['editors']);for(const _0x2ad189 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x2ad189);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x2e1476){if(!_0x2e1476['plugins']['has']('EditorAnnotations'))return;const _0xcb9584=_0x2e1476['plugins']['get']('EditorAnnotations'),_0x745a09=()=>{const _0x3e4d84=_0xcb9584['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x3e4d84[0x0]||null);};this['listenTo'](_0xcb9584,'refresh',_0x745a09),this['listenTo'](_0xcb9584,'blur',(_0x425314,{isAnnotationTracked:_0x4fb1b8})=>{this['activeAnnotation']&&_0x4fb1b8(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0xcb9584,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x102969=>{_0xcb9584['hasDomSelection']()&&(_0x745a09(),_0x102969['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0xcb9584);}['_destroyEditorAnnotationsIntegration'](_0x2d7584){this['stopListening'](_0x2d7584),this['_editorAnnotations']['remove'](_0x2d7584);}}class C extends _0x1287d8{['counterView'];constructor(_0x22979c){super(_0x22979c);const _0x1c0309=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x2351ca,_0x49a593)=>_0x2351ca?'...':_0x49a593['toString']()),this['set']('annotationType',''),this['icon']=_0x31f37f,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x1c0309['to']('annotationType',_0x377c99=>'ck-annotation-counter__badge--'+_0x377c99),_0x1c0309['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x1c0309['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x5d570f{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b18a8){super(_0x4b18a8),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x3f2fdf())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x52f624(),this['_refreshPositioningDebounced']=_0x80a969(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x2a9849(this['context']['locale']),this['balloonPanelView']=new _0x4a0fdd(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x14efa2){this['annotations']=_0x14efa2;const _0x5efb97=this['context']['plugins']['get'](z),_0x19aca3=this['balloonPanelView'];if(_0x5efb97['_annotations']=_0x14efa2,this['isAttached'])throw new _0xcbec56('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x5efb97,'set:container',()=>{this['detach'](),this['listenTo'](_0x5efb97,'change:container',_0x39d1d7=>{_0x39d1d7['off'](),this['attach'](_0x14efa2);});}),_0x5efb97['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x84bc8d=_0x56bc07=>{const _0xc56b84=new C(this['context']['locale']);_0x5efb97['addAnnotation'](_0x56bc07,_0xc56b84),this['_annotationToNarrowView']['set'](_0x56bc07,_0xc56b84),_0xc56b84['bind']('isDirty','annotationType','number')['to'](_0x56bc07['view'],'isDirty','type','length'),_0xc56b84['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x19aca3['content']['first']!==_0x56bc07['view']?(this['_showBalloon'](_0x56bc07),_0x56bc07['view']['element']['focus'](),this['setActiveAnnotation'](_0x56bc07)):this['setActiveAnnotation'](null);});};for(const _0xb5eabb of _0x14efa2)_0x84bc8d(_0xb5eabb);this['listenTo'](_0x14efa2,'add',(_0x49b5a2,_0x18715c)=>{_0x84bc8d(_0x18715c);}),this['listenTo'](_0x14efa2,'remove',(_0x59452b,_0x13c252,_0x2aea66)=>{this['_annotationToNarrowView']['get'](_0x13c252)['destroy'](),this['_annotationToNarrowView']['delete'](_0x13c252),_0x5efb97['rearrange']({'removedAnnotation':_0x13c252,'previousAnnotation':_0x14efa2['get'](_0x2aea66-0x1),'nextAnnotation':_0x14efa2['get'](_0x2aea66+0x1)}),_0x13c252===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x14efa2,'focus',(_0x404732,_0x2f43d0)=>{this['setActiveAnnotation'](_0x2f43d0);}),this['listenTo'](_0x14efa2,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x567634,_0x25e520)=>{_0x25e520['keyCode']===_0x7ba570['esc']&&_0x19aca3['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x19aca3['content']['first']),this['_hideBalloon'](),_0x25e520['stopPropagation'](),_0x25e520['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x115092,_0x1c5464)=>{const _0x484a67=_0x1c5464['target'];_0x19aca3['isVisible']&&_0x19aca3['element']['contains'](_0x484a67)||_0x5efb97['view']['element']['contains'](_0x484a67)||_0x115092['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x5717e6=>_0x5717e6['contains'](_0x484a67))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0xa77d2c=this['context']instanceof _0x3422b6?this['context']['editors']:new _0x52f624([this['context']]);for(const _0x22536c of _0xa77d2c)this['_integrateWithEditorAnnotations'](_0x22536c);this['listenTo'](_0xa77d2c,'add',(_0x50aad0,_0x93b1a1)=>{this['listenTo'](_0x93b1a1,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x93b1a1);});}),this['listenTo'](_0xa77d2c,'remove',(_0x34a865,_0x182238)=>{_0x182238['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x182238['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0xa95432){if(_0xa95432===this['activeAnnotation'])return;const _0x448e9a=this['context']['plugins']['get'](z);if(_0x448e9a['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0xa95432,'disableAnimationOnActivatedAnnotation':!0x0}),_0xa95432)_0x448e9a['getSidebarItemView'](_0xa95432)?this['_showBalloon'](_0xa95432):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0xa95432;}['detach'](){if(!this['isAttached'])throw new _0xcbec56('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x3360d3=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0xbaa66b=>_0xbaa66b['destroy']()),this['_annotationToNarrowView']['clear'](),_0x3360d3['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x3422b6&&this['stopListening'](this['context']['editors']);for(const _0x5ce63a of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x5ce63a);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'](_0xdd4754){if(!_0xdd4754['plugins']['has']('EditorAnnotations'))return;const _0x4f925e=_0xdd4754['plugins']['get']('EditorAnnotations'),_0xee129=this['context']['plugins']['get'](z),_0x381a25=this['annotations'],_0x13ce5a=this['balloonPanelView'],_0x56b0ba=()=>{const _0xb906f2=_0x4f925e['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0xb906f2),this['setActiveAnnotation'](_0xb906f2[0x0]||null);};this['listenTo'](_0x4f925e,'refresh',_0x56b0ba),this['listenTo'](_0x4f925e,'blur',(_0x11a107,{isAnnotationTracked:_0x298033})=>{this['activeAnnotation']&&_0x298033(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x4f925e,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x381a25,'blur',_0x1802c3=>{_0x4f925e['hasDomSelection']()&&_0x1802c3['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x249af5,_0xf32017)=>{const _0x3a493e=_0xf32017['target'];_0x13ce5a['isVisible']&&_0x13ce5a['element']['contains'](_0x3a493e)||_0xee129['view']['element']['contains'](_0x3a493e)||this['activeAnnotation']&&_0x4f925e['hasDomSelection']()&&(_0x56b0ba(),_0x249af5['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x4f925e);}['_destroyEditorAnnotationsIntegration'](_0x21d09c){_0x21d09c&&(this['stopListening'](_0x21d09c),this['_editorAnnotations']['remove'](_0x21d09c));}['_setSelectedAnnotations'](_0x39ede9){for(const _0x22b7b8 of this['_selectedAnnotations'])_0x39ede9['includes'](_0x22b7b8)||this['_manuallyClosedAnnotationViews']['delete'](_0x22b7b8['view']);this['_selectedAnnotations']=_0x39ede9;}['_refreshPositioning'](){const _0x57e18e=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x57e18e['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x4c69d0){if(this['_manuallyClosedAnnotationViews']['has'](_0x4c69d0['view']))return;const _0x218358=this['balloonPanelView']['content']['first'];_0x218358!==_0x4c69d0['view']?(_0x218358&&this['_detachListeners'](_0x218358),this['_attachListeners'](_0x4c69d0['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x4c69d0['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0xd9d745=this['balloonPanelView']['content']['first'],_0x3309d4=_0xd9d745&&this['annotations']['getByView'](_0xd9d745);if(!_0x3309d4||!this['_annotationToNarrowView']['has'](_0x3309d4))return;const _0x5c3f50=this['_annotationToNarrowView']['get'](_0x3309d4)['element'],_0x4ef6b1=(function(){const _0xefb656=_0x4a0fdd['defaultPositions'];return[_0xefb656['southArrowNorthEast'],_0xefb656['northArrowSouthEast'],_0xefb656['southArrowNorth'],_0xefb656['northArrowSouth'],_0xefb656['southArrowNorthWest'],_0xefb656['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x5c3f50,'positions':_0x4ef6b1});}['_hideBalloon'](){const _0x5118a1=this['balloonPanelView'],_0x46972f=_0x5118a1['content']['first'];_0x46972f&&(this['_detachListeners'](_0x46972f),_0x5118a1['unpin'](),_0x5118a1['content']['clear']());}['_attachListeners'](_0x4b1a19){this['listenTo'](_0x4b1a19,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x4b1a19,'Esc',(_0x302bf5,_0x8faf7b)=>{this['_manuallyClosedAnnotationViews']['add'](_0x4b1a19),this['_hideBalloon'](),_0x8faf7b();});}['_detachListeners'](_0x4d35e4){this['stopListening'](_0x4d35e4);}}class c extends _0x847970{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[b,_0x1c6b4d,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x21fca3){super(_0x21fca3),_0x21fca3['editing']['view']['addObserver'](_0x28fbef),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x21fca3['plugins']['get'](_0x1c6b4d),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x4ce7c8=this['editor']['plugins']['get'](j);_0x4ce7c8['context']===this['editor']&&(_0x4ce7c8['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x29e515,_0x32a98c)=>{const _0x2aacbd=this['_balloon'];if(this['isAttached']&&_0x2aacbd['visibleView']){const _0x5aa7e8=this['annotations']['getByView'](_0x2aacbd['visibleView']);_0x5aa7e8&&this['_closeAnnotation'](_0x5aa7e8),_0x32a98c();}}));}['afterInit'](){const _0x4abc2d=this['editor']['plugins']['get'](j);_0x4abc2d['context']===this['editor']&&(_0x4abc2d['hasActive']()||_0x4abc2d['switchTo']('inline'));}['setActiveAnnotation'](_0x5c1e70){_0x5c1e70!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x5c1e70&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x5c1e70)&&this['_addAnnotationToBalloon'](_0x5c1e70,!0x0),_0x5c1e70['isActive']=!0x0),_0x5c1e70||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x5c1e70);}['attach'](_0x5a61a0){this['annotations']=_0x5a61a0;const _0x52ed73=this['editor']['plugins']['get'](j),_0x5f5884=this['_balloon'];if(this['isAttached'])throw new _0xcbec56('inlineannotations-attach-already-attached',this);if(_0x52ed73['context']!==this['editor'])throw new _0xcbec56('inlineannotations-not-allowed-with-context',this);const _0x11e732=this['editor']['plugins']['get'](b);this['listenTo'](_0x11e732,'refresh',()=>{const _0xb60455=_0x11e732['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x108de8,_0x3e368a;!this['_forceRefresh']&&(_0x108de8=_0xb60455,_0x3e368a=this['_selectedAnnotations'],_0x108de8['length']===_0x3e368a['length']&&_0x108de8['every'](_0x48e34a=>_0x3e368a['includes'](_0x48e34a)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0xb60455),this['setActiveAnnotation'](_0xb60455[0x0]||null));}),this['listenTo'](_0x11e732,'blur',(_0x3c9c07,{isAnnotationTracked:_0x5df021})=>{this['activeAnnotation']&&_0x5df021(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x15553a,_0x18865f,_0x363b31)=>{_0x363b31||this['setActiveAnnotation'](null);}),this['listenTo'](_0x5a61a0,'remove',(_0x2a6a2d,_0x4af328)=>{this['_removeAnnotationFromBalloon'](_0x4af328),_0x4af328===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x5f5884,'change:visibleView',(_0x3f2777,_0x240144,_0x37624b,_0xd74190)=>{_0xd74190&&this['stopListening'](_0xd74190);const _0x2ceb78=_0x5a61a0['getByView'](_0x37624b);_0x37624b&&_0x2ceb78&&(this['listenTo'](_0x37624b,'change:height',()=>{_0x5f5884['updatePosition']();}),this['listenTo'](_0x37624b,'Esc',()=>{this['_closeAnnotation'](_0x2ceb78),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x2ceb78&&this['setActiveAnnotation'](_0x2ceb78));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x5f5884['visibleView']&&(_0x5a61a0['getByView'](_0x5f5884['visibleView'])&&_0x5f5884['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 _0xcbec56('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x5e4692 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x5e4692);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x48dd17){for(const _0x5ea7ea of this['_selectedAnnotations'])_0x48dd17['includes'](_0x5ea7ea)||this['_manuallyClosed']['delete'](_0x5ea7ea);for(const _0x2b04bb of this['annotations'])_0x48dd17['includes'](_0x2b04bb)||this['_removeAnnotationFromBalloon'](_0x2b04bb);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x4f69ab of _0x48dd17)this['_addAnnotationToBalloon'](_0x4f69ab);}this['_selectedAnnotations']=_0x48dd17;}['_addAnnotationToBalloon'](_0x45d94d,_0x2fc350=!0x1){this['_manuallyClosed']['has'](_0x45d94d)||(this['_addedAnnotations']['has'](_0x45d94d)||this['_balloon']['hasView'](_0x45d94d['view'])||(this['_addedAnnotations']['add'](_0x45d94d),this['_balloon']['add']({'stackId':_0x45d94d['view']['id'],'view':_0x45d94d['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x45d94d)}})),_0x2fc350&&this['_balloon']['showStack'](_0x45d94d['view']['id']));}['_getBalloonTargetForAnnotation'](_0x33c4cf){const _0x348109=_0x33c4cf['target'],_0x3a3c0=this['editor']['editing']['view'],_0x289960=_0x3a3c0['document']['selection']['getFirstRange'](),_0x4b78ef=_0x3a3c0['domConverter']['viewRangeToDom'](_0x289960);if(_0x4b78ef['collapse'](!0x0),_0x348109){if(_0x348109 instanceof _0x206900)return _0x348109;let _0x32a8ad=[];for(const _0x1a8f39 of _0x348109)_0x32a8ad['push'](...F(_0x1a8f39['getClientRects']()));_0x32a8ad=function(_0x565aef){const _0x4294a2=[];let _0x54f4f3=_0x565aef[0x0];for(let _0x48407b=0x1;_0x48407b<_0x565aef['length'];_0x48407b++)P(_0x54f4f3,_0x565aef[_0x48407b])?_0x54f4f3['width']+=_0x565aef[_0x48407b]['width']:(_0x4294a2['push'](_0x54f4f3),_0x54f4f3=_0x565aef[_0x48407b]);return _0x4294a2['push'](_0x54f4f3),_0x4294a2;}(_0x32a8ad);const _0x3663df=_0x4b78ef['getBoundingClientRect']();return _0x32a8ad['find'](_0xeb7a11=>_0xeb7a11['top']<=_0x3663df['top']&&_0xeb7a11['bottom']>=_0x3663df['bottom']&&_0xeb7a11['left']<=_0x3663df['left']&&_0xeb7a11['right']>=_0x3663df['right'])||_0x32a8ad[0x0];}return _0x33c4cf['targetRect']||_0x4b78ef;}['_removeAnnotationFromBalloon'](_0x368f8f){this['_addedAnnotations']['has'](_0x368f8f)&&this['_balloon']['hasView'](_0x368f8f['view'])&&(this['_addedAnnotations']['delete'](_0x368f8f),this['_balloon']['remove'](_0x368f8f['view']));}['_closeAnnotation'](_0xc67037){this['_manuallyClosed']['add'](_0xc67037),this['_removeAnnotationFromBalloon'](_0xc67037);}}function F(_0xd7197a){return Array['from'](_0xd7197a)['map'](DOMRect['fromRect']);}function P(_0x50827a,_0x58a05d){return _0x50827a['top']===_0x58a05d['top']&&_0x50827a['bottom']===_0x58a05d['bottom']&&_0x50827a['right']===_0x58a05d['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x6594a2,_0x24cccc){super(_0x6594a2),this['set']('isEmpty',!_0x24cccc['length']),this['focusTracker']=new _0xd0afa6(),this['_annotationViews']=_0x24cccc,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x5aa072({'focusables':_0x24cccc,'focusTracker':this['focusTracker']}),this['listenTo'](_0x24cccc,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x24cccc,'remove',(_0x17b29d,_0x28c2ff)=>{_0x28c2ff['isActive']&&this['focus'](),_0x24cccc['length']||(this['isEmpty']=!0x0);});const _0x240325=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x6594a2,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x24cccc},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x240325['if']('isEmpty','ck-hidden',_0x305b2a=>!_0x305b2a)]},'children':[{'text':N(_0x6594a2,'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 _0x1a8fe0 of this['_annotationViews'])this['focusTracker']['add'](_0x1a8fe0['element']);this['_annotationViews']['on']('change',(_0x30899f,{added:_0x57387d,removed:_0x493c1c})=>{for(const _0x2883f7 of _0x57387d)this['focusTracker']['add'](_0x2883f7['element']);for(const _0x1b86e0 of _0x493c1c)this['focusTracker']['remove'](_0x1b86e0['element']);});}}class p extends _0x5d570f{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x3aee9b){super(_0x3aee9b),this['archivedThreads']=new _0x52f624();}['init'](){const _0x3a23b9=this['context'],_0x4d99ef=_0x3a23b9['plugins']['get'](o),_0x6f670f=_0x3a23b9['plugins']['get'](y);this['listenTo'](_0x4d99ef,'addCommentThread',(_0x42d382,{threadId:_0x112b10})=>{const _0x415827=_0x4d99ef['getCommentThread'](_0x112b10);_0x415827['archivedAt']&&this['archivedThreads']['add'](_0x415827,this['_calculatePosition'](_0x415827['archivedAt'])),this['listenTo'](_0x415827,'change:archivedAt',(_0x2ac574,_0x5d892c,_0x514588)=>{_0x514588?this['archivedThreads']['has'](_0x415827)||this['archivedThreads']['add'](_0x415827,this['_calculatePosition'](_0x415827['archivedAt'])):this['archivedThreads']['has'](_0x415827)&&this['archivedThreads']['remove'](_0x415827);});}),this['listenTo'](_0x4d99ef,'removeCommentThread',(_0x4d493f,{threadId:_0x742bc3})=>{const _0x195a6b=_0x4d99ef['getCommentThread'](_0x742bc3);this['stopListening'](_0x195a6b),this['archivedThreads']['has'](_0x195a6b)&&this['archivedThreads']['remove'](_0x195a6b);},{'priority':'highest'}),this['listenTo'](_0x6f670f['collection'],'focus',(_0x3c4310,_0x4d9110)=>{_0x4d9110['isVisible']||(_0x4d9110['isActive']=!0x0,_0x6f670f['activate'](_0x4d9110));});}['_calculatePosition'](_0x519548){const _0x562cc5=[...this['archivedThreads']]['findIndex'](_0x5ad613=>_0x5ad613['archivedAt']<_0x519548);return _0x562cc5>-0x1?_0x562cc5:this['archivedThreads']['length'];}}class a extends _0x847970{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x517e68];}constructor(_0x4a5e73){super(_0x4a5e73),this['annotationViews']=new _0x55d301(),this['_pendingThreads']=[];}['init'](){const _0xd6d9b9=this['editor'],_0x3bb6f9=this['_hideDialogOnAnnotationEscape']['bind'](this);_0xd6d9b9['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x1287d8,!0x0)),_0xd6d9b9['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x4dc992=this['_createCommentsArchiveButton'](_0x3cebc9);return _0x4dc992['set']({'role':'menuitemcheckbox'}),_0x4dc992;});const _0x1c2562=_0xd6d9b9['plugins']['get'](p),_0x5e1a30=_0xd6d9b9['plugins']['get']('Annotations'),_0x409a7a=_0xd6d9b9['plugins']['get']('CommentsRepository');_0x1c2562['archivedThreads']['forEach'](_0xaf143=>{this['_handleNewThread'](_0xaf143);}),this['listenTo'](_0x1c2562['archivedThreads'],'add',(_0x2335b6,_0x3dc792)=>{this['_handleNewThread'](_0x3dc792);}),this['listenTo'](_0x5e1a30['collection'],'add',(_0x538eff,_0x3a557a)=>{const _0x209291=this['_pendingThreads']['find'](_0x56531e=>{const _0x5b2759=_0x409a7a['_threadToController']['get'](_0x56531e);return _0x5b2759&&_0x3a557a['innerView']===_0x5b2759['view'];});if(_0x209291){const _0xd97943=this['_calculatePosition'](_0x209291['archivedAt']);this['annotationViews']['add'](_0x3a557a['view'],_0xd97943),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x209291),0x1);}}),this['listenTo'](_0x1c2562['archivedThreads'],'remove',(_0x1afb9d,_0x4b2187)=>{const _0x30870c=_0xd6d9b9['config']['get']('collaboration.channelId');if(!_0x30870c||_0x4b2187['channelId']===_0x30870c){if(this['_pendingThreads']['includes'](_0x4b2187))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x4b2187),0x1);else{const _0x104ce0=_0x409a7a['_threadToController']['get'](_0x4b2187),_0x39efa7=_0x5e1a30['getByInnerView'](_0x104ce0['view']);this['annotationViews']['remove'](_0x39efa7['view']),this['stopListening'](_0x39efa7['focusableElements']);}}}),this['listenTo'](_0x5e1a30['collection'],'add',(_0x4d4782,_0x4d4473)=>{this['listenTo'](_0x4d4473,'escape',_0x3bb6f9);}),this['listenTo'](_0x5e1a30['collection'],'remove',(_0x14655b,_0x1a10c4)=>{this['stopListening'](_0x1a10c4,'escape',_0x3bb6f9);});}['_handleNewThread'](_0x249c1c){const _0x1ead8b=this['editor']['plugins']['get']('CommentsRepository'),_0x343c81=this['editor']['plugins']['get']('Annotations'),_0x317715=this['editor']['config']['get']('collaboration.channelId');if(!_0x317715||_0x249c1c['channelId']===_0x317715){const _0x37e4cc=_0x1ead8b['_threadToController']['get'](_0x249c1c);if(!_0x37e4cc)return void this['_pendingThreads']['push'](_0x249c1c);const _0x42cf0c=this['_calculatePosition'](_0x249c1c['archivedAt']),_0x2d6258=_0x343c81['getByInnerView'](_0x37e4cc['view']);_0x2d6258['isVisible']&&_0x343c81['_visibleAnnotations']['remove'](_0x2d6258),this['annotationViews']['add'](_0x2d6258['view'],_0x42cf0c);}}['_calculatePosition'](_0xf8b524){const _0x3c7570=this['editor']['config']['get']('collaboration.channelId'),_0x2e711a=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x27b561=>_0x27b561['channelId']===_0x3c7570)['findIndex'](_0x23747e=>_0x23747e['archivedAt']<_0xf8b524);return _0x2e711a<0x0||_0x2e711a>this['annotationViews']['length']?this['annotationViews']['length']:_0x2e711a-0x1;}['_toggleDialog'](){const _0x4bdd77=this['editor'],_0x1ad5d2=_0x4bdd77['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x4bdd77['locale'],this['annotationViews'])),'commentsArchive'===_0x1ad5d2['id']?_0x1ad5d2['hide']():_0x1ad5d2['show']({'id':'commentsArchive','title':N(_0x4bdd77['locale'],'COMMENTS_ARCHIVE'),'icon':_0x3df419,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x42e0d9['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x58b085,_0x23b0ae=!0x1){const _0x321c56=this['editor']['locale'],_0x44b15a=this['editor']['plugins']['get']('Dialog'),_0x29d3aa=new _0x58b085(_0x321c56);return _0x29d3aa['bind']('isEnabled')['to'](this,'isEnabled'),_0x29d3aa['bind']('isOn')['to'](_0x44b15a,'id',_0xe6cfbc=>'commentsArchive'===_0xe6cfbc),_0x29d3aa['set']({'label':N(_0x321c56,'COMMENTS_ARCHIVE'),'icon':_0x3df419,'isToggleable':!0x0}),_0x23b0ae&&(_0x29d3aa['tooltip']=!0x0),this['listenTo'](_0x29d3aa,'execute',()=>this['_toggleDialog']()),_0x29d3aa;}['_hideDialogOnAnnotationEscape']=_0x5469ee=>{const _0x30b6f1=_0x5469ee['source'];if(!this['annotationViews']['has'](_0x30b6f1['view']))return;const _0x57ddd5=this['editor']['plugins']['get']('Dialog');_0x57ddd5['isOpen']&&'commentsArchive'===_0x57ddd5['id']&&(_0x57ddd5['hide'](),_0x5469ee['stop']());};}class gi extends _0x847970{static get['requires'](){return[o,r,s,p,a,i,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{rt as AddCommentThreadCommand,T as Annotation,S as AnnotationCollection,C as AnnotationCounterButtonView,E as AnnotationView,y as Annotations,R as AnnotationsSidebarItemView,H as AnnotationsSidebarView,j as AnnotationsUIs,si as BaseCommentThreadView,di as BaseCommentView,wi as Comment,pi as CommentThread,yt as CommentThreadController,ie as CommentThreadInputView,vt as CommentThreadView,gt as CommentView,gi as Comments,p as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,i as CommentsOnly,o as CommentsRepository,s as CommentsUI,b as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,z as Sidebar,e as WideSidebar,v as bindAnnotationCollections};
23
+ import{Editor as _0x556455,ContextPlugin as _0x2ec86c,PendingActions as ht,Command as _0x557c6a,Plugin as _0x329b6e,Context as _0x385f51}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x279178,uid as _0x3cd367,KeystrokeHandler as jt,FocusTracker as _0x1c22e6,diff as _0x34b6c6,Collection as _0x1392af,Rect as _0x81943,CKEditorError as _0x347fe4,first as _0x41ec0b,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x44d67b,keyCodes as _0x23a2b3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0xf34004,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x1b1da6,trimHtml as ts,LateFocusDropdownButtonView as _0x34815a,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x29ad06}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as Ct,debounce as _0x465268}from'es-toolkit/compat';import{IconUndo as _0x45680a,IconCheck as _0x542074,IconPencil as _0x4f02dd,IconRemoveComment as _0x3f73f7,IconThreeVerticalDots as _0x2df864,IconAddComment as _0x2c05f7,IconCommentsArchive as _0x430f4a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0x11c5b9,ButtonView as _0x488b97,ViewCollection as _0xae4f8e,createDropdown as _0x3f6a19,ListView as _0x1bfda9,focusChildOnDropdownOpen as _0x1fee9b,ListItemView as _0x2ff8a5,MenuBarMenuListItemButtonView as _0x5d24e6,BodyCollection as _0x5d1d61,BalloonPanelView as _0x48dfaf,ContextualBalloon as _0x513a27,Dialog as _0x1501c1,DialogViewPosition as _0x3a3406}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as qt,enableViewPlaceholder as St,MouseObserver as _0x2aa71a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as zt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as Bt,ShiftEnter as Et}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Gt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Jt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Kt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Lt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x2a5449}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x1fc28a}from'@ckeditor/ckeditor5-widget/dist/index.js';class yt extends/* #__PURE__ -- @preserve */
24
+ _0x279178(){['model'];['view'];constructor(_0x4bea25,_0x5d85ec){super(),this['model']=_0x4bea25,this['model']['_isAttached']=!0x0,this['view']=_0x5d85ec,this['listenTo'](_0x5d85ec,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x5d85ec,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x5d85ec,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x5d85ec,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x5d85ec,'addComment',(_0x3924c1,_0x4bfe44)=>this['addComment'](_0x4bfe44)),this['listenTo'](_0x5d85ec,'updateComment',(_0x3b9c07,_0x339242,_0x39ab1b)=>this['updateComment'](_0x339242,_0x39ab1b)),this['listenTo'](_0x5d85ec,'removeComment',(_0x4dfc19,_0x53d8f3)=>this['removeComment'](_0x53d8f3));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x2b2df2){this['model']['addComment']({'content':_0x2b2df2,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x462b68,_0x395a48){this['model']['getComment'](_0x462b68)['update']({'content':_0x395a48});}['removeComment'](_0x2f4515){this['model']['getComment'](_0x2f4515)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x5c1f1b,_0x48b45c,_0x503e90){const t=_0x5c1f1b['t'];switch(_0x48b45c){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'},_0x503e90);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'},_0x503e90);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'},_0x503e90);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'},_0x503e90);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x503e90);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'},_0x503e90);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'},_0x503e90);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'},_0x503e90);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 Rt extends $t{['main'];['editable'];constructor(_0x30c280,_0x54ad44){super(_0x30c280);const _0x369c03=_0x3cd367();this['main']=this['createCollection'](),this['editable']=new Vt(_0x30c280,_0x54ad44,void 0x0,{'label':()=>N(_0x30c280,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x30c280['uiLanguageDirection'],'lang':_0x30c280['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x369c03},'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 Ft extends Ut{['view'];constructor(_0x3db989){super(_0x3db989),this['view']=new Rt(_0x3db989['locale'],_0x3db989['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0xf66a32=this['editor']['editing']['view'],_0x49f590=this['view']['editable'],_0x4e9af5=_0xf66a32['document']['getRoot']();_0x49f590['name']=_0x4e9af5['rootName'],this['view']['render']();const _0x10caea=_0x49f590['element'];this['setEditableElement'](_0x49f590['name'],_0x10caea),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0xf66a32['attachDomRoot'](_0x10caea),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Nt=[zt,Bt,Et,Gt,Jt,Kt,Lt];class Qt extends/* #__PURE__ -- @preserve */
25
+ _0x279178(_0x556455){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Nt)());constructor(_0x2de22a={}){function _0x2f9bec(_0x58bb15){return _0x58bb15['map'](_0x3a3e41=>String['fromCharCode'](_0x3a3e41))['join']('');}(_0x2de22a=Object['assign']({},_0x2de22a))['plugins']||(_0x2de22a['plugins']=Qt['defaultPlugins']),super(_0x2de22a),this['ui']=new Ft(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x2f9bec([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f9bec([0x76,0x69,0x65,0x77])][_0x2f9bec([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f9bec([0x61,0x75,0x74,0x6f]),this[_0x2f9bec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2f9bec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f9bec([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2f9bec([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2f9bec([0x6f,0x6b])});}['create'](){const _0x6c1cc0=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x6c1cc0))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x131354=>{const _0x2ecd4c=this['model']['document']['getRoot'](),_0x3d5c1e=_0x2ecd4c&&_0x2ecd4c['getChild'](_0x2ecd4c['childCount']-0x1);_0x131354['setSelection'](_0x3d5c1e,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x182847=this['editing']['view'],_0x2add2f=_0x182847['document']['getRoot'](),_0x325280=_0x2add2f['getChild'](0x0);_0x2add2f['childCount']>0x1||!_0x325280||'p'!=_0x325280['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(qt(_0x182847,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x325280['placeholder']=this['placeholder']),St({'view':_0x182847,'element':_0x325280,'keepOnFocus':!0x0}),this['placeholderElement']=_0x325280);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x14f2a0,_0x203c2b={}){super(_0x14f2a0),this['editor']=null,this['_editorConfig']=_0x203c2b,this['set']('value',_0x203c2b['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x14f2a0,'Reply...')),this['set']('submitLabel',N(_0x14f2a0,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x1c22e6(),this['focusCycler']=new _0x11c5b9({'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',(_0x218f38,_0x2bb8c1)=>{this['cancelButtonView']['fire']('execute'),_0x2bb8c1();}),this['keystrokes']['set']('Ctrl+Enter',(_0x4ec173,_0x41b85b)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x41b85b());}),this['on']('submit',(_0x1156a3,_0x454890)=>{_0x454890['length']>0xfde8?(alert(N(_0x14f2a0,'TOO_LONG_COMMENT_ALERT',[_0x454890['length'],0xfde8])),_0x1156a3['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Qt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x59b19a=this['editor'];this['element']['insertBefore'](_0x59b19a['ui']['element'],this['element']['firstChild']),_0x59b19a['model']['document']['on']('change',()=>this['value']=_0x59b19a['getData']()),_0x59b19a['bind']('placeholder')['to'](this),this['focusables']['add'](_0x59b19a['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x1a241d){-0x1===_0x1a241d?(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:_0x576a1b}=this,_0x5dc17d=new _0x488b97(_0x576a1b);return _0x5dc17d['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x5dc17d['withText']=!0x0,_0x5dc17d['bind']('label')['to'](this,'submitLabel'),_0x5dc17d['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x5dc17d['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x134fc6,_0x16d2b9)=>!_0x16d2b9&&!!_0x134fc6['trim']()),_0x5dc17d;}['_createCancelButton'](){const {locale:_0x1d5a90}=this,_0x13cc08=new _0x488b97(_0x1d5a90);return _0x13cc08['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x13cc08['label']=N(_0x1d5a90,'Cancel'),_0x13cc08['withText']=!0x0,_0x13cc08['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x13cc08;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x13fd16=>{this['focusTracker']['add'](_0x13fd16['element']);}),this['focusables']['on']('change',(_0x27147b,_0x3ccb6e)=>{for(const _0xe6c678 of Array['from'](_0x3ccb6e['added'])['reverse']())this['focusTracker']['add'](_0xe6c678['element']);});}}class ie extends kt{constructor(_0x274e91,_0x317226,_0x4f3ee6){super(_0x274e91),this['commentInputView']=new es(_0x274e91,_0x4f3ee6),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x1b34ac,_0x1ebf33)=>_0x1b34ac||!!_0x1ebf33),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 _0xf34004(_0x274e91,_0x317226),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'](_0xbcf19b){this['commentInputView']['focus'](_0xbcf19b);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x21a374,_0xc46806)=>{const {submitButtonView:_0xdcaf50,cancelButtonView:_0x14a6af,editor:_0xf695f2}=this['commentInputView'];[_0xdcaf50['element'],_0x14a6af['element'],_0xf695f2?_0xf695f2['editing']['view']['getDomRoot']():null]['filter'](_0x346100=>_0x346100)['some'](_0x243a4b=>_0x243a4b['contains'](_0xc46806['target']))||(this['focus'](),_0xc46806['preventDefault']());});}}class os extends kt{constructor(_0x2132f2){super(_0x2132f2);const _0x2758e7=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x2758e7['to']('count',_0x39db51=>N(_0x2132f2,'NUMBER_OF_COMMENTS',_0x39db51))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0xfa4c23,_0x477d76,_0x289636){super(_0xfa4c23);const _0x23ceb3=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x477d76['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x477d76,this['_config']=_0x289636,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x1c22e6(),this['keystrokes']=new jt(),this['focusCycler']=new _0x11c5b9({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x436189=>this['commentViews']['map'](_0x2e7b3c=>_0x2e7b3c['element'])['includes'](_0x436189['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new os(_0xfa4c23),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x218fda=>_0x218fda-this['_config']['maxCommentsWhenCollapsed']);for(const _0xc9f6a5 of _0x477d76['comments'])this['_handleNewCommentModel'](_0xc9f6a5);this['_handleInfoComment'](),this['listenTo'](_0x477d76['comments'],'add',(_0x2b350c,_0x2989f9)=>{const _0x1abff3=this['_calculatePosition'](_0x2989f9);this['length']++,this['_handleNewCommentModel'](_0x2989f9,_0x1abff3),this['refreshVisibleViews']();}),this['listenTo'](_0x477d76['comments'],'remove',(_0x30ebdf,_0x592bec)=>{this['length']--,this['_handleRemoveCommentModel'](_0x592bec),this['refreshVisibleViews']();}),this['listenTo'](_0x477d76,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x477d76,'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',_0x23ceb3['if']('length','ck-hidden',_0x3742d2=>!_0x3742d2)],'aria-label':N(_0xfa4c23,'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'](_0x35fe6c){-0x1===_0x35fe6c?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x51a7ed of this['commentViews'])_0x51a7ed['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x588c61,_0x150c5d){const _0x1682a0=new this['_config']['CommentView'](this['locale'],_0x588c61,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x1682a0['viewUid']=_0x588c61['id'],_0x1682a0['delegate']('removeComment')['to'](this),_0x1682a0['delegate']('updateComment')['to'](this),_0x1682a0['delegate']('resolveCommentThread')['to'](this),_0x1682a0['delegate']('editorReady')['to'](this),_0x1682a0['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x1682a0,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x1682a0,_0x150c5d);}['_calculatePosition'](_0x2a000d){const _0x54c6d3=this['_model']['_findOptimalIndex'](_0x2a000d);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x2a000d['authoredAt']?_0x54c6d3-0x1:_0x54c6d3:_0x54c6d3-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x3a51e5={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':N(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x3a51e5,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x3a51e5));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x3478b4){const _0x575450=this['commentViews']['remove'](_0x3478b4['id']);this['stopListening'](_0x575450),_0x575450['isEditMode']&&this['_updateHasDirtyComment'](),_0x575450['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x2ea892=>_0x2ea892['isEditMode']);}['_rearrangeCollapse'](){const _0x4126a5=function(_0x6aacbb){const _0x5d05ab=new _0x1392af();for(const _0x33e7e7 of _0x6aacbb)_0x5d05ab['add'](_0x33e7e7);return _0x5d05ab;}(this['commentViews']),_0x395b5c=this['_collapsedCommentsView']['count'];for(let _0x16adab=0x1;_0x16adab<=_0x395b5c;_0x16adab++)_0x4126a5['remove'](0x1);for(const _0x116496 of _0x4126a5)_0x116496['collapse']();_0x395b5c>0x0&&_0x4126a5['add'](this['_collapsedCommentsView'],0x1),rs(_0x34b6c6(Array['from'](this['visibleViews']),Array['from'](_0x4126a5)),this['visibleViews'],_0x4126a5);}['_rearrangeExpand'](){rs(_0x34b6c6(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x39a231 of this['visibleViews'])_0x39a231['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x31c4cb=>{this['focusTracker']['add'](_0x31c4cb['element']),this['keystrokes']['listenTo'](_0x31c4cb['element']);}),this['commentViews']['on']('change',(_0x31c025,_0x32d1f8)=>{for(const _0x266ccf of _0x32d1f8['removed'])this['focusTracker']['remove'](_0x266ccf['element']),this['keystrokes']['stopListening'](_0x266ccf['element']);for(const _0x4a62be of Array['from'](_0x32d1f8['added'])['reverse']())this['focusTracker']['add'](_0x4a62be['element']),this['keystrokes']['listenTo'](_0x4a62be['element']);});}}function rs(_0x2d5feb,_0x3d532c,_0xba833e){let _0x13b6ea=0x0;for(const _0x269f3e of _0x2d5feb)switch(_0x269f3e){case'insert':_0x3d532c['add'](_0xba833e['get'](_0x13b6ea),_0x13b6ea),_0x13b6ea++;break;case'delete':_0x3d532c['remove'](_0x13b6ea);break;case'equal':_0x13b6ea++;}}class oe extends kt{constructor(_0x24aea5){super(_0x24aea5);const _0x442020=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x442020['to']('contextValue',_0x390118=>N(_0x24aea5,'THREAD_CONTEXT_LABEL',_0x390118)),'tabindex':-0x1},'children':[{'text':_0x442020['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0xf0bcc8,_0x102f7a){super(_0xf0bcc8);const _0x811f01=this['bindTemplate'];this['_model']=_0x102f7a,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x1c22e6(),this['keystrokes']=new jt(),this['focusCycler']=new _0x11c5b9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0xc2d6c1=>!!_0xc2d6c1),this['bind']('contextValue')['to'](this['_model'],'context',_0x353f72=>_0x353f72&&_0x353f72['value']?this['_trimContextValue'](_0x353f72['value']):N(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',_0x811f01['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 _0x498574=new _0x488b97(this['locale']);return _0x498574['label']=N(this['locale'],'Reopen'),_0x498574['tooltip']=N(this['locale'],'Reopen'),_0x498574['icon']=_0x45680a,_0x498574['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3b151d=>!_0x3b151d),_0x498574['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x268c8d,_0x1ec357)=>_0x268c8d&&_0x1ec357),_0x498574['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x498574;}['_trimContextValue'](_0x410181){if(_0x410181['length']<0x96)return _0x410181;const _0x18e64b=_0x410181['lastIndexOf']('\x20',0x93);return _0x410181['substring'](0x0,_0x18e64b>-0x1?_0x18e64b:0x93)+'...';}['_attachContextActions'](){const _0x1fe3ac=this['element']['querySelector']('.ck-context'),_0x119c75=_0x1fe3ac['querySelector']('.ck-context__value');this['listenTo'](_0x1fe3ac,'mouseenter',()=>{_0x119c75['offsetWidth']<_0x119c75['scrollWidth']&&_0x1fe3ac['classList']['add']('overlay');}),this['listenTo'](_0x1fe3ac,'mouseleave',()=>{_0x1fe3ac['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x5e6fe7 of this['focusables'])this['focusTracker']['add'](_0x5e6fe7['element']),this['keystrokes']['listenTo'](_0x5e6fe7['element']);}['_createContextView'](){const _0x2b8b0d=new oe(this['locale']);return _0x2b8b0d['bind']('contextValue')['to'](this),_0x2b8b0d;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x337813,_0x454d0e,_0x5d6b4b,_0x24369d){super(_0x337813),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x454d0e,this['_localUser']=_0x5d6b4b,this['_config']=_0x24369d,this['commentThreadHeaderView']=new Xt(_0x337813,_0x454d0e),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x337813,N(_0x337813,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x337813,_0x454d0e,Object['assign']({'CommentView':this['_config']['CommentView']},_0x24369d)),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',(_0x2a3100,_0x4a882e)=>_0x2a3100||!!_0x4a882e),this['bind']('isUnlinked')['to'](_0x454d0e,'unlinkedAt',_0x460df8=>!!_0x460df8),this['bind']('ariaLabel')['to'](this,'length',_0x351ff2=>{const _0x5cf8aa=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x351ff2,_0x5cf8aa]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x1c22e6(),this['keystrokes']=new jt(),this['focusCycler']=new _0x11c5b9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x50535c=>_0x50535c['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),Zt(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x4a1b38=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x309a66=_0x4a1b38['commentInputView'];return _0x4a1b38['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x309a66,'value',(_0x527e2a,_0x404d88,_0x19bea8,_0x184a2d,_0x4e2efa)=>!!_0x4e2efa||!!_0x184a2d&&_0x19bea8&&!_0x404d88||_0x527e2a&&_0x19bea8&&!_0x404d88),_0x309a66['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x1d27f9,_0x42fe3a,_0x2ca962)=>{let _0x5f0a40;return _0x5f0a40=_0x2ca962&&_0x42fe3a?'Reply\x20to\x20reopen\x20discussion...':_0x1d27f9?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x5f0a40);}),_0x309a66['bind']('submitLabel')['to'](this,'length',_0x5cfe1e=>N(this['locale'],_0x5cfe1e?'Reply':'Comment')),_0x309a66['on']('submit',(_0x12093c,_0x1543e9)=>{this['fire']('addComment',_0x1543e9),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x309a66['on']('cancel',()=>{this['focus']();}),_0x309a66['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x309a66['on']('cancel',_0x5b00e1=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x5b00e1['stop']());}),this['on']('change:isActive',(_0x1cdf7c,_0x586c21,_0x26dc70)=>{_0x26dc70||this['length']||_0x309a66['value']||this['fire']('removeCommentThread');}),_0x4a1b38;}}class vt extends/* #__PURE__ -- @preserve */
27
+ ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x1daafe,_0x341fc1,_0x1403de,_0x242f0f){super(_0x1daafe,_0x341fc1,_0x1403de,_0x242f0f),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x1daafe,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x4c1320,_0x2f1839,_0x126508)=>{_0x126508||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x11db89,_0x4982c6,_0xfc1bc1)=>{_0xfc1bc1&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x39fa78=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x39fa78['if']('isActive','ck-thread--active'),_0x39fa78['if']('isUnlinked','ck-thread--unlinked'),_0x39fa78['if']('isConfirm','ck-thread--remove-confirmation'),_0x39fa78['to']('actionIndicator',_0x176824=>_0x176824?'ck-thread--'+_0x176824:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x39fa78['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 _0x2869c3 of this['commentsListView']['commentViews'])_0x2869c3['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x58a294}=this,_0x26eb11=this['commentsListView']['commentViews']['get'](0x0);_0x26eb11===this['_boundFirstCommentView']||_0x26eb11['isSystemComment']||(this['_boundFirstCommentView']=_0x26eb11,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x26eb11,'actionIndicator',_0x48af20=>'remove'===_0x48af20?'remove':null),_0x26eb11['placeholder']=N(_0x58a294,'Write\x20a\x20comment...'),_0x26eb11['removeButton']['on']('execute',_0x258637=>{_0x258637['stop'](),this['showConfirm'](N(_0x58a294,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x26eb11['focus']();}),_0x26eb11['actionBar']['add'](this['resolveButton'],0x0),_0x26eb11['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x5ddbfe=new _0x1b1da6(this['locale']);return _0x5ddbfe['label']=N(this['locale'],'Resolve'),_0x5ddbfe['tooltip']=N(this['locale'],'Resolve'),_0x5ddbfe['icon']=_0x542074,_0x5ddbfe['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x5ddbfe['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x320355=>!_0x320355),_0x5ddbfe['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x5e9c42,_0x499903)=>_0x5e9c42&&!_0x499903),_0x5ddbfe['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x5ddbfe;}['_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 is extends kt{constructor(_0x4a7823){super(_0x4a7823),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x538d8b,_0x2822be,_0x2b2650)=>{this['element']['innerHTML']=_0x2b2650;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x193abc,_0x453550,_0x36b2dd){super(_0x193abc),this['_model']=_0x453550,this['_config']=_0x36b2dd,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x453550,'content',_0x453550,'authoredAt',(_0x319393,_0xc6c6e0)=>N(_0x193abc,'COMMENT_ARIA_LABEL',[_0x453550['author']['name'],_0x36b2dd['formatDateTime'](_0xc6c6e0),new DOMParser()['parseFromString'](_0x319393,'text/html')['body']['textContent'],_0x453550['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x193abc,N(_0x193abc,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0xae4f8e(),this['focusTracker']=new _0x1c22e6(),this['keystrokes']=new jt(),this['focusCycler']=new _0x11c5b9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x59d2b3=>_0x59d2b3['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']?N(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):N(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?N(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):N(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0xe5a0b7=new is(this['locale']);return _0xe5a0b7['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x47f11f,_0x2a7ef9)=>_0x2a7ef9?ts(_0x47f11f,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x47f11f),_0xe5a0b7;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x3ee75b=new es(this['locale'],this['_config']['editorConfig']);return _0x3ee75b['value']=this['_model']['content'],_0x3ee75b['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x3ee75b['submitLabel']=N(this['locale'],'Save'),_0x3ee75b['on']('submit',(_0x37709d,_0x3edc44)=>{this['fire']('updateComment',this['_model']['id'],_0x3edc44),this['switchToDisplayMode'](),this['focus']();}),_0x3ee75b['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x3ee75b['once']('editorReady',()=>{_0x3ee75b['focus']();}),_0x3ee75b['createEditor'](),_0x3ee75b['delegate']('editorReady')['to'](this),_0x3ee75b['delegate']('editorDestroyed')['to'](this),_0x3ee75b;}['_setupKeyboardNavigation'](){const _0x35f1c8=this['element'];this['keystrokes']['listenTo'](_0x35f1c8);for(const _0x17d0b3 of this['focusables'])this['focusTracker']['add'](_0x17d0b3['element']),this['keystrokes']['listenTo'](_0x17d0b3['element']);this['focusables']['on']('change',(_0x584f05,_0x46b406)=>{for(const _0x5cc70f of _0x46b406['removed'])this['focusTracker']['remove'](_0x5cc70f['element']),this['keystrokes']['stopListening'](_0x5cc70f['element']);for(const _0x7d2ea1 of _0x46b406['added'])this['focusTracker']['add'](_0x7d2ea1['element']),this['keystrokes']['listenTo'](_0x7d2ea1['element']);}),this['keystrokes']['set']('enter',(_0x232036,_0x5570ca)=>{_0x35f1c8===_0x232036['target']&&(this['focusCycler']['focusFirst'](),_0x5570ca());}),this['keystrokes']['set']('esc',(_0x13d392,_0x178b69)=>{_0x35f1c8!==_0x13d392['target']&&(this['focus'](),_0x178b69());});}}class gt extends/* #__PURE__ -- @preserve */
28
+ ti(di){['actionBar'];['userView'];constructor(_0x172248,_0x44fbb4,_0x4a15f3){super(_0x172248,_0x44fbb4,_0x4a15f3),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x172248,'Reply...')),this['bind']('authoredAt')['to'](_0x44fbb4),this['bind']('resolvedAt')['to'](_0x44fbb4),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 _0xf34004(_0x172248,_0x44fbb4['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x44fbb4,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5f1735=this['bindTemplate'],_0x57d30a=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x5f1735['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5f1735['to']('authoredAt',_0x482ac9=>this['_config']['formatDateTime'](_0x482ac9))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x5f1735['if']('isEditMode','ck-comment__actions--hidden'),_0x5f1735['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']&&_0x57d30a['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x5f1735['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x5f1735['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x5f1735['if']('isEditMode','ck-comment--edit'),_0x5f1735['if']('isSystemComment','ck-comment--info'),_0x5f1735['to']('actionIndicator',_0x1bda4a=>_0x1bda4a?'ck-comment--'+_0x1bda4a:'')],'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':_0x57d30a}]}]};}['_createEditButton'](){const _0x34c834=new _0x488b97(this['locale']);return _0x34c834['label']=N(this['locale'],'Edit'),_0x34c834['icon']=_0x4f02dd,_0x34c834['withText']=!0x0,_0x34c834['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x34c834['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2648d0=>!_0x2648d0),_0x34c834['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x34c834['on']('execute',()=>this['switchToEditMode']()),_0x34c834;}['_createRemoveButton'](){const _0xa0e6c1=new _0x488b97(this['locale']);return _0xa0e6c1['label']=N(this['locale'],'Remove'),_0xa0e6c1['icon']=_0x3f73f7,_0xa0e6c1['withText']=!0x0,_0xa0e6c1['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0xa0e6c1['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2bc909=>!_0x2bc909),_0xa0e6c1['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0xa0e6c1['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0xa0e6c1;}['_createDropdown'](){const _0x3b5ffa=_0x3f6a19(this['locale'],_0x34815a),_0xafa02f=_0x3b5ffa['panelView']['children'],_0x311b42=new _0x1bfda9(this['locale']),_0x41f0c7=_0x3b5ffa['bindTemplate'];_0x1fee9b(_0x3b5ffa,()=>this['items']['find'](_0xee57a1=>_0xee57a1['isVisible'])),_0x3b5ffa['extendTemplate']({'attributes':{'class':[_0x41f0c7['if']('isVisible','ck-hidden',_0x2cdac4=>!_0x2cdac4)]}});const _0x39ec78=(_0xcae1ce,_0x3e264b=-0x1)=>{const _0x3c6f94=new _0x2ff8a5(this['locale']);_0x3c6f94['children']['add'](_0xcae1ce);const _0x4e0626=_0x3e264b>-0x1?_0x3e264b:_0x311b42['items']['length'];_0x311b42['items']['add'](_0x3c6f94,_0x4e0626);const _0x318774=Array['from'](this['items']);_0x3b5ffa['unbind']('isEnabled','isVisible'),_0x3b5ffa['bind']('isEnabled')['toMany'](_0x318774,'isEnabled',(..._0x232aeb)=>_0x232aeb['some'](_0x2465eb=>_0x2465eb)),_0x3b5ffa['bind']('isVisible')['toMany'](_0x318774,'isVisible',(..._0x4f4f85)=>_0x4f4f85['some'](_0x45f195=>_0x45f195));};_0x3b5ffa['panelPosition']='sw',_0x3b5ffa['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x2df864});for(const _0x2987b0 of this['items'])_0x39ec78(_0x2987b0);return _0xafa02f['add'](_0x311b42),_0x3b5ffa['listenTo'](this['items'],'add',(_0x1a1f78,_0x137489,_0x1821e9)=>{_0x39ec78(_0x137489,_0x1821e9);}),_0x3b5ffa['listenTo'](this['items'],'remove',(_0xc08da5,_0x5bfa09,_0x2cd48c)=>{_0x311b42['items']['remove'](_0x2cd48c);}),_0x3b5ffa;}['_attachActions'](_0x9baf76,_0x460404){const _0x30db62=_0x9baf76&&_0x9baf76['element'];_0x30db62&&(this['listenTo'](_0x30db62,'mouseenter',()=>this['actionIndicator']=_0x460404),this['listenTo'](_0x30db62,'focus',()=>this['actionIndicator']=_0x460404),this['listenTo'](_0x30db62,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x30db62,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0xd01cbf=super['_createCommentInputView']();return _0xd01cbf['bind']('placeholder')['to'](this),_0xd01cbf;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x2100ed){const _0x524186=Dt(_0x2100ed,0x1e),_0x3c7f43=new MutationObserver(_0x4bd7fb=>{for(const _0x241f04 of _0x4bd7fb)('attributes'==_0x241f04['type']&&'class'==_0x241f04['attributeName']||'childList'==_0x241f04['type']||'characterData'==_0x241f04['type'])&&_0x524186();});return{'attach'(_0x4fde36){_0x3c7f43['observe'](_0x4fde36,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x3c7f43['disconnect'](),_0x524186['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x58284d,_0x1357f5){super(_0x58284d),this['id']=_0x3cd367(),this['focusTracker']=new _0x1c22e6(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x4a0737,_0x57c32b)=>this['fire']('Esc',_0x57c32b)),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']=xt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x1357f5),this['mainView']=_0x1357f5;const _0x11dea3=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x11dea3['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 _0x2e81e6=this['element']['clientHeight'];_0x2e81e6&&(this['height']=_0x2e81e6);}}class T extends/* #__PURE__ -- @preserve */
29
+ _0x279178(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x1e8b5b,target:_0x45ebb8,type:_0x582f03,isVisible:_0x42d6a7=!0x0}){super(),this['view']=_0x1e8b5b,this['view']['element']||this['view']['render'](),this['_type']=_0x582f03,this['_target']=_0x45ebb8,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x1392af([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x19cb51,_0xe83639)=>{this['view']['focusTracker']['add'](_0xe83639);}),this['focusableElements']['on']('remove',(_0xdd63c,_0x44f817)=>{this['view']['focusTracker']['remove'](_0x44f817);}),this['set']('isVisible',_0x42d6a7);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0xb7b526=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0xb7b526),_0xb7b526;}get['targetRect'](){const _0x128b5e=this['target'];if(null===_0x128b5e)return null;if(_0x128b5e instanceof _0x81943)return _0x128b5e;const _0x3fb63b=_0x128b5e['filter'](_0x34c04d=>function(_0x393a03){const _0x51e1b3=_0x393a03['offsetParent'];if(_0x51e1b3)return!0x0;const _0x2db161=_0x393a03['getClientRects']()['item'](0x0);return!!_0x2db161;}(_0x34c04d));return 0x0===_0x3fb63b['length']?null:new _0x81943(_0x3fb63b[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x50bd7d){this['view']['isActive']=_0x50bd7d,this['view']['mainView']['isActive']=_0x50bd7d;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x320681){if(!(null===_0x320681||_0x320681 instanceof _0x81943||Array['isArray'](_0x320681)&&_0x320681['every'](_0x4fd82c=>fi(_0x4fd82c))))throw new _0x347fe4('annotation-invalid-target',null,{'target':_0x320681});}['_getNormalizedTarget'](){const _0x21cdb4='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x21cdb4)?[_0x21cdb4]:_0x21cdb4;}}function fi(_0x1e2ae7){return null!==_0x1e2ae7&&'object'==typeof _0x1e2ae7&&'nodeType'in _0x1e2ae7&&0x1===_0x1e2ae7['nodeType'];}class S extends _0x1392af{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x31a18d=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x1c22e6(),this['_focusTracker']['on']('change:isFocused',(_0x266388,_0x53620c,_0xa5693b)=>{_0xa5693b||this['fire']('blur');});for(const _0xacf26e of _0x31a18d)this['add'](_0xacf26e);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x4d805a){if(this['has'](_0x4d805a))throw new _0x347fe4('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x4d805a['innerView'],_0x4d805a),this['_viewToAnnotation']['set'](_0x4d805a['view'],_0x4d805a);for(const _0x167fe8 of _0x4d805a['focusableElements'])this['_focusTracker']['add'](_0x167fe8);this['listenTo'](_0x4d805a['focusableElements'],'add',(_0x33eded,_0x34b917)=>{this['_focusTracker']['add'](_0x34b917);}),this['listenTo'](_0x4d805a['focusableElements'],'remove',(_0x487690,_0x28972f)=>{this['_focusTracker']['remove'](_0x28972f);}),this['listenTo'](_0x4d805a['view']['focusTracker'],'change:isFocused',(_0x1dac85,_0x382ecc,_0x514f79)=>{_0x514f79&&this['fire']('focus',_0x4d805a);}),_0x4d805a['updateTargetRect']();const _0x4ce772=this['_getOrderInContent'](_0x4d805a['view']['targetRect']);return super['add'](_0x4d805a,_0x4ce772);}['remove'](_0x25d1b0){if(!this['has'](_0x25d1b0))throw new _0x347fe4('annotationcollection-not-existing-item',null);this['stopListening'](_0x25d1b0['view']['focusTracker']),this['stopListening'](_0x25d1b0['focusableElements']);for(const _0x13f4f8 of _0x25d1b0['focusableElements'])this['_focusTracker']['remove'](_0x13f4f8);return this['_viewToAnnotation']['delete'](_0x25d1b0['view']),this['_innerViewToAnnotation']['delete'](_0x25d1b0['innerView']),super['remove'](_0x25d1b0);}['getByInnerView'](_0xddd71){return this['_innerViewToAnnotation']['get'](_0xddd71);}['getByView'](_0x5de2e8){return this['_viewToAnnotation']['get'](_0x5de2e8);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x48400a of this)_0x48400a['updateTargetRect']();this['_sort']();}['_sort'](){const _0x4fd751=Array['from'](this)['sort']((_0x1f8c9d,_0x38ddee)=>w(_0x1f8c9d['view']['targetRect'],_0x38ddee['view']['targetRect']));for(let _0x4d9b8b=_0x4fd751['length']-0x1;_0x4d9b8b>0x0;_0x4d9b8b--){const _0x3f8c64=_0x4fd751[_0x4d9b8b];_0x4d9b8b!==this['getIndex'](_0x3f8c64)&&(this['remove'](_0x3f8c64),this['add'](_0x3f8c64));}}['_getOrderInContent'](_0x4044fa){let _0x1de634=0x0;if(!_0x4044fa)return this['length'];for(const _0x24b596 of this){const _0x39a618=_0x24b596['view']['targetRect'];if(_0x39a618){if(w(_0x4044fa,_0x39a618)<0x0)return _0x1de634;_0x1de634++;}}return _0x1de634;}}function v({source:_0x202305,target:_0x6997a8,filter:_0x13a6ad}){for(const _0x1b2cd5 of _0x202305)_0x13a6ad(_0x1b2cd5)&&_0x6997a8['add'](_0x1b2cd5);_0x6997a8['listenTo'](_0x202305,'add',(_0x35f08d,_0x18016a)=>{_0x13a6ad(_0x18016a)&&_0x6997a8['add'](_0x18016a);}),_0x6997a8['listenTo'](_0x202305,'remove',(_0x1e4438,_0x3e86c4)=>{_0x6997a8['has'](_0x3e86c4)&&_0x6997a8['remove'](_0x3e86c4);});}function w(_0x4ca767,_0x2b8606){if(null===_0x4ca767&&null===_0x2b8606)return 0x0;if(null===_0x4ca767)return-0x1;if(null===_0x2b8606)return 0x1;const _0x944fa3=_0x4ca767['top']-_0x2b8606['top'];return 0x0==_0x944fa3?_0x4ca767['left']-_0x2b8606['left']:_0x944fa3;}class y extends _0x2ec86c{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e0870){if(super(_0x3e0870),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x3e0870 instanceof _0x556455){const _0x24afa5=_0x3e0870['locale'];_0x3e0870['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x24afa5,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x24afa5,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x24afa5,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x24afa5,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x24afa5,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x24afa5,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x24afa5,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x2c0d8c){this['collection']['add'](_0x2c0d8c);}['remove'](_0x357f07){this['collection']['remove'](_0x357f07),_0x357f07['destroy']();}['refreshVisibility'](){for(const _0x426fad of this['collection'])_0x426fad['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x229c83){return this['collection']['getByInnerView'](_0x229c83);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x417eee of this['collection'])_0x417eee['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x2abbb1){this['fire']('_activateAnnotation',_0x2abbb1);}['createAnnotation'](_0x9967ba){return new T(_0x9967ba);}['createAnnotationView'](_0x4b08d3,_0xefcac8){return new E(_0x4b08d3,_0xefcac8);}['_addActiveAnnotation'](_0x30a535){const _0x64a034=new Set(this['activeAnnotations']);_0x64a034['add'](_0x30a535),this['activeAnnotations']=_0x64a034;}['_removeActiveAnnotation'](_0x570674){const _0x27f1e8=new Set(this['activeAnnotations']);_0x27f1e8['delete'](_0x570674),this['activeAnnotations']=_0x27f1e8;}['_bindAnnotationsToVisibleAnnotations'](){const _0x3935a3=this['collection'],_0x43bf22=this['_visibleAnnotations'];function _0x416776(_0x4ecdbe){const _0x1cb80e=_0x4ecdbe['source'];_0x1cb80e['isVisible']&&!_0x43bf22['has'](_0x1cb80e)?_0x43bf22['add'](_0x1cb80e):!_0x1cb80e['isVisible']&&_0x43bf22['has'](_0x1cb80e)&&_0x43bf22['remove'](_0x1cb80e),_0x1cb80e['view']['focusTracker']['remove'](_0x1cb80e['view']['element']),_0x1cb80e['view']['focusTracker']['add'](_0x1cb80e['view']['element']);}this['listenTo'](_0x3935a3,'add',(_0x1f49ad,_0x56bd26)=>{_0x56bd26['isVisible']&&_0x43bf22['add'](_0x56bd26),this['listenTo'](_0x56bd26,'change:isVisible',_0x416776);}),this['listenTo'](_0x3935a3,'remove',(_0x1cda28,_0x196e37)=>{_0x43bf22['has'](_0x196e37)&&_0x43bf22['remove'](_0x196e37),this['stopListening'](_0x196e37,'change:isVisible',_0x416776);});}['_setupEnterAnnotationKeystroke'](){const _0x2d2d5c=_0x42c41c=>{_0x42c41c['on']('ready',()=>{_0x42c41c['keystrokes']['set'](_0x2a5449,(_0xc663b7,_0x1a2944)=>{const _0x9f8a1e=_0x41ec0b(this['activeAnnotations']['values']());_0x9f8a1e&&(_0x9f8a1e['view']['focus'](),_0x1a2944());});});};this['context']instanceof _0x556455?_0x2d2d5c(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x2f1e19,_0x2709ee)=>{_0x2d2d5c(_0x2709ee);});}['_setupEscapeAnnotationHandling'](){const _0x599f6e=_0x4f0be8=>{const _0x3db382=_0x4f0be8['source'],_0x426147=[];let _0x45069f;if(Array['isArray'](_0x3db382['target'])){_0x45069f=_0x3db382['target'][0x0],this['context']instanceof _0x556455?_0x426147['push'](this['context']):this['context']['editors']&&_0x426147['push'](...this['context']['editors']);for(const _0x2e65ec of _0x426147)for(const _0x87b1b9 of _0x2e65ec['editing']['view']['domRoots']['values']())if(_0x87b1b9['contains'](_0x45069f))return void _0x2e65ec['editing']['view']['focus']();_0x45069f['focus']();}};this['listenTo'](this['collection'],'add',(_0x2b9421,_0x286cb6)=>{this['listenTo'](_0x286cb6,'escape',_0x599f6e,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x3c9e3b,_0x181b78)=>{this['stopListening'](_0x181b78,'escape',_0x599f6e);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x2ec86c{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[y,ht,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x558200){super(_0x558200),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x52d1b3=this['context']['config'];_0x52d1b3['define']('comments.maxCommentsWhenCollapsed',0x2),_0x52d1b3['define']('comments.maxThreadTotalWeight',0x1f4),_0x52d1b3['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x52d1b3['define']('comments.CommentThreadView',vt),_0x52d1b3['define']('comments.CommentView',gt),_0x52d1b3['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x48f90a=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x3a11b7,_0x5649cf)=>this['_addCommentThread'](_0x5649cf)),this['on']('submitCommentThread',(_0x54b49a,_0x49bb87)=>this['_submitCommentThread'](_0x49bb87)),this['on']('resolveCommentThread',(_0xac19a9,_0x43a9c0)=>this['_resolveCommentThread'](_0x43a9c0)),this['on']('resolveCommentThread',(_0xc0dbc0,_0xd34995)=>this['_updateActiveAnnotation'](_0xd34995),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x1c257b,_0x579f89)=>this['_reopenCommentThread'](_0x579f89)),this['on']('reopenCommentThread',(_0x42a9e9,_0x2602f1)=>this['_updateActiveAnnotation'](_0x2602f1),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x4df0d0,_0x230676)=>this['_removeCommentThread'](_0x230676)),this['on']('updateCommentThread',(_0x31a83d,_0x138c52)=>this['_updateCommentThread'](_0x138c52)),this['on']('updateCommentThread',(_0x59fb7e,_0x590d58)=>this['_updateActiveAnnotation'](_0x590d58),{'priority':'lowest'}),this['on']('addComment',(_0x3a7419,_0x26ff1b)=>this['_addComment'](_0x26ff1b)),this['on']('updateComment',(_0x4d47e1,_0x521270)=>this['_updateComment'](_0x521270)),this['on']('removeComment',(_0x2d2ae3,_0xa39d2e)=>this['_removeComment'](_0xa39d2e)),this['on']('addComment',(_0x3ddba0,{threadId:_0x50b741,isFromAdapter:_0x1f43a0})=>{if(_0x1f43a0)return;const _0x391f10=this['getCommentThread'](_0x50b741),_0x28254a=_0x391f10&&this['_threadToController']['get'](_0x391f10);_0x28254a&&_0x28254a['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x48f90a,'change:activeAnnotations',(_0x2f89c3,_0x591383,_0xec6630)=>{const _0x52cd0c=Array['from'](_0xec6630)['map'](_0x83bfb6=>this['_viewToController']['get'](_0x83bfb6['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x52cd0c?_0x52cd0c['model']:null;});}set['adapter'](_0x465d34){if(this['_adapter'])throw new _0x347fe4('commentsrepository-adapter-already-set');this['_adapter']=_0x465d34;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x2dbcb6=Tt,threadId:_0x201e36=_0x3cd367(),comments:_0x4a66cb=[],unlinkedAt:_0x1cfeb6=null,resolvedAt:_0x5a33e7=null,resolvedBy:_0x19906a=null,target:_0x494be2=null,context:_0xe83ea=null,attributes:_0xf25c5f={},isResolvable:_0x52a318=!0x0,isSubmitted:_0x3eb23f=!0x1,isFromAdapter:_0x31190b=!0x1}={}){return this['fire'](bt('addCommentThread',_0x2dbcb6),{'channelId':_0x2dbcb6,'threadId':_0x201e36,'comments':_0x4a66cb,'unlinkedAt':_0x1cfeb6,'resolvedAt':_0x5a33e7,'resolvedBy':_0x19906a,'target':_0x494be2,'context':_0xe83ea,'attributes':_0xf25c5f,'isFromAdapter':_0x31190b,'isResolvable':_0x52a318,'isSubmitted':_0x3eb23f}),this['getCommentThread'](_0x201e36);}['openNewCommentThread']({channelId:_0x34b081=Tt,threadId:_0x4243f6=_0x3cd367(),target:_0x1a4948,context:_0x562924=null,isResolvable:_0x2899f0=!0x0}){if(this['_readOnlyChannels']['has'](_0x34b081)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x1a4948)throw new _0x347fe4('commentsrepository-missing-target');const _0x3df66f=this['addCommentThread']({'channelId':_0x34b081,'threadId':_0x4243f6,'target':_0x1a4948,'context':_0x562924,'isResolvable':_0x2899f0});if(!_0x3df66f)return null;const _0x2a5b6d=this['_threadToController']['get'](_0x3df66f),_0xee221d=_0x2a5b6d['view']['commentThreadInputView']['commentInputView'],_0x426bd1=this['context']['plugins']['get'](y),_0x1e016e=_0x426bd1['getByInnerView'](_0x2a5b6d['view']);return _0x426bd1['activate'](_0x1e016e),_0xee221d['once']('editorReady',()=>_0xee221d['focus']()),_0x3df66f;}['hasCommentThread'](_0x4cd139){if('string'!=typeof _0x4cd139)throw new _0x347fe4('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x4cd139);}['updateCommentThread']({channelId:_0x5a1221=Tt,threadId:_0x39c27a,context:_0x3ac4c8,unlinkedAt:_0x4fed13,attributes:_0x1214af,isFromAdapter:_0x12d763=!0x1}){return this['fire'](bt('updateCommentThread',_0x5a1221),{'channelId':_0x5a1221,'threadId':_0x39c27a,'context':_0x3ac4c8,'unlinkedAt':_0x4fed13,'attributes':_0x1214af,'isFromAdapter':_0x12d763}),this['getCommentThread'](_0x39c27a);}['getCommentThread'](_0x5492d9){if('string'!=typeof _0x5492d9)throw new _0x347fe4('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x5492d9);}['fetchCommentThread']({channelId:_0x5964ee,threadId:_0x39baa4}={}){const _0x31b3ed=this['getCommentThread'](_0x39baa4);if(_0x31b3ed)return Promise['resolve'](_0x31b3ed);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x347fe4('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x5964ee,'threadId':_0x39baa4})['then'](_0x358513=>this['hasCommentThread'](_0x39baa4)?this['getCommentThread'](_0x39baa4):_0x358513?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x5964ee},_0x358513)):void 0x0)['catch'](_0x320fd2=>{throw console['error'](_0x320fd2),new _0x347fe4('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x4b0119,skipNotAttached:_0xc443ad=!0x1,skipEmpty:_0x4c4573=!0x1,toJSON:_0x1f7f77=!0x1}={}){const _0x5869df=[];for(const _0x126885 of this['_threads']['values']())_0x4b0119&&_0x126885['channelId']!==_0x4b0119||_0xc443ad&&!_0x126885['isAttached']||_0x4c4573&&0x0===_0x126885['length']||_0x5869df['push'](_0x126885);return _0x1f7f77?_0x5869df['map'](_0x46674d=>_0x46674d['toJSON']()):_0x5869df;}['getAnnotationForCommentThread'](_0x3b7bf5){const _0x5ae1d6=this['_threadToController']['get'](_0x3b7bf5);if(!_0x5ae1d6)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x5ae1d6['view'])||null;}['getCommentThreadForAnnotation'](_0x38bef1){const _0x1ecfef=this['_viewToController']['get'](_0x38bef1['innerView']);return _0x1ecfef?_0x1ecfef['model']:null;}['setActiveCommentThread'](_0x3ac2b4){const _0x360330=this['context']['plugins']['get'](y);if(!_0x3ac2b4)return void(this['activeCommentThread']&&_0x360330['deactivateAll']());const _0x4694cb=this['getCommentThread'](_0x3ac2b4);if(!_0x4694cb)throw new _0x347fe4('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x3ac2b4});if(!this['_threadToController']['has'](_0x4694cb))throw new _0x347fe4('commentsrepository-active-not-attached',null,{'threadId':_0x3ac2b4});const _0x3d7e8d=_0x360330['getByInnerView'](this['_threadToController']['get'](_0x4694cb)['view']);_0x360330['activate'](_0x3d7e8d);}['switchReadOnly'](_0x3da386,_0x4467dd){_0x3da386?this['_readOnlyChannels']['add'](_0x4467dd):this['_readOnlyChannels']['delete'](_0x4467dd),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x5f008f){return this['_readOnlyChannels']['has'](_0x5f008f)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x1cd6c6,_0x2b8c5b){return new yt(_0x1cd6c6,_0x2b8c5b);}['setPermissions'](_0x4fa654,_0x372a53=Tt){this['_permissions']['set'](_0x372a53,_0x4fa654),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x3073af=Tt){return this['_permissions']['has'](_0x3073af)?this['_permissions']['get'](_0x3073af):_t;}['_addCommentThread']({channelId:_0x2986df,threadId:_0x3a8893,comments:_0x14b24b,unlinkedAt:_0x3743e4,resolvedAt:_0x4ea3c5,resolvedBy:_0x7bff0c,target:_0x490171,context:_0xe61c8d,attributes:_0x32d439,isFromAdapter:_0x2770ec,isResolvable:_0x144bef,isSubmitted:_0x4f1d28}){if('string'!=typeof _0x3a8893)throw new _0x347fe4('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x3a8893});if(this['hasCommentThread'](_0x3a8893))throw new _0x347fe4('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x3a8893});const _0x119ac7=new pi(this,{'channelId':_0x2986df,'id':_0x3a8893,'context':_0xe61c8d,'attributes':_0x32d439,'unlinkedAt':_0x3743e4,'resolvedAt':_0x4ea3c5,'resolvedBy':_0x7bff0c?this['context']['plugins']['get'](it)['getUser'](_0x7bff0c):null,'isResolvable':_0x144bef,'isSubmitted':_0x4f1d28||_0x2770ec});this['_threads']['set'](_0x3a8893,_0x119ac7);for(const _0x2ff80f of _0x14b24b)_0x119ac7['_add'](this['_createNewComment']({'threadId':_0x3a8893,..._0x2ff80f}));return _0x490171&&_0x119ac7['attachTo'](_0x490171),_0x2770ec||!_0x119ac7['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x2986df,'threadId':_0x3a8893});}['_submitCommentThread']({channelId:_0x28ab22,threadId:_0x19bf35}){if(!this['hasCommentThread'](_0x19bf35))throw new _0x347fe4('commentsrepository-missing-comment-thread',this);const _0x55bf65=this['getCommentThread'](_0x19bf35);if(_0x55bf65['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x4f61ff,comments:_0x13e132,resolvedAt:_0x23a226,resolvedBy:_0x206d9b,context:_0x48d120,attributes:_0x34dc95}=_0x55bf65,_0x4f993f=this['context']['plugins']['get']('PendingActions'),_0x57b47f=_0x4f993f['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x28ab22,'threadId':_0x4f61ff,'comments':_0x13e132['map'](_0x25b090=>_0x25b090['toJSON']()),'resolvedAt':_0x23a226,'resolvedBy':_0x206d9b?_0x206d9b['id']:_0x206d9b,'context':_0x48d120,'attributes':_0x34dc95})['then'](({comments:_0x22b9c2})=>{_0x4f993f['remove'](_0x57b47f);for(const _0x28020d of _0x22b9c2)this['_updateComment']({'channelId':_0x28ab22,'threadId':_0x19bf35,'commentId':_0x28020d['commentId'],'createdAt':_0x28020d['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x34aa11=>{throw console['error'](_0x34aa11),new _0x347fe4('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x3ac31b,target:_0x266f7f}){const _0x543e31=this['getCommentThread'](_0x3ac31b);if(!_0x543e31)throw new _0x347fe4('commentsrepository-attach-missing-comment-thread',this);const _0x5e732c=this['context']['plugins']['get']('PendingActions'),_0x4c636e=this['context']['plugins']['get'](y),_0x1d8648=this['_createCommentThreadView'](_0x543e31),_0x2b6ad2=new yt(_0x543e31,_0x1d8648);let _0x1d0f9e=null;_0x1d8648['on']('change:isDirty',(_0x3a6ea3,_0x322219,_0xeee0af)=>{_0xeee0af?_0x1d0f9e=_0x5e732c['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x1d0f9e&&(_0x5e732c['remove'](_0x1d0f9e),_0x1d0f9e=null);}),this['_threadToController']['set'](_0x543e31,_0x2b6ad2),this['_viewToController']['set'](_0x1d8648,_0x2b6ad2);const _0x943f1e=new E(this['context']['locale'],_0x1d8648);_0x943f1e['bind']('length')['to'](_0x1d8648),_0x943f1e['bind']('isDirty')['to'](_0x1d8648,'isDirty',_0x1d8648,'length',(_0x7a67de,_0x2f7860)=>_0x7a67de||!_0x2f7860),_0x943f1e['bind']('isActive')['to'](_0x1d8648),_0x943f1e['type']='comment';const _0x114814=new T({'view':_0x943f1e,'target':_0x266f7f,'type':'comment','isVisible':!_0x543e31['archivedAt']});return _0x1d8648['on']('escape',()=>{_0x114814['fire']('escape');}),this['_bindAnnotationToEditors'](_0x1d8648,_0x114814),_0x4c636e['add'](_0x114814),_0x114814;}['_bindAnnotationToEditors'](_0x559742,_0x1bfc49){this['listenTo'](_0x559742,'editorReady',(_0x496ccd,_0x4028ed)=>{const _0x560b88=_0x4028ed['ui']['view']['body']['bodyCollectionContainer'];_0x1bfc49['focusableElements']['add'](_0x560b88),this['context']instanceof _0x556455&&this['context']['ui']['focusTracker']['add'](_0x560b88);},{'priority':'highest'}),this['listenTo'](_0x559742,'editorDestroyed',(_0xfaec91,_0x1b9d00)=>{const _0x5d75f0=_0x1b9d00['ui']['view']['body']['bodyCollectionContainer'];_0x1bfc49['focusableElements']['has'](_0x5d75f0)&&_0x1bfc49['focusableElements']['remove'](_0x5d75f0),this['context']instanceof _0x556455&&this['context']['ui']['focusTracker']['remove'](_0x5d75f0);});}['_unbindEditors'](_0x782dc5){this['stopListening'](_0x782dc5,'editorReady'),this['stopListening'](_0x782dc5,'editorDestroyed');}['_createCommentThreadView'](_0x30dbdb){const _0x552448=this['context']['plugins']['get'](it),{config:_0x555b90,locale:_0x24108d}=this['context'],_0xe4da57=lt(_0x555b90['get']('locale'),_0x24108d);return new(0x0,(_0x555b90['get']('comments'))['CommentThreadView'])(_0x24108d,_0x30dbdb,_0x552448['me'],{'editorConfig':{..._0x555b90['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x555b90['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x555b90['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x555b90['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x555b90['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xe4da57,'CommentView':_0x555b90['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x36bc59,channelId:_0x170578,resolvedAt:_0x3e7bdb,resolvedBy:_0x2b58d1,isFromAdapter:_0x1bcd63}){if(!this['hasCommentThread'](_0x36bc59))throw new _0x347fe4('commentsrepository-missing-comment-thread',null,{'threadId':_0x36bc59});const _0x20ca44=this['getCommentThread'](_0x36bc59);if(_0x20ca44['isResolved'])throw new _0x347fe4('commentsrepository-resolved-comment-thread',null,{'threadId':_0x36bc59});const _0x3664af=this['context']['plugins']['get'](it);if(_0x20ca44['resolvedBy']=_0x3664af['getUser'](_0x2b58d1),_0x20ca44['resolvedAt']=_0x3e7bdb,_0x1bcd63||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x5594b9=this['context']['plugins']['get']('PendingActions'),_0x3c92f2=_0x5594b9['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x170578,'threadId':_0x36bc59})['then'](({resolvedAt:_0x1efc8,resolvedBy:_0x37775b})=>{_0x5594b9['remove'](_0x3c92f2),_0x20ca44['resolvedBy']['id']!==_0x37775b&&(_0x20ca44['resolvedBy']=_0x3664af['getUser'](_0x37775b)),_0x20ca44['resolvedAt']=_0x1efc8;})['catch'](_0x1b9a4b=>{throw console['error'](_0x1b9a4b),new _0x347fe4('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x171e2a,channelId:_0x1801d0,isFromAdapter:_0x3826c0}){if(!this['hasCommentThread'](_0x171e2a))throw new _0x347fe4('commentsrepository-missing-comment-thread',null,{'threadId':_0x171e2a});const _0x14e249=this['getCommentThread'](_0x171e2a);if(!_0x14e249['isResolved'])throw new _0x347fe4('commentsrepository-reopen-comment-thread',null,{'threadId':_0x171e2a});if(_0x14e249['resolvedBy']=null,_0x14e249['resolvedAt']=null,_0x3826c0||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x33a297=this['context']['plugins']['get']('PendingActions'),_0x39224c=_0x33a297['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x1801d0,'threadId':_0x171e2a})['then'](()=>_0x33a297['remove'](_0x39224c))['catch'](_0x33d58d=>{throw console['error'](_0x33d58d),new _0x347fe4('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x41288a,isFromAdapter:_0x374e72}){const _0x543be9=this['getCommentThread'](_0x41288a);if(!_0x543be9)throw new _0x347fe4('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x41288a),this['_threads']['delete'](_0x41288a),!_0x543be9['isSubmitted']||_0x374e72||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x3198d5=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4717a1}=_0x543be9,_0x3ddbca=_0x3198d5['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x4717a1,'threadId':_0x41288a})['then'](()=>_0x3198d5['remove'](_0x3ddbca))['catch'](_0x2e8c03=>{throw console['error'](_0x2e8c03),new _0x347fe4('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x1f2415,unlinkedAt:_0x111be3,context:_0x523e8b,attributes:_0x1332af,isFromAdapter:_0x2dd690}){if('string'!=typeof _0x1f2415)throw new _0x347fe4('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x1f2415});if(!this['hasCommentThread'](_0x1f2415))throw new _0x347fe4('commentsrepository-missing-comment-thread',null,{'threadId':_0x1f2415});const _0x2d39ba=this['getCommentThread'](_0x1f2415);let _0x27a245=!0x1;if(void 0x0!==_0x523e8b&&_0x2d39ba['context']!==_0x523e8b&&(_0x2d39ba['context']=_0x523e8b,_0x27a245=!0x0),void 0x0!==_0x111be3&&_0x2d39ba['unlinkedAt']!==_0x111be3&&(_0x2d39ba['unlinkedAt']=_0x111be3,_0x27a245=!0x0),_0x1332af&&!wt(_0x1332af,_0x2d39ba['attributes'])&&(_0x2d39ba['attributes']=_0x1332af,_0x27a245=!0x0),!_0x27a245)return Promise['resolve']();if(!_0x2d39ba['isSubmitted']||_0x2dd690||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x94d0f2=this['context']['plugins']['get']('PendingActions'),{channelId:_0x535f1d}=_0x2d39ba,_0x346320=_0x94d0f2['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x535f1d,'threadId':_0x1f2415,'context':_0x523e8b,'unlinkedAt':_0x111be3,'attributes':_0x1332af})['then'](()=>_0x94d0f2['remove'](_0x346320))['catch'](_0x35d403=>{throw console['error'](_0x35d403),new _0x347fe4('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x463bde){const _0xd98e4c=this['context']['plugins']['get'](y),_0x5e664a=this['getCommentThread'](_0x463bde);if(_0x5e664a['_isAttached']=!0x1,this['_threadToController']['has'](_0x5e664a)){const _0xa198c5=this['_threadToController']['get'](_0x5e664a),_0x4bee3f=_0xa198c5['view'],_0x5acef2=_0xd98e4c['getByInnerView'](_0x4bee3f);this['_threadToController']['delete'](_0x5e664a),this['_viewToController']['delete'](_0x4bee3f),_0x5acef2&&_0xd98e4c['remove'](_0x5acef2),_0xa198c5['destroy'](),_0x4bee3f['destroy']()['then'](()=>{this['_unbindEditors'](_0x4bee3f);});}}['_updateActiveAnnotation']({threadId:_0x6e7794,resolvedAt:_0x3a13c3,unlinkedAt:_0x50f405}){const _0x2fe86c=!!_0x3a13c3,_0x31d0f4=this['context']['plugins']['get'](y),_0x2e970b=this['getCommentThread'](_0x6e7794);if(this['_threadToController']['has'](_0x2e970b)){const _0x54fc3a=this['_threadToController']['get'](_0x2e970b)['view'],_0x40faca=_0x31d0f4['getByInnerView'](_0x54fc3a);_0x40faca&&(_0x2fe86c&&_0x31d0f4['_removeActiveAnnotation'](_0x40faca),_0x50f405?_0x40faca['isVisible']=!0x1:_0x40faca['refreshVisibility']());}}['_getExternalAuthor'](_0x3dc60d){const _0x4044ec=this['context']['plugins']['get'](it),_0x2db773=pt('external:'+_0x3dc60d),_0x4fdd10=_0x4044ec['getUser'](_0x2db773);return _0x4fdd10||_0x4044ec['addUser']({'id':_0x2db773,'name':_0x3dc60d});}['_createNewComment']({threadId:_0x2f13cb,commentId:_0x5ee66f=_0x3cd367(),content:_0x5c4378,authorId:_0x31f81e,createdAt:_0x242e92,attributes:_0x5d2cd7}){if('string'!=typeof _0x5ee66f)throw new _0x347fe4('commentsrepository-invalid-commentid');if('string'!=typeof _0x31f81e)throw new _0x347fe4('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x5c4378||!_0x5c4378['trim']())throw new _0x347fe4('commentsrepository-invalid-comment-content');const _0x3c4a33=this['context']['plugins']['get'](it)['getUser'](_0x31f81e);if(!_0x3c4a33)throw new _0x347fe4('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x31f81e});let _0xe12839=null,_0xa9d85a=_0x242e92;return _0x5d2cd7?.['@external']&&(_0xe12839=this['_getExternalAuthor'](_0x5d2cd7['@external']['authorName']),_0xa9d85a=new Date(_0x5d2cd7['@external']['createdAt'])),new wi(this,{'threadId':_0x2f13cb,'id':_0x5ee66f,'author':_0xe12839||_0x3c4a33,'creator':_0x3c4a33,'content':_0x5c4378,'createdAt':_0x242e92,'authoredAt':_0xa9d85a,'attributes':_0x5d2cd7});}['_addComment'](_0x46baec){let {threadId:_0x23bf78,content:_0x5ef8b0,attributes:_0x44fcef,isFromAdapter:_0x5cd045}=_0x46baec;const _0x1f4426=this['getCommentThread'](_0x46baec['threadId']);if(!_0x1f4426)throw new _0x347fe4('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x19d6e0=this['_createNewComment'](_0x46baec),{id:_0x276f53}=_0x19d6e0;if(_0x1f4426['_add'](_0x19d6e0),_0x5cd045||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x1f4426['isSubmitted'])return Promise['resolve']();const _0xe5cac=this['context']['plugins']['get']('PendingActions'),{channelId:_0x229d23}=_0x1f4426,_0x823c24=_0xe5cac['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x44fcef||(_0x44fcef={}),this['adapter']['addComment']({'channelId':_0x229d23,'threadId':_0x23bf78,'commentId':_0x276f53,'content':_0x5ef8b0,'attributes':_0x44fcef})['then'](_0x4c4d81=>{_0xe5cac['remove'](_0x823c24),_0x4c4d81&&this['_updateComment']({'channelId':_0x229d23,'threadId':_0x23bf78,'commentId':_0x276f53,'createdAt':_0x4c4d81['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x188b64=>{throw console['error'](_0x188b64),new _0x347fe4('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x352a09,commentId:_0x165c35,content:_0xe4e82a,createdAt:_0xe2c5d7,attributes:_0x910b,isFromAdapter:_0x116c31}){if(void 0x0!==_0xe4e82a&&('string'!=typeof _0xe4e82a||!_0xe4e82a['trim']()['length']))throw new _0x347fe4('commentsrepository-update-comment-invalid-content');const _0x245814=this['getCommentThread'](_0x352a09),_0x5f0341=_0x245814['getComment'](_0x165c35);if(!_0x5f0341)throw new _0x347fe4('commentsrepository-update-missing-comment',this);let _0x6c591b=!0x1;if(_0xe4e82a&&_0xe4e82a!==_0x5f0341['content']&&(_0x5f0341['isEditable']||_0x116c31)&&(_0x5f0341['content']=_0xe4e82a,_0x6c591b=!0x0),_0xe2c5d7&&_0xe2c5d7!==_0x5f0341['createdAt']&&(_0x5f0341['createdAt']=_0xe2c5d7,_0x5f0341['attributes']&&_0x5f0341['attributes']['@external']||(_0x5f0341['authoredAt']=_0xe2c5d7),_0x6c591b=!0x0),_0x910b&&!wt(_0x910b,_0x5f0341['attributes'])&&(_0x5f0341['attributes']=_0x910b,_0x6c591b=!0x0),!_0x6c591b)return Promise['resolve']();if(_0x245814['fire']('commentUpdated'),_0x116c31||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x48798b=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4914ef}=this['getCommentThread'](_0x5f0341['threadId']),_0x4177ab=_0x48798b['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x4914ef,'threadId':_0x352a09,'commentId':_0x165c35,'content':_0xe4e82a,'attributes':_0x910b})['then'](()=>_0x48798b['remove'](_0x4177ab))['catch'](_0x3c1b14=>{throw console['error'](_0x3c1b14),new _0x347fe4('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x57bead,commentId:_0x5d1629,isFromAdapter:_0x4bccd8}){const _0x4d579b=this['getCommentThread'](_0x57bead),_0x5aed7f=_0x4d579b['getComment'](_0x5d1629);if(!_0x5aed7f)throw new _0x347fe4('commentsrepository-remove-missing-comment',this);if(_0x4d579b['_remove'](_0x5aed7f),_0x4bccd8||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x3bc12e=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2658b3}=_0x4d579b,_0x31e037=_0x3bc12e['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x2658b3,'threadId':_0x57bead,'commentId':_0x5d1629})['then'](()=>_0x3bc12e['remove'](_0x31e037))['catch'](_0x22243e=>{throw console['error'](_0x22243e),new _0x347fe4('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
+ _0x279178(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x408c3a,_0x3f38ff){super();const _0x554ce8=_0x3f38ff['isResolvable'];this['channelId']=_0x3f38ff['channelId'],this['id']=_0x3f38ff['id'],this['comments']=new _0x1392af(),this['_repository']=_0x408c3a,this['_isAttached']=!0x1,this['_isSubmitted']=_0x3f38ff['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x408c3a,'_permissions',_0x408c3a,'_readOnlyChannels',()=>_0x408c3a['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x408c3a,'_permissions',()=>_0x408c3a['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x408c3a,'_permissions',()=>{const _0x2cff6c=_0x408c3a['getPermissions'](this['channelId']);return _0x2cff6c['write']||_0x2cff6c['admin'];}),this['bind']('isResolvable')['to'](_0x408c3a,'_permissions',()=>_0x554ce8&&_0x408c3a['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x3f38ff['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x352e5c,_0x29ba99)=>_0x352e5c?_0x29ba99?_0x352e5c<_0x29ba99?_0x352e5c:_0x29ba99:_0x352e5c:_0x29ba99),this['set']('unlinkedAt',_0x3f38ff['unlinkedAt']||null),this['set']('resolvedAt',_0x3f38ff['resolvedAt']||null),this['set']('resolvedBy',_0x3f38ff['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0xc9bf70=>!!_0xc9bf70),this['set']('attributes',_0x3f38ff['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x5c330f,_0xa44053)=>_0x5c330f+_0xa44053['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x47301a,id:_0x398c55}=this;this['_repository']['fire'](bt('submitCommentThread',_0x47301a),{'channelId':_0x47301a,'threadId':_0x398c55});}['setUnlinkedAt'](_0x13bdd0){this['_update']({'unlinkedAt':_0x13bdd0});}['resolve']({resolvedAt:_0x15838b=new Date(),resolvedBy:_0x541ef8=null,isFromAdapter:_0x506e8a=!0x1}={}){const _0x52dcf6=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0xa2fc5b,id:_0x5bd100}=this;this['_repository']['fire'](bt('resolveCommentThread',_0xa2fc5b),{'channelId':_0xa2fc5b,'threadId':_0x5bd100,'resolvedAt':_0x15838b,'resolvedBy':_0x541ef8||_0x52dcf6['id'],'isFromAdapter':_0x506e8a});}['reopen']({isFromAdapter:_0x132731=!0x1}={}){const {channelId:_0x4b64cc,id:_0x4bf973}=this;this['_repository']['fire'](bt('reopenCommentThread',_0x4b64cc),{'channelId':_0x4b64cc,'threadId':_0x4bf973,'isFromAdapter':_0x132731});}['setContext'](_0x57b944){this['context']||this['_update']({'context':_0x57b944});}['setAttribute'](_0x3574f8,_0x5a0581){const _0x10edcd=It(this['attributes']);At(_0x10edcd,_0x3574f8,_0x5a0581),this['_update']({'attributes':_0x10edcd});}['removeAttribute'](_0x5668f1){const _0x361373=It(this['attributes']);Ct(_0x361373,_0x5668f1),this['_update']({'attributes':_0x361373});}['remove']({isFromAdapter:_0x4149e0=!0x1}={}){const {channelId:_0x1c2701,id:_0x5ce550}=this;this['_repository']['fire'](bt('removeCommentThread',_0x1c2701),{'channelId':_0x1c2701,'threadId':_0x5ce550,'isFromAdapter':_0x4149e0});}['attachTo'](_0xf133fe){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0xf133fe});}['addComment'](_0x296173){const {channelId:_0x3f6d7a,id:_0x267062}=this;this['_repository']['fire'](bt('addComment',_0x3f6d7a,_0x267062),Object['assign']({'channelId':_0x3f6d7a,'threadId':_0x267062},_0x296173));}['getComment'](_0x2af09e){if('string'!=typeof _0x2af09e)throw new _0x347fe4('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x2af09e});return this['comments']['get'](_0x2af09e);}['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'](_0x368b5f=>_0x368b5f['toJSON']()),'attributes':this['attributes']};}['_add'](_0x529f28){return this['listenTo'](_0x529f28,'change:authoredAt',()=>{const _0x3b33a9=this['_findOptimalIndex'](_0x529f28),_0x373607=this['comments'];_0x3b33a9-0x1!=_0x373607['getIndex'](_0x529f28)&&_0x3b33a9+0x1!=_0x373607['getIndex'](_0x529f28)&&(this['_remove'](_0x529f28),this['_add'](_0x529f28));}),this['comments']['add'](_0x529f28,this['_findOptimalIndex'](_0x529f28));}['_update'](_0x3c9bc5){const {channelId:_0x41c64f,id:_0x4666c3}=this;this['_repository']['fire'](bt('updateCommentThread',_0x41c64f),{..._0x3c9bc5,'channelId':_0x41c64f,'threadId':_0x4666c3});}['_remove'](_0x15f0a4){return this['stopListening'](_0x15f0a4),_0x15f0a4['destroy'](),this['comments']['remove'](_0x15f0a4);}['_findOptimalIndex'](_0x3b67ef){const _0x597f3b=this['comments']['find'](_0x5a9c29=>new Date(_0x5a9c29['authoredAt'])['getTime']()>new Date(_0x3b67ef['authoredAt'])['getTime']());return _0x597f3b?this['comments']['getIndex'](_0x597f3b):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
+ _0x279178(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x1b9113,_0x9e9e9c){super();const _0x1534a0=_0x1b9113['context']['plugins']['get'](it)['me'],_0x47a0f7=_0x1b9113['getCommentThread'](_0x9e9e9c['threadId']),_0x4257ea=0x0===_0x47a0f7['comments']['length'],_0x18d549=_0x1534a0===_0x9e9e9c['author'];this['id']=_0x9e9e9c['id'],this['threadId']=_0x9e9e9c['threadId'],this['author']=_0x9e9e9c['author'],this['creator']=_0x9e9e9c['creator'],this['isExternal']=Boolean(_0x9e9e9c['attributes']&&_0x9e9e9c['attributes']['@external']),this['set']('content',_0x9e9e9c['content']),this['createdAt']=_0x9e9e9c['createdAt']||new Date(),this['set']('authoredAt',_0x9e9e9c['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x47a0f7,'resolvedAt'),this['set']('attributes',_0x9e9e9c['attributes']||{}),this['bind']('isEditable')['to'](_0x1b9113,'_permissions',()=>{const _0x1cb71b=_0x1b9113['getPermissions'](_0x47a0f7['channelId'])['write'],_0x1c5432=_0x1b9113['getPermissions'](_0x47a0f7['channelId'])['modifyAll'];return _0x18d549&&_0x1cb71b||!_0x18d549&&_0x1c5432;}),this['bind']('isRemovable')['to'](_0x47a0f7,'isRemovable',_0x1b9113,'_permissions',_0xe17aac=>{const _0x427062=_0x1b9113['getPermissions'](_0x47a0f7['channelId'])['write'],_0x3b7ac1=_0x1b9113['getPermissions'](_0x47a0f7['channelId'])['modifyAll'];return _0x18d549&&_0x427062||_0xe17aac&&_0x4257ea||!_0x18d549&&_0x3b7ac1&&!_0x4257ea;}),this['bind']('isReadOnly')['to'](_0x47a0f7,'isReadOnly'),this['_repository']=_0x1b9113;}get['weight'](){return Math['max'](function(_0x4b4e1d){const _0x5372e9=document['createElement']('div');return _0x5372e9['innerHTML']=_0x4b4e1d,_0x5372e9['textContent']['length'];}(this['content']),0xc8);}['update'](_0x162f3a){const {threadId:_0x5ca670,id:_0x1f2ce7}=this;if(!this['_repository']['hasCommentThread'](_0x5ca670))throw new _0x347fe4('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x5dcb93}=this['_repository']['getCommentThread'](_0x5ca670);this['_repository']['fire'](bt('updateComment',_0x5dcb93,_0x5ca670),{'channelId':_0x5dcb93,'threadId':_0x5ca670,'commentId':_0x1f2ce7,..._0x162f3a});}['setAttribute'](_0x4e7ce5,_0x331f61){const _0x15219e=It(this['attributes']);At(_0x15219e,_0x4e7ce5,_0x331f61),this['update']({'attributes':_0x15219e});}['removeAttribute'](_0x6760b3){const _0x40acdf=It(this['attributes']);Ct(_0x40acdf,_0x6760b3),this['update']({'attributes':_0x40acdf});}['remove'](_0x5b812c={}){if(!_0x5b812c['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x2a28b9,id:_0x522cde}=this;if(!this['_repository']['hasCommentThread'](_0x2a28b9))throw new _0x347fe4('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x287593}=this['_repository']['getCommentThread'](_0x2a28b9);this['_repository']['fire'](bt('removeComment',_0x287593,_0x2a28b9),{'channelId':_0x287593,'threadId':_0x2a28b9,'commentId':_0x522cde,..._0x5b812c});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x4d650c,..._0x36dbd6){for(const _0xcaaf80 of _0x36dbd6)void 0x0!==_0xcaaf80&&(_0x4d650c+=':'+String(_0xcaaf80));return _0x4d650c;}class rt extends _0x557c6a{constructor(_0x23fc3d){super(_0x23fc3d),this['set']('hasContent',!0x1);}['refresh'](){const _0x4dcab6=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x3f4356 of _0x4dcab6['getRanges']())if(this['_hasContent'](_0x3f4356))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x18e124=_0x3cd367(),ranges:_0x56099d,comment:_0x4f33e1}={}){const _0x136a18=this['editor']['model'],_0x548888=_0x56099d??Array['from'](_0x136a18['document']['selection']['getRanges']()),_0x24e982=[];for(const _0x24dcc3 of _0x548888)this['_hasContent'](_0x24dcc3)&&_0x24e982['push'](this['_trimToContent'](_0x24dcc3));if(!_0x24e982['length'])throw new _0x347fe4('addcommentthreadcommand-incorrect-ranges',null);_0x4f33e1&&this['_createCommentThread'](_0x18e124,_0x4f33e1),this['_createMarkersFromRanges'](_0x18e124,_0x24e982,!!_0x4f33e1);}['_createMarkersFromRanges'](_0x1437d1,_0xbbb4f1,_0x2b029e){this['editor']['model']['change'](_0x47b708=>{for(const _0x363870 of _0xbbb4f1){const _0x65dc7c=_0x3cd367()['substr'](0x1,0x5),_0x54ef62='comment:'+_0x1437d1+':'+_0x65dc7c;_0x47b708['addMarker'](_0x54ef62,{'range':_0x363870,'usingOperation':_0x2b029e,'affectsData':_0x2b029e});}});}['_createCommentThread'](_0x3cfb03,_0x122bd1){const _0x327c9b=this['editor']['plugins']['get']('CommentsRepository'),_0x154f67=this['editor']['config']['get']('collaboration.channelId'),_0x598561=this['editor']['plugins']['get']('Users')['me'];if(!_0x598561)throw new _0x347fe4('addcommentthreadcommand-user-not-found',null);_0x327c9b['addCommentThread']({'threadId':_0x3cfb03,'channelId':_0x154f67,'comments':[{'authorId':_0x598561['id'],'content':_0x122bd1,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x234270){for(const _0x5c5f81 of _0x234270['getItems']())if(this['_itemIsContent'](_0x5c5f81))return!0x0;return!0x1;}['_itemIsContent'](_0x291008){return _0x291008['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x291008)&&!_0x291008['is']('element','tableCell');}['_trimToContent'](_0x149ea9){const _0x352338=_0x80872d=>!this['_itemIsContent'](_0x80872d['item']),_0x3c1877=_0x149ea9['start']['getLastMatchingPosition'](_0x352338),_0x2b2095=_0x149ea9['end']['getLastMatchingPosition'](_0x352338,{'direction':'backward'});return this['editor']['model']['createRange'](_0x3c1877,_0x2b2095);}}class b extends _0x329b6e{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31dcb3){super(_0x31dcb3),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x57a6cf=this['editor'],_0x5b58fc=_0x57a6cf['model']['document']['selection'],_0x2bdfa9=_0x465268(()=>this['refreshSelectedViews'](),0xa);_0x5b58fc['on']('change:range',(_0x23d6fc,_0x440123)=>{_0x440123['directChange']&&(_0x2bdfa9['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x57a6cf['editing']['view']['document'],'change:isFocused',(_0x9162cf,_0x36428b,_0x2450dc)=>{_0x2450dc&&_0x2bdfa9();}),this['listenTo'](_0x57a6cf['ui']['focusTracker'],'change:isFocused',(_0x4113fd,_0x412702,_0x55da95)=>{_0x55da95||_0x57a6cf['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x2e05fd=>this['_editorAnnotationsData']['has'](_0x2e05fd['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x33df26){if(this['_editorAnnotations']['has'](_0x33df26['view']))return;this['_editorAnnotations']['add'](_0x33df26['view']),this['editor']['ui']['focusTracker']['add'](_0x33df26['view']['element']);const _0x4d4925=this['editor']['plugins']['get'](y);this['listenTo'](_0x4d4925['collection'],'remove',(_0x59c386,_0x54dbe6)=>{this['editor']['ui']['focusTracker']['remove'](_0x54dbe6['view']['element']),this['_editorAnnotations']['delete'](_0x54dbe6['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0xcbdce8){if('function'!=typeof _0xcbdce8)throw new _0x347fe4('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0xcbdce8);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x3e5677,annotations:_0x52f0d4}){const _0x276f82=[],_0x4b8ee4=this['editor']['model']['document']['selection'],_0x5f38d8=Array['from'](_0x4b8ee4['getRanges']());for(const [_0x5e6c80,_0x135744]of this['_editorAnnotationsData']){const _0x4c6446=_0x33ee2a(_0x135744),_0x53d4ba=_0x52f0d4['getByInnerView'](_0x5e6c80);_0x4c6446&&_0x53d4ba&&_0x276f82['push']({'annotation':_0x53d4ba,'range':_0x4c6446});}function _0x33ee2a(_0x5bb467){for(const _0x1e8246 of _0x5bb467)for(const _0x37fb69 of _0x5f38d8)if(_0x1e8246['containsRange'](_0x37fb69,!_0x4b8ee4['isCollapsed']))return _0x1e8246;return null;}return _0x276f82['sort']((_0x2f7824,_0x336b20)=>{const _0x3e9e8c=_0x2f7824['range'],_0x1d4210=_0x336b20['range'];if(!_0x3e9e8c['isEqual'](_0x1d4210)){if(_0x3e9e8c['containsRange'](_0x1d4210,!0x0))return 0x1;if(_0x1d4210['containsRange'](_0x3e9e8c,!0x0))return-0x1;}return _0x2f7824['annotation']==_0x3e5677?-0x1:_0x336b20['annotation']==_0x3e5677?0x1:0x0;})['map'](_0x1a4467=>_0x1a4467['annotation']);}get['_editorAnnotationsData'](){const _0x4e243c=new Map();for(const _0x4d32b7 of Array['from'](this['_dataCollectors']))for(const [_0x100a15,_0x3b7dd9]of _0x4d32b7())_0x4e243c['set'](_0x100a15,_0x3b7dd9);return _0x4e243c;}}class st extends _0x329b6e{['afterInit'](){const _0x3c7ad6=this['editor'];if(!_0x3c7ad6['plugins']['has']('RestrictedEditingModeEditing'))return;_0x3c7ad6['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x329b6e{constructor(_0x225d6a){super(_0x225d6a),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x2ab9d8=this['editor'],_0x5a1c60=_0x2ab9d8['commands']['get']('importWord'),_0x3a1dcd=_0x2ab9d8['plugins']['get'](it);_0x5a1c60&&(_0x5a1c60['on']('execute',(_0x53e30d,[,_0x1ee8e0])=>{_0x1ee8e0['collaboration_features']={'comments':!0x0,'user_id':_0x3a1dcd['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x5a1c60,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x5c2677,_0x39406a){const {comment_threads:_0x5777e8}=_0x39406a;_0x5777e8&&_0x5777e8['forEach'](({thread_id:_0x1f0481,comments:_0x291434,is_resolved:_0x15efc7})=>{const _0x277098=new Date(),_0x4a9ac6=_0x291434['map'](({author:_0x16fd5c,content:_0x48de9a,created_at:_0x53cb3f})=>({'content':_0x48de9a,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x277098,'attributes':{'@external':{'authorName':_0x16fd5c,'createdAt':_0x53cb3f?new Date(_0x53cb3f):new Date(),'source':'importWord'}}})),_0xec41b3=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0xec41b3,'threadId':_0x1f0481,'comments':_0x4a9ac6,'resolvedAt':_0x15efc7?_0x277098:null});});}}class at extends _0x329b6e{constructor(_0xc3d272){super(_0xc3d272),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x4353b5=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x4353b5,'contentInsertion',(_0x2de483,_0x11e631)=>this['_removeMarkersWithoutThreads'](_0x11e631['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x5364e2){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x5364e2;const _0x176b52=this['editor']['plugins']['get']('CommentsRepository');for(const _0x174a43 of _0x5364e2['keys']()){const [_0x4a5ed4,_0x911a0]=_0x174a43['split'](':');'comment'!=_0x4a5ed4||_0x176b52['hasCommentThread'](_0x911a0)||_0x5364e2['delete'](_0x174a43);}return _0x5364e2;}['_registerMarkerInClipboardPipeline'](){const _0x2c9a4d=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x2fba50=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x2fba50&&_0x2c9a4d['_registerMarkerToCopy']('comment',_0x2fba50);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x307a72){switch(_0x307a72){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 _0x329b6e{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x2af9cd,_0x344cd5)=>{if(!_0x344cd5['options']['showCommentHighlights'])return null;if(_0x344cd5['options']['ignoreResolvedComments']){const {id:_0x182b6c}=er(_0x2af9cd['markerName']),_0x5274e0=this['editor']['plugins']['get'](o);if(_0x5274e0['getCommentThread'](_0x182b6c)?.['isResolved']&&_0x2af9cd['item'])return _0x344cd5['consumable']['consume'](_0x2af9cd['item'],'addMarker:'+_0x2af9cd['markerName']),_0x344cd5['consumable']['consume'](_0x2af9cd['item'],'removeMarker:'+_0x2af9cd['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3c5ca9=>{_0x3c5ca9['on']('addMarker:comment',(_0x1f5144,_0x1c0225,_0x52ce9b)=>{if(!_0x52ce9b['options']['showCommentHighlights'])return;const _0x3cf1dd=_0x1c0225['item'];if(!_0x3cf1dd)return;const _0x52bd45=_0x52ce9b['mapper']['toViewElement'](_0x3cf1dd);this['editor']['model']['schema']['isObject'](_0x3cf1dd)&&_0x52bd45&&!_0x52bd45['getCustomProperty']('widget')&&_0x52bd45['is']('containerElement')&&_0x1fc28a(_0x52bd45,_0x52ce9b['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x27b4a8,{writer:_0x28cb29,options:_0x493dff})=>{if(!_0x493dff['showCommentHighlights'])return null;const _0x25f5f7=_0x28cb29['createContainerElement']('div'),_0x188ab2=_0x28cb29['createEmptyElement']('hr');return _0x28cb29['addClass']('ck-horizontal-line',_0x25f5f7),_0x28cb29['insert'](_0x28cb29['createPositionAt'](_0x25f5f7,0x0),_0x188ab2),_0x25f5f7;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x3b56b2,{writer:_0x5c5143,options:_0x59d1ce})=>{if(!_0x59d1ce['showCommentHighlights'])return null;const _0x3c3ab6=_0x5c5143['createContainerElement']('span'),_0x4fba02=_0x5c5143['createEmptyElement']('img');return _0x5c5143['addClass']('image-inline',_0x3c3ab6),_0x5c5143['insert'](_0x5c5143['createPositionAt'](_0x3c3ab6,0x0),_0x4fba02),_0x3c3ab6;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xabf4ce,{writer:_0x153a51,options:_0x987ebd})=>{if(_0x987ebd['showCommentHighlights'])return _0x153a51['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5b822f,_0x57f90a,_0x277346)=>{_0x277346['options']['showCommentHighlights']&&_0x5b822f['stop']();},{'priority':'high'});}}class r extends _0x329b6e{static get['requires'](){return[o,b,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2e34af){super(_0x2e34af),this['set']('isThreadsLoadingPaused',!0x0),_0x2e34af['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x23db6c,_0x193f28,_0x7cfea3,_0x3ee1f9)=>{const _0x3d6a12=_0x2e34af['plugins']['get'](o),_0x55f16b=_0x7cfea3?er(_0x7cfea3)['id']:null;_0x2e34af['model']['change'](()=>{if(_0x55f16b){const _0x258166=this['getAllMarkersForId'](_0x55f16b);for(const _0x277a37 of _0x258166)_0x2e34af['editing']['reconvertMarker'](_0x277a37);}if(_0x3ee1f9){const {id:_0x1dbafa}=er(_0x3ee1f9),_0x119912=_0x3d6a12['getCommentThread'](_0x1dbafa);if(_0x119912&&_0x119912['unlinkedAt'])return;if(_0x119912&&!_0x119912['isAttached'])return;const _0x3f326c=this['getAllMarkersForId'](_0x1dbafa);for(const _0x187e18 of _0x3f326c)_0x2e34af['editing']['reconvertMarker'](_0x187e18);}}),_0x55f16b&&this['scrollToThreadMarker'](_0x55f16b);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x278140=this['editor'],_0x54a01e=_0x278140['plugins']['get'](o),_0xfcbd4a=_0x278140['config']['get']('collaboration.channelId'),_0x5a7b9e=_0x54a01e['getCommentThreads']()['filter'](_0x58855d=>_0x58855d['channelId']!==_0xfcbd4a);_0x278140['commands']['add']('addCommentThread',new rt(_0x278140)),this['listenTo'](_0x278140,'change:isReadOnly',(_0x137e10,_0x29afb1,_0x3ad053)=>{_0x54a01e['switchReadOnly'](_0x3ad053,_0x278140['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x54a01e,ft('addCommentThread',_0xfcbd4a),(_0x909cef,{threadId:_0x4dcb6b})=>{const _0x149fa1=this['editor']['plugins']['get'](o)['getCommentThread'](_0x4dcb6b);_0x149fa1?.['unlinkedAt']&&this['_attachArchivedThread'](_0x4dcb6b);}),this['listenTo'](_0x54a01e,ft('removeCommentThread',_0xfcbd4a),(_0x354cf7,{threadId:_0xaba62f})=>{_0x278140['model']['enqueueChange']({'isUndoable':!0x1},_0x4a32eb=>{const _0x1d3af3=this['getAllMarkersForId'](_0xaba62f);for(const _0x57cdca of _0x1d3af3)_0x4a32eb['removeMarker'](_0x57cdca);});}),this['listenTo'](_0x54a01e,ft('resolveCommentThread',_0xfcbd4a),(_0x58fb7d,{threadId:_0x36c208})=>{(this['_reconvertMarkers'](_0x36c208),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x36c208)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x54a01e,ft('reopenCommentThread',_0xfcbd4a),(_0x11c77b,{threadId:_0x13c450})=>{this['_reconvertMarkers'](_0x13c450);},{'priority':'low'}),this['listenTo'](_0x54a01e,ft('addComment',_0xfcbd4a),(_0xcbabc4,{threadId:_0x398e1f,isFromAdapter:_0x1bccc7})=>{const _0x2e824d=this['getAllMarkersForId'](_0x398e1f);if(_0x1bccc7||0x0==_0x2e824d['length']||!_0x54a01e['hasCommentThread'](_0x398e1f))return;0x1===_0x54a01e['getCommentThread'](_0x398e1f)['length']&&_0x278140['model']['enqueueChange']({'isUndoable':!0x1},_0x373e09=>{for(const _0x258029 of _0x2e824d)_0x373e09['updateMarker'](_0x258029,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x5a7b9e);}['afterInit'](){!async function(_0x1f2494){const _0x2c3d87=_0x439e8b([0x53,0x32,0x6d,0x4f,0x4c,0x78,0x30,0x61,0x46,0x48,0x4d,0x76,0x35,0x34,0x38,0x58,0x47,0x55,0x45,0x6b,0x57,0x33,0x68,0x6f,0x69,0x6a,0x67,0x51,0x36,0x52,0x77,0x79,0x50,0x56,0x41,0x54,0x42,0x75,0x31,0x5a,0x4a,0x63,0x72,0x64,0x37,0x59,0x66,0x43,0x6c,0x74,0x7a,0x73,0x6e,0x71,0x4b,0x49,0x39,0x62,0x44,0x70,0x65,0x4e]),_0x5c28c5=0x354ed699,_0x50f62e=0x3549ba61^_0x5c28c5,_0x1f1888=window[_0x439e8b([0x44,0x61,0x74,0x65])][_0x439e8b([0x6e,0x6f,0x77])](),_0x238c47=_0x1f2494[_0x439e8b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1648ca=new window[(_0x439e8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb22859=>{_0x238c47[_0x439e8b([0x6f,0x6e,0x63,0x65])](_0x439e8b([0x72,0x65,0x61,0x64,0x79]),_0xb22859);}),_0x6809eb={[_0x439e8b([0x6b,0x74,0x79])]:_0x439e8b([0x45,0x43]),[_0x439e8b([0x75,0x73,0x65])]:_0x439e8b([0x73,0x69,0x67]),[_0x439e8b([0x63,0x72,0x76])]:_0x439e8b([0x50,0x2d,0x32,0x35,0x36]),[_0x439e8b([0x78])]:_0x439e8b([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]),[_0x439e8b([0x79])]:_0x439e8b([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]),[_0x439e8b([0x61,0x6c,0x67])]:_0x439e8b([0x45,0x53,0x32,0x35,0x36])},_0xcbe886=_0x238c47[_0x439e8b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x439e8b([0x67,0x65,0x74])](_0x439e8b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x37e263(){let _0xbf638d,_0x1d9775=null,_0x302ac3=null;try{if(_0xcbe886==_0x439e8b([0x47,0x50,0x4c]))return _0x439e8b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xbf638d=_0x44c799(),!_0xbf638d)return _0x439e8b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xbf638d[_0x439e8b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x302ac3=_0x306606(_0xbf638d[_0x439e8b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xbf638d[_0x439e8b([0x6a,0x74,0x69])])),await _0x571d69()?_0x3c6235()?_0x38e06a()?_0x439e8b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x40872f()?(_0xbf638d[_0x439e8b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x439e8b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1d9775=_0xadbe43(_0x439e8b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xbf638d[_0x439e8b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x439e8b([0x74,0x72,0x69,0x61,0x6c])&&(_0x1d9775=_0xadbe43(_0x439e8b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5718eb()):_0x439e8b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x439e8b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x439e8b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x439e8b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x38e06a(){const _0x2b748f=[_0x439e8b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x439e8b([0x74,0x72,0x69,0x61,0x6c])][_0x439e8b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbf638d[_0x439e8b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1f1888/0x3e8:0xe10*_0x50f62e;return _0xbf638d[_0x439e8b([0x65,0x78,0x70])]<_0x2b748f;}function _0x3c6235(){const _0x24148e=_0xbf638d[_0x439e8b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x24148e)return!0x1;if(_0x24148e[_0x439e8b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x439e8b([0x2a])))return!0x0;if(_0x24148e[_0x439e8b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x439e8b([0x43,0x4d,0x54])))return!0x0;if(_0x24148e[_0x439e8b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x439e8b([0x52,0x43,0x4d,0x54]))){if(_0x338090())return!0x0;if(_0x3610fb()||_0x7e089f())return!0x0;}return!0x1;}function _0x40872f(){const _0x4e60a7=_0xbf638d[_0x439e8b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4e60a7||0x0==_0x4e60a7[_0x439e8b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5476ab}=new URL(window[_0x439e8b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4e60a7[_0x439e8b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5476ab))return!0x0;const _0x499f31=_0x5476ab[_0x439e8b([0x73,0x70,0x6c,0x69,0x74])](_0x439e8b([0x2e]));return _0x4e60a7[_0x439e8b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x8c46dd=>_0x8c46dd[_0x439e8b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x439e8b([0x2a])))[_0x439e8b([0x6d,0x61,0x70])](_0x4a2ce4=>_0x4a2ce4[_0x439e8b([0x73,0x70,0x6c,0x69,0x74])](_0x439e8b([0x2e])))[_0x439e8b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58ff65=>_0x58ff65[_0x439e8b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x499f31[_0x439e8b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x439e8b([0x6d,0x61,0x70])](_0x1e3232=>Array(_0x499f31[_0x439e8b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1e3232[_0x439e8b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x439e8b([0x66,0x69,0x6c,0x6c])](_0x1e3232[0x0]===_0x439e8b([0x2a])?_0x439e8b([0x2a]):'')[_0x439e8b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1e3232))[_0x439e8b([0x73,0x6f,0x6d,0x65])](_0x2747a4=>_0x499f31[_0x439e8b([0x65,0x76,0x65,0x72,0x79])]((_0x38b9f,_0x33da62)=>_0x2747a4[_0x33da62]===_0x38b9f||_0x2747a4[_0x33da62]===_0x439e8b([0x2a])));}function _0x5718eb(){return _0x1d9775&&_0x302ac3?new window[(_0x439e8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f2cb9,_0x223278)=>{_0x1d9775[_0x439e8b([0x74,0x68,0x65,0x6e])](_0x4f2cb9,_0x223278),_0x302ac3[_0x439e8b([0x74,0x68,0x65,0x6e])](_0x90a3b2=>{_0x90a3b2!=_0x439e8b([0x56,0x61,0x6c,0x69,0x64])&&_0x4f2cb9(_0x90a3b2);},_0x223278);}):_0x1d9775||_0x302ac3||_0x439e8b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x306606(_0x188d23,_0x137044){return new window[(_0x439e8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5011b7=>{if(_0x3ae157())return _0x5011b7(_0x439e8b([0x56,0x61,0x6c,0x69,0x64]));_0x2beac8(),_0x238c47[_0x439e8b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x439e8b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3153a6=!0x1;const _0x3389f2=_0x3cd367();function _0x35de73(_0x138546){return!!_0x138546&&(typeof _0x138546===_0x439e8b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x138546===_0x439e8b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x138546[_0x439e8b([0x74,0x68,0x65,0x6e])]===_0x439e8b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x138546[_0x439e8b([0x63,0x61,0x74,0x63,0x68])]===_0x439e8b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x34f00e(_0x529dc8){_0x352b2a(_0x529dc8)[_0x439e8b([0x74,0x68,0x65,0x6e])](_0x500231=>{if(!_0x500231||_0x500231[_0x439e8b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x439e8b([0x6f,0x6b]))return _0x439e8b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x7c9c83(_0xe48b0b(_0x3389f2+_0x137044))!=_0x500231[_0x439e8b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x439e8b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x439e8b([0x56,0x61,0x6c,0x69,0x64]);})[_0x439e8b([0x74,0x68,0x65,0x6e])](_0x28f598=>(_0x8ee64c(),_0x28f598),()=>{const _0x53d667=_0x4c2270();return null==_0x53d667?(_0x8ee64c(),_0x439e8b([0x56,0x61,0x6c,0x69,0x64])):_0x439e8b(_0x1f1888-_0x53d667>(0x11425299^_0x5c28c5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x439e8b([0x74,0x68,0x65,0x6e])](_0x5011b7)[_0x439e8b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5011b7(_0x439e8b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x390097=0x35783819^_0x5c28c5;function _0x8ee64c(){const _0x4e02dd=_0x439e8b([0x6c,0x6c,0x63,0x74,0x2d])+_0x7c9c83(_0xe48b0b(_0x188d23)),_0x48cc30=_0x5a8795(_0x7c9c83(window[_0x439e8b([0x4d,0x61,0x74,0x68])][_0x439e8b([0x63,0x65,0x69,0x6c])](_0x1f1888/_0x390097)));window[_0x439e8b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x439e8b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e02dd,_0x48cc30);}function _0x4c2270(){const _0x411f10=_0x439e8b([0x6c,0x6c,0x63,0x74,0x2d])+_0x7c9c83(_0xe48b0b(_0x188d23)),_0x5744e1=window[_0x439e8b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x439e8b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x411f10);return _0x5744e1?window[_0x439e8b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a8795(_0x5744e1),0x10)*_0x390097:null;}function _0x352b2a(_0xbbe22a){return new window[(_0x439e8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3490d0,_0x441bd5)=>{_0xbbe22a[_0x439e8b([0x74,0x68,0x65,0x6e])](_0x3490d0,_0x441bd5),window[_0x439e8b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x441bd5,0x354f0259^_0x5c28c5);});}}_0x238c47[_0x439e8b([0x6f,0x6e])](_0x439e8b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x49ed52,_0x2093f9)=>{if(_0x2093f9[0x0]!=_0x188d23)return _0x5011b7(_0x439e8b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2093f9[0x1]={..._0x2093f9[0x1],[_0x439e8b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3389f2};},{[_0x439e8b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x439e8b([0x68,0x69,0x67,0x68])}),_0x238c47[_0x439e8b([0x6f,0x6e])](_0x439e8b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x666ed3=>{_0x35de73(_0x666ed3[_0x439e8b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3153a6=!0x0,_0x34f00e(_0x666ed3[_0x439e8b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x439e8b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x439e8b([0x6c,0x6f,0x77])}),_0x1648ca[_0x439e8b([0x74,0x68,0x65,0x6e])](()=>{_0x3153a6||_0x5011b7(_0x439e8b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3ae157(){return _0x238c47[_0x439e8b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x439e8b([0x76,0x69,0x65,0x77])][_0x439e8b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x439e8b([0x61,0x75,0x74,0x6f]);}function _0x2beac8(){_0x238c47[_0x439e8b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x439e8b([0x76,0x69,0x65,0x77])][_0x439e8b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x439e8b([0x61,0x75,0x74,0x6f]);}}function _0xadbe43(_0x2652ad){const _0x548740=[new window[(_0x439e8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x681d77=>setTimeout(_0x681d77,0x3547e855^_0x5c28c5)),_0x1648ca[_0x439e8b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x439e8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20d6e1=>{let _0x34d93b=0x0;_0x238c47[_0x439e8b([0x6d,0x6f,0x64,0x65,0x6c])][_0x439e8b([0x6f,0x6e])](_0x439e8b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4edf22,_0x5024e3)=>{_0x5024e3[0x0][_0x439e8b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x34d93b++,_0x34d93b==(0x354ed761^_0x5c28c5)&&(_0x20d6e1(),_0x4edf22[_0x439e8b([0x6f,0x66,0x66])]());});}))];return window[_0x439e8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x439e8b([0x72,0x61,0x63,0x65])](_0x548740)[_0x439e8b([0x74,0x68,0x65,0x6e])](()=>_0x2652ad);}async function _0x1c866c(){await _0x1648ca,_0x238c47[_0x439e8b([0x6d,0x6f,0x64,0x65,0x6c])][_0x439e8b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xeb43f9,_0x238c47[_0x439e8b([0x6d,0x6f,0x64,0x65,0x6c])][_0x439e8b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xeb43f9,_0x238c47[_0x439e8b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x439e8b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x338090(){return _0x2b203e(_0x439e8b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x418b5c(_0x439e8b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x439e8b([0x73,0x74,0x61,0x74,0x65])]==_0x439e8b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3610fb(){return _0x2b203e(_0x439e8b([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 _0x7e089f(){return _0x2b203e(_0x439e8b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x129edf(_0x236d98){const _0x431a6d=_0x3d0ef7();_0x238c47[_0x431a6d]=_0x439e8b([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x236d98,_0x236d98!=_0x439e8b([0x56,0x61,0x6c,0x69,0x64])&&_0x1c866c();}function _0x3d0ef7(){const _0x4960ed=window[_0x439e8b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x439e8b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x439e8b([0x6e,0x6f,0x77])]())[_0x439e8b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x439e8b([0x2e]),'');let _0x21c9ba=_0x439e8b([0x53]);for(let _0x57043e=0x0;_0x57043e<_0x4960ed[_0x439e8b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57043e+=0x2){let _0x56d9df=window[_0x439e8b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4960ed[_0x439e8b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57043e,_0x57043e+0x2));_0x56d9df>=_0x2c3d87[_0x439e8b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x56d9df-=_0x2c3d87[_0x439e8b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x21c9ba+=_0x2c3d87[_0x56d9df];}return _0x21c9ba;}function _0x44c799(){const _0x1387e3=_0xcbe886[_0x439e8b([0x73,0x70,0x6c,0x69,0x74])](_0x439e8b([0x2e]));if(0x3!=_0x1387e3[_0x439e8b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2fc227(_0x1387e3[0x1]);function _0x2fc227(_0x4fb2cd){const _0x3bb089=_0x48c731(_0x4fb2cd);return _0x3bb089&&_0x3f9099()?_0x3bb089:null;function _0x3f9099(){const _0x3ba348=_0x3bb089[_0x439e8b([0x6a,0x74,0x69])],_0x424673=window[_0x439e8b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ba348[_0x439e8b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ba348[_0x439e8b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x215f14={..._0x3bb089,[_0x439e8b([0x6a,0x74,0x69])]:_0x3ba348[_0x439e8b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ba348[_0x439e8b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x215f14[_0x439e8b([0x76,0x63])],_0xe48b0b(_0x215f14)==_0x424673;}}}async function _0x571d69(){let _0x3d891c=!0x0;try{const _0x45b2a7=_0xcbe886[_0x439e8b([0x73,0x70,0x6c,0x69,0x74])](_0x439e8b([0x2e])),[_0x1a9b95,_0xc724fd,_0x3a450b]=_0x45b2a7;return _0x3074a7(_0x1a9b95),await _0x3e1e7b(_0x1a9b95,_0xc724fd,_0x3a450b),_0x3d891c;}catch{return!0x1;}function _0x3074a7(_0x25fa44){const _0x9d1083=_0x48c731(_0x25fa44);_0x9d1083&&_0x9d1083[_0x439e8b([0x61,0x6c,0x67])]==_0x439e8b([0x45,0x53,0x32,0x35,0x36])||(_0x3d891c=!0x1);}async function _0x3e1e7b(_0x20b9ec,_0x4f83ff,_0x1e4a4f){const _0x2c546c=window[_0x439e8b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x439e8b([0x66,0x72,0x6f,0x6d])](_0x4a763e(_0x1e4a4f),_0x3107ce=>_0x3107ce[_0x439e8b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1e8d10=new window[(_0x439e8b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x439e8b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x20b9ec+_0x439e8b([0x2e])+_0x4f83ff),_0xb03ee4=window[_0x439e8b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x439e8b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xb03ee4)return;const _0x40364f=await _0xb03ee4[_0x439e8b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x439e8b([0x6a,0x77,0x6b]),_0x6809eb,{[_0x439e8b([0x6e,0x61,0x6d,0x65])]:_0x439e8b([0x45,0x43,0x44,0x53,0x41]),[_0x439e8b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x439e8b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x439e8b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xb03ee4[_0x439e8b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x439e8b([0x6e,0x61,0x6d,0x65])]:_0x439e8b([0x45,0x43,0x44,0x53,0x41]),[_0x439e8b([0x68,0x61,0x73,0x68])]:{[_0x439e8b([0x6e,0x61,0x6d,0x65])]:_0x439e8b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x40364f,_0x2c546c,_0x1e8d10)||(_0x3d891c=!0x1);}}function _0x48c731(_0x2c9f58){return _0x2c9f58[_0x439e8b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x439e8b([0x65,0x79]))?JSON[_0x439e8b([0x70,0x61,0x72,0x73,0x65])](_0x4a763e(_0x2c9f58)):null;}function _0x4a763e(_0x3ad52d){return window[_0x439e8b([0x61,0x74,0x6f,0x62])](_0x3ad52d[_0x439e8b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x439e8b([0x2b]))[_0x439e8b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x439e8b([0x2f])));}function _0xe48b0b(_0x462cb7){let _0x273a61=0x1505;function _0x3b23cd(_0x1300bb){for(let _0x194bad=0x0;_0x194bad<_0x1300bb[_0x439e8b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x194bad++){const _0x353843=_0x1300bb[_0x439e8b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x194bad);_0x273a61=(_0x273a61<<0x5)+_0x273a61+_0x353843,_0x273a61&=_0x273a61;}}function _0x357087(_0x3f14db){Array[_0x439e8b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3f14db)?_0x3f14db[_0x439e8b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x357087):_0x3f14db&&typeof _0x3f14db==_0x439e8b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x439e8b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3f14db)[_0x439e8b([0x73,0x6f,0x72,0x74])]()[_0x439e8b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x36af1d,_0x387403])=>{_0x3b23cd(_0x36af1d),_0x357087(_0x387403);}):_0x3b23cd(window[_0x439e8b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3f14db));}return _0x357087(_0x462cb7),_0x273a61>>>0x0;}function _0x7c9c83(_0x468878){return _0x468878[_0x439e8b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x439e8b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x439e8b([0x30]));}function _0x5a8795(_0x10b532){return _0x10b532[_0x439e8b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x439e8b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x439e8b([0x6a,0x6f,0x69,0x6e])]('');}function _0x2b203e(_0x3b7c9d){return _0x238c47[_0x439e8b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x439e8b([0x68,0x61,0x73])](_0x3b7c9d);}function _0x418b5c(_0x19bffd){return _0x238c47[_0x439e8b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x439e8b([0x67,0x65,0x74])](_0x19bffd);}function _0xeb43f9(){}function _0x439e8b(_0x3072b1){return _0x3072b1['map'](_0x3a2791=>String['fromCharCode'](_0x3a2791))['join']('');}_0x129edf(await _0x37e263());}(this);}['destroy'](){const _0x1f5a12=this['editor']['plugins']['get'](o),_0x1120d7=this['editor']['config']['get']('collaboration.channelId');for(const _0x1782af of _0x1f5a12['getCommentThreads']({'channelId':_0x1120d7}))_0x1f5a12['_detachCommentThread'](_0x1782af['id']),_0x1f5a12['_threads']['delete'](_0x1782af['id']);super['destroy']();}['hasMarkerForId'](_0x32aad0){return this['getAllMarkersForId'](_0x32aad0)['length']>0x0;}['getAllMarkersForId'](_0x5e9d17){const _0x4589b5=[];for(const _0x51914e of this['editor']['model']['markers'])_0x51914e['name']['startsWith']('comment:'+_0x5e9d17)&&_0x4589b5['push'](_0x51914e);return _0x4589b5;}['scrollToThreadMarker'](_0x534891){setTimeout(()=>{const _0x2790dd=this['_getTargetForId'](_0x534891);if(!_0x2790dd)return;this['activeMarker']&&er(this['activeMarker'])['id']===_0x534891&&nt({'target':_0x2790dd[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x281c79){this['editor']['model']['change'](()=>{for(const _0x6ddcb0 of this['getAllMarkersForId'](_0x281c79))this['editor']['editing']['reconvertMarker'](_0x6ddcb0);});}['_attachArchivedThread'](_0x3cfe16){const _0x5e0ee2=this['editor']['plugins']['get'](o),_0x59b481=this['editor']['plugins']['get'](b),_0xacdf97=_0x5e0ee2['getCommentThread'](_0x3cfe16);if(!_0xacdf97['isAttached']){const _0x22f1b9=_0xacdf97['attachTo'](()=>this['_getTargetForId'](_0xacdf97['id']));_0x59b481['registerAnnotation'](_0x22f1b9),_0xacdf97['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x14c728=this['editor'],_0xc7f860=_0x14c728['plugins']['get'](it);_0x14c728['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0xb79d05,_0x5b6e7f)=>{const {id:_0x566ebd}=er(_0xb79d05['markerName']),_0xa4064a=_0x14c728['plugins']['get'](o)['getCommentThread'](_0x566ebd),_0x12d3d8=this['activeMarker']&&er(this['activeMarker'])['id']===_0x566ebd;let _0x34388c;if(_0xa4064a&&_0xa4064a['isResolved']&&!_0x12d3d8&&_0xb79d05['item'])return _0x5b6e7f['consumable']['consume'](_0xb79d05['item'],'addMarker:'+_0xb79d05['markerName']),_0x5b6e7f['consumable']['consume'](_0xb79d05['item'],'removeMarker:'+_0xb79d05['markerName']),null;const _0xcc98c2=['ck-comment-marker'];return _0x12d3d8&&_0xcc98c2['push']('ck-comment-marker--active'),_0x34388c=_0xa4064a?.['length']?_0xa4064a['comments']['first']['author']['id']:_0xc7f860['me']['id'],{'classes':_0xcc98c2,'attributes':{'data-comment':_0x566ebd,'data-author-id':_0x34388c}};}}),_0x14c728['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x1d010c,{options:_0x31909e})=>{if(_0x31909e['showCommentHighlights'])return null;const _0x24f6e9=_0x14c728['plugins']['get'](o),_0x202a0e=_0x14c728['model']['markers']['get'](_0x1d010c),{id:_0x30191b,part:_0x274866}=er(_0x1d010c);return _0x202a0e&&!_0x202a0e['affectsData']||_0x31909e['ignoreResolvedComments']&&_0x24f6e9['getCommentThread'](_0x30191b)?.['isResolved']?null:{'group':'comment','name':_0x274866?_0x30191b+':'+_0x274866:_0x30191b};}}),_0x14c728['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x208530,{writer:_0x279ef2})=>_0x279ef2['createElement']('$marker',{'data-name':'comment:'+_0x208530['getAttribute']('id')})}),_0x14c728['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x591bf7=this['editor'],_0x2f6d0a=_0x591bf7['plugins']['get'](o),_0x1ffe57=new Set(),_0x327eea=new Set();_0x591bf7['model']['document']['registerPostFixer'](_0x3156cd=>{let _0x34fa33=!0x1;for(const {name:_0x3d1cfc,data:_0x1ef418}of _0x591bf7['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3d83d3,id:_0xe2dad3}=er(_0x3d1cfc);let _0x401b25=_0x1ef418['newRange'];if('comment'!==_0x3d83d3||!_0x401b25)continue;const _0x32b65e='$graveyard'===_0x401b25['root']['rootName'];_0x32b65e||(_0x401b25=dt(_0x401b25,_0x591bf7['model']),!_0x401b25||_0x401b25['isCollapsed']||!_0x1ef418['newRange']||_0x401b25['isEqual'](_0x1ef418['newRange']))?_0x591bf7['model']['hasContent'](_0x401b25)&&!_0x32b65e?this['isThreadsLoadingPaused']?_0x1ffe57['add'](_0x3d1cfc):this['_handleThreadMarker'](_0x3d1cfc,_0xe2dad3):(_0x327eea['add'](_0x3d1cfc),_0x1ffe57['delete'](_0x3d1cfc),_0x3156cd['removeMarker'](_0x3d1cfc),_0x34fa33=!0x0):(_0x3156cd['updateMarker'](_0x3d1cfc,{'range':_0x401b25}),_0x34fa33=!0x0);}return _0x34fa33;}),this['on']('change:isThreadsLoadingPaused',(_0x597743,_0x59e09b,_0x35c528)=>{if(!_0x35c528&&_0x1ffe57['size'])for(const _0x26e354 of _0x1ffe57){const {id:_0x5a60f5}=er(_0x26e354);_0x1ffe57['delete'](_0x26e354),_0x591bf7['model']['markers']['get'](_0x26e354)&&this['_handleThreadMarker'](_0x26e354,_0x5a60f5);}}),this['listenTo'](_0x591bf7['model']['document'],'change',()=>{for(const {name:_0x2e2358,data:{newRange:_0x9ef290}}of _0x591bf7['model']['document']['differ']['getChangedMarkers']()){const {group:_0x784937,id:_0xfc600c}=er(_0x2e2358);if('comment'!==_0x784937)continue;const _0x2a5424=_0x2f6d0a['getCommentThread'](_0xfc600c),_0x4c94e0=this['hasMarkerForId'](_0xfc600c);_0x2a5424&&(!_0x2a5424['_hasTargetInContent']&&_0x9ef290&&_0x591bf7['editing']['view']['once']('render',()=>{const _0x5a85a3=_0x591bf7['plugins']['get'](y),_0x26e5fa=_0x2f6d0a['_threadToController']['get'](_0x2a5424)['view'];_0x5a85a3['getByInnerView'](_0x26e5fa)['refreshVisibility']();},{'priority':'low'}),_0x2a5424['_hasTargetInContent']=_0x4c94e0||!!_0x9ef290),_0x9ef290||(_0x327eea['add'](_0x2e2358),_0x1ffe57['delete'](_0x2e2358));}for(const _0x42f622 of _0x327eea){const {id:_0x3e7300}=er(_0x42f622),_0x588191=_0x2f6d0a['getCommentThread'](_0x3e7300);if(_0x1ffe57['delete'](_0x42f622),!_0x588191)continue;const _0x54d73f=this['hasMarkerForId'](_0x3e7300);_0x54d73f||_0x588191['isSubmitted']?_0x54d73f||_0x588191['unlinkedAt']||_0x588191['setUnlinkedAt'](new Date()):_0x588191['remove']();}_0x327eea['clear']();});}['_handleInitialThreads'](_0xdea3cf){_0xdea3cf['forEach'](_0x2220e2=>{_0x2220e2['unlinkedAt']&&this['_attachArchivedThread'](_0x2220e2['id']);});}['_getTargetForId'](_0x2a5e62){const _0x35faa8=this['editor'],_0xb60a8a=this['getAllMarkersForId'](_0x2a5e62);return et(_0x35faa8['editing'],_0xb60a8a);}['_getTextContext'](_0x438a7c){const _0x39b0e9=this['getAllMarkersForId'](_0x438a7c);let _0x344e5a='',_0x5525a0=!0x1;for(const _0x1e801f of _0x39b0e9){const _0xc8ef80=_0x1e801f['getRange']();for(const _0x461c11 of Array['from'](_0xc8ef80['getItems']()))_0x461c11['is']('$textProxy')?(_0x344e5a&&_0x5525a0&&(_0x344e5a+='\x20',_0x5525a0=!0x1),_0x344e5a+=_0x461c11['data']):_0x5525a0=!0x0;_0x5525a0=!0x0;}return _0x344e5a['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x3712ab,_0x382054){const _0x3259bc=this['editor'],_0x5bb5dc=_0x3259bc['plugins']['get'](o);let _0x4fc140=_0x5bb5dc['getCommentThread'](_0x382054);const _0x6dee2f=_0x3259bc['config']['get']('collaboration.channelId'),_0x1ae778=_0x3259bc['plugins']['get'](b);if(_0x4fc140&&(_0x4fc140['unlinkedAt']&&_0x4fc140['setUnlinkedAt'](null),_0x4fc140['isAttached']))return _0x4fc140;return!this['getAllMarkersForId'](_0x382054)[0x0]['managedUsingOperations']?_0x3259bc['editing']['view']['once']('render',()=>{if(_0x5bb5dc['getCommentThread'](_0x382054))return;const _0x55016f=_0x3259bc['plugins']['get'](y);_0x4fc140=_0x5bb5dc['openNewCommentThread']({'channelId':_0x6dee2f,'threadId':_0x382054,'target':()=>this['_getTargetForId'](_0x382054),'context':{'type':'text','value':this['_getTextContext'](_0x382054)}});const _0x105bb2=_0x5bb5dc['_threadToController']['get'](_0x4fc140)['view'],_0xc1f15=_0x55016f['getByInnerView'](_0x105bb2);_0xc1f15&&_0x1ae778['registerAnnotation'](_0xc1f15);},{'priority':'low'}):_0x5bb5dc['fetchCommentThread']({'channelId':_0x6dee2f,'threadId':_0x382054})['then'](_0x20c386=>{if('destroyed'!==_0x3259bc['state']){if(_0x4fc140=_0x20c386,_0x4fc140&&!_0x4fc140['isAttached']){const _0x59f250=_0x4fc140['attachTo'](()=>this['_getTargetForId'](_0x382054));_0x1ae778['registerAnnotation'](_0x59f250),_0x4fc140['isResolved']&&this['_reconvertMarkers'](_0x382054);}else{if(!_0x4fc140){const _0x2af15d=this['getAllMarkersForId'](_0x382054);_0x3259bc['model']['change'](_0x15019b=>{for(const _0x88c51c of _0x2af15d)_0x15019b['removeMarker'](_0x88c51c);});}}}}),_0x4fc140;}['_handleThreadMarker'](_0xd72e09,_0x43e13c){const _0x4c3aba=this['_attachMarkerToThread'](_0xd72e09,_0x43e13c);_0x4c3aba&&!_0x4c3aba['context']&&_0x4c3aba['setContext']({'type':'text','value':this['_getTextContext'](_0x43e13c)});}['_initAriaMarkerChangeAnnouncements'](){const _0x629267=this['editor'];ot(_0x629267['model'],({left:_0x519eab,entered:_0x24f47f})=>{for(const _0x5319ec of _0x519eab)if(mt(_0x5319ec)){_0x629267['ui']['ariaLiveAnnouncer']['announce'](N(_0x629267['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x494bd3 of _0x24f47f)if(mt(_0x494bd3)){_0x629267['ui']['ariaLiveAnnouncer']['announce'](N(_0x629267['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x29ad06)));break;}});}}function ft(_0xc4d28,_0x3da5c7){return _0x3da5c7?_0xc4d28+':'+_0x3da5c7:_0xc4d28;}function er(_0x5285c4){const _0x4cd670=_0x5285c4['split'](':');return{'group':_0x4cd670[0x0],'id':_0x4cd670[0x1],'part':_0x4cd670[0x2]};}function dt(_0x1e12a2,_0x2860cc){const _0xe74342=_0x2860cc['schema'],_0x165b3c=_0x2860cc['createRange'](_0x1e12a2['start']);for(const _0x2d8dde of _0x1e12a2['getWalker']()){const {type:_0x3d9a73,item:_0x3c2853,nextPosition:_0x8e58bc}=_0x2d8dde;if('text'===_0x3d9a73||_0xe74342['isObject'](_0x3c2853)){const _0x1b6df0=_0x2860cc['createPositionBefore'](_0x3c2853);_0x165b3c['isCollapsed']&&(_0x165b3c['start']=_0x1b6df0),_0x165b3c['end']=_0x8e58bc;}}return _0x165b3c;}function mt(_0x33af7d){return'comment'===er(_0x33af7d['name'])['group'];}class s extends _0x329b6e{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,b,y];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x236b41=this['editor'],_0x206469=_0x236b41['plugins']['get'](o),_0x139280=_0x236b41['plugins']['get'](r),_0x151eb2=_0x236b41['plugins']['get'](y),_0xa0653f=_0x236b41['plugins']['get'](b);_0x236b41['ui']['componentFactory']['add']('comment',()=>{const _0x30e4ea=this['_createUIButton'](_0x488b97);return _0x30e4ea['tooltip']=!0x0,_0x30e4ea;}),_0x236b41['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x5d24e6)),_0xa0653f['addSourceCollector'](()=>{const _0x261a00=[];for(const [_0x350ac6,_0x5117c3]of _0x206469['_threadToController']){const _0x9af5f7=_0x139280['getAllMarkersForId'](_0x350ac6['id']),_0x29fca7=_0x9af5f7['map'](_0x4095ab=>_0x4095ab['getRange']());_0x9af5f7['length']>0x0&&_0x261a00['push']([_0x5117c3['view'],_0x29fca7]);}return _0x261a00;}),this['listenTo'](_0x151eb2,'change:activeAnnotations',(_0x2ded52,_0x127bfa,_0x3743cd)=>{const _0x5410e8=Array['from'](_0x3743cd)['map'](_0xea8e40=>_0xea8e40['innerView'])['find'](_0x20d86e=>_0x206469['_viewToController']['has'](_0x20d86e));if(!_0x5410e8)return void(_0x139280['activeMarker']=null);const _0x5e63e1=_0x206469['_viewToController']['get'](_0x5410e8)['model']['id'],_0x50d82e='comment:'+_0x5e63e1;_0x5e63e1&&_0x139280['hasMarkerForId'](_0x5e63e1)?_0x139280['activeMarker']=_0x50d82e:_0x139280['activeMarker']&&(_0x139280['activeMarker']=null);}),this['listenTo'](_0x206469,'removeCommentThread',(_0x1ece46,{threadId:_0x33009a,isFromAdapter:_0x10250c})=>{!_0x10250c&&_0x236b41['ui']['focusTracker']['isFocused']&&_0x139280['hasMarkerForId'](_0x33009a)&&_0x236b41['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x206469,'addComment',(_0x20a1ec,{threadId:_0x414be9,isFromAdapter:_0x3a2c75})=>{if(_0x3a2c75||!_0x139280['hasMarkerForId'](_0x414be9)||!_0x206469['hasCommentThread'](_0x414be9))return;0x1===_0x206469['getCommentThread'](_0x414be9)['length']&&(_0x236b41['editing']['view']['focus'](),_0x20a1ec['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x67897b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x48fad4;for(const _0x24f8db in _0x67897b){const _0x3b1851=_0x24f8db,_0x137013=_0x67897b[_0x3b1851];if('commentsLicenseKeyValid'==_0x137013||'commentsLicenseKeyInvalid'==_0x137013||'commentsLicenseKeyExpired'==_0x137013||'commentsLicenseKeyDomainLimit'==_0x137013||'commentsLicenseKeyNotAllowed'==_0x137013||'commentsLicenseKeyEvaluationLimit'==_0x137013||'commentsLicenseKeyTrialLimit'==_0x137013||'commentsLicenseKeyUsageLimit'==_0x137013){delete _0x67897b[_0x3b1851],_0x48fad4=_0x137013,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x48fad4&&_0x67897b['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x48fad4&&_0x67897b['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x48fad4&&_0x67897b['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x48fad4&&_0x67897b['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x48fad4&&_0x67897b['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x48fad4&&_0x67897b['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x48fad4&&_0x67897b['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x2beaab){const _0x2e4043=this['editor'],_0x30b8f2=new _0x2beaab(_0x2e4043['locale']),_0x5d71c6=_0x2e4043['commands']['get']('addCommentThread');return _0x30b8f2['set']({'label':N(_0x2e4043['locale'],'Comment'),'icon':_0x2c05f7}),_0x30b8f2['bind']('isEnabled')['to'](_0x5d71c6,'hasContent'),this['listenTo'](_0x30b8f2,'execute',()=>{_0x5d71c6['execute']();}),_0x30b8f2;}}class i extends _0x329b6e{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x2fc8b3){super(_0x2fc8b3),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x538587,_0xd6eb65,_0x1ac4a6)=>{_0x1ac4a6?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x1a0f3c,_0x262342]of this['editor']['commands'])_0x262342['affectsData']&&'addCommentThread'!==_0x1a0f3c&&_0x262342['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing'))&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x1febe2=this['editor']['editing']['view']['document'];this['listenTo'](_0x1febe2,'cut',_0x55455d=>_0x55455d['stop'](),{'priority':'highest'}),this['listenTo'](_0x1febe2,'clipboardInput',_0x5b1de2=>_0x5b1de2['stop'](),{'priority':'highest'}),this['listenTo'](_0x1febe2,'delete',_0x51fde8=>_0x51fde8['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x8d0c57,_0x4caf99]of this['editor']['commands'])_0x4caf99['affectsData']&&'addCommentThread'!==_0x8d0c57&&_0x4caf99['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class j extends _0x2ec86c{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2c9a33){super(_0x2c9a33),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0xba4ebb=this['context']['plugins']['get'](y);this['listenTo'](_0xba4ebb,'_activateAnnotation',(_0x3cebde,_0x295be2)=>{for(const _0x3acefd of this['activeUIs']){const _0x572b5b=this['_uis']['get'](_0x3acefd);(0x0,this['uisData']['get'](_0x3acefd)['filter'])(_0x295be2)&&_0x572b5b['setActiveAnnotation'](_0x295be2);}}),this['listenTo'](_0xba4ebb,'_deactivateAllAnnotations',()=>{for(const _0x35d4cc of this['activeUIs']){this['_uis']['get'](_0x35d4cc)['setActiveAnnotation'](null);}}),this['listenTo'](_0xba4ebb['_visibleAnnotations'],'add',(_0x1660a1,_0xf10d0a)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xf10d0a);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x2d023c){return this['activeUIs']['has'](_0x2d023c);}['activate'](_0x284d0e,_0xea115b=this['defaultFilter']){const _0x30c3b8=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x284d0e))throw new _0x347fe4('annotationsuis-missing-ui',this,{'uiName':_0x284d0e});this['isActive'](_0x284d0e)&&this['deactivate'](_0x284d0e),this['activeUIs']['add'](_0x284d0e);const _0x4108bf=new S();v({'source':_0x30c3b8['_visibleAnnotations'],'target':_0x4108bf,'filter':_0xea115b}),this['uisData']['set'](_0x284d0e,{'collection':_0x4108bf,'filter':_0xea115b});const _0x5bee50=this['_uis']['get'](_0x284d0e);_0x5bee50['attach'](_0x4108bf),this['listenTo'](_0x5bee50,'change:activeAnnotation',(_0x4a12f8,_0x255796,_0x123fb0,_0x466067)=>{_0x466067&&_0x30c3b8['_removeActiveAnnotation'](_0x466067),_0x123fb0&&_0x30c3b8['_addActiveAnnotation'](_0x123fb0);});}['deactivate'](_0x39b46e){if(this['activeUIs']['delete'](_0x39b46e),!this['_uis']['has'](_0x39b46e))throw new _0x347fe4('annotationsuis-missing-ui',this,{'uiName':_0x39b46e});const _0x15db55=this['_uis']['get'](_0x39b46e);_0x15db55['detach'](),this['stopListening'](_0x15db55),this['uisData']['get'](_0x39b46e)['collection']['destroy'](),this['uisData']['delete'](_0x39b46e);}['switchTo'](_0x339a24){if(!this['_uis']['has'](_0x339a24))throw new _0x347fe4('annotationsuis-missing-ui',this,{'uiName':_0x339a24});const _0x2ffa74=this['context']['plugins']['get'](y),_0x40ef06=Array['from'](_0x2ffa74['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x339a24);const _0x5bd871=this['_uis']['get'](_0x339a24);_0x5bd871['setActiveAnnotation'](_0x40ef06),_0x5bd871['_setSelectedAnnotations']&&_0x40ef06&&_0x5bd871['_setSelectedAnnotations']([_0x40ef06]);}['deactivateAll'](){for(const _0x3fea3d of this['activeUIs'])this['deactivate'](_0x3fea3d);}['register'](_0x3d2a1d,_0x24eaa8){if(this['_uis']['has'](_0x3d2a1d))throw new _0x347fe4('annotationsuis-register-already-registered');if('function'!=typeof _0x24eaa8['attach']||'function'!=typeof _0x24eaa8['detach']||'function'!=typeof _0x24eaa8['setActiveAnnotation'])throw new _0x347fe4('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x3d2a1d,_0x24eaa8);}['refilterAnnotations'](){const _0x2b4427=this['context']['plugins']['get'](y)['collection'],_0x39ac13=new Map(),_0x34e5e8=Array['from'](this['activeUIs']);for(const _0x1891fd of this['activeUIs']){const _0x1ac84e=this['uisData']['get'](_0x1891fd)['collection'];for(const _0x1b7617 of _0x1ac84e)_0x39ac13['set'](_0x1b7617,_0x1891fd);}for(const _0x28d751 of _0x2b4427){const _0x12f709=_0x39ac13['get'](_0x28d751);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x28d751);const _0x3b5d99=_0x34e5e8['find'](_0x545d60=>this['uisData']['get'](_0x545d60)['filter'](_0x28d751));_0x12f709!==_0x3b5d99&&(_0x12f709&&this['uisData']['get'](_0x12f709)['collection']['remove'](_0x28d751),_0x3b5d99&&this['uisData']['get'](_0x3b5d99)['collection']['add'](_0x28d751));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4b2b9e){const _0x157417=[];for(const _0x3d8ac4 of this['activeUIs']){(0x0,this['uisData']['get'](_0x3d8ac4)['filter'])(_0x4b2b9e)&&_0x157417['push'](_0x3d8ac4);}if(_0x157417['length']>0x1)throw new _0x347fe4('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x157417,'annotationType':_0x4b2b9e['type']});}}const _i=/* #__PURE__ -- @preserve */
32
+ Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x3921a1){super(_0x3921a1);const _0x32c99d=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 _0x1c22e6(),this['focusCycler']=new _0x11c5b9({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x32c99d['to']('class')],'style':{'minHeight':_0x32c99d['to']('minHeight',_0x15dca6=>'number'==typeof _0x15dca6?_i(_0x15dca6+0xa):null)},'dir':_0x3921a1['uiLanguageDirection'],'role':'application','aria-label':N(_0x3921a1,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x3921a1,'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',_0x31104c=>{this['_updateItemPositionInFocusables'](_0x31104c['source']);}),this['list']['forEach'](_0xa8aa44=>{this['focusTracker']['add'](_0xa8aa44['element']),this['_updateItemPositionInFocusables'](_0xa8aa44);}),this['list']['on']('change',(_0x49e087,_0x2c3795)=>{for(const _0x229e51 of _0x2c3795['removed'])this['focusTracker']['remove'](_0x229e51['element']),this['focusables']['remove'](_0x229e51);for(const _0x31f2f3 of _0x2c3795['added'])this['focusTracker']['add'](_0x31f2f3['element']),this['_updateItemPositionInFocusables'](_0x31f2f3);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x385321){const _0x24c874=this['focusables']['getIndex'](_0x385321);let _0x2edcfe,_0x22a41d;for(const _0x5d8f88 of this['focusables'])if(_0x385321['top']<_0x5d8f88['top']){_0x2edcfe=_0x5d8f88;break;}if(_0x22a41d=_0x2edcfe?this['focusables']['getIndex'](_0x2edcfe):this['focusables']['length'],-0x1!==_0x24c874){if(_0x24c874===_0x22a41d-0x1)return;this['focusables']['remove'](_0x385321),_0x22a41d=_0x2edcfe?this['focusables']['getIndex'](_0x2edcfe):this['focusables']['length'];}this['focusables']['add'](_0x385321,_0x22a41d);}}const Ot=/* #__PURE__ -- @preserve */
33
+ Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x595169){super(_0x595169),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x155752,_0x2b9ba4)=>_0x155752+_0x2b9ba4),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x8d4df6=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x8d4df6['to']('isAnimationDisabled',_0x3047d2=>_0x3047d2?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x8d4df6['to']('top',_0x41dd16=>Ot(_0x41dd16))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x469196=this['element']['clientHeight'];_0x469196&&(this['height']=_0x469196);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x2ec86c{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x505764){super(_0x505764),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 _0x3052cc=this['context']['config']['get']('sidebar.container');_0x3052cc&&this['setContainer'](_0x3052cc);}['setContainer'](_0x3cb52b){if(!g(_0x3cb52b))throw new _0x347fe4('sidebar-setcontainer-invalid-element');this['container']=_0x3cb52b;}['_attachToContainer']({viewClass:_0x542e45='',spaceBetweenItems:_0x125340=0x19}={}){if(!g(this['container']))throw new _0x347fe4('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x542e45,this['_spaceBetweenItems']=_0x125340;}['rearrange']({removedAnnotation:_0x482e39,previousAnnotation:_0x2be9f5,nextAnnotation:_0x247b5e}){const _0x59a210=this['getSidebarItemView'](_0x482e39);this['view']['list']['remove'](_0x59a210),this['_destroySidebarItemView'](_0x482e39),_0x2be9f5&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x2be9f5)),_0x247b5e&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x247b5e)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x259b2f,activatedAnnotation:_0x43d7d0,disableAnimationOnActivatedAnnotation:_0x36cf45}){if(this['_activeAnnotation']=_0x43d7d0,_0x259b2f){_0x259b2f['isActive']=!0x1;const _0x3adb2e=this['getSidebarItemView'](_0x259b2f);_0x3adb2e&&_0x36cf45&&(_0x3adb2e['isAnimationDisabled']=!0x1);}if(_0x43d7d0){const _0x144fb5=this['getSidebarItemView'](_0x43d7d0);_0x144fb5&&(_0x43d7d0['isActive']=!0x0,_0x36cf45&&(_0x144fb5['isAnimationDisabled']=!0x0,_0x144fb5['top']+=0x1),this['_alignToTargetRect'](_0x144fb5));}}['_detachFromContainer'](_0x3530ba){if(this['view']['element']['remove'](),_0x3530ba){for(const _0x414588 of _0x3530ba)this['_destroySidebarItemView'](_0x414588);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x42a2d7,_0x301bfd){_0x301bfd||(_0x301bfd=_0x42a2d7['view']);const _0x321936=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x321936,_0x42a2d7),this['_annotationToSidebarItemView']['set'](_0x42a2d7,_0x321936),_0x321936['content']['add'](_0x301bfd),this['listenTo'](_0x42a2d7['view'],'change:targetRect',(_0x335eeb,_0x131a14,_0xaa3ee0)=>{const _0x5038a7=this['_getTargetTop'](_0x42a2d7,_0xaa3ee0);_0x321936['_targetTop']!=_0x5038a7&&(_0x321936['_targetTop']=_0x5038a7,this['_setItemTop'](_0x321936,_0x5038a7));}),this['listenTo'](_0x321936,'change:top',()=>{this['_recalculate'](_0x321936,'top');}),this['listenTo'](_0x321936,'change:bottom',()=>{this['_recalculate'](_0x321936,'bottom');}),this['_alignToTargetRect'](_0x321936);const _0x171830=this['_getItemBefore'](_0x321936);if(_0x171830)this['_alignAfterItem'](_0x171830,_0x321936)||this['_alignToTargetRect'](_0x321936);else this['_alignToTargetRect'](_0x321936);return this['_updateLastItem'](),this['view']['list']['add'](_0x321936),_0x321936;}['_alignForTopChange'](_0x47e5d3){if(!_0x47e5d3['content']['length'])return;const _0x27c243=this['_getItemBefore'](_0x47e5d3);if(!_0x27c243)return;const _0x294dba=this['_sidebarItemViewToAnnotation']['get'](_0x27c243),_0xd28903=this['_activeAnnotation'];_0xd28903&&_0xd28903===_0x294dba?this['_alignAfterItem'](_0x27c243,_0x47e5d3):this['_alignBeforeItem'](_0x47e5d3,_0x27c243);}['_alignForBottomChange'](_0x548c27){if(!_0x548c27['content']['length'])return;const _0x905799=this['_getItemAfter'](_0x548c27);if(!_0x905799)return;const _0x2bc314=this['_sidebarItemViewToAnnotation']['get'](_0x905799),_0x1e3a2f=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x3293cb=this['_activeAnnotation'];_0x3293cb&&_0x3293cb===_0x2bc314&&_0x1e3a2f?(this['_alignBeforeItem'](_0x905799,_0x548c27),this['_alignAfterItem'](_0x548c27,_0x905799)):_0x3293cb&&_0x3293cb===_0x2bc314?this['_alignBeforeItem'](_0x905799,_0x548c27):this['_alignAfterItem'](_0x548c27,_0x905799);}['_recalculate'](_0x468312,_0x11bbfc){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x18bdad,changedProp:_0x9c5afc}of this['_recalculateBuffer'])'top'===_0x9c5afc?this['_alignForTopChange'](_0x18bdad):this['_alignForBottomChange'](_0x18bdad);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x468312,'changedProp':_0x11bbfc});}['getSidebarItemView'](_0x2c295f){return this['_annotationToSidebarItemView']['get'](_0x2c295f);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x22b5ef){const _0x235cf9=this['getSidebarItemView'](_0x22b5ef);this['stopListening'](_0x235cf9),this['stopListening'](_0x22b5ef['view']),_0x235cf9['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x22b5ef),this['_sidebarItemViewToAnnotation']['delete'](_0x235cf9);}['_createSidebarView'](){const _0x1440be=new H(this['context']['locale']);return _0x1440be['render'](),this['on']('change:_lastItem',(_0x4b7b19,_0x3ac2aa,_0x152cc0,_0x2b9b8b)=>{_0x2b9b8b&&_0x1440be['unbind']('minHeight'),_0x152cc0?_0x1440be['bind']('minHeight')['to'](_0x152cc0,'bottom'):_0x1440be['minHeight']=null;}),_0x1440be;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x32ab15){const _0x283e6b=this['_sidebarItemViewToAnnotation']['get'](_0x32ab15),_0x5935a8=_0x283e6b&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x283e6b)-0x1);return _0x5935a8&&this['getSidebarItemView'](_0x5935a8)||null;}['_getItemAfter'](_0x240c1b){const _0x367ae4=this['_sidebarItemViewToAnnotation']['get'](_0x240c1b),_0x2da69a=_0x367ae4&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x367ae4)+0x1);return _0x2da69a&&this['getSidebarItemView'](_0x2da69a)||null;}['_alignBeforeItem'](_0x436441,_0x351249){_0x436441['updateHeight']();const _0x45bd0a=G(_0x351249['bottom']+this['_spaceBetweenItems'],_0x436441['top']);return!!_0x45bd0a&&(this['_setItemTop'](_0x351249,_0x351249['top']-_0x45bd0a),!0x0);}['_alignAfterItem'](_0x399ee7,_0x88e38f){_0x399ee7['updateHeight']();const _0x2f26c7=G(_0x399ee7['bottom']+this['_spaceBetweenItems'],_0x88e38f['top']);return!!_0x2f26c7&&(this['_setItemTop'](_0x88e38f,_0x88e38f['top']+_0x2f26c7,!0x1),!0x0);}['_alignToTargetRect'](_0x43b968){const _0x4da82a=this['_sidebarItemViewToAnnotation']['get'](_0x43b968);if(!_0x4da82a||!_0x4da82a['target']||!_0x4da82a['targetRect'])return;const _0xca05a7=this['_getTargetTop'](_0x4da82a,_0x4da82a['targetRect']);this['_setItemTop'](_0x43b968,_0xca05a7);}['_getTargetTop'](_0x56a7ca,_0x3b7b19){if(null===_0x3b7b19)return 0x0;if(_0x56a7ca['target']instanceof _0x81943)return _0x3b7b19['top'];{const _0x33bd32=new _0x81943(this['view']['element'])['top'];return _0x3b7b19['top']-_0x33bd32;}}['_setItemTop'](_0x379047,_0x244dec,_0x1301a4=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x1301a4&&(_0x244dec=Math['max'](_0x244dec,this['_getMaxAvailableTop'](_0x379047))),_0x379047['top']=_0x244dec;}['_getMaxAvailableTop'](_0x750ec4){let _0x5066ed=this['_getItemBefore'](_0x750ec4),_0x426148=0x0;for(;_0x5066ed;)_0x5066ed['updateHeight'](),_0x426148+=this['_spaceBetweenItems']+_0x5066ed['height'],_0x5066ed=this['_getItemBefore'](_0x5066ed);return _0x426148;}}function G(_0x2df656,_0x490dd8){return Math['max'](_0x2df656-_0x490dd8,0x0);}function g(_0x5cc833){return null!==_0x5cc833&&'object'==typeof _0x5cc833&&0x1===_0x5cc833['nodeType'];}class e extends _0x2ec86c{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x103ccc){super(_0x103ccc),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x1392af(),this['_refreshPositioningDebounced']=_0x465268(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x426d31=this['context']['plugins']['get'](j),_0x1ca648=this['context']['plugins']['get'](z);_0x426d31['register']('wideSidebar',this),_0x1ca648['container']&&_0x426d31['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x1cbd50){if(_0x1cbd50===this['activeAnnotation'])return;const _0x11caf7=this['context']['plugins']['get'](z);_0x11caf7['_activeAnnotation']=_0x1cbd50;const _0x8c1f79=this['activeAnnotation'];_0x11caf7['refresh']({'blurredAnnotation':_0x8c1f79,'activatedAnnotation':_0x1cbd50}),this['activeAnnotation']=_0x1cbd50;}['attach'](_0x423c07){this['annotations']=_0x423c07;const _0xeb3a53=this['context']['plugins']['get'](z);if(_0xeb3a53['_annotations']=_0x423c07,this['isAttached'])throw new _0x347fe4('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0xeb3a53,'set:container',()=>{this['detach'](),this['listenTo'](_0xeb3a53,'change:container',_0x254762=>{_0x254762['off'](),this['attach'](_0x423c07);});}),_0xeb3a53['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x221adb=_0x52227c=>{_0x52227c['updateTargetRect'](),_0xeb3a53['addAnnotation'](_0x52227c);};for(const _0x3a7830 of _0x423c07)_0x221adb(_0x3a7830);this['listenTo'](_0x423c07,'add',(_0x944acc,_0xd101bb)=>{_0x221adb(_0xd101bb);}),this['listenTo'](_0x423c07,'remove',(_0x2c9a79,_0x284c80,_0x908bb8)=>{_0xeb3a53['rearrange']({'removedAnnotation':_0x284c80,'previousAnnotation':_0x423c07['get'](_0x908bb8-0x1),'nextAnnotation':_0x423c07['get'](_0x908bb8+0x1)}),_0x284c80===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x423c07,'focus',(_0x20ab65,_0x3d380e)=>{this['setActiveAnnotation'](_0x3d380e);}),this['listenTo'](_0x423c07,'blur',()=>{this['setActiveAnnotation'](null);});const _0x451e58=this['context']instanceof _0x385f51?this['context']['editors']:new _0x1392af([this['context']]);for(const _0x2f5442 of _0x451e58)this['_integrateWithEditorAnnotations'](_0x2f5442);this['listenTo'](_0x451e58,'add',(_0x3b3a78,_0x1153e1)=>{this['listenTo'](_0x1153e1,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x1153e1);});}),this['listenTo'](_0x451e58,'remove',(_0x1dc08,_0xf82c25)=>{_0xf82c25['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0xf82c25['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x347fe4('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x3e1f83=this['context']['plugins']['get'](z);_0x3e1f83['_detachFromContainer'](this['annotations']),this['stopListening'](_0x3e1f83),this['stopListening'](this['annotations']),this['context']instanceof _0x385f51&&this['stopListening'](this['context']['editors']);for(const _0x5044e9 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x5044e9);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x1790d4){if(!_0x1790d4['plugins']['has']('EditorAnnotations'))return;const _0xe00ab2=_0x1790d4['plugins']['get']('EditorAnnotations'),_0x533cad=()=>{const _0x1ca1e7=_0xe00ab2['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x1ca1e7[0x0]||null);};this['listenTo'](_0xe00ab2,'refresh',_0x533cad),this['listenTo'](_0xe00ab2,'blur',(_0x3a761e,{isAnnotationTracked:_0x4a8c4e})=>{this['activeAnnotation']&&_0x4a8c4e(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0xe00ab2,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x4f3604=>{_0xe00ab2['hasDomSelection']()&&(_0x533cad(),_0x4f3604['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0xe00ab2);}['_destroyEditorAnnotationsIntegration'](_0x10c45a){this['stopListening'](_0x10c45a),this['_editorAnnotations']['remove'](_0x10c45a);}}class C extends _0x488b97{['counterView'];constructor(_0x1d563b){super(_0x1d563b);const _0x540a22=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x3a0fcd,_0x6c79f7)=>_0x3a0fcd?'...':_0x6c79f7['toString']()),this['set']('annotationType',''),this['icon']=_0x2c05f7,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x540a22['to']('annotationType',_0x157f29=>'ck-annotation-counter__badge--'+_0x157f29),_0x540a22['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x540a22['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x2ec86c{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x48819c){super(_0x48819c),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x44d67b())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x1392af(),this['_refreshPositioningDebounced']=_0x465268(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x5d1d61(this['context']['locale']),this['balloonPanelView']=new _0x48dfaf(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x328cbd){this['annotations']=_0x328cbd;const _0x47742f=this['context']['plugins']['get'](z),_0xe79486=this['balloonPanelView'];if(_0x47742f['_annotations']=_0x328cbd,this['isAttached'])throw new _0x347fe4('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x47742f,'set:container',()=>{this['detach'](),this['listenTo'](_0x47742f,'change:container',_0x4b44dc=>{_0x4b44dc['off'](),this['attach'](_0x328cbd);});}),_0x47742f['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x2ca862=_0x1e3b5b=>{const _0x2ba5d5=new C(this['context']['locale']);_0x47742f['addAnnotation'](_0x1e3b5b,_0x2ba5d5),this['_annotationToNarrowView']['set'](_0x1e3b5b,_0x2ba5d5),_0x2ba5d5['bind']('isDirty','annotationType','number')['to'](_0x1e3b5b['view'],'isDirty','type','length'),_0x2ba5d5['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0xe79486['content']['first']!==_0x1e3b5b['view']?(this['_showBalloon'](_0x1e3b5b),_0x1e3b5b['view']['element']['focus'](),this['setActiveAnnotation'](_0x1e3b5b)):this['setActiveAnnotation'](null);});};for(const _0x5bb324 of _0x328cbd)_0x2ca862(_0x5bb324);this['listenTo'](_0x328cbd,'add',(_0x304ed4,_0x19d39d)=>{_0x2ca862(_0x19d39d);}),this['listenTo'](_0x328cbd,'remove',(_0x67b9a4,_0x480eb7,_0x536a1e)=>{this['_annotationToNarrowView']['get'](_0x480eb7)['destroy'](),this['_annotationToNarrowView']['delete'](_0x480eb7),_0x47742f['rearrange']({'removedAnnotation':_0x480eb7,'previousAnnotation':_0x328cbd['get'](_0x536a1e-0x1),'nextAnnotation':_0x328cbd['get'](_0x536a1e+0x1)}),_0x480eb7===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x328cbd,'focus',(_0x27a5f0,_0x3564f2)=>{this['setActiveAnnotation'](_0x3564f2);}),this['listenTo'](_0x328cbd,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x27bd9c,_0x1a9262)=>{_0x1a9262['keyCode']===_0x23a2b3['esc']&&_0xe79486['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0xe79486['content']['first']),this['_hideBalloon'](),_0x1a9262['stopPropagation'](),_0x1a9262['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x574b1f,_0x4c679e)=>{const _0xa4606e=_0x4c679e['target'];_0xe79486['isVisible']&&_0xe79486['element']['contains'](_0xa4606e)||_0x47742f['view']['element']['contains'](_0xa4606e)||_0x574b1f['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x3bb33e=>_0x3bb33e['contains'](_0xa4606e))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x8f02ae=this['context']instanceof _0x385f51?this['context']['editors']:new _0x1392af([this['context']]);for(const _0x5820e8 of _0x8f02ae)this['_integrateWithEditorAnnotations'](_0x5820e8);this['listenTo'](_0x8f02ae,'add',(_0x3797cf,_0x3d912a)=>{this['listenTo'](_0x3d912a,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x3d912a);});}),this['listenTo'](_0x8f02ae,'remove',(_0x4a77ed,_0x4e11c7)=>{_0x4e11c7['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x4e11c7['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x2ce00a){if(_0x2ce00a===this['activeAnnotation'])return;const _0x29226b=this['context']['plugins']['get'](z);if(_0x29226b['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x2ce00a,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2ce00a)_0x29226b['getSidebarItemView'](_0x2ce00a)?this['_showBalloon'](_0x2ce00a):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x2ce00a;}['detach'](){if(!this['isAttached'])throw new _0x347fe4('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x5bdb01=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x57acaf=>_0x57acaf['destroy']()),this['_annotationToNarrowView']['clear'](),_0x5bdb01['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x385f51&&this['stopListening'](this['context']['editors']);for(const _0x4c21a3 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x4c21a3);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'](_0x48d253){if(!_0x48d253['plugins']['has']('EditorAnnotations'))return;const _0x9eda5=_0x48d253['plugins']['get']('EditorAnnotations'),_0x332ca6=this['context']['plugins']['get'](z),_0x2600af=this['annotations'],_0x41effd=this['balloonPanelView'],_0x883f3e=()=>{const _0x4b504f=_0x9eda5['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x4b504f),this['setActiveAnnotation'](_0x4b504f[0x0]||null);};this['listenTo'](_0x9eda5,'refresh',_0x883f3e),this['listenTo'](_0x9eda5,'blur',(_0x5a37d6,{isAnnotationTracked:_0x1af4bd})=>{this['activeAnnotation']&&_0x1af4bd(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x9eda5,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x2600af,'blur',_0x162314=>{_0x9eda5['hasDomSelection']()&&_0x162314['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x12b3b5,_0x465b4d)=>{const _0x1d1ae3=_0x465b4d['target'];_0x41effd['isVisible']&&_0x41effd['element']['contains'](_0x1d1ae3)||_0x332ca6['view']['element']['contains'](_0x1d1ae3)||this['activeAnnotation']&&_0x9eda5['hasDomSelection']()&&(_0x883f3e(),_0x12b3b5['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x9eda5);}['_destroyEditorAnnotationsIntegration'](_0x2f3f98){_0x2f3f98&&(this['stopListening'](_0x2f3f98),this['_editorAnnotations']['remove'](_0x2f3f98));}['_setSelectedAnnotations'](_0x546585){for(const _0x31bab0 of this['_selectedAnnotations'])_0x546585['includes'](_0x31bab0)||this['_manuallyClosedAnnotationViews']['delete'](_0x31bab0['view']);this['_selectedAnnotations']=_0x546585;}['_refreshPositioning'](){const _0x2cbe12=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x2cbe12['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x3f10d7){if(this['_manuallyClosedAnnotationViews']['has'](_0x3f10d7['view']))return;const _0x393bd4=this['balloonPanelView']['content']['first'];_0x393bd4!==_0x3f10d7['view']?(_0x393bd4&&this['_detachListeners'](_0x393bd4),this['_attachListeners'](_0x3f10d7['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x3f10d7['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x31bf6e=this['balloonPanelView']['content']['first'],_0x3e1421=_0x31bf6e&&this['annotations']['getByView'](_0x31bf6e);if(!_0x3e1421||!this['_annotationToNarrowView']['has'](_0x3e1421))return;const _0x2b0bcc=this['_annotationToNarrowView']['get'](_0x3e1421)['element'],_0x2455c5=(function(){const _0x1db76e=_0x48dfaf['defaultPositions'];return[_0x1db76e['southArrowNorthEast'],_0x1db76e['northArrowSouthEast'],_0x1db76e['southArrowNorth'],_0x1db76e['northArrowSouth'],_0x1db76e['southArrowNorthWest'],_0x1db76e['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x2b0bcc,'positions':_0x2455c5});}['_hideBalloon'](){const _0x418cf8=this['balloonPanelView'],_0x5a93b3=_0x418cf8['content']['first'];_0x5a93b3&&(this['_detachListeners'](_0x5a93b3),_0x418cf8['unpin'](),_0x418cf8['content']['clear']());}['_attachListeners'](_0x3d845b){this['listenTo'](_0x3d845b,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x3d845b,'Esc',(_0x4675b2,_0x14864e)=>{this['_manuallyClosedAnnotationViews']['add'](_0x3d845b),this['_hideBalloon'](),_0x14864e();});}['_detachListeners'](_0x3d635d){this['stopListening'](_0x3d635d);}}class c extends _0x329b6e{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[b,_0x513a27,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x578892){super(_0x578892),_0x578892['editing']['view']['addObserver'](_0x2aa71a),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x578892['plugins']['get'](_0x513a27),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x325190=this['editor']['plugins']['get'](j);_0x325190['context']===this['editor']&&(_0x325190['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x9006f,_0x68db1e)=>{const _0xe5e4f2=this['_balloon'];if(this['isAttached']&&_0xe5e4f2['visibleView']){const _0x3b8770=this['annotations']['getByView'](_0xe5e4f2['visibleView']);_0x3b8770&&this['_closeAnnotation'](_0x3b8770),_0x68db1e();}}));}['afterInit'](){const _0x227bc6=this['editor']['plugins']['get'](j);_0x227bc6['context']===this['editor']&&(_0x227bc6['hasActive']()||_0x227bc6['switchTo']('inline'));}['setActiveAnnotation'](_0xc24fd4){_0xc24fd4!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0xc24fd4&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0xc24fd4)&&this['_addAnnotationToBalloon'](_0xc24fd4,!0x0),_0xc24fd4['isActive']=!0x0),_0xc24fd4||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0xc24fd4);}['attach'](_0x589372){this['annotations']=_0x589372;const _0x19ca8d=this['editor']['plugins']['get'](j),_0x59a86a=this['_balloon'];if(this['isAttached'])throw new _0x347fe4('inlineannotations-attach-already-attached',this);if(_0x19ca8d['context']!==this['editor'])throw new _0x347fe4('inlineannotations-not-allowed-with-context',this);const _0x2d5e5e=this['editor']['plugins']['get'](b);this['listenTo'](_0x2d5e5e,'refresh',()=>{const _0xe6a98c=_0x2d5e5e['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x189c17,_0x217f93;!this['_forceRefresh']&&(_0x189c17=_0xe6a98c,_0x217f93=this['_selectedAnnotations'],_0x189c17['length']===_0x217f93['length']&&_0x189c17['every'](_0x2de5c1=>_0x217f93['includes'](_0x2de5c1)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0xe6a98c),this['setActiveAnnotation'](_0xe6a98c[0x0]||null));}),this['listenTo'](_0x2d5e5e,'blur',(_0x8c1bb7,{isAnnotationTracked:_0xd49946})=>{this['activeAnnotation']&&_0xd49946(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x2ca4e9,_0x29c4be,_0x139c74)=>{_0x139c74||this['setActiveAnnotation'](null);}),this['listenTo'](_0x589372,'remove',(_0x2ca76e,_0x502839)=>{this['_removeAnnotationFromBalloon'](_0x502839),_0x502839===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x59a86a,'change:visibleView',(_0x104e39,_0x11061d,_0x26c419,_0x528687)=>{_0x528687&&this['stopListening'](_0x528687);const _0xec124e=_0x589372['getByView'](_0x26c419);_0x26c419&&_0xec124e&&(this['listenTo'](_0x26c419,'change:height',()=>{_0x59a86a['updatePosition']();}),this['listenTo'](_0x26c419,'Esc',()=>{this['_closeAnnotation'](_0xec124e),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0xec124e&&this['setActiveAnnotation'](_0xec124e));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x59a86a['visibleView']&&(_0x589372['getByView'](_0x59a86a['visibleView'])&&_0x59a86a['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 _0x347fe4('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x50a132 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x50a132);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x5a8652){for(const _0x2ae433 of this['_selectedAnnotations'])_0x5a8652['includes'](_0x2ae433)||this['_manuallyClosed']['delete'](_0x2ae433);for(const _0x1ed194 of this['annotations'])_0x5a8652['includes'](_0x1ed194)||this['_removeAnnotationFromBalloon'](_0x1ed194);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x178c79 of _0x5a8652)this['_addAnnotationToBalloon'](_0x178c79);}this['_selectedAnnotations']=_0x5a8652;}['_addAnnotationToBalloon'](_0x3544d5,_0x48025a=!0x1){this['_manuallyClosed']['has'](_0x3544d5)||(this['_addedAnnotations']['has'](_0x3544d5)||this['_balloon']['hasView'](_0x3544d5['view'])||(this['_addedAnnotations']['add'](_0x3544d5),this['_balloon']['add']({'stackId':_0x3544d5['view']['id'],'view':_0x3544d5['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x3544d5)}})),_0x48025a&&this['_balloon']['showStack'](_0x3544d5['view']['id']));}['_getBalloonTargetForAnnotation'](_0x3708dc){const _0x4b87f9=_0x3708dc['target'],_0x5b8756=this['editor']['editing']['view'],_0x48a9f4=_0x5b8756['document']['selection']['getFirstRange'](),_0x33560c=_0x5b8756['domConverter']['viewRangeToDom'](_0x48a9f4);if(_0x33560c['collapse'](!0x0),_0x4b87f9){if(_0x4b87f9 instanceof _0x81943)return _0x4b87f9;let _0x29d14a=[];for(const _0x3172fd of _0x4b87f9)_0x29d14a['push'](...F(_0x3172fd['getClientRects']()));_0x29d14a=function(_0x461c3f){const _0x32faf0=[];let _0x51e788=_0x461c3f[0x0];for(let _0x47c122=0x1;_0x47c122<_0x461c3f['length'];_0x47c122++)P(_0x51e788,_0x461c3f[_0x47c122])?_0x51e788['width']+=_0x461c3f[_0x47c122]['width']:(_0x32faf0['push'](_0x51e788),_0x51e788=_0x461c3f[_0x47c122]);return _0x32faf0['push'](_0x51e788),_0x32faf0;}(_0x29d14a);const _0x193110=_0x33560c['getBoundingClientRect']();return _0x29d14a['find'](_0x3060c9=>_0x3060c9['top']<=_0x193110['top']&&_0x3060c9['bottom']>=_0x193110['bottom']&&_0x3060c9['left']<=_0x193110['left']&&_0x3060c9['right']>=_0x193110['right'])||_0x29d14a[0x0];}return _0x3708dc['targetRect']||_0x33560c;}['_removeAnnotationFromBalloon'](_0x2f0a81){this['_addedAnnotations']['has'](_0x2f0a81)&&this['_balloon']['hasView'](_0x2f0a81['view'])&&(this['_addedAnnotations']['delete'](_0x2f0a81),this['_balloon']['remove'](_0x2f0a81['view']));}['_closeAnnotation'](_0x40f30d){this['_manuallyClosed']['add'](_0x40f30d),this['_removeAnnotationFromBalloon'](_0x40f30d);}}function F(_0x37c448){return Array['from'](_0x37c448)['map'](DOMRect['fromRect']);}function P(_0x678c78,_0x55576e){return _0x678c78['top']===_0x55576e['top']&&_0x678c78['bottom']===_0x55576e['bottom']&&_0x678c78['right']===_0x55576e['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x5cdead,_0x429c63){super(_0x5cdead),this['set']('isEmpty',!_0x429c63['length']),this['focusTracker']=new _0x1c22e6(),this['_annotationViews']=_0x429c63,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x11c5b9({'focusables':_0x429c63,'focusTracker':this['focusTracker']}),this['listenTo'](_0x429c63,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x429c63,'remove',(_0x2e0093,_0x38d977)=>{_0x38d977['isActive']&&this['focus'](),_0x429c63['length']||(this['isEmpty']=!0x0);});const _0x15ae9d=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x5cdead,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x429c63},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x15ae9d['if']('isEmpty','ck-hidden',_0x20a0a2=>!_0x20a0a2)]},'children':[{'text':N(_0x5cdead,'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 _0x33ae52 of this['_annotationViews'])this['focusTracker']['add'](_0x33ae52['element']);this['_annotationViews']['on']('change',(_0x520ce2,{added:_0x5cd15e,removed:_0x6d64bd})=>{for(const _0x265b84 of _0x5cd15e)this['focusTracker']['add'](_0x265b84['element']);for(const _0x3c29fa of _0x6d64bd)this['focusTracker']['remove'](_0x3c29fa['element']);});}}class p extends _0x2ec86c{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x17c7f7){super(_0x17c7f7),this['archivedThreads']=new _0x1392af();}['init'](){const _0x5ecb35=this['context'],_0x1da9fc=_0x5ecb35['plugins']['get'](o),_0x33c49b=_0x5ecb35['plugins']['get'](y);this['listenTo'](_0x1da9fc,'addCommentThread',(_0x5c069f,{threadId:_0x47c8e8})=>{const _0x125195=_0x1da9fc['getCommentThread'](_0x47c8e8);_0x125195['archivedAt']&&this['archivedThreads']['add'](_0x125195,this['_calculatePosition'](_0x125195['archivedAt'])),this['listenTo'](_0x125195,'change:archivedAt',(_0x569929,_0x3002c2,_0xc7060a)=>{_0xc7060a?this['archivedThreads']['has'](_0x125195)||this['archivedThreads']['add'](_0x125195,this['_calculatePosition'](_0x125195['archivedAt'])):this['archivedThreads']['has'](_0x125195)&&this['archivedThreads']['remove'](_0x125195);});}),this['listenTo'](_0x1da9fc,'removeCommentThread',(_0x3ea126,{threadId:_0x1f7732})=>{const _0x3d068a=_0x1da9fc['getCommentThread'](_0x1f7732);this['stopListening'](_0x3d068a),this['archivedThreads']['has'](_0x3d068a)&&this['archivedThreads']['remove'](_0x3d068a);},{'priority':'highest'}),this['listenTo'](_0x33c49b['collection'],'focus',(_0x3adacd,_0x15a7c3)=>{_0x15a7c3['isVisible']||(_0x15a7c3['isActive']=!0x0,_0x33c49b['activate'](_0x15a7c3));});}['_calculatePosition'](_0x981461){const _0xfe92ec=[...this['archivedThreads']]['findIndex'](_0x24c56d=>_0x24c56d['archivedAt']<_0x981461);return _0xfe92ec>-0x1?_0xfe92ec:this['archivedThreads']['length'];}}class a extends _0x329b6e{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x1501c1];}constructor(_0x48d09c){super(_0x48d09c),this['annotationViews']=new _0xae4f8e(),this['_pendingThreads']=[];}['init'](){const _0x22398e=this['editor'],_0x36e211=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x22398e['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x488b97,!0x0)),_0x22398e['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x3b6ab4=this['_createCommentsArchiveButton'](_0x5d24e6);return _0x3b6ab4['set']({'role':'menuitemcheckbox'}),_0x3b6ab4;});const _0x2a2d90=_0x22398e['plugins']['get'](p),_0xe383a0=_0x22398e['plugins']['get']('Annotations'),_0x4d1b78=_0x22398e['plugins']['get']('CommentsRepository');_0x2a2d90['archivedThreads']['forEach'](_0x24ce06=>{this['_handleNewThread'](_0x24ce06);}),this['listenTo'](_0x2a2d90['archivedThreads'],'add',(_0x22d072,_0x84f1e9)=>{this['_handleNewThread'](_0x84f1e9);}),this['listenTo'](_0xe383a0['collection'],'add',(_0x505713,_0x231389)=>{const _0x2ee5fb=this['_pendingThreads']['find'](_0x2218c2=>{const _0xd9d2b9=_0x4d1b78['_threadToController']['get'](_0x2218c2);return _0xd9d2b9&&_0x231389['innerView']===_0xd9d2b9['view'];});if(_0x2ee5fb){const _0x389fa5=this['_calculatePosition'](_0x2ee5fb['archivedAt']);this['annotationViews']['add'](_0x231389['view'],_0x389fa5),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x2ee5fb),0x1);}}),this['listenTo'](_0x2a2d90['archivedThreads'],'remove',(_0x2d822a,_0x3e44f5)=>{const _0x1381b5=_0x22398e['config']['get']('collaboration.channelId');if(!_0x1381b5||_0x3e44f5['channelId']===_0x1381b5){if(this['_pendingThreads']['includes'](_0x3e44f5))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x3e44f5),0x1);else{const _0xf409ee=_0x4d1b78['_threadToController']['get'](_0x3e44f5),_0x44abe6=_0xe383a0['getByInnerView'](_0xf409ee['view']);this['annotationViews']['remove'](_0x44abe6['view']),this['stopListening'](_0x44abe6['focusableElements']);}}}),this['listenTo'](_0xe383a0['collection'],'add',(_0x1a1e80,_0x39f98b)=>{this['listenTo'](_0x39f98b,'escape',_0x36e211);}),this['listenTo'](_0xe383a0['collection'],'remove',(_0x21b7a3,_0x2d93d2)=>{this['stopListening'](_0x2d93d2,'escape',_0x36e211);});}['_handleNewThread'](_0x2c8e26){const _0xe78a98=this['editor']['plugins']['get']('CommentsRepository'),_0x53217e=this['editor']['plugins']['get']('Annotations'),_0x509ee5=this['editor']['config']['get']('collaboration.channelId');if(!_0x509ee5||_0x2c8e26['channelId']===_0x509ee5){const _0x349e80=_0xe78a98['_threadToController']['get'](_0x2c8e26);if(!_0x349e80)return void this['_pendingThreads']['push'](_0x2c8e26);const _0x4ef72c=this['_calculatePosition'](_0x2c8e26['archivedAt']),_0x111b44=_0x53217e['getByInnerView'](_0x349e80['view']);_0x111b44['isVisible']&&_0x53217e['_visibleAnnotations']['remove'](_0x111b44),this['annotationViews']['add'](_0x111b44['view'],_0x4ef72c);}}['_calculatePosition'](_0x5c4fef){const _0x34de5f=this['editor']['config']['get']('collaboration.channelId'),_0x43f4e2=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x17a041=>_0x17a041['channelId']===_0x34de5f)['findIndex'](_0x5efe63=>_0x5efe63['archivedAt']<_0x5c4fef);return _0x43f4e2<0x0||_0x43f4e2>this['annotationViews']['length']?this['annotationViews']['length']:_0x43f4e2-0x1;}['_toggleDialog'](){const _0x19dbca=this['editor'],_0x2a7c0e=_0x19dbca['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x19dbca['locale'],this['annotationViews'])),'commentsArchive'===_0x2a7c0e['id']?_0x2a7c0e['hide']():_0x2a7c0e['show']({'id':'commentsArchive','title':N(_0x19dbca['locale'],'COMMENTS_ARCHIVE'),'icon':_0x430f4a,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x3a3406['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x3375de,_0x4185c8=!0x1){const _0x18dc53=this['editor']['locale'],_0xb6be39=this['editor']['plugins']['get']('Dialog'),_0x448b3f=new _0x3375de(_0x18dc53);return _0x448b3f['bind']('isEnabled')['to'](this,'isEnabled'),_0x448b3f['bind']('isOn')['to'](_0xb6be39,'id',_0x1d6224=>'commentsArchive'===_0x1d6224),_0x448b3f['set']({'label':N(_0x18dc53,'COMMENTS_ARCHIVE'),'icon':_0x430f4a,'isToggleable':!0x0}),_0x4185c8&&(_0x448b3f['tooltip']=!0x0),this['listenTo'](_0x448b3f,'execute',()=>this['_toggleDialog']()),_0x448b3f;}['_hideDialogOnAnnotationEscape']=_0x3bcc96=>{const _0x5a21da=_0x3bcc96['source'];if(!this['annotationViews']['has'](_0x5a21da['view']))return;const _0x221487=this['editor']['plugins']['get']('Dialog');_0x221487['isOpen']&&'commentsArchive'===_0x221487['id']&&(_0x221487['hide'](),_0x3bcc96['stop']());};}class gi extends _0x329b6e{static get['requires'](){return[o,r,s,p,a,i,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{rt as AddCommentThreadCommand,T as Annotation,S as AnnotationCollection,C as AnnotationCounterButtonView,E as AnnotationView,y as Annotations,R as AnnotationsSidebarItemView,H as AnnotationsSidebarView,j as AnnotationsUIs,si as BaseCommentThreadView,di as BaseCommentView,wi as Comment,pi as CommentThread,yt as CommentThreadController,ie as CommentThreadInputView,vt as CommentThreadView,gt as CommentView,gi as Comments,p as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,i as CommentsOnly,o as CommentsRepository,s as CommentsUI,b as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,z as Sidebar,e as WideSidebar,v as bindAnnotationCollections};