@ckeditor/ckeditor5-comments 46.1.1-alpha.0 → 46.1.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) 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
  194. package/src/utils/splitmarkername.js +1 -1
package/dist/index.js CHANGED
@@ -20,14 +20,14 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Editor as _0x105e8c,ContextPlugin as _0x45882f,PendingActions as lt,Command as _0x3b1e3e,Plugin as _0x343473,Context as _0x42ce06}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x3b516f,uid as _0x54b8c0,KeystrokeHandler as jt,FocusTracker as _0x1b2c22,diff as _0x391eb1,Collection as _0x6d21a2,Rect as _0x2a3444,CKEditorError as _0x3a839e,first as _0x50af64,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x35b43f,keyCodes as _0x27e8f5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0xcad54,AriaDescriptionView as Zt,setupThreadKeyboardNavigation as ts,ConfirmMixin as ti,LateFocusButtonView as _0x15dd93,trimHtml as _0x43d99e,LateFocusDropdownButtonView as _0x55b03a,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x19c6b5}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x274d42}from'es-toolkit/compat';import{IconUndo as _0x32991c,IconCheck as _0x19e459,IconPencil as _0x4ba6f1,IconRemoveComment as _0x2469e1,IconThreeVerticalDots as _0x3620df,IconAddComment as _0x19095f,IconCommentsArchive as _0x429585}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as Xt,InlineEditableUIView as $t,EditorUI as Ut,View as kt,FocusCycler as _0x37d3b8,ButtonView as _0x2a8d4c,ViewCollection as _0x20e792,createDropdown as _0x4385e5,ListView as _0x20bf99,focusChildOnDropdownOpen as _0x437724,ListItemView as _0x2c6d03,MenuBarMenuListItemButtonView as _0x2d277e,BodyCollection as _0x113f37,BalloonPanelView as _0x18fe7e,ContextualBalloon as _0x5a40fb,Dialog as _0x5d034a,DialogViewPosition as _0x30a45d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as qt,enableViewPlaceholder as St,MouseObserver as _0xd78016}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 _0x5af31f}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x3f33bd}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
- _0x3b516f(){['model'];['view'];constructor(_0x1a0ebd,_0x1c4a4f){super(),this['model']=_0x1a0ebd,this['model']['_isAttached']=!0x0,this['view']=_0x1c4a4f,this['listenTo'](_0x1c4a4f,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x1c4a4f,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x1c4a4f,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x1c4a4f,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x1c4a4f,'addComment',(_0x4e3a3e,_0x526fa6)=>this['addComment'](_0x526fa6)),this['listenTo'](_0x1c4a4f,'updateComment',(_0x268654,_0x49c67f,_0x42df9d)=>this['updateComment'](_0x49c67f,_0x42df9d)),this['listenTo'](_0x1c4a4f,'removeComment',(_0x19ce2a,_0x31c49d)=>this['removeComment'](_0x31c49d));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x5d282a){this['model']['addComment']({'content':_0x5d282a,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x10887a,_0x17f921){this['model']['getComment'](_0x10887a)['update']({'content':_0x17f921});}['removeComment'](_0x3322b2){this['model']['getComment'](_0x3322b2)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x4dcf71,_0x267ac7,_0x1aca99){const t=_0x4dcf71['t'];switch(_0x267ac7){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'},_0x1aca99);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'},_0x1aca99);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'},_0x1aca99);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'},_0x1aca99);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x1aca99);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'},_0x1aca99);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'},_0x1aca99);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'},_0x1aca99);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Vt extends Xt{['main'];['editable'];constructor(_0x3040e1,_0x24c06a){super(_0x3040e1);const _0x2c0f3c=_0x54b8c0();this['main']=this['createCollection'](),this['editable']=new $t(_0x3040e1,_0x24c06a,void 0x0,{'label':()=>N(_0x3040e1,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x3040e1['uiLanguageDirection'],'lang':_0x3040e1['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x2c0f3c},'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(_0x330db3){super(_0x330db3),this['view']=new Vt(_0x330db3['locale'],_0x330db3['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x9775c7=this['editor']['editing']['view'],_0xa2f078=this['view']['editable'],_0x11ce02=_0x9775c7['document']['getRoot']();_0xa2f078['name']=_0x11ce02['rootName'],this['view']['render']();const _0x4e4938=_0xa2f078['element'];this['setEditableElement'](_0xa2f078['name'],_0x4e4938),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x9775c7['attachDomRoot'](_0x4e4938),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[zt,Bt,Et,Gt,Jt,Kt,Lt];class Rt extends/* #__PURE__ -- @preserve */
25
- _0x3b516f(_0x105e8c){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Qt)());constructor(_0x11297e={}){function _0xaf6f62(_0x4bd540){return _0x4bd540['map'](_0x539a99=>String['fromCharCode'](_0x539a99))['join']('');}(_0x11297e=Object['assign']({},_0x11297e))['plugins']||(_0x11297e['plugins']=Rt['defaultPlugins']),super(_0x11297e),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[_0xaf6f62([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xaf6f62([0x76,0x69,0x65,0x77])][_0xaf6f62([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xaf6f62([0x61,0x75,0x74,0x6f]),this[_0xaf6f62([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xaf6f62([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xaf6f62([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xaf6f62([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xaf6f62([0x6f,0x6b])});}['create'](){const _0x3550f2=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x3550f2))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x1cf43b=>{const _0x39b660=this['model']['document']['getRoot'](),_0x38aad8=_0x39b660&&_0x39b660['getChild'](_0x39b660['childCount']-0x1);_0x1cf43b['setSelection'](_0x38aad8,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x3ac3b0=this['editing']['view'],_0x336991=_0x3ac3b0['document']['getRoot'](),_0x22094a=_0x336991['getChild'](0x0);_0x336991['childCount']>0x1||!_0x22094a||'p'!=_0x22094a['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(qt(_0x3ac3b0,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x22094a['placeholder']=this['placeholder']),St({'view':_0x3ac3b0,'element':_0x22094a,'keepOnFocus':!0x0}),this['placeholderElement']=_0x22094a);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x33b103,_0x2e9d8d={}){super(_0x33b103),this['editor']=null,this['_editorConfig']=_0x2e9d8d,this['set']('value',_0x2e9d8d['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x33b103,'Reply...')),this['set']('submitLabel',N(_0x33b103,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x1b2c22(),this['focusCycler']=new _0x37d3b8({'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',(_0x1ce145,_0x19be43)=>{this['cancelButtonView']['fire']('execute'),_0x19be43();}),this['keystrokes']['set']('Ctrl+Enter',(_0x240a09,_0x21962a)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x21962a());}),this['on']('submit',(_0x413dad,_0x555c08)=>{_0x555c08['length']>0xfde8?(alert(N(_0x33b103,'TOO_LONG_COMMENT_ALERT',[_0x555c08['length'],0xfde8])),_0x413dad['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Rt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x1cbc8d=this['editor'];this['element']['insertBefore'](_0x1cbc8d['ui']['element'],this['element']['firstChild']),_0x1cbc8d['model']['document']['on']('change',()=>this['value']=_0x1cbc8d['getData']()),_0x1cbc8d['bind']('placeholder')['to'](this),this['focusables']['add'](_0x1cbc8d['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x4bcb92){-0x1===_0x4bcb92?(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:_0x46463e}=this,_0x568d71=new _0x2a8d4c(_0x46463e);return _0x568d71['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x568d71['withText']=!0x0,_0x568d71['bind']('label')['to'](this,'submitLabel'),_0x568d71['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x568d71['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x134b5f,_0x5f167a)=>!_0x5f167a&&!!_0x134b5f['trim']()),_0x568d71;}['_createCancelButton'](){const {locale:_0x51b5af}=this,_0xa56d8d=new _0x2a8d4c(_0x51b5af);return _0xa56d8d['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0xa56d8d['label']=N(_0x51b5af,'Cancel'),_0xa56d8d['withText']=!0x0,_0xa56d8d['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0xa56d8d;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x3182f5=>{this['focusTracker']['add'](_0x3182f5['element']);}),this['focusables']['on']('change',(_0x1a5079,_0x327e6a)=>{for(const _0x108b2d of Array['from'](_0x327e6a['added'])['reverse']())this['focusTracker']['add'](_0x108b2d['element']);});}}class ie extends kt{constructor(_0x5683fe,_0x3bedf6,_0x9d810a){super(_0x5683fe),this['commentInputView']=new os(_0x5683fe,_0x9d810a),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x1d0307,_0x4f9d94)=>_0x1d0307||!!_0x4f9d94),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 _0xcad54(_0x5683fe,_0x3bedf6),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'](_0x2a389b){this['commentInputView']['focus'](_0x2a389b);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x23d9d7,_0x302067)=>{const {submitButtonView:_0x2191f5,cancelButtonView:_0x32e103,editor:_0x5d38a2}=this['commentInputView'];[_0x2191f5['element'],_0x32e103['element'],_0x5d38a2?_0x5d38a2['editing']['view']['getDomRoot']():null]['filter'](_0x55880a=>_0x55880a)['some'](_0xf90da1=>_0xf90da1['contains'](_0x302067['target']))||(this['focus'](),_0x302067['preventDefault']());});}}class rs extends kt{constructor(_0x2575ce){super(_0x2575ce);const _0x4701f5=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x4701f5['to']('count',_0x140f44=>N(_0x2575ce,'NUMBER_OF_COMMENTS',_0x140f44))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x57edd3,_0x209647,_0x5af550){super(_0x57edd3);const _0x535913=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x209647['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x209647,this['_config']=_0x5af550,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x1b2c22(),this['keystrokes']=new jt(),this['focusCycler']=new _0x37d3b8({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x24fc39=>this['commentViews']['map'](_0x3c502c=>_0x3c502c['element'])['includes'](_0x24fc39['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x57edd3),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x209616=>_0x209616-this['_config']['maxCommentsWhenCollapsed']);for(const _0x2de6f7 of _0x209647['comments'])this['_handleNewCommentModel'](_0x2de6f7);this['_handleInfoComment'](),this['listenTo'](_0x209647['comments'],'add',(_0x1bcc96,_0xf5d3cd)=>{const _0x1992de=this['_calculatePosition'](_0xf5d3cd);this['length']++,this['_handleNewCommentModel'](_0xf5d3cd,_0x1992de),this['refreshVisibleViews']();}),this['listenTo'](_0x209647['comments'],'remove',(_0xbccf32,_0x373d7b)=>{this['length']--,this['_handleRemoveCommentModel'](_0x373d7b),this['refreshVisibleViews']();}),this['listenTo'](_0x209647,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x209647,'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',_0x535913['if']('length','ck-hidden',_0x394752=>!_0x394752)],'aria-label':N(_0x57edd3,'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'](_0x2d5704){-0x1===_0x2d5704?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x428887 of this['commentViews'])_0x428887['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x24b8b6,_0xcfbd68){const _0x216945=new this['_config']['CommentView'](this['locale'],_0x24b8b6,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x216945['viewUid']=_0x24b8b6['id'],_0x216945['delegate']('removeComment')['to'](this),_0x216945['delegate']('updateComment')['to'](this),_0x216945['delegate']('resolveCommentThread')['to'](this),_0x216945['delegate']('editorReady')['to'](this),_0x216945['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x216945,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x216945,_0xcfbd68);}['_calculatePosition'](_0x37cbf8){const _0x11d182=this['_model']['_findOptimalIndex'](_0x37cbf8);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x37cbf8['authoredAt']?_0x11d182-0x1:_0x11d182:_0x11d182-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x14a749={'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'],_0x14a749,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x14a749));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x100db9){const _0x1d1f00=this['commentViews']['remove'](_0x100db9['id']);this['stopListening'](_0x1d1f00),_0x1d1f00['isEditMode']&&this['_updateHasDirtyComment'](),_0x1d1f00['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x20c17e=>_0x20c17e['isEditMode']);}['_rearrangeCollapse'](){const _0x333d70=function(_0x10fc68){const _0xba612d=new _0x6d21a2();for(const _0x2dde03 of _0x10fc68)_0xba612d['add'](_0x2dde03);return _0xba612d;}(this['commentViews']),_0x2bbbaf=this['_collapsedCommentsView']['count'];for(let _0x2e35df=0x1;_0x2e35df<=_0x2bbbaf;_0x2e35df++)_0x333d70['remove'](0x1);for(const _0x41fd13 of _0x333d70)_0x41fd13['collapse']();_0x2bbbaf>0x0&&_0x333d70['add'](this['_collapsedCommentsView'],0x1),ns(_0x391eb1(Array['from'](this['visibleViews']),Array['from'](_0x333d70)),this['visibleViews'],_0x333d70);}['_rearrangeExpand'](){ns(_0x391eb1(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x299435 of this['visibleViews'])_0x299435['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x54d0b0=>{this['focusTracker']['add'](_0x54d0b0['element']),this['keystrokes']['listenTo'](_0x54d0b0['element']);}),this['commentViews']['on']('change',(_0x50305f,_0x32f8b2)=>{for(const _0x15ad5a of _0x32f8b2['removed'])this['focusTracker']['remove'](_0x15ad5a['element']),this['keystrokes']['stopListening'](_0x15ad5a['element']);for(const _0x3f509a of Array['from'](_0x32f8b2['added'])['reverse']())this['focusTracker']['add'](_0x3f509a['element']),this['keystrokes']['listenTo'](_0x3f509a['element']);});}}function ns(_0x21d0f0,_0x22e157,_0x18a534){let _0x3972d3=0x0;for(const _0x51b653 of _0x21d0f0)switch(_0x51b653){case'insert':_0x22e157['add'](_0x18a534['get'](_0x3972d3),_0x3972d3),_0x3972d3++;break;case'delete':_0x22e157['remove'](_0x3972d3);break;case'equal':_0x3972d3++;}}class oe extends kt{constructor(_0x1b5092){super(_0x1b5092);const _0x4d61ba=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x4d61ba['to']('contextValue',_0xf7d2fa=>N(_0x1b5092,'THREAD_CONTEXT_LABEL',_0xf7d2fa)),'tabindex':-0x1},'children':[{'text':_0x4d61ba['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x131a00,_0x4ed55e){super(_0x131a00);const _0x33eb95=this['bindTemplate'];this['_model']=_0x4ed55e,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x1b2c22(),this['keystrokes']=new jt(),this['focusCycler']=new _0x37d3b8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x39e776=>!!_0x39e776),this['bind']('contextValue')['to'](this['_model'],'context',_0xfeb561=>_0xfeb561&&_0xfeb561['value']?this['_trimContextValue'](_0xfeb561['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',_0x33eb95['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 _0x43b0f4=new _0x2a8d4c(this['locale']);return _0x43b0f4['label']=N(this['locale'],'Reopen'),_0x43b0f4['tooltip']=N(this['locale'],'Reopen'),_0x43b0f4['icon']=_0x32991c,_0x43b0f4['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x490d60=>!_0x490d60),_0x43b0f4['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x231507,_0x32ca90)=>_0x231507&&_0x32ca90),_0x43b0f4['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x43b0f4;}['_trimContextValue'](_0x451234){if(_0x451234['length']<0x96)return _0x451234;const _0x3fdaef=_0x451234['lastIndexOf']('\x20',0x93);return _0x451234['substring'](0x0,_0x3fdaef>-0x1?_0x3fdaef:0x93)+'...';}['_attachContextActions'](){const _0x2d57af=this['element']['querySelector']('.ck-context'),_0x2f46b7=_0x2d57af['querySelector']('.ck-context__value');this['listenTo'](_0x2d57af,'mouseenter',()=>{_0x2f46b7['offsetWidth']<_0x2f46b7['scrollWidth']&&_0x2d57af['classList']['add']('overlay');}),this['listenTo'](_0x2d57af,'mouseleave',()=>{_0x2d57af['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x242c90 of this['focusables'])this['focusTracker']['add'](_0x242c90['element']),this['keystrokes']['listenTo'](_0x242c90['element']);}['_createContextView'](){const _0x1928d0=new oe(this['locale']);return _0x1928d0['bind']('contextValue')['to'](this),_0x1928d0;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x52a3cc,_0x15bd32,_0x5d18f5,_0x4a9ac1){super(_0x52a3cc),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x15bd32,this['_localUser']=_0x5d18f5,this['_config']=_0x4a9ac1,this['commentThreadHeaderView']=new Yt(_0x52a3cc,_0x15bd32),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0x52a3cc,N(_0x52a3cc,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x52a3cc,_0x15bd32,Object['assign']({'CommentView':this['_config']['CommentView']},_0x4a9ac1)),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',(_0x36011d,_0xe69c40)=>_0x36011d||!!_0xe69c40),this['bind']('isUnlinked')['to'](_0x15bd32,'unlinkedAt',_0x4264b6=>!!_0x4264b6),this['bind']('ariaLabel')['to'](this,'length',_0x3a7475=>{const _0x30a7d0=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x3a7475,_0x30a7d0]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x1b2c22(),this['keystrokes']=new jt(),this['focusCycler']=new _0x37d3b8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xd0bc80=>_0xd0bc80['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),ts(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x5c78c9=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xbd45dc=_0x5c78c9['commentInputView'];return _0x5c78c9['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0xbd45dc,'value',(_0x1adaca,_0x1c4499,_0xfb642a,_0x203085,_0x114327)=>!!_0x114327||!!_0x203085&&_0xfb642a&&!_0x1c4499||_0x1adaca&&_0xfb642a&&!_0x1c4499),_0xbd45dc['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x1a7d5a,_0x573338,_0x648690)=>{let _0x1dabd7;return _0x1dabd7=_0x648690&&_0x573338?'Reply\x20to\x20reopen\x20discussion...':_0x1a7d5a?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x1dabd7);}),_0xbd45dc['bind']('submitLabel')['to'](this,'length',_0x4b0a7a=>N(this['locale'],_0x4b0a7a?'Reply':'Comment')),_0xbd45dc['on']('submit',(_0x3a4e9e,_0x37e755)=>{this['fire']('addComment',_0x37e755),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0xbd45dc['on']('cancel',()=>{this['focus']();}),_0xbd45dc['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0xbd45dc['on']('cancel',_0x43f569=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x43f569['stop']());}),this['on']('change:isActive',(_0x35c7fa,_0x39b10f,_0x2c713e)=>{_0x2c713e||this['length']||_0xbd45dc['value']||this['fire']('removeCommentThread');}),_0x5c78c9;}}class gt extends/* #__PURE__ -- @preserve */
27
- ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x4969ca,_0xf26067,_0x1b924e,_0x1a7a67){super(_0x4969ca,_0xf26067,_0x1b924e,_0x1a7a67),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x4969ca,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x4403b7,_0x572a46,_0x123ae0)=>{_0x123ae0||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x3f0a89,_0xaa7e77,_0x37f990)=>{_0x37f990&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x1ba90b=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x1ba90b['if']('isActive','ck-thread--active'),_0x1ba90b['if']('isUnlinked','ck-thread--unlinked'),_0x1ba90b['if']('isConfirm','ck-thread--remove-confirmation'),_0x1ba90b['to']('actionIndicator',_0x3a83bb=>_0x3a83bb?'ck-thread--'+_0x3a83bb:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x1ba90b['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 _0x53d9e8 of this['commentsListView']['commentViews'])_0x53d9e8['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x460352}=this,_0x3597ba=this['commentsListView']['commentViews']['get'](0x0);_0x3597ba===this['_boundFirstCommentView']||_0x3597ba['isSystemComment']||(this['_boundFirstCommentView']=_0x3597ba,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x3597ba,'actionIndicator',_0x2ab3ee=>'remove'===_0x2ab3ee?'remove':null),_0x3597ba['placeholder']=N(_0x460352,'Write\x20a\x20comment...'),_0x3597ba['removeButton']['on']('execute',_0x57f9e8=>{_0x57f9e8['stop'](),this['showConfirm'](N(_0x460352,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x3597ba['focus']();}),_0x3597ba['actionBar']['add'](this['resolveButton'],0x0),_0x3597ba['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x7f852d=new _0x15dd93(this['locale']);return _0x7f852d['label']=N(this['locale'],'Resolve'),_0x7f852d['tooltip']=N(this['locale'],'Resolve'),_0x7f852d['icon']=_0x19e459,_0x7f852d['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x7f852d['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x19266d=>!_0x19266d),_0x7f852d['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3338ce,_0x150b7c)=>_0x3338ce&&!_0x150b7c),_0x7f852d['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x7f852d;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class es extends kt{constructor(_0x5706e5){super(_0x5706e5),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x300421,_0x49f41d,_0x158a26)=>{this['element']['innerHTML']=_0x158a26;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3916da,_0x4ba561,_0x4763ca){super(_0x3916da),this['_model']=_0x4ba561,this['_config']=_0x4763ca,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x4ba561,'content',_0x4ba561,'authoredAt',(_0x5cd1c3,_0x221c99)=>N(_0x3916da,'COMMENT_ARIA_LABEL',[_0x4ba561['author']['name'],_0x4763ca['formatDateTime'](_0x221c99),new DOMParser()['parseFromString'](_0x5cd1c3,'text/html')['body']['textContent'],_0x4ba561['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Zt(_0x3916da,N(_0x3916da,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x20e792(),this['focusTracker']=new _0x1b2c22(),this['keystrokes']=new jt(),this['focusCycler']=new _0x37d3b8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x48c3cf=>_0x48c3cf['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 _0x506add=new es(this['locale']);return _0x506add['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x40c79c,_0xe24c52)=>_0xe24c52?_0x43d99e(_0x40c79c,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x40c79c),_0x506add;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x41cb2d=new os(this['locale'],this['_config']['editorConfig']);return _0x41cb2d['value']=this['_model']['content'],_0x41cb2d['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x41cb2d['submitLabel']=N(this['locale'],'Save'),_0x41cb2d['on']('submit',(_0xcb3117,_0x174773)=>{this['fire']('updateComment',this['_model']['id'],_0x174773),this['switchToDisplayMode'](),this['focus']();}),_0x41cb2d['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x41cb2d['once']('editorReady',()=>{_0x41cb2d['focus']();}),_0x41cb2d['createEditor'](),_0x41cb2d['delegate']('editorReady')['to'](this),_0x41cb2d['delegate']('editorDestroyed')['to'](this),_0x41cb2d;}['_setupKeyboardNavigation'](){const _0x36f174=this['element'];this['keystrokes']['listenTo'](_0x36f174);for(const _0x17f3f3 of this['focusables'])this['focusTracker']['add'](_0x17f3f3['element']),this['keystrokes']['listenTo'](_0x17f3f3['element']);this['focusables']['on']('change',(_0x3f4fd0,_0xa9e21a)=>{for(const _0x5a2884 of _0xa9e21a['removed'])this['focusTracker']['remove'](_0x5a2884['element']),this['keystrokes']['stopListening'](_0x5a2884['element']);for(const _0x213429 of _0xa9e21a['added'])this['focusTracker']['add'](_0x213429['element']),this['keystrokes']['listenTo'](_0x213429['element']);}),this['keystrokes']['set']('enter',(_0x28d16c,_0x1195af)=>{_0x36f174===_0x28d16c['target']&&(this['focusCycler']['focusFirst'](),_0x1195af());}),this['keystrokes']['set']('esc',(_0x5ea658,_0x36f0f8)=>{_0x36f174!==_0x5ea658['target']&&(this['focus'](),_0x36f0f8());});}}class Tt extends/* #__PURE__ -- @preserve */
28
- ti(di){['actionBar'];['userView'];constructor(_0x304847,_0x2140ba,_0x1b7ddc){super(_0x304847,_0x2140ba,_0x1b7ddc),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x304847,'Reply...')),this['bind']('authoredAt')['to'](_0x2140ba),this['bind']('resolvedAt')['to'](_0x2140ba),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 _0xcad54(_0x304847,_0x2140ba['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x2140ba,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x195cff=this['bindTemplate'],_0x5ac97b=[{'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':_0x195cff['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x195cff['to']('authoredAt',_0x2adbbd=>this['_config']['formatDateTime'](_0x2adbbd))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x195cff['if']('isEditMode','ck-comment__actions--hidden'),_0x195cff['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']&&_0x5ac97b['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x195cff['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x195cff['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x195cff['if']('isEditMode','ck-comment--edit'),_0x195cff['if']('isSystemComment','ck-comment--info'),_0x195cff['to']('actionIndicator',_0x3d4d48=>_0x3d4d48?'ck-comment--'+_0x3d4d48:'')],'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':_0x5ac97b}]}]};}['_createEditButton'](){const _0x1729c0=new _0x2a8d4c(this['locale']);return _0x1729c0['label']=N(this['locale'],'Edit'),_0x1729c0['icon']=_0x4ba6f1,_0x1729c0['withText']=!0x0,_0x1729c0['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x1729c0['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x542cf3=>!_0x542cf3),_0x1729c0['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x1729c0['on']('execute',()=>this['switchToEditMode']()),_0x1729c0;}['_createRemoveButton'](){const _0xe46c35=new _0x2a8d4c(this['locale']);return _0xe46c35['label']=N(this['locale'],'Remove'),_0xe46c35['icon']=_0x2469e1,_0xe46c35['withText']=!0x0,_0xe46c35['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0xe46c35['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x542e19=>!_0x542e19),_0xe46c35['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0xe46c35['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0xe46c35;}['_createDropdown'](){const _0x22fcd7=_0x4385e5(this['locale'],_0x55b03a),_0x24e71f=_0x22fcd7['panelView']['children'],_0x2cf110=new _0x20bf99(this['locale']),_0x1c7ddb=_0x22fcd7['bindTemplate'];_0x437724(_0x22fcd7,()=>this['items']['find'](_0x5369b1=>_0x5369b1['isVisible'])),_0x22fcd7['extendTemplate']({'attributes':{'class':[_0x1c7ddb['if']('isVisible','ck-hidden',_0x56baa6=>!_0x56baa6)]}});const _0x48ff04=(_0x20f79d,_0x27c9c1=-0x1)=>{const _0x2828dc=new _0x2c6d03(this['locale']);_0x2828dc['children']['add'](_0x20f79d);const _0x45f220=_0x27c9c1>-0x1?_0x27c9c1:_0x2cf110['items']['length'];_0x2cf110['items']['add'](_0x2828dc,_0x45f220);const _0x47c51e=Array['from'](this['items']);_0x22fcd7['unbind']('isEnabled','isVisible'),_0x22fcd7['bind']('isEnabled')['toMany'](_0x47c51e,'isEnabled',(..._0x22722e)=>_0x22722e['some'](_0x35dc8a=>_0x35dc8a)),_0x22fcd7['bind']('isVisible')['toMany'](_0x47c51e,'isVisible',(..._0xdad12e)=>_0xdad12e['some'](_0x2c2f28=>_0x2c2f28));};_0x22fcd7['panelPosition']='sw',_0x22fcd7['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x3620df});for(const _0x3ab428 of this['items'])_0x48ff04(_0x3ab428);return _0x24e71f['add'](_0x2cf110),_0x22fcd7['listenTo'](this['items'],'add',(_0x141698,_0x466fa4,_0x3d2c85)=>{_0x48ff04(_0x466fa4,_0x3d2c85);}),_0x22fcd7['listenTo'](this['items'],'remove',(_0x543e8b,_0x114965,_0x50c7bc)=>{_0x2cf110['items']['remove'](_0x50c7bc);}),_0x22fcd7;}['_attachActions'](_0x24e64c,_0x25cbe3){const _0x509681=_0x24e64c&&_0x24e64c['element'];_0x509681&&(this['listenTo'](_0x509681,'mouseenter',()=>this['actionIndicator']=_0x25cbe3),this['listenTo'](_0x509681,'focus',()=>this['actionIndicator']=_0x25cbe3),this['listenTo'](_0x509681,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x509681,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x4902d3=super['_createCommentInputView']();return _0x4902d3['bind']('placeholder')['to'](this),_0x4902d3;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x259cdf){const _0x3091eb=Dt(_0x259cdf,0x1e),_0x3f85ad=new MutationObserver(_0x444c11=>{for(const _0x16134c of _0x444c11)('attributes'==_0x16134c['type']&&'class'==_0x16134c['attributeName']||'childList'==_0x16134c['type']||'characterData'==_0x16134c['type'])&&_0x3091eb();});return{'attach'(_0x79d03){_0x3f85ad['observe'](_0x79d03,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x3f85ad['disconnect'](),_0x3091eb['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x204262,_0x2ebb5e){super(_0x204262),this['id']=_0x54b8c0(),this['focusTracker']=new _0x1b2c22(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x550f04,_0x4a0a66)=>this['fire']('Esc',_0x4a0a66)),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'](_0x2ebb5e),this['mainView']=_0x2ebb5e;const _0x3dc900=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x3dc900['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 _0x41ced6=this['element']['clientHeight'];_0x41ced6&&(this['height']=_0x41ced6);}}class T extends/* #__PURE__ -- @preserve */
29
- _0x3b516f(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0xaafa1,target:_0x4e208d,type:_0x1cf700,isVisible:_0x548ae5=!0x0}){super(),this['view']=_0xaafa1,this['view']['element']||this['view']['render'](),this['_type']=_0x1cf700,this['_target']=_0x4e208d,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x6d21a2([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0xb87917,_0xaac605)=>{this['view']['focusTracker']['add'](_0xaac605);}),this['focusableElements']['on']('remove',(_0x484fc0,_0xe432dd)=>{this['view']['focusTracker']['remove'](_0xe432dd);}),this['set']('isVisible',_0x548ae5);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x1353e5=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x1353e5),_0x1353e5;}get['targetRect'](){const _0x3bbc51=this['target'];if(null===_0x3bbc51)return null;if(_0x3bbc51 instanceof _0x2a3444)return _0x3bbc51;const _0x537a73=_0x3bbc51['filter'](_0x114eaf=>function(_0x469d01){const _0x438136=_0x469d01['offsetParent'];if(_0x438136)return!0x0;const _0x2a333f=_0x469d01['getClientRects']()['item'](0x0);return!!_0x2a333f;}(_0x114eaf));return 0x0===_0x537a73['length']?null:new _0x2a3444(_0x537a73[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x5cae33){this['view']['isActive']=_0x5cae33,this['view']['mainView']['isActive']=_0x5cae33;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x3ed17e){if(!(null===_0x3ed17e||_0x3ed17e instanceof _0x2a3444||Array['isArray'](_0x3ed17e)&&_0x3ed17e['every'](_0x58de4f=>fi(_0x58de4f))))throw new _0x3a839e('annotation-invalid-target',null,{'target':_0x3ed17e});}['_getNormalizedTarget'](){const _0x373662='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x373662)?[_0x373662]:_0x373662;}}function fi(_0x3f9a87){return null!==_0x3f9a87&&'object'==typeof _0x3f9a87&&'nodeType'in _0x3f9a87&&0x1===_0x3f9a87['nodeType'];}class S extends _0x6d21a2{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x5e80aa=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x1b2c22(),this['_focusTracker']['on']('change:isFocused',(_0xa429c1,_0x2495fa,_0x2ab753)=>{_0x2ab753||this['fire']('blur');});for(const _0x5a0849 of _0x5e80aa)this['add'](_0x5a0849);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x122ede){if(this['has'](_0x122ede))throw new _0x3a839e('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x122ede['innerView'],_0x122ede),this['_viewToAnnotation']['set'](_0x122ede['view'],_0x122ede);for(const _0x284fbc of _0x122ede['focusableElements'])this['_focusTracker']['add'](_0x284fbc);this['listenTo'](_0x122ede['focusableElements'],'add',(_0x4fff66,_0x2568ac)=>{this['_focusTracker']['add'](_0x2568ac);}),this['listenTo'](_0x122ede['focusableElements'],'remove',(_0x1de6a3,_0x5d5155)=>{this['_focusTracker']['remove'](_0x5d5155);}),this['listenTo'](_0x122ede['view']['focusTracker'],'change:isFocused',(_0x312094,_0x521e53,_0x5076dd)=>{_0x5076dd&&this['fire']('focus',_0x122ede);}),_0x122ede['updateTargetRect']();const _0x4bea9f=this['_getOrderInContent'](_0x122ede['view']['targetRect']);return super['add'](_0x122ede,_0x4bea9f);}['remove'](_0x2f7a9a){if(!this['has'](_0x2f7a9a))throw new _0x3a839e('annotationcollection-not-existing-item',null);this['stopListening'](_0x2f7a9a['view']['focusTracker']),this['stopListening'](_0x2f7a9a['focusableElements']);for(const _0x35d707 of _0x2f7a9a['focusableElements'])this['_focusTracker']['remove'](_0x35d707);return this['_viewToAnnotation']['delete'](_0x2f7a9a['view']),this['_innerViewToAnnotation']['delete'](_0x2f7a9a['innerView']),super['remove'](_0x2f7a9a);}['getByInnerView'](_0x4d9647){return this['_innerViewToAnnotation']['get'](_0x4d9647);}['getByView'](_0x505e4a){return this['_viewToAnnotation']['get'](_0x505e4a);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x2914dd of this)_0x2914dd['updateTargetRect']();this['_sort']();}['_sort'](){const _0x27b74e=Array['from'](this)['sort']((_0xc5a024,_0x1020ce)=>w(_0xc5a024['view']['targetRect'],_0x1020ce['view']['targetRect']));for(let _0xa5ac66=_0x27b74e['length']-0x1;_0xa5ac66>0x0;_0xa5ac66--){const _0x58bc6e=_0x27b74e[_0xa5ac66];_0xa5ac66!==this['getIndex'](_0x58bc6e)&&(this['remove'](_0x58bc6e),this['add'](_0x58bc6e));}}['_getOrderInContent'](_0x52165d){let _0x808464=0x0;if(!_0x52165d)return this['length'];for(const _0x57f74c of this){const _0x170dc7=_0x57f74c['view']['targetRect'];if(_0x170dc7){if(w(_0x52165d,_0x170dc7)<0x0)return _0x808464;_0x808464++;}}return _0x808464;}}function v({source:_0x552c14,target:_0x1db82f,filter:_0x5e6d26}){for(const _0x18b778 of _0x552c14)_0x5e6d26(_0x18b778)&&_0x1db82f['add'](_0x18b778);_0x1db82f['listenTo'](_0x552c14,'add',(_0x3b431e,_0x2cbe3b)=>{_0x5e6d26(_0x2cbe3b)&&_0x1db82f['add'](_0x2cbe3b);}),_0x1db82f['listenTo'](_0x552c14,'remove',(_0x42c104,_0x18054f)=>{_0x1db82f['has'](_0x18054f)&&_0x1db82f['remove'](_0x18054f);});}function w(_0x14f3e3,_0x5c5f80){if(null===_0x14f3e3&&null===_0x5c5f80)return 0x0;if(null===_0x14f3e3)return-0x1;if(null===_0x5c5f80)return 0x1;const _0x3ba6af=_0x14f3e3['top']-_0x5c5f80['top'];return 0x0==_0x3ba6af?_0x14f3e3['left']-_0x5c5f80['left']:_0x3ba6af;}class y extends _0x45882f{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3843b1){if(super(_0x3843b1),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x3843b1 instanceof _0x105e8c){const _0x362542=_0x3843b1['locale'];_0x3843b1['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x362542,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x362542,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x362542,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x362542,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x362542,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x362542,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x362542,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x11575d){this['collection']['add'](_0x11575d);}['remove'](_0x49a8a0){this['collection']['remove'](_0x49a8a0),_0x49a8a0['destroy']();}['refreshVisibility'](){for(const _0x2aa74f of this['collection'])_0x2aa74f['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x2aa84c){return this['collection']['getByInnerView'](_0x2aa84c);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x3fe5a7 of this['collection'])_0x3fe5a7['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x2dc3b8){this['fire']('_activateAnnotation',_0x2dc3b8);}['createAnnotation'](_0x58acce){return new T(_0x58acce);}['createAnnotationView'](_0x5ea4d0,_0x2ef5d1){return new E(_0x5ea4d0,_0x2ef5d1);}['_addActiveAnnotation'](_0x235146){const _0x45aa58=new Set(this['activeAnnotations']);_0x45aa58['add'](_0x235146),this['activeAnnotations']=_0x45aa58;}['_removeActiveAnnotation'](_0x2cd372){const _0x3dba98=new Set(this['activeAnnotations']);_0x3dba98['delete'](_0x2cd372),this['activeAnnotations']=_0x3dba98;}['_bindAnnotationsToVisibleAnnotations'](){const _0x2f699e=this['collection'],_0x1c8280=this['_visibleAnnotations'];function _0x2a8109(_0x5ad483){const _0x14684d=_0x5ad483['source'];_0x14684d['isVisible']&&!_0x1c8280['has'](_0x14684d)?_0x1c8280['add'](_0x14684d):!_0x14684d['isVisible']&&_0x1c8280['has'](_0x14684d)&&_0x1c8280['remove'](_0x14684d),_0x14684d['view']['focusTracker']['remove'](_0x14684d['view']['element']),_0x14684d['view']['focusTracker']['add'](_0x14684d['view']['element']);}this['listenTo'](_0x2f699e,'add',(_0x1ce6d1,_0x3955bc)=>{_0x3955bc['isVisible']&&_0x1c8280['add'](_0x3955bc),this['listenTo'](_0x3955bc,'change:isVisible',_0x2a8109);}),this['listenTo'](_0x2f699e,'remove',(_0x511c8c,_0x3011b5)=>{_0x1c8280['has'](_0x3011b5)&&_0x1c8280['remove'](_0x3011b5),this['stopListening'](_0x3011b5,'change:isVisible',_0x2a8109);});}['_setupEnterAnnotationKeystroke'](){const _0x327fbf=_0x102639=>{_0x102639['on']('ready',()=>{_0x102639['keystrokes']['set'](_0x5af31f,(_0x52fd90,_0x229f22)=>{const _0x21759f=_0x50af64(this['activeAnnotations']['values']());_0x21759f&&(_0x21759f['view']['focus'](),_0x229f22());});});};this['context']instanceof _0x105e8c?_0x327fbf(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x19a121,_0x197c85)=>{_0x327fbf(_0x197c85);});}['_setupEscapeAnnotationHandling'](){const _0x13e9b1=_0x4ca7dc=>{const _0x4b2be4=_0x4ca7dc['source'],_0x1d51c8=[];let _0x221a3e;if(Array['isArray'](_0x4b2be4['target'])){_0x221a3e=_0x4b2be4['target'][0x0],this['context']instanceof _0x105e8c?_0x1d51c8['push'](this['context']):this['context']['editors']&&_0x1d51c8['push'](...this['context']['editors']);for(const _0x4d78b1 of _0x1d51c8)for(const _0x3925d8 of _0x4d78b1['editing']['view']['domRoots']['values']())if(_0x3925d8['contains'](_0x221a3e))return void _0x4d78b1['editing']['view']['focus']();_0x221a3e['focus']();}};this['listenTo'](this['collection'],'add',(_0x4935d7,_0x17c51c)=>{this['listenTo'](_0x17c51c,'escape',_0x13e9b1,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x3cc4c0,_0x20da10)=>{this['stopListening'](_0x20da10,'escape',_0x13e9b1);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x45882f{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[y,lt,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56b7a1){super(_0x56b7a1),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x1d4177=this['context']['config'];_0x1d4177['define']('comments.maxCommentsWhenCollapsed',0x2),_0x1d4177['define']('comments.maxThreadTotalWeight',0x1f4),_0x1d4177['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x1d4177['define']('comments.CommentThreadView',gt),_0x1d4177['define']('comments.CommentView',Tt),_0x1d4177['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x45850c=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x46eed9,_0x2815a6)=>this['_addCommentThread'](_0x2815a6)),this['on']('submitCommentThread',(_0x5b1359,_0xcee1fb)=>this['_submitCommentThread'](_0xcee1fb)),this['on']('resolveCommentThread',(_0x1cea4,_0xea5cfd)=>this['_resolveCommentThread'](_0xea5cfd)),this['on']('resolveCommentThread',(_0x4aa97d,_0x25ea8c)=>this['_updateActiveAnnotation'](_0x25ea8c),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x2785b3,_0x903ef5)=>this['_reopenCommentThread'](_0x903ef5)),this['on']('reopenCommentThread',(_0x597e74,_0x35234c)=>this['_updateActiveAnnotation'](_0x35234c),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x126f05,_0x1b4aa3)=>this['_removeCommentThread'](_0x1b4aa3)),this['on']('updateCommentThread',(_0x5beaf7,_0xfec400)=>this['_updateCommentThread'](_0xfec400)),this['on']('updateCommentThread',(_0x2c480c,_0x27de67)=>this['_updateActiveAnnotation'](_0x27de67),{'priority':'lowest'}),this['on']('addComment',(_0x494699,_0x3038d8)=>this['_addComment'](_0x3038d8)),this['on']('updateComment',(_0x20e001,_0x48b105)=>this['_updateComment'](_0x48b105)),this['on']('removeComment',(_0x4278bc,_0x641296)=>this['_removeComment'](_0x641296)),this['on']('addComment',(_0x22ae58,{threadId:_0x6d8891,isFromAdapter:_0x580f15})=>{if(_0x580f15)return;const _0x40fa2c=this['getCommentThread'](_0x6d8891),_0x3cd2a3=_0x40fa2c&&this['_threadToController']['get'](_0x40fa2c);_0x3cd2a3&&_0x3cd2a3['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x45850c,'change:activeAnnotations',(_0x6d58a8,_0x155b4f,_0x342eaa)=>{const _0x4ef702=Array['from'](_0x342eaa)['map'](_0x54c4ba=>this['_viewToController']['get'](_0x54c4ba['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x4ef702?_0x4ef702['model']:null;});}set['adapter'](_0x31a15c){if(this['_adapter'])throw new _0x3a839e('commentsrepository-adapter-already-set');this['_adapter']=_0x31a15c;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x2ca388=_t,threadId:_0x108583=_0x54b8c0(),comments:_0x173b3a=[],unlinkedAt:_0x3e2dae=null,resolvedAt:_0x541b5b=null,resolvedBy:_0x56b749=null,target:_0x484c41=null,context:_0x151b09=null,attributes:_0x531e3b={},isResolvable:_0x275e68=!0x0,isSubmitted:_0x59c18e=!0x1,isFromAdapter:_0x1b2fde=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x2ca388),{'channelId':_0x2ca388,'threadId':_0x108583,'comments':_0x173b3a,'unlinkedAt':_0x3e2dae,'resolvedAt':_0x541b5b,'resolvedBy':_0x56b749,'target':_0x484c41,'context':_0x151b09,'attributes':_0x531e3b,'isFromAdapter':_0x1b2fde,'isResolvable':_0x275e68,'isSubmitted':_0x59c18e}),this['getCommentThread'](_0x108583);}['openNewCommentThread']({channelId:_0xd74c72=_t,threadId:_0x29b8a2=_0x54b8c0(),target:_0x56dc88,context:_0x4de206=null,isResolvable:_0x21b16d=!0x0}){if(this['_readOnlyChannels']['has'](_0xd74c72)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x56dc88)throw new _0x3a839e('commentsrepository-missing-target');const _0x42993a=this['addCommentThread']({'channelId':_0xd74c72,'threadId':_0x29b8a2,'target':_0x56dc88,'context':_0x4de206,'isResolvable':_0x21b16d});if(!_0x42993a)return null;const _0x207068=this['_threadToController']['get'](_0x42993a),_0x2e6012=_0x207068['view']['commentThreadInputView']['commentInputView'],_0x1a275f=this['context']['plugins']['get'](y),_0x49692b=_0x1a275f['getByInnerView'](_0x207068['view']);return _0x1a275f['activate'](_0x49692b),_0x2e6012['once']('editorReady',()=>_0x2e6012['focus']()),_0x42993a;}['hasCommentThread'](_0x32a586){if('string'!=typeof _0x32a586)throw new _0x3a839e('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x32a586);}['updateCommentThread']({channelId:_0x5b3db0=_t,threadId:_0x32516f,context:_0x1224d7,unlinkedAt:_0x40c76,attributes:_0x596ffc,isFromAdapter:_0x1c1e5d=!0x1}){return this['fire'](Nt('updateCommentThread',_0x5b3db0),{'channelId':_0x5b3db0,'threadId':_0x32516f,'context':_0x1224d7,'unlinkedAt':_0x40c76,'attributes':_0x596ffc,'isFromAdapter':_0x1c1e5d}),this['getCommentThread'](_0x32516f);}['getCommentThread'](_0x375efd){if('string'!=typeof _0x375efd)throw new _0x3a839e('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x375efd);}['fetchCommentThread']({channelId:_0x12a39c,threadId:_0x55b04f}={}){const _0x2c1372=this['getCommentThread'](_0x55b04f);if(_0x2c1372)return Promise['resolve'](_0x2c1372);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x3a839e('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x12a39c,'threadId':_0x55b04f})['then'](_0xce937b=>this['hasCommentThread'](_0x55b04f)?this['getCommentThread'](_0x55b04f):_0xce937b?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x12a39c},_0xce937b)):void 0x0)['catch'](_0x470c3c=>{throw console['error'](_0x470c3c),new _0x3a839e('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x5af5f5,skipNotAttached:_0x421579=!0x1,skipEmpty:_0x2b795a=!0x1,toJSON:_0x285482=!0x1}={}){const _0x398d33=[];for(const _0x23d72c of this['_threads']['values']())_0x5af5f5&&_0x23d72c['channelId']!==_0x5af5f5||_0x421579&&!_0x23d72c['isAttached']||_0x2b795a&&0x0===_0x23d72c['length']||_0x398d33['push'](_0x23d72c);return _0x285482?_0x398d33['map'](_0x5d6800=>_0x5d6800['toJSON']()):_0x398d33;}['getAnnotationForCommentThread'](_0x8c463e){const _0x546e30=this['_threadToController']['get'](_0x8c463e);if(!_0x546e30)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x546e30['view'])||null;}['getCommentThreadForAnnotation'](_0xba6091){const _0x3ddae7=this['_viewToController']['get'](_0xba6091['innerView']);return _0x3ddae7?_0x3ddae7['model']:null;}['setActiveCommentThread'](_0x877280){const _0x2dd282=this['context']['plugins']['get'](y);if(!_0x877280)return void(this['activeCommentThread']&&_0x2dd282['deactivateAll']());const _0x3974eb=this['getCommentThread'](_0x877280);if(!_0x3974eb)throw new _0x3a839e('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x877280});if(!this['_threadToController']['has'](_0x3974eb))throw new _0x3a839e('commentsrepository-active-not-attached',null,{'threadId':_0x877280});const _0x3c6da8=_0x2dd282['getByInnerView'](this['_threadToController']['get'](_0x3974eb)['view']);_0x2dd282['activate'](_0x3c6da8);}['switchReadOnly'](_0x34dd55,_0x24c01e){_0x34dd55?this['_readOnlyChannels']['add'](_0x24c01e):this['_readOnlyChannels']['delete'](_0x24c01e),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x42e9e0){return this['_readOnlyChannels']['has'](_0x42e9e0)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x41b5a6,_0x1cb652){return new vt(_0x41b5a6,_0x1cb652);}['setPermissions'](_0x335af0,_0x128b62=_t){this['_permissions']['set'](_0x128b62,_0x335af0),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x3d8a7c=_t){return this['_permissions']['has'](_0x3d8a7c)?this['_permissions']['get'](_0x3d8a7c):bt;}['_addCommentThread']({channelId:_0x47764c,threadId:_0x192975,comments:_0x20a000,unlinkedAt:_0x6323d0,resolvedAt:_0x1b0d7f,resolvedBy:_0x2523f8,target:_0x3cb666,context:_0x5068fd,attributes:_0x518d74,isFromAdapter:_0x15d0ef,isResolvable:_0x2b9394,isSubmitted:_0x5ade7d}){if('string'!=typeof _0x192975)throw new _0x3a839e('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x192975});if(this['hasCommentThread'](_0x192975))throw new _0x3a839e('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x192975});const _0x35d92e=new pi(this,{'channelId':_0x47764c,'id':_0x192975,'context':_0x5068fd,'attributes':_0x518d74,'unlinkedAt':_0x6323d0,'resolvedAt':_0x1b0d7f,'resolvedBy':_0x2523f8?this['context']['plugins']['get'](it)['getUser'](_0x2523f8):null,'isResolvable':_0x2b9394,'isSubmitted':_0x5ade7d||_0x15d0ef});this['_threads']['set'](_0x192975,_0x35d92e);for(const _0x46e4c5 of _0x20a000)_0x35d92e['_add'](this['_createNewComment']({'threadId':_0x192975,..._0x46e4c5}));return _0x3cb666&&_0x35d92e['attachTo'](_0x3cb666),_0x15d0ef||!_0x35d92e['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x47764c,'threadId':_0x192975});}['_submitCommentThread']({channelId:_0x44b0a4,threadId:_0x36ea23}){if(!this['hasCommentThread'](_0x36ea23))throw new _0x3a839e('commentsrepository-missing-comment-thread',this);const _0x29211b=this['getCommentThread'](_0x36ea23);if(_0x29211b['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x352590,comments:_0xf8580d,resolvedAt:_0x27e3e2,resolvedBy:_0x41bd9c,context:_0x339086,attributes:_0x4087fd}=_0x29211b,_0x2a29b3=this['context']['plugins']['get']('PendingActions'),_0x5cb5e7=_0x2a29b3['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x44b0a4,'threadId':_0x352590,'comments':_0xf8580d['map'](_0x25cd01=>_0x25cd01['toJSON']()),'resolvedAt':_0x27e3e2,'resolvedBy':_0x41bd9c?_0x41bd9c['id']:_0x41bd9c,'context':_0x339086,'attributes':_0x4087fd})['then'](({comments:_0x7ce831})=>{_0x2a29b3['remove'](_0x5cb5e7);for(const _0x3f97ea of _0x7ce831)this['_updateComment']({'channelId':_0x44b0a4,'threadId':_0x36ea23,'commentId':_0x3f97ea['commentId'],'createdAt':_0x3f97ea['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x2dd4b=>{throw console['error'](_0x2dd4b),new _0x3a839e('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x6a2067,target:_0x20a6b6}){const _0x53b722=this['getCommentThread'](_0x6a2067);if(!_0x53b722)throw new _0x3a839e('commentsrepository-attach-missing-comment-thread',this);const _0x256b58=this['context']['plugins']['get']('PendingActions'),_0x1bcafd=this['context']['plugins']['get'](y),_0x313ac0=this['_createCommentThreadView'](_0x53b722),_0x3c2d43=new vt(_0x53b722,_0x313ac0);let _0x2ab7dc=null;_0x313ac0['on']('change:isDirty',(_0x1bda12,_0x192c62,_0x29add5)=>{_0x29add5?_0x2ab7dc=_0x256b58['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x2ab7dc&&(_0x256b58['remove'](_0x2ab7dc),_0x2ab7dc=null);}),this['_threadToController']['set'](_0x53b722,_0x3c2d43),this['_viewToController']['set'](_0x313ac0,_0x3c2d43);const _0x1d45e4=new E(this['context']['locale'],_0x313ac0);_0x1d45e4['bind']('length')['to'](_0x313ac0),_0x1d45e4['bind']('isDirty')['to'](_0x313ac0,'isDirty',_0x313ac0,'length',(_0x31b36c,_0x3acf58)=>_0x31b36c||!_0x3acf58),_0x1d45e4['bind']('isActive')['to'](_0x313ac0),_0x1d45e4['type']='comment';const _0x447627=new T({'view':_0x1d45e4,'target':_0x20a6b6,'type':'comment','isVisible':!_0x53b722['archivedAt']&&!!('function'==typeof _0x20a6b6?_0x20a6b6():_0x20a6b6)});return _0x313ac0['on']('escape',()=>{_0x447627['fire']('escape');}),this['_bindAnnotationToEditors'](_0x313ac0,_0x447627),_0x1bcafd['add'](_0x447627),_0x447627;}['_bindAnnotationToEditors'](_0x210cd8,_0x30181e){this['listenTo'](_0x210cd8,'editorReady',(_0x1960c5,_0x264cd8)=>{const _0x4d503b=_0x264cd8['ui']['view']['body']['bodyCollectionContainer'];_0x30181e['focusableElements']['add'](_0x4d503b),this['context']instanceof _0x105e8c&&this['context']['ui']['focusTracker']['add'](_0x4d503b);},{'priority':'highest'}),this['listenTo'](_0x210cd8,'editorDestroyed',(_0x5c251c,_0x2f27f6)=>{const _0x5abc52=_0x2f27f6['ui']['view']['body']['bodyCollectionContainer'];_0x30181e['focusableElements']['has'](_0x5abc52)&&_0x30181e['focusableElements']['remove'](_0x5abc52),this['context']instanceof _0x105e8c&&this['context']['ui']['focusTracker']['remove'](_0x5abc52);});}['_unbindEditors'](_0x4b0857){this['stopListening'](_0x4b0857,'editorReady'),this['stopListening'](_0x4b0857,'editorDestroyed');}['_createCommentThreadView'](_0x4b37d7){const _0x2e8372=this['context']['plugins']['get'](it),{config:_0xa4e2f1,locale:_0x203676}=this['context'],_0x5305c0=pt(_0xa4e2f1['get']('locale'),_0x203676);return new(0x0,(_0xa4e2f1['get']('comments'))['CommentThreadView'])(_0x203676,_0x4b37d7,_0x2e8372['me'],{'editorConfig':{..._0xa4e2f1['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0xa4e2f1['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0xa4e2f1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xa4e2f1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xa4e2f1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5305c0,'CommentView':_0xa4e2f1['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x205670,channelId:_0x11a8ae,resolvedAt:_0x451325,resolvedBy:_0x4f041a,isFromAdapter:_0x291670}){if(!this['hasCommentThread'](_0x205670))throw new _0x3a839e('commentsrepository-missing-comment-thread',null,{'threadId':_0x205670});const _0x1aa891=this['getCommentThread'](_0x205670);if(_0x1aa891['isResolved'])throw new _0x3a839e('commentsrepository-resolved-comment-thread',null,{'threadId':_0x205670});const _0x523322=this['context']['plugins']['get'](it);if(_0x1aa891['resolvedBy']=_0x523322['getUser'](_0x4f041a),_0x1aa891['resolvedAt']=_0x451325,_0x291670||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x91c762=this['context']['plugins']['get']('PendingActions'),_0x24de20=_0x91c762['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x11a8ae,'threadId':_0x205670})['then'](({resolvedAt:_0x59e3a6,resolvedBy:_0xf0b339})=>{_0x91c762['remove'](_0x24de20),_0x1aa891['resolvedBy']['id']!==_0xf0b339&&(_0x1aa891['resolvedBy']=_0x523322['getUser'](_0xf0b339)),_0x1aa891['resolvedAt']=_0x59e3a6;})['catch'](_0x13f071=>{throw console['error'](_0x13f071),new _0x3a839e('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x4a5570,channelId:_0xd3653,isFromAdapter:_0x458254}){if(!this['hasCommentThread'](_0x4a5570))throw new _0x3a839e('commentsrepository-missing-comment-thread',null,{'threadId':_0x4a5570});const _0x49eedc=this['getCommentThread'](_0x4a5570);if(!_0x49eedc['isResolved'])throw new _0x3a839e('commentsrepository-reopen-comment-thread',null,{'threadId':_0x4a5570});if(_0x49eedc['resolvedBy']=null,_0x49eedc['resolvedAt']=null,_0x458254||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x94a7fe=this['context']['plugins']['get']('PendingActions'),_0x3a729a=_0x94a7fe['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0xd3653,'threadId':_0x4a5570})['then'](()=>_0x94a7fe['remove'](_0x3a729a))['catch'](_0xbd2e21=>{throw console['error'](_0xbd2e21),new _0x3a839e('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x46b9a1,isFromAdapter:_0xa6eb1}){const _0x491881=this['getCommentThread'](_0x46b9a1);if(!_0x491881)throw new _0x3a839e('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x46b9a1),this['_threads']['delete'](_0x46b9a1),!_0x491881['isSubmitted']||_0xa6eb1||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x172f64=this['context']['plugins']['get']('PendingActions'),{channelId:_0x12fc8d}=_0x491881,_0xf53cc4=_0x172f64['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x12fc8d,'threadId':_0x46b9a1})['then'](()=>_0x172f64['remove'](_0xf53cc4))['catch'](_0x313e12=>{throw console['error'](_0x313e12),new _0x3a839e('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x3f87f0,unlinkedAt:_0x43f62f,context:_0x2f119c,attributes:_0x17de5b,isFromAdapter:_0x212eba}){if('string'!=typeof _0x3f87f0)throw new _0x3a839e('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x3f87f0});if(!this['hasCommentThread'](_0x3f87f0))throw new _0x3a839e('commentsrepository-missing-comment-thread',null,{'threadId':_0x3f87f0});const _0x212941=this['getCommentThread'](_0x3f87f0);let _0x38a2d4=!0x1;if(void 0x0!==_0x2f119c&&_0x212941['context']!==_0x2f119c&&(_0x212941['context']=_0x2f119c,_0x38a2d4=!0x0),void 0x0!==_0x43f62f&&_0x212941['unlinkedAt']!==_0x43f62f&&(_0x212941['unlinkedAt']=_0x43f62f,_0x38a2d4=!0x0),_0x17de5b&&!At(_0x17de5b,_0x212941['attributes'])&&(_0x212941['attributes']=_0x17de5b,_0x38a2d4=!0x0),!_0x38a2d4)return Promise['resolve']();if(!_0x212941['isSubmitted']||_0x212eba||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x42c845=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1c12c6}=_0x212941,_0x53334e=_0x42c845['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x1c12c6,'threadId':_0x3f87f0,'context':_0x2f119c,'unlinkedAt':_0x43f62f,'attributes':_0x17de5b})['then'](()=>_0x42c845['remove'](_0x53334e))['catch'](_0x40398f=>{throw console['error'](_0x40398f),new _0x3a839e('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x5d13b8){const _0x9cb11f=this['context']['plugins']['get'](y),_0x4b4367=this['getCommentThread'](_0x5d13b8);if(_0x4b4367['_isAttached']=!0x1,this['_threadToController']['has'](_0x4b4367)){const _0x493397=this['_threadToController']['get'](_0x4b4367),_0x306b50=_0x493397['view'],_0xf7e04e=_0x9cb11f['getByInnerView'](_0x306b50);this['_threadToController']['delete'](_0x4b4367),this['_viewToController']['delete'](_0x306b50),_0xf7e04e&&_0x9cb11f['remove'](_0xf7e04e),_0x493397['destroy'](),_0x306b50['destroy']()['then'](()=>{this['_unbindEditors'](_0x306b50);});}}['_updateActiveAnnotation']({threadId:_0x1eceaf,resolvedAt:_0x1eebe5,unlinkedAt:_0x1f9a11}){const _0x1c63ce=!!_0x1eebe5,_0x5b3152=this['context']['plugins']['get'](y),_0x1ccac9=this['getCommentThread'](_0x1eceaf);if(this['_threadToController']['has'](_0x1ccac9)){const _0x57fbdf=this['_threadToController']['get'](_0x1ccac9)['view'],_0x251107=_0x5b3152['getByInnerView'](_0x57fbdf);_0x251107&&(_0x1c63ce&&_0x5b3152['_removeActiveAnnotation'](_0x251107),_0x1f9a11?_0x251107['isVisible']=!0x1:_0x251107['refreshVisibility']());}}['_getExternalAuthor'](_0x2302e2){const _0x452344=this['context']['plugins']['get'](it),_0x137eeb=It('external:'+_0x2302e2),_0x2f0b14=_0x452344['getUser'](_0x137eeb);return _0x2f0b14||_0x452344['addUser']({'id':_0x137eeb,'name':_0x2302e2});}['_createNewComment']({threadId:_0x11eac3,commentId:_0x15b8fe=_0x54b8c0(),content:_0x186a05,authorId:_0x1dd840,createdAt:_0x4ad6ca,attributes:_0x56965a}){if('string'!=typeof _0x15b8fe)throw new _0x3a839e('commentsrepository-invalid-commentid');if('string'!=typeof _0x1dd840)throw new _0x3a839e('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x186a05||!_0x186a05['trim']())throw new _0x3a839e('commentsrepository-invalid-comment-content');const _0x5bc477=this['context']['plugins']['get'](it)['getUser'](_0x1dd840);if(!_0x5bc477)throw new _0x3a839e('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x1dd840});let _0x4e8387=null,_0x361982=_0x4ad6ca;return _0x56965a?.['@external']&&(_0x4e8387=this['_getExternalAuthor'](_0x56965a['@external']['authorName']),_0x361982=new Date(_0x56965a['@external']['createdAt'])),new wi(this,{'threadId':_0x11eac3,'id':_0x15b8fe,'author':_0x4e8387||_0x5bc477,'creator':_0x5bc477,'content':_0x186a05,'createdAt':_0x4ad6ca,'authoredAt':_0x361982,'attributes':_0x56965a});}['_addComment'](_0x2f995b){let {threadId:_0x311b61,content:_0x1bd9d4,attributes:_0x214133,isFromAdapter:_0x15f5c5}=_0x2f995b;const _0x1ab982=this['getCommentThread'](_0x2f995b['threadId']);if(!_0x1ab982)throw new _0x3a839e('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x5df366=this['_createNewComment'](_0x2f995b),{id:_0x141413}=_0x5df366;if(_0x1ab982['_add'](_0x5df366),_0x15f5c5||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x1ab982['isSubmitted'])return Promise['resolve']();const _0x16aa37=this['context']['plugins']['get']('PendingActions'),{channelId:_0x6f9a68}=_0x1ab982,_0x13b468=_0x16aa37['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x214133||(_0x214133={}),this['adapter']['addComment']({'channelId':_0x6f9a68,'threadId':_0x311b61,'commentId':_0x141413,'content':_0x1bd9d4,'attributes':_0x214133})['then'](_0x5e8d40=>{_0x16aa37['remove'](_0x13b468),_0x5e8d40&&this['_updateComment']({'channelId':_0x6f9a68,'threadId':_0x311b61,'commentId':_0x141413,'createdAt':_0x5e8d40['createdAt'],'isFromAdapter':!0x0});})['catch'](_0xf782c4=>{throw console['error'](_0xf782c4),new _0x3a839e('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0xd4f403,commentId:_0x391bba,content:_0x4f85d0,createdAt:_0x25713a,attributes:_0x4f66b5,isFromAdapter:_0xccf2be}){if(void 0x0!==_0x4f85d0&&('string'!=typeof _0x4f85d0||!_0x4f85d0['trim']()['length']))throw new _0x3a839e('commentsrepository-update-comment-invalid-content');const _0x934cc4=this['getCommentThread'](_0xd4f403),_0x27e91c=_0x934cc4['getComment'](_0x391bba);if(!_0x27e91c)throw new _0x3a839e('commentsrepository-update-missing-comment',this);let _0x4c5c3b=!0x1;if(_0x4f85d0&&_0x4f85d0!==_0x27e91c['content']&&(_0x27e91c['isEditable']||_0xccf2be)&&(_0x27e91c['content']=_0x4f85d0,_0x4c5c3b=!0x0),_0x25713a&&_0x25713a!==_0x27e91c['createdAt']&&(_0x27e91c['createdAt']=_0x25713a,_0x27e91c['attributes']&&_0x27e91c['attributes']['@external']||(_0x27e91c['authoredAt']=_0x25713a),_0x4c5c3b=!0x0),_0x4f66b5&&!At(_0x4f66b5,_0x27e91c['attributes'])&&(_0x27e91c['attributes']=_0x4f66b5,_0x4c5c3b=!0x0),!_0x4c5c3b)return Promise['resolve']();if(_0x934cc4['fire']('commentUpdated'),_0xccf2be||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x49a0d2=this['context']['plugins']['get']('PendingActions'),{channelId:_0x30bfbe}=this['getCommentThread'](_0x27e91c['threadId']),_0x8f9fa8=_0x49a0d2['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x30bfbe,'threadId':_0xd4f403,'commentId':_0x391bba,'content':_0x4f85d0,'attributes':_0x4f66b5})['then'](()=>_0x49a0d2['remove'](_0x8f9fa8))['catch'](_0x382f46=>{throw console['error'](_0x382f46),new _0x3a839e('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x16231a,commentId:_0x596e16,isFromAdapter:_0x525562}){const _0x20dca5=this['getCommentThread'](_0x16231a),_0x54145e=_0x20dca5['getComment'](_0x596e16);if(!_0x54145e)throw new _0x3a839e('commentsrepository-remove-missing-comment',this);if(_0x20dca5['_remove'](_0x54145e),_0x525562||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x23c6d6=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4644e5}=_0x20dca5,_0x2c422f=_0x23c6d6['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x4644e5,'threadId':_0x16231a,'commentId':_0x596e16})['then'](()=>_0x23c6d6['remove'](_0x2c422f))['catch'](_0x51c2a0=>{throw console['error'](_0x51c2a0),new _0x3a839e('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
- _0x3b516f(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x144013,_0x1adb10){super();const _0x2f3192=_0x1adb10['isResolvable'];this['channelId']=_0x1adb10['channelId'],this['id']=_0x1adb10['id'],this['comments']=new _0x6d21a2(),this['_repository']=_0x144013,this['_isAttached']=!0x1,this['_isSubmitted']=_0x1adb10['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x144013,'_permissions',_0x144013,'_readOnlyChannels',()=>_0x144013['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x144013,'_permissions',()=>_0x144013['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x144013,'_permissions',()=>{const _0x3b295c=_0x144013['getPermissions'](this['channelId']);return _0x3b295c['write']||_0x3b295c['admin'];}),this['bind']('isResolvable')['to'](_0x144013,'_permissions',()=>_0x2f3192&&_0x144013['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x1adb10['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x4045a7,_0x418fd7)=>_0x4045a7?_0x418fd7?_0x4045a7<_0x418fd7?_0x4045a7:_0x418fd7:_0x4045a7:_0x418fd7),this['set']('unlinkedAt',_0x1adb10['unlinkedAt']||null),this['set']('resolvedAt',_0x1adb10['resolvedAt']||null),this['set']('resolvedBy',_0x1adb10['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x535997=>!!_0x535997),this['set']('attributes',_0x1adb10['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x53bffc,_0x5b8e31)=>_0x53bffc+_0x5b8e31['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x19cc62,id:_0x59386d}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x19cc62),{'channelId':_0x19cc62,'threadId':_0x59386d});}['setUnlinkedAt'](_0xb23026){this['_update']({'unlinkedAt':_0xb23026});}['resolve']({resolvedAt:_0x5176f7=new Date(),resolvedBy:_0x520cbd=null,isFromAdapter:_0xd0fb23=!0x1}={}){const _0x59aab6=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x8c6de4,id:_0x11b461}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x8c6de4),{'channelId':_0x8c6de4,'threadId':_0x11b461,'resolvedAt':_0x5176f7,'resolvedBy':_0x520cbd||_0x59aab6['id'],'isFromAdapter':_0xd0fb23});}['reopen']({isFromAdapter:_0x2487e5=!0x1}={}){const {channelId:_0x37b55a,id:_0x5f45d7}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x37b55a),{'channelId':_0x37b55a,'threadId':_0x5f45d7,'isFromAdapter':_0x2487e5});}['setContext'](_0x34b49b){this['context']||this['_update']({'context':_0x34b49b});}['setAttribute'](_0x5bd73d,_0x3bf976){const _0x408118=wt(this['attributes']);yt(_0x408118,_0x5bd73d,_0x3bf976),this['_update']({'attributes':_0x408118});}['removeAttribute'](_0x45b097){const _0x4f7c7a=wt(this['attributes']);Ct(_0x4f7c7a,_0x45b097),this['_update']({'attributes':_0x4f7c7a});}['remove']({isFromAdapter:_0x66326a=!0x1}={}){const {channelId:_0x4f37a3,id:_0x4a9707}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x4f37a3),{'channelId':_0x4f37a3,'threadId':_0x4a9707,'isFromAdapter':_0x66326a});}['attachTo'](_0x5e600e){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x5e600e});}['addComment'](_0x31fa5f){const {channelId:_0x266c3d,id:_0x188f72}=this;this['_repository']['fire'](Nt('addComment',_0x266c3d,_0x188f72),Object['assign']({'channelId':_0x266c3d,'threadId':_0x188f72},_0x31fa5f));}['getComment'](_0x591961){if('string'!=typeof _0x591961)throw new _0x3a839e('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x591961});return this['comments']['get'](_0x591961);}['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'](_0x2c91af=>_0x2c91af['toJSON']()),'attributes':this['attributes']};}['_add'](_0x454380){return this['listenTo'](_0x454380,'change:authoredAt',()=>{const _0x289569=this['_findOptimalIndex'](_0x454380),_0x5b0786=this['comments'];_0x289569-0x1!=_0x5b0786['getIndex'](_0x454380)&&_0x289569+0x1!=_0x5b0786['getIndex'](_0x454380)&&(this['_remove'](_0x454380),this['_add'](_0x454380));}),this['comments']['add'](_0x454380,this['_findOptimalIndex'](_0x454380));}['_update'](_0x3f930b){const {channelId:_0x3375f1,id:_0x205e78}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x3375f1),{..._0x3f930b,'channelId':_0x3375f1,'threadId':_0x205e78});}['_remove'](_0x494a0c){return this['stopListening'](_0x494a0c),_0x494a0c['destroy'](),this['comments']['remove'](_0x494a0c);}['_findOptimalIndex'](_0x4b49a1){const _0x9d61ef=this['comments']['find'](_0x36f2ab=>new Date(_0x36f2ab['authoredAt'])['getTime']()>new Date(_0x4b49a1['authoredAt'])['getTime']());return _0x9d61ef?this['comments']['getIndex'](_0x9d61ef):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
- _0x3b516f(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x18375d,_0x22b48d){super();const _0x3193d5=_0x18375d['context']['plugins']['get'](it)['me'],_0x59b6d2=_0x18375d['getCommentThread'](_0x22b48d['threadId']),_0x1bd403=0x0===_0x59b6d2['comments']['length'],_0x3684b0=_0x3193d5===_0x22b48d['author'];this['id']=_0x22b48d['id'],this['threadId']=_0x22b48d['threadId'],this['author']=_0x22b48d['author'],this['creator']=_0x22b48d['creator'],this['isExternal']=Boolean(_0x22b48d['attributes']&&_0x22b48d['attributes']['@external']),this['set']('content',_0x22b48d['content']),this['createdAt']=_0x22b48d['createdAt']||new Date(),this['set']('authoredAt',_0x22b48d['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x59b6d2,'resolvedAt'),this['set']('attributes',_0x22b48d['attributes']||{}),this['bind']('isEditable')['to'](_0x18375d,'_permissions',()=>{const _0x2cc500=_0x18375d['getPermissions'](_0x59b6d2['channelId'])['write'],_0x5d46e9=_0x18375d['getPermissions'](_0x59b6d2['channelId'])['modifyAll'];return _0x3684b0&&_0x2cc500||!_0x3684b0&&_0x5d46e9;}),this['bind']('isRemovable')['to'](_0x59b6d2,'isRemovable',_0x18375d,'_permissions',_0x14c6c1=>{const _0x1c7096=_0x18375d['getPermissions'](_0x59b6d2['channelId'])['write'],_0x3fc495=_0x18375d['getPermissions'](_0x59b6d2['channelId'])['modifyAll'];return _0x3684b0&&_0x1c7096||_0x14c6c1&&_0x1bd403||!_0x3684b0&&_0x3fc495&&!_0x1bd403;}),this['bind']('isReadOnly')['to'](_0x59b6d2,'isReadOnly'),this['_repository']=_0x18375d;}get['weight'](){return Math['max'](function(_0x4c9a36){const _0x3c6ff3=document['createElement']('div');return _0x3c6ff3['innerHTML']=_0x4c9a36,_0x3c6ff3['textContent']['length'];}(this['content']),0xc8);}['update'](_0x46e757){const {threadId:_0x3e3651,id:_0x388062}=this;if(!this['_repository']['hasCommentThread'](_0x3e3651))throw new _0x3a839e('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x1b8a5d}=this['_repository']['getCommentThread'](_0x3e3651);this['_repository']['fire'](Nt('updateComment',_0x1b8a5d,_0x3e3651),{'channelId':_0x1b8a5d,'threadId':_0x3e3651,'commentId':_0x388062,..._0x46e757});}['setAttribute'](_0x28febf,_0x548c1f){const _0x5e256e=wt(this['attributes']);yt(_0x5e256e,_0x28febf,_0x548c1f),this['update']({'attributes':_0x5e256e});}['removeAttribute'](_0x337513){const _0x38e8e0=wt(this['attributes']);Ct(_0x38e8e0,_0x337513),this['update']({'attributes':_0x38e8e0});}['remove'](_0x49b53e={}){if(!_0x49b53e['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0xeb55d1,id:_0x472adf}=this;if(!this['_repository']['hasCommentThread'](_0xeb55d1))throw new _0x3a839e('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x56b5e9}=this['_repository']['getCommentThread'](_0xeb55d1);this['_repository']['fire'](Nt('removeComment',_0x56b5e9,_0xeb55d1),{'channelId':_0x56b5e9,'threadId':_0xeb55d1,'commentId':_0x472adf,..._0x49b53e});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x462e24,..._0x50b947){for(const _0x23c4c0 of _0x50b947)void 0x0!==_0x23c4c0&&(_0x462e24+=':'+String(_0x23c4c0));return _0x462e24;}class ot extends _0x3b1e3e{constructor(_0x5dcff8){super(_0x5dcff8),this['set']('hasContent',!0x1);}['refresh'](){const _0x535568=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x213666 of _0x535568['getRanges']())if(this['_hasContent'](_0x213666))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x5880cc=_0x54b8c0(),ranges:_0x583626,comment:_0xf9cd07}={}){const _0x302023=this['editor']['model'],_0x2d471f=_0x583626??Array['from'](_0x302023['document']['selection']['getRanges']()),_0x33bb3f=[];for(const _0x59db71 of _0x2d471f)this['_hasContent'](_0x59db71)&&_0x33bb3f['push'](this['_trimToContent'](_0x59db71));if(!_0x33bb3f['length'])throw new _0x3a839e('addcommentthreadcommand-incorrect-ranges',null);_0xf9cd07&&this['_createCommentThread'](_0x5880cc,_0xf9cd07),this['_createMarkersFromRanges'](_0x5880cc,_0x33bb3f,!!_0xf9cd07);}['_createMarkersFromRanges'](_0x3e83a3,_0x44f3cc,_0x2ad3f2){this['editor']['model']['change'](_0x31b27d=>{for(const _0x2ef7ff of _0x44f3cc){const _0x2e4fc7=_0x54b8c0()['substr'](0x1,0x5),_0x735c3='comment:'+_0x3e83a3+':'+_0x2e4fc7;_0x31b27d['addMarker'](_0x735c3,{'range':_0x2ef7ff,'usingOperation':_0x2ad3f2,'affectsData':_0x2ad3f2});}});}['_createCommentThread'](_0x5a1a13,_0x6d0283){const _0x271902=this['editor']['plugins']['get']('CommentsRepository'),_0x45cdac=this['editor']['config']['get']('collaboration.channelId'),_0x47bb86=this['editor']['plugins']['get']('Users')['me'];if(!_0x47bb86)throw new _0x3a839e('addcommentthreadcommand-user-not-found',null);_0x271902['addCommentThread']({'threadId':_0x5a1a13,'channelId':_0x45cdac,'comments':[{'authorId':_0x47bb86['id'],'content':_0x6d0283,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x3fc290){for(const _0xf18424 of _0x3fc290['getItems']())if(this['_itemIsContent'](_0xf18424))return!0x0;return!0x1;}['_itemIsContent'](_0x93f85d){return _0x93f85d['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x93f85d)&&!_0x93f85d['is']('element','tableCell');}['_trimToContent'](_0xf77fb8){const _0x2a9d41=_0x35c571=>!this['_itemIsContent'](_0x35c571['item']),_0x4ebcb6=_0xf77fb8['start']['getLastMatchingPosition'](_0x2a9d41),_0x471fa3=_0xf77fb8['end']['getLastMatchingPosition'](_0x2a9d41,{'direction':'backward'});return this['editor']['model']['createRange'](_0x4ebcb6,_0x471fa3);}}class b extends _0x343473{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x564702){super(_0x564702),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x173c11=this['editor'],_0x37ba04=_0x173c11['model']['document']['selection'],_0x3b383c=_0x274d42(()=>this['refreshSelectedViews'](),0xa);_0x37ba04['on']('change:range',(_0x29382e,_0x5ae1f4)=>{_0x5ae1f4['directChange']&&(_0x3b383c['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x173c11['editing']['view']['document'],'change:isFocused',(_0x5a3a9f,_0x32cc0e,_0x50d2ce)=>{_0x50d2ce&&_0x3b383c();}),this['listenTo'](_0x173c11['ui']['focusTracker'],'change:isFocused',(_0x28e66c,_0x13fd59,_0x9eb4c7)=>{_0x9eb4c7||this['fire']('blur',{'isAnnotationTracked':_0x3e313e=>this['_editorAnnotationsData']['has'](_0x3e313e['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x2d9839){if(this['_editorAnnotations']['has'](_0x2d9839['view']))return;this['_editorAnnotations']['add'](_0x2d9839['view']),this['editor']['ui']['focusTracker']['add'](_0x2d9839['view']['element']);const _0x5895a9=this['editor']['plugins']['get'](y);this['listenTo'](_0x5895a9['collection'],'remove',(_0x48f3ac,_0x1b398f)=>{this['editor']['ui']['focusTracker']['remove'](_0x1b398f['view']['element']),this['_editorAnnotations']['delete'](_0x1b398f['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x36a371){if('function'!=typeof _0x36a371)throw new _0x3a839e('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x36a371);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x3d7af0,annotations:_0x215c95}){const _0xd8b5cd=[],_0x40cf14=this['editor']['model']['document']['selection'],_0x23753c=Array['from'](_0x40cf14['getRanges']());for(const [_0x150a2e,_0x2403cd]of this['_editorAnnotationsData']){const _0x59d9e5=_0x5c53fa(_0x2403cd),_0x256171=_0x215c95['getByInnerView'](_0x150a2e);_0x59d9e5&&_0x256171&&_0xd8b5cd['push']({'annotation':_0x256171,'range':_0x59d9e5});}function _0x5c53fa(_0x58ed7d){for(const _0x4a389c of _0x58ed7d)for(const _0x504af8 of _0x23753c)if(_0x4a389c['containsRange'](_0x504af8,!_0x40cf14['isCollapsed']))return _0x4a389c;return null;}return _0xd8b5cd['sort']((_0x175a18,_0x515963)=>{const _0x357886=_0x175a18['range'],_0x1dde3f=_0x515963['range'];if(!_0x357886['isEqual'](_0x1dde3f)){if(_0x357886['containsRange'](_0x1dde3f,!0x0))return 0x1;if(_0x1dde3f['containsRange'](_0x357886,!0x0))return-0x1;}return _0x175a18['annotation']==_0x3d7af0?-0x1:_0x515963['annotation']==_0x3d7af0?0x1:0x0;})['map'](_0xba6b91=>_0xba6b91['annotation']);}get['_editorAnnotationsData'](){const _0x38a53a=new Map();for(const _0x47736f of Array['from'](this['_dataCollectors']))for(const [_0x5e13dd,_0x22067a]of _0x47736f())_0x38a53a['set'](_0x5e13dd,_0x22067a);return _0x38a53a;}}class st extends _0x343473{['afterInit'](){const _0x51dfdc=this['editor'];if(!_0x51dfdc['plugins']['has']('RestrictedEditingModeEditing'))return;_0x51dfdc['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x343473{constructor(_0x504a62){super(_0x504a62),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0xaad88=this['editor'],_0x4cc83e=_0xaad88['commands']['get']('importWord'),_0xff88e8=_0xaad88['plugins']['get'](it);_0x4cc83e&&(_0x4cc83e['on']('execute',(_0x1e183a,[,_0x2adfdd])=>{_0x2adfdd['collaboration_features']={'comments':!0x0,'user_id':_0xff88e8['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x4cc83e,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x3a1719,_0x3a322f){const {comment_threads:_0x457b8a}=_0x3a322f;_0x457b8a&&_0x457b8a['forEach'](({thread_id:_0x6da76c,comments:_0x19cea3,is_resolved:_0xdf0d4c})=>{const _0x164281=new Date(),_0x14b6af=_0x19cea3['map'](({author:_0x4e3494,content:_0x2e1d7f,created_at:_0x2fbd6f})=>({'content':_0x2e1d7f,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x164281,'attributes':{'@external':{'authorName':_0x4e3494,'createdAt':_0x2fbd6f?new Date(_0x2fbd6f):new Date(),'source':'importWord'}}})),_0x24b2da=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x24b2da,'threadId':_0x6da76c,'comments':_0x14b6af,'resolvedAt':_0xdf0d4c?_0x164281:null});});}}class at extends _0x343473{constructor(_0x21d63d){super(_0x21d63d),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x46f554=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x46f554,'contentInsertion',(_0x323907,_0x1a1802)=>this['_removeMarkersWithoutThreads'](_0x1a1802['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x513481){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x513481;const _0x44c1d7=this['editor']['plugins']['get']('CommentsRepository');for(const _0xbab38f of _0x513481['keys']()){const [_0x207a42,_0x5c03d0]=_0xbab38f['split'](':');'comment'!=_0x207a42||_0x44c1d7['hasCommentThread'](_0x5c03d0)||_0x513481['delete'](_0xbab38f);}return _0x513481;}['_registerMarkerInClipboardPipeline'](){const _0x2adc2d=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x505fac=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x505fac&&_0x2adc2d['_registerMarkerToCopy']('comment',_0x505fac);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x12137a){switch(_0x12137a){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x47be26){const _0x356cb=_0x47be26['split'](':');return{'group':_0x356cb[0x0],'id':_0x356cb[0x1],'part':_0x356cb[0x2]};}class ut extends _0x343473{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x56b737,_0x2ef600)=>{if(!_0x2ef600['options']['showCommentHighlights'])return null;if(_0x2ef600['options']['ignoreResolvedComments']){const {id:_0x12e0bf}=ft(_0x56b737['markerName']),_0x437609=this['editor']['plugins']['get'](o);if(_0x437609['getCommentThread'](_0x12e0bf)?.['isResolved']&&_0x56b737['item'])return _0x2ef600['consumable']['consume'](_0x56b737['item'],'addMarker:'+_0x56b737['markerName']),_0x2ef600['consumable']['consume'](_0x56b737['item'],'removeMarker:'+_0x56b737['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4a964a=>{_0x4a964a['on']('addMarker:comment',(_0x51cf62,_0x2b63d6,_0x24f45a)=>{if(!_0x24f45a['options']['showCommentHighlights'])return;const _0x3b1ed1=_0x2b63d6['item'];if(!_0x3b1ed1)return;const _0x28b45d=_0x24f45a['mapper']['toViewElement'](_0x3b1ed1);this['editor']['model']['schema']['isObject'](_0x3b1ed1)&&_0x28b45d&&!_0x28b45d['getCustomProperty']('widget')&&_0x28b45d['is']('containerElement')&&_0x3f33bd(_0x28b45d,_0x24f45a['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4649ea,{writer:_0x27960c,options:_0x58effe})=>{if(!_0x58effe['showCommentHighlights'])return null;const _0x5d0f86=_0x27960c['createContainerElement']('div'),_0x95c253=_0x27960c['createEmptyElement']('hr');return _0x27960c['addClass']('ck-horizontal-line',_0x5d0f86),_0x27960c['insert'](_0x27960c['createPositionAt'](_0x5d0f86,0x0),_0x95c253),_0x5d0f86;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x26f6df,{writer:_0x25c78b,options:_0x3a98a0})=>{if(!_0x3a98a0['showCommentHighlights'])return null;const _0x4e10f2=_0x25c78b['createContainerElement']('span'),_0x3b09e6=_0x25c78b['createEmptyElement']('img');return _0x25c78b['addClass']('image-inline',_0x4e10f2),_0x25c78b['insert'](_0x25c78b['createPositionAt'](_0x4e10f2,0x0),_0x3b09e6),_0x4e10f2;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x55b0b9,{writer:_0x141bb8,options:_0x14d619})=>{if(_0x14d619['showCommentHighlights'])return _0x141bb8['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x31761c,_0x232f97,_0x1055ef)=>{_0x1055ef['options']['showCommentHighlights']&&_0x31761c['stop']();},{'priority':'high'});}}class r extends _0x343473{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(_0x5aec11){super(_0x5aec11),this['set']('isThreadsLoadingPaused',!0x0),_0x5aec11['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x552c35,_0x547ae8,_0x4ca59a,_0x58e641)=>{const _0x2f8a6a=_0x5aec11['plugins']['get'](o),_0x3538e0=_0x4ca59a?ft(_0x4ca59a)['id']:null;_0x5aec11['model']['change'](()=>{if(_0x3538e0){const _0x34bc30=this['getAllMarkersForId'](_0x3538e0);for(const _0x1c487e of _0x34bc30)_0x5aec11['editing']['reconvertMarker'](_0x1c487e);}if(_0x58e641){const {id:_0x5116e7}=ft(_0x58e641),_0x38c1da=_0x2f8a6a['getCommentThread'](_0x5116e7);if(_0x38c1da&&_0x38c1da['unlinkedAt'])return;if(_0x38c1da&&!_0x38c1da['isAttached'])return;const _0x59edd7=this['getAllMarkersForId'](_0x5116e7);for(const _0x40991d of _0x59edd7)_0x5aec11['editing']['reconvertMarker'](_0x40991d);}}),_0x3538e0&&this['scrollToThreadMarker'](_0x3538e0);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3eddfc=this['editor'],_0x2db571=_0x3eddfc['plugins']['get'](o),_0x193224=_0x3eddfc['config']['get']('collaboration.channelId'),_0x4b89d8=_0x2db571['getCommentThreads']()['filter'](_0x1d3de4=>_0x1d3de4['channelId']!==_0x193224);_0x3eddfc['commands']['add']('addCommentThread',new ot(_0x3eddfc)),this['listenTo'](_0x3eddfc,'change:isReadOnly',(_0x22f244,_0x40880d,_0x10e29f)=>{_0x2db571['switchReadOnly'](_0x10e29f,_0x3eddfc['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x2db571,dt('addCommentThread',_0x193224),(_0x2f003e,{threadId:_0x552a52})=>{const _0x592260=this['editor']['plugins']['get'](o)['getCommentThread'](_0x552a52);_0x592260?.['unlinkedAt']&&this['_attachArchivedThread'](_0x552a52);}),this['listenTo'](_0x2db571,dt('removeCommentThread',_0x193224),(_0x5a74a8,{threadId:_0x3822bd})=>{_0x3eddfc['model']['enqueueChange']({'isUndoable':!0x1},_0x3bdd87=>{const _0x26fc03=this['getAllMarkersForId'](_0x3822bd);for(const _0x1c8b7b of _0x26fc03)_0x3bdd87['removeMarker'](_0x1c8b7b);});}),this['listenTo'](_0x2db571,dt('resolveCommentThread',_0x193224),(_0x3f7933,{threadId:_0x332520})=>{(this['_reconvertMarkers'](_0x332520),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x332520)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x2db571,dt('reopenCommentThread',_0x193224),(_0x17c2c3,{threadId:_0x4fc257})=>{this['_reconvertMarkers'](_0x4fc257);},{'priority':'low'}),this['listenTo'](_0x2db571,dt('addComment',_0x193224),(_0x151664,{threadId:_0x12e2c7,isFromAdapter:_0x28f087})=>{const _0x5e1966=this['getAllMarkersForId'](_0x12e2c7);if(_0x28f087||0x0==_0x5e1966['length']||!_0x2db571['hasCommentThread'](_0x12e2c7))return;0x1===_0x2db571['getCommentThread'](_0x12e2c7)['length']&&_0x3eddfc['model']['enqueueChange']({'isUndoable':!0x1},_0x29329a=>{for(const _0x34640f of _0x5e1966)_0x29329a['updateMarker'](_0x34640f,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x4b89d8);}['afterInit'](){!async function(_0x4fe172){const _0x5d5d27=_0x4af555([0x4b,0x70,0x4f,0x42,0x4a,0x47,0x4e,0x53,0x45,0x67,0x71,0x43,0x79,0x66,0x56,0x46,0x31,0x6b,0x5a,0x38,0x6c,0x62,0x6e,0x52,0x6a,0x4d,0x37,0x65,0x49,0x7a,0x41,0x73,0x44,0x51,0x48,0x77,0x39,0x61,0x54,0x68,0x75,0x36,0x72,0x63,0x59,0x69,0x30,0x35,0x55,0x6d,0x50,0x4c,0x34,0x64,0x33,0x58,0x32,0x57,0x6f,0x74,0x76,0x78]),_0x3aa2e4=0x73460ab3,_0x386887=0x7341799b^_0x3aa2e4,_0xdd1c39=window[_0x4af555([0x44,0x61,0x74,0x65])][_0x4af555([0x6e,0x6f,0x77])](),_0x44b4bc=_0x4fe172[_0x4af555([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x218280=new window[(_0x4af555([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x203409=>{_0x44b4bc[_0x4af555([0x6f,0x6e,0x63,0x65])](_0x4af555([0x72,0x65,0x61,0x64,0x79]),_0x203409);}),_0x15a0e1={[_0x4af555([0x6b,0x74,0x79])]:_0x4af555([0x45,0x43]),[_0x4af555([0x75,0x73,0x65])]:_0x4af555([0x73,0x69,0x67]),[_0x4af555([0x63,0x72,0x76])]:_0x4af555([0x50,0x2d,0x32,0x35,0x36]),[_0x4af555([0x78])]:_0x4af555([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]),[_0x4af555([0x79])]:_0x4af555([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]),[_0x4af555([0x61,0x6c,0x67])]:_0x4af555([0x45,0x53,0x32,0x35,0x36])},_0x1f00f1=_0x44b4bc[_0x4af555([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4af555([0x67,0x65,0x74])](_0x4af555([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x567de2(){let _0x405437,_0x38a9c8=null,_0x21e9c6=null;try{if(_0x1f00f1==_0x4af555([0x47,0x50,0x4c]))return _0x4af555([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x405437=_0x23c04e(),!_0x405437)return _0x4af555([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x405437[_0x4af555([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x21e9c6=_0x201311(_0x405437[_0x4af555([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x405437[_0x4af555([0x6a,0x74,0x69])])),await _0x558672()?_0x56fe92()?_0x1a8aa7()?_0x4af555([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x19a21c()?(_0x405437[_0x4af555([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4af555([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x38a9c8=_0x3cb2ef(_0x4af555([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x405437[_0x4af555([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4af555([0x74,0x72,0x69,0x61,0x6c])&&(_0x38a9c8=_0x3cb2ef(_0x4af555([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22ca8f()):_0x4af555([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4af555([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4af555([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4af555([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1a8aa7(){const _0x3553ff=[_0x4af555([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4af555([0x74,0x72,0x69,0x61,0x6c])][_0x4af555([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x405437[_0x4af555([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xdd1c39/0x3e8:0xe10*_0x386887;return _0x405437[_0x4af555([0x65,0x78,0x70])]<_0x3553ff;}function _0x56fe92(){const _0x59e556=_0x405437[_0x4af555([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x59e556)return!0x1;if(_0x59e556[_0x4af555([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4af555([0x2a])))return!0x0;if(_0x59e556[_0x4af555([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4af555([0x43,0x4d,0x54])))return!0x0;if(_0x59e556[_0x4af555([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4af555([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x403550())return!0x0;if(_0x59e556[_0x4af555([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4af555([0x52,0x43,0x4d,0x54]))){if(_0x1d5efd())return!0x0;if(_0x3acc2a()||_0xf0d95d())return!0x0;}return!0x1;}function _0x19a21c(){const _0x19e623=_0x405437[_0x4af555([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x19e623||0x0==_0x19e623[_0x4af555([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5be232}=new URL(window[_0x4af555([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x19e623[_0x4af555([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5be232))return!0x0;const _0x4e20c7=_0x5be232[_0x4af555([0x73,0x70,0x6c,0x69,0x74])](_0x4af555([0x2e]));return _0x19e623[_0x4af555([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e21ba=>_0x2e21ba[_0x4af555([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4af555([0x2a])))[_0x4af555([0x6d,0x61,0x70])](_0x3954c3=>_0x3954c3[_0x4af555([0x73,0x70,0x6c,0x69,0x74])](_0x4af555([0x2e])))[_0x4af555([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32ed0b=>_0x32ed0b[_0x4af555([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4e20c7[_0x4af555([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4af555([0x6d,0x61,0x70])](_0x519393=>Array(_0x4e20c7[_0x4af555([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x519393[_0x4af555([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4af555([0x66,0x69,0x6c,0x6c])](_0x519393[0x0]===_0x4af555([0x2a])?_0x4af555([0x2a]):'')[_0x4af555([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x519393))[_0x4af555([0x73,0x6f,0x6d,0x65])](_0x228fe0=>_0x4e20c7[_0x4af555([0x65,0x76,0x65,0x72,0x79])]((_0x27b240,_0x381cda)=>_0x228fe0[_0x381cda]===_0x27b240||_0x228fe0[_0x381cda]===_0x4af555([0x2a])));}function _0x22ca8f(){return _0x38a9c8&&_0x21e9c6?new window[(_0x4af555([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a4c47,_0xcffa0a)=>{_0x38a9c8[_0x4af555([0x74,0x68,0x65,0x6e])](_0x3a4c47,_0xcffa0a),_0x21e9c6[_0x4af555([0x74,0x68,0x65,0x6e])](_0x5dbd9d=>{_0x5dbd9d!=_0x4af555([0x56,0x61,0x6c,0x69,0x64])&&_0x3a4c47(_0x5dbd9d);},_0xcffa0a);}):_0x38a9c8||_0x21e9c6||_0x4af555([0x56,0x61,0x6c,0x69,0x64]);}}function _0x201311(_0xc372a1,_0x308f17){return new window[(_0x4af555([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9fbf1b=>{if(_0x4e56bc())return _0x9fbf1b(_0x4af555([0x56,0x61,0x6c,0x69,0x64]));_0x3f9029(),_0x44b4bc[_0x4af555([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4af555([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4b2ca0=!0x1;const _0x5eb1f7=_0x54b8c0();function _0x7aa8a8(_0x14061a){return!!_0x14061a&&(typeof _0x14061a===_0x4af555([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x14061a===_0x4af555([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x14061a[_0x4af555([0x74,0x68,0x65,0x6e])]===_0x4af555([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x14061a[_0x4af555([0x63,0x61,0x74,0x63,0x68])]===_0x4af555([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1063ca(_0x4c612f){_0x1c0a98(_0x4c612f)[_0x4af555([0x74,0x68,0x65,0x6e])](_0x2d7f04=>{if(!_0x2d7f04||_0x2d7f04[_0x4af555([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4af555([0x6f,0x6b]))return _0x4af555([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb1a7fc(_0x498e3d(_0x5eb1f7+_0x308f17))!=_0x2d7f04[_0x4af555([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4af555([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4af555([0x56,0x61,0x6c,0x69,0x64]);})[_0x4af555([0x74,0x68,0x65,0x6e])](_0x174f5e=>(_0x4dc63b(),_0x174f5e),()=>{const _0x2a1369=_0x15a656();return null==_0x2a1369?(_0x4dc63b(),_0x4af555([0x56,0x61,0x6c,0x69,0x64])):_0x4af555(_0xdd1c39-_0x2a1369>(0x574a8eb3^_0x3aa2e4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4af555([0x74,0x68,0x65,0x6e])](_0x9fbf1b)[_0x4af555([0x63,0x61,0x74,0x63,0x68])](()=>{_0x9fbf1b(_0x4af555([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2dda01=0x7370e433^_0x3aa2e4;function _0x4dc63b(){const _0x348baa=_0x4af555([0x6c,0x6c,0x63,0x74,0x2d])+_0xb1a7fc(_0x498e3d(_0xc372a1)),_0x5b27f6=_0x248003(_0xb1a7fc(window[_0x4af555([0x4d,0x61,0x74,0x68])][_0x4af555([0x63,0x65,0x69,0x6c])](_0xdd1c39/_0x2dda01)));window[_0x4af555([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4af555([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x348baa,_0x5b27f6);}function _0x15a656(){const _0x147024=_0x4af555([0x6c,0x6c,0x63,0x74,0x2d])+_0xb1a7fc(_0x498e3d(_0xc372a1)),_0x30d4b4=window[_0x4af555([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4af555([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x147024);return _0x30d4b4?window[_0x4af555([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x248003(_0x30d4b4),0x10)*_0x2dda01:null;}function _0x1c0a98(_0x17c2ed){return new window[(_0x4af555([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a5c4b,_0x26786e)=>{_0x17c2ed[_0x4af555([0x74,0x68,0x65,0x6e])](_0x1a5c4b,_0x26786e),window[_0x4af555([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x26786e,0x7347de73^_0x3aa2e4);});}}_0x44b4bc[_0x4af555([0x6f,0x6e])](_0x4af555([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x789bbe,_0x4a1cbe)=>{if(_0x4a1cbe[0x0]!=_0xc372a1)return _0x9fbf1b(_0x4af555([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a1cbe[0x1]={..._0x4a1cbe[0x1],[_0x4af555([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5eb1f7};},{[_0x4af555([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4af555([0x68,0x69,0x67,0x68])}),_0x44b4bc[_0x4af555([0x6f,0x6e])](_0x4af555([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x67a6d=>{_0x7aa8a8(_0x67a6d[_0x4af555([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4b2ca0=!0x0,_0x1063ca(_0x67a6d[_0x4af555([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4af555([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4af555([0x6c,0x6f,0x77])}),_0x218280[_0x4af555([0x74,0x68,0x65,0x6e])](()=>{_0x4b2ca0||_0x9fbf1b(_0x4af555([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4e56bc(){return _0x44b4bc[_0x4af555([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4af555([0x76,0x69,0x65,0x77])][_0x4af555([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4af555([0x61,0x75,0x74,0x6f]);}function _0x3f9029(){_0x44b4bc[_0x4af555([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4af555([0x76,0x69,0x65,0x77])][_0x4af555([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4af555([0x61,0x75,0x74,0x6f]);}}function _0x3cb2ef(_0x33a239){const _0x9cd135=[new window[(_0x4af555([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ed8b7=>setTimeout(_0x2ed8b7,0x734f347f^_0x3aa2e4)),_0x218280[_0x4af555([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4af555([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a3961=>{let _0x471bff=0x0;_0x44b4bc[_0x4af555([0x6d,0x6f,0x64,0x65,0x6c])][_0x4af555([0x6f,0x6e])](_0x4af555([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1c1b8d,_0x4675f5)=>{_0x4675f5[0x0][_0x4af555([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x471bff++,_0x471bff==(0x73460b4b^_0x3aa2e4)&&(_0x2a3961(),_0x1c1b8d[_0x4af555([0x6f,0x66,0x66])]());});}))];return window[_0x4af555([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4af555([0x72,0x61,0x63,0x65])](_0x9cd135)[_0x4af555([0x74,0x68,0x65,0x6e])](()=>_0x33a239);}async function _0x4e8997(){await _0x218280,_0x44b4bc[_0x4af555([0x6d,0x6f,0x64,0x65,0x6c])][_0x4af555([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2f5e27,_0x44b4bc[_0x4af555([0x6d,0x6f,0x64,0x65,0x6c])][_0x4af555([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2f5e27,_0x44b4bc[_0x4af555([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4af555([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x403550(){return window[_0x4af555([0x67,0x6c,0x6f,0x62])]&&window[_0x4af555([0x67,0x6c,0x6f,0x62])][_0x4af555([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x1d5efd(){return _0x101990(_0x4af555([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xb6e152(_0x4af555([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4af555([0x73,0x74,0x61,0x74,0x65])]==_0x4af555([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3acc2a(){return _0x101990(_0x4af555([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 _0xf0d95d(){return _0x101990(_0x4af555([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4153a1(_0x22a434){const _0xb2624f=_0x2861ce();_0x44b4bc[_0xb2624f]=_0x4af555([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x22a434,_0x22a434!=_0x4af555([0x56,0x61,0x6c,0x69,0x64])&&_0x4e8997();}function _0x2861ce(){const _0x2f7cdc=window[_0x4af555([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4af555([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4af555([0x6e,0x6f,0x77])]())[_0x4af555([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4af555([0x2e]),'');let _0x2b765c=_0x4af555([0x4b]);for(let _0x13ffd1=0x0;_0x13ffd1<_0x2f7cdc[_0x4af555([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x13ffd1+=0x2){let _0x32c69b=window[_0x4af555([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f7cdc[_0x4af555([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13ffd1,_0x13ffd1+0x2));_0x32c69b>=_0x5d5d27[_0x4af555([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x32c69b-=_0x5d5d27[_0x4af555([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b765c+=_0x5d5d27[_0x32c69b];}return _0x2b765c;}function _0x23c04e(){const _0x39b019=_0x1f00f1[_0x4af555([0x73,0x70,0x6c,0x69,0x74])](_0x4af555([0x2e]));if(0x3!=_0x39b019[_0x4af555([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xa139de(_0x39b019[0x1]);function _0xa139de(_0x5e64b0){const _0xa70229=_0x40b223(_0x5e64b0);return _0xa70229&&_0x3579a5()?_0xa70229:null;function _0x3579a5(){const _0xb7f3c0=_0xa70229[_0x4af555([0x6a,0x74,0x69])],_0x1a6dc2=window[_0x4af555([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb7f3c0[_0x4af555([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb7f3c0[_0x4af555([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x47b571={..._0xa70229,[_0x4af555([0x6a,0x74,0x69])]:_0xb7f3c0[_0x4af555([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xb7f3c0[_0x4af555([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x47b571[_0x4af555([0x76,0x63])],_0x498e3d(_0x47b571)==_0x1a6dc2;}}}async function _0x558672(){let _0x5d1f07=!0x0;try{const _0x4c739a=_0x1f00f1[_0x4af555([0x73,0x70,0x6c,0x69,0x74])](_0x4af555([0x2e])),[_0x18cabf,_0x8d65c5,_0x38c6f3]=_0x4c739a;return _0x4d6286(_0x18cabf),await _0x20fd22(_0x18cabf,_0x8d65c5,_0x38c6f3),_0x5d1f07;}catch{return!0x1;}function _0x4d6286(_0x4dc2ef){const _0x22bdf9=_0x40b223(_0x4dc2ef);_0x22bdf9&&_0x22bdf9[_0x4af555([0x61,0x6c,0x67])]==_0x4af555([0x45,0x53,0x32,0x35,0x36])||(_0x5d1f07=!0x1);}async function _0x20fd22(_0x1d60d9,_0x4307a9,_0x1fb146){const _0x576d76=window[_0x4af555([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4af555([0x66,0x72,0x6f,0x6d])](_0x35907c(_0x1fb146),_0x4eea29=>_0x4eea29[_0x4af555([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x103042=new window[(_0x4af555([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4af555([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1d60d9+_0x4af555([0x2e])+_0x4307a9),_0x25f272=window[_0x4af555([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4af555([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x25f272)return;const _0x5c2763=await _0x25f272[_0x4af555([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4af555([0x6a,0x77,0x6b]),_0x15a0e1,{[_0x4af555([0x6e,0x61,0x6d,0x65])]:_0x4af555([0x45,0x43,0x44,0x53,0x41]),[_0x4af555([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4af555([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4af555([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x25f272[_0x4af555([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4af555([0x6e,0x61,0x6d,0x65])]:_0x4af555([0x45,0x43,0x44,0x53,0x41]),[_0x4af555([0x68,0x61,0x73,0x68])]:{[_0x4af555([0x6e,0x61,0x6d,0x65])]:_0x4af555([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5c2763,_0x576d76,_0x103042)||(_0x5d1f07=!0x1);}}function _0x40b223(_0x19b490){return _0x19b490[_0x4af555([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4af555([0x65,0x79]))?JSON[_0x4af555([0x70,0x61,0x72,0x73,0x65])](_0x35907c(_0x19b490)):null;}function _0x35907c(_0x531559){return window[_0x4af555([0x61,0x74,0x6f,0x62])](_0x531559[_0x4af555([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4af555([0x2b]))[_0x4af555([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4af555([0x2f])));}function _0x498e3d(_0x1154dc){let _0x1d0995=0x1505;function _0x1951bf(_0x40c285){for(let _0x5cfdef=0x0;_0x5cfdef<_0x40c285[_0x4af555([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5cfdef++){const _0x2c66f8=_0x40c285[_0x4af555([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5cfdef);_0x1d0995=(_0x1d0995<<0x5)+_0x1d0995+_0x2c66f8,_0x1d0995&=_0x1d0995;}}function _0x50aeee(_0x556b3a){Array[_0x4af555([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x556b3a)?_0x556b3a[_0x4af555([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x50aeee):_0x556b3a&&typeof _0x556b3a==_0x4af555([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4af555([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x556b3a)[_0x4af555([0x73,0x6f,0x72,0x74])]()[_0x4af555([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3fb250,_0x4fef4])=>{_0x1951bf(_0x3fb250),_0x50aeee(_0x4fef4);}):_0x1951bf(window[_0x4af555([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x556b3a));}return _0x50aeee(_0x1154dc),_0x1d0995>>>0x0;}function _0xb1a7fc(_0x134ed8){return _0x134ed8[_0x4af555([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4af555([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4af555([0x30]));}function _0x248003(_0x5be5ac){return _0x5be5ac[_0x4af555([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4af555([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4af555([0x6a,0x6f,0x69,0x6e])]('');}function _0x101990(_0x3dc2fc){return _0x44b4bc[_0x4af555([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4af555([0x68,0x61,0x73])](_0x3dc2fc);}function _0xb6e152(_0x594082){return _0x44b4bc[_0x4af555([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4af555([0x67,0x65,0x74])](_0x594082);}function _0x2f5e27(){}function _0x4af555(_0x16e3e5){return _0x16e3e5['map'](_0x3c490e=>String['fromCharCode'](_0x3c490e))['join']('');}_0x4153a1(await _0x567de2());}(this);}['destroy'](){const _0x7d33c2=this['editor']['plugins']['get'](o),_0x362000=this['editor']['config']['get']('collaboration.channelId');for(const _0x13ea50 of _0x7d33c2['getCommentThreads']({'channelId':_0x362000}))_0x7d33c2['_detachCommentThread'](_0x13ea50['id']),_0x7d33c2['_threads']['delete'](_0x13ea50['id']);super['destroy']();}['hasMarkerForId'](_0x1091c0){return this['getAllMarkersForId'](_0x1091c0)['length']>0x0;}['getAllMarkersForId'](_0x9ee8e0){const _0x57ffea=[];for(const _0x374542 of this['editor']['model']['markers'])_0x374542['name']['startsWith']('comment:'+_0x9ee8e0)&&_0x57ffea['push'](_0x374542);return _0x57ffea;}['scrollToThreadMarker'](_0x338660){setTimeout(()=>{const _0xd3cdb5=this['_getTargetForId'](_0x338660);if(!_0xd3cdb5)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x338660&&nt({'target':_0xd3cdb5[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x424b06){this['editor']['model']['change'](()=>{for(const _0x42b585 of this['getAllMarkersForId'](_0x424b06))this['editor']['editing']['reconvertMarker'](_0x42b585);});}['_attachArchivedThread'](_0x1efd3c){const _0x19ec31=this['editor']['plugins']['get'](o),_0x180c6b=this['editor']['plugins']['get'](b),_0x217dd5=_0x19ec31['getCommentThread'](_0x1efd3c);if(!_0x217dd5['isAttached']){const _0xa612eb=_0x217dd5['attachTo'](()=>this['_getTargetForId'](_0x217dd5['id']));_0x180c6b['registerAnnotation'](_0xa612eb),_0x217dd5['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x43b965=this['editor'],_0x5d8bf0=_0x43b965['plugins']['get'](it);_0x43b965['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x4f5857,_0xf4ea3d)=>{const {id:_0x516338}=ft(_0x4f5857['markerName']),_0x50f220=_0x43b965['plugins']['get'](o)['getCommentThread'](_0x516338),_0x361aff=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x516338;let _0x37b5cd;if(_0x50f220&&_0x50f220['isResolved']&&!_0x361aff&&_0x4f5857['item'])return _0xf4ea3d['consumable']['consume'](_0x4f5857['item'],'addMarker:'+_0x4f5857['markerName']),_0xf4ea3d['consumable']['consume'](_0x4f5857['item'],'removeMarker:'+_0x4f5857['markerName']),null;const _0x1e5f83=['ck-comment-marker'];return _0x361aff&&_0x1e5f83['push']('ck-comment-marker--active'),_0x37b5cd=_0x50f220?.['length']?_0x50f220['comments']['first']['author']['id']:_0x5d8bf0['me']['id'],{'classes':_0x1e5f83,'attributes':{'data-comment':_0x516338,'data-author-id':_0x37b5cd}};}}),_0x43b965['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x4b761c,{options:_0x1dd15c})=>{if(_0x1dd15c['showCommentHighlights'])return null;const _0x4e626a=_0x43b965['plugins']['get'](o),_0x14ffb9=_0x43b965['model']['markers']['get'](_0x4b761c),{id:_0x43f758,part:_0x37468b}=ft(_0x4b761c);return _0x14ffb9&&!_0x14ffb9['affectsData']||_0x1dd15c['ignoreResolvedComments']&&_0x4e626a['getCommentThread'](_0x43f758)?.['isResolved']?null:{'group':'comment','name':_0x37468b?_0x43f758+':'+_0x37468b:_0x43f758};}}),_0x43b965['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x5b46b6,{writer:_0x5b817c})=>_0x5b817c['createElement']('$marker',{'data-name':'comment:'+_0x5b46b6['getAttribute']('id')})}),_0x43b965['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x393d78=this['editor'],_0x6a0350=_0x393d78['plugins']['get'](o),_0x46331f=new Set(),_0x2ca8aa=new Set();_0x393d78['model']['document']['registerPostFixer'](_0xbcd6ee=>{let _0x48be5e=!0x1;for(const {name:_0xae44dd,data:_0x1b6a4f}of _0x393d78['model']['document']['differ']['getChangedMarkers']()){const {group:_0x32ca98,id:_0x906970}=ft(_0xae44dd);let _0x5b0273=_0x1b6a4f['newRange'];if('comment'!==_0x32ca98||!_0x5b0273)continue;const _0x19317d='$graveyard'===_0x5b0273['root']['rootName'];_0x19317d||(_0x5b0273=ht(_0x5b0273,_0x393d78['model']),!_0x5b0273||_0x5b0273['isCollapsed']||!_0x1b6a4f['newRange']||_0x5b0273['isEqual'](_0x1b6a4f['newRange']))?_0x393d78['model']['hasContent'](_0x5b0273)&&!_0x19317d?this['isThreadsLoadingPaused']?_0x46331f['add'](_0xae44dd):this['_handleThreadMarker'](_0xae44dd,_0x906970):(_0x2ca8aa['add'](_0xae44dd),_0x46331f['delete'](_0xae44dd),_0xbcd6ee['removeMarker'](_0xae44dd),_0x48be5e=!0x0):(_0xbcd6ee['updateMarker'](_0xae44dd,{'range':_0x5b0273}),_0x48be5e=!0x0);}return _0x48be5e;}),this['on']('change:isThreadsLoadingPaused',(_0x5691b6,_0xdd3a82,_0x542126)=>{if(!_0x542126&&_0x46331f['size'])for(const _0x35d249 of _0x46331f){const {id:_0x5c11b9}=ft(_0x35d249);_0x46331f['delete'](_0x35d249),_0x393d78['model']['markers']['get'](_0x35d249)&&this['_handleThreadMarker'](_0x35d249,_0x5c11b9);}}),this['listenTo'](_0x393d78['model']['document'],'change',()=>{for(const {name:_0x4c44b5,data:{newRange:_0x256289}}of _0x393d78['model']['document']['differ']['getChangedMarkers']()){const {group:_0x50b0e6,id:_0x83e87c}=ft(_0x4c44b5);if('comment'!==_0x50b0e6)continue;const _0x22b6f9=_0x6a0350['getCommentThread'](_0x83e87c),_0x10a21e=this['hasMarkerForId'](_0x83e87c);_0x22b6f9&&(!_0x22b6f9['_hasTargetInContent']&&_0x256289&&_0x393d78['editing']['view']['once']('render',()=>{const _0x4baef5=_0x393d78['plugins']['get'](y),_0xcaeafd=_0x6a0350['_threadToController']['get'](_0x22b6f9)['view'];_0x4baef5['getByInnerView'](_0xcaeafd)['refreshVisibility']();},{'priority':'low'}),_0x22b6f9['_hasTargetInContent']=_0x10a21e||!!_0x256289),_0x256289||(_0x2ca8aa['add'](_0x4c44b5),_0x46331f['delete'](_0x4c44b5));}for(const _0x2a0bcc of _0x2ca8aa){const {id:_0x2fa8f9}=ft(_0x2a0bcc),_0x18cea2=_0x6a0350['getCommentThread'](_0x2fa8f9);if(_0x46331f['delete'](_0x2a0bcc),!_0x18cea2)continue;const _0x5329c4=this['hasMarkerForId'](_0x2fa8f9);_0x5329c4||_0x18cea2['isSubmitted']?_0x5329c4||_0x18cea2['unlinkedAt']||_0x18cea2['setUnlinkedAt'](new Date()):_0x18cea2['remove']();}_0x2ca8aa['clear']();});}['_handleInitialThreads'](_0x2eb995){_0x2eb995['forEach'](_0x21795e=>{_0x21795e['unlinkedAt']&&this['_attachArchivedThread'](_0x21795e['id']);});}['_getTargetForId'](_0x2aff66){const _0x5d6e65=this['editor'],_0x3e274f=this['getAllMarkersForId'](_0x2aff66);return et(_0x5d6e65['editing'],_0x3e274f);}['_getTextContext'](_0x506748){const _0xef54b4=this['getAllMarkersForId'](_0x506748);let _0x523bd8='',_0x1b7c39=!0x1;for(const _0x41efff of _0xef54b4){const _0x4b013b=_0x41efff['getRange']();for(const _0x1a6cba of Array['from'](_0x4b013b['getItems']()))_0x1a6cba['is']('$textProxy')?(_0x523bd8&&_0x1b7c39&&(_0x523bd8+='\x20',_0x1b7c39=!0x1),_0x523bd8+=_0x1a6cba['data']):_0x1b7c39=!0x0;_0x1b7c39=!0x0;}return _0x523bd8['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x4a3b6d,_0x474c27){const _0x203818=this['editor'],_0x44f3f4=_0x203818['plugins']['get'](o);let _0x427b9b=_0x44f3f4['getCommentThread'](_0x474c27);const _0x5dbb40=_0x203818['config']['get']('collaboration.channelId'),_0x3b8cf9=_0x203818['plugins']['get'](b);if(_0x427b9b&&(_0x427b9b['unlinkedAt']&&_0x427b9b['setUnlinkedAt'](null),_0x427b9b['isAttached']))return _0x427b9b;return!this['getAllMarkersForId'](_0x474c27)[0x0]['managedUsingOperations']?_0x203818['editing']['view']['once']('render',()=>{if(_0x44f3f4['getCommentThread'](_0x474c27))return;const _0x393eff=_0x203818['plugins']['get'](y);_0x427b9b=_0x44f3f4['openNewCommentThread']({'channelId':_0x5dbb40,'threadId':_0x474c27,'target':()=>this['_getTargetForId'](_0x474c27),'context':{'type':'text','value':this['_getTextContext'](_0x474c27)}});const _0xa8bf28=_0x44f3f4['_threadToController']['get'](_0x427b9b)['view'],_0x3b4ab3=_0x393eff['getByInnerView'](_0xa8bf28);_0x3b4ab3&&_0x3b8cf9['registerAnnotation'](_0x3b4ab3);},{'priority':'low'}):_0x44f3f4['fetchCommentThread']({'channelId':_0x5dbb40,'threadId':_0x474c27})['then'](_0x4a68e0=>{if('destroyed'!==_0x203818['state']){if(_0x427b9b=_0x4a68e0,_0x427b9b&&!_0x427b9b['isAttached']){const _0x5bb0cf=_0x427b9b['attachTo'](()=>this['_getTargetForId'](_0x474c27));_0x3b8cf9['registerAnnotation'](_0x5bb0cf),_0x427b9b['isResolved']&&this['_reconvertMarkers'](_0x474c27);}else{if(!_0x427b9b){const _0x320fc9=this['getAllMarkersForId'](_0x474c27);_0x203818['model']['change'](_0x1ee403=>{for(const _0x248198 of _0x320fc9)_0x1ee403['removeMarker'](_0x248198);});}}}}),_0x427b9b;}['_handleThreadMarker'](_0xe2c5ea,_0x350336){const _0x17e052=this['_attachMarkerToThread'](_0xe2c5ea,_0x350336);_0x17e052&&!_0x17e052['context']&&_0x17e052['setContext']({'type':'text','value':this['_getTextContext'](_0x350336)});}['_initAriaMarkerChangeAnnouncements'](){const _0x26e5ad=this['editor'];rt(_0x26e5ad['model'],({left:_0x5b69cf,entered:_0x3b1c6a})=>{for(const _0x5b8139 of _0x5b69cf)if(mt(_0x5b8139)){_0x26e5ad['ui']['ariaLiveAnnouncer']['announce'](N(_0x26e5ad['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x5b1aee of _0x3b1c6a)if(mt(_0x5b1aee)){_0x26e5ad['ui']['ariaLiveAnnouncer']['announce'](N(_0x26e5ad['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x19c6b5)));break;}});}}function dt(_0x5ad189,_0x38f50f){return _0x38f50f?_0x5ad189+':'+_0x38f50f:_0x5ad189;}function ht(_0x1b3271,_0xa735f0){const _0x2b5677=_0xa735f0['schema'],_0x3153e8=_0xa735f0['createRange'](_0x1b3271['start']);for(const _0x52ca4a of _0x1b3271['getWalker']()){const {type:_0x5ea735,item:_0x3ce121,nextPosition:_0x48e53a}=_0x52ca4a;if('text'===_0x5ea735||_0x2b5677['isObject'](_0x3ce121)){const _0x3a7dc2=_0xa735f0['createPositionBefore'](_0x3ce121);_0x3153e8['isCollapsed']&&(_0x3153e8['start']=_0x3a7dc2),_0x3153e8['end']=_0x48e53a;}}return _0x3153e8;}function mt(_0x5bc31e){return'comment'===ft(_0x5bc31e['name'])['group'];}class s extends _0x343473{['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 _0x16bf7c=this['editor'],_0x3a79b3=_0x16bf7c['plugins']['get'](o),_0x3ccedd=_0x16bf7c['plugins']['get'](r),_0x57f8d4=_0x16bf7c['plugins']['get'](y),_0x2a702e=_0x16bf7c['plugins']['get'](b);_0x16bf7c['ui']['componentFactory']['add']('comment',()=>{const _0x56952b=this['_createUIButton'](_0x2a8d4c);return _0x56952b['tooltip']=!0x0,_0x56952b;}),_0x16bf7c['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x2d277e)),_0x2a702e['addSourceCollector'](()=>{const _0x3782b0=[];for(const [_0x142a97,_0x85f6a]of _0x3a79b3['_threadToController']){const _0x4295be=_0x3ccedd['getAllMarkersForId'](_0x142a97['id']),_0x3f81e9=_0x4295be['map'](_0x5cb718=>_0x5cb718['getRange']());_0x4295be['length']>0x0&&_0x3782b0['push']([_0x85f6a['view'],_0x3f81e9]);}return _0x3782b0;}),this['listenTo'](_0x57f8d4,'change:activeAnnotations',(_0x4eab76,_0x42141c,_0x4a2c1a)=>{const _0x5e53f0=Array['from'](_0x4a2c1a)['map'](_0x45b2fd=>_0x45b2fd['innerView'])['find'](_0x1d9c78=>_0x3a79b3['_viewToController']['has'](_0x1d9c78));if(!_0x5e53f0)return void(_0x3ccedd['activeMarker']=null);const _0x263291=_0x3a79b3['_viewToController']['get'](_0x5e53f0)['model']['id'],_0x4c1c35='comment:'+_0x263291;_0x263291&&_0x3ccedd['hasMarkerForId'](_0x263291)?_0x3ccedd['activeMarker']=_0x4c1c35:_0x3ccedd['activeMarker']&&(_0x3ccedd['activeMarker']=null);}),this['listenTo'](_0x3a79b3,'removeCommentThread',(_0x20864b,{threadId:_0x2bfa8b,isFromAdapter:_0x38ecff})=>{!_0x38ecff&&_0x16bf7c['ui']['focusTracker']['isFocused']&&_0x3ccedd['hasMarkerForId'](_0x2bfa8b)&&_0x16bf7c['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x3a79b3,'addComment',(_0x400bfe,{threadId:_0x13ac22,isFromAdapter:_0x11718e})=>{if(_0x11718e||!_0x3ccedd['hasMarkerForId'](_0x13ac22)||!_0x3a79b3['hasCommentThread'](_0x13ac22))return;0x1===_0x3a79b3['getCommentThread'](_0x13ac22)['length']&&(_0x16bf7c['editing']['view']['focus'](),_0x400bfe['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4e3156=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x59aac2;for(const _0x319bc7 in _0x4e3156){const _0x29c571=_0x319bc7,_0x2ddb27=_0x4e3156[_0x29c571];if('commentsLicenseKeyValid'==_0x2ddb27||'commentsLicenseKeyInvalid'==_0x2ddb27||'commentsLicenseKeyExpired'==_0x2ddb27||'commentsLicenseKeyDomainLimit'==_0x2ddb27||'commentsLicenseKeyNotAllowed'==_0x2ddb27||'commentsLicenseKeyEvaluationLimit'==_0x2ddb27||'commentsLicenseKeyTrialLimit'==_0x2ddb27||'commentsLicenseKeyUsageLimit'==_0x2ddb27){delete _0x4e3156[_0x29c571],_0x59aac2=_0x2ddb27,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x59aac2&&_0x4e3156['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x59aac2&&_0x4e3156['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x59aac2&&_0x4e3156['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x59aac2&&_0x4e3156['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x59aac2&&_0x4e3156['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x59aac2&&_0x4e3156['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x59aac2&&_0x4e3156['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x770f80){const _0x3da207=this['editor'],_0x4c2654=new _0x770f80(_0x3da207['locale']),_0x36d1f2=_0x3da207['commands']['get']('addCommentThread');return _0x4c2654['set']({'label':N(_0x3da207['locale'],'Comment'),'icon':_0x19095f}),_0x4c2654['bind']('isEnabled')['to'](_0x36d1f2,'hasContent'),this['listenTo'](_0x4c2654,'execute',()=>{_0x36d1f2['execute']();}),_0x4c2654;}}class i extends _0x343473{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x5531bc){super(_0x5531bc),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x47809d,_0x2429f2,_0x52c6ae)=>{_0x52c6ae?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x2baf11,_0x1d2ccb]of this['editor']['commands'])_0x1d2ccb['affectsData']&&'addCommentThread'!==_0x2baf11&&_0x1d2ccb['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 _0x3ff588=this['editor']['editing']['view']['document'];this['listenTo'](_0x3ff588,'cut',_0x4aa7d3=>_0x4aa7d3['stop'](),{'priority':'highest'}),this['listenTo'](_0x3ff588,'clipboardInput',_0x58cc95=>_0x58cc95['stop'](),{'priority':'highest'}),this['listenTo'](_0x3ff588,'delete',_0x34e36d=>_0x34e36d['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x1e74fd,_0x207bf1]of this['editor']['commands'])_0x207bf1['affectsData']&&'addCommentThread'!==_0x1e74fd&&_0x207bf1['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 _0x45882f{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5ea33d){super(_0x5ea33d),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x2bcce7=this['context']['plugins']['get'](y);this['listenTo'](_0x2bcce7,'_activateAnnotation',(_0x284a95,_0x396f62)=>{for(const _0x306a8f of this['activeUIs']){const _0x432590=this['_uis']['get'](_0x306a8f);(0x0,this['uisData']['get'](_0x306a8f)['filter'])(_0x396f62)&&_0x432590['setActiveAnnotation'](_0x396f62);}}),this['listenTo'](_0x2bcce7,'_deactivateAllAnnotations',()=>{for(const _0x506485 of this['activeUIs']){this['_uis']['get'](_0x506485)['setActiveAnnotation'](null);}}),this['listenTo'](_0x2bcce7['_visibleAnnotations'],'add',(_0x67fa4e,_0x27da9b)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x27da9b);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x32f799){return this['activeUIs']['has'](_0x32f799);}['activate'](_0xe14e54,_0x23b557=this['defaultFilter']){const _0x5ce816=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0xe14e54))throw new _0x3a839e('annotationsuis-missing-ui',this,{'uiName':_0xe14e54});this['isActive'](_0xe14e54)&&this['deactivate'](_0xe14e54),this['activeUIs']['add'](_0xe14e54);const _0x26cc90=new S();v({'source':_0x5ce816['_visibleAnnotations'],'target':_0x26cc90,'filter':_0x23b557}),this['uisData']['set'](_0xe14e54,{'collection':_0x26cc90,'filter':_0x23b557});const _0x55564a=this['_uis']['get'](_0xe14e54);_0x55564a['attach'](_0x26cc90),this['listenTo'](_0x55564a,'change:activeAnnotation',(_0xfd6171,_0x4d9b4e,_0x30aef7,_0x29b79a)=>{_0x29b79a&&_0x5ce816['_removeActiveAnnotation'](_0x29b79a),_0x30aef7&&_0x5ce816['_addActiveAnnotation'](_0x30aef7);});}['deactivate'](_0x2ccd35){if(this['activeUIs']['delete'](_0x2ccd35),!this['_uis']['has'](_0x2ccd35))throw new _0x3a839e('annotationsuis-missing-ui',this,{'uiName':_0x2ccd35});const _0x3e16a7=this['_uis']['get'](_0x2ccd35);_0x3e16a7['detach'](),this['stopListening'](_0x3e16a7),this['uisData']['get'](_0x2ccd35)['collection']['destroy'](),this['uisData']['delete'](_0x2ccd35);}['switchTo'](_0x44f8e0){if(!this['_uis']['has'](_0x44f8e0))throw new _0x3a839e('annotationsuis-missing-ui',this,{'uiName':_0x44f8e0});const _0x4784c1=this['context']['plugins']['get'](y),_0x4c6cc4=Array['from'](_0x4784c1['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x44f8e0);const _0x59d17e=this['_uis']['get'](_0x44f8e0);_0x59d17e['setActiveAnnotation'](_0x4c6cc4),_0x59d17e['_setSelectedAnnotations']&&_0x4c6cc4&&_0x59d17e['_setSelectedAnnotations']([_0x4c6cc4]);}['deactivateAll'](){for(const _0x4b9245 of this['activeUIs'])this['deactivate'](_0x4b9245);}['register'](_0x526707,_0x51dbee){if(this['_uis']['has'](_0x526707))throw new _0x3a839e('annotationsuis-register-already-registered');if('function'!=typeof _0x51dbee['attach']||'function'!=typeof _0x51dbee['detach']||'function'!=typeof _0x51dbee['setActiveAnnotation'])throw new _0x3a839e('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x526707,_0x51dbee);}['refilterAnnotations'](){const _0x34b57a=this['context']['plugins']['get'](y)['collection'],_0xa69d99=new Map(),_0x50f607=Array['from'](this['activeUIs']);for(const _0x54f9bc of this['activeUIs']){const _0x2fed46=this['uisData']['get'](_0x54f9bc)['collection'];for(const _0x66c089 of _0x2fed46)_0xa69d99['set'](_0x66c089,_0x54f9bc);}for(const _0x5a500d of _0x34b57a){const _0x11aa27=_0xa69d99['get'](_0x5a500d);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5a500d);const _0x5d5cd3=_0x50f607['find'](_0x450f83=>this['uisData']['get'](_0x450f83)['filter'](_0x5a500d));_0x11aa27!==_0x5d5cd3&&(_0x11aa27&&this['uisData']['get'](_0x11aa27)['collection']['remove'](_0x5a500d),_0x5d5cd3&&this['uisData']['get'](_0x5d5cd3)['collection']['add'](_0x5a500d));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x7dbc8c){const _0xafaafc=[];for(const _0xe3298d of this['activeUIs']){(0x0,this['uisData']['get'](_0xe3298d)['filter'])(_0x7dbc8c)&&_0xafaafc['push'](_0xe3298d);}if(_0xafaafc['length']>0x1)throw new _0x3a839e('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0xafaafc,'annotationType':_0x7dbc8c['type']});}}const _i=/* #__PURE__ -- @preserve */
32
- Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x563e9e){super(_0x563e9e);const _0x2772a6=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 _0x1b2c22(),this['focusCycler']=new _0x37d3b8({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x2772a6['to']('class')],'style':{'minHeight':_0x2772a6['to']('minHeight',_0x5cc07e=>'number'==typeof _0x5cc07e?_i(_0x5cc07e+0xa):null)},'dir':_0x563e9e['uiLanguageDirection'],'role':'application','aria-label':N(_0x563e9e,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x563e9e,'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',_0x53070b=>{this['_updateItemPositionInFocusables'](_0x53070b['source']);}),this['list']['forEach'](_0x445ba1=>{this['focusTracker']['add'](_0x445ba1['element']),this['_updateItemPositionInFocusables'](_0x445ba1);}),this['list']['on']('change',(_0x4b5974,_0x28132f)=>{for(const _0x2fec28 of _0x28132f['removed'])this['focusTracker']['remove'](_0x2fec28['element']),this['focusables']['remove'](_0x2fec28);for(const _0x205693 of _0x28132f['added'])this['focusTracker']['add'](_0x205693['element']),this['_updateItemPositionInFocusables'](_0x205693);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x268c19){const _0x4e228a=this['focusables']['getIndex'](_0x268c19);let _0x1bf04e,_0x407384;for(const _0x3f206d of this['focusables'])if(_0x268c19['top']<_0x3f206d['top']){_0x1bf04e=_0x3f206d;break;}if(_0x407384=_0x1bf04e?this['focusables']['getIndex'](_0x1bf04e):this['focusables']['length'],-0x1!==_0x4e228a){if(_0x4e228a===_0x407384-0x1)return;this['focusables']['remove'](_0x268c19),_0x407384=_0x1bf04e?this['focusables']['getIndex'](_0x1bf04e):this['focusables']['length'];}this['focusables']['add'](_0x268c19,_0x407384);}}const Ot=/* #__PURE__ -- @preserve */
33
- Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x5e652c){super(_0x5e652c),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x118e73,_0x208578)=>_0x118e73+_0x208578),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x3707e7=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x3707e7['to']('isAnimationDisabled',_0x29cd8c=>_0x29cd8c?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x3707e7['to']('top',_0x1685bd=>Ot(_0x1685bd))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x1c609e=this['element']['clientHeight'];_0x1c609e&&(this['height']=_0x1c609e);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x45882f{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x248496){super(_0x248496),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 _0x55ae6c=this['context']['config']['get']('sidebar.container');_0x55ae6c&&this['setContainer'](_0x55ae6c);}['setContainer'](_0x1fc517){if(!g(_0x1fc517))throw new _0x3a839e('sidebar-setcontainer-invalid-element');this['container']=_0x1fc517;}['_attachToContainer']({viewClass:_0x2630e8='',spaceBetweenItems:_0x1a2fd7=0x19}={}){if(!g(this['container']))throw new _0x3a839e('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x2630e8,this['_spaceBetweenItems']=_0x1a2fd7;}['rearrange']({removedAnnotation:_0x1bd947,previousAnnotation:_0x3dc825,nextAnnotation:_0x4f8f9f}){const _0x45bdf4=this['getSidebarItemView'](_0x1bd947);this['view']['list']['remove'](_0x45bdf4),this['_destroySidebarItemView'](_0x1bd947),_0x3dc825&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3dc825)),_0x4f8f9f&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x4f8f9f)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x430022,activatedAnnotation:_0x3d6190,disableAnimationOnActivatedAnnotation:_0x4eb206}){if(this['_activeAnnotation']=_0x3d6190,_0x430022){_0x430022['isActive']=!0x1;const _0x50aac0=this['getSidebarItemView'](_0x430022);_0x50aac0&&_0x4eb206&&(_0x50aac0['isAnimationDisabled']=!0x1);}if(_0x3d6190){const _0x164121=this['getSidebarItemView'](_0x3d6190);_0x164121&&(_0x3d6190['isActive']=!0x0,_0x4eb206&&(_0x164121['isAnimationDisabled']=!0x0,_0x164121['top']+=0x1),this['_alignToTargetRect'](_0x164121));}}['_detachFromContainer'](_0x42a99f){if(this['view']['element']['remove'](),_0x42a99f){for(const _0x37b028 of _0x42a99f)this['_destroySidebarItemView'](_0x37b028);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x33161b,_0x48012c){_0x48012c||(_0x48012c=_0x33161b['view']);const _0x584f13=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x584f13,_0x33161b),this['_annotationToSidebarItemView']['set'](_0x33161b,_0x584f13),_0x584f13['content']['add'](_0x48012c),this['listenTo'](_0x33161b['view'],'change:targetRect',(_0x4c5ce9,_0x1bc705,_0x3af2cc)=>{const _0x13fa95=this['_getTargetTop'](_0x33161b,_0x3af2cc);_0x584f13['_targetTop']!=_0x13fa95&&(_0x584f13['_targetTop']=_0x13fa95,this['_setItemTop'](_0x584f13,_0x13fa95));}),this['listenTo'](_0x584f13,'change:top',()=>{this['_recalculate'](_0x584f13,'top');}),this['listenTo'](_0x584f13,'change:bottom',()=>{this['_recalculate'](_0x584f13,'bottom');}),this['_alignToTargetRect'](_0x584f13);const _0x2c8302=this['_getItemBefore'](_0x584f13);if(_0x2c8302)this['_alignAfterItem'](_0x2c8302,_0x584f13)||this['_alignToTargetRect'](_0x584f13);else this['_alignToTargetRect'](_0x584f13);return this['_updateLastItem'](),this['view']['list']['add'](_0x584f13),_0x584f13;}['_alignForTopChange'](_0x3f0112){if(!_0x3f0112['content']['length'])return;const _0x5a90ba=this['_getItemBefore'](_0x3f0112);if(!_0x5a90ba)return;const _0x321f9f=this['_sidebarItemViewToAnnotation']['get'](_0x5a90ba),_0x334a9d=this['_activeAnnotation'];_0x334a9d&&_0x334a9d===_0x321f9f?this['_alignAfterItem'](_0x5a90ba,_0x3f0112):this['_alignBeforeItem'](_0x3f0112,_0x5a90ba);}['_alignForBottomChange'](_0x3a6e4f){if(!_0x3a6e4f['content']['length'])return;const _0x4f23e0=this['_getItemAfter'](_0x3a6e4f);if(!_0x4f23e0)return;const _0x535459=this['_sidebarItemViewToAnnotation']['get'](_0x4f23e0),_0x2d22e=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x5b4e0b=this['_activeAnnotation'];_0x5b4e0b&&_0x5b4e0b===_0x535459&&_0x2d22e?(this['_alignBeforeItem'](_0x4f23e0,_0x3a6e4f),this['_alignAfterItem'](_0x3a6e4f,_0x4f23e0)):_0x5b4e0b&&_0x5b4e0b===_0x535459?this['_alignBeforeItem'](_0x4f23e0,_0x3a6e4f):this['_alignAfterItem'](_0x3a6e4f,_0x4f23e0);}['_recalculate'](_0x14ebd3,_0x25a500){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x2bb078,changedProp:_0x4f4dc1}of this['_recalculateBuffer'])'top'===_0x4f4dc1?this['_alignForTopChange'](_0x2bb078):this['_alignForBottomChange'](_0x2bb078);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x14ebd3,'changedProp':_0x25a500});}['getSidebarItemView'](_0x28d449){return this['_annotationToSidebarItemView']['get'](_0x28d449);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x2214be){const _0x60734b=this['getSidebarItemView'](_0x2214be);this['stopListening'](_0x60734b),this['stopListening'](_0x2214be['view']),_0x60734b['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x2214be),this['_sidebarItemViewToAnnotation']['delete'](_0x60734b);}['_createSidebarView'](){const _0x49f5c3=new H(this['context']['locale']);return _0x49f5c3['render'](),this['on']('change:_lastItem',(_0x1d2820,_0x408109,_0x1d138c,_0x5e1249)=>{_0x5e1249&&_0x49f5c3['unbind']('minHeight'),_0x1d138c?_0x49f5c3['bind']('minHeight')['to'](_0x1d138c,'bottom'):_0x49f5c3['minHeight']=null;}),_0x49f5c3;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x129f55){const _0x17fa6e=this['_sidebarItemViewToAnnotation']['get'](_0x129f55),_0x255bab=_0x17fa6e&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x17fa6e)-0x1);return _0x255bab&&this['getSidebarItemView'](_0x255bab)||null;}['_getItemAfter'](_0x4a4a6b){const _0x509737=this['_sidebarItemViewToAnnotation']['get'](_0x4a4a6b),_0x290ac5=_0x509737&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x509737)+0x1);return _0x290ac5&&this['getSidebarItemView'](_0x290ac5)||null;}['_alignBeforeItem'](_0x3679d9,_0x2bef40){_0x3679d9['updateHeight']();const _0x20fe6e=G(_0x2bef40['bottom']+this['_spaceBetweenItems'],_0x3679d9['top']);return!!_0x20fe6e&&(this['_setItemTop'](_0x2bef40,_0x2bef40['top']-_0x20fe6e),!0x0);}['_alignAfterItem'](_0x2eff56,_0x5b071a){_0x2eff56['updateHeight']();const _0x199809=G(_0x2eff56['bottom']+this['_spaceBetweenItems'],_0x5b071a['top']);return!!_0x199809&&(this['_setItemTop'](_0x5b071a,_0x5b071a['top']+_0x199809,!0x1),!0x0);}['_alignToTargetRect'](_0x542859){const _0x574108=this['_sidebarItemViewToAnnotation']['get'](_0x542859);if(!_0x574108||!_0x574108['target']||!_0x574108['targetRect'])return;const _0x36b0af=this['_getTargetTop'](_0x574108,_0x574108['targetRect']);this['_setItemTop'](_0x542859,_0x36b0af);}['_getTargetTop'](_0x39f944,_0x3da191){if(null===_0x3da191)return 0x0;if(_0x39f944['target']instanceof _0x2a3444)return _0x3da191['top'];{const _0x4ae910=new _0x2a3444(this['view']['element'])['top'];return _0x3da191['top']-_0x4ae910;}}['_setItemTop'](_0x17ed42,_0x1156d3,_0xbdf11b=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0xbdf11b&&(_0x1156d3=Math['max'](_0x1156d3,this['_getMaxAvailableTop'](_0x17ed42))),_0x17ed42['top']=_0x1156d3;}['_getMaxAvailableTop'](_0x2179cc){let _0x5227b8=this['_getItemBefore'](_0x2179cc),_0x58cece=0x0;for(;_0x5227b8;)_0x5227b8['updateHeight'](),_0x58cece+=this['_spaceBetweenItems']+_0x5227b8['height'],_0x5227b8=this['_getItemBefore'](_0x5227b8);return _0x58cece;}}function G(_0x1ffaa4,_0x2869d0){return Math['max'](_0x1ffaa4-_0x2869d0,0x0);}function g(_0x456eab){return null!==_0x456eab&&'object'==typeof _0x456eab&&0x1===_0x456eab['nodeType'];}class e extends _0x45882f{['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(_0x28544b){super(_0x28544b),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x6d21a2(),this['_refreshPositioningDebounced']=_0x274d42(()=>{_0x28544b['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x3425db=this['context']['plugins']['get'](j),_0x22832b=this['context']['plugins']['get'](z);_0x3425db['register']('wideSidebar',this),_0x22832b['container']&&_0x3425db['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x5ea8d6){if(_0x5ea8d6===this['activeAnnotation'])return;const _0xea899e=this['context']['plugins']['get'](z);_0xea899e['_activeAnnotation']=_0x5ea8d6;const _0x9284b9=this['activeAnnotation'];_0xea899e['refresh']({'blurredAnnotation':_0x9284b9,'activatedAnnotation':_0x5ea8d6}),this['activeAnnotation']=_0x5ea8d6;}['attach'](_0x3a6b07){this['annotations']=_0x3a6b07;const _0x217be0=this['context']['plugins']['get'](z);if(_0x217be0['_annotations']=_0x3a6b07,this['isAttached'])throw new _0x3a839e('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x217be0,'set:container',()=>{this['detach'](),this['listenTo'](_0x217be0,'change:container',_0x2001e6=>{_0x2001e6['off'](),this['attach'](_0x3a6b07);});}),_0x217be0['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x348869=_0x47f7e1=>{_0x47f7e1['updateTargetRect'](),_0x217be0['addAnnotation'](_0x47f7e1);};for(const _0x10053f of _0x3a6b07)_0x348869(_0x10053f);this['listenTo'](_0x3a6b07,'add',(_0x223709,_0x53ad9d)=>{_0x348869(_0x53ad9d);}),this['listenTo'](_0x3a6b07,'remove',(_0x23ff15,_0x56f046,_0x597ad4)=>{_0x217be0['rearrange']({'removedAnnotation':_0x56f046,'previousAnnotation':_0x3a6b07['get'](_0x597ad4-0x1),'nextAnnotation':_0x3a6b07['get'](_0x597ad4+0x1)}),_0x56f046===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x3a6b07,'focus',(_0x4856a7,_0x144812)=>{this['setActiveAnnotation'](_0x144812);}),this['listenTo'](_0x3a6b07,'blur',()=>{this['setActiveAnnotation'](null);});const _0x23653a=this['context']instanceof _0x42ce06?this['context']['editors']:new _0x6d21a2([this['context']]);for(const _0x6ae263 of _0x23653a)this['_integrateWithEditorAnnotations'](_0x6ae263);this['listenTo'](_0x23653a,'add',(_0x50e0fa,_0xeff310)=>{this['listenTo'](_0xeff310,'ready',()=>{this['_integrateWithEditorAnnotations'](_0xeff310);});}),this['listenTo'](_0x23653a,'remove',(_0x4f3c42,_0x529dc7)=>{_0x529dc7['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x529dc7['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x3a839e('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x1429ac=this['context']['plugins']['get'](z);_0x1429ac['_detachFromContainer'](this['annotations']),this['stopListening'](_0x1429ac),this['stopListening'](this['annotations']),this['context']instanceof _0x42ce06&&this['stopListening'](this['context']['editors']);for(const _0x3396e9 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x3396e9);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x30894c){if(!_0x30894c['plugins']['has']('EditorAnnotations'))return;const _0x497eed=_0x30894c['plugins']['get']('EditorAnnotations'),_0x38e2c3=()=>{const _0x248212=_0x497eed['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x248212[0x0]||null);};this['listenTo'](_0x497eed,'refresh',_0x38e2c3),this['listenTo'](_0x497eed,'blur',(_0x15821b,{isAnnotationTracked:_0x5a4482})=>{this['activeAnnotation']&&_0x5a4482(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x497eed,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x41da75=>{_0x497eed['hasDomSelection']()&&(_0x38e2c3(),_0x41da75['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x497eed);}['_destroyEditorAnnotationsIntegration'](_0x5e6b70){this['stopListening'](_0x5e6b70),this['_editorAnnotations']['remove'](_0x5e6b70);}}class C extends _0x2a8d4c{['counterView'];constructor(_0x66040){super(_0x66040);const _0x459838=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x54c5b6,_0x30b563)=>_0x54c5b6?'...':_0x30b563['toString']()),this['set']('annotationType',''),this['icon']=_0x19095f,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x459838['to']('annotationType',_0x951678=>'ck-annotation-counter__badge--'+_0x951678),_0x459838['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x459838['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x45882f{['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(_0x5ce440){super(_0x5ce440),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x35b43f())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x6d21a2(),this['_refreshPositioningDebounced']=_0x274d42(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x113f37(this['context']['locale']),this['balloonPanelView']=new _0x18fe7e(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x20eff7){this['annotations']=_0x20eff7;const _0x477ffd=this['context']['plugins']['get'](z),_0x15ba65=this['balloonPanelView'];if(_0x477ffd['_annotations']=_0x20eff7,this['isAttached'])throw new _0x3a839e('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x477ffd,'set:container',()=>{this['detach'](),this['listenTo'](_0x477ffd,'change:container',_0x285d8b=>{_0x285d8b['off'](),this['attach'](_0x20eff7);});}),_0x477ffd['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x18894a=_0x58cfdb=>{const _0x2c44a7=new C(this['context']['locale']);_0x477ffd['addAnnotation'](_0x58cfdb,_0x2c44a7),this['_annotationToNarrowView']['set'](_0x58cfdb,_0x2c44a7),_0x2c44a7['bind']('isDirty','annotationType','number')['to'](_0x58cfdb['view'],'isDirty','type','length'),_0x2c44a7['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x15ba65['content']['first']!==_0x58cfdb['view']?(this['_showBalloon'](_0x58cfdb),_0x58cfdb['view']['element']['focus'](),this['setActiveAnnotation'](_0x58cfdb)):this['setActiveAnnotation'](null);});};for(const _0x148f3e of _0x20eff7)_0x18894a(_0x148f3e);this['listenTo'](_0x20eff7,'add',(_0x3d5a2b,_0x225de8)=>{_0x18894a(_0x225de8);}),this['listenTo'](_0x20eff7,'remove',(_0x3a5797,_0x30b027,_0x2c012b)=>{this['_annotationToNarrowView']['get'](_0x30b027)['destroy'](),this['_annotationToNarrowView']['delete'](_0x30b027),_0x477ffd['rearrange']({'removedAnnotation':_0x30b027,'previousAnnotation':_0x20eff7['get'](_0x2c012b-0x1),'nextAnnotation':_0x20eff7['get'](_0x2c012b+0x1)}),_0x30b027===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x20eff7,'focus',(_0x211a39,_0x1cc9e4)=>{this['setActiveAnnotation'](_0x1cc9e4);}),this['listenTo'](_0x20eff7,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x57df1e,_0x172692)=>{_0x172692['keyCode']===_0x27e8f5['esc']&&_0x15ba65['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x15ba65['content']['first']),this['_hideBalloon'](),_0x172692['stopPropagation'](),_0x172692['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x234ab3,_0x5d5fb5)=>{const _0x255fd0=_0x5d5fb5['target'];_0x15ba65['isVisible']&&_0x15ba65['element']['contains'](_0x255fd0)||_0x477ffd['view']['element']['contains'](_0x255fd0)||_0x234ab3['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x51c403=>_0x51c403['contains'](_0x255fd0))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x1619b6=this['context']instanceof _0x42ce06?this['context']['editors']:new _0x6d21a2([this['context']]);for(const _0x488e3c of _0x1619b6)this['_integrateWithEditorAnnotations'](_0x488e3c);this['listenTo'](_0x1619b6,'add',(_0x152dd1,_0x12eb32)=>{this['listenTo'](_0x12eb32,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x12eb32);});}),this['listenTo'](_0x1619b6,'remove',(_0x18f852,_0x339cd6)=>{_0x339cd6['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x339cd6['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x2fc4a7){if(_0x2fc4a7===this['activeAnnotation'])return;const _0x29189c=this['context']['plugins']['get'](z);if(_0x29189c['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x2fc4a7,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2fc4a7)_0x29189c['getSidebarItemView'](_0x2fc4a7)?this['_showBalloon'](_0x2fc4a7):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x2fc4a7;}['detach'](){if(!this['isAttached'])throw new _0x3a839e('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x195ea6=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x567715=>_0x567715['destroy']()),this['_annotationToNarrowView']['clear'](),_0x195ea6['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x42ce06&&this['stopListening'](this['context']['editors']);for(const _0x17596a of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x17596a);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'](_0x2053e1){if(!_0x2053e1['plugins']['has']('EditorAnnotations'))return;const _0x3a51f8=_0x2053e1['plugins']['get']('EditorAnnotations'),_0x13993c=this['context']['plugins']['get'](z),_0x587ca6=this['annotations'],_0xb14a24=this['balloonPanelView'],_0x177212=()=>{const _0x1d670f=_0x3a51f8['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x1d670f),this['setActiveAnnotation'](_0x1d670f[0x0]||null);};this['listenTo'](_0x3a51f8,'refresh',_0x177212),this['listenTo'](_0x3a51f8,'blur',(_0x2eeb8d,{isAnnotationTracked:_0x17007f})=>{this['activeAnnotation']&&_0x17007f(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x3a51f8,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x587ca6,'blur',_0x14245c=>{_0x3a51f8['hasDomSelection']()&&_0x14245c['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x4f5b8a,_0x2c6b7c)=>{const _0x3bf223=_0x2c6b7c['target'];_0xb14a24['isVisible']&&_0xb14a24['element']['contains'](_0x3bf223)||_0x13993c['view']['element']['contains'](_0x3bf223)||this['activeAnnotation']&&_0x3a51f8['hasDomSelection']()&&(_0x177212(),_0x4f5b8a['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x3a51f8);}['_destroyEditorAnnotationsIntegration'](_0x24a1b4){_0x24a1b4&&(this['stopListening'](_0x24a1b4),this['_editorAnnotations']['remove'](_0x24a1b4));}['_setSelectedAnnotations'](_0xfb3077){for(const _0x7ee933 of this['_selectedAnnotations'])_0xfb3077['includes'](_0x7ee933)||this['_manuallyClosedAnnotationViews']['delete'](_0x7ee933['view']);this['_selectedAnnotations']=_0xfb3077;}['_refreshPositioning'](){const _0x297f09=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x297f09['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x347b71){if(this['_manuallyClosedAnnotationViews']['has'](_0x347b71['view']))return;const _0x5a9d6b=this['balloonPanelView']['content']['first'];_0x5a9d6b!==_0x347b71['view']?(_0x5a9d6b&&this['_detachListeners'](_0x5a9d6b),this['_attachListeners'](_0x347b71['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x347b71['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x165c3e=this['balloonPanelView']['content']['first'],_0x36fd23=_0x165c3e&&this['annotations']['getByView'](_0x165c3e);if(!_0x36fd23||!this['_annotationToNarrowView']['has'](_0x36fd23))return;const _0x20b146=this['_annotationToNarrowView']['get'](_0x36fd23)['element'],_0x989525=(function(){const _0x33a5e7=_0x18fe7e['defaultPositions'];return[_0x33a5e7['southArrowNorthEast'],_0x33a5e7['northArrowSouthEast'],_0x33a5e7['southArrowNorth'],_0x33a5e7['northArrowSouth'],_0x33a5e7['southArrowNorthWest'],_0x33a5e7['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x20b146,'positions':_0x989525});}['_hideBalloon'](){const _0x53fb3a=this['balloonPanelView'],_0x9222ff=_0x53fb3a['content']['first'];_0x9222ff&&(this['_detachListeners'](_0x9222ff),_0x53fb3a['unpin'](),_0x53fb3a['content']['clear']());}['_attachListeners'](_0x447d18){this['listenTo'](_0x447d18,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x447d18,'Esc',(_0x3aa049,_0x1306b5)=>{this['_manuallyClosedAnnotationViews']['add'](_0x447d18),this['_hideBalloon'](),_0x1306b5();});}['_detachListeners'](_0xf39853){this['stopListening'](_0xf39853);}}class c extends _0x343473{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[b,_0x5a40fb,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3324ce){super(_0x3324ce),_0x3324ce['editing']['view']['addObserver'](_0xd78016),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x3324ce['plugins']['get'](_0x5a40fb),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x207be8=this['editor']['plugins']['get'](j);_0x207be8['context']===this['editor']&&(_0x207be8['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x4fbb68,_0x2a9ffd)=>{const _0x4d7d05=this['_balloon'];if(this['isAttached']&&_0x4d7d05['visibleView']){const _0x171dca=this['annotations']['getByView'](_0x4d7d05['visibleView']);_0x171dca&&this['_closeAnnotation'](_0x171dca),_0x2a9ffd();}}));}['afterInit'](){const _0x427aec=this['editor']['plugins']['get'](j);_0x427aec['context']===this['editor']&&(_0x427aec['hasActive']()||_0x427aec['switchTo']('inline'));}['setActiveAnnotation'](_0x1ad30d){_0x1ad30d!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x1ad30d&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x1ad30d)&&this['_addAnnotationToBalloon'](_0x1ad30d,!0x0),_0x1ad30d['isActive']=!0x0),_0x1ad30d||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x1ad30d);}['attach'](_0x2e7bf0){this['annotations']=_0x2e7bf0;const _0x34229d=this['editor']['plugins']['get'](j),_0x43e40c=this['_balloon'];if(this['isAttached'])throw new _0x3a839e('inlineannotations-attach-already-attached',this);if(_0x34229d['context']!==this['editor'])throw new _0x3a839e('inlineannotations-not-allowed-with-context',this);const _0x5b39c0=this['editor']['plugins']['get'](b);this['listenTo'](_0x5b39c0,'refresh',()=>{const _0x17deba=_0x5b39c0['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x40be6b,_0x13ce3b;!this['_forceRefresh']&&(_0x40be6b=_0x17deba,_0x13ce3b=this['_selectedAnnotations'],_0x40be6b['length']===_0x13ce3b['length']&&_0x40be6b['every'](_0x250c61=>_0x13ce3b['includes'](_0x250c61)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x17deba),this['setActiveAnnotation'](_0x17deba[0x0]||null));}),this['listenTo'](_0x5b39c0,'blur',(_0x5de6a4,{isAnnotationTracked:_0x2c2b1d})=>{this['activeAnnotation']&&_0x2c2b1d(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x3caee0,_0x5b87df,_0x550d94)=>{_0x550d94||this['setActiveAnnotation'](null);}),this['listenTo'](_0x2e7bf0,'remove',(_0x4c44ee,_0x2239dd)=>{this['_removeAnnotationFromBalloon'](_0x2239dd),_0x2239dd===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x43e40c,'change:visibleView',(_0x1d9dfa,_0x5f1d65,_0x51f372,_0x1314e3)=>{_0x1314e3&&this['stopListening'](_0x1314e3);const _0x4bf73c=_0x2e7bf0['getByView'](_0x51f372);_0x51f372&&_0x4bf73c&&(this['listenTo'](_0x51f372,'change:height',()=>{_0x43e40c['updatePosition']();}),this['listenTo'](_0x51f372,'Esc',()=>{this['_closeAnnotation'](_0x4bf73c),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x4bf73c&&this['setActiveAnnotation'](_0x4bf73c));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x43e40c['visibleView']&&(_0x2e7bf0['getByView'](_0x43e40c['visibleView'])&&_0x43e40c['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 _0x3a839e('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x4cb972 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x4cb972);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x2ae917){for(const _0xc20f9e of this['_selectedAnnotations'])_0x2ae917['includes'](_0xc20f9e)||this['_manuallyClosed']['delete'](_0xc20f9e);for(const _0x3bd272 of this['annotations'])_0x2ae917['includes'](_0x3bd272)||this['_removeAnnotationFromBalloon'](_0x3bd272);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x5a030e of _0x2ae917)this['_addAnnotationToBalloon'](_0x5a030e);}this['_selectedAnnotations']=_0x2ae917;}['_addAnnotationToBalloon'](_0x37531c,_0x297fd0=!0x1){this['_manuallyClosed']['has'](_0x37531c)||(this['_addedAnnotations']['has'](_0x37531c)||this['_balloon']['hasView'](_0x37531c['view'])||(this['_addedAnnotations']['add'](_0x37531c),this['_balloon']['add']({'stackId':_0x37531c['view']['id'],'view':_0x37531c['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x37531c)}})),_0x297fd0&&this['_balloon']['showStack'](_0x37531c['view']['id']));}['_getBalloonTargetForAnnotation'](_0x576283){const _0x405f8c=_0x576283['target'],_0xf93ecf=this['editor']['editing']['view'],_0x553350=_0xf93ecf['document']['selection']['getFirstRange'](),_0x1812dc=_0xf93ecf['domConverter']['viewRangeToDom'](_0x553350);if(_0x1812dc['collapse'](!0x0),_0x405f8c){if(_0x405f8c instanceof _0x2a3444)return _0x405f8c;let _0x1f197a=[];for(const _0x11cbc2 of _0x405f8c)_0x1f197a['push'](...F(_0x11cbc2['getClientRects']()));_0x1f197a=function(_0x2f0f02){const _0x2590ac=[];let _0x500da3=_0x2f0f02[0x0];for(let _0x3c9018=0x1;_0x3c9018<_0x2f0f02['length'];_0x3c9018++)P(_0x500da3,_0x2f0f02[_0x3c9018])?_0x500da3['width']+=_0x2f0f02[_0x3c9018]['width']:(_0x2590ac['push'](_0x500da3),_0x500da3=_0x2f0f02[_0x3c9018]);return _0x2590ac['push'](_0x500da3),_0x2590ac;}(_0x1f197a);const _0x2410ac=_0x1812dc['getBoundingClientRect']();return _0x1f197a['find'](_0x136b30=>_0x136b30['top']<=_0x2410ac['top']&&_0x136b30['bottom']>=_0x2410ac['bottom']&&_0x136b30['left']<=_0x2410ac['left']&&_0x136b30['right']>=_0x2410ac['right'])||_0x1f197a[0x0];}return _0x576283['targetRect']||_0x1812dc;}['_removeAnnotationFromBalloon'](_0x3ab88){this['_addedAnnotations']['has'](_0x3ab88)&&this['_balloon']['hasView'](_0x3ab88['view'])&&(this['_addedAnnotations']['delete'](_0x3ab88),this['_balloon']['remove'](_0x3ab88['view']));}['_closeAnnotation'](_0x10ba91){this['_manuallyClosed']['add'](_0x10ba91),this['_removeAnnotationFromBalloon'](_0x10ba91);}}function F(_0x4ff4e5){return Array['from'](_0x4ff4e5)['map'](DOMRect['fromRect']);}function P(_0x3ceb70,_0x4babfa){return _0x3ceb70['top']===_0x4babfa['top']&&_0x3ceb70['bottom']===_0x4babfa['bottom']&&_0x3ceb70['right']===_0x4babfa['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x59e5e4,_0x170d5e){super(_0x59e5e4),this['set']('isEmpty',!_0x170d5e['length']),this['focusTracker']=new _0x1b2c22(),this['_annotationViews']=_0x170d5e,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x37d3b8({'focusables':_0x170d5e,'focusTracker':this['focusTracker']}),this['listenTo'](_0x170d5e,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x170d5e,'remove',(_0x1ab7cb,_0x5e881d)=>{_0x5e881d['isActive']&&this['focus'](),_0x170d5e['length']||(this['isEmpty']=!0x0);});const _0x2d19e9=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x59e5e4,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x170d5e},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x2d19e9['if']('isEmpty','ck-hidden',_0x1c1e18=>!_0x1c1e18)]},'children':[{'text':N(_0x59e5e4,'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 _0x5f4b0c of this['_annotationViews'])this['focusTracker']['add'](_0x5f4b0c['element']);this['_annotationViews']['on']('change',(_0x58183a,{added:_0x421b0d,removed:_0x4a67e6})=>{for(const _0x1934cb of _0x421b0d)this['focusTracker']['add'](_0x1934cb['element']);for(const _0x4dd9d5 of _0x4a67e6)this['focusTracker']['remove'](_0x4dd9d5['element']);});}}class p extends _0x45882f{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x5597d1){super(_0x5597d1),this['archivedThreads']=new _0x6d21a2();}['init'](){const _0x58d087=this['context'],_0x46aa60=_0x58d087['plugins']['get'](o),_0xd20205=_0x58d087['plugins']['get'](y);this['listenTo'](_0x46aa60,'addCommentThread',(_0x19740d,{threadId:_0x218de0})=>{const _0x1ae4c3=_0x46aa60['getCommentThread'](_0x218de0);_0x1ae4c3['archivedAt']&&this['archivedThreads']['add'](_0x1ae4c3,this['_calculatePosition'](_0x1ae4c3['archivedAt'])),this['listenTo'](_0x1ae4c3,'change:archivedAt',(_0x3b85a2,_0x58d7c0,_0x18125a)=>{_0x18125a?this['archivedThreads']['has'](_0x1ae4c3)||this['archivedThreads']['add'](_0x1ae4c3,this['_calculatePosition'](_0x1ae4c3['archivedAt'])):this['archivedThreads']['has'](_0x1ae4c3)&&this['archivedThreads']['remove'](_0x1ae4c3);});}),this['listenTo'](_0x46aa60,'removeCommentThread',(_0x1aebe6,{threadId:_0x3e1bb0})=>{const _0x48d376=_0x46aa60['getCommentThread'](_0x3e1bb0);this['stopListening'](_0x48d376),this['archivedThreads']['has'](_0x48d376)&&this['archivedThreads']['remove'](_0x48d376);},{'priority':'highest'}),this['listenTo'](_0xd20205['collection'],'focus',(_0x1a0508,_0x57bfa1)=>{_0x57bfa1['isVisible']||(_0x57bfa1['isActive']=!0x0,_0xd20205['activate'](_0x57bfa1));});}['_calculatePosition'](_0x3111fd){const _0x3f3349=[...this['archivedThreads']]['findIndex'](_0x4dd9da=>_0x4dd9da['archivedAt']<_0x3111fd);return _0x3f3349>-0x1?_0x3f3349:this['archivedThreads']['length'];}}class a extends _0x343473{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x5d034a];}constructor(_0x109783){super(_0x109783),this['annotationViews']=new _0x20e792(),this['_pendingThreads']=[];}['init'](){const _0x40d170=this['editor'],_0x25fde2=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x40d170['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x2a8d4c,!0x0)),_0x40d170['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x2219f7=this['_createCommentsArchiveButton'](_0x2d277e);return _0x2219f7['set']({'role':'menuitemcheckbox'}),_0x2219f7;});const _0x4172a9=_0x40d170['plugins']['get'](p),_0x4507a0=_0x40d170['plugins']['get']('Annotations'),_0x22b6ca=_0x40d170['plugins']['get']('CommentsRepository');_0x4172a9['archivedThreads']['forEach'](_0x53d920=>{this['_handleNewThread'](_0x53d920);}),this['listenTo'](_0x4172a9['archivedThreads'],'add',(_0x1ceeb0,_0xfc6045)=>{this['_handleNewThread'](_0xfc6045);}),this['listenTo'](_0x4507a0['collection'],'add',(_0x141087,_0x41f414)=>{const _0x3be92d=this['_pendingThreads']['find'](_0x44eb25=>{const _0x439489=_0x22b6ca['_threadToController']['get'](_0x44eb25);return _0x439489&&_0x41f414['innerView']===_0x439489['view'];});if(_0x3be92d){const _0x3e4f67=this['_calculatePosition'](_0x3be92d['archivedAt']);this['_addAnnotationToArchive'](_0x41f414,_0x3e4f67),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x3be92d),0x1);}}),this['listenTo'](_0x4172a9['archivedThreads'],'remove',(_0x44ca96,_0x2ff45c)=>{const _0x260419=_0x40d170['config']['get']('collaboration.channelId');if(!_0x260419||_0x2ff45c['channelId']===_0x260419){if(this['_pendingThreads']['includes'](_0x2ff45c))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x2ff45c),0x1);else{const _0x356531=_0x22b6ca['_threadToController']['get'](_0x2ff45c),_0xae5dc1=_0x4507a0['getByInnerView'](_0x356531['view']);this['annotationViews']['remove'](_0xae5dc1['view']),this['stopListening'](_0xae5dc1),this['stopListening'](_0xae5dc1['focusableElements']);}}}),this['listenTo'](_0x4507a0['collection'],'add',(_0x1c36d5,_0x2d54fd)=>{this['listenTo'](_0x2d54fd,'escape',_0x25fde2);}),this['listenTo'](_0x4507a0['collection'],'remove',(_0x45c1ae,_0x53efcd)=>{this['stopListening'](_0x53efcd,'escape',_0x25fde2);});}['_addAnnotationToArchive'](_0x3b9ef5,_0x98d063){this['listenTo'](_0x3b9ef5,'set:isVisible',_0x24e0c7=>{_0x24e0c7['return']=!0x1,_0x24e0c7['stop']();}),this['annotationViews']['add'](_0x3b9ef5['view'],_0x98d063);}['_handleNewThread'](_0x2c632c){const _0x5b2081=this['editor']['plugins']['get']('CommentsRepository'),_0x9188b5=this['editor']['plugins']['get']('Annotations'),_0x131cc9=this['editor']['config']['get']('collaboration.channelId');if(!_0x131cc9||_0x2c632c['channelId']===_0x131cc9){const _0x3d6d87=_0x5b2081['_threadToController']['get'](_0x2c632c);if(!_0x3d6d87)return void this['_pendingThreads']['push'](_0x2c632c);const _0x130c5b=this['_calculatePosition'](_0x2c632c['archivedAt']),_0x2b0bf6=_0x9188b5['getByInnerView'](_0x3d6d87['view']);_0x2b0bf6['isVisible']&&_0x9188b5['_visibleAnnotations']['remove'](_0x2b0bf6),this['_addAnnotationToArchive'](_0x2b0bf6,_0x130c5b);}}['_calculatePosition'](_0x399960){const _0x2e66f3=this['editor']['config']['get']('collaboration.channelId'),_0xb4f67=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x143090=>_0x143090['channelId']===_0x2e66f3)['findIndex'](_0x8d1cb6=>_0x8d1cb6['archivedAt']<_0x399960);return _0xb4f67<0x0||_0xb4f67>this['annotationViews']['length']?this['annotationViews']['length']:_0xb4f67-0x1;}['_toggleDialog'](){const _0x3c61e5=this['editor'],_0x5a2c72=_0x3c61e5['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x3c61e5['locale'],this['annotationViews'])),'commentsArchive'===_0x5a2c72['id']?_0x5a2c72['hide']():_0x5a2c72['show']({'id':'commentsArchive','title':N(_0x3c61e5['locale'],'COMMENTS_ARCHIVE'),'icon':_0x429585,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x30a45d['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x123453,_0x4b2fdb=!0x1){const _0x2ce92a=this['editor']['locale'],_0x2b1311=this['editor']['plugins']['get']('Dialog'),_0x503071=new _0x123453(_0x2ce92a);return _0x503071['bind']('isEnabled')['to'](this,'isEnabled'),_0x503071['bind']('isOn')['to'](_0x2b1311,'id',_0x1af933=>'commentsArchive'===_0x1af933),_0x503071['set']({'label':N(_0x2ce92a,'COMMENTS_ARCHIVE'),'icon':_0x429585,'isToggleable':!0x0}),_0x4b2fdb&&(_0x503071['tooltip']=!0x0),this['listenTo'](_0x503071,'execute',()=>this['_toggleDialog']()),_0x503071;}['_hideDialogOnAnnotationEscape']=_0x246090=>{const _0x3f1506=_0x246090['source'];if(!this['annotationViews']['has'](_0x3f1506['view']))return;const _0x47a86d=this['editor']['plugins']['get']('Dialog');_0x47a86d['isOpen']&&'commentsArchive'===_0x47a86d['id']&&(_0x47a86d['hide'](),_0x246090['stop']());};}class gi extends _0x343473{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{ot 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,vt as CommentThreadController,ie as CommentThreadInputView,gt as CommentThreadView,Tt as CommentView,gi as Comments,p as CommentsArchive,a as CommentsArchiveUI,r as CommentsEditing,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 _0x3b8c1f,ContextPlugin as _0x5769e4,PendingActions as lt,Command as _0x46685b,Plugin as _0x3d233f,Context as _0x18e5c3}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x240a0a,uid as _0x4e4e67,KeystrokeHandler as jt,FocusTracker as _0xeb7998,diff as _0x4a1d9a,Collection as _0x1b1bd5,Rect as _0x4d09a0,CKEditorError as _0x3e31b7,first as _0xa7a780,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x1a9ea6,keyCodes as _0x496e11}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x5d5a77,AriaDescriptionView as Zt,setupThreadKeyboardNavigation as ts,ConfirmMixin as ti,LateFocusButtonView as _0x3069c5,trimHtml as _0x1b6272,LateFocusDropdownButtonView as _0x580750,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x5c46b2}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x1f36ab}from'es-toolkit/compat';import{IconUndo as _0x2ba54b,IconCheck as _0x12eb01,IconPencil as _0x5c527e,IconRemoveComment as _0x3cf87e,IconThreeVerticalDots as _0x500b81,IconAddComment as _0x417cca,IconCommentsArchive as _0x13c696}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as Xt,InlineEditableUIView as $t,EditorUI as Ut,View as kt,FocusCycler as _0x2fb93a,ButtonView as _0x56f2fa,ViewCollection as _0x16b584,createDropdown as _0x2d469d,ListView as _0x406204,focusChildOnDropdownOpen as _0x5714e0,ListItemView as _0xf15eef,MenuBarMenuListItemButtonView as _0xf31b41,BodyCollection as _0x21805a,BalloonPanelView as _0x251547,ContextualBalloon as _0x1d3115,Dialog as _0x30ecf7,DialogViewPosition as _0x3e7464}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as qt,enableViewPlaceholder as St,MouseObserver as _0x30b63e}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 _0x48ecb2}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x156cb0}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
+ _0x240a0a(){['model'];['view'];constructor(_0x134602,_0x284bf5){super(),this['model']=_0x134602,this['model']['_isAttached']=!0x0,this['view']=_0x284bf5,this['listenTo'](_0x284bf5,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x284bf5,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x284bf5,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x284bf5,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x284bf5,'addComment',(_0x38bf0b,_0x1ffee9)=>this['addComment'](_0x1ffee9)),this['listenTo'](_0x284bf5,'updateComment',(_0x28f5f5,_0x1f8eca,_0x55acc6)=>this['updateComment'](_0x1f8eca,_0x55acc6)),this['listenTo'](_0x284bf5,'removeComment',(_0x57759f,_0x2569f7)=>this['removeComment'](_0x2569f7));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x2b7e61){this['model']['addComment']({'content':_0x2b7e61,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x516058,_0x297d5f){this['model']['getComment'](_0x516058)['update']({'content':_0x297d5f});}['removeComment'](_0x333ae0){this['model']['getComment'](_0x333ae0)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x408979,_0x5dc72a,_0x5d924d){const t=_0x408979['t'];switch(_0x5dc72a){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'},_0x5d924d);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'},_0x5d924d);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'},_0x5d924d);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'},_0x5d924d);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x5d924d);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'},_0x5d924d);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'},_0x5d924d);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'},_0x5d924d);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Vt extends Xt{['main'];['editable'];constructor(_0x659fd,_0x574bf6){super(_0x659fd);const _0x7fd8ea=_0x4e4e67();this['main']=this['createCollection'](),this['editable']=new $t(_0x659fd,_0x574bf6,void 0x0,{'label':()=>N(_0x659fd,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x659fd['uiLanguageDirection'],'lang':_0x659fd['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x7fd8ea},'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(_0x3cc467){super(_0x3cc467),this['view']=new Vt(_0x3cc467['locale'],_0x3cc467['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x18501f=this['editor']['editing']['view'],_0x2776a2=this['view']['editable'],_0x186cc8=_0x18501f['document']['getRoot']();_0x2776a2['name']=_0x186cc8['rootName'],this['view']['render']();const _0x3b1368=_0x2776a2['element'];this['setEditableElement'](_0x2776a2['name'],_0x3b1368),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x18501f['attachDomRoot'](_0x3b1368),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[zt,Bt,Et,Gt,Jt,Kt,Lt];class Rt extends/* #__PURE__ -- @preserve */
25
+ _0x240a0a(_0x3b8c1f){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Qt)());constructor(_0xf05c66={}){function _0x3dd676(_0x5bfd2b){return _0x5bfd2b['map'](_0x2285ed=>String['fromCharCode'](_0x2285ed))['join']('');}(_0xf05c66=Object['assign']({},_0xf05c66))['plugins']||(_0xf05c66['plugins']=Rt['defaultPlugins']),super(_0xf05c66),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[_0x3dd676([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3dd676([0x76,0x69,0x65,0x77])][_0x3dd676([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3dd676([0x61,0x75,0x74,0x6f]),this[_0x3dd676([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3dd676([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3dd676([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3dd676([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3dd676([0x6f,0x6b])});}['create'](){const _0x3cca89=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x3cca89))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x46ea2d=>{const _0x237851=this['model']['document']['getRoot'](),_0x4430d3=_0x237851&&_0x237851['getChild'](_0x237851['childCount']-0x1);_0x46ea2d['setSelection'](_0x4430d3,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x1374f8=this['editing']['view'],_0xccd9f3=_0x1374f8['document']['getRoot'](),_0x2d7fef=_0xccd9f3['getChild'](0x0);_0xccd9f3['childCount']>0x1||!_0x2d7fef||'p'!=_0x2d7fef['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(qt(_0x1374f8,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x2d7fef['placeholder']=this['placeholder']),St({'view':_0x1374f8,'element':_0x2d7fef,'keepOnFocus':!0x0}),this['placeholderElement']=_0x2d7fef);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x5ed39b,_0x462f21={}){super(_0x5ed39b),this['editor']=null,this['_editorConfig']=_0x462f21,this['set']('value',_0x462f21['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x5ed39b,'Reply...')),this['set']('submitLabel',N(_0x5ed39b,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0xeb7998(),this['focusCycler']=new _0x2fb93a({'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',(_0x51c15b,_0x4b904f)=>{this['cancelButtonView']['fire']('execute'),_0x4b904f();}),this['keystrokes']['set']('Ctrl+Enter',(_0x25b599,_0x3763fc)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x3763fc());}),this['on']('submit',(_0x442cd8,_0x475c03)=>{_0x475c03['length']>0xfde8?(alert(N(_0x5ed39b,'TOO_LONG_COMMENT_ALERT',[_0x475c03['length'],0xfde8])),_0x442cd8['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Rt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x274441=this['editor'];this['element']['insertBefore'](_0x274441['ui']['element'],this['element']['firstChild']),_0x274441['model']['document']['on']('change',()=>this['value']=_0x274441['getData']()),_0x274441['bind']('placeholder')['to'](this),this['focusables']['add'](_0x274441['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x52a7e7){-0x1===_0x52a7e7?(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:_0x445597}=this,_0x15e925=new _0x56f2fa(_0x445597);return _0x15e925['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x15e925['withText']=!0x0,_0x15e925['bind']('label')['to'](this,'submitLabel'),_0x15e925['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x15e925['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x5b2746,_0x386187)=>!_0x386187&&!!_0x5b2746['trim']()),_0x15e925;}['_createCancelButton'](){const {locale:_0x1de053}=this,_0x16a49a=new _0x56f2fa(_0x1de053);return _0x16a49a['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x16a49a['label']=N(_0x1de053,'Cancel'),_0x16a49a['withText']=!0x0,_0x16a49a['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x16a49a;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x3e283f=>{this['focusTracker']['add'](_0x3e283f['element']);}),this['focusables']['on']('change',(_0x381112,_0x4ae2cd)=>{for(const _0x3b24a2 of Array['from'](_0x4ae2cd['added'])['reverse']())this['focusTracker']['add'](_0x3b24a2['element']);});}}class ie extends kt{constructor(_0x5380a4,_0x4add55,_0x2376fe){super(_0x5380a4),this['commentInputView']=new os(_0x5380a4,_0x2376fe),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x532e97,_0x1be79a)=>_0x532e97||!!_0x1be79a),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 _0x5d5a77(_0x5380a4,_0x4add55),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'](_0x1ddaeb){this['commentInputView']['focus'](_0x1ddaeb);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x1561c3,_0xbf6ef5)=>{const {submitButtonView:_0x110362,cancelButtonView:_0x461087,editor:_0x26b2af}=this['commentInputView'];[_0x110362['element'],_0x461087['element'],_0x26b2af?_0x26b2af['editing']['view']['getDomRoot']():null]['filter'](_0xf18629=>_0xf18629)['some'](_0x4db36e=>_0x4db36e['contains'](_0xbf6ef5['target']))||(this['focus'](),_0xbf6ef5['preventDefault']());});}}class rs extends kt{constructor(_0xc74c7d){super(_0xc74c7d);const _0x8ab2fe=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x8ab2fe['to']('count',_0x515c49=>N(_0xc74c7d,'NUMBER_OF_COMMENTS',_0x515c49))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x5e60ea,_0x22147e,_0x544d2b){super(_0x5e60ea);const _0x4f5630=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x22147e['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x22147e,this['_config']=_0x544d2b,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0xeb7998(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2fb93a({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x29f7a8=>this['commentViews']['map'](_0xd96607=>_0xd96607['element'])['includes'](_0x29f7a8['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x5e60ea),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0xee7be1=>_0xee7be1-this['_config']['maxCommentsWhenCollapsed']);for(const _0x5e17e1 of _0x22147e['comments'])this['_handleNewCommentModel'](_0x5e17e1);this['_handleInfoComment'](),this['listenTo'](_0x22147e['comments'],'add',(_0x1f2fe,_0x3f38f8)=>{const _0x234a15=this['_calculatePosition'](_0x3f38f8);this['length']++,this['_handleNewCommentModel'](_0x3f38f8,_0x234a15),this['refreshVisibleViews']();}),this['listenTo'](_0x22147e['comments'],'remove',(_0x47130a,_0x2c65fe)=>{this['length']--,this['_handleRemoveCommentModel'](_0x2c65fe),this['refreshVisibleViews']();}),this['listenTo'](_0x22147e,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x22147e,'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',_0x4f5630['if']('length','ck-hidden',_0x42c213=>!_0x42c213)],'aria-label':N(_0x5e60ea,'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'](_0x430e26){-0x1===_0x430e26?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x4723f4 of this['commentViews'])_0x4723f4['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x24c3b4,_0x2e6465){const _0x697671=new this['_config']['CommentView'](this['locale'],_0x24c3b4,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x697671['viewUid']=_0x24c3b4['id'],_0x697671['delegate']('removeComment')['to'](this),_0x697671['delegate']('updateComment')['to'](this),_0x697671['delegate']('resolveCommentThread')['to'](this),_0x697671['delegate']('editorReady')['to'](this),_0x697671['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x697671,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x697671,_0x2e6465);}['_calculatePosition'](_0x52d0ce){const _0x1783e8=this['_model']['_findOptimalIndex'](_0x52d0ce);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x52d0ce['authoredAt']?_0x1783e8-0x1:_0x1783e8:_0x1783e8-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x54bbb9={'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'],_0x54bbb9,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x54bbb9));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x39edcb){const _0x3dde39=this['commentViews']['remove'](_0x39edcb['id']);this['stopListening'](_0x3dde39),_0x3dde39['isEditMode']&&this['_updateHasDirtyComment'](),_0x3dde39['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x186c43=>_0x186c43['isEditMode']);}['_rearrangeCollapse'](){const _0x4f8df3=function(_0x2aee0f){const _0x412ba2=new _0x1b1bd5();for(const _0x38f1e7 of _0x2aee0f)_0x412ba2['add'](_0x38f1e7);return _0x412ba2;}(this['commentViews']),_0x3563a8=this['_collapsedCommentsView']['count'];for(let _0x507c3c=0x1;_0x507c3c<=_0x3563a8;_0x507c3c++)_0x4f8df3['remove'](0x1);for(const _0x191dde of _0x4f8df3)_0x191dde['collapse']();_0x3563a8>0x0&&_0x4f8df3['add'](this['_collapsedCommentsView'],0x1),ns(_0x4a1d9a(Array['from'](this['visibleViews']),Array['from'](_0x4f8df3)),this['visibleViews'],_0x4f8df3);}['_rearrangeExpand'](){ns(_0x4a1d9a(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x173c97 of this['visibleViews'])_0x173c97['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x1bcf72=>{this['focusTracker']['add'](_0x1bcf72['element']),this['keystrokes']['listenTo'](_0x1bcf72['element']);}),this['commentViews']['on']('change',(_0x1c8808,_0x84e82)=>{for(const _0xf7189a of _0x84e82['removed'])this['focusTracker']['remove'](_0xf7189a['element']),this['keystrokes']['stopListening'](_0xf7189a['element']);for(const _0x39c2d2 of Array['from'](_0x84e82['added'])['reverse']())this['focusTracker']['add'](_0x39c2d2['element']),this['keystrokes']['listenTo'](_0x39c2d2['element']);});}}function ns(_0x44ffb4,_0x241540,_0x5074cd){let _0x4a4145=0x0;for(const _0x376e19 of _0x44ffb4)switch(_0x376e19){case'insert':_0x241540['add'](_0x5074cd['get'](_0x4a4145),_0x4a4145),_0x4a4145++;break;case'delete':_0x241540['remove'](_0x4a4145);break;case'equal':_0x4a4145++;}}class oe extends kt{constructor(_0x3c1a87){super(_0x3c1a87);const _0x454886=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x454886['to']('contextValue',_0x51a388=>N(_0x3c1a87,'THREAD_CONTEXT_LABEL',_0x51a388)),'tabindex':-0x1},'children':[{'text':_0x454886['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x446176,_0x5debd9){super(_0x446176);const _0x62d8a0=this['bindTemplate'];this['_model']=_0x5debd9,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0xeb7998(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2fb93a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x591c1f=>!!_0x591c1f),this['bind']('contextValue')['to'](this['_model'],'context',_0x5a0c03=>_0x5a0c03&&_0x5a0c03['value']?this['_trimContextValue'](_0x5a0c03['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',_0x62d8a0['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 _0x17fb88=new _0x56f2fa(this['locale']);return _0x17fb88['label']=N(this['locale'],'Reopen'),_0x17fb88['tooltip']=N(this['locale'],'Reopen'),_0x17fb88['icon']=_0x2ba54b,_0x17fb88['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2b3f21=>!_0x2b3f21),_0x17fb88['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x782a30,_0x3d9953)=>_0x782a30&&_0x3d9953),_0x17fb88['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x17fb88;}['_trimContextValue'](_0x5de310){if(_0x5de310['length']<0x96)return _0x5de310;const _0x408890=_0x5de310['lastIndexOf']('\x20',0x93);return _0x5de310['substring'](0x0,_0x408890>-0x1?_0x408890:0x93)+'...';}['_attachContextActions'](){const _0x5587cc=this['element']['querySelector']('.ck-context'),_0x1b831c=_0x5587cc['querySelector']('.ck-context__value');this['listenTo'](_0x5587cc,'mouseenter',()=>{_0x1b831c['offsetWidth']<_0x1b831c['scrollWidth']&&_0x5587cc['classList']['add']('overlay');}),this['listenTo'](_0x5587cc,'mouseleave',()=>{_0x5587cc['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x112add of this['focusables'])this['focusTracker']['add'](_0x112add['element']),this['keystrokes']['listenTo'](_0x112add['element']);}['_createContextView'](){const _0x1cec8c=new oe(this['locale']);return _0x1cec8c['bind']('contextValue')['to'](this),_0x1cec8c;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x1ca89a,_0x56a2f2,_0x177d22,_0x5911c8){super(_0x1ca89a),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x56a2f2,this['_localUser']=_0x177d22,this['_config']=_0x5911c8,this['commentThreadHeaderView']=new Yt(_0x1ca89a,_0x56a2f2),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0x1ca89a,N(_0x1ca89a,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x1ca89a,_0x56a2f2,Object['assign']({'CommentView':this['_config']['CommentView']},_0x5911c8)),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',(_0x33e5f3,_0x33b9f3)=>_0x33e5f3||!!_0x33b9f3),this['bind']('isUnlinked')['to'](_0x56a2f2,'unlinkedAt',_0x4c0696=>!!_0x4c0696),this['bind']('ariaLabel')['to'](this,'length',_0x531c7b=>{const _0x328586=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x531c7b,_0x328586]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0xeb7998(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2fb93a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x58250f=>_0x58250f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),ts(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x4f7dc8=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x33819b=_0x4f7dc8['commentInputView'];return _0x4f7dc8['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x33819b,'value',(_0x52eef4,_0x578cdb,_0x5938a3,_0x2c86b6,_0x46aaee)=>!!_0x46aaee||!!_0x2c86b6&&_0x5938a3&&!_0x578cdb||_0x52eef4&&_0x5938a3&&!_0x578cdb),_0x33819b['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4df7f7,_0x27afdd,_0x11b3b4)=>{let _0x20accb;return _0x20accb=_0x11b3b4&&_0x27afdd?'Reply\x20to\x20reopen\x20discussion...':_0x4df7f7?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x20accb);}),_0x33819b['bind']('submitLabel')['to'](this,'length',_0x589ac7=>N(this['locale'],_0x589ac7?'Reply':'Comment')),_0x33819b['on']('submit',(_0x1113ce,_0x1c5883)=>{this['fire']('addComment',_0x1c5883),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x33819b['on']('cancel',()=>{this['focus']();}),_0x33819b['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x33819b['on']('cancel',_0x434e86=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x434e86['stop']());}),this['on']('change:isActive',(_0x4038f4,_0x3ffd60,_0x292520)=>{_0x292520||this['length']||_0x33819b['value']||this['fire']('removeCommentThread');}),_0x4f7dc8;}}class gt extends/* #__PURE__ -- @preserve */
27
+ ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x1ad213,_0x385032,_0x56d3a5,_0x4049f7){super(_0x1ad213,_0x385032,_0x56d3a5,_0x4049f7),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x1ad213,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x3191a0,_0x1f2109,_0x402da3)=>{_0x402da3||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x516793,_0x32d4b6,_0xa659f4)=>{_0xa659f4&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x35c722=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x35c722['if']('isActive','ck-thread--active'),_0x35c722['if']('isUnlinked','ck-thread--unlinked'),_0x35c722['if']('isConfirm','ck-thread--remove-confirmation'),_0x35c722['to']('actionIndicator',_0x5be9b0=>_0x5be9b0?'ck-thread--'+_0x5be9b0:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x35c722['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 _0xfb741d of this['commentsListView']['commentViews'])_0xfb741d['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0xca141b}=this,_0x5bef04=this['commentsListView']['commentViews']['get'](0x0);_0x5bef04===this['_boundFirstCommentView']||_0x5bef04['isSystemComment']||(this['_boundFirstCommentView']=_0x5bef04,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x5bef04,'actionIndicator',_0x169a70=>'remove'===_0x169a70?'remove':null),_0x5bef04['placeholder']=N(_0xca141b,'Write\x20a\x20comment...'),_0x5bef04['removeButton']['on']('execute',_0x2ab031=>{_0x2ab031['stop'](),this['showConfirm'](N(_0xca141b,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x5bef04['focus']();}),_0x5bef04['actionBar']['add'](this['resolveButton'],0x0),_0x5bef04['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x2a50db=new _0x3069c5(this['locale']);return _0x2a50db['label']=N(this['locale'],'Resolve'),_0x2a50db['tooltip']=N(this['locale'],'Resolve'),_0x2a50db['icon']=_0x12eb01,_0x2a50db['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x2a50db['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xa040d2=>!_0xa040d2),_0x2a50db['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x19b0af,_0x3bba22)=>_0x19b0af&&!_0x3bba22),_0x2a50db['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x2a50db;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class es extends kt{constructor(_0x2a86cf){super(_0x2a86cf),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x4e30b3,_0x4bf516,_0x25afa3)=>{this['element']['innerHTML']=_0x25afa3;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5a3ac7,_0x549d0b,_0xa4540d){super(_0x5a3ac7),this['_model']=_0x549d0b,this['_config']=_0xa4540d,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x549d0b,'content',_0x549d0b,'authoredAt',(_0x37ec8a,_0x47072c)=>N(_0x5a3ac7,'COMMENT_ARIA_LABEL',[_0x549d0b['author']['name'],_0xa4540d['formatDateTime'](_0x47072c),new DOMParser()['parseFromString'](_0x37ec8a,'text/html')['body']['textContent'],_0x549d0b['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Zt(_0x5a3ac7,N(_0x5a3ac7,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x16b584(),this['focusTracker']=new _0xeb7998(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2fb93a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x41b867=>_0x41b867['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 _0x50646e=new es(this['locale']);return _0x50646e['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x5042cc,_0xea159c)=>_0xea159c?_0x1b6272(_0x5042cc,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x5042cc),_0x50646e;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x299979=new os(this['locale'],this['_config']['editorConfig']);return _0x299979['value']=this['_model']['content'],_0x299979['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x299979['submitLabel']=N(this['locale'],'Save'),_0x299979['on']('submit',(_0x54cdf0,_0x121c5c)=>{this['fire']('updateComment',this['_model']['id'],_0x121c5c),this['switchToDisplayMode'](),this['focus']();}),_0x299979['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x299979['once']('editorReady',()=>{_0x299979['focus']();}),_0x299979['createEditor'](),_0x299979['delegate']('editorReady')['to'](this),_0x299979['delegate']('editorDestroyed')['to'](this),_0x299979;}['_setupKeyboardNavigation'](){const _0x434122=this['element'];this['keystrokes']['listenTo'](_0x434122);for(const _0x40283d of this['focusables'])this['focusTracker']['add'](_0x40283d['element']),this['keystrokes']['listenTo'](_0x40283d['element']);this['focusables']['on']('change',(_0x14dc16,_0xde3966)=>{for(const _0x36e29b of _0xde3966['removed'])this['focusTracker']['remove'](_0x36e29b['element']),this['keystrokes']['stopListening'](_0x36e29b['element']);for(const _0x47308d of _0xde3966['added'])this['focusTracker']['add'](_0x47308d['element']),this['keystrokes']['listenTo'](_0x47308d['element']);}),this['keystrokes']['set']('enter',(_0x5d53fc,_0x3779a4)=>{_0x434122===_0x5d53fc['target']&&(this['focusCycler']['focusFirst'](),_0x3779a4());}),this['keystrokes']['set']('esc',(_0x648af6,_0xe00f9)=>{_0x434122!==_0x648af6['target']&&(this['focus'](),_0xe00f9());});}}class Tt extends/* #__PURE__ -- @preserve */
28
+ ti(di){['actionBar'];['userView'];constructor(_0x1e8c6a,_0x31a640,_0x89f712){super(_0x1e8c6a,_0x31a640,_0x89f712),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x1e8c6a,'Reply...')),this['bind']('authoredAt')['to'](_0x31a640),this['bind']('resolvedAt')['to'](_0x31a640),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 _0x5d5a77(_0x1e8c6a,_0x31a640['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x31a640,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x23b0b8=this['bindTemplate'],_0x37d9ac=[{'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':_0x23b0b8['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x23b0b8['to']('authoredAt',_0x4dd8b8=>this['_config']['formatDateTime'](_0x4dd8b8))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x23b0b8['if']('isEditMode','ck-comment__actions--hidden'),_0x23b0b8['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']&&_0x37d9ac['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x23b0b8['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x23b0b8['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x23b0b8['if']('isEditMode','ck-comment--edit'),_0x23b0b8['if']('isSystemComment','ck-comment--info'),_0x23b0b8['to']('actionIndicator',_0x4d31ec=>_0x4d31ec?'ck-comment--'+_0x4d31ec:'')],'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':_0x37d9ac}]}]};}['_createEditButton'](){const _0x49a8dc=new _0x56f2fa(this['locale']);return _0x49a8dc['label']=N(this['locale'],'Edit'),_0x49a8dc['icon']=_0x5c527e,_0x49a8dc['withText']=!0x0,_0x49a8dc['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x49a8dc['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x30b7cd=>!_0x30b7cd),_0x49a8dc['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x49a8dc['on']('execute',()=>this['switchToEditMode']()),_0x49a8dc;}['_createRemoveButton'](){const _0x177319=new _0x56f2fa(this['locale']);return _0x177319['label']=N(this['locale'],'Remove'),_0x177319['icon']=_0x3cf87e,_0x177319['withText']=!0x0,_0x177319['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x177319['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x49c616=>!_0x49c616),_0x177319['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x177319['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x177319;}['_createDropdown'](){const _0x1d3409=_0x2d469d(this['locale'],_0x580750),_0x417c6d=_0x1d3409['panelView']['children'],_0x3d724f=new _0x406204(this['locale']),_0x4fdf21=_0x1d3409['bindTemplate'];_0x5714e0(_0x1d3409,()=>this['items']['find'](_0x36a20f=>_0x36a20f['isVisible'])),_0x1d3409['extendTemplate']({'attributes':{'class':[_0x4fdf21['if']('isVisible','ck-hidden',_0x1e41aa=>!_0x1e41aa)]}});const _0x3b2a90=(_0x149c16,_0x1f7cda=-0x1)=>{const _0x507bb2=new _0xf15eef(this['locale']);_0x507bb2['children']['add'](_0x149c16);const _0x2bf42e=_0x1f7cda>-0x1?_0x1f7cda:_0x3d724f['items']['length'];_0x3d724f['items']['add'](_0x507bb2,_0x2bf42e);const _0x17b03a=Array['from'](this['items']);_0x1d3409['unbind']('isEnabled','isVisible'),_0x1d3409['bind']('isEnabled')['toMany'](_0x17b03a,'isEnabled',(..._0x5469e7)=>_0x5469e7['some'](_0x4f7233=>_0x4f7233)),_0x1d3409['bind']('isVisible')['toMany'](_0x17b03a,'isVisible',(..._0x136a52)=>_0x136a52['some'](_0x29e96e=>_0x29e96e));};_0x1d3409['panelPosition']='sw',_0x1d3409['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x500b81});for(const _0x27f6a9 of this['items'])_0x3b2a90(_0x27f6a9);return _0x417c6d['add'](_0x3d724f),_0x1d3409['listenTo'](this['items'],'add',(_0x1c380d,_0x617c9b,_0x561f9d)=>{_0x3b2a90(_0x617c9b,_0x561f9d);}),_0x1d3409['listenTo'](this['items'],'remove',(_0x4243f0,_0x1207c1,_0x33f5b9)=>{_0x3d724f['items']['remove'](_0x33f5b9);}),_0x1d3409;}['_attachActions'](_0x2f92bd,_0x44896f){const _0x6795db=_0x2f92bd&&_0x2f92bd['element'];_0x6795db&&(this['listenTo'](_0x6795db,'mouseenter',()=>this['actionIndicator']=_0x44896f),this['listenTo'](_0x6795db,'focus',()=>this['actionIndicator']=_0x44896f),this['listenTo'](_0x6795db,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x6795db,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x434c98=super['_createCommentInputView']();return _0x434c98['bind']('placeholder')['to'](this),_0x434c98;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x326b1d){const _0x1fd68d=Dt(_0x326b1d,0x1e),_0x15f037=new MutationObserver(_0x40f368=>{for(const _0x4d1e9c of _0x40f368)('attributes'==_0x4d1e9c['type']&&'class'==_0x4d1e9c['attributeName']||'childList'==_0x4d1e9c['type']||'characterData'==_0x4d1e9c['type'])&&_0x1fd68d();});return{'attach'(_0x5f0041){_0x15f037['observe'](_0x5f0041,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x15f037['disconnect'](),_0x1fd68d['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x3ad44b,_0x2234c9){super(_0x3ad44b),this['id']=_0x4e4e67(),this['focusTracker']=new _0xeb7998(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0xe07ba8,_0xdf2dc4)=>this['fire']('Esc',_0xdf2dc4)),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'](_0x2234c9),this['mainView']=_0x2234c9;const _0x4224e9=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x4224e9['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 _0x187411=this['element']['clientHeight'];_0x187411&&(this['height']=_0x187411);}}class T extends/* #__PURE__ -- @preserve */
29
+ _0x240a0a(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x231bed,target:_0x16162c,type:_0x478cf6,isVisible:_0x5b79b2=!0x0}){super(),this['view']=_0x231bed,this['view']['element']||this['view']['render'](),this['_type']=_0x478cf6,this['_target']=_0x16162c,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x1b1bd5([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x225c3a,_0x4ebf21)=>{this['view']['focusTracker']['add'](_0x4ebf21);}),this['focusableElements']['on']('remove',(_0x4a6c49,_0x4244be)=>{this['view']['focusTracker']['remove'](_0x4244be);}),this['set']('isVisible',_0x5b79b2);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x57b684=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x57b684),_0x57b684;}get['targetRect'](){const _0x1fd539=this['target'];if(null===_0x1fd539)return null;if(_0x1fd539 instanceof _0x4d09a0)return _0x1fd539;const _0x75d601=_0x1fd539['filter'](_0x10f496=>function(_0x206500){const _0x117c87=_0x206500['offsetParent'];if(_0x117c87)return!0x0;const _0x255d87=_0x206500['getClientRects']()['item'](0x0);return!!_0x255d87;}(_0x10f496));return 0x0===_0x75d601['length']?null:new _0x4d09a0(_0x75d601[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x9ec5b0){this['view']['isActive']=_0x9ec5b0,this['view']['mainView']['isActive']=_0x9ec5b0;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x36b8af){if(!(null===_0x36b8af||_0x36b8af instanceof _0x4d09a0||Array['isArray'](_0x36b8af)&&_0x36b8af['every'](_0x498dc9=>fi(_0x498dc9))))throw new _0x3e31b7('annotation-invalid-target',null,{'target':_0x36b8af});}['_getNormalizedTarget'](){const _0x14e38b='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x14e38b)?[_0x14e38b]:_0x14e38b;}}function fi(_0x32a96d){return null!==_0x32a96d&&'object'==typeof _0x32a96d&&'nodeType'in _0x32a96d&&0x1===_0x32a96d['nodeType'];}class S extends _0x1b1bd5{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x23966a=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0xeb7998(),this['_focusTracker']['on']('change:isFocused',(_0x141804,_0x487655,_0x2fa4eb)=>{_0x2fa4eb||this['fire']('blur');});for(const _0x585133 of _0x23966a)this['add'](_0x585133);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x162337){if(this['has'](_0x162337))throw new _0x3e31b7('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x162337['innerView'],_0x162337),this['_viewToAnnotation']['set'](_0x162337['view'],_0x162337);for(const _0xa5fca5 of _0x162337['focusableElements'])this['_focusTracker']['add'](_0xa5fca5);this['listenTo'](_0x162337['focusableElements'],'add',(_0x96e666,_0x457860)=>{this['_focusTracker']['add'](_0x457860);}),this['listenTo'](_0x162337['focusableElements'],'remove',(_0x450981,_0x1570a6)=>{this['_focusTracker']['remove'](_0x1570a6);}),this['listenTo'](_0x162337['view']['focusTracker'],'change:isFocused',(_0x159de5,_0x27719f,_0x1662c5)=>{_0x1662c5&&this['fire']('focus',_0x162337);}),_0x162337['updateTargetRect']();const _0x1c3ad0=this['_getOrderInContent'](_0x162337['view']['targetRect']);return super['add'](_0x162337,_0x1c3ad0);}['remove'](_0x279690){if(!this['has'](_0x279690))throw new _0x3e31b7('annotationcollection-not-existing-item',null);this['stopListening'](_0x279690['view']['focusTracker']),this['stopListening'](_0x279690['focusableElements']);for(const _0x4353bb of _0x279690['focusableElements'])this['_focusTracker']['remove'](_0x4353bb);return this['_viewToAnnotation']['delete'](_0x279690['view']),this['_innerViewToAnnotation']['delete'](_0x279690['innerView']),super['remove'](_0x279690);}['getByInnerView'](_0x4b1965){return this['_innerViewToAnnotation']['get'](_0x4b1965);}['getByView'](_0x4d423c){return this['_viewToAnnotation']['get'](_0x4d423c);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x1718f7 of this)_0x1718f7['updateTargetRect']();this['_sort']();}['_sort'](){const _0xf5a083=Array['from'](this)['sort']((_0xfc7cc4,_0x39e650)=>w(_0xfc7cc4['view']['targetRect'],_0x39e650['view']['targetRect']));for(let _0x240438=_0xf5a083['length']-0x1;_0x240438>0x0;_0x240438--){const _0x17340c=_0xf5a083[_0x240438];_0x240438!==this['getIndex'](_0x17340c)&&(this['remove'](_0x17340c),this['add'](_0x17340c));}}['_getOrderInContent'](_0x20dbe2){let _0x29d02a=0x0;if(!_0x20dbe2)return this['length'];for(const _0x300252 of this){const _0x33e464=_0x300252['view']['targetRect'];if(_0x33e464){if(w(_0x20dbe2,_0x33e464)<0x0)return _0x29d02a;_0x29d02a++;}}return _0x29d02a;}}function v({source:_0x40126b,target:_0x2803b0,filter:_0x2c53e6}){for(const _0x3dabf9 of _0x40126b)_0x2c53e6(_0x3dabf9)&&_0x2803b0['add'](_0x3dabf9);_0x2803b0['listenTo'](_0x40126b,'add',(_0x51d31a,_0x366ec8)=>{_0x2c53e6(_0x366ec8)&&_0x2803b0['add'](_0x366ec8);}),_0x2803b0['listenTo'](_0x40126b,'remove',(_0x1f2f4f,_0x7cc647)=>{_0x2803b0['has'](_0x7cc647)&&_0x2803b0['remove'](_0x7cc647);});}function w(_0x32452c,_0x4f4dd7){if(null===_0x32452c&&null===_0x4f4dd7)return 0x0;if(null===_0x32452c)return-0x1;if(null===_0x4f4dd7)return 0x1;const _0x43c140=_0x32452c['top']-_0x4f4dd7['top'];return 0x0==_0x43c140?_0x32452c['left']-_0x4f4dd7['left']:_0x43c140;}class y extends _0x5769e4{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x76a85d){if(super(_0x76a85d),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x76a85d instanceof _0x3b8c1f){const _0x5e0cac=_0x76a85d['locale'];_0x76a85d['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x5e0cac,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x5e0cac,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x5e0cac,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x5e0cac,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x5e0cac,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x5e0cac,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x5e0cac,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x3300e5){this['collection']['add'](_0x3300e5);}['remove'](_0x5a4c89){this['collection']['remove'](_0x5a4c89),_0x5a4c89['destroy']();}['refreshVisibility'](){for(const _0x4d81d5 of this['collection'])_0x4d81d5['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x27b457){return this['collection']['getByInnerView'](_0x27b457);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x1d0b3f of this['collection'])_0x1d0b3f['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x5b9ee1){this['fire']('_activateAnnotation',_0x5b9ee1);}['createAnnotation'](_0xbe7405){return new T(_0xbe7405);}['createAnnotationView'](_0x1444da,_0x38a2cc){return new E(_0x1444da,_0x38a2cc);}['_addActiveAnnotation'](_0x47401a){const _0xf527cd=new Set(this['activeAnnotations']);_0xf527cd['add'](_0x47401a),this['activeAnnotations']=_0xf527cd;}['_removeActiveAnnotation'](_0xfc47c6){const _0x5198e5=new Set(this['activeAnnotations']);_0x5198e5['delete'](_0xfc47c6),this['activeAnnotations']=_0x5198e5;}['_bindAnnotationsToVisibleAnnotations'](){const _0x5af278=this['collection'],_0xb392a7=this['_visibleAnnotations'];function _0x38dd48(_0x3e1288){const _0xff385a=_0x3e1288['source'];_0xff385a['isVisible']&&!_0xb392a7['has'](_0xff385a)?_0xb392a7['add'](_0xff385a):!_0xff385a['isVisible']&&_0xb392a7['has'](_0xff385a)&&_0xb392a7['remove'](_0xff385a),_0xff385a['view']['focusTracker']['remove'](_0xff385a['view']['element']),_0xff385a['view']['focusTracker']['add'](_0xff385a['view']['element']);}this['listenTo'](_0x5af278,'add',(_0x4441d8,_0x763bf8)=>{_0x763bf8['isVisible']&&_0xb392a7['add'](_0x763bf8),this['listenTo'](_0x763bf8,'change:isVisible',_0x38dd48);}),this['listenTo'](_0x5af278,'remove',(_0x3ef44f,_0x3db0dd)=>{_0xb392a7['has'](_0x3db0dd)&&_0xb392a7['remove'](_0x3db0dd),this['stopListening'](_0x3db0dd,'change:isVisible',_0x38dd48);});}['_setupEnterAnnotationKeystroke'](){const _0x17f737=_0x1641f6=>{_0x1641f6['on']('ready',()=>{_0x1641f6['keystrokes']['set'](_0x48ecb2,(_0x1a8ecc,_0x5e2710)=>{const _0x2f9784=_0xa7a780(this['activeAnnotations']['values']());_0x2f9784&&(_0x2f9784['view']['focus'](),_0x5e2710());});});};this['context']instanceof _0x3b8c1f?_0x17f737(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x7a5222,_0x1dcdc5)=>{_0x17f737(_0x1dcdc5);});}['_setupEscapeAnnotationHandling'](){const _0x35585b=_0x4a4d8a=>{const _0x307c93=_0x4a4d8a['source'],_0x5875f5=[];let _0x3431f2;if(Array['isArray'](_0x307c93['target'])){_0x3431f2=_0x307c93['target'][0x0],this['context']instanceof _0x3b8c1f?_0x5875f5['push'](this['context']):this['context']['editors']&&_0x5875f5['push'](...this['context']['editors']);for(const _0x263375 of _0x5875f5)for(const _0x58d79a of _0x263375['editing']['view']['domRoots']['values']())if(_0x58d79a['contains'](_0x3431f2))return void _0x263375['editing']['view']['focus']();_0x3431f2['focus']();}};this['listenTo'](this['collection'],'add',(_0x59b940,_0x40786a)=>{this['listenTo'](_0x40786a,'escape',_0x35585b,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x1e66c0,_0x5c7fa4)=>{this['stopListening'](_0x5c7fa4,'escape',_0x35585b);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x5769e4{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[y,lt,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2354cf){super(_0x2354cf),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x1142cf=this['context']['config'];_0x1142cf['define']('comments.maxCommentsWhenCollapsed',0x2),_0x1142cf['define']('comments.maxThreadTotalWeight',0x1f4),_0x1142cf['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x1142cf['define']('comments.CommentThreadView',gt),_0x1142cf['define']('comments.CommentView',Tt),_0x1142cf['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x3be396=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x1cc69f,_0x124daa)=>this['_addCommentThread'](_0x124daa)),this['on']('submitCommentThread',(_0x2bda4b,_0x1106a9)=>this['_submitCommentThread'](_0x1106a9)),this['on']('resolveCommentThread',(_0xa9d0d,_0x12505b)=>this['_resolveCommentThread'](_0x12505b)),this['on']('resolveCommentThread',(_0x4ceb2b,_0xf28e14)=>this['_updateActiveAnnotation'](_0xf28e14),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x5ac771,_0x10c926)=>this['_reopenCommentThread'](_0x10c926)),this['on']('reopenCommentThread',(_0x3c4fc2,_0x23558b)=>this['_updateActiveAnnotation'](_0x23558b),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x47b7a1,_0x171d9c)=>this['_removeCommentThread'](_0x171d9c)),this['on']('updateCommentThread',(_0x1379ff,_0x1c3fef)=>this['_updateCommentThread'](_0x1c3fef)),this['on']('updateCommentThread',(_0x508023,_0x17484e)=>this['_updateActiveAnnotation'](_0x17484e),{'priority':'lowest'}),this['on']('addComment',(_0x32aefe,_0x2152cd)=>this['_addComment'](_0x2152cd)),this['on']('updateComment',(_0x4bc1da,_0x278b7e)=>this['_updateComment'](_0x278b7e)),this['on']('removeComment',(_0x1f4c57,_0x9827ea)=>this['_removeComment'](_0x9827ea)),this['on']('addComment',(_0x5bf288,{threadId:_0x25cd0f,isFromAdapter:_0xae1e83})=>{if(_0xae1e83)return;const _0x53218f=this['getCommentThread'](_0x25cd0f),_0x11f776=_0x53218f&&this['_threadToController']['get'](_0x53218f);_0x11f776&&_0x11f776['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x3be396,'change:activeAnnotations',(_0x4529f8,_0x5b3b8d,_0x167a3f)=>{const _0xc46b81=Array['from'](_0x167a3f)['map'](_0x208f7b=>this['_viewToController']['get'](_0x208f7b['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0xc46b81?_0xc46b81['model']:null;});}set['adapter'](_0x510e5c){if(this['_adapter'])throw new _0x3e31b7('commentsrepository-adapter-already-set');this['_adapter']=_0x510e5c;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x51060f=_t,threadId:_0x26c744=_0x4e4e67(),comments:_0x3c666b=[],unlinkedAt:_0x56bec1=null,resolvedAt:_0x59ae82=null,resolvedBy:_0x43dd9d=null,target:_0x4e7176=null,context:_0x1eb3b1=null,attributes:_0x3ef044={},isResolvable:_0x1f5ca4=!0x0,isSubmitted:_0x3ee63d=!0x1,isFromAdapter:_0x1807dc=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x51060f),{'channelId':_0x51060f,'threadId':_0x26c744,'comments':_0x3c666b,'unlinkedAt':_0x56bec1,'resolvedAt':_0x59ae82,'resolvedBy':_0x43dd9d,'target':_0x4e7176,'context':_0x1eb3b1,'attributes':_0x3ef044,'isFromAdapter':_0x1807dc,'isResolvable':_0x1f5ca4,'isSubmitted':_0x3ee63d}),this['getCommentThread'](_0x26c744);}['openNewCommentThread']({channelId:_0x3aadd6=_t,threadId:_0x3c5605=_0x4e4e67(),target:_0x527afc,context:_0x4ae6d0=null,isResolvable:_0x2fcd94=!0x0}){if(this['_readOnlyChannels']['has'](_0x3aadd6)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x527afc)throw new _0x3e31b7('commentsrepository-missing-target');const _0x441eed=this['addCommentThread']({'channelId':_0x3aadd6,'threadId':_0x3c5605,'target':_0x527afc,'context':_0x4ae6d0,'isResolvable':_0x2fcd94});if(!_0x441eed)return null;const _0x1ebef8=this['_threadToController']['get'](_0x441eed),_0x2cfa85=_0x1ebef8['view']['commentThreadInputView']['commentInputView'],_0xd0fe22=this['context']['plugins']['get'](y),_0x1de9a6=_0xd0fe22['getByInnerView'](_0x1ebef8['view']);return _0xd0fe22['activate'](_0x1de9a6),_0x2cfa85['once']('editorReady',()=>_0x2cfa85['focus']()),_0x441eed;}['hasCommentThread'](_0x241eb9){if('string'!=typeof _0x241eb9)throw new _0x3e31b7('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x241eb9);}['updateCommentThread']({channelId:_0x3bcda1=_t,threadId:_0x575dab,context:_0x31fac9,unlinkedAt:_0x412e88,attributes:_0x51a7b6,isFromAdapter:_0x3c617d=!0x1}){return this['fire'](Nt('updateCommentThread',_0x3bcda1),{'channelId':_0x3bcda1,'threadId':_0x575dab,'context':_0x31fac9,'unlinkedAt':_0x412e88,'attributes':_0x51a7b6,'isFromAdapter':_0x3c617d}),this['getCommentThread'](_0x575dab);}['getCommentThread'](_0x53bef8){if('string'!=typeof _0x53bef8)throw new _0x3e31b7('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x53bef8);}['fetchCommentThread']({channelId:_0x23e2e0,threadId:_0x4d7036}={}){const _0x323589=this['getCommentThread'](_0x4d7036);if(_0x323589)return Promise['resolve'](_0x323589);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x3e31b7('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x23e2e0,'threadId':_0x4d7036})['then'](_0x206fa0=>this['hasCommentThread'](_0x4d7036)?this['getCommentThread'](_0x4d7036):_0x206fa0?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x23e2e0},_0x206fa0)):void 0x0)['catch'](_0x37d3e9=>{throw console['error'](_0x37d3e9),new _0x3e31b7('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x9951ac,skipNotAttached:_0x12d15f=!0x1,skipEmpty:_0x210baa=!0x1,toJSON:_0x292305=!0x1}={}){const _0x3212ed=[];for(const _0x408f94 of this['_threads']['values']())_0x9951ac&&_0x408f94['channelId']!==_0x9951ac||_0x12d15f&&!_0x408f94['isAttached']||_0x210baa&&0x0===_0x408f94['length']||_0x3212ed['push'](_0x408f94);return _0x292305?_0x3212ed['map'](_0x29fc4b=>_0x29fc4b['toJSON']()):_0x3212ed;}['getAnnotationForCommentThread'](_0x3e9518){const _0xcd40a4=this['_threadToController']['get'](_0x3e9518);if(!_0xcd40a4)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0xcd40a4['view'])||null;}['getCommentThreadForAnnotation'](_0x2c99ee){const _0x5dfbda=this['_viewToController']['get'](_0x2c99ee['innerView']);return _0x5dfbda?_0x5dfbda['model']:null;}['setActiveCommentThread'](_0x30a56a){const _0x1641aa=this['context']['plugins']['get'](y);if(!_0x30a56a)return void(this['activeCommentThread']&&_0x1641aa['deactivateAll']());const _0x254571=this['getCommentThread'](_0x30a56a);if(!_0x254571)throw new _0x3e31b7('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x30a56a});if(!this['_threadToController']['has'](_0x254571))throw new _0x3e31b7('commentsrepository-active-not-attached',null,{'threadId':_0x30a56a});const _0x153360=_0x1641aa['getByInnerView'](this['_threadToController']['get'](_0x254571)['view']);_0x1641aa['activate'](_0x153360);}['switchReadOnly'](_0x4f74e7,_0x48f74e){_0x4f74e7?this['_readOnlyChannels']['add'](_0x48f74e):this['_readOnlyChannels']['delete'](_0x48f74e),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x76db19){return this['_readOnlyChannels']['has'](_0x76db19)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x4c7249,_0x42b92c){return new vt(_0x4c7249,_0x42b92c);}['setPermissions'](_0x24a330,_0x1404f6=_t){this['_permissions']['set'](_0x1404f6,_0x24a330),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x109242=_t){return this['_permissions']['has'](_0x109242)?this['_permissions']['get'](_0x109242):bt;}['_addCommentThread']({channelId:_0x4d66dd,threadId:_0x548a81,comments:_0x424ca0,unlinkedAt:_0x57959b,resolvedAt:_0x46cd62,resolvedBy:_0x521c50,target:_0x241876,context:_0x58ae1,attributes:_0x2958cd,isFromAdapter:_0x20e506,isResolvable:_0x4a7ea5,isSubmitted:_0x427a60}){if('string'!=typeof _0x548a81)throw new _0x3e31b7('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x548a81});if(this['hasCommentThread'](_0x548a81))throw new _0x3e31b7('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x548a81});const _0xd077e1=new pi(this,{'channelId':_0x4d66dd,'id':_0x548a81,'context':_0x58ae1,'attributes':_0x2958cd,'unlinkedAt':_0x57959b,'resolvedAt':_0x46cd62,'resolvedBy':_0x521c50?this['context']['plugins']['get'](it)['getUser'](_0x521c50):null,'isResolvable':_0x4a7ea5,'isSubmitted':_0x427a60||_0x20e506});this['_threads']['set'](_0x548a81,_0xd077e1);for(const _0x44e7c2 of _0x424ca0)_0xd077e1['_add'](this['_createNewComment']({'threadId':_0x548a81,..._0x44e7c2}));return _0x241876&&_0xd077e1['attachTo'](_0x241876),_0x20e506||!_0xd077e1['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x4d66dd,'threadId':_0x548a81});}['_submitCommentThread']({channelId:_0x27bef3,threadId:_0x4cc189}){if(!this['hasCommentThread'](_0x4cc189))throw new _0x3e31b7('commentsrepository-missing-comment-thread',this);const _0x21a6e4=this['getCommentThread'](_0x4cc189);if(_0x21a6e4['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x5c45f4,comments:_0x27c625,resolvedAt:_0xd00e7f,resolvedBy:_0x23de1c,context:_0x31c4ad,attributes:_0x17d356}=_0x21a6e4,_0x580537=this['context']['plugins']['get']('PendingActions'),_0x3abbea=_0x580537['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x27bef3,'threadId':_0x5c45f4,'comments':_0x27c625['map'](_0x7f4a7=>_0x7f4a7['toJSON']()),'resolvedAt':_0xd00e7f,'resolvedBy':_0x23de1c?_0x23de1c['id']:_0x23de1c,'context':_0x31c4ad,'attributes':_0x17d356})['then'](({comments:_0x1782e1})=>{_0x580537['remove'](_0x3abbea);for(const _0xb227c4 of _0x1782e1)this['_updateComment']({'channelId':_0x27bef3,'threadId':_0x4cc189,'commentId':_0xb227c4['commentId'],'createdAt':_0xb227c4['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x37fd90=>{throw console['error'](_0x37fd90),new _0x3e31b7('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x5acb9c,target:_0x459855}){const _0xcf9e20=this['getCommentThread'](_0x5acb9c);if(!_0xcf9e20)throw new _0x3e31b7('commentsrepository-attach-missing-comment-thread',this);const _0x296856=this['context']['plugins']['get']('PendingActions'),_0x33ef05=this['context']['plugins']['get'](y),_0x4a4147=this['_createCommentThreadView'](_0xcf9e20),_0x24dd93=new vt(_0xcf9e20,_0x4a4147);let _0x298683=null;_0x4a4147['on']('change:isDirty',(_0x50fef5,_0x3f5e55,_0x20d012)=>{_0x20d012?_0x298683=_0x296856['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x298683&&(_0x296856['remove'](_0x298683),_0x298683=null);}),this['_threadToController']['set'](_0xcf9e20,_0x24dd93),this['_viewToController']['set'](_0x4a4147,_0x24dd93);const _0x2d9d51=new E(this['context']['locale'],_0x4a4147);_0x2d9d51['bind']('length')['to'](_0x4a4147),_0x2d9d51['bind']('isDirty')['to'](_0x4a4147,'isDirty',_0x4a4147,'length',(_0x456a2c,_0x5a89f0)=>_0x456a2c||!_0x5a89f0),_0x2d9d51['bind']('isActive')['to'](_0x4a4147),_0x2d9d51['type']='comment';const _0x166d6c=new T({'view':_0x2d9d51,'target':_0x459855,'type':'comment','isVisible':!_0xcf9e20['archivedAt']&&!!('function'==typeof _0x459855?_0x459855():_0x459855)});return _0x4a4147['on']('escape',()=>{_0x166d6c['fire']('escape');}),this['_bindAnnotationToEditors'](_0x4a4147,_0x166d6c),_0x33ef05['add'](_0x166d6c),_0x166d6c;}['_bindAnnotationToEditors'](_0xd2791c,_0xc4068a){this['listenTo'](_0xd2791c,'editorReady',(_0x5311c8,_0x5095ba)=>{const _0x4df4f3=_0x5095ba['ui']['view']['body']['bodyCollectionContainer'];_0xc4068a['focusableElements']['add'](_0x4df4f3),this['context']instanceof _0x3b8c1f&&this['context']['ui']['focusTracker']['add'](_0x4df4f3);},{'priority':'highest'}),this['listenTo'](_0xd2791c,'editorDestroyed',(_0x548650,_0x473119)=>{const _0x5d2957=_0x473119['ui']['view']['body']['bodyCollectionContainer'];_0xc4068a['focusableElements']['has'](_0x5d2957)&&_0xc4068a['focusableElements']['remove'](_0x5d2957),this['context']instanceof _0x3b8c1f&&this['context']['ui']['focusTracker']['remove'](_0x5d2957);});}['_unbindEditors'](_0x1ec96a){this['stopListening'](_0x1ec96a,'editorReady'),this['stopListening'](_0x1ec96a,'editorDestroyed');}['_createCommentThreadView'](_0x44ea23){const _0x35b24b=this['context']['plugins']['get'](it),{config:_0x22a77b,locale:_0x3df030}=this['context'],_0xaaa8a=pt(_0x22a77b['get']('locale'),_0x3df030);return new(0x0,(_0x22a77b['get']('comments'))['CommentThreadView'])(_0x3df030,_0x44ea23,_0x35b24b['me'],{'editorConfig':{..._0x22a77b['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x22a77b['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x22a77b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x22a77b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x22a77b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xaaa8a,'CommentView':_0x22a77b['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x5792c1,channelId:_0x1aec89,resolvedAt:_0x2773a1,resolvedBy:_0x3bfd07,isFromAdapter:_0x4d513b}){if(!this['hasCommentThread'](_0x5792c1))throw new _0x3e31b7('commentsrepository-missing-comment-thread',null,{'threadId':_0x5792c1});const _0x36605e=this['getCommentThread'](_0x5792c1);if(_0x36605e['isResolved'])throw new _0x3e31b7('commentsrepository-resolved-comment-thread',null,{'threadId':_0x5792c1});const _0x2857f8=this['context']['plugins']['get'](it);if(_0x36605e['resolvedBy']=_0x2857f8['getUser'](_0x3bfd07),_0x36605e['resolvedAt']=_0x2773a1,_0x4d513b||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x5b6761=this['context']['plugins']['get']('PendingActions'),_0xa2f746=_0x5b6761['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x1aec89,'threadId':_0x5792c1})['then'](({resolvedAt:_0x23c646,resolvedBy:_0x500bc6})=>{_0x5b6761['remove'](_0xa2f746),_0x36605e['resolvedBy']['id']!==_0x500bc6&&(_0x36605e['resolvedBy']=_0x2857f8['getUser'](_0x500bc6)),_0x36605e['resolvedAt']=_0x23c646;})['catch'](_0x43aef6=>{throw console['error'](_0x43aef6),new _0x3e31b7('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x389691,channelId:_0x799669,isFromAdapter:_0x43f393}){if(!this['hasCommentThread'](_0x389691))throw new _0x3e31b7('commentsrepository-missing-comment-thread',null,{'threadId':_0x389691});const _0x4186b5=this['getCommentThread'](_0x389691);if(!_0x4186b5['isResolved'])throw new _0x3e31b7('commentsrepository-reopen-comment-thread',null,{'threadId':_0x389691});if(_0x4186b5['resolvedBy']=null,_0x4186b5['resolvedAt']=null,_0x43f393||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x1bf372=this['context']['plugins']['get']('PendingActions'),_0x455db1=_0x1bf372['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x799669,'threadId':_0x389691})['then'](()=>_0x1bf372['remove'](_0x455db1))['catch'](_0x105aa6=>{throw console['error'](_0x105aa6),new _0x3e31b7('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0xf5b469,isFromAdapter:_0xdd0ccd}){const _0x38373c=this['getCommentThread'](_0xf5b469);if(!_0x38373c)throw new _0x3e31b7('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0xf5b469),this['_threads']['delete'](_0xf5b469),!_0x38373c['isSubmitted']||_0xdd0ccd||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x3b67fe=this['context']['plugins']['get']('PendingActions'),{channelId:_0x469c24}=_0x38373c,_0x257d78=_0x3b67fe['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x469c24,'threadId':_0xf5b469})['then'](()=>_0x3b67fe['remove'](_0x257d78))['catch'](_0x2802c1=>{throw console['error'](_0x2802c1),new _0x3e31b7('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x585cf5,unlinkedAt:_0x1d325a,context:_0x34c25a,attributes:_0x9a3624,isFromAdapter:_0x7bd6d2}){if('string'!=typeof _0x585cf5)throw new _0x3e31b7('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x585cf5});if(!this['hasCommentThread'](_0x585cf5))throw new _0x3e31b7('commentsrepository-missing-comment-thread',null,{'threadId':_0x585cf5});const _0x5a78bf=this['getCommentThread'](_0x585cf5);let _0x370a76=!0x1;if(void 0x0!==_0x34c25a&&_0x5a78bf['context']!==_0x34c25a&&(_0x5a78bf['context']=_0x34c25a,_0x370a76=!0x0),void 0x0!==_0x1d325a&&_0x5a78bf['unlinkedAt']!==_0x1d325a&&(_0x5a78bf['unlinkedAt']=_0x1d325a,_0x370a76=!0x0),_0x9a3624&&!At(_0x9a3624,_0x5a78bf['attributes'])&&(_0x5a78bf['attributes']=_0x9a3624,_0x370a76=!0x0),!_0x370a76)return Promise['resolve']();if(!_0x5a78bf['isSubmitted']||_0x7bd6d2||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x560000=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1ed94e}=_0x5a78bf,_0x10b5df=_0x560000['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x1ed94e,'threadId':_0x585cf5,'context':_0x34c25a,'unlinkedAt':_0x1d325a,'attributes':_0x9a3624})['then'](()=>_0x560000['remove'](_0x10b5df))['catch'](_0x304234=>{throw console['error'](_0x304234),new _0x3e31b7('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x42bba1){const _0x4b8a04=this['context']['plugins']['get'](y),_0x5b05b8=this['getCommentThread'](_0x42bba1);if(_0x5b05b8['_isAttached']=!0x1,this['_threadToController']['has'](_0x5b05b8)){const _0x2a81b2=this['_threadToController']['get'](_0x5b05b8),_0x52df6f=_0x2a81b2['view'],_0x12fe90=_0x4b8a04['getByInnerView'](_0x52df6f);this['_threadToController']['delete'](_0x5b05b8),this['_viewToController']['delete'](_0x52df6f),_0x12fe90&&_0x4b8a04['remove'](_0x12fe90),_0x2a81b2['destroy'](),_0x52df6f['destroy']()['then'](()=>{this['_unbindEditors'](_0x52df6f);});}}['_updateActiveAnnotation']({threadId:_0xccf0d1,resolvedAt:_0x466a81,unlinkedAt:_0x16590e}){const _0x2f9a48=!!_0x466a81,_0x543568=this['context']['plugins']['get'](y),_0x598812=this['getCommentThread'](_0xccf0d1);if(this['_threadToController']['has'](_0x598812)){const _0x33037b=this['_threadToController']['get'](_0x598812)['view'],_0x10a333=_0x543568['getByInnerView'](_0x33037b);_0x10a333&&(_0x2f9a48&&_0x543568['_removeActiveAnnotation'](_0x10a333),_0x16590e?_0x10a333['isVisible']=!0x1:_0x10a333['refreshVisibility']());}}['_getExternalAuthor'](_0x13e238){const _0xfcd950=this['context']['plugins']['get'](it),_0x29f056=It('external:'+_0x13e238),_0x36b927=_0xfcd950['getUser'](_0x29f056);return _0x36b927||_0xfcd950['addUser']({'id':_0x29f056,'name':_0x13e238});}['_createNewComment']({threadId:_0x4ea450,commentId:_0x22762b=_0x4e4e67(),content:_0x162085,authorId:_0x529610,createdAt:_0x17f695,attributes:_0x11f8b4}){if('string'!=typeof _0x22762b)throw new _0x3e31b7('commentsrepository-invalid-commentid');if('string'!=typeof _0x529610)throw new _0x3e31b7('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x162085||!_0x162085['trim']())throw new _0x3e31b7('commentsrepository-invalid-comment-content');const _0x197869=this['context']['plugins']['get'](it)['getUser'](_0x529610);if(!_0x197869)throw new _0x3e31b7('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x529610});let _0x2c690b=null,_0x39c294=_0x17f695;return _0x11f8b4?.['@external']&&(_0x2c690b=this['_getExternalAuthor'](_0x11f8b4['@external']['authorName']),_0x39c294=new Date(_0x11f8b4['@external']['createdAt'])),new wi(this,{'threadId':_0x4ea450,'id':_0x22762b,'author':_0x2c690b||_0x197869,'creator':_0x197869,'content':_0x162085,'createdAt':_0x17f695,'authoredAt':_0x39c294,'attributes':_0x11f8b4});}['_addComment'](_0x3d8c2f){let {threadId:_0x3a320d,content:_0xf6900c,attributes:_0x1eec8b,isFromAdapter:_0x26af6f}=_0x3d8c2f;const _0x1409cf=this['getCommentThread'](_0x3d8c2f['threadId']);if(!_0x1409cf)throw new _0x3e31b7('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x55759b=this['_createNewComment'](_0x3d8c2f),{id:_0x5cfe71}=_0x55759b;if(_0x1409cf['_add'](_0x55759b),_0x26af6f||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x1409cf['isSubmitted'])return Promise['resolve']();const _0x5aa655=this['context']['plugins']['get']('PendingActions'),{channelId:_0xbb3821}=_0x1409cf,_0x1a386b=_0x5aa655['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x1eec8b||(_0x1eec8b={}),this['adapter']['addComment']({'channelId':_0xbb3821,'threadId':_0x3a320d,'commentId':_0x5cfe71,'content':_0xf6900c,'attributes':_0x1eec8b})['then'](_0x1fbd27=>{_0x5aa655['remove'](_0x1a386b),_0x1fbd27&&this['_updateComment']({'channelId':_0xbb3821,'threadId':_0x3a320d,'commentId':_0x5cfe71,'createdAt':_0x1fbd27['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x4e5710=>{throw console['error'](_0x4e5710),new _0x3e31b7('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x55c46d,commentId:_0x28439d,content:_0x37002a,createdAt:_0x15bc97,attributes:_0x9fee72,isFromAdapter:_0x365dc5}){if(void 0x0!==_0x37002a&&('string'!=typeof _0x37002a||!_0x37002a['trim']()['length']))throw new _0x3e31b7('commentsrepository-update-comment-invalid-content');const _0x88ba9a=this['getCommentThread'](_0x55c46d),_0x1e4c4d=_0x88ba9a['getComment'](_0x28439d);if(!_0x1e4c4d)throw new _0x3e31b7('commentsrepository-update-missing-comment',this);let _0x3cbbc8=!0x1;if(_0x37002a&&_0x37002a!==_0x1e4c4d['content']&&(_0x1e4c4d['isEditable']||_0x365dc5)&&(_0x1e4c4d['content']=_0x37002a,_0x3cbbc8=!0x0),_0x15bc97&&_0x15bc97!==_0x1e4c4d['createdAt']&&(_0x1e4c4d['createdAt']=_0x15bc97,_0x1e4c4d['attributes']&&_0x1e4c4d['attributes']['@external']||(_0x1e4c4d['authoredAt']=_0x15bc97),_0x3cbbc8=!0x0),_0x9fee72&&!At(_0x9fee72,_0x1e4c4d['attributes'])&&(_0x1e4c4d['attributes']=_0x9fee72,_0x3cbbc8=!0x0),!_0x3cbbc8)return Promise['resolve']();if(_0x88ba9a['fire']('commentUpdated'),_0x365dc5||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x354bce=this['context']['plugins']['get']('PendingActions'),{channelId:_0x65740a}=this['getCommentThread'](_0x1e4c4d['threadId']),_0x167412=_0x354bce['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x65740a,'threadId':_0x55c46d,'commentId':_0x28439d,'content':_0x37002a,'attributes':_0x9fee72})['then'](()=>_0x354bce['remove'](_0x167412))['catch'](_0x3eee57=>{throw console['error'](_0x3eee57),new _0x3e31b7('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x5974be,commentId:_0x1878fd,isFromAdapter:_0x8857d2}){const _0x191102=this['getCommentThread'](_0x5974be),_0x4d6328=_0x191102['getComment'](_0x1878fd);if(!_0x4d6328)throw new _0x3e31b7('commentsrepository-remove-missing-comment',this);if(_0x191102['_remove'](_0x4d6328),_0x8857d2||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x4a44f4=this['context']['plugins']['get']('PendingActions'),{channelId:_0x14b9a5}=_0x191102,_0x5b2914=_0x4a44f4['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x14b9a5,'threadId':_0x5974be,'commentId':_0x1878fd})['then'](()=>_0x4a44f4['remove'](_0x5b2914))['catch'](_0x59f0e5=>{throw console['error'](_0x59f0e5),new _0x3e31b7('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
+ _0x240a0a(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x4f962a,_0x23a0cd){super();const _0x2342d0=_0x23a0cd['isResolvable'];this['channelId']=_0x23a0cd['channelId'],this['id']=_0x23a0cd['id'],this['comments']=new _0x1b1bd5(),this['_repository']=_0x4f962a,this['_isAttached']=!0x1,this['_isSubmitted']=_0x23a0cd['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x4f962a,'_permissions',_0x4f962a,'_readOnlyChannels',()=>_0x4f962a['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x4f962a,'_permissions',()=>_0x4f962a['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x4f962a,'_permissions',()=>{const _0x59d3ec=_0x4f962a['getPermissions'](this['channelId']);return _0x59d3ec['write']||_0x59d3ec['admin'];}),this['bind']('isResolvable')['to'](_0x4f962a,'_permissions',()=>_0x2342d0&&_0x4f962a['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x23a0cd['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x4d75d1,_0x360591)=>_0x4d75d1?_0x360591?_0x4d75d1<_0x360591?_0x4d75d1:_0x360591:_0x4d75d1:_0x360591),this['set']('unlinkedAt',_0x23a0cd['unlinkedAt']||null),this['set']('resolvedAt',_0x23a0cd['resolvedAt']||null),this['set']('resolvedBy',_0x23a0cd['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x5bd7ff=>!!_0x5bd7ff),this['set']('attributes',_0x23a0cd['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x311bcd,_0x438bd0)=>_0x311bcd+_0x438bd0['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x34e431,id:_0x433b11}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x34e431),{'channelId':_0x34e431,'threadId':_0x433b11});}['setUnlinkedAt'](_0x4c6192){this['_update']({'unlinkedAt':_0x4c6192});}['resolve']({resolvedAt:_0x394df2=new Date(),resolvedBy:_0x265549=null,isFromAdapter:_0x3f6502=!0x1}={}){const _0x13df81=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x3a6b99,id:_0x498371}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x3a6b99),{'channelId':_0x3a6b99,'threadId':_0x498371,'resolvedAt':_0x394df2,'resolvedBy':_0x265549||_0x13df81['id'],'isFromAdapter':_0x3f6502});}['reopen']({isFromAdapter:_0x523735=!0x1}={}){const {channelId:_0x206b6b,id:_0x1f2a08}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x206b6b),{'channelId':_0x206b6b,'threadId':_0x1f2a08,'isFromAdapter':_0x523735});}['setContext'](_0xfd3e87){this['context']||this['_update']({'context':_0xfd3e87});}['setAttribute'](_0x463d3a,_0x147c89){const _0x2059bc=wt(this['attributes']);yt(_0x2059bc,_0x463d3a,_0x147c89),this['_update']({'attributes':_0x2059bc});}['removeAttribute'](_0xb43e8c){const _0xd81169=wt(this['attributes']);Ct(_0xd81169,_0xb43e8c),this['_update']({'attributes':_0xd81169});}['remove']({isFromAdapter:_0x430965=!0x1}={}){const {channelId:_0x24c4f4,id:_0x180458}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x24c4f4),{'channelId':_0x24c4f4,'threadId':_0x180458,'isFromAdapter':_0x430965});}['attachTo'](_0x7902be){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x7902be});}['addComment'](_0x47687e){const {channelId:_0x5c6dc6,id:_0x2a9447}=this;this['_repository']['fire'](Nt('addComment',_0x5c6dc6,_0x2a9447),Object['assign']({'channelId':_0x5c6dc6,'threadId':_0x2a9447},_0x47687e));}['getComment'](_0x236812){if('string'!=typeof _0x236812)throw new _0x3e31b7('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x236812});return this['comments']['get'](_0x236812);}['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'](_0x44139f=>_0x44139f['toJSON']()),'attributes':this['attributes']};}['_add'](_0x312467){return this['listenTo'](_0x312467,'change:authoredAt',()=>{const _0x3b8afb=this['_findOptimalIndex'](_0x312467),_0x3c4b54=this['comments'];_0x3b8afb-0x1!=_0x3c4b54['getIndex'](_0x312467)&&_0x3b8afb+0x1!=_0x3c4b54['getIndex'](_0x312467)&&(this['_remove'](_0x312467),this['_add'](_0x312467));}),this['comments']['add'](_0x312467,this['_findOptimalIndex'](_0x312467));}['_update'](_0x4ae921){const {channelId:_0x21e285,id:_0x58e824}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x21e285),{..._0x4ae921,'channelId':_0x21e285,'threadId':_0x58e824});}['_remove'](_0x90a592){return this['stopListening'](_0x90a592),_0x90a592['destroy'](),this['comments']['remove'](_0x90a592);}['_findOptimalIndex'](_0x2265d1){const _0x52914a=this['comments']['find'](_0x3c498e=>new Date(_0x3c498e['authoredAt'])['getTime']()>new Date(_0x2265d1['authoredAt'])['getTime']());return _0x52914a?this['comments']['getIndex'](_0x52914a):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
+ _0x240a0a(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x47e012,_0x224d3b){super();const _0x4c906c=_0x47e012['context']['plugins']['get'](it)['me'],_0x1240ac=_0x47e012['getCommentThread'](_0x224d3b['threadId']),_0x3eb5fc=0x0===_0x1240ac['comments']['length'],_0x3b1495=_0x4c906c===_0x224d3b['author'];this['id']=_0x224d3b['id'],this['threadId']=_0x224d3b['threadId'],this['author']=_0x224d3b['author'],this['creator']=_0x224d3b['creator'],this['isExternal']=Boolean(_0x224d3b['attributes']&&_0x224d3b['attributes']['@external']),this['set']('content',_0x224d3b['content']),this['createdAt']=_0x224d3b['createdAt']||new Date(),this['set']('authoredAt',_0x224d3b['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x1240ac,'resolvedAt'),this['set']('attributes',_0x224d3b['attributes']||{}),this['bind']('isEditable')['to'](_0x47e012,'_permissions',()=>{const _0x560eb3=_0x47e012['getPermissions'](_0x1240ac['channelId'])['write'],_0x5a30fa=_0x47e012['getPermissions'](_0x1240ac['channelId'])['modifyAll'];return _0x3b1495&&_0x560eb3||!_0x3b1495&&_0x5a30fa;}),this['bind']('isRemovable')['to'](_0x1240ac,'isRemovable',_0x47e012,'_permissions',_0x50df09=>{const _0x444609=_0x47e012['getPermissions'](_0x1240ac['channelId'])['write'],_0x49f483=_0x47e012['getPermissions'](_0x1240ac['channelId'])['modifyAll'];return _0x3b1495&&_0x444609||_0x50df09&&_0x3eb5fc||!_0x3b1495&&_0x49f483&&!_0x3eb5fc;}),this['bind']('isReadOnly')['to'](_0x1240ac,'isReadOnly'),this['_repository']=_0x47e012;}get['weight'](){return Math['max'](function(_0x2febb7){const _0x46e864=document['createElement']('div');return _0x46e864['innerHTML']=_0x2febb7,_0x46e864['textContent']['length'];}(this['content']),0xc8);}['update'](_0x13aef5){const {threadId:_0x44525c,id:_0x5cff3b}=this;if(!this['_repository']['hasCommentThread'](_0x44525c))throw new _0x3e31b7('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x341a62}=this['_repository']['getCommentThread'](_0x44525c);this['_repository']['fire'](Nt('updateComment',_0x341a62,_0x44525c),{'channelId':_0x341a62,'threadId':_0x44525c,'commentId':_0x5cff3b,..._0x13aef5});}['setAttribute'](_0x1eb50c,_0xc7a243){const _0x4399d8=wt(this['attributes']);yt(_0x4399d8,_0x1eb50c,_0xc7a243),this['update']({'attributes':_0x4399d8});}['removeAttribute'](_0x4d2bc2){const _0x3540ba=wt(this['attributes']);Ct(_0x3540ba,_0x4d2bc2),this['update']({'attributes':_0x3540ba});}['remove'](_0x9c9a4f={}){if(!_0x9c9a4f['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x14fcbd,id:_0x372d33}=this;if(!this['_repository']['hasCommentThread'](_0x14fcbd))throw new _0x3e31b7('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x45a072}=this['_repository']['getCommentThread'](_0x14fcbd);this['_repository']['fire'](Nt('removeComment',_0x45a072,_0x14fcbd),{'channelId':_0x45a072,'threadId':_0x14fcbd,'commentId':_0x372d33,..._0x9c9a4f});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x4a2dcf,..._0x2d638d){for(const _0x25f085 of _0x2d638d)void 0x0!==_0x25f085&&(_0x4a2dcf+=':'+String(_0x25f085));return _0x4a2dcf;}class ot extends _0x46685b{constructor(_0x3f795f){super(_0x3f795f),this['set']('hasContent',!0x1);}['refresh'](){const _0x317209=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x37f0ce of _0x317209['getRanges']())if(this['_hasContent'](_0x37f0ce))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x160bbc=_0x4e4e67(),ranges:_0x17f1c2,comment:_0x361198}={}){const _0x492bf0=this['editor']['model'],_0x6fdfc=_0x17f1c2??Array['from'](_0x492bf0['document']['selection']['getRanges']()),_0x134f49=[];for(const _0x1dab29 of _0x6fdfc)this['_hasContent'](_0x1dab29)&&_0x134f49['push'](this['_trimToContent'](_0x1dab29));if(!_0x134f49['length'])throw new _0x3e31b7('addcommentthreadcommand-incorrect-ranges',null);_0x361198&&this['_createCommentThread'](_0x160bbc,_0x361198),this['_createMarkersFromRanges'](_0x160bbc,_0x134f49,!!_0x361198);}['_createMarkersFromRanges'](_0x23d833,_0x53db4b,_0x489b4a){this['editor']['model']['change'](_0x3ff48c=>{for(const _0x8b82d4 of _0x53db4b){const _0x1a3008=_0x4e4e67()['substr'](0x1,0x5),_0x17163c='comment:'+_0x23d833+':'+_0x1a3008;_0x3ff48c['addMarker'](_0x17163c,{'range':_0x8b82d4,'usingOperation':_0x489b4a,'affectsData':_0x489b4a});}});}['_createCommentThread'](_0x12e286,_0x5c17c6){const _0x79c8dc=this['editor']['plugins']['get']('CommentsRepository'),_0x1e1a9a=this['editor']['config']['get']('collaboration.channelId'),_0x4b7cc0=this['editor']['plugins']['get']('Users')['me'];if(!_0x4b7cc0)throw new _0x3e31b7('addcommentthreadcommand-user-not-found',null);_0x79c8dc['addCommentThread']({'threadId':_0x12e286,'channelId':_0x1e1a9a,'comments':[{'authorId':_0x4b7cc0['id'],'content':_0x5c17c6,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x314c10){for(const _0x374606 of _0x314c10['getItems']())if(this['_itemIsContent'](_0x374606))return!0x0;return!0x1;}['_itemIsContent'](_0x446353){return _0x446353['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x446353)&&!_0x446353['is']('element','tableCell');}['_trimToContent'](_0x5037a2){const _0x41ded3=_0x3eab7a=>!this['_itemIsContent'](_0x3eab7a['item']),_0x513f83=_0x5037a2['start']['getLastMatchingPosition'](_0x41ded3),_0x432739=_0x5037a2['end']['getLastMatchingPosition'](_0x41ded3,{'direction':'backward'});return this['editor']['model']['createRange'](_0x513f83,_0x432739);}}class b extends _0x3d233f{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xcfa39d){super(_0xcfa39d),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x5497ce=this['editor'],_0x3dccff=_0x5497ce['model']['document']['selection'],_0x45e949=_0x1f36ab(()=>this['refreshSelectedViews'](),0xa);_0x3dccff['on']('change:range',(_0x1dc283,_0x23eec4)=>{_0x23eec4['directChange']&&(_0x45e949['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x5497ce['editing']['view']['document'],'change:isFocused',(_0x5cd5d5,_0x446c0b,_0x276445)=>{_0x276445&&_0x45e949();}),this['listenTo'](_0x5497ce['ui']['focusTracker'],'change:isFocused',(_0x48a351,_0x1ce536,_0x5363ac)=>{_0x5363ac||this['fire']('blur',{'isAnnotationTracked':_0x2822ec=>this['_editorAnnotationsData']['has'](_0x2822ec['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x3c9f60){if(this['_editorAnnotations']['has'](_0x3c9f60['view']))return;this['_editorAnnotations']['add'](_0x3c9f60['view']),this['editor']['ui']['focusTracker']['add'](_0x3c9f60['view']['element']);const _0x48c9b0=this['editor']['plugins']['get'](y);this['listenTo'](_0x48c9b0['collection'],'remove',(_0x828e82,_0x55de5c)=>{this['editor']['ui']['focusTracker']['remove'](_0x55de5c['view']['element']),this['_editorAnnotations']['delete'](_0x55de5c['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x1ad011){if('function'!=typeof _0x1ad011)throw new _0x3e31b7('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x1ad011);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x327837,annotations:_0x114340}){const _0x4c023f=[],_0x1e2854=this['editor']['model']['document']['selection'],_0x21b000=Array['from'](_0x1e2854['getRanges']());for(const [_0x4fa381,_0x431f17]of this['_editorAnnotationsData']){const _0x276097=_0x4e6c4c(_0x431f17),_0x555fb8=_0x114340['getByInnerView'](_0x4fa381);_0x276097&&_0x555fb8&&_0x4c023f['push']({'annotation':_0x555fb8,'range':_0x276097});}function _0x4e6c4c(_0x1a7448){for(const _0x2cb533 of _0x1a7448)for(const _0x3a0bb2 of _0x21b000)if(_0x2cb533['containsRange'](_0x3a0bb2,!_0x1e2854['isCollapsed']))return _0x2cb533;return null;}return _0x4c023f['sort']((_0x318078,_0x23a14f)=>{const _0x5ac4e9=_0x318078['range'],_0x4a36b5=_0x23a14f['range'];if(!_0x5ac4e9['isEqual'](_0x4a36b5)){if(_0x5ac4e9['containsRange'](_0x4a36b5,!0x0))return 0x1;if(_0x4a36b5['containsRange'](_0x5ac4e9,!0x0))return-0x1;}return _0x318078['annotation']==_0x327837?-0x1:_0x23a14f['annotation']==_0x327837?0x1:0x0;})['map'](_0xb4054=>_0xb4054['annotation']);}get['_editorAnnotationsData'](){const _0xad9ed7=new Map();for(const _0x1c55b2 of Array['from'](this['_dataCollectors']))for(const [_0x37fff0,_0x33dab4]of _0x1c55b2())_0xad9ed7['set'](_0x37fff0,_0x33dab4);return _0xad9ed7;}}class st extends _0x3d233f{['afterInit'](){const _0x4d564d=this['editor'];if(!_0x4d564d['plugins']['has']('RestrictedEditingModeEditing'))return;_0x4d564d['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x3d233f{constructor(_0xe0c7fd){super(_0xe0c7fd),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x36d534=this['editor'],_0x5139d6=_0x36d534['commands']['get']('importWord'),_0xb9bacd=_0x36d534['plugins']['get'](it);_0x5139d6&&(_0x5139d6['on']('execute',(_0x1f0ac8,[,_0x3f3695])=>{_0x3f3695['collaboration_features']={'comments':!0x0,'user_id':_0xb9bacd['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x5139d6,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x220d15,_0x2aca9b){const {comment_threads:_0x4fa80a}=_0x2aca9b;_0x4fa80a&&_0x4fa80a['forEach'](({thread_id:_0x5e050a,comments:_0x4f9555,is_resolved:_0x3b7e42})=>{const _0xe30061=new Date(),_0x359d02=_0x4f9555['map'](({author:_0x4e4a97,content:_0x1ade19,created_at:_0x3b4fcb})=>({'content':_0x1ade19,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0xe30061,'attributes':{'@external':{'authorName':_0x4e4a97,'createdAt':_0x3b4fcb?new Date(_0x3b4fcb):new Date(),'source':'importWord'}}})),_0x4e11ab=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x4e11ab,'threadId':_0x5e050a,'comments':_0x359d02,'resolvedAt':_0x3b7e42?_0xe30061:null});});}}class at extends _0x3d233f{constructor(_0x3a3d6d){super(_0x3a3d6d),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x32fdf1=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x32fdf1,'contentInsertion',(_0x3e7eea,_0x545d4f)=>this['_removeMarkersWithoutThreads'](_0x545d4f['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x4438f6){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x4438f6;const _0x2a4e9d=this['editor']['plugins']['get']('CommentsRepository');for(const _0x2121a5 of _0x4438f6['keys']()){const [_0x3b54ab,_0x53271f]=_0x2121a5['split'](':');'comment'!=_0x3b54ab||_0x2a4e9d['hasCommentThread'](_0x53271f)||_0x4438f6['delete'](_0x2121a5);}return _0x4438f6;}['_registerMarkerInClipboardPipeline'](){const _0x4622f5=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0xa11c07=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0xa11c07&&_0x4622f5['_registerMarkerToCopy']('comment',_0xa11c07);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x2f6875){switch(_0x2f6875){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x3cdba8){const _0xd7e833=_0x3cdba8['split'](':');return{'group':_0xd7e833[0x0],'id':_0xd7e833[0x1],'part':_0xd7e833[0x2]};}class ut extends _0x3d233f{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x1ecc43,_0x95321b)=>{if(!_0x95321b['options']['showCommentHighlights'])return null;if(_0x95321b['options']['ignoreResolvedComments']){const {id:_0x442a26}=ft(_0x1ecc43['markerName']),_0x1dc838=this['editor']['plugins']['get'](o);if(_0x1dc838['getCommentThread'](_0x442a26)?.['isResolved']&&_0x1ecc43['item'])return _0x95321b['consumable']['consume'](_0x1ecc43['item'],'addMarker:'+_0x1ecc43['markerName']),_0x95321b['consumable']['consume'](_0x1ecc43['item'],'removeMarker:'+_0x1ecc43['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x31f11e=>{_0x31f11e['on']('addMarker:comment',(_0x49105c,_0x309667,_0x4e5473)=>{if(!_0x4e5473['options']['showCommentHighlights'])return;const _0x1dd680=_0x309667['item'];if(!_0x1dd680)return;const _0x54f973=_0x4e5473['mapper']['toViewElement'](_0x1dd680);this['editor']['model']['schema']['isObject'](_0x1dd680)&&_0x54f973&&!_0x54f973['getCustomProperty']('widget')&&_0x54f973['is']('containerElement')&&_0x156cb0(_0x54f973,_0x4e5473['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5991b5,{writer:_0x12ce05,options:_0xd98655})=>{if(!_0xd98655['showCommentHighlights'])return null;const _0xed4321=_0x12ce05['createContainerElement']('div'),_0x2c74cd=_0x12ce05['createEmptyElement']('hr');return _0x12ce05['addClass']('ck-horizontal-line',_0xed4321),_0x12ce05['insert'](_0x12ce05['createPositionAt'](_0xed4321,0x0),_0x2c74cd),_0xed4321;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x19ea7c,{writer:_0x131d84,options:_0x45946b})=>{if(!_0x45946b['showCommentHighlights'])return null;const _0xd4bcf8=_0x131d84['createContainerElement']('span'),_0x2ff293=_0x131d84['createEmptyElement']('img');return _0x131d84['addClass']('image-inline',_0xd4bcf8),_0x131d84['insert'](_0x131d84['createPositionAt'](_0xd4bcf8,0x0),_0x2ff293),_0xd4bcf8;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5fb38e,{writer:_0x44423e,options:_0xf6dd26})=>{if(_0xf6dd26['showCommentHighlights'])return _0x44423e['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2a7918,_0x53f93f,_0x420ae2)=>{_0x420ae2['options']['showCommentHighlights']&&_0x2a7918['stop']();},{'priority':'high'});}}class r extends _0x3d233f{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(_0x9bffc2){super(_0x9bffc2),this['set']('isThreadsLoadingPaused',!0x0),_0x9bffc2['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0xf14b7,_0x28e8bb,_0x4d67d4,_0x33bad7)=>{const _0x1924ec=_0x9bffc2['plugins']['get'](o),_0x4ac3fd=_0x4d67d4?ft(_0x4d67d4)['id']:null;_0x9bffc2['model']['change'](()=>{if(_0x4ac3fd){const _0x3e37f2=this['getAllMarkersForId'](_0x4ac3fd);for(const _0x527729 of _0x3e37f2)_0x9bffc2['editing']['reconvertMarker'](_0x527729);}if(_0x33bad7){const {id:_0x2704fc}=ft(_0x33bad7),_0x1e4dbe=_0x1924ec['getCommentThread'](_0x2704fc);if(_0x1e4dbe&&_0x1e4dbe['unlinkedAt'])return;if(_0x1e4dbe&&!_0x1e4dbe['isAttached'])return;const _0x259505=this['getAllMarkersForId'](_0x2704fc);for(const _0x4a6ea7 of _0x259505)_0x9bffc2['editing']['reconvertMarker'](_0x4a6ea7);}}),_0x4ac3fd&&this['scrollToThreadMarker'](_0x4ac3fd);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x57fb45=this['editor'],_0x3cfc16=_0x57fb45['plugins']['get'](o),_0x43083a=_0x57fb45['config']['get']('collaboration.channelId'),_0x5fc88d=_0x3cfc16['getCommentThreads']()['filter'](_0x3dab0b=>_0x3dab0b['channelId']!==_0x43083a);_0x57fb45['commands']['add']('addCommentThread',new ot(_0x57fb45)),this['listenTo'](_0x57fb45,'change:isReadOnly',(_0x52e738,_0x43a27c,_0x547404)=>{_0x3cfc16['switchReadOnly'](_0x547404,_0x57fb45['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x3cfc16,dt('addCommentThread',_0x43083a),(_0xcc7e89,{threadId:_0x51aae5})=>{const _0x594130=this['editor']['plugins']['get'](o)['getCommentThread'](_0x51aae5);_0x594130?.['unlinkedAt']&&this['_attachArchivedThread'](_0x51aae5);}),this['listenTo'](_0x3cfc16,dt('removeCommentThread',_0x43083a),(_0xbdc149,{threadId:_0x72c14f})=>{_0x57fb45['model']['enqueueChange']({'isUndoable':!0x1},_0x373929=>{const _0x4995e5=this['getAllMarkersForId'](_0x72c14f);for(const _0x8b456 of _0x4995e5)_0x373929['removeMarker'](_0x8b456);});}),this['listenTo'](_0x3cfc16,dt('resolveCommentThread',_0x43083a),(_0x423038,{threadId:_0x5eed48})=>{(this['_reconvertMarkers'](_0x5eed48),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x5eed48)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x3cfc16,dt('reopenCommentThread',_0x43083a),(_0xd164e9,{threadId:_0x403198})=>{this['_reconvertMarkers'](_0x403198);},{'priority':'low'}),this['listenTo'](_0x3cfc16,dt('addComment',_0x43083a),(_0x2a2a21,{threadId:_0x3d5c35,isFromAdapter:_0x48b9cf})=>{const _0x186269=this['getAllMarkersForId'](_0x3d5c35);if(_0x48b9cf||0x0==_0x186269['length']||!_0x3cfc16['hasCommentThread'](_0x3d5c35))return;0x1===_0x3cfc16['getCommentThread'](_0x3d5c35)['length']&&_0x57fb45['model']['enqueueChange']({'isUndoable':!0x1},_0x2add84=>{for(const _0x2b1a86 of _0x186269)_0x2add84['updateMarker'](_0x2b1a86,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x5fc88d);}['afterInit'](){!async function(_0x121f7c){const _0x1bbbf3=_0x30451c([0x4b,0x70,0x4f,0x42,0x4a,0x47,0x4e,0x53,0x45,0x67,0x71,0x43,0x79,0x66,0x56,0x46,0x31,0x6b,0x5a,0x38,0x6c,0x62,0x6e,0x52,0x6a,0x4d,0x37,0x65,0x49,0x7a,0x41,0x73,0x44,0x51,0x48,0x77,0x39,0x61,0x54,0x68,0x75,0x36,0x72,0x63,0x59,0x69,0x30,0x35,0x55,0x6d,0x50,0x4c,0x34,0x64,0x33,0x58,0x32,0x57,0x6f,0x74,0x76,0x78]),_0x3ea085=0x73460ab3,_0x20bd55=0x734179f3^_0x3ea085,_0x2ee5c9=window[_0x30451c([0x44,0x61,0x74,0x65])][_0x30451c([0x6e,0x6f,0x77])](),_0x488a4a=_0x121f7c[_0x30451c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x366bc5=new window[(_0x30451c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20c988=>{_0x488a4a[_0x30451c([0x6f,0x6e,0x63,0x65])](_0x30451c([0x72,0x65,0x61,0x64,0x79]),_0x20c988);}),_0x4e105c={[_0x30451c([0x6b,0x74,0x79])]:_0x30451c([0x45,0x43]),[_0x30451c([0x75,0x73,0x65])]:_0x30451c([0x73,0x69,0x67]),[_0x30451c([0x63,0x72,0x76])]:_0x30451c([0x50,0x2d,0x32,0x35,0x36]),[_0x30451c([0x78])]:_0x30451c([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]),[_0x30451c([0x79])]:_0x30451c([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]),[_0x30451c([0x61,0x6c,0x67])]:_0x30451c([0x45,0x53,0x32,0x35,0x36])},_0x1c7cb2=_0x488a4a[_0x30451c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x30451c([0x67,0x65,0x74])](_0x30451c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5cec0f(){let _0x349c35,_0x1c32bf=null,_0xc6d45b=null;try{if(_0x1c7cb2==_0x30451c([0x47,0x50,0x4c]))return _0x30451c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x349c35=_0x5f1cad(),!_0x349c35)return _0x30451c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x349c35[_0x30451c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc6d45b=_0xe25b47(_0x349c35[_0x30451c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x349c35[_0x30451c([0x6a,0x74,0x69])])),await _0x502921()?_0x104b20()?_0x116142()?_0x30451c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2276a2()?(_0x349c35[_0x30451c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30451c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1c32bf=_0x3bc421(_0x30451c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x349c35[_0x30451c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30451c([0x74,0x72,0x69,0x61,0x6c])&&(_0x1c32bf=_0x3bc421(_0x30451c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3aa10b()):_0x30451c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x30451c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x30451c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x30451c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x116142(){const _0x22ed09=[_0x30451c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x30451c([0x74,0x72,0x69,0x61,0x6c])][_0x30451c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x349c35[_0x30451c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2ee5c9/0x3e8:0xe10*_0x20bd55;return _0x349c35[_0x30451c([0x65,0x78,0x70])]<_0x22ed09;}function _0x104b20(){const _0x4022ce=_0x349c35[_0x30451c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4022ce)return!0x1;if(_0x4022ce[_0x30451c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30451c([0x2a])))return!0x0;if(_0x4022ce[_0x30451c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30451c([0x43,0x4d,0x54])))return!0x0;if(_0x4022ce[_0x30451c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30451c([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x25f50c())return!0x0;if(_0x4022ce[_0x30451c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30451c([0x52,0x43,0x4d,0x54]))){if(_0x2c24e6())return!0x0;if(_0xbca993()||_0x2e885f())return!0x0;}return!0x1;}function _0x2276a2(){const _0x2cf091=_0x349c35[_0x30451c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2cf091||0x0==_0x2cf091[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d37f6}=new URL(window[_0x30451c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2cf091[_0x30451c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d37f6))return!0x0;const _0x3473b4=_0x2d37f6[_0x30451c([0x73,0x70,0x6c,0x69,0x74])](_0x30451c([0x2e]));return _0x2cf091[_0x30451c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e9ddc=>_0x1e9ddc[_0x30451c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30451c([0x2a])))[_0x30451c([0x6d,0x61,0x70])](_0x335a30=>_0x335a30[_0x30451c([0x73,0x70,0x6c,0x69,0x74])](_0x30451c([0x2e])))[_0x30451c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4dc60d=>_0x4dc60d[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3473b4[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x30451c([0x6d,0x61,0x70])](_0x3d789d=>Array(_0x3473b4[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3d789d[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x30451c([0x66,0x69,0x6c,0x6c])](_0x3d789d[0x0]===_0x30451c([0x2a])?_0x30451c([0x2a]):'')[_0x30451c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3d789d))[_0x30451c([0x73,0x6f,0x6d,0x65])](_0xda64f1=>_0x3473b4[_0x30451c([0x65,0x76,0x65,0x72,0x79])]((_0x342bcf,_0x2fb188)=>_0xda64f1[_0x2fb188]===_0x342bcf||_0xda64f1[_0x2fb188]===_0x30451c([0x2a])));}function _0x3aa10b(){return _0x1c32bf&&_0xc6d45b?new window[(_0x30451c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa5fe1c,_0x1a9719)=>{_0x1c32bf[_0x30451c([0x74,0x68,0x65,0x6e])](_0xa5fe1c,_0x1a9719),_0xc6d45b[_0x30451c([0x74,0x68,0x65,0x6e])](_0x4dd4de=>{_0x4dd4de!=_0x30451c([0x56,0x61,0x6c,0x69,0x64])&&_0xa5fe1c(_0x4dd4de);},_0x1a9719);}):_0x1c32bf||_0xc6d45b||_0x30451c([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe25b47(_0x492d89,_0x17dc31){return new window[(_0x30451c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x393cec=>{if(_0x5cbab3())return _0x393cec(_0x30451c([0x56,0x61,0x6c,0x69,0x64]));_0x3322d9(),_0x488a4a[_0x30451c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x30451c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x234550=!0x1;const _0x1715c2=_0x4e4e67();function _0x200646(_0x559eca){return!!_0x559eca&&(typeof _0x559eca===_0x30451c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x559eca===_0x30451c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x559eca[_0x30451c([0x74,0x68,0x65,0x6e])]===_0x30451c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x559eca[_0x30451c([0x63,0x61,0x74,0x63,0x68])]===_0x30451c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x280e25(_0x29d9bd){_0x4c682f(_0x29d9bd)[_0x30451c([0x74,0x68,0x65,0x6e])](_0x295d42=>{if(!_0x295d42||_0x295d42[_0x30451c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x30451c([0x6f,0x6b]))return _0x30451c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x439da1(_0x42b473(_0x1715c2+_0x17dc31))!=_0x295d42[_0x30451c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x30451c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x30451c([0x56,0x61,0x6c,0x69,0x64]);})[_0x30451c([0x74,0x68,0x65,0x6e])](_0x368952=>(_0x27d0a5(),_0x368952),()=>{const _0x38e213=_0x2c99d1();return null==_0x38e213?(_0x27d0a5(),_0x30451c([0x56,0x61,0x6c,0x69,0x64])):_0x30451c(_0x2ee5c9-_0x38e213>(0x574a8eb3^_0x3ea085)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x30451c([0x74,0x68,0x65,0x6e])](_0x393cec)[_0x30451c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x393cec(_0x30451c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x154f1a=0x7370e433^_0x3ea085;function _0x27d0a5(){const _0x2b80bf=_0x30451c([0x6c,0x6c,0x63,0x74,0x2d])+_0x439da1(_0x42b473(_0x492d89)),_0x279956=_0x21c325(_0x439da1(window[_0x30451c([0x4d,0x61,0x74,0x68])][_0x30451c([0x63,0x65,0x69,0x6c])](_0x2ee5c9/_0x154f1a)));window[_0x30451c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30451c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b80bf,_0x279956);}function _0x2c99d1(){const _0x5200ad=_0x30451c([0x6c,0x6c,0x63,0x74,0x2d])+_0x439da1(_0x42b473(_0x492d89)),_0x4efc87=window[_0x30451c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30451c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5200ad);return _0x4efc87?window[_0x30451c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21c325(_0x4efc87),0x10)*_0x154f1a:null;}function _0x4c682f(_0x2d6ef3){return new window[(_0x30451c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4dae6a,_0x538280)=>{_0x2d6ef3[_0x30451c([0x74,0x68,0x65,0x6e])](_0x4dae6a,_0x538280),window[_0x30451c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x538280,0x7347de73^_0x3ea085);});}}_0x488a4a[_0x30451c([0x6f,0x6e])](_0x30451c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x59666e,_0x547d89)=>{if(_0x547d89[0x0]!=_0x492d89)return _0x393cec(_0x30451c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x547d89[0x1]={..._0x547d89[0x1],[_0x30451c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1715c2};},{[_0x30451c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30451c([0x68,0x69,0x67,0x68])}),_0x488a4a[_0x30451c([0x6f,0x6e])](_0x30451c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x10e04e=>{_0x200646(_0x10e04e[_0x30451c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x234550=!0x0,_0x280e25(_0x10e04e[_0x30451c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x30451c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30451c([0x6c,0x6f,0x77])}),_0x366bc5[_0x30451c([0x74,0x68,0x65,0x6e])](()=>{_0x234550||_0x393cec(_0x30451c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5cbab3(){return _0x488a4a[_0x30451c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30451c([0x76,0x69,0x65,0x77])][_0x30451c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x30451c([0x61,0x75,0x74,0x6f]);}function _0x3322d9(){_0x488a4a[_0x30451c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30451c([0x76,0x69,0x65,0x77])][_0x30451c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x30451c([0x61,0x75,0x74,0x6f]);}}function _0x3bc421(_0x31960d){const _0x5031d9=[new window[(_0x30451c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c10da=>setTimeout(_0x5c10da,0x734f347f^_0x3ea085)),_0x366bc5[_0x30451c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x30451c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21b5ee=>{let _0x3888d8=0x0;_0x488a4a[_0x30451c([0x6d,0x6f,0x64,0x65,0x6c])][_0x30451c([0x6f,0x6e])](_0x30451c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3f0c92,_0x581f87)=>{_0x581f87[0x0][_0x30451c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3888d8++,_0x3888d8==(0x73460b4b^_0x3ea085)&&(_0x21b5ee(),_0x3f0c92[_0x30451c([0x6f,0x66,0x66])]());});}))];return window[_0x30451c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x30451c([0x72,0x61,0x63,0x65])](_0x5031d9)[_0x30451c([0x74,0x68,0x65,0x6e])](()=>_0x31960d);}async function _0x4034c6(){await _0x366bc5,_0x488a4a[_0x30451c([0x6d,0x6f,0x64,0x65,0x6c])][_0x30451c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3ee88a,_0x488a4a[_0x30451c([0x6d,0x6f,0x64,0x65,0x6c])][_0x30451c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3ee88a,_0x488a4a[_0x30451c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x30451c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25f50c(){return window[_0x30451c([0x67,0x6c,0x6f,0x62])]&&window[_0x30451c([0x67,0x6c,0x6f,0x62])][_0x30451c([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x2c24e6(){return _0x304f3e(_0x30451c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x876bad(_0x30451c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x30451c([0x73,0x74,0x61,0x74,0x65])]==_0x30451c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xbca993(){return _0x304f3e(_0x30451c([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 _0x2e885f(){return _0x304f3e(_0x30451c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x44257e(_0x2edb95){const _0x19002a=_0x143bf7();_0x488a4a[_0x19002a]=_0x30451c([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2edb95,_0x2edb95!=_0x30451c([0x56,0x61,0x6c,0x69,0x64])&&_0x4034c6();}function _0x143bf7(){const _0x8d40c5=window[_0x30451c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x30451c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x30451c([0x6e,0x6f,0x77])]())[_0x30451c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x30451c([0x2e]),'');let _0x58d3cc=_0x30451c([0x4b]);for(let _0x256a73=0x0;_0x256a73<_0x8d40c5[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x256a73+=0x2){let _0x85ea3=window[_0x30451c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8d40c5[_0x30451c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x256a73,_0x256a73+0x2));_0x85ea3>=_0x1bbbf3[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x85ea3-=_0x1bbbf3[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x58d3cc+=_0x1bbbf3[_0x85ea3];}return _0x58d3cc;}function _0x5f1cad(){const _0x5c8aa4=_0x1c7cb2[_0x30451c([0x73,0x70,0x6c,0x69,0x74])](_0x30451c([0x2e]));if(0x3!=_0x5c8aa4[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x18614e(_0x5c8aa4[0x1]);function _0x18614e(_0x136062){const _0x2ab6be=_0x345d9f(_0x136062);return _0x2ab6be&&_0x2d5133()?_0x2ab6be:null;function _0x2d5133(){const _0x1fee80=_0x2ab6be[_0x30451c([0x6a,0x74,0x69])],_0x511ea9=window[_0x30451c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fee80[_0x30451c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1fee80[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x460327={..._0x2ab6be,[_0x30451c([0x6a,0x74,0x69])]:_0x1fee80[_0x30451c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1fee80[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x460327[_0x30451c([0x76,0x63])],_0x42b473(_0x460327)==_0x511ea9;}}}async function _0x502921(){let _0x5510d6=!0x0;try{const _0x3789db=_0x1c7cb2[_0x30451c([0x73,0x70,0x6c,0x69,0x74])](_0x30451c([0x2e])),[_0x345bd3,_0x14b74e,_0x2f4f1f]=_0x3789db;return _0xf55514(_0x345bd3),await _0x4bc19a(_0x345bd3,_0x14b74e,_0x2f4f1f),_0x5510d6;}catch{return!0x1;}function _0xf55514(_0x17fcaa){const _0x4ebb00=_0x345d9f(_0x17fcaa);_0x4ebb00&&_0x4ebb00[_0x30451c([0x61,0x6c,0x67])]==_0x30451c([0x45,0x53,0x32,0x35,0x36])||(_0x5510d6=!0x1);}async function _0x4bc19a(_0x397323,_0x55fa04,_0xd9a32a){const _0xe4c9af=window[_0x30451c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x30451c([0x66,0x72,0x6f,0x6d])](_0x114eba(_0xd9a32a),_0x3cd9a6=>_0x3cd9a6[_0x30451c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xe3350=new window[(_0x30451c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x30451c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x397323+_0x30451c([0x2e])+_0x55fa04),_0x82149c=window[_0x30451c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x30451c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x82149c)return;const _0x1855cd=await _0x82149c[_0x30451c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x30451c([0x6a,0x77,0x6b]),_0x4e105c,{[_0x30451c([0x6e,0x61,0x6d,0x65])]:_0x30451c([0x45,0x43,0x44,0x53,0x41]),[_0x30451c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x30451c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x30451c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x82149c[_0x30451c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x30451c([0x6e,0x61,0x6d,0x65])]:_0x30451c([0x45,0x43,0x44,0x53,0x41]),[_0x30451c([0x68,0x61,0x73,0x68])]:{[_0x30451c([0x6e,0x61,0x6d,0x65])]:_0x30451c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1855cd,_0xe4c9af,_0xe3350)||(_0x5510d6=!0x1);}}function _0x345d9f(_0x135885){return _0x135885[_0x30451c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x30451c([0x65,0x79]))?JSON[_0x30451c([0x70,0x61,0x72,0x73,0x65])](_0x114eba(_0x135885)):null;}function _0x114eba(_0x15fee1){return window[_0x30451c([0x61,0x74,0x6f,0x62])](_0x15fee1[_0x30451c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x30451c([0x2b]))[_0x30451c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x30451c([0x2f])));}function _0x42b473(_0x32ad5a){let _0x6c7c6d=0x1505;function _0x26b82b(_0x3cfbd7){for(let _0x4771b6=0x0;_0x4771b6<_0x3cfbd7[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4771b6++){const _0x1e6e6d=_0x3cfbd7[_0x30451c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4771b6);_0x6c7c6d=(_0x6c7c6d<<0x5)+_0x6c7c6d+_0x1e6e6d,_0x6c7c6d&=_0x6c7c6d;}}function _0x2f1a2b(_0x5e806b){Array[_0x30451c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5e806b)?_0x5e806b[_0x30451c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2f1a2b):_0x5e806b&&typeof _0x5e806b==_0x30451c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x30451c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5e806b)[_0x30451c([0x73,0x6f,0x72,0x74])]()[_0x30451c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4347a2,_0x542df0])=>{_0x26b82b(_0x4347a2),_0x2f1a2b(_0x542df0);}):_0x26b82b(window[_0x30451c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5e806b));}return _0x2f1a2b(_0x32ad5a),_0x6c7c6d>>>0x0;}function _0x439da1(_0x10fd6e){return _0x10fd6e[_0x30451c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x30451c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x30451c([0x30]));}function _0x21c325(_0x59230a){return _0x59230a[_0x30451c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x30451c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x30451c([0x6a,0x6f,0x69,0x6e])]('');}function _0x304f3e(_0x311f02){return _0x488a4a[_0x30451c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x30451c([0x68,0x61,0x73])](_0x311f02);}function _0x876bad(_0x35fa96){return _0x488a4a[_0x30451c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x30451c([0x67,0x65,0x74])](_0x35fa96);}function _0x3ee88a(){}function _0x30451c(_0x305a2e){return _0x305a2e['map'](_0x48c81f=>String['fromCharCode'](_0x48c81f))['join']('');}_0x44257e(await _0x5cec0f());}(this);}['destroy'](){const _0x5c6c73=this['editor']['plugins']['get'](o),_0x485fb5=this['editor']['config']['get']('collaboration.channelId');for(const _0x2670ab of _0x5c6c73['getCommentThreads']({'channelId':_0x485fb5}))_0x5c6c73['_detachCommentThread'](_0x2670ab['id']),_0x5c6c73['_threads']['delete'](_0x2670ab['id']);super['destroy']();}['hasMarkerForId'](_0x288fd8){return this['getAllMarkersForId'](_0x288fd8)['length']>0x0;}['getAllMarkersForId'](_0x4e89e2){const _0x1dc02e=[];for(const _0x47a7f7 of this['editor']['model']['markers'])_0x47a7f7['name']['startsWith']('comment:'+_0x4e89e2)&&_0x1dc02e['push'](_0x47a7f7);return _0x1dc02e;}['scrollToThreadMarker'](_0x584fa1){setTimeout(()=>{const _0x5b2fa4=this['_getTargetForId'](_0x584fa1);if(!_0x5b2fa4)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x584fa1&&nt({'target':_0x5b2fa4[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x47cc52){this['editor']['model']['change'](()=>{for(const _0x3c8f62 of this['getAllMarkersForId'](_0x47cc52))this['editor']['editing']['reconvertMarker'](_0x3c8f62);});}['_attachArchivedThread'](_0x31588c){const _0x4d2035=this['editor']['plugins']['get'](o),_0x1df49d=this['editor']['plugins']['get'](b),_0x27a95f=_0x4d2035['getCommentThread'](_0x31588c);if(!_0x27a95f['isAttached']){const _0x38cbd2=_0x27a95f['attachTo'](()=>this['_getTargetForId'](_0x27a95f['id']));_0x1df49d['registerAnnotation'](_0x38cbd2),_0x27a95f['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x2082e7=this['editor'],_0x5b2cce=_0x2082e7['plugins']['get'](it);_0x2082e7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x4d7a05,_0x3c23db)=>{const {id:_0x20f917}=ft(_0x4d7a05['markerName']),_0x1b9cba=_0x2082e7['plugins']['get'](o)['getCommentThread'](_0x20f917),_0x312d07=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x20f917;let _0x19cda8;if(_0x1b9cba&&_0x1b9cba['isResolved']&&!_0x312d07&&_0x4d7a05['item'])return _0x3c23db['consumable']['consume'](_0x4d7a05['item'],'addMarker:'+_0x4d7a05['markerName']),_0x3c23db['consumable']['consume'](_0x4d7a05['item'],'removeMarker:'+_0x4d7a05['markerName']),null;const _0x155fc1=['ck-comment-marker'];return _0x312d07&&_0x155fc1['push']('ck-comment-marker--active'),_0x19cda8=_0x1b9cba?.['length']?_0x1b9cba['comments']['first']['author']['id']:_0x5b2cce['me']['id'],{'classes':_0x155fc1,'attributes':{'data-comment':_0x20f917,'data-author-id':_0x19cda8}};}}),_0x2082e7['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x1bf637,{options:_0x3473fa})=>{if(_0x3473fa['showCommentHighlights'])return null;const _0x19245f=_0x2082e7['plugins']['get'](o),_0x5a9d88=_0x2082e7['model']['markers']['get'](_0x1bf637),{id:_0x2c6dc3,part:_0xeb7e2f}=ft(_0x1bf637);return _0x5a9d88&&!_0x5a9d88['affectsData']||_0x3473fa['ignoreResolvedComments']&&_0x19245f['getCommentThread'](_0x2c6dc3)?.['isResolved']?null:{'group':'comment','name':_0xeb7e2f?_0x2c6dc3+':'+_0xeb7e2f:_0x2c6dc3};}}),_0x2082e7['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x500d7a,{writer:_0x4a0b5d})=>_0x4a0b5d['createElement']('$marker',{'data-name':'comment:'+_0x500d7a['getAttribute']('id')})}),_0x2082e7['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x3aa05d=this['editor'],_0x9026d9=_0x3aa05d['plugins']['get'](o),_0x41bd3a=new Set(),_0x22c323=new Set();_0x3aa05d['model']['document']['registerPostFixer'](_0x474693=>{let _0x58cce0=!0x1;for(const {name:_0x14ea95,data:_0x153721}of _0x3aa05d['model']['document']['differ']['getChangedMarkers']()){const {group:_0x542538,id:_0x4fd806}=ft(_0x14ea95);let _0x130cd7=_0x153721['newRange'];if('comment'!==_0x542538||!_0x130cd7)continue;const _0x548e59='$graveyard'===_0x130cd7['root']['rootName'];_0x548e59||(_0x130cd7=ht(_0x130cd7,_0x3aa05d['model']),!_0x130cd7||_0x130cd7['isCollapsed']||!_0x153721['newRange']||_0x130cd7['isEqual'](_0x153721['newRange']))?_0x3aa05d['model']['hasContent'](_0x130cd7)&&!_0x548e59?this['isThreadsLoadingPaused']?_0x41bd3a['add'](_0x14ea95):this['_handleThreadMarker'](_0x14ea95,_0x4fd806):(_0x22c323['add'](_0x14ea95),_0x41bd3a['delete'](_0x14ea95),_0x474693['removeMarker'](_0x14ea95),_0x58cce0=!0x0):(_0x474693['updateMarker'](_0x14ea95,{'range':_0x130cd7}),_0x58cce0=!0x0);}return _0x58cce0;}),this['on']('change:isThreadsLoadingPaused',(_0x149157,_0x1b339e,_0x520048)=>{if(!_0x520048&&_0x41bd3a['size'])for(const _0x4f2be8 of _0x41bd3a){const {id:_0x18885f}=ft(_0x4f2be8);_0x41bd3a['delete'](_0x4f2be8),_0x3aa05d['model']['markers']['get'](_0x4f2be8)&&this['_handleThreadMarker'](_0x4f2be8,_0x18885f);}}),this['listenTo'](_0x3aa05d['model']['document'],'change',()=>{for(const {name:_0x129e5a,data:{newRange:_0x12e460}}of _0x3aa05d['model']['document']['differ']['getChangedMarkers']()){const {group:_0x5e1071,id:_0x1b2a73}=ft(_0x129e5a);if('comment'!==_0x5e1071)continue;const _0x185996=_0x9026d9['getCommentThread'](_0x1b2a73),_0x3c0246=this['hasMarkerForId'](_0x1b2a73);_0x185996&&(!_0x185996['_hasTargetInContent']&&_0x12e460&&_0x3aa05d['editing']['view']['once']('render',()=>{const _0x1788a9=_0x3aa05d['plugins']['get'](y),_0x2190ea=_0x9026d9['_threadToController']['get'](_0x185996)['view'];_0x1788a9['getByInnerView'](_0x2190ea)['refreshVisibility']();},{'priority':'low'}),_0x185996['_hasTargetInContent']=_0x3c0246||!!_0x12e460),_0x12e460||(_0x22c323['add'](_0x129e5a),_0x41bd3a['delete'](_0x129e5a));}for(const _0x259449 of _0x22c323){const {id:_0x537e4f}=ft(_0x259449),_0x4c8764=_0x9026d9['getCommentThread'](_0x537e4f);if(_0x41bd3a['delete'](_0x259449),!_0x4c8764)continue;const _0x4ab060=this['hasMarkerForId'](_0x537e4f);_0x4ab060||_0x4c8764['isSubmitted']?_0x4ab060||_0x4c8764['unlinkedAt']||_0x4c8764['setUnlinkedAt'](new Date()):_0x4c8764['remove']();}_0x22c323['clear']();});}['_handleInitialThreads'](_0x1613dc){_0x1613dc['forEach'](_0x4d7d49=>{_0x4d7d49['unlinkedAt']&&this['_attachArchivedThread'](_0x4d7d49['id']);});}['_getTargetForId'](_0x11893a){const _0x1ff00b=this['editor'],_0x44c832=this['getAllMarkersForId'](_0x11893a);return et(_0x1ff00b['editing'],_0x44c832);}['_getTextContext'](_0x3dfd6c){const _0x4c67a4=this['getAllMarkersForId'](_0x3dfd6c);let _0x5cb030='',_0x3ff508=!0x1;for(const _0x2cf6f1 of _0x4c67a4){const _0x21717e=_0x2cf6f1['getRange']();for(const _0x505186 of Array['from'](_0x21717e['getItems']()))_0x505186['is']('$textProxy')?(_0x5cb030&&_0x3ff508&&(_0x5cb030+='\x20',_0x3ff508=!0x1),_0x5cb030+=_0x505186['data']):_0x3ff508=!0x0;_0x3ff508=!0x0;}return _0x5cb030['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x10434f,_0x1bd66c){const _0x3540bf=this['editor'],_0x56af04=_0x3540bf['plugins']['get'](o);let _0x34656b=_0x56af04['getCommentThread'](_0x1bd66c);const _0x22c46b=_0x3540bf['config']['get']('collaboration.channelId'),_0x196a71=_0x3540bf['plugins']['get'](b);if(_0x34656b&&(_0x34656b['unlinkedAt']&&_0x34656b['setUnlinkedAt'](null),_0x34656b['isAttached']))return _0x34656b;return!this['getAllMarkersForId'](_0x1bd66c)[0x0]['managedUsingOperations']?_0x3540bf['editing']['view']['once']('render',()=>{if(_0x56af04['getCommentThread'](_0x1bd66c))return;const _0x49ba32=_0x3540bf['plugins']['get'](y);_0x34656b=_0x56af04['openNewCommentThread']({'channelId':_0x22c46b,'threadId':_0x1bd66c,'target':()=>this['_getTargetForId'](_0x1bd66c),'context':{'type':'text','value':this['_getTextContext'](_0x1bd66c)}});const _0x21b7f0=_0x56af04['_threadToController']['get'](_0x34656b)['view'],_0x22c9b7=_0x49ba32['getByInnerView'](_0x21b7f0);_0x22c9b7&&_0x196a71['registerAnnotation'](_0x22c9b7);},{'priority':'low'}):_0x56af04['fetchCommentThread']({'channelId':_0x22c46b,'threadId':_0x1bd66c})['then'](_0x5d950c=>{if('destroyed'!==_0x3540bf['state']){if(_0x34656b=_0x5d950c,_0x34656b&&!_0x34656b['isAttached']){const _0x29813b=_0x34656b['attachTo'](()=>this['_getTargetForId'](_0x1bd66c));_0x196a71['registerAnnotation'](_0x29813b),_0x34656b['isResolved']&&this['_reconvertMarkers'](_0x1bd66c);}else{if(!_0x34656b){const _0xfb15ca=this['getAllMarkersForId'](_0x1bd66c);_0x3540bf['model']['change'](_0x1423d5=>{for(const _0x204263 of _0xfb15ca)_0x1423d5['removeMarker'](_0x204263);});}}}}),_0x34656b;}['_handleThreadMarker'](_0x1c0c55,_0x7633e0){const _0x2558d3=this['_attachMarkerToThread'](_0x1c0c55,_0x7633e0);_0x2558d3&&!_0x2558d3['context']&&_0x2558d3['setContext']({'type':'text','value':this['_getTextContext'](_0x7633e0)});}['_initAriaMarkerChangeAnnouncements'](){const _0x4f331b=this['editor'];rt(_0x4f331b['model'],({left:_0x27c124,entered:_0x1ca1a1})=>{for(const _0x4ebe02 of _0x27c124)if(mt(_0x4ebe02)){_0x4f331b['ui']['ariaLiveAnnouncer']['announce'](N(_0x4f331b['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x4bc853 of _0x1ca1a1)if(mt(_0x4bc853)){_0x4f331b['ui']['ariaLiveAnnouncer']['announce'](N(_0x4f331b['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x5c46b2)));break;}});}}function dt(_0x100c44,_0x29bca1){return _0x29bca1?_0x100c44+':'+_0x29bca1:_0x100c44;}function ht(_0x1d514e,_0x2a466a){const _0x190e53=_0x2a466a['schema'],_0x4d3b7f=_0x2a466a['createRange'](_0x1d514e['start']);for(const _0x4eda5a of _0x1d514e['getWalker']()){const {type:_0x9e4572,item:_0xd13f38,nextPosition:_0x1a63b2}=_0x4eda5a;if('text'===_0x9e4572||_0x190e53['isObject'](_0xd13f38)){const _0x43227b=_0x2a466a['createPositionBefore'](_0xd13f38);_0x4d3b7f['isCollapsed']&&(_0x4d3b7f['start']=_0x43227b),_0x4d3b7f['end']=_0x1a63b2;}}return _0x4d3b7f;}function mt(_0x151827){return'comment'===ft(_0x151827['name'])['group'];}class s extends _0x3d233f{['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 _0x55cb54=this['editor'],_0x1d79e4=_0x55cb54['plugins']['get'](o),_0x297f8e=_0x55cb54['plugins']['get'](r),_0x4a8090=_0x55cb54['plugins']['get'](y),_0x427dfd=_0x55cb54['plugins']['get'](b);_0x55cb54['ui']['componentFactory']['add']('comment',()=>{const _0x1c3977=this['_createUIButton'](_0x56f2fa);return _0x1c3977['tooltip']=!0x0,_0x1c3977;}),_0x55cb54['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0xf31b41)),_0x427dfd['addSourceCollector'](()=>{const _0x5575e2=[];for(const [_0x15e999,_0x4c372f]of _0x1d79e4['_threadToController']){const _0xb32b1e=_0x297f8e['getAllMarkersForId'](_0x15e999['id']),_0x19a11c=_0xb32b1e['map'](_0x358a9e=>_0x358a9e['getRange']());_0xb32b1e['length']>0x0&&_0x5575e2['push']([_0x4c372f['view'],_0x19a11c]);}return _0x5575e2;}),this['listenTo'](_0x4a8090,'change:activeAnnotations',(_0x5dc306,_0x263159,_0x5921c4)=>{const _0x52cb40=Array['from'](_0x5921c4)['map'](_0xe4509e=>_0xe4509e['innerView'])['find'](_0x57f197=>_0x1d79e4['_viewToController']['has'](_0x57f197));if(!_0x52cb40)return void(_0x297f8e['activeMarker']=null);const _0x3f59a6=_0x1d79e4['_viewToController']['get'](_0x52cb40)['model']['id'],_0x55b4bc='comment:'+_0x3f59a6;_0x3f59a6&&_0x297f8e['hasMarkerForId'](_0x3f59a6)?_0x297f8e['activeMarker']=_0x55b4bc:_0x297f8e['activeMarker']&&(_0x297f8e['activeMarker']=null);}),this['listenTo'](_0x1d79e4,'removeCommentThread',(_0x383981,{threadId:_0x2074ab,isFromAdapter:_0x5a4741})=>{!_0x5a4741&&_0x55cb54['ui']['focusTracker']['isFocused']&&_0x297f8e['hasMarkerForId'](_0x2074ab)&&_0x55cb54['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x1d79e4,'addComment',(_0x56a708,{threadId:_0x328e29,isFromAdapter:_0x42edd8})=>{if(_0x42edd8||!_0x297f8e['hasMarkerForId'](_0x328e29)||!_0x1d79e4['hasCommentThread'](_0x328e29))return;0x1===_0x1d79e4['getCommentThread'](_0x328e29)['length']&&(_0x55cb54['editing']['view']['focus'](),_0x56a708['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x115e45=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x59a2cc;for(const _0x5097a4 in _0x115e45){const _0x18f29e=_0x5097a4,_0x32ee0e=_0x115e45[_0x18f29e];if('commentsLicenseKeyValid'==_0x32ee0e||'commentsLicenseKeyInvalid'==_0x32ee0e||'commentsLicenseKeyExpired'==_0x32ee0e||'commentsLicenseKeyDomainLimit'==_0x32ee0e||'commentsLicenseKeyNotAllowed'==_0x32ee0e||'commentsLicenseKeyEvaluationLimit'==_0x32ee0e||'commentsLicenseKeyTrialLimit'==_0x32ee0e||'commentsLicenseKeyUsageLimit'==_0x32ee0e){delete _0x115e45[_0x18f29e],_0x59a2cc=_0x32ee0e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x59a2cc&&_0x115e45['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x59a2cc&&_0x115e45['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x59a2cc&&_0x115e45['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x59a2cc&&_0x115e45['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x59a2cc&&_0x115e45['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x59a2cc&&_0x115e45['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x59a2cc&&_0x115e45['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x398a20){const _0x8175fb=this['editor'],_0x441327=new _0x398a20(_0x8175fb['locale']),_0x28b826=_0x8175fb['commands']['get']('addCommentThread');return _0x441327['set']({'label':N(_0x8175fb['locale'],'Comment'),'icon':_0x417cca}),_0x441327['bind']('isEnabled')['to'](_0x28b826,'hasContent'),this['listenTo'](_0x441327,'execute',()=>{_0x28b826['execute']();}),_0x441327;}}class i extends _0x3d233f{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x4926a3){super(_0x4926a3),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x5e719a,_0x110804,_0x34eb31)=>{_0x34eb31?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x7f0638,_0x224b54]of this['editor']['commands'])_0x224b54['affectsData']&&'addCommentThread'!==_0x7f0638&&_0x224b54['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 _0x1b8b82=this['editor']['editing']['view']['document'];this['listenTo'](_0x1b8b82,'cut',_0x31d3dc=>_0x31d3dc['stop'](),{'priority':'highest'}),this['listenTo'](_0x1b8b82,'clipboardInput',_0x10ed4d=>_0x10ed4d['stop'](),{'priority':'highest'}),this['listenTo'](_0x1b8b82,'delete',_0x41b51f=>_0x41b51f['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x5645a0,_0x11729c]of this['editor']['commands'])_0x11729c['affectsData']&&'addCommentThread'!==_0x5645a0&&_0x11729c['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 _0x5769e4{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x72bad4){super(_0x72bad4),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x410860=this['context']['plugins']['get'](y);this['listenTo'](_0x410860,'_activateAnnotation',(_0x405a4c,_0x11363f)=>{for(const _0x309b78 of this['activeUIs']){const _0x320ac7=this['_uis']['get'](_0x309b78);(0x0,this['uisData']['get'](_0x309b78)['filter'])(_0x11363f)&&_0x320ac7['setActiveAnnotation'](_0x11363f);}}),this['listenTo'](_0x410860,'_deactivateAllAnnotations',()=>{for(const _0x2901df of this['activeUIs']){this['_uis']['get'](_0x2901df)['setActiveAnnotation'](null);}}),this['listenTo'](_0x410860['_visibleAnnotations'],'add',(_0x1de8ed,_0x482a42)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x482a42);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x2b0498){return this['activeUIs']['has'](_0x2b0498);}['activate'](_0x1b69fd,_0xb16033=this['defaultFilter']){const _0x574b87=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x1b69fd))throw new _0x3e31b7('annotationsuis-missing-ui',this,{'uiName':_0x1b69fd});this['isActive'](_0x1b69fd)&&this['deactivate'](_0x1b69fd),this['activeUIs']['add'](_0x1b69fd);const _0x48783c=new S();v({'source':_0x574b87['_visibleAnnotations'],'target':_0x48783c,'filter':_0xb16033}),this['uisData']['set'](_0x1b69fd,{'collection':_0x48783c,'filter':_0xb16033});const _0x3b1980=this['_uis']['get'](_0x1b69fd);_0x3b1980['attach'](_0x48783c),this['listenTo'](_0x3b1980,'change:activeAnnotation',(_0x542bfa,_0x169bf5,_0x3b02d7,_0x4b8328)=>{_0x4b8328&&_0x574b87['_removeActiveAnnotation'](_0x4b8328),_0x3b02d7&&_0x574b87['_addActiveAnnotation'](_0x3b02d7);});}['deactivate'](_0x13f114){if(this['activeUIs']['delete'](_0x13f114),!this['_uis']['has'](_0x13f114))throw new _0x3e31b7('annotationsuis-missing-ui',this,{'uiName':_0x13f114});const _0x35287b=this['_uis']['get'](_0x13f114);_0x35287b['detach'](),this['stopListening'](_0x35287b),this['uisData']['get'](_0x13f114)['collection']['destroy'](),this['uisData']['delete'](_0x13f114);}['switchTo'](_0x4c3681){if(!this['_uis']['has'](_0x4c3681))throw new _0x3e31b7('annotationsuis-missing-ui',this,{'uiName':_0x4c3681});const _0x3a67f8=this['context']['plugins']['get'](y),_0x1ded80=Array['from'](_0x3a67f8['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x4c3681);const _0x347848=this['_uis']['get'](_0x4c3681);_0x347848['setActiveAnnotation'](_0x1ded80),_0x347848['_setSelectedAnnotations']&&_0x1ded80&&_0x347848['_setSelectedAnnotations']([_0x1ded80]);}['deactivateAll'](){for(const _0x4e4b75 of this['activeUIs'])this['deactivate'](_0x4e4b75);}['register'](_0x1be95d,_0x1b19d5){if(this['_uis']['has'](_0x1be95d))throw new _0x3e31b7('annotationsuis-register-already-registered');if('function'!=typeof _0x1b19d5['attach']||'function'!=typeof _0x1b19d5['detach']||'function'!=typeof _0x1b19d5['setActiveAnnotation'])throw new _0x3e31b7('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x1be95d,_0x1b19d5);}['refilterAnnotations'](){const _0x5b9f2f=this['context']['plugins']['get'](y)['collection'],_0x1dc06d=new Map(),_0x32b45e=Array['from'](this['activeUIs']);for(const _0x44d0de of this['activeUIs']){const _0x5c7164=this['uisData']['get'](_0x44d0de)['collection'];for(const _0xa3e7f2 of _0x5c7164)_0x1dc06d['set'](_0xa3e7f2,_0x44d0de);}for(const _0x5322d3 of _0x5b9f2f){const _0x1678c3=_0x1dc06d['get'](_0x5322d3);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5322d3);const _0x3f7fb0=_0x32b45e['find'](_0x255716=>this['uisData']['get'](_0x255716)['filter'](_0x5322d3));_0x1678c3!==_0x3f7fb0&&(_0x1678c3&&this['uisData']['get'](_0x1678c3)['collection']['remove'](_0x5322d3),_0x3f7fb0&&this['uisData']['get'](_0x3f7fb0)['collection']['add'](_0x5322d3));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x22720a){const _0x54911c=[];for(const _0x582f4e of this['activeUIs']){(0x0,this['uisData']['get'](_0x582f4e)['filter'])(_0x22720a)&&_0x54911c['push'](_0x582f4e);}if(_0x54911c['length']>0x1)throw new _0x3e31b7('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x54911c,'annotationType':_0x22720a['type']});}}const _i=/* #__PURE__ -- @preserve */
32
+ Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0xf455a1){super(_0xf455a1);const _0x33331a=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 _0xeb7998(),this['focusCycler']=new _0x2fb93a({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x33331a['to']('class')],'style':{'minHeight':_0x33331a['to']('minHeight',_0x494f1c=>'number'==typeof _0x494f1c?_i(_0x494f1c+0xa):null)},'dir':_0xf455a1['uiLanguageDirection'],'role':'application','aria-label':N(_0xf455a1,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0xf455a1,'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',_0x3b1367=>{this['_updateItemPositionInFocusables'](_0x3b1367['source']);}),this['list']['forEach'](_0x3d0a7e=>{this['focusTracker']['add'](_0x3d0a7e['element']),this['_updateItemPositionInFocusables'](_0x3d0a7e);}),this['list']['on']('change',(_0x8b30e8,_0x4cce5c)=>{for(const _0x497f17 of _0x4cce5c['removed'])this['focusTracker']['remove'](_0x497f17['element']),this['focusables']['remove'](_0x497f17);for(const _0x9261bc of _0x4cce5c['added'])this['focusTracker']['add'](_0x9261bc['element']),this['_updateItemPositionInFocusables'](_0x9261bc);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x557a31){const _0x39dfd8=this['focusables']['getIndex'](_0x557a31);let _0x76686c,_0x483037;for(const _0x5dcb69 of this['focusables'])if(_0x557a31['top']<_0x5dcb69['top']){_0x76686c=_0x5dcb69;break;}if(_0x483037=_0x76686c?this['focusables']['getIndex'](_0x76686c):this['focusables']['length'],-0x1!==_0x39dfd8){if(_0x39dfd8===_0x483037-0x1)return;this['focusables']['remove'](_0x557a31),_0x483037=_0x76686c?this['focusables']['getIndex'](_0x76686c):this['focusables']['length'];}this['focusables']['add'](_0x557a31,_0x483037);}}const Ot=/* #__PURE__ -- @preserve */
33
+ Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x1f8c7c){super(_0x1f8c7c),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x227e61,_0x2a4685)=>_0x227e61+_0x2a4685),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x1a630a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x1a630a['to']('isAnimationDisabled',_0x16d49a=>_0x16d49a?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x1a630a['to']('top',_0x39b368=>Ot(_0x39b368))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x112b7f=this['element']['clientHeight'];_0x112b7f&&(this['height']=_0x112b7f);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x5769e4{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x50f109){super(_0x50f109),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 _0x1220c1=this['context']['config']['get']('sidebar.container');_0x1220c1&&this['setContainer'](_0x1220c1);}['setContainer'](_0x389e4d){if(!g(_0x389e4d))throw new _0x3e31b7('sidebar-setcontainer-invalid-element');this['container']=_0x389e4d;}['_attachToContainer']({viewClass:_0x3b7cfa='',spaceBetweenItems:_0x41cc45=0x19}={}){if(!g(this['container']))throw new _0x3e31b7('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x3b7cfa,this['_spaceBetweenItems']=_0x41cc45;}['rearrange']({removedAnnotation:_0x3e4db7,previousAnnotation:_0x3f7f56,nextAnnotation:_0x3f9881}){const _0x543b60=this['getSidebarItemView'](_0x3e4db7);this['view']['list']['remove'](_0x543b60),this['_destroySidebarItemView'](_0x3e4db7),_0x3f7f56&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3f7f56)),_0x3f9881&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3f9881)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x1e1611,activatedAnnotation:_0x58f4f4,disableAnimationOnActivatedAnnotation:_0x23ecdb}){if(this['_activeAnnotation']=_0x58f4f4,_0x1e1611){_0x1e1611['isActive']=!0x1;const _0x30c441=this['getSidebarItemView'](_0x1e1611);_0x30c441&&_0x23ecdb&&(_0x30c441['isAnimationDisabled']=!0x1);}if(_0x58f4f4){const _0x5843a8=this['getSidebarItemView'](_0x58f4f4);_0x5843a8&&(_0x58f4f4['isActive']=!0x0,_0x23ecdb&&(_0x5843a8['isAnimationDisabled']=!0x0,_0x5843a8['top']+=0x1),this['_alignToTargetRect'](_0x5843a8));}}['_detachFromContainer'](_0x1d56e1){if(this['view']['element']['remove'](),_0x1d56e1){for(const _0x501a0c of _0x1d56e1)this['_destroySidebarItemView'](_0x501a0c);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x35277c,_0x34153e){_0x34153e||(_0x34153e=_0x35277c['view']);const _0x3587ed=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x3587ed,_0x35277c),this['_annotationToSidebarItemView']['set'](_0x35277c,_0x3587ed),_0x3587ed['content']['add'](_0x34153e),this['listenTo'](_0x35277c['view'],'change:targetRect',(_0x392343,_0x114d5e,_0x293c9f)=>{const _0x179bfc=this['_getTargetTop'](_0x35277c,_0x293c9f);_0x3587ed['_targetTop']!=_0x179bfc&&(_0x3587ed['_targetTop']=_0x179bfc,this['_setItemTop'](_0x3587ed,_0x179bfc));}),this['listenTo'](_0x3587ed,'change:top',()=>{this['_recalculate'](_0x3587ed,'top');}),this['listenTo'](_0x3587ed,'change:bottom',()=>{this['_recalculate'](_0x3587ed,'bottom');}),this['_alignToTargetRect'](_0x3587ed);const _0x2ca47f=this['_getItemBefore'](_0x3587ed);if(_0x2ca47f)this['_alignAfterItem'](_0x2ca47f,_0x3587ed)||this['_alignToTargetRect'](_0x3587ed);else this['_alignToTargetRect'](_0x3587ed);return this['_updateLastItem'](),this['view']['list']['add'](_0x3587ed),_0x3587ed;}['_alignForTopChange'](_0x287229){if(!_0x287229['content']['length'])return;const _0x1cf261=this['_getItemBefore'](_0x287229);if(!_0x1cf261)return;const _0x5d50ca=this['_sidebarItemViewToAnnotation']['get'](_0x1cf261),_0x57ff59=this['_activeAnnotation'];_0x57ff59&&_0x57ff59===_0x5d50ca?this['_alignAfterItem'](_0x1cf261,_0x287229):this['_alignBeforeItem'](_0x287229,_0x1cf261);}['_alignForBottomChange'](_0x1f74bd){if(!_0x1f74bd['content']['length'])return;const _0x651546=this['_getItemAfter'](_0x1f74bd);if(!_0x651546)return;const _0x1e51bd=this['_sidebarItemViewToAnnotation']['get'](_0x651546),_0x1222c5=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x181730=this['_activeAnnotation'];_0x181730&&_0x181730===_0x1e51bd&&_0x1222c5?(this['_alignBeforeItem'](_0x651546,_0x1f74bd),this['_alignAfterItem'](_0x1f74bd,_0x651546)):_0x181730&&_0x181730===_0x1e51bd?this['_alignBeforeItem'](_0x651546,_0x1f74bd):this['_alignAfterItem'](_0x1f74bd,_0x651546);}['_recalculate'](_0x5e1fa3,_0x238f42){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x377a17,changedProp:_0x150b3c}of this['_recalculateBuffer'])'top'===_0x150b3c?this['_alignForTopChange'](_0x377a17):this['_alignForBottomChange'](_0x377a17);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x5e1fa3,'changedProp':_0x238f42});}['getSidebarItemView'](_0x1c4ebb){return this['_annotationToSidebarItemView']['get'](_0x1c4ebb);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x47f6fc){const _0xff12c4=this['getSidebarItemView'](_0x47f6fc);this['stopListening'](_0xff12c4),this['stopListening'](_0x47f6fc['view']),_0xff12c4['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x47f6fc),this['_sidebarItemViewToAnnotation']['delete'](_0xff12c4);}['_createSidebarView'](){const _0x432f9e=new H(this['context']['locale']);return _0x432f9e['render'](),this['on']('change:_lastItem',(_0x274e50,_0x4ad10b,_0x5dfbc2,_0x4669d0)=>{_0x4669d0&&_0x432f9e['unbind']('minHeight'),_0x5dfbc2?_0x432f9e['bind']('minHeight')['to'](_0x5dfbc2,'bottom'):_0x432f9e['minHeight']=null;}),_0x432f9e;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x263f3f){const _0x29aeab=this['_sidebarItemViewToAnnotation']['get'](_0x263f3f),_0x2c1a1f=_0x29aeab&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x29aeab)-0x1);return _0x2c1a1f&&this['getSidebarItemView'](_0x2c1a1f)||null;}['_getItemAfter'](_0x16396f){const _0x5a995d=this['_sidebarItemViewToAnnotation']['get'](_0x16396f),_0xbccf91=_0x5a995d&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x5a995d)+0x1);return _0xbccf91&&this['getSidebarItemView'](_0xbccf91)||null;}['_alignBeforeItem'](_0x1c800a,_0x5a0805){_0x1c800a['updateHeight']();const _0xc38a15=G(_0x5a0805['bottom']+this['_spaceBetweenItems'],_0x1c800a['top']);return!!_0xc38a15&&(this['_setItemTop'](_0x5a0805,_0x5a0805['top']-_0xc38a15),!0x0);}['_alignAfterItem'](_0x1bda2e,_0x2405f4){_0x1bda2e['updateHeight']();const _0x28a019=G(_0x1bda2e['bottom']+this['_spaceBetweenItems'],_0x2405f4['top']);return!!_0x28a019&&(this['_setItemTop'](_0x2405f4,_0x2405f4['top']+_0x28a019,!0x1),!0x0);}['_alignToTargetRect'](_0x1aca48){const _0x395e03=this['_sidebarItemViewToAnnotation']['get'](_0x1aca48);if(!_0x395e03||!_0x395e03['target']||!_0x395e03['targetRect'])return;const _0x4a6ad9=this['_getTargetTop'](_0x395e03,_0x395e03['targetRect']);this['_setItemTop'](_0x1aca48,_0x4a6ad9);}['_getTargetTop'](_0x1be1f6,_0x58a9be){if(null===_0x58a9be)return 0x0;if(_0x1be1f6['target']instanceof _0x4d09a0)return _0x58a9be['top'];{const _0x599ca2=new _0x4d09a0(this['view']['element'])['top'];return _0x58a9be['top']-_0x599ca2;}}['_setItemTop'](_0x5475df,_0x1a50c6,_0x478323=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x478323&&(_0x1a50c6=Math['max'](_0x1a50c6,this['_getMaxAvailableTop'](_0x5475df))),_0x5475df['top']=_0x1a50c6;}['_getMaxAvailableTop'](_0x154712){let _0x42aa89=this['_getItemBefore'](_0x154712),_0x4b3c47=0x0;for(;_0x42aa89;)_0x42aa89['updateHeight'](),_0x4b3c47+=this['_spaceBetweenItems']+_0x42aa89['height'],_0x42aa89=this['_getItemBefore'](_0x42aa89);return _0x4b3c47;}}function G(_0x344ef4,_0x256e9c){return Math['max'](_0x344ef4-_0x256e9c,0x0);}function g(_0x3490a3){return null!==_0x3490a3&&'object'==typeof _0x3490a3&&0x1===_0x3490a3['nodeType'];}class e extends _0x5769e4{['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(_0x1e4d0a){super(_0x1e4d0a),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x1b1bd5(),this['_refreshPositioningDebounced']=_0x1f36ab(()=>{_0x1e4d0a['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x284de8=this['context']['plugins']['get'](j),_0x4ebadb=this['context']['plugins']['get'](z);_0x284de8['register']('wideSidebar',this),_0x4ebadb['container']&&_0x284de8['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x15973c){if(_0x15973c===this['activeAnnotation'])return;const _0x522e01=this['context']['plugins']['get'](z);_0x522e01['_activeAnnotation']=_0x15973c;const _0x40a49f=this['activeAnnotation'];_0x522e01['refresh']({'blurredAnnotation':_0x40a49f,'activatedAnnotation':_0x15973c}),this['activeAnnotation']=_0x15973c;}['attach'](_0x1091a9){this['annotations']=_0x1091a9;const _0x281c2a=this['context']['plugins']['get'](z);if(_0x281c2a['_annotations']=_0x1091a9,this['isAttached'])throw new _0x3e31b7('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x281c2a,'set:container',()=>{this['detach'](),this['listenTo'](_0x281c2a,'change:container',_0x2adf6b=>{_0x2adf6b['off'](),this['attach'](_0x1091a9);});}),_0x281c2a['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x3e2873=_0x24169f=>{_0x24169f['updateTargetRect'](),_0x281c2a['addAnnotation'](_0x24169f);};for(const _0x222aeb of _0x1091a9)_0x3e2873(_0x222aeb);this['listenTo'](_0x1091a9,'add',(_0x3577fe,_0xa6c356)=>{_0x3e2873(_0xa6c356);}),this['listenTo'](_0x1091a9,'remove',(_0x2785c0,_0x4b8481,_0x1e79de)=>{_0x281c2a['rearrange']({'removedAnnotation':_0x4b8481,'previousAnnotation':_0x1091a9['get'](_0x1e79de-0x1),'nextAnnotation':_0x1091a9['get'](_0x1e79de+0x1)}),_0x4b8481===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x1091a9,'focus',(_0x3250aa,_0x799a30)=>{this['setActiveAnnotation'](_0x799a30);}),this['listenTo'](_0x1091a9,'blur',()=>{this['setActiveAnnotation'](null);});const _0x3de035=this['context']instanceof _0x18e5c3?this['context']['editors']:new _0x1b1bd5([this['context']]);for(const _0x44b8be of _0x3de035)this['_integrateWithEditorAnnotations'](_0x44b8be);this['listenTo'](_0x3de035,'add',(_0x185580,_0x187f44)=>{this['listenTo'](_0x187f44,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x187f44);});}),this['listenTo'](_0x3de035,'remove',(_0xe312c0,_0x1f70a4)=>{_0x1f70a4['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x1f70a4['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x3e31b7('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x45bade=this['context']['plugins']['get'](z);_0x45bade['_detachFromContainer'](this['annotations']),this['stopListening'](_0x45bade),this['stopListening'](this['annotations']),this['context']instanceof _0x18e5c3&&this['stopListening'](this['context']['editors']);for(const _0x270299 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x270299);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x36bdc4){if(!_0x36bdc4['plugins']['has']('EditorAnnotations'))return;const _0x22e0e7=_0x36bdc4['plugins']['get']('EditorAnnotations'),_0x36af33=()=>{const _0x27c5bd=_0x22e0e7['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x27c5bd[0x0]||null);};this['listenTo'](_0x22e0e7,'refresh',_0x36af33),this['listenTo'](_0x22e0e7,'blur',(_0x33d5cc,{isAnnotationTracked:_0x104e18})=>{this['activeAnnotation']&&_0x104e18(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x22e0e7,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x272f4a=>{_0x22e0e7['hasDomSelection']()&&(_0x36af33(),_0x272f4a['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x22e0e7);}['_destroyEditorAnnotationsIntegration'](_0x47f6a8){this['stopListening'](_0x47f6a8),this['_editorAnnotations']['remove'](_0x47f6a8);}}class C extends _0x56f2fa{['counterView'];constructor(_0x59daaa){super(_0x59daaa);const _0x4ce452=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x16b73b,_0x3449ca)=>_0x16b73b?'...':_0x3449ca['toString']()),this['set']('annotationType',''),this['icon']=_0x417cca,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x4ce452['to']('annotationType',_0x35f7e7=>'ck-annotation-counter__badge--'+_0x35f7e7),_0x4ce452['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x4ce452['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x5769e4{['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(_0x2c850b){super(_0x2c850b),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x1a9ea6())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x1b1bd5(),this['_refreshPositioningDebounced']=_0x1f36ab(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x21805a(this['context']['locale']),this['balloonPanelView']=new _0x251547(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x4da67f){this['annotations']=_0x4da67f;const _0x226852=this['context']['plugins']['get'](z),_0x5a53de=this['balloonPanelView'];if(_0x226852['_annotations']=_0x4da67f,this['isAttached'])throw new _0x3e31b7('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x226852,'set:container',()=>{this['detach'](),this['listenTo'](_0x226852,'change:container',_0x3888b2=>{_0x3888b2['off'](),this['attach'](_0x4da67f);});}),_0x226852['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x2f9a20=_0x12a98e=>{const _0x2479b8=new C(this['context']['locale']);_0x226852['addAnnotation'](_0x12a98e,_0x2479b8),this['_annotationToNarrowView']['set'](_0x12a98e,_0x2479b8),_0x2479b8['bind']('isDirty','annotationType','number')['to'](_0x12a98e['view'],'isDirty','type','length'),_0x2479b8['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x5a53de['content']['first']!==_0x12a98e['view']?(this['_showBalloon'](_0x12a98e),_0x12a98e['view']['element']['focus'](),this['setActiveAnnotation'](_0x12a98e)):this['setActiveAnnotation'](null);});};for(const _0x1228b9 of _0x4da67f)_0x2f9a20(_0x1228b9);this['listenTo'](_0x4da67f,'add',(_0x48dea4,_0x50581e)=>{_0x2f9a20(_0x50581e);}),this['listenTo'](_0x4da67f,'remove',(_0x10ef34,_0x671dce,_0x43e43e)=>{this['_annotationToNarrowView']['get'](_0x671dce)['destroy'](),this['_annotationToNarrowView']['delete'](_0x671dce),_0x226852['rearrange']({'removedAnnotation':_0x671dce,'previousAnnotation':_0x4da67f['get'](_0x43e43e-0x1),'nextAnnotation':_0x4da67f['get'](_0x43e43e+0x1)}),_0x671dce===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x4da67f,'focus',(_0x47e619,_0x40f70a)=>{this['setActiveAnnotation'](_0x40f70a);}),this['listenTo'](_0x4da67f,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x38af0e,_0x4dce4b)=>{_0x4dce4b['keyCode']===_0x496e11['esc']&&_0x5a53de['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x5a53de['content']['first']),this['_hideBalloon'](),_0x4dce4b['stopPropagation'](),_0x4dce4b['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x1b72e6,_0x41c8c2)=>{const _0x41d4f4=_0x41c8c2['target'];_0x5a53de['isVisible']&&_0x5a53de['element']['contains'](_0x41d4f4)||_0x226852['view']['element']['contains'](_0x41d4f4)||_0x1b72e6['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x4bc842=>_0x4bc842['contains'](_0x41d4f4))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x4e11be=this['context']instanceof _0x18e5c3?this['context']['editors']:new _0x1b1bd5([this['context']]);for(const _0x38e8eb of _0x4e11be)this['_integrateWithEditorAnnotations'](_0x38e8eb);this['listenTo'](_0x4e11be,'add',(_0x4ff6ab,_0x263569)=>{this['listenTo'](_0x263569,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x263569);});}),this['listenTo'](_0x4e11be,'remove',(_0x1f0176,_0x3428ca)=>{_0x3428ca['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x3428ca['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x4de885){if(_0x4de885===this['activeAnnotation'])return;const _0x3c336d=this['context']['plugins']['get'](z);if(_0x3c336d['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x4de885,'disableAnimationOnActivatedAnnotation':!0x0}),_0x4de885)_0x3c336d['getSidebarItemView'](_0x4de885)?this['_showBalloon'](_0x4de885):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x4de885;}['detach'](){if(!this['isAttached'])throw new _0x3e31b7('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x3cbc06=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x5b0638=>_0x5b0638['destroy']()),this['_annotationToNarrowView']['clear'](),_0x3cbc06['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x18e5c3&&this['stopListening'](this['context']['editors']);for(const _0x5a4ffe of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x5a4ffe);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'](_0x50c87b){if(!_0x50c87b['plugins']['has']('EditorAnnotations'))return;const _0x497311=_0x50c87b['plugins']['get']('EditorAnnotations'),_0x4bebe8=this['context']['plugins']['get'](z),_0x9146a0=this['annotations'],_0x113aca=this['balloonPanelView'],_0x19e029=()=>{const _0x1bc62d=_0x497311['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x1bc62d),this['setActiveAnnotation'](_0x1bc62d[0x0]||null);};this['listenTo'](_0x497311,'refresh',_0x19e029),this['listenTo'](_0x497311,'blur',(_0x200e16,{isAnnotationTracked:_0xf24cea})=>{this['activeAnnotation']&&_0xf24cea(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x497311,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x9146a0,'blur',_0x150cfd=>{_0x497311['hasDomSelection']()&&_0x150cfd['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x251e2a,_0x148ed9)=>{const _0x42613b=_0x148ed9['target'];_0x113aca['isVisible']&&_0x113aca['element']['contains'](_0x42613b)||_0x4bebe8['view']['element']['contains'](_0x42613b)||this['activeAnnotation']&&_0x497311['hasDomSelection']()&&(_0x19e029(),_0x251e2a['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x497311);}['_destroyEditorAnnotationsIntegration'](_0x1ee603){_0x1ee603&&(this['stopListening'](_0x1ee603),this['_editorAnnotations']['remove'](_0x1ee603));}['_setSelectedAnnotations'](_0x52bcf6){for(const _0x223178 of this['_selectedAnnotations'])_0x52bcf6['includes'](_0x223178)||this['_manuallyClosedAnnotationViews']['delete'](_0x223178['view']);this['_selectedAnnotations']=_0x52bcf6;}['_refreshPositioning'](){const _0x4d9604=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x4d9604['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0xa19634){if(this['_manuallyClosedAnnotationViews']['has'](_0xa19634['view']))return;const _0x2c481b=this['balloonPanelView']['content']['first'];_0x2c481b!==_0xa19634['view']?(_0x2c481b&&this['_detachListeners'](_0x2c481b),this['_attachListeners'](_0xa19634['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0xa19634['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x1e693c=this['balloonPanelView']['content']['first'],_0x12f4dd=_0x1e693c&&this['annotations']['getByView'](_0x1e693c);if(!_0x12f4dd||!this['_annotationToNarrowView']['has'](_0x12f4dd))return;const _0x4c981f=this['_annotationToNarrowView']['get'](_0x12f4dd)['element'],_0x2f0b7c=(function(){const _0x36a47c=_0x251547['defaultPositions'];return[_0x36a47c['southArrowNorthEast'],_0x36a47c['northArrowSouthEast'],_0x36a47c['southArrowNorth'],_0x36a47c['northArrowSouth'],_0x36a47c['southArrowNorthWest'],_0x36a47c['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x4c981f,'positions':_0x2f0b7c});}['_hideBalloon'](){const _0x18c8a1=this['balloonPanelView'],_0x2a2ec4=_0x18c8a1['content']['first'];_0x2a2ec4&&(this['_detachListeners'](_0x2a2ec4),_0x18c8a1['unpin'](),_0x18c8a1['content']['clear']());}['_attachListeners'](_0x45cd45){this['listenTo'](_0x45cd45,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x45cd45,'Esc',(_0x47bb3d,_0x55475c)=>{this['_manuallyClosedAnnotationViews']['add'](_0x45cd45),this['_hideBalloon'](),_0x55475c();});}['_detachListeners'](_0x285354){this['stopListening'](_0x285354);}}class c extends _0x3d233f{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[b,_0x1d3115,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1388c7){super(_0x1388c7),_0x1388c7['editing']['view']['addObserver'](_0x30b63e),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x1388c7['plugins']['get'](_0x1d3115),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0xa3ce97=this['editor']['plugins']['get'](j);_0xa3ce97['context']===this['editor']&&(_0xa3ce97['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0xfdc084,_0x8ba29a)=>{const _0x3284ac=this['_balloon'];if(this['isAttached']&&_0x3284ac['visibleView']){const _0x2465cd=this['annotations']['getByView'](_0x3284ac['visibleView']);_0x2465cd&&this['_closeAnnotation'](_0x2465cd),_0x8ba29a();}}));}['afterInit'](){const _0x1ccc20=this['editor']['plugins']['get'](j);_0x1ccc20['context']===this['editor']&&(_0x1ccc20['hasActive']()||_0x1ccc20['switchTo']('inline'));}['setActiveAnnotation'](_0x355839){_0x355839!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x355839&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x355839)&&this['_addAnnotationToBalloon'](_0x355839,!0x0),_0x355839['isActive']=!0x0),_0x355839||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x355839);}['attach'](_0x31c808){this['annotations']=_0x31c808;const _0x237e42=this['editor']['plugins']['get'](j),_0x18236e=this['_balloon'];if(this['isAttached'])throw new _0x3e31b7('inlineannotations-attach-already-attached',this);if(_0x237e42['context']!==this['editor'])throw new _0x3e31b7('inlineannotations-not-allowed-with-context',this);const _0x37ea9b=this['editor']['plugins']['get'](b);this['listenTo'](_0x37ea9b,'refresh',()=>{const _0x45c1bc=_0x37ea9b['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x11267d,_0x40fad7;!this['_forceRefresh']&&(_0x11267d=_0x45c1bc,_0x40fad7=this['_selectedAnnotations'],_0x11267d['length']===_0x40fad7['length']&&_0x11267d['every'](_0x44f24=>_0x40fad7['includes'](_0x44f24)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x45c1bc),this['setActiveAnnotation'](_0x45c1bc[0x0]||null));}),this['listenTo'](_0x37ea9b,'blur',(_0x1cb8fa,{isAnnotationTracked:_0x5287a0})=>{this['activeAnnotation']&&_0x5287a0(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x52f9b9,_0x4f24fe,_0x57ec14)=>{_0x57ec14||this['setActiveAnnotation'](null);}),this['listenTo'](_0x31c808,'remove',(_0x2b9a1f,_0x5cebff)=>{this['_removeAnnotationFromBalloon'](_0x5cebff),_0x5cebff===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x18236e,'change:visibleView',(_0x3040cf,_0xb21668,_0x3098fd,_0xffcdbb)=>{_0xffcdbb&&this['stopListening'](_0xffcdbb);const _0x3b7229=_0x31c808['getByView'](_0x3098fd);_0x3098fd&&_0x3b7229&&(this['listenTo'](_0x3098fd,'change:height',()=>{_0x18236e['updatePosition']();}),this['listenTo'](_0x3098fd,'Esc',()=>{this['_closeAnnotation'](_0x3b7229),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x3b7229&&this['setActiveAnnotation'](_0x3b7229));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x18236e['visibleView']&&(_0x31c808['getByView'](_0x18236e['visibleView'])&&_0x18236e['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 _0x3e31b7('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0xd84a19 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0xd84a19);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0xff18cf){for(const _0xf85df6 of this['_selectedAnnotations'])_0xff18cf['includes'](_0xf85df6)||this['_manuallyClosed']['delete'](_0xf85df6);for(const _0xf63592 of this['annotations'])_0xff18cf['includes'](_0xf63592)||this['_removeAnnotationFromBalloon'](_0xf63592);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x25bfcd of _0xff18cf)this['_addAnnotationToBalloon'](_0x25bfcd);}this['_selectedAnnotations']=_0xff18cf;}['_addAnnotationToBalloon'](_0x173c10,_0x3dd9c3=!0x1){this['_manuallyClosed']['has'](_0x173c10)||(this['_addedAnnotations']['has'](_0x173c10)||this['_balloon']['hasView'](_0x173c10['view'])||(this['_addedAnnotations']['add'](_0x173c10),this['_balloon']['add']({'stackId':_0x173c10['view']['id'],'view':_0x173c10['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x173c10)}})),_0x3dd9c3&&this['_balloon']['showStack'](_0x173c10['view']['id']));}['_getBalloonTargetForAnnotation'](_0xc286c1){const _0xa11ac=_0xc286c1['target'],_0x5d8b5f=this['editor']['editing']['view'],_0x5dade4=_0x5d8b5f['document']['selection']['getFirstRange'](),_0x342e2f=_0x5d8b5f['domConverter']['viewRangeToDom'](_0x5dade4);if(_0x342e2f['collapse'](!0x0),_0xa11ac){if(_0xa11ac instanceof _0x4d09a0)return _0xa11ac;let _0x49ff62=[];for(const _0x1a69ec of _0xa11ac)_0x49ff62['push'](...F(_0x1a69ec['getClientRects']()));_0x49ff62=function(_0x9acb7c){const _0x2edb5a=[];let _0x53c8ba=_0x9acb7c[0x0];for(let _0x124792=0x1;_0x124792<_0x9acb7c['length'];_0x124792++)P(_0x53c8ba,_0x9acb7c[_0x124792])?_0x53c8ba['width']+=_0x9acb7c[_0x124792]['width']:(_0x2edb5a['push'](_0x53c8ba),_0x53c8ba=_0x9acb7c[_0x124792]);return _0x2edb5a['push'](_0x53c8ba),_0x2edb5a;}(_0x49ff62);const _0x720903=_0x342e2f['getBoundingClientRect']();return _0x49ff62['find'](_0x24d4e7=>_0x24d4e7['top']<=_0x720903['top']&&_0x24d4e7['bottom']>=_0x720903['bottom']&&_0x24d4e7['left']<=_0x720903['left']&&_0x24d4e7['right']>=_0x720903['right'])||_0x49ff62[0x0];}return _0xc286c1['targetRect']||_0x342e2f;}['_removeAnnotationFromBalloon'](_0x204373){this['_addedAnnotations']['has'](_0x204373)&&this['_balloon']['hasView'](_0x204373['view'])&&(this['_addedAnnotations']['delete'](_0x204373),this['_balloon']['remove'](_0x204373['view']));}['_closeAnnotation'](_0x4f142e){this['_manuallyClosed']['add'](_0x4f142e),this['_removeAnnotationFromBalloon'](_0x4f142e);}}function F(_0x4d2f46){return Array['from'](_0x4d2f46)['map'](DOMRect['fromRect']);}function P(_0x4fad32,_0x21d10b){return _0x4fad32['top']===_0x21d10b['top']&&_0x4fad32['bottom']===_0x21d10b['bottom']&&_0x4fad32['right']===_0x21d10b['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x1954b7,_0x342869){super(_0x1954b7),this['set']('isEmpty',!_0x342869['length']),this['focusTracker']=new _0xeb7998(),this['_annotationViews']=_0x342869,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x2fb93a({'focusables':_0x342869,'focusTracker':this['focusTracker']}),this['listenTo'](_0x342869,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x342869,'remove',(_0x108503,_0x13e762)=>{_0x13e762['isActive']&&this['focus'](),_0x342869['length']||(this['isEmpty']=!0x0);});const _0x257a92=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x1954b7,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x342869},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x257a92['if']('isEmpty','ck-hidden',_0x9bff4a=>!_0x9bff4a)]},'children':[{'text':N(_0x1954b7,'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 _0x19bf06 of this['_annotationViews'])this['focusTracker']['add'](_0x19bf06['element']);this['_annotationViews']['on']('change',(_0x3c285c,{added:_0x1638c2,removed:_0x25a21e})=>{for(const _0x37baa0 of _0x1638c2)this['focusTracker']['add'](_0x37baa0['element']);for(const _0x1e9938 of _0x25a21e)this['focusTracker']['remove'](_0x1e9938['element']);});}}class p extends _0x5769e4{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x2c99b6){super(_0x2c99b6),this['archivedThreads']=new _0x1b1bd5();}['init'](){const _0x4a6ac9=this['context'],_0x49532d=_0x4a6ac9['plugins']['get'](o),_0x159dc6=_0x4a6ac9['plugins']['get'](y);this['listenTo'](_0x49532d,'addCommentThread',(_0x525cd1,{threadId:_0x35f735})=>{const _0x55eb42=_0x49532d['getCommentThread'](_0x35f735);_0x55eb42['archivedAt']&&this['archivedThreads']['add'](_0x55eb42,this['_calculatePosition'](_0x55eb42['archivedAt'])),this['listenTo'](_0x55eb42,'change:archivedAt',(_0x5014b1,_0x361930,_0x15d65d)=>{_0x15d65d?this['archivedThreads']['has'](_0x55eb42)||this['archivedThreads']['add'](_0x55eb42,this['_calculatePosition'](_0x55eb42['archivedAt'])):this['archivedThreads']['has'](_0x55eb42)&&this['archivedThreads']['remove'](_0x55eb42);});}),this['listenTo'](_0x49532d,'removeCommentThread',(_0x282e5d,{threadId:_0x4a723b})=>{const _0x344dd5=_0x49532d['getCommentThread'](_0x4a723b);this['stopListening'](_0x344dd5),this['archivedThreads']['has'](_0x344dd5)&&this['archivedThreads']['remove'](_0x344dd5);},{'priority':'highest'}),this['listenTo'](_0x159dc6['collection'],'focus',(_0x315a6e,_0x5a94d0)=>{_0x5a94d0['isVisible']||(_0x5a94d0['isActive']=!0x0,_0x159dc6['activate'](_0x5a94d0));});}['_calculatePosition'](_0x16e192){const _0x49d6ec=[...this['archivedThreads']]['findIndex'](_0x91a3dc=>_0x91a3dc['archivedAt']<_0x16e192);return _0x49d6ec>-0x1?_0x49d6ec:this['archivedThreads']['length'];}}class a extends _0x3d233f{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x30ecf7];}constructor(_0x2f0ba6){super(_0x2f0ba6),this['annotationViews']=new _0x16b584(),this['_pendingThreads']=[];}['init'](){const _0x1aa02f=this['editor'],_0xcae9ed=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x1aa02f['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x56f2fa,!0x0)),_0x1aa02f['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x2190a6=this['_createCommentsArchiveButton'](_0xf31b41);return _0x2190a6['set']({'role':'menuitemcheckbox'}),_0x2190a6;});const _0x1abfb7=_0x1aa02f['plugins']['get'](p),_0x1ac732=_0x1aa02f['plugins']['get']('Annotations'),_0x3bb107=_0x1aa02f['plugins']['get']('CommentsRepository');_0x1abfb7['archivedThreads']['forEach'](_0x1544f6=>{this['_handleNewThread'](_0x1544f6);}),this['listenTo'](_0x1abfb7['archivedThreads'],'add',(_0x52001e,_0x10b819)=>{this['_handleNewThread'](_0x10b819);}),this['listenTo'](_0x1ac732['collection'],'add',(_0x10d456,_0xe48a79)=>{const _0x1a54c8=this['_pendingThreads']['find'](_0x339bd9=>{const _0x10d368=_0x3bb107['_threadToController']['get'](_0x339bd9);return _0x10d368&&_0xe48a79['innerView']===_0x10d368['view'];});if(_0x1a54c8){const _0x59d98b=this['_calculatePosition'](_0x1a54c8['archivedAt']);this['_addAnnotationToArchive'](_0xe48a79,_0x59d98b),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x1a54c8),0x1);}}),this['listenTo'](_0x1abfb7['archivedThreads'],'remove',(_0x1fd613,_0x87027d)=>{const _0xccabaf=_0x1aa02f['config']['get']('collaboration.channelId');if(!_0xccabaf||_0x87027d['channelId']===_0xccabaf){if(this['_pendingThreads']['includes'](_0x87027d))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x87027d),0x1);else{const _0x5ee458=_0x3bb107['_threadToController']['get'](_0x87027d),_0x4ba413=_0x1ac732['getByInnerView'](_0x5ee458['view']);this['annotationViews']['remove'](_0x4ba413['view']),this['stopListening'](_0x4ba413),this['stopListening'](_0x4ba413['focusableElements']);}}}),this['listenTo'](_0x1ac732['collection'],'add',(_0x2ec778,_0x19df92)=>{this['listenTo'](_0x19df92,'escape',_0xcae9ed);}),this['listenTo'](_0x1ac732['collection'],'remove',(_0xc2c7,_0x56de7e)=>{this['stopListening'](_0x56de7e,'escape',_0xcae9ed);});}['_addAnnotationToArchive'](_0x5c66e8,_0x58a320){this['listenTo'](_0x5c66e8,'set:isVisible',_0x3a8b34=>{_0x3a8b34['return']=!0x1,_0x3a8b34['stop']();}),this['annotationViews']['add'](_0x5c66e8['view'],_0x58a320);}['_handleNewThread'](_0x3db7c6){const _0x11cc6b=this['editor']['plugins']['get']('CommentsRepository'),_0x39c0a1=this['editor']['plugins']['get']('Annotations'),_0x8ed0ea=this['editor']['config']['get']('collaboration.channelId');if(!_0x8ed0ea||_0x3db7c6['channelId']===_0x8ed0ea){const _0x16e72e=_0x11cc6b['_threadToController']['get'](_0x3db7c6);if(!_0x16e72e)return void this['_pendingThreads']['push'](_0x3db7c6);const _0x17b43b=this['_calculatePosition'](_0x3db7c6['archivedAt']),_0x10e9bd=_0x39c0a1['getByInnerView'](_0x16e72e['view']);_0x10e9bd['isVisible']&&_0x39c0a1['_visibleAnnotations']['remove'](_0x10e9bd),this['_addAnnotationToArchive'](_0x10e9bd,_0x17b43b);}}['_calculatePosition'](_0x11b7e2){const _0x57055f=this['editor']['config']['get']('collaboration.channelId'),_0x27faf5=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x4a1a5e=>_0x4a1a5e['channelId']===_0x57055f)['findIndex'](_0x54b043=>_0x54b043['archivedAt']<_0x11b7e2);return _0x27faf5<0x0||_0x27faf5>this['annotationViews']['length']?this['annotationViews']['length']:_0x27faf5-0x1;}['_toggleDialog'](){const _0x34234e=this['editor'],_0x25e299=_0x34234e['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x34234e['locale'],this['annotationViews'])),'commentsArchive'===_0x25e299['id']?_0x25e299['hide']():_0x25e299['show']({'id':'commentsArchive','title':N(_0x34234e['locale'],'COMMENTS_ARCHIVE'),'icon':_0x13c696,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x3e7464['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x128e25,_0x2a93e3=!0x1){const _0x51ee79=this['editor']['locale'],_0x358ae1=this['editor']['plugins']['get']('Dialog'),_0x24c8bd=new _0x128e25(_0x51ee79);return _0x24c8bd['bind']('isEnabled')['to'](this,'isEnabled'),_0x24c8bd['bind']('isOn')['to'](_0x358ae1,'id',_0x3adf62=>'commentsArchive'===_0x3adf62),_0x24c8bd['set']({'label':N(_0x51ee79,'COMMENTS_ARCHIVE'),'icon':_0x13c696,'isToggleable':!0x0}),_0x2a93e3&&(_0x24c8bd['tooltip']=!0x0),this['listenTo'](_0x24c8bd,'execute',()=>this['_toggleDialog']()),_0x24c8bd;}['_hideDialogOnAnnotationEscape']=_0xd3175d=>{const _0x328acd=_0xd3175d['source'];if(!this['annotationViews']['has'](_0x328acd['view']))return;const _0x521b69=this['editor']['plugins']['get']('Dialog');_0x521b69['isOpen']&&'commentsArchive'===_0x521b69['id']&&(_0x521b69['hide'](),_0xd3175d['stop']());};}class gi extends _0x3d233f{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{ot 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,vt as CommentThreadController,ie as CommentThreadInputView,gt as CommentThreadView,Tt as CommentView,gi as Comments,p as CommentsArchive,a as CommentsArchiveUI,r as CommentsEditing,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};