@ckeditor/ckeditor5-comments 45.1.0 → 45.2.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/build/comments.js +1 -1
  2. package/dist/index.js +9 -9
  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 +1 -1
  161. package/src/annotations/view/sidebarview.js +1 -1
  162. package/src/annotations/widesidebar.js +1 -1
  163. package/src/comments/addcommentthreadcommand.js +1 -1
  164. package/src/comments/commentsarchive.js +1 -1
  165. package/src/comments/commentsarchiveui.js +1 -1
  166. package/src/comments/commentsediting.js +1 -1
  167. package/src/comments/commentsrepository.js +3 -3
  168. package/src/comments/commentsui.js +1 -1
  169. package/src/comments/integrations/clipboard.js +1 -1
  170. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  171. package/src/comments/integrations/importword.js +1 -1
  172. package/src/comments/integrations/showcommenthighlights.js +1 -1
  173. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  174. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  175. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  176. package/src/comments/ui/commentthreadcontroller.js +2 -2
  177. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  178. package/src/comments/ui/view/basecommentview.js +1 -1
  179. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  180. package/src/comments/ui/view/commentcontentview.js +1 -1
  181. package/src/comments/ui/view/commentinputview.js +1 -1
  182. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  183. package/src/comments/ui/view/commentslistview.js +1 -1
  184. package/src/comments/ui/view/commentthreadheadercontextview.js +1 -1
  185. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  186. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  187. package/src/comments/ui/view/commentthreadview.js +2 -2
  188. package/src/comments/ui/view/commentview.js +2 -2
  189. package/src/comments.js +1 -1
  190. package/src/commentsonly.js +1 -1
  191. package/src/index.js +1 -1
  192. package/src/utils/common-translations.js +1 -1
  193. package/src/utils/createmutationobserver.js +1 -1
package/dist/index.js CHANGED
@@ -20,12 +20,12 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Editor as _0x39e708,ContextPlugin as _0x3c22fb,PendingActions as ht,Command as _0xfbedbc,Plugin as _0x3e155f,Context as _0x49d7c6}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x33434e,uid as _0x1fe468,KeystrokeHandler as jt,FocusTracker as _0x4b4d8d,diff as _0x4f7541,Collection as _0x508354,Rect as _0x44e78c,CKEditorError as _0x369546,first as _0x38b0a5,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as xt,DomEmitterMixin as _0x2ff123,keyCodes as _0x5d23d3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x38f705,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x41339c,trimHtml as _0x394005,LateFocusDropdownButtonView as _0x44c954,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x357028}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as yt,debounce as _0xaf86be}from'es-toolkit/compat';import{IconUndo as _0x544892,IconCheck as _0x5a8293,IconPencil as _0x7d29fe,IconRemoveComment as _0x5ec47b,IconThreeVerticalDots as _0x1024e2,IconAddComment as _0x5dec5b,IconCommentsArchive as _0x4c7eff}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as Vt,InlineEditableUIView as $t,EditorUI as Rt,View as kt,FocusCycler as _0x12ac84,ButtonView as _0x5ae41a,ViewCollection as _0x143e0c,createDropdown as _0x245262,ListView as _0x25b9d2,focusChildOnDropdownOpen as _0x29a31f,ListItemView as _0x4f5f53,MenuBarMenuListItemButtonView as _0x39588d,BodyCollection as _0x3b4750,BalloonPanelView as _0x1e208c,ContextualBalloon as _0x12283a,Dialog as _0x19a869,DialogViewPosition as _0x513643}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as St,enablePlaceholder as Ft,MouseObserver as _0x37f8d0}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as qt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as zt,ShiftEnter as Bt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Et}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Gt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Jt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Kt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x201029}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0xd6cd62}from'@ckeditor/ckeditor5-widget/dist/index.js';class Ct extends/* #__PURE__ -- @preserve */
24
- _0x33434e(){['model'];['view'];constructor(_0x2de246,_0x15ad44){super(),this['model']=_0x2de246,this['model']['_isAttached']=!0x0,this['view']=_0x15ad44,this['listenTo'](_0x15ad44,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x15ad44,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x15ad44,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x15ad44,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x15ad44,'addComment',(_0x101850,_0x1474bb)=>this['addComment'](_0x1474bb)),this['listenTo'](_0x15ad44,'updateComment',(_0x4ad832,_0xd1443c,_0x4c802c)=>this['updateComment'](_0xd1443c,_0x4c802c)),this['listenTo'](_0x15ad44,'removeComment',(_0x391f00,_0x5edcb6)=>this['removeComment'](_0x5edcb6));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x497444){this['model']['addComment']({'content':_0x497444,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x53af3c,_0x158cf1){this['model']['getComment'](_0x53af3c)['update']({'content':_0x158cf1});}['removeComment'](_0x3c302a){this['model']['getComment'](_0x3c302a)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function E(_0x317c71,_0x5ca864,_0x311b13){const t=_0x317c71['t'];switch(_0x5ca864){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'},_0x311b13);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'},_0x311b13);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'},_0x311b13);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'},_0x311b13);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x311b13);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'},_0x311b13);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'},_0x311b13);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'},_0x311b13);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 Ut extends Vt{['main'];['editable'];constructor(_0x5b2fde,_0x30d3ae){super(_0x5b2fde);const _0x45e503=_0x1fe468();this['main']=this['createCollection'](),this['editable']=new $t(_0x5b2fde,_0x30d3ae,void 0x0,{'label':()=>E(_0x5b2fde,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x5b2fde['uiLanguageDirection'],'lang':_0x5b2fde['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x45e503},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Ot extends Rt{['view'];constructor(_0x41be12){super(_0x41be12),this['view']=new Ut(_0x41be12['locale'],_0x41be12['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x3484b4=this['editor']['editing']['view'],_0x5d9518=this['view']['editable'],_0xda33e3=_0x3484b4['document']['getRoot']();_0x5d9518['name']=_0xda33e3['rootName'],this['view']['render']();const _0x9f0399=_0x5d9518['element'];this['setEditableElement'](_0x5d9518['name'],_0x9f0399),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3484b4['attachDomRoot'](_0x9f0399),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Nt=[qt,zt,Bt,Et,Gt,Jt,Kt];class Qt extends/* #__PURE__ -- @preserve */
25
- _0x33434e(_0x39e708){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Nt)());constructor(_0x170a8a={}){function _0x5f1dad(_0x59b2c7){return _0x59b2c7['map'](_0x3deb16=>String['fromCharCode'](_0x3deb16))['join']('');}(_0x170a8a=Object['assign']({},_0x170a8a))['plugins']||(_0x170a8a['plugins']=Qt['defaultPlugins']),super(_0x170a8a),this['ui']=new Ot(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x5f1dad([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f1dad([0x76,0x69,0x65,0x77])][_0x5f1dad([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5f1dad([0x61,0x75,0x74,0x6f]),this[_0x5f1dad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5f1dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5f1dad([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5f1dad([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5f1dad([0x6f,0x6b])});}['create'](){const _0x550e63=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x550e63))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0xf09929=>{const _0x289ff0=this['model']['document']['getRoot'](),_0x4d88e9=_0x289ff0&&_0x289ff0['getChild'](_0x289ff0['childCount']-0x1);_0xf09929['setSelection'](_0x4d88e9,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x1f84e3=this['editing']['view'],_0x4d2a9e=_0x1f84e3['document']['getRoot'](),_0x3a488a=_0x4d2a9e['getChild'](0x0);_0x4d2a9e['childCount']>0x1||!_0x3a488a||'p'!=_0x3a488a['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x1f84e3,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x3a488a['placeholder']=this['placeholder']),Ft({'view':_0x1f84e3,'element':_0x3a488a,'keepOnFocus':!0x0}),this['placeholderElement']=_0x3a488a);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x26279e,_0x5da9e6={}){super(_0x26279e),this['editor']=null,this['_editorConfig']=_0x5da9e6,this['set']('value',_0x5da9e6['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',E(_0x26279e,'Reply...')),this['set']('submitLabel',E(_0x26279e,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x4b4d8d(),this['focusCycler']=new _0x12ac84({'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',(_0x37b780,_0x384e31)=>{this['cancelButtonView']['fire']('execute'),_0x384e31();}),this['keystrokes']['set']('Ctrl+Enter',(_0x4f69d3,_0x308fba)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x308fba());}),this['on']('submit',(_0x51fe49,_0x108350)=>{_0x108350['length']>0xfde8?(alert(E(_0x26279e,'TOO_LONG_COMMENT_ALERT',[_0x108350['length'],0xfde8])),_0x51fe49['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Qt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0xb14fcb=this['editor'];this['element']['insertBefore'](_0xb14fcb['ui']['element'],this['element']['firstChild']),_0xb14fcb['model']['document']['on']('change',()=>this['value']=_0xb14fcb['getData']()),_0xb14fcb['bind']('placeholder')['to'](this),this['focusables']['add'](_0xb14fcb['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x12d8f7){-0x1===_0x12d8f7?(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:_0x1c7edf}=this,_0x18e2e8=new _0x5ae41a(_0x1c7edf);return _0x18e2e8['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x18e2e8['withText']=!0x0,_0x18e2e8['bind']('label')['to'](this,'submitLabel'),_0x18e2e8['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x18e2e8['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x581724,_0x18af9b)=>!_0x18af9b&&!!_0x581724['trim']()),_0x18e2e8;}['_createCancelButton'](){const {locale:_0x1bea75}=this,_0x11be9e=new _0x5ae41a(_0x1bea75);return _0x11be9e['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x11be9e['label']=E(_0x1bea75,'Cancel'),_0x11be9e['withText']=!0x0,_0x11be9e['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x11be9e;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x54c886=>{this['focusTracker']['add'](_0x54c886['element']);}),this['focusables']['on']('change',(_0x45c721,_0x4fdae8)=>{for(const _0x48f851 of Array['from'](_0x4fdae8['added'])['reverse']())this['focusTracker']['add'](_0x48f851['element']);});}}class ie extends kt{constructor(_0x3ff7cc,_0x53acca,_0x5810c3){super(_0x3ff7cc),this['commentInputView']=new os(_0x3ff7cc,_0x5810c3),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x33e949,_0x1432c1)=>_0x33e949||!!_0x1432c1),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 _0x38f705(_0x3ff7cc,_0x53acca),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'](_0x3214e6){this['commentInputView']['focus'](_0x3214e6);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x28bf92,_0x577513)=>{const {submitButtonView:_0x13902e,cancelButtonView:_0xed5927,editor:_0x5e944b}=this['commentInputView'];[_0x13902e['element'],_0xed5927['element'],_0x5e944b?_0x5e944b['editing']['view']['getDomRoot']():null]['filter'](_0x17e8a2=>_0x17e8a2)['some'](_0xc5420f=>_0xc5420f['contains'](_0x577513['target']))||(this['focus'](),_0x577513['preventDefault']());});}}class cs extends kt{constructor(_0x19d4ec){super(_0x19d4ec);const _0x59a16f=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x59a16f['to']('count',_0x510cc0=>E(_0x19d4ec,'NUMBER_OF_COMMENTS',_0x510cc0))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x5c6f26,_0x3bad9c,_0x1f2d04){super(_0x5c6f26);const _0x454dde=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x3bad9c['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x3bad9c,this['_config']=_0x1f2d04,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x4b4d8d(),this['keystrokes']=new jt(),this['focusCycler']=new _0x12ac84({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5451ef=>this['commentViews']['map'](_0x4cbe7f=>_0x4cbe7f['element'])['includes'](_0x5451ef['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x5c6f26),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x327ddc=>_0x327ddc-this['_config']['maxCommentsWhenCollapsed']);for(const _0x226f56 of _0x3bad9c['comments'])this['_handleNewCommentModel'](_0x226f56);this['_handleInfoComment'](),this['listenTo'](_0x3bad9c['comments'],'add',(_0x4a9628,_0x5c59c2)=>{const _0x2a1302=this['_calculatePosition'](_0x5c59c2);this['length']++,this['_handleNewCommentModel'](_0x5c59c2,_0x2a1302),this['refreshVisibleViews']();}),this['listenTo'](_0x3bad9c['comments'],'remove',(_0x31049a,_0x4cd4b5)=>{this['length']--,this['_handleRemoveCommentModel'](_0x4cd4b5),this['refreshVisibleViews']();}),this['listenTo'](_0x3bad9c,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x3bad9c,'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',_0x454dde['if']('length','ck-hidden',_0x2987d7=>!_0x2987d7)],'aria-label':E(_0x5c6f26,'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'](_0x1a3c5c){-0x1===_0x1a3c5c?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x1c3c9a of this['commentViews'])_0x1c3c9a['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x2a706b,_0xa7a9c1){const _0x4598cf=new this['_config']['CommentView'](this['locale'],_0x2a706b,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x4598cf['viewUid']=_0x2a706b['id'],_0x4598cf['delegate']('removeComment')['to'](this),_0x4598cf['delegate']('updateComment')['to'](this),_0x4598cf['delegate']('resolveCommentThread')['to'](this),_0x4598cf['delegate']('editorReady')['to'](this),_0x4598cf['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x4598cf,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x4598cf,_0xa7a9c1);}['_calculatePosition'](_0x4c64ee){const _0x1abf11=this['_model']['_findOptimalIndex'](_0x4c64ee);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x4c64ee['authoredAt']?_0x1abf11-0x1:_0x1abf11:_0x1abf11-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x5bdfcc={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':E(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x5bdfcc,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x5bdfcc));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x3321cf){const _0x4c398c=this['commentViews']['remove'](_0x3321cf['id']);this['stopListening'](_0x4c398c),_0x4c398c['isEditMode']&&this['_updateHasDirtyComment'](),_0x4c398c['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x1d93ec=>_0x1d93ec['isEditMode']);}['_rearrangeCollapse'](){const _0x4550c2=function(_0x1cf6f1){const _0x360528=new _0x508354();for(const _0x56d30f of _0x1cf6f1)_0x360528['add'](_0x56d30f);return _0x360528;}(this['commentViews']),_0x16b154=this['_collapsedCommentsView']['count'];for(let _0x119105=0x1;_0x119105<=_0x16b154;_0x119105++)_0x4550c2['remove'](0x1);for(const _0x3aa320 of _0x4550c2)_0x3aa320['collapse']();_0x16b154>0x0&&_0x4550c2['add'](this['_collapsedCommentsView'],0x1),ns(_0x4f7541(Array['from'](this['visibleViews']),Array['from'](_0x4550c2)),this['visibleViews'],_0x4550c2);}['_rearrangeExpand'](){ns(_0x4f7541(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x1014c0 of this['visibleViews'])_0x1014c0['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x17a7b5=>{this['focusTracker']['add'](_0x17a7b5['element']),this['keystrokes']['listenTo'](_0x17a7b5['element']);}),this['commentViews']['on']('change',(_0x136bc3,_0x2dca82)=>{for(const _0x303628 of _0x2dca82['removed'])this['focusTracker']['remove'](_0x303628['element']),this['keystrokes']['stopListening'](_0x303628['element']);for(const _0x3b7832 of Array['from'](_0x2dca82['added'])['reverse']())this['focusTracker']['add'](_0x3b7832['element']),this['keystrokes']['listenTo'](_0x3b7832['element']);});}}function ns(_0x1d9541,_0x44e964,_0x385b79){let _0x3adbfc=0x0;for(const _0x1f5845 of _0x1d9541)switch(_0x1f5845){case'insert':_0x44e964['add'](_0x385b79['get'](_0x3adbfc),_0x3adbfc),_0x3adbfc++;break;case'delete':_0x44e964['remove'](_0x3adbfc);break;case'equal':_0x3adbfc++;}}class as extends kt{constructor(_0x5ba5f9){super(_0x5ba5f9);const _0x3e930d=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x3e930d['to']('contextValue',_0x12e3b8=>E(_0x5ba5f9,'THREAD_CONTEXT_LABEL',_0x12e3b8)),'tabindex':-0x1},'children':[{'text':_0x3e930d['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x5ad86b,_0x511e91){super(_0x5ad86b);const _0x1244ef=this['bindTemplate'];this['_model']=_0x511e91,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x4b4d8d(),this['keystrokes']=new jt(),this['focusCycler']=new _0x12ac84({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x44c61e=>!!_0x44c61e),this['bind']('contextValue')['to'](this['_model'],'context',_0x4979ba=>_0x4979ba&&_0x4979ba['value']?this['_trimContextValue'](_0x4979ba['value']):E(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',_0x1244ef['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 _0x38a71e=new _0x5ae41a(this['locale']);return _0x38a71e['label']=E(this['locale'],'Reopen'),_0x38a71e['tooltip']=E(this['locale'],'Reopen'),_0x38a71e['icon']=_0x544892,_0x38a71e['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xe28897=>!_0xe28897),_0x38a71e['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3ca9b2,_0x8fb1ed)=>_0x3ca9b2&&_0x8fb1ed),_0x38a71e['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x38a71e;}['_trimContextValue'](_0x14c394){if(_0x14c394['length']<0x96)return _0x14c394;const _0x3cb21d=_0x14c394['lastIndexOf']('\x20',0x93);return _0x14c394['substring'](0x0,_0x3cb21d>-0x1?_0x3cb21d:0x93)+'...';}['_attachContextActions'](){const _0xcaff90=this['element']['querySelector']('.ck-context'),_0x4bcff3=_0xcaff90['querySelector']('.ck-context__value');this['listenTo'](_0xcaff90,'mouseenter',()=>{_0x4bcff3['offsetWidth']<_0x4bcff3['scrollWidth']&&_0xcaff90['classList']['add']('overlay');}),this['listenTo'](_0xcaff90,'mouseleave',()=>{_0xcaff90['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x5d25b5 of this['focusables'])this['focusTracker']['add'](_0x5d25b5['element']),this['keystrokes']['listenTo'](_0x5d25b5['element']);}['_createContextView'](){const _0x5e2bbb=new as(this['locale']);return _0x5e2bbb['bind']('contextValue')['to'](this),_0x5e2bbb;}}class ts extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x4b08b6,_0x523917,_0x15e179,_0x11068d){super(_0x4b08b6),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x523917,this['_localUser']=_0x15e179,this['_config']=_0x11068d,this['commentThreadHeaderView']=new Xt(_0x4b08b6,_0x523917),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x4b08b6,E(_0x4b08b6,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x4b08b6,_0x523917,Object['assign']({'CommentView':this['_config']['CommentView']},_0x11068d)),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',(_0x4d84b7,_0x33be3d)=>_0x4d84b7||!!_0x33be3d),this['bind']('isUnlinked')['to'](_0x523917,'unlinkedAt',_0x59f925=>!!_0x59f925),this['bind']('ariaLabel')['to'](this,'length',_0x1688fa=>{const _0x5a2028=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return E(this['locale'],'COMMENT_THREAD_LABEL',[_0x1688fa,_0x5a2028]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x4b4d8d(),this['keystrokes']=new jt(),this['focusCycler']=new _0x12ac84({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x247172=>_0x247172['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),Zt(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x2a4e9e=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2f0da1=_0x2a4e9e['commentInputView'];return _0x2a4e9e['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x2f0da1,'value',(_0xc1e284,_0x20b439,_0xb64642,_0x134db3,_0x48c4dc)=>!!_0x48c4dc||!!_0x134db3&&_0xb64642&&!_0x20b439||_0xc1e284&&_0xb64642&&!_0x20b439),_0x2f0da1['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x279f77,_0x2b7982,_0x2b6802)=>{let _0x5394ff;return _0x5394ff=_0x2b6802&&_0x2b7982?'Reply\x20to\x20reopen\x20discussion...':_0x279f77?'Reply...':'Write\x20a\x20comment...',E(this['locale'],_0x5394ff);}),_0x2f0da1['bind']('submitLabel')['to'](this,'length',_0x2489d2=>E(this['locale'],_0x2489d2?'Reply':'Comment')),_0x2f0da1['on']('submit',(_0x1a3659,_0x556a3a)=>{this['fire']('addComment',_0x556a3a),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x2f0da1['on']('cancel',()=>{this['focus']();}),_0x2f0da1['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x2f0da1['on']('cancel',_0x1bbfb1=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x1bbfb1['stop']());}),this['on']('change:isActive',(_0x10b24e,_0x418cbc,_0xdbb901)=>{_0xdbb901||this['length']||_0x2f0da1['value']||this['fire']('removeCommentThread');}),_0x2a4e9e;}}class vt extends/* #__PURE__ -- @preserve */
27
- ti(ts){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x348d82,_0x45b428,_0x440b5c,_0x267d33){super(_0x348d82,_0x45b428,_0x440b5c,_0x267d33),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x348d82,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0xa59429,_0x3c897f,_0x3c3491)=>{_0x3c3491||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x2aea58,_0x3ea71e,_0x3be38f)=>{_0x3be38f&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x1873dd=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x1873dd['if']('isActive','ck-thread--active'),_0x1873dd['if']('isUnlinked','ck-thread--unlinked'),_0x1873dd['if']('isConfirm','ck-thread--remove-confirmation'),_0x1873dd['to']('actionIndicator',_0x2235d2=>_0x2235d2?'ck-thread--'+_0x2235d2:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x1873dd['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 _0x438a55 of this['commentsListView']['commentViews'])_0x438a55['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x5cd2c4}=this,_0x1aedb6=this['commentsListView']['commentViews']['get'](0x0);_0x1aedb6===this['_boundFirstCommentView']||_0x1aedb6['isSystemComment']||(this['_boundFirstCommentView']=_0x1aedb6,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x1aedb6,'actionIndicator',_0x111a73=>'remove'===_0x111a73?'remove':null),_0x1aedb6['placeholder']=E(_0x5cd2c4,'Write\x20a\x20comment...'),_0x1aedb6['removeButton']['on']('execute',_0x2745fb=>{_0x2745fb['stop'](),this['showConfirm'](E(_0x5cd2c4,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x1aedb6['focus']();}),_0x1aedb6['actionBar']['add'](this['resolveButton'],0x0),_0x1aedb6['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x1b39ab=new _0x41339c(this['locale']);return _0x1b39ab['label']=E(this['locale'],'Resolve'),_0x1b39ab['tooltip']=E(this['locale'],'Resolve'),_0x1b39ab['icon']=_0x5a8293,_0x1b39ab['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x1b39ab['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x26c394=>!_0x26c394),_0x1b39ab['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x5b3d62,_0x3f2ccb)=>_0x5b3d62&&!_0x3f2ccb),_0x1b39ab['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x1b39ab;}['_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(_0x44b99c){super(_0x44b99c),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0xf1d7e5,_0x4dde16,_0x1e34e6)=>{this['element']['innerHTML']=_0x1e34e6;}),this['element']['innerHTML']=this['content'];}}class hs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x25e091,_0x19efea,_0xc2751f){super(_0x25e091),this['_model']=_0x19efea,this['_config']=_0xc2751f,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x19efea,'content',_0x19efea,'authoredAt',(_0x218951,_0x108d7d)=>E(_0x25e091,'COMMENT_ARIA_LABEL',[_0x19efea['author']['name'],_0xc2751f['formatDateTime'](_0x108d7d),new DOMParser()['parseFromString'](_0x218951,'text/html')['body']['textContent'],_0x19efea['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x25e091,E(_0x25e091,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x143e0c(),this['focusTracker']=new _0x4b4d8d(),this['keystrokes']=new jt(),this['focusCycler']=new _0x12ac84({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1511a4=>_0x1511a4['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']?E(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):E(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?E(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):E(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0xf0c193=new es(this['locale']);return _0xf0c193['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x32d6cb,_0x434b85)=>_0x434b85?_0x394005(_0x32d6cb,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x32d6cb),_0xf0c193;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x529ec8=new os(this['locale'],this['_config']['editorConfig']);return _0x529ec8['value']=this['_model']['content'],_0x529ec8['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x529ec8['submitLabel']=E(this['locale'],'Save'),_0x529ec8['on']('submit',(_0x58299d,_0x26abbf)=>{this['fire']('updateComment',this['_model']['id'],_0x26abbf),this['switchToDisplayMode'](),this['focus']();}),_0x529ec8['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x529ec8['once']('editorReady',()=>{_0x529ec8['focus']();}),_0x529ec8['createEditor'](),_0x529ec8['delegate']('editorReady')['to'](this),_0x529ec8['delegate']('editorDestroyed')['to'](this),_0x529ec8;}['_setupKeyboardNavigation'](){const _0x37075b=this['element'];this['keystrokes']['listenTo'](_0x37075b);for(const _0xd2f41d of this['focusables'])this['focusTracker']['add'](_0xd2f41d['element']),this['keystrokes']['listenTo'](_0xd2f41d['element']);this['focusables']['on']('change',(_0xf29dd8,_0x43b2b)=>{for(const _0x179dcf of _0x43b2b['removed'])this['focusTracker']['remove'](_0x179dcf['element']),this['keystrokes']['stopListening'](_0x179dcf['element']);for(const _0x191ed0 of _0x43b2b['added'])this['focusTracker']['add'](_0x191ed0['element']),this['keystrokes']['listenTo'](_0x191ed0['element']);}),this['keystrokes']['set']('enter',(_0x2f56b9,_0x5eb2f4)=>{_0x37075b===_0x2f56b9['target']&&(this['focusCycler']['focusFirst'](),_0x5eb2f4());}),this['keystrokes']['set']('esc',(_0x3fb842,_0x448acd)=>{_0x37075b!==_0x3fb842['target']&&(this['focus'](),_0x448acd());});}}class gt extends/* #__PURE__ -- @preserve */
28
- ti(hs){['actionBar'];['userView'];constructor(_0x18c26a,_0x5b246d,_0x5cd9a8){super(_0x18c26a,_0x5b246d,_0x5cd9a8),this['set']('actionIndicator',null),this['set']('placeholder',E(_0x18c26a,'Reply...')),this['bind']('authoredAt')['to'](_0x5b246d),this['bind']('resolvedAt')['to'](_0x5b246d),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 _0x38f705(_0x18c26a,_0x5b246d['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x5b246d,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0xb53ce2=this['bindTemplate'],_0x23984a=[{'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':_0xb53ce2['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xb53ce2['to']('authoredAt',_0xc68d76=>this['_config']['formatDateTime'](_0xc68d76))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0xb53ce2['if']('isEditMode','ck-comment__actions--hidden'),_0xb53ce2['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']&&_0x23984a['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0xb53ce2['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0xb53ce2['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0xb53ce2['if']('isEditMode','ck-comment--edit'),_0xb53ce2['if']('isSystemComment','ck-comment--info'),_0xb53ce2['to']('actionIndicator',_0x3397e4=>_0x3397e4?'ck-comment--'+_0x3397e4:'')],'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':_0x23984a}]}]};}['_createEditButton'](){const _0x3d4452=new _0x5ae41a(this['locale']);return _0x3d4452['label']=E(this['locale'],'Edit'),_0x3d4452['icon']=_0x7d29fe,_0x3d4452['withText']=!0x0,_0x3d4452['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x3d4452['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x31f9e6=>!_0x31f9e6),_0x3d4452['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x3d4452['on']('execute',()=>this['switchToEditMode']()),_0x3d4452;}['_createRemoveButton'](){const _0x3ed5a8=new _0x5ae41a(this['locale']);return _0x3ed5a8['label']=E(this['locale'],'Remove'),_0x3ed5a8['icon']=_0x5ec47b,_0x3ed5a8['withText']=!0x0,_0x3ed5a8['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x3ed5a8['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xa88ebe=>!_0xa88ebe),_0x3ed5a8['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x3ed5a8['on']('execute',()=>{this['showConfirm'](E(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x3ed5a8;}['_createDropdown'](){const _0x389289=_0x245262(this['locale'],_0x44c954),_0xd5546f=_0x389289['panelView']['children'],_0x1a0e2e=new _0x25b9d2(this['locale']),_0x1aa567=_0x389289['bindTemplate'];_0x29a31f(_0x389289,()=>this['items']['find'](_0x38b1f9=>_0x38b1f9['isVisible'])),_0x389289['extendTemplate']({'attributes':{'class':[_0x1aa567['if']('isVisible','ck-hidden',_0x254a15=>!_0x254a15)]}});const _0x10885b=(_0xfc7bd0,_0x554854=-0x1)=>{const _0x839dfd=new _0x4f5f53(this['locale']);_0x839dfd['children']['add'](_0xfc7bd0);const _0x5128c2=_0x554854>-0x1?_0x554854:_0x1a0e2e['items']['length'];_0x1a0e2e['items']['add'](_0x839dfd,_0x5128c2);const _0xa0fc24=Array['from'](this['items']);_0x389289['unbind']('isEnabled','isVisible'),_0x389289['bind']('isEnabled')['toMany'](_0xa0fc24,'isEnabled',(..._0x52bff1)=>_0x52bff1['some'](_0x4f17bc=>_0x4f17bc)),_0x389289['bind']('isVisible')['toMany'](_0xa0fc24,'isVisible',(..._0x19636f)=>_0x19636f['some'](_0x3c750e=>_0x3c750e));};_0x389289['panelPosition']='sw',_0x389289['buttonView']['set']({'label':E(this['locale'],'Show\x20more\x20items'),'icon':_0x1024e2});for(const _0x51af8c of this['items'])_0x10885b(_0x51af8c);return _0xd5546f['add'](_0x1a0e2e),_0x389289['listenTo'](this['items'],'add',(_0x25a70f,_0x47ef30,_0x56db7f)=>{_0x10885b(_0x47ef30,_0x56db7f);}),_0x389289['listenTo'](this['items'],'remove',(_0x3040e9,_0x5d2feb,_0x5296e6)=>{_0x1a0e2e['items']['remove'](_0x5296e6);}),_0x389289;}['_attachActions'](_0x35c4ff,_0x32381d){const _0x53be62=_0x35c4ff&&_0x35c4ff['element'];_0x53be62&&(this['listenTo'](_0x53be62,'mouseenter',()=>this['actionIndicator']=_0x32381d),this['listenTo'](_0x53be62,'focus',()=>this['actionIndicator']=_0x32381d),this['listenTo'](_0x53be62,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x53be62,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x153ee2=super['_createCommentInputView']();return _0x153ee2['bind']('placeholder')['to'](this),_0x153ee2;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0x872103){const _0x56365c=Dt(_0x872103,0x1e),_0x84f353=new MutationObserver(_0x17b169=>{for(const _0x2d2d5f of _0x17b169)('attributes'==_0x2d2d5f['type']&&'class'==_0x2d2d5f['attributeName']||'childList'==_0x2d2d5f['type']||'characterData'==_0x2d2d5f['type'])&&_0x56365c();});return{'attach'(_0xd2d154){_0x84f353['observe'](_0xd2d154,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x84f353['disconnect'](),_0x56365c['cancel']();}};}class S extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x519ceb,_0x1a00e8){super(_0x519ceb),this['id']=_0x1fe468(),this['focusTracker']=new _0x4b4d8d(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x142403,_0x243f30)=>this['fire']('Esc',_0x243f30)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=Lt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x1a00e8),this['mainView']=_0x1a00e8;const _0x5e109c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x5e109c['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 _0xe4c32d=this['element']['clientHeight'];_0xe4c32d&&(this['height']=_0xe4c32d);}}class d extends/* #__PURE__ -- @preserve */
29
- _0x33434e(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x15cdc1,target:_0x2c84de,type:_0x2f2b24,isVisible:_0x1b4ab7=!0x0}){super(),this['view']=_0x15cdc1,this['view']['element']||this['view']['render'](),this['_type']=_0x2f2b24,this['_target']=_0x2c84de,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x508354([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x3fc8c7,_0x5a3cd1)=>{this['view']['focusTracker']['add'](_0x5a3cd1);}),this['focusableElements']['on']('remove',(_0x4f9905,_0x545db3)=>{this['view']['focusTracker']['remove'](_0x545db3);}),this['set']('isVisible',_0x1b4ab7);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x5d80ce=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x5d80ce),_0x5d80ce;}get['targetRect'](){const _0x54e323=this['target'];if(null===_0x54e323)return null;if(_0x54e323 instanceof _0x44e78c)return _0x54e323;const _0x540e33=_0x54e323['filter'](_0xf428d8=>function(_0x361009){const _0x27b846=_0x361009['offsetParent'];if(_0x27b846)return!0x0;const _0x40c001=_0x361009['getClientRects']()['item'](0x0);return!!_0x40c001;}(_0xf428d8));return 0x0===_0x540e33['length']?null:new _0x44e78c(_0x540e33[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x4f96ef){this['view']['isActive']=_0x4f96ef,this['view']['mainView']['isActive']=_0x4f96ef;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x1c58a2){if(!(null===_0x1c58a2||_0x1c58a2 instanceof _0x44e78c||Array['isArray'](_0x1c58a2)&&_0x1c58a2['every'](_0x42c230=>li(_0x42c230))))throw new _0x369546('annotation-invalid-target',null,{'target':_0x1c58a2});}['_getNormalizedTarget'](){const _0x483063='function'==typeof this['_target']?this['_target']():this['_target'];return li(_0x483063)?[_0x483063]:_0x483063;}}function li(_0x41666d){return null!==_0x41666d&&'object'==typeof _0x41666d&&'nodeType'in _0x41666d&&0x1===_0x41666d['nodeType'];}class _ extends _0x508354{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x36701a=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x4b4d8d(),this['_focusTracker']['on']('change:isFocused',(_0x4ec6f1,_0x5840e7,_0x130fa2)=>{_0x130fa2||this['fire']('blur');});for(const _0x556f54 of _0x36701a)this['add'](_0x556f54);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x1da403){if(this['has'](_0x1da403))throw new _0x369546('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x1da403['innerView'],_0x1da403),this['_viewToAnnotation']['set'](_0x1da403['view'],_0x1da403);for(const _0x504b6e of _0x1da403['focusableElements'])this['_focusTracker']['add'](_0x504b6e);this['listenTo'](_0x1da403['focusableElements'],'add',(_0x3d254d,_0x3e7276)=>{this['_focusTracker']['add'](_0x3e7276);}),this['listenTo'](_0x1da403['focusableElements'],'remove',(_0x5b527d,_0x5ee8b7)=>{this['_focusTracker']['remove'](_0x5ee8b7);}),this['listenTo'](_0x1da403['view']['focusTracker'],'change:isFocused',(_0x39be33,_0x25f9e7,_0x2a69d4)=>{_0x2a69d4&&this['fire']('focus',_0x1da403);}),_0x1da403['updateTargetRect']();const _0x5d27c4=this['_getOrderInContent'](_0x1da403['view']['targetRect']);return super['add'](_0x1da403,_0x5d27c4);}['remove'](_0x35c716){if(!this['has'](_0x35c716))throw new _0x369546('annotationcollection-not-existing-item',null);this['stopListening'](_0x35c716['view']['focusTracker']),this['stopListening'](_0x35c716['focusableElements']);for(const _0x153e4b of _0x35c716['focusableElements'])this['_focusTracker']['remove'](_0x153e4b);return this['_viewToAnnotation']['delete'](_0x35c716['view']),this['_innerViewToAnnotation']['delete'](_0x35c716['innerView']),super['remove'](_0x35c716);}['getByInnerView'](_0x57f89d){return this['_innerViewToAnnotation']['get'](_0x57f89d);}['getByView'](_0x5df9b3){return this['_viewToAnnotation']['get'](_0x5df9b3);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x517764 of this)_0x517764['updateTargetRect']();this['_sort']();}['_sort'](){const _0x3efed2=Array['from'](this)['sort']((_0xbcb741,_0x4a1520)=>v(_0xbcb741['view']['targetRect'],_0x4a1520['view']['targetRect']));for(let _0xe7ce42=_0x3efed2['length']-0x1;_0xe7ce42>0x0;_0xe7ce42--){const _0x17b946=_0x3efed2[_0xe7ce42];_0xe7ce42!==this['getIndex'](_0x17b946)&&(this['remove'](_0x17b946),this['add'](_0x17b946));}}['_getOrderInContent'](_0x2bbfb9){let _0x2e1635=0x0;if(!_0x2bbfb9)return this['length'];for(const _0x40f55c of this){const _0x4f3a05=_0x40f55c['view']['targetRect'];if(_0x4f3a05){if(v(_0x2bbfb9,_0x4f3a05)<0x0)return _0x2e1635;_0x2e1635++;}}return _0x2e1635;}}function v(_0x3030e9,_0x383a49){if(null===_0x3030e9&&null===_0x383a49)return 0x0;if(null===_0x3030e9)return-0x1;if(null===_0x383a49)return 0x1;const _0x4d5717=_0x3030e9['top']-_0x383a49['top'];return 0x0==_0x4d5717?_0x3030e9['left']-_0x383a49['left']:_0x4d5717;}class O extends _0x3c22fb{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1caf0d){if(super(_0x1caf0d),this['collection']=new _(),this['_visibleAnnotations']=new _(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x1caf0d instanceof _0x39e708){const _0x509b5b=_0x1caf0d['locale'];_0x1caf0d['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':E(_0x509b5b,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':E(_0x509b5b,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':E(_0x509b5b,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':E(_0x509b5b,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':E(_0x509b5b,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':E(_0x509b5b,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':E(_0x509b5b,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x44220b){this['collection']['add'](_0x44220b);}['remove'](_0x8a1e95){this['collection']['remove'](_0x8a1e95),_0x8a1e95['destroy']();}['refreshVisibility'](){for(const _0xe33764 of this['collection'])_0xe33764['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x154ce1){return this['collection']['getByInnerView'](_0x154ce1);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x2a6837 of this['collection'])_0x2a6837['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x3a4746){this['fire']('_activateAnnotation',_0x3a4746);}['createAnnotation'](_0x2e6962){return new d(_0x2e6962);}['createAnnotationView'](_0x375128,_0x69aa98){return new S(_0x375128,_0x69aa98);}['_addActiveAnnotation'](_0x318115){const _0x5a9845=new Set(this['activeAnnotations']);_0x5a9845['add'](_0x318115),this['activeAnnotations']=_0x5a9845;}['_removeActiveAnnotation'](_0x16b427){const _0x5612ca=new Set(this['activeAnnotations']);_0x5612ca['delete'](_0x16b427),this['activeAnnotations']=_0x5612ca;}['_bindAnnotationsToVisibleAnnotations'](){const _0x457e04=this['collection'],_0x2125f3=this['_visibleAnnotations'];function _0x3384a(_0x44f86c){const _0x450aa3=_0x44f86c['source'];_0x450aa3['isVisible']&&!_0x2125f3['has'](_0x450aa3)?_0x2125f3['add'](_0x450aa3):!_0x450aa3['isVisible']&&_0x2125f3['has'](_0x450aa3)&&_0x2125f3['remove'](_0x450aa3),_0x450aa3['view']['focusTracker']['remove'](_0x450aa3['view']['element']),_0x450aa3['view']['focusTracker']['add'](_0x450aa3['view']['element']);}this['listenTo'](_0x457e04,'add',(_0x2af073,_0x4b6550)=>{_0x4b6550['isVisible']&&_0x2125f3['add'](_0x4b6550),this['listenTo'](_0x4b6550,'change:isVisible',_0x3384a);}),this['listenTo'](_0x457e04,'remove',(_0x57a1c6,_0x7842c4)=>{_0x2125f3['has'](_0x7842c4)&&_0x2125f3['remove'](_0x7842c4),this['stopListening'](_0x7842c4,'change:isVisible',_0x3384a);});}['_setupEnterAnnotationKeystroke'](){const _0x442951=_0x365670=>{_0x365670['on']('ready',()=>{_0x365670['keystrokes']['set'](_0x201029,(_0x531847,_0x6a0bfc)=>{const _0xf996c7=_0x38b0a5(this['activeAnnotations']['values']());_0xf996c7&&(_0xf996c7['view']['focus'](),_0x6a0bfc());});});};this['context']instanceof _0x39e708?_0x442951(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x54dd5a,_0x38ea4b)=>{_0x442951(_0x38ea4b);});}['_setupEscapeAnnotationHandling'](){const _0x3cb405=_0x3d6f07=>{const _0x1cf8f4=_0x3d6f07['source'],_0x44a7e1=[];let _0xbed0f2;if(Array['isArray'](_0x1cf8f4['target'])){_0xbed0f2=_0x1cf8f4['target'][0x0],this['context']instanceof _0x39e708?_0x44a7e1['push'](this['context']):this['context']['editors']&&_0x44a7e1['push'](...this['context']['editors']);for(const _0x4cd897 of _0x44a7e1)for(const _0x57eec1 of _0x4cd897['editing']['view']['domRoots']['values']())if(_0x57eec1['contains'](_0xbed0f2))return void _0x4cd897['editing']['view']['focus']();_0xbed0f2['focus']();}};this['listenTo'](this['collection'],'add',(_0x17c2e1,_0x4a9250)=>{this['listenTo'](_0x4a9250,'escape',_0x3cb405,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x402285,_0x3f1600)=>{this['stopListening'](_0x3f1600,'escape',_0x3cb405);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x3c22fb{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[O,ht,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x37f496){super(_0x37f496),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x46bae0=this['context']['config'];_0x46bae0['define']('comments.maxCommentsWhenCollapsed',0x2),_0x46bae0['define']('comments.maxThreadTotalWeight',0x1f4),_0x46bae0['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x46bae0['define']('comments.CommentThreadView',vt),_0x46bae0['define']('comments.CommentView',gt),_0x46bae0['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x252f5f=this['context']['plugins']['get'](O);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x4a2b06,_0x31cad4)=>this['_addCommentThread'](_0x31cad4)),this['on']('submitCommentThread',(_0x5d47da,_0x177104)=>this['_submitCommentThread'](_0x177104)),this['on']('resolveCommentThread',(_0x10ee1e,_0x1a71e4)=>this['_resolveCommentThread'](_0x1a71e4)),this['on']('resolveCommentThread',(_0x2e4e34,_0x36e018)=>this['_updateActiveAnnotation'](_0x36e018),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x403813,_0x29823b)=>this['_reopenCommentThread'](_0x29823b)),this['on']('reopenCommentThread',(_0x36b942,_0x59f5ce)=>this['_updateActiveAnnotation'](_0x59f5ce),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x3cf4bf,_0x477d84)=>this['_removeCommentThread'](_0x477d84)),this['on']('updateCommentThread',(_0x5a8379,_0x448d2f)=>this['_updateCommentThread'](_0x448d2f)),this['on']('updateCommentThread',(_0x1e8999,_0x276348)=>this['_updateActiveAnnotation'](_0x276348),{'priority':'lowest'}),this['on']('addComment',(_0x144d53,_0x45b68b)=>this['_addComment'](_0x45b68b)),this['on']('updateComment',(_0x550832,_0xd44983)=>this['_updateComment'](_0xd44983)),this['on']('removeComment',(_0x3f7e62,_0x2cf2ed)=>this['_removeComment'](_0x2cf2ed)),this['on']('addComment',(_0x1c0b87,{threadId:_0x506c14,isFromAdapter:_0x56cbdf})=>{if(_0x56cbdf)return;const _0x491099=this['getCommentThread'](_0x506c14),_0x23eb74=_0x491099&&this['_threadToController']['get'](_0x491099);_0x23eb74&&_0x23eb74['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x252f5f,'change:activeAnnotations',(_0x187054,_0x1941fd,_0x33fbd6)=>{const _0x1f7f7d=Array['from'](_0x33fbd6)['map'](_0x54088a=>this['_viewToController']['get'](_0x54088a['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x1f7f7d?_0x1f7f7d['model']:null;});}set['adapter'](_0x19faca){if(this['_adapter'])throw new _0x369546('commentsrepository-adapter-already-set');this['_adapter']=_0x19faca;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x553b61=Tt,threadId:_0x579ce0=_0x1fe468(),comments:_0x4aeb42=[],unlinkedAt:_0x48df3a=null,resolvedAt:_0x574375=null,resolvedBy:_0x48b21c=null,target:_0x47afeb=null,context:_0x549947=null,attributes:_0x1e0ddf={},isResolvable:_0xc6f093=!0x0,isSubmitted:_0x31b746=!0x1,isFromAdapter:_0x37a0c6=!0x1}={}){return this['fire'](bt('addCommentThread',_0x553b61),{'channelId':_0x553b61,'threadId':_0x579ce0,'comments':_0x4aeb42,'unlinkedAt':_0x48df3a,'resolvedAt':_0x574375,'resolvedBy':_0x48b21c,'target':_0x47afeb,'context':_0x549947,'attributes':_0x1e0ddf,'isFromAdapter':_0x37a0c6,'isResolvable':_0xc6f093,'isSubmitted':_0x31b746}),this['getCommentThread'](_0x579ce0);}['openNewCommentThread']({channelId:_0x3ee8a6=Tt,threadId:_0x2058c6=_0x1fe468(),target:_0x175a32,context:_0x1889f3=null,isResolvable:_0x24d556=!0x0}){if(this['_readOnlyChannels']['has'](_0x3ee8a6)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x175a32)throw new _0x369546('commentsrepository-missing-target');const _0x19d28c=this['addCommentThread']({'channelId':_0x3ee8a6,'threadId':_0x2058c6,'target':_0x175a32,'context':_0x1889f3,'isResolvable':_0x24d556});if(!_0x19d28c)return null;const _0x2f8631=this['_threadToController']['get'](_0x19d28c),_0x1ae2f3=_0x2f8631['view']['commentThreadInputView']['commentInputView'],_0x567470=this['context']['plugins']['get'](O),_0x484d42=_0x567470['getByInnerView'](_0x2f8631['view']);return _0x567470['activate'](_0x484d42),_0x1ae2f3['once']('editorReady',()=>_0x1ae2f3['focus']()),_0x19d28c;}['hasCommentThread'](_0x155903){if('string'!=typeof _0x155903)throw new _0x369546('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x155903);}['updateCommentThread']({channelId:_0x32f11b=Tt,threadId:_0x1ee6f4,context:_0x5b6e1b,unlinkedAt:_0x338930,attributes:_0x2e0f2f,isFromAdapter:_0x1c6469=!0x1}){return this['fire'](bt('updateCommentThread',_0x32f11b),{'channelId':_0x32f11b,'threadId':_0x1ee6f4,'context':_0x5b6e1b,'unlinkedAt':_0x338930,'attributes':_0x2e0f2f,'isFromAdapter':_0x1c6469}),this['getCommentThread'](_0x1ee6f4);}['getCommentThread'](_0x3ef744){if('string'!=typeof _0x3ef744)throw new _0x369546('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x3ef744);}['fetchCommentThread']({channelId:_0x130ace,threadId:_0xf0df5d}={}){const _0x238347=this['getCommentThread'](_0xf0df5d);if(_0x238347)return Promise['resolve'](_0x238347);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x369546('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x130ace,'threadId':_0xf0df5d})['then'](_0x18c82a=>this['hasCommentThread'](_0xf0df5d)?this['getCommentThread'](_0xf0df5d):_0x18c82a?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x130ace},_0x18c82a)):void 0x0)['catch'](_0x27a207=>{throw console['error'](_0x27a207),new _0x369546('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x4a608a,skipNotAttached:_0x271cd3=!0x1,skipEmpty:_0x213d62=!0x1,toJSON:_0x3a68f5=!0x1}={}){const _0x2916d1=[];for(const _0x49331d of this['_threads']['values']())_0x4a608a&&_0x49331d['channelId']!==_0x4a608a||_0x271cd3&&!_0x49331d['isAttached']||_0x213d62&&0x0===_0x49331d['length']||_0x2916d1['push'](_0x49331d);return _0x3a68f5?_0x2916d1['map'](_0x19c283=>_0x19c283['toJSON']()):_0x2916d1;}['setActiveCommentThread'](_0x51d56d){const _0x4ff8b7=this['context']['plugins']['get'](O);if(!_0x51d56d)return void(this['activeCommentThread']&&_0x4ff8b7['deactivateAll']());const _0x7e7d43=this['getCommentThread'](_0x51d56d);if(!_0x7e7d43)throw new _0x369546('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x51d56d});if(!this['_threadToController']['has'](_0x7e7d43))throw new _0x369546('commentsrepository-active-not-attached',null,{'threadId':_0x51d56d});const _0x16248e=_0x4ff8b7['getByInnerView'](this['_threadToController']['get'](_0x7e7d43)['view']);_0x4ff8b7['activate'](_0x16248e);}['switchReadOnly'](_0x51fc7d,_0x3c0274){_0x51fc7d?this['_readOnlyChannels']['add'](_0x3c0274):this['_readOnlyChannels']['delete'](_0x3c0274),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x382ab3){return this['_readOnlyChannels']['has'](_0x382ab3)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x402dcf,_0x59c69a){return new Ct(_0x402dcf,_0x59c69a);}['setPermissions'](_0x52177c,_0x4cf76f=Tt){this['_permissions']['set'](_0x4cf76f,_0x52177c),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x4fcba3=Tt){return this['_permissions']['has'](_0x4fcba3)?this['_permissions']['get'](_0x4fcba3):_t;}['_addCommentThread']({channelId:_0x4c1747,threadId:_0x341e8e,comments:_0x226d36,unlinkedAt:_0x10e3b3,resolvedAt:_0x2c0e41,resolvedBy:_0x4d64f6,target:_0x4f4ef0,context:_0x19cb25,attributes:_0x492174,isFromAdapter:_0x1941cd,isResolvable:_0x58b878,isSubmitted:_0x312b75}){if('string'!=typeof _0x341e8e)throw new _0x369546('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x341e8e});if(this['hasCommentThread'](_0x341e8e))throw new _0x369546('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x341e8e});const _0x1dfa58=new ui(this,{'channelId':_0x4c1747,'id':_0x341e8e,'context':_0x19cb25,'attributes':_0x492174,'unlinkedAt':_0x10e3b3,'resolvedAt':_0x2c0e41,'resolvedBy':_0x4d64f6?this['context']['plugins']['get'](it)['getUser'](_0x4d64f6):null,'isResolvable':_0x58b878,'isSubmitted':_0x312b75||_0x1941cd});this['_threads']['set'](_0x341e8e,_0x1dfa58);for(const _0x2087b9 of _0x226d36)_0x1dfa58['_add'](this['_createNewComment']({'threadId':_0x341e8e,..._0x2087b9}));return _0x4f4ef0&&_0x1dfa58['attachTo'](_0x4f4ef0),_0x1941cd||!_0x1dfa58['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x4c1747,'threadId':_0x341e8e});}['_submitCommentThread']({channelId:_0xb9d4e4,threadId:_0x2deebd}){if(!this['hasCommentThread'](_0x2deebd))throw new _0x369546('commentsrepository-missing-comment-thread',this);const _0x1c0bd1=this['getCommentThread'](_0x2deebd);if(_0x1c0bd1['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0xdc530e,comments:_0x1a38dd,resolvedAt:_0x4fc343,resolvedBy:_0x2ed929,context:_0x1a0e27,attributes:_0x3ecc2b}=_0x1c0bd1,_0x1ac099=this['context']['plugins']['get']('PendingActions'),_0x38c96d=_0x1ac099['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0xb9d4e4,'threadId':_0xdc530e,'comments':_0x1a38dd['map'](_0x4c44c3=>_0x4c44c3['toJSON']()),'resolvedAt':_0x4fc343,'resolvedBy':_0x2ed929?_0x2ed929['id']:_0x2ed929,'context':_0x1a0e27,'attributes':_0x3ecc2b})['then'](({comments:_0x58286})=>{_0x1ac099['remove'](_0x38c96d);for(const _0x5890aa of _0x58286)this['_updateComment']({'channelId':_0xb9d4e4,'threadId':_0x2deebd,'commentId':_0x5890aa['commentId'],'createdAt':_0x5890aa['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x4bff83=>{throw console['error'](_0x4bff83),new _0x369546('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x7f6d8a,target:_0x25557c}){const _0x20c19d=this['getCommentThread'](_0x7f6d8a);if(!_0x20c19d)throw new _0x369546('commentsrepository-attach-missing-comment-thread',this);const _0x4ed881=this['context']['plugins']['get']('PendingActions'),_0x515a83=this['context']['plugins']['get'](O),_0x1cda50=this['_createCommentThreadView'](_0x20c19d),_0x4ff1ed=new Ct(_0x20c19d,_0x1cda50);let _0x18e567=null;_0x1cda50['on']('change:isDirty',(_0x1790fb,_0x4a79eb,_0x1b017d)=>{_0x1b017d?_0x18e567=_0x4ed881['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x18e567&&(_0x4ed881['remove'](_0x18e567),_0x18e567=null);}),this['_threadToController']['set'](_0x20c19d,_0x4ff1ed),this['_viewToController']['set'](_0x1cda50,_0x4ff1ed);const _0x523783=new S(this['context']['locale'],_0x1cda50);_0x523783['bind']('length')['to'](_0x1cda50),_0x523783['bind']('isDirty')['to'](_0x1cda50,'isDirty',_0x1cda50,'length',(_0x251ef1,_0x4bde01)=>_0x251ef1||!_0x4bde01),_0x523783['bind']('isActive')['to'](_0x1cda50),_0x523783['type']='comment';const _0x550c48=new d({'view':_0x523783,'target':_0x25557c,'type':'comment','isVisible':!_0x20c19d['archivedAt']});return _0x1cda50['on']('escape',()=>{_0x550c48['fire']('escape');}),this['_bindAnnotationToEditors'](_0x1cda50,_0x550c48),_0x515a83['add'](_0x550c48),_0x550c48;}['_bindAnnotationToEditors'](_0x581763,_0x4ac5d8){this['listenTo'](_0x581763,'editorReady',(_0x3fc0ac,_0x173366)=>{const _0x18ad6d=_0x173366['ui']['view']['body']['bodyCollectionContainer'];_0x4ac5d8['focusableElements']['add'](_0x18ad6d),this['context']instanceof _0x39e708&&this['context']['ui']['focusTracker']['add'](_0x18ad6d);},{'priority':'highest'}),this['listenTo'](_0x581763,'editorDestroyed',(_0x3e1203,_0x476dd3)=>{const _0x41dfda=_0x476dd3['ui']['view']['body']['bodyCollectionContainer'];_0x4ac5d8['focusableElements']['has'](_0x41dfda)&&_0x4ac5d8['focusableElements']['remove'](_0x41dfda),this['context']instanceof _0x39e708&&this['context']['ui']['focusTracker']['remove'](_0x41dfda);});}['_unbindEditors'](_0x3d9502){this['stopListening'](_0x3d9502,'editorReady'),this['stopListening'](_0x3d9502,'editorDestroyed');}['_createCommentThreadView'](_0x3bf76a){const _0x4846f4=this['context']['plugins']['get'](it),{config:_0x59275a,locale:_0x11b70b}=this['context'],_0x25c793=lt(_0x59275a['get']('locale'),_0x11b70b);return new(0x0,(_0x59275a['get']('comments'))['CommentThreadView'])(_0x11b70b,_0x3bf76a,_0x4846f4['me'],{'editorConfig':{..._0x59275a['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x59275a['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x59275a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x59275a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x59275a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x25c793,'CommentView':_0x59275a['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x4f01e9,channelId:_0x505e89,resolvedAt:_0x30586e,resolvedBy:_0x1bcf99,isFromAdapter:_0x5e3580}){if(!this['hasCommentThread'](_0x4f01e9))throw new _0x369546('commentsrepository-missing-comment-thread',null,{'threadId':_0x4f01e9});const _0x327cff=this['getCommentThread'](_0x4f01e9);if(_0x327cff['isResolved'])throw new _0x369546('commentsrepository-resolved-comment-thread',null,{'threadId':_0x4f01e9});const _0x1f5a3e=this['context']['plugins']['get'](it);if(_0x327cff['resolvedBy']=_0x1f5a3e['getUser'](_0x1bcf99),_0x327cff['resolvedAt']=_0x30586e,_0x5e3580||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x615c9f=this['context']['plugins']['get']('PendingActions'),_0x1b774=_0x615c9f['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x505e89,'threadId':_0x4f01e9})['then'](({resolvedAt:_0x122314,resolvedBy:_0x17fb77})=>{_0x615c9f['remove'](_0x1b774),_0x327cff['resolvedBy']['id']!==_0x17fb77&&(_0x327cff['resolvedBy']=_0x1f5a3e['getUser'](_0x17fb77)),_0x327cff['resolvedAt']=_0x122314;})['catch'](_0x51451c=>{throw console['error'](_0x51451c),new _0x369546('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x297623,channelId:_0x351113,isFromAdapter:_0x37e067}){if(!this['hasCommentThread'](_0x297623))throw new _0x369546('commentsrepository-missing-comment-thread',null,{'threadId':_0x297623});const _0xacca59=this['getCommentThread'](_0x297623);if(!_0xacca59['isResolved'])throw new _0x369546('commentsrepository-reopen-comment-thread',null,{'threadId':_0x297623});if(_0xacca59['resolvedBy']=null,_0xacca59['resolvedAt']=null,_0x37e067||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x3c418a=this['context']['plugins']['get']('PendingActions'),_0x26708b=_0x3c418a['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x351113,'threadId':_0x297623})['then'](()=>_0x3c418a['remove'](_0x26708b))['catch'](_0x5e0885=>{throw console['error'](_0x5e0885),new _0x369546('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x4f601f,isFromAdapter:_0x17dcdc}){const _0x198cd5=this['getCommentThread'](_0x4f601f);if(!_0x198cd5)throw new _0x369546('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x4f601f),this['_threads']['delete'](_0x4f601f),!_0x198cd5['isSubmitted']||_0x17dcdc||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x1357e4=this['context']['plugins']['get']('PendingActions'),{channelId:_0x178ac0}=_0x198cd5,_0x1abda2=_0x1357e4['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x178ac0,'threadId':_0x4f601f})['then'](()=>_0x1357e4['remove'](_0x1abda2))['catch'](_0x5c1a1f=>{throw console['error'](_0x5c1a1f),new _0x369546('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x359c80,unlinkedAt:_0x30dca5,context:_0x12dd9e,attributes:_0x377298,isFromAdapter:_0xf259e2}){if('string'!=typeof _0x359c80)throw new _0x369546('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x359c80});if(!this['hasCommentThread'](_0x359c80))throw new _0x369546('commentsrepository-missing-comment-thread',null,{'threadId':_0x359c80});const _0x5eedab=this['getCommentThread'](_0x359c80);let _0x49f093=!0x1;if(void 0x0!==_0x12dd9e&&_0x5eedab['context']!==_0x12dd9e&&(_0x5eedab['context']=_0x12dd9e,_0x49f093=!0x0),void 0x0!==_0x30dca5&&_0x5eedab['unlinkedAt']!==_0x30dca5&&(_0x5eedab['unlinkedAt']=_0x30dca5,_0x49f093=!0x0),_0x377298&&!wt(_0x377298,_0x5eedab['attributes'])&&(_0x5eedab['attributes']=_0x377298,_0x49f093=!0x0),!_0x49f093)return Promise['resolve']();if(!_0x5eedab['isSubmitted']||_0xf259e2||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x4f4b17=this['context']['plugins']['get']('PendingActions'),{channelId:_0x396213}=_0x5eedab,_0x46e113=_0x4f4b17['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x396213,'threadId':_0x359c80,'context':_0x12dd9e,'unlinkedAt':_0x30dca5,'attributes':_0x377298})['then'](()=>_0x4f4b17['remove'](_0x46e113))['catch'](_0x208f38=>{throw console['error'](_0x208f38),new _0x369546('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x216429){const _0x15b102=this['context']['plugins']['get'](O),_0x2764da=this['getCommentThread'](_0x216429);if(_0x2764da['_isAttached']=!0x1,this['_threadToController']['has'](_0x2764da)){const _0x38b316=this['_threadToController']['get'](_0x2764da),_0x3b71a9=_0x38b316['view'],_0x1d890a=_0x15b102['getByInnerView'](_0x3b71a9);this['_threadToController']['delete'](_0x2764da),this['_viewToController']['delete'](_0x3b71a9),_0x1d890a&&_0x15b102['remove'](_0x1d890a),_0x38b316['destroy'](),_0x3b71a9['destroy']()['then'](()=>{this['_unbindEditors'](_0x3b71a9);});}}['_updateActiveAnnotation']({threadId:_0x4bc3b3,resolvedAt:_0x16be66,unlinkedAt:_0xd0b0e6}){const _0x2a3c24=!!_0x16be66,_0x408165=this['context']['plugins']['get'](O),_0x1dbbd7=this['getCommentThread'](_0x4bc3b3);if(this['_threadToController']['has'](_0x1dbbd7)){const _0x1c35fa=this['_threadToController']['get'](_0x1dbbd7)['view'],_0x58feb9=_0x408165['getByInnerView'](_0x1c35fa);_0x58feb9&&(_0x2a3c24&&_0x408165['_removeActiveAnnotation'](_0x58feb9),_0xd0b0e6?_0x58feb9['isVisible']=!0x1:_0x58feb9['refreshVisibility']());}}['_getExternalAuthor'](_0x4a621f){const _0x5ea4bb=this['context']['plugins']['get'](it),_0x39901e=pt('external:'+_0x4a621f),_0x21f756=_0x5ea4bb['getUser'](_0x39901e);return _0x21f756||_0x5ea4bb['addUser']({'id':_0x39901e,'name':_0x4a621f});}['_createNewComment']({threadId:_0x3eb359,commentId:_0x2007c1=_0x1fe468(),content:_0x5cc0cd,authorId:_0x57ac81,createdAt:_0x2e728c,attributes:_0x1c02ae}){if('string'!=typeof _0x2007c1)throw new _0x369546('commentsrepository-invalid-commentid');if('string'!=typeof _0x57ac81)throw new _0x369546('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x5cc0cd||!_0x5cc0cd['trim']())throw new _0x369546('commentsrepository-invalid-comment-content');const _0x36f82c=this['context']['plugins']['get'](it)['getUser'](_0x57ac81);if(!_0x36f82c)throw new _0x369546('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x57ac81});let _0x5b4b46=null,_0x28fce8=_0x2e728c;return _0x1c02ae?.['@external']&&(_0x5b4b46=this['_getExternalAuthor'](_0x1c02ae['@external']['authorName']),_0x28fce8=new Date(_0x1c02ae['@external']['createdAt'])),new fi(this,{'threadId':_0x3eb359,'id':_0x2007c1,'author':_0x5b4b46||_0x36f82c,'creator':_0x36f82c,'content':_0x5cc0cd,'createdAt':_0x2e728c,'authoredAt':_0x28fce8,'attributes':_0x1c02ae});}['_addComment'](_0x5e692a){let {threadId:_0x252917,content:_0x1676a7,attributes:_0x5375eb,isFromAdapter:_0x213598}=_0x5e692a;const _0x594d57=this['getCommentThread'](_0x5e692a['threadId']);if(!_0x594d57)throw new _0x369546('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x20ad9e=this['_createNewComment'](_0x5e692a),{id:_0xb6f0e4}=_0x20ad9e;if(_0x594d57['_add'](_0x20ad9e),_0x213598||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x594d57['isSubmitted'])return Promise['resolve']();const _0x40ff68=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3ad0d0}=_0x594d57,_0xdd499d=_0x40ff68['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x5375eb||(_0x5375eb={}),this['adapter']['addComment']({'channelId':_0x3ad0d0,'threadId':_0x252917,'commentId':_0xb6f0e4,'content':_0x1676a7,'attributes':_0x5375eb})['then'](_0xf7f23f=>{_0x40ff68['remove'](_0xdd499d),_0xf7f23f&&this['_updateComment']({'channelId':_0x3ad0d0,'threadId':_0x252917,'commentId':_0xb6f0e4,'createdAt':_0xf7f23f['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x4158eb=>{throw console['error'](_0x4158eb),new _0x369546('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x2dc7c1,commentId:_0x50d258,content:_0x47ddcb,createdAt:_0x202fa1,attributes:_0x4a73f6,isFromAdapter:_0x70cc7a}){if(void 0x0!==_0x47ddcb&&('string'!=typeof _0x47ddcb||!_0x47ddcb['trim']()['length']))throw new _0x369546('commentsrepository-update-comment-invalid-content');const _0xe97d37=this['getCommentThread'](_0x2dc7c1),_0x526fbd=_0xe97d37['getComment'](_0x50d258);if(!_0x526fbd)throw new _0x369546('commentsrepository-update-missing-comment',this);let _0x1447a7=!0x1;if(_0x47ddcb&&_0x47ddcb!==_0x526fbd['content']&&(_0x526fbd['isEditable']||_0x70cc7a)&&(_0x526fbd['content']=_0x47ddcb,_0x1447a7=!0x0),_0x202fa1&&_0x202fa1!==_0x526fbd['createdAt']&&(_0x526fbd['createdAt']=_0x202fa1,_0x526fbd['attributes']&&_0x526fbd['attributes']['@external']||(_0x526fbd['authoredAt']=_0x202fa1),_0x1447a7=!0x0),_0x4a73f6&&!wt(_0x4a73f6,_0x526fbd['attributes'])&&(_0x526fbd['attributes']=_0x4a73f6,_0x1447a7=!0x0),!_0x1447a7)return Promise['resolve']();if(_0xe97d37['fire']('commentUpdated'),_0x70cc7a||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x2f2dad=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4ec7ab}=this['getCommentThread'](_0x526fbd['threadId']),_0x3e9408=_0x2f2dad['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x4ec7ab,'threadId':_0x2dc7c1,'commentId':_0x50d258,'content':_0x47ddcb,'attributes':_0x4a73f6})['then'](()=>_0x2f2dad['remove'](_0x3e9408))['catch'](_0x52cbbe=>{throw console['error'](_0x52cbbe),new _0x369546('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x25dcbe,commentId:_0x46e144,isFromAdapter:_0x59eb77}){const _0x2fc883=this['getCommentThread'](_0x25dcbe),_0x84c43c=_0x2fc883['getComment'](_0x46e144);if(!_0x84c43c)throw new _0x369546('commentsrepository-remove-missing-comment',this);if(_0x2fc883['_remove'](_0x84c43c),_0x59eb77||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x220d1e=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2ae18b}=_0x2fc883,_0x1429d7=_0x220d1e['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x2ae18b,'threadId':_0x25dcbe,'commentId':_0x46e144})['then'](()=>_0x220d1e['remove'](_0x1429d7))['catch'](_0x6d7fbe=>{throw console['error'](_0x6d7fbe),new _0x369546('commentsrepository-remove-comment-internal-error',this);});}}class ui extends/* #__PURE__ -- @preserve */
30
- _0x33434e(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x1e90d0,_0x50525f){super();const _0x4d1777=_0x50525f['isResolvable'];this['channelId']=_0x50525f['channelId'],this['id']=_0x50525f['id'],this['comments']=new _0x508354(),this['_repository']=_0x1e90d0,this['_isAttached']=!0x1,this['_isSubmitted']=_0x50525f['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x1e90d0,'_permissions',_0x1e90d0,'_readOnlyChannels',()=>_0x1e90d0['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x1e90d0,'_permissions',()=>_0x1e90d0['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x1e90d0,'_permissions',()=>{const _0x494658=_0x1e90d0['getPermissions'](this['channelId']);return _0x494658['write']||_0x494658['admin'];}),this['bind']('isResolvable')['to'](_0x1e90d0,'_permissions',()=>_0x4d1777&&_0x1e90d0['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x50525f['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x414e1a,_0x569a28)=>_0x414e1a?_0x569a28?_0x414e1a<_0x569a28?_0x414e1a:_0x569a28:_0x414e1a:_0x569a28),this['set']('unlinkedAt',_0x50525f['unlinkedAt']||null),this['set']('resolvedAt',_0x50525f['resolvedAt']||null),this['set']('resolvedBy',_0x50525f['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x2d411e=>!!_0x2d411e),this['set']('attributes',_0x50525f['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x1be0d8,_0x2a5e90)=>_0x1be0d8+_0x2a5e90['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x333a60,id:_0x4d9fed}=this;this['_repository']['fire'](bt('submitCommentThread',_0x333a60),{'channelId':_0x333a60,'threadId':_0x4d9fed});}['setUnlinkedAt'](_0x13230a){this['_update']({'unlinkedAt':_0x13230a});}['resolve']({resolvedAt:_0x2c0267=new Date(),resolvedBy:_0x1108b9=null,isFromAdapter:_0x484dde=!0x1}={}){const _0x39ab1b=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x171f44,id:_0x2dc4f9}=this;this['_repository']['fire'](bt('resolveCommentThread',_0x171f44),{'channelId':_0x171f44,'threadId':_0x2dc4f9,'resolvedAt':_0x2c0267,'resolvedBy':_0x1108b9||_0x39ab1b['id'],'isFromAdapter':_0x484dde});}['reopen']({isFromAdapter:_0x4b2d25=!0x1}={}){const {channelId:_0x3a9450,id:_0x2b3e5a}=this;this['_repository']['fire'](bt('reopenCommentThread',_0x3a9450),{'channelId':_0x3a9450,'threadId':_0x2b3e5a,'isFromAdapter':_0x4b2d25});}['setContext'](_0x464229){this['context']||this['_update']({'context':_0x464229});}['setAttribute'](_0x4675ce,_0x5bfaf6){const _0x4102b8=It(this['attributes']);At(_0x4102b8,_0x4675ce,_0x5bfaf6),this['_update']({'attributes':_0x4102b8});}['removeAttribute'](_0x3fe478){const _0x33690b=It(this['attributes']);yt(_0x33690b,_0x3fe478),this['_update']({'attributes':_0x33690b});}['remove']({isFromAdapter:_0x507376=!0x1}={}){const {channelId:_0x32be02,id:_0x1fd156}=this;this['_repository']['fire'](bt('removeCommentThread',_0x32be02),{'channelId':_0x32be02,'threadId':_0x1fd156,'isFromAdapter':_0x507376});}['attachTo'](_0x30d44c){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x30d44c});}['addComment'](_0x2323c6){const {channelId:_0x5dde78,id:_0x48a089}=this;this['_repository']['fire'](bt('addComment',_0x5dde78,_0x48a089),Object['assign']({'channelId':_0x5dde78,'threadId':_0x48a089},_0x2323c6));}['getComment'](_0xdfe547){if('string'!=typeof _0xdfe547)throw new _0x369546('commentsrepository-get-comment-invalid-id',null,{'commentId':_0xdfe547});return this['comments']['get'](_0xdfe547);}['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'](_0x1a56f4=>_0x1a56f4['toJSON']()),'attributes':this['attributes']};}['_add'](_0x3f0964){return this['listenTo'](_0x3f0964,'change:authoredAt',()=>{const _0x2caaca=this['_findOptimalIndex'](_0x3f0964),_0x4bd0f1=this['comments'];_0x2caaca-0x1!=_0x4bd0f1['getIndex'](_0x3f0964)&&_0x2caaca+0x1!=_0x4bd0f1['getIndex'](_0x3f0964)&&(this['_remove'](_0x3f0964),this['_add'](_0x3f0964));}),this['comments']['add'](_0x3f0964,this['_findOptimalIndex'](_0x3f0964));}['_update'](_0x205e18){const {channelId:_0xe30cd,id:_0x54a128}=this;this['_repository']['fire'](bt('updateCommentThread',_0xe30cd),{..._0x205e18,'channelId':_0xe30cd,'threadId':_0x54a128});}['_remove'](_0x3d1361){return this['stopListening'](_0x3d1361),_0x3d1361['destroy'](),this['comments']['remove'](_0x3d1361);}['_findOptimalIndex'](_0x50a8a8){const _0x2f6f3b=this['comments']['find'](_0x548973=>new Date(_0x548973['authoredAt'])['getTime']()>new Date(_0x50a8a8['authoredAt'])['getTime']());return _0x2f6f3b?this['comments']['getIndex'](_0x2f6f3b):this['length'];}}class fi extends/* #__PURE__ -- @preserve */
31
- _0x33434e(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x4591b0,_0x1a99dc){super();const _0x19bf03=_0x4591b0['context']['plugins']['get'](it)['me'],_0x21c440=_0x4591b0['getCommentThread'](_0x1a99dc['threadId']),_0x2c9aaa=0x0===_0x21c440['comments']['length'],_0x4656ab=_0x19bf03===_0x1a99dc['author'];this['id']=_0x1a99dc['id'],this['threadId']=_0x1a99dc['threadId'],this['author']=_0x1a99dc['author'],this['creator']=_0x1a99dc['creator'],this['isExternal']=Boolean(_0x1a99dc['attributes']&&_0x1a99dc['attributes']['@external']),this['set']('content',_0x1a99dc['content']),this['createdAt']=_0x1a99dc['createdAt']||new Date(),this['set']('authoredAt',_0x1a99dc['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x21c440,'resolvedAt'),this['set']('attributes',_0x1a99dc['attributes']||{}),this['bind']('isEditable')['to'](_0x4591b0,'_permissions',()=>{const _0x547262=_0x4591b0['getPermissions'](_0x21c440['channelId'])['write'],_0x8286b1=_0x4591b0['getPermissions'](_0x21c440['channelId'])['modifyAll'];return _0x4656ab&&_0x547262||!_0x4656ab&&_0x8286b1;}),this['bind']('isRemovable')['to'](_0x21c440,'isRemovable',_0x4591b0,'_permissions',_0x53fdd7=>{const _0x4772d3=_0x4591b0['getPermissions'](_0x21c440['channelId'])['write'],_0x38e05c=_0x4591b0['getPermissions'](_0x21c440['channelId'])['modifyAll'];return _0x4656ab&&_0x4772d3||_0x53fdd7&&_0x2c9aaa||!_0x4656ab&&_0x38e05c&&!_0x2c9aaa;}),this['bind']('isReadOnly')['to'](_0x21c440,'isReadOnly'),this['_repository']=_0x4591b0;}get['weight'](){return Math['max'](function(_0x69f1d4){const _0x1306ec=document['createElement']('div');return _0x1306ec['innerHTML']=_0x69f1d4,_0x1306ec['textContent']['length'];}(this['content']),0xc8);}['update'](_0x5b40f1){const {threadId:_0xfaebd2,id:_0x28fee5}=this;if(!this['_repository']['hasCommentThread'](_0xfaebd2))throw new _0x369546('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x49a3f1}=this['_repository']['getCommentThread'](_0xfaebd2);this['_repository']['fire'](bt('updateComment',_0x49a3f1,_0xfaebd2),{'channelId':_0x49a3f1,'threadId':_0xfaebd2,'commentId':_0x28fee5,..._0x5b40f1});}['setAttribute'](_0xe51935,_0x294dab){const _0x57e274=It(this['attributes']);At(_0x57e274,_0xe51935,_0x294dab),this['update']({'attributes':_0x57e274});}['removeAttribute'](_0x56394b){const _0x40de2a=It(this['attributes']);yt(_0x40de2a,_0x56394b),this['update']({'attributes':_0x40de2a});}['remove'](_0x3dd429={}){if(!_0x3dd429['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x2ec1dc,id:_0x530eb8}=this;if(!this['_repository']['hasCommentThread'](_0x2ec1dc))throw new _0x369546('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x48db58}=this['_repository']['getCommentThread'](_0x2ec1dc);this['_repository']['fire'](bt('removeComment',_0x48db58,_0x2ec1dc),{'channelId':_0x48db58,'threadId':_0x2ec1dc,'commentId':_0x530eb8,..._0x3dd429});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x4306fb,..._0x3b5a53){for(const _0x9d648b of _0x3b5a53)void 0x0!==_0x9d648b&&(_0x4306fb+=':'+String(_0x9d648b));return _0x4306fb;}class J extends _0xfbedbc{['refresh'](){const _0x2e48e3=this['editor']['model']['document']['selection'];for(const _0x4b39dc of _0x2e48e3['getRanges']())if(this['_hasContent'](_0x4b39dc))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x260e44=_0x1fe468()}={}){const _0x1fa3d6=this['editor']['model'],_0x59b850=[];for(const _0x51f11d of _0x1fa3d6['document']['selection']['getRanges']())this['_hasContent'](_0x51f11d)&&_0x59b850['push'](this['_trimToContent'](_0x51f11d));_0x1fa3d6['change'](_0xdafa68=>{for(const _0x3311de of _0x59b850){const _0x242b53=_0x1fe468()['substr'](0x1,0x5),_0x4cc174='comment:'+_0x260e44+':'+_0x242b53;_0xdafa68['addMarker'](_0x4cc174,{'range':_0x3311de,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x1a132f){for(const _0x5b6884 of _0x1a132f['getItems']())if(this['_itemIsContent'](_0x5b6884))return!0x0;return!0x1;}['_itemIsContent'](_0x1ef5bf){return _0x1ef5bf['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x1ef5bf)&&!_0x1ef5bf['is']('element','tableCell');}['_trimToContent'](_0x3113a4){const _0x5c21f2=_0x4a7400=>!this['_itemIsContent'](_0x4a7400['item']),_0x2abce0=_0x3113a4['start']['getLastMatchingPosition'](_0x5c21f2),_0x268450=_0x3113a4['end']['getLastMatchingPosition'](_0x5c21f2,{'direction':'backward'});return this['editor']['model']['createRange'](_0x2abce0,_0x268450);}}class P extends _0x3e155f{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[O];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f01ad){super(_0x2f01ad),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x426a87=this['editor'],_0x2b1aa0=_0x426a87['model']['document']['selection'],_0x18af54=_0xaf86be(()=>this['refreshSelectedViews'](),0xa);_0x2b1aa0['on']('change:range',(_0x4f1a8e,_0x3ad0ec)=>{_0x3ad0ec['directChange']&&(_0x18af54['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x426a87['editing']['view']['document'],'change:isFocused',(_0xa8e301,_0x599438,_0x2dd614)=>{_0x2dd614&&_0x18af54();}),this['listenTo'](_0x426a87['ui']['focusTracker'],'change:isFocused',(_0x3fae32,_0x2a4e78,_0x28d1fb)=>{_0x28d1fb||_0x426a87['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x320bd5=>this['_editorAnnotationsData']['has'](_0x320bd5['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x4ac42d){if(this['_editorAnnotations']['has'](_0x4ac42d['view']))return;this['_editorAnnotations']['add'](_0x4ac42d['view']),this['editor']['ui']['focusTracker']['add'](_0x4ac42d['view']['element']);const _0x7234f4=this['editor']['plugins']['get'](O);this['listenTo'](_0x7234f4['collection'],'remove',(_0x4dd6d2,_0x109682)=>{this['editor']['ui']['focusTracker']['remove'](_0x109682['view']['element']),this['_editorAnnotations']['delete'](_0x109682['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x4b2a36){if('function'!=typeof _0x4b2a36)throw new _0x369546('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x4b2a36);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x35ee43,annotations:_0x5f17da}){const _0x33852c=[],_0x4c2d98=this['editor']['model']['document']['selection'],_0x1af3d6=Array['from'](_0x4c2d98['getRanges']());for(const [_0x23565d,_0x548f80]of this['_editorAnnotationsData']){const _0x52c2bf=_0x5f5149(_0x548f80),_0x4a93c1=_0x5f17da['getByInnerView'](_0x23565d);_0x52c2bf&&_0x4a93c1&&_0x33852c['push']({'annotation':_0x4a93c1,'range':_0x52c2bf});}function _0x5f5149(_0x422c13){for(const _0x3b26cf of _0x422c13)for(const _0x2d56f3 of _0x1af3d6)if(_0x3b26cf['containsRange'](_0x2d56f3,!_0x4c2d98['isCollapsed']))return _0x3b26cf;return null;}return _0x33852c['sort']((_0x66cb27,_0x32aee5)=>{const _0x467ae7=_0x66cb27['range'],_0x4ab2ef=_0x32aee5['range'];if(!_0x467ae7['isEqual'](_0x4ab2ef)){if(_0x467ae7['containsRange'](_0x4ab2ef,!0x0))return 0x1;if(_0x4ab2ef['containsRange'](_0x467ae7,!0x0))return-0x1;}return _0x66cb27['annotation']==_0x35ee43?-0x1:_0x32aee5['annotation']==_0x35ee43?0x1:0x0;})['map'](_0x4823b6=>_0x4823b6['annotation']);}get['_editorAnnotationsData'](){const _0xcd9876=new Map();for(const _0x45984d of Array['from'](this['_dataCollectors']))for(const [_0x295d59,_0x1a7b0d]of _0x45984d())_0xcd9876['set'](_0x295d59,_0x1a7b0d);return _0xcd9876;}}class st extends _0x3e155f{['afterInit'](){const _0x2f8898=this['editor'];if(!_0x2f8898['plugins']['has']('RestrictedEditingModeEditing'))return;_0x2f8898['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x3e155f{constructor(_0x40e07e){super(_0x40e07e),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x18cbe7=this['editor'],_0x4ee428=_0x18cbe7['commands']['get']('importWord'),_0x2dba9a=_0x18cbe7['plugins']['get'](it);_0x4ee428&&(_0x4ee428['on']('execute',(_0x4a6338,[,_0x51523f])=>{_0x51523f['collaboration_features']={'comments':!0x0,'user_id':_0x2dba9a['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x4ee428,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x8c17,_0x49d168){const {comment_threads:_0x36b6c3}=_0x49d168;_0x36b6c3&&_0x36b6c3['forEach'](({thread_id:_0x389b0e,comments:_0x3c092a,is_resolved:_0x70ee5})=>{const _0x1b448b=new Date(),_0x354713=_0x3c092a['map'](({author:_0x4054ae,content:_0xb07e08,created_at:_0x3e8854})=>({'content':_0xb07e08,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x1b448b,'attributes':{'@external':{'authorName':_0x4054ae,'createdAt':_0x3e8854?new Date(_0x3e8854):new Date(),'source':'importWord'}}})),_0x38cb7c=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x38cb7c,'threadId':_0x389b0e,'comments':_0x354713,'resolvedAt':_0x70ee5?_0x1b448b:null});});}}class at extends _0x3e155f{constructor(_0x3bccdc){super(_0x3bccdc),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x50aca2=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x50aca2,'contentInsertion',(_0x4338df,_0x46665a)=>this['_removeMarkersWithoutThreads'](_0x46665a['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x3484be){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x3484be;const _0x51b5eb=this['editor']['plugins']['get']('CommentsRepository');for(const _0x3cba5d of _0x3484be['keys']()){const [_0x2b72ac,_0x9ca116]=_0x3cba5d['split'](':');'comment'!=_0x2b72ac||_0x51b5eb['hasCommentThread'](_0x9ca116)||_0x3484be['delete'](_0x3cba5d);}return _0x3484be;}['_registerMarkerInClipboardPipeline'](){const _0x3ef41c=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x306de7=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x306de7&&_0x3ef41c['_registerMarkerToCopy']('comment',_0x306de7);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x2822ed){switch(_0x2822ed){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class ut extends _0x3e155f{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x4340e0,_0x56b826)=>{if(!_0x56b826['options']['showCommentHighlights'])return null;if(_0x56b826['options']['ignoreResolvedComments']){const {id:_0xaf2dca}=er(_0x4340e0['markerName']),_0x5c29db=this['editor']['plugins']['get'](o);if(_0x5c29db['getCommentThread'](_0xaf2dca)?.['isResolved']&&_0x4340e0['item'])return _0x56b826['consumable']['consume'](_0x4340e0['item'],'addMarker:'+_0x4340e0['markerName']),_0x56b826['consumable']['consume'](_0x4340e0['item'],'removeMarker:'+_0x4340e0['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4221a1=>{_0x4221a1['on']('addMarker:comment',(_0x54c271,_0x23328e,_0x41e8f5)=>{if(!_0x41e8f5['options']['showCommentHighlights'])return;const _0x2dc1f4=_0x23328e['item'];if(!_0x2dc1f4)return;const _0x152c26=_0x41e8f5['mapper']['toViewElement'](_0x2dc1f4);this['editor']['model']['schema']['isObject'](_0x2dc1f4)&&_0x152c26&&!_0x152c26['getCustomProperty']('widget')&&_0x152c26['is']('containerElement')&&_0xd6cd62(_0x152c26,_0x41e8f5['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3e2eb4,{writer:_0x4871a8,options:_0x33abdb})=>{if(!_0x33abdb['showCommentHighlights'])return null;const _0x6c6b53=_0x4871a8['createContainerElement']('div'),_0x726064=_0x4871a8['createEmptyElement']('hr');return _0x4871a8['addClass']('ck-horizontal-line',_0x6c6b53),_0x4871a8['insert'](_0x4871a8['createPositionAt'](_0x6c6b53,0x0),_0x726064),_0x6c6b53;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x43bbce,{writer:_0xb83fcc,options:_0x2c64a3})=>{if(!_0x2c64a3['showCommentHighlights'])return null;const _0x50eeff=_0xb83fcc['createContainerElement']('span'),_0xfb28eb=_0xb83fcc['createEmptyElement']('img');return _0xb83fcc['addClass']('image-inline',_0x50eeff),_0xb83fcc['insert'](_0xb83fcc['createPositionAt'](_0x50eeff,0x0),_0xfb28eb),_0x50eeff;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1fecdf,{writer:_0x43855b,options:_0x1cdee5})=>{if(_0x1cdee5['showCommentHighlights'])return _0x43855b['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2ad5c1,_0x3b1129,_0x3874dd)=>{_0x3874dd['options']['showCommentHighlights']&&_0x2ad5c1['stop']();},{'priority':'high'});}}class r extends _0x3e155f{static get['requires'](){return[o,P,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xa56bd4){super(_0xa56bd4),this['set']('isThreadsLoadingPaused',!0x0),_0xa56bd4['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x241983,_0x186d41,_0x4d9a35,_0x10dd8d)=>{const _0x5c11cd=_0xa56bd4['plugins']['get'](o),_0x5ab936=_0x4d9a35?er(_0x4d9a35)['id']:null;_0xa56bd4['model']['change'](()=>{if(_0x5ab936){const _0x3f250a=this['getAllMarkersForId'](_0x5ab936);for(const _0x58644e of _0x3f250a)_0xa56bd4['editing']['reconvertMarker'](_0x58644e);}if(_0x10dd8d){const {id:_0x422227}=er(_0x10dd8d),_0x2f68bd=_0x5c11cd['getCommentThread'](_0x422227);if(_0x2f68bd&&_0x2f68bd['unlinkedAt'])return;if(_0x2f68bd&&!_0x2f68bd['isAttached'])return;const _0x5e963b=this['getAllMarkersForId'](_0x422227);for(const _0x3b0e9e of _0x5e963b)_0xa56bd4['editing']['reconvertMarker'](_0x3b0e9e);}}),_0x5ab936&&this['scrollToThreadMarker'](_0x5ab936);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5c5b74=this['editor'],_0x186dc3=_0x5c5b74['plugins']['get'](o),_0x250f1e=_0x5c5b74['config']['get']('collaboration.channelId'),_0x29732a=_0x186dc3['getCommentThreads']()['filter'](_0xd6e03b=>_0xd6e03b['channelId']!==_0x250f1e);_0x5c5b74['commands']['add']('addCommentThread',new J(_0x5c5b74)),this['listenTo'](_0x5c5b74,'change:isReadOnly',(_0x4f68e5,_0x3e48da,_0x280d99)=>{_0x186dc3['switchReadOnly'](_0x280d99,_0x5c5b74['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x186dc3,ft('addCommentThread',_0x250f1e),(_0x56dc1e,{threadId:_0x20ed47})=>{const _0x301171=this['editor']['plugins']['get'](o)['getCommentThread'](_0x20ed47);_0x301171?.['unlinkedAt']&&this['_attachArchivedThread'](_0x20ed47);}),this['listenTo'](_0x186dc3,ft('removeCommentThread',_0x250f1e),(_0x2feb6e,{threadId:_0x5e58e3})=>{_0x5c5b74['model']['enqueueChange']({'isUndoable':!0x1},_0x4cb746=>{const _0x4112da=this['getAllMarkersForId'](_0x5e58e3);for(const _0x2f1257 of _0x4112da)_0x4cb746['removeMarker'](_0x2f1257);});}),this['listenTo'](_0x186dc3,ft('resolveCommentThread',_0x250f1e),(_0x14e56c,{threadId:_0x577192})=>{(this['_reconvertMarkers'](_0x577192),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x577192)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x186dc3,ft('reopenCommentThread',_0x250f1e),(_0x1cf5d4,{threadId:_0x3c23ff})=>{this['_reconvertMarkers'](_0x3c23ff);},{'priority':'low'}),this['listenTo'](_0x186dc3,ft('addComment',_0x250f1e),(_0x5e605c,{threadId:_0x21929f,isFromAdapter:_0x47f5fe})=>{const _0x51f6c3=this['getAllMarkersForId'](_0x21929f);if(_0x47f5fe||0x0==_0x51f6c3['length']||!_0x186dc3['hasCommentThread'](_0x21929f))return;0x1===_0x186dc3['getCommentThread'](_0x21929f)['length']&&_0x5c5b74['model']['enqueueChange']({'isUndoable':!0x1},_0x3b34c3=>{for(const _0x3c43f9 of _0x51f6c3)_0x3b34c3['updateMarker'](_0x3c43f9,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x29732a);}['afterInit'](){!async function(_0x2a82d0){const _0x20c6f8=_0x48f24c([0x35,0x74,0x68,0x42,0x76,0x6b,0x38,0x61,0x64,0x75,0x67,0x57,0x6d,0x5a,0x6a,0x66,0x54,0x43,0x62,0x44,0x69,0x55,0x32,0x59,0x65,0x41,0x79,0x6e,0x4c,0x70,0x58,0x4b,0x52,0x7a,0x31,0x33,0x4e,0x6f,0x30,0x53,0x48,0x46,0x47,0x36,0x4d,0x50,0x51,0x56,0x63,0x6c,0x72,0x37,0x77,0x49,0x4f,0x39,0x45,0x73,0x71,0x4a,0x78,0x34]),_0x505bce=0x60e7aa90,_0x66d76a=0x60e0cd40^_0x505bce,_0x131255=window[_0x48f24c([0x44,0x61,0x74,0x65])][_0x48f24c([0x6e,0x6f,0x77])](),_0x958cb8=_0x2a82d0[_0x48f24c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x539418=new window[(_0x48f24c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x582bf2=>{_0x958cb8[_0x48f24c([0x6f,0x6e,0x63,0x65])](_0x48f24c([0x72,0x65,0x61,0x64,0x79]),_0x582bf2);}),_0x3cc73c={[_0x48f24c([0x6b,0x74,0x79])]:_0x48f24c([0x45,0x43]),[_0x48f24c([0x75,0x73,0x65])]:_0x48f24c([0x73,0x69,0x67]),[_0x48f24c([0x63,0x72,0x76])]:_0x48f24c([0x50,0x2d,0x32,0x35,0x36]),[_0x48f24c([0x78])]:_0x48f24c([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]),[_0x48f24c([0x79])]:_0x48f24c([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]),[_0x48f24c([0x61,0x6c,0x67])]:_0x48f24c([0x45,0x53,0x32,0x35,0x36])},_0xc27156=_0x958cb8[_0x48f24c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x48f24c([0x67,0x65,0x74])](_0x48f24c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d1303(){let _0x51aab9,_0x3db590=null,_0x40f7d0=null;try{if(_0xc27156==_0x48f24c([0x47,0x50,0x4c]))return _0x48f24c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51aab9=_0x177c01(),!_0x51aab9)return _0x48f24c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51aab9[_0x48f24c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x40f7d0=_0x3844aa(_0x51aab9[_0x48f24c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51aab9[_0x48f24c([0x6a,0x74,0x69])])),await _0x5b45d8()?_0x209cdc()?_0x4bce0e()?_0x48f24c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x16fbfd()?(_0x51aab9[_0x48f24c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48f24c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3db590=_0x8fdfc8(_0x48f24c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x51aab9[_0x48f24c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48f24c([0x74,0x72,0x69,0x61,0x6c])&&(_0x3db590=_0x8fdfc8(_0x48f24c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x313f71()):_0x48f24c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x48f24c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x48f24c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x55e493){return _0x48f24c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4bce0e(){const _0x4480d7=[_0x48f24c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x48f24c([0x74,0x72,0x69,0x61,0x6c])][_0x48f24c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51aab9[_0x48f24c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x131255/0x3e8:0xe10*_0x66d76a;return _0x51aab9[_0x48f24c([0x65,0x78,0x70])]<_0x4480d7;}function _0x209cdc(){const _0x223ff6=_0x51aab9[_0x48f24c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x223ff6)return!0x1;if(_0x223ff6[_0x48f24c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48f24c([0x2a])))return!0x0;if(_0x223ff6[_0x48f24c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48f24c([0x43,0x4d,0x54])))return!0x0;if(_0x223ff6[_0x48f24c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48f24c([0x52,0x43,0x4d,0x54]))){if(_0x1c0db7())return!0x0;if(_0x46cde1()||_0x13bb54())return!0x0;}return!0x1;}function _0x16fbfd(){const _0x3c1e69=_0x51aab9[_0x48f24c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c1e69||0x0==_0x3c1e69[_0x48f24c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x236e96}=new URL(window[_0x48f24c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3c1e69[_0x48f24c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x236e96))return!0x0;const _0x373d07=_0x236e96[_0x48f24c([0x73,0x70,0x6c,0x69,0x74])](_0x48f24c([0x2e]));return _0x3c1e69[_0x48f24c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4427b7=>_0x4427b7[_0x48f24c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48f24c([0x2a])))[_0x48f24c([0x6d,0x61,0x70])](_0x3e5f5b=>_0x3e5f5b[_0x48f24c([0x73,0x70,0x6c,0x69,0x74])](_0x48f24c([0x2e])))[_0x48f24c([0x73,0x6f,0x6d,0x65])](_0x27cb7d=>_0x373d07[_0x48f24c([0x65,0x76,0x65,0x72,0x79])]((_0x196281,_0x5a9cb7)=>_0x27cb7d[_0x5a9cb7]===_0x196281||_0x27cb7d[_0x5a9cb7]===_0x48f24c([0x2a])));}function _0x313f71(){return _0x3db590&&_0x40f7d0?new window[(_0x48f24c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x283fea,_0x50f0ba)=>{_0x3db590[_0x48f24c([0x74,0x68,0x65,0x6e])](_0x283fea,_0x50f0ba),_0x40f7d0[_0x48f24c([0x74,0x68,0x65,0x6e])](_0x4feb02=>{_0x4feb02!=_0x48f24c([0x56,0x61,0x6c,0x69,0x64])&&_0x283fea(_0x4feb02);},_0x50f0ba);}):_0x3db590||_0x40f7d0||_0x48f24c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3844aa(_0x427a5f,_0x248eb0){return new window[(_0x48f24c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19a988=>{if(_0x1c6630())return _0x19a988(_0x48f24c([0x56,0x61,0x6c,0x69,0x64]));_0x30476e(),_0x958cb8[_0x48f24c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x48f24c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x32540d=!0x1;const _0x290b78=_0x1fe468();function _0x4050e0(_0xbfe776){return!!_0xbfe776&&(typeof _0xbfe776===_0x48f24c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xbfe776===_0x48f24c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xbfe776[_0x48f24c([0x74,0x68,0x65,0x6e])]===_0x48f24c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xbfe776[_0x48f24c([0x63,0x61,0x74,0x63,0x68])]===_0x48f24c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2cac3a(_0x2fcd69){_0x1ced67(_0x2fcd69)[_0x48f24c([0x74,0x68,0x65,0x6e])](_0x1f2009=>{if(!_0x1f2009||_0x1f2009[_0x48f24c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x48f24c([0x6f,0x6b]))return _0x48f24c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x511203(_0x3e11f9(_0x290b78+_0x248eb0))!=_0x1f2009[_0x48f24c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x48f24c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x48f24c([0x56,0x61,0x6c,0x69,0x64]);})[_0x48f24c([0x74,0x68,0x65,0x6e])](_0x474721=>(_0x495f08(),_0x474721),()=>{const _0x5183dd=_0x246507();return null==_0x5183dd?(_0x495f08(),_0x48f24c([0x56,0x61,0x6c,0x69,0x64])):_0x48f24c(_0x131255-_0x5183dd>(0x44eb2e90^_0x505bce)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x48f24c([0x74,0x68,0x65,0x6e])](_0x19a988)[_0x48f24c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x19a988(_0x48f24c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x34de64=0x60d14410^_0x505bce;function _0x495f08(){const _0x12cc5f=_0x48f24c([0x6c,0x6c,0x63,0x74,0x2d])+_0x511203(_0x3e11f9(_0x427a5f)),_0xdc1683=_0x503519(_0x511203(window[_0x48f24c([0x4d,0x61,0x74,0x68])][_0x48f24c([0x63,0x65,0x69,0x6c])](_0x131255/_0x34de64)));window[_0x48f24c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48f24c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x12cc5f,_0xdc1683);}function _0x246507(){const _0x529b66=_0x48f24c([0x6c,0x6c,0x63,0x74,0x2d])+_0x511203(_0x3e11f9(_0x427a5f)),_0x5aaa30=window[_0x48f24c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48f24c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x529b66);return _0x5aaa30?window[_0x48f24c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x503519(_0x5aaa30),0x10)*_0x34de64:null;}function _0x1ced67(_0x45e546){return new window[(_0x48f24c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3fe61a,_0x1cae79)=>{_0x45e546[_0x48f24c([0x74,0x68,0x65,0x6e])](_0x3fe61a,_0x1cae79),window[_0x48f24c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1cae79,0x60e67e50^_0x505bce);});}}_0x958cb8[_0x48f24c([0x6f,0x6e])](_0x48f24c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x51d8af,_0x2bb171)=>{if(_0x2bb171[0x0]!=_0x427a5f)return _0x19a988(_0x48f24c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2bb171[0x1]={..._0x2bb171[0x1],[_0x48f24c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x290b78};},{[_0x48f24c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48f24c([0x68,0x69,0x67,0x68])}),_0x958cb8[_0x48f24c([0x6f,0x6e])](_0x48f24c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x54968b=>{_0x4050e0(_0x54968b[_0x48f24c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x32540d=!0x0,_0x2cac3a(_0x54968b[_0x48f24c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x48f24c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48f24c([0x6c,0x6f,0x77])}),_0x539418[_0x48f24c([0x74,0x68,0x65,0x6e])](()=>{_0x32540d||_0x19a988(_0x48f24c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1c6630(){return _0x958cb8[_0x48f24c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48f24c([0x76,0x69,0x65,0x77])][_0x48f24c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x48f24c([0x61,0x75,0x74,0x6f]);}function _0x30476e(){_0x958cb8[_0x48f24c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48f24c([0x76,0x69,0x65,0x77])][_0x48f24c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x48f24c([0x61,0x75,0x74,0x6f]);}}function _0x8fdfc8(_0x27751f){const _0xf92d=[new window[(_0x48f24c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5138a4=>setTimeout(_0x5138a4,0x60ee945c^_0x505bce)),_0x539418[_0x48f24c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x48f24c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x192f75=>{let _0xd4615f=0x0;_0x958cb8[_0x48f24c([0x6d,0x6f,0x64,0x65,0x6c])][_0x48f24c([0x6f,0x6e])](_0x48f24c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3d527c,_0x4d42cc)=>{_0x4d42cc[0x0][_0x48f24c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xd4615f++,_0xd4615f==(0x60e7ab68^_0x505bce)&&(_0x192f75(),_0x3d527c[_0x48f24c([0x6f,0x66,0x66])]());});}))];return window[_0x48f24c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x48f24c([0x72,0x61,0x63,0x65])](_0xf92d)[_0x48f24c([0x74,0x68,0x65,0x6e])](()=>_0x27751f);}async function _0x3d7700(){await _0x539418,_0x958cb8[_0x48f24c([0x6d,0x6f,0x64,0x65,0x6c])][_0x48f24c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x84d9dc,_0x958cb8[_0x48f24c([0x6d,0x6f,0x64,0x65,0x6c])][_0x48f24c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x84d9dc,_0x958cb8[_0x48f24c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x48f24c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1c0db7(){return _0x166b3f(_0x48f24c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x26cc11(_0x48f24c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x48f24c([0x73,0x74,0x61,0x74,0x65])]==_0x48f24c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x46cde1(){return _0x166b3f(_0x48f24c([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 _0x13bb54(){return _0x166b3f(_0x48f24c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x271aa5(_0x5ad980){const _0x296c4c=_0x457368();_0x958cb8[_0x296c4c]=_0x48f24c([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5ad980,_0x5ad980!=_0x48f24c([0x56,0x61,0x6c,0x69,0x64])&&_0x3d7700();}function _0x457368(){const _0x1d5300=window[_0x48f24c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x48f24c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x48f24c([0x6e,0x6f,0x77])]())[_0x48f24c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x48f24c([0x2e]),'');let _0x106740=_0x48f24c([0x74]);for(let _0x2cd29c=0x0;_0x2cd29c<_0x1d5300[_0x48f24c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2cd29c+=0x2){let _0x41d188=window[_0x48f24c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d5300[_0x48f24c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2cd29c,_0x2cd29c+0x2));_0x41d188>=_0x20c6f8[_0x48f24c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x41d188-=_0x20c6f8[_0x48f24c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x106740+=_0x20c6f8[_0x41d188];}return _0x106740;}function _0x177c01(){const _0x1d8c7e=_0xc27156[_0x48f24c([0x73,0x70,0x6c,0x69,0x74])](_0x48f24c([0x2e]));if(0x3!=_0x1d8c7e[_0x48f24c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2134b0(_0x1d8c7e[0x1]);function _0x2134b0(_0x3ab661){const _0x4c936d=_0x280b7b(_0x3ab661);return _0x4c936d&&_0x50c7bb()?_0x4c936d:null;function _0x50c7bb(){const _0x3a438f=_0x4c936d[_0x48f24c([0x6a,0x74,0x69])],_0x5d6668=window[_0x48f24c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a438f[_0x48f24c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a438f[_0x48f24c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x318c92={..._0x4c936d,[_0x48f24c([0x6a,0x74,0x69])]:_0x3a438f[_0x48f24c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3a438f[_0x48f24c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x318c92[_0x48f24c([0x76,0x63])],_0x3e11f9(_0x318c92)==_0x5d6668;}}}async function _0x5b45d8(){let _0x944ec8=!0x0;try{const _0x1ce0ca=_0xc27156[_0x48f24c([0x73,0x70,0x6c,0x69,0x74])](_0x48f24c([0x2e])),[_0x5cfdc0,_0x4dafa9,_0x267797]=_0x1ce0ca;return _0x466817(_0x5cfdc0),await _0x4df255(_0x5cfdc0,_0x4dafa9,_0x267797),_0x944ec8;}catch(_0x714dd6){return!0x1;}function _0x466817(_0x431dc2){const _0x44f9b2=_0x280b7b(_0x431dc2);_0x44f9b2&&_0x44f9b2[_0x48f24c([0x61,0x6c,0x67])]==_0x48f24c([0x45,0x53,0x32,0x35,0x36])||(_0x944ec8=!0x1);}async function _0x4df255(_0x2a4a1f,_0x101e9d,_0x12310c){const _0x5699d4=window[_0x48f24c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x48f24c([0x66,0x72,0x6f,0x6d])](_0x163050(_0x12310c),_0xc73474=>_0xc73474[_0x48f24c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x430935=new window[(_0x48f24c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x48f24c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2a4a1f+_0x48f24c([0x2e])+_0x101e9d),_0xd31f36=window[_0x48f24c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x48f24c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xd31f36)return;const _0x12a10f=await _0xd31f36[_0x48f24c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x48f24c([0x6a,0x77,0x6b]),_0x3cc73c,{[_0x48f24c([0x6e,0x61,0x6d,0x65])]:_0x48f24c([0x45,0x43,0x44,0x53,0x41]),[_0x48f24c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x48f24c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x48f24c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xd31f36[_0x48f24c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x48f24c([0x6e,0x61,0x6d,0x65])]:_0x48f24c([0x45,0x43,0x44,0x53,0x41]),[_0x48f24c([0x68,0x61,0x73,0x68])]:{[_0x48f24c([0x6e,0x61,0x6d,0x65])]:_0x48f24c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x12a10f,_0x5699d4,_0x430935)||(_0x944ec8=!0x1);}}function _0x280b7b(_0x5bf679){return _0x5bf679[_0x48f24c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x48f24c([0x65,0x79]))?JSON[_0x48f24c([0x70,0x61,0x72,0x73,0x65])](_0x163050(_0x5bf679)):null;}function _0x163050(_0x2e76be){return window[_0x48f24c([0x61,0x74,0x6f,0x62])](_0x2e76be[_0x48f24c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x48f24c([0x2b]))[_0x48f24c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x48f24c([0x2f])));}function _0x3e11f9(_0x8fd6e0){let _0x3726ef=0x1505;function _0x38e263(_0x19435b){for(let _0x3c29b2=0x0;_0x3c29b2<_0x19435b[_0x48f24c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c29b2++){const _0x268c5a=_0x19435b[_0x48f24c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3c29b2);_0x3726ef=(_0x3726ef<<0x5)+_0x3726ef+_0x268c5a,_0x3726ef&=_0x3726ef;}}function _0x16d237(_0x434e2e){Array[_0x48f24c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x434e2e)?_0x434e2e[_0x48f24c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x16d237):_0x434e2e&&typeof _0x434e2e==_0x48f24c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x48f24c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x434e2e)[_0x48f24c([0x73,0x6f,0x72,0x74])]()[_0x48f24c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x26d986,_0x702fbc])=>{_0x38e263(_0x26d986),_0x16d237(_0x702fbc);}):_0x38e263(window[_0x48f24c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x434e2e));}return _0x16d237(_0x8fd6e0),_0x3726ef>>>0x0;}function _0x511203(_0xf272f7){return _0xf272f7[_0x48f24c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x48f24c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x48f24c([0x30]));}function _0x503519(_0x4012c7){return _0x4012c7[_0x48f24c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x48f24c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x48f24c([0x6a,0x6f,0x69,0x6e])]('');}function _0x166b3f(_0x46c5f8){return _0x958cb8[_0x48f24c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x48f24c([0x68,0x61,0x73])](_0x46c5f8);}function _0x26cc11(_0x2f9738){return _0x958cb8[_0x48f24c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x48f24c([0x67,0x65,0x74])](_0x2f9738);}function _0x84d9dc(){}function _0x48f24c(_0x2f76f8){return _0x2f76f8['map'](_0x1266c0=>String['fromCharCode'](_0x1266c0))['join']('');}_0x271aa5(await _0x5d1303());}(this);}['destroy'](){const _0x4bafed=this['editor']['plugins']['get'](o),_0x1ff041=this['editor']['config']['get']('collaboration.channelId');for(const _0x545972 of _0x4bafed['getCommentThreads']({'channelId':_0x1ff041}))_0x4bafed['_detachCommentThread'](_0x545972['id']),_0x4bafed['_threads']['delete'](_0x545972['id']);super['destroy']();}['hasMarkerForId'](_0x41c388){return this['getAllMarkersForId'](_0x41c388)['length']>0x0;}['getAllMarkersForId'](_0x47fdfd){const _0x515916=[];for(const _0x42684f of this['editor']['model']['markers'])_0x42684f['name']['startsWith']('comment:'+_0x47fdfd)&&_0x515916['push'](_0x42684f);return _0x515916;}['scrollToThreadMarker'](_0x22abb4){const _0x435ce1=this['_getTargetForId'](_0x22abb4);_0x435ce1&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x22abb4&&rt({'target':_0x435ce1[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x252dc3){this['editor']['model']['change'](()=>{for(const _0x26944d of this['getAllMarkersForId'](_0x252dc3))this['editor']['editing']['reconvertMarker'](_0x26944d);});}['_attachArchivedThread'](_0x210a48){const _0x4447ab=this['editor']['plugins']['get'](o),_0x58c5f0=this['editor']['plugins']['get'](P),_0x4d264b=_0x4447ab['getCommentThread'](_0x210a48);if(!_0x4d264b['isAttached']){const _0x1e68cd=_0x4d264b['attachTo'](()=>this['_getTargetForId'](_0x4d264b['id']));_0x58c5f0['registerAnnotation'](_0x1e68cd),_0x4d264b['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0xc61ce=this['editor'],_0x466aaf=_0xc61ce['plugins']['get'](it);_0xc61ce['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x256412,_0x181615)=>{const {id:_0x773659}=er(_0x256412['markerName']),_0x3bfcc6=_0xc61ce['plugins']['get'](o)['getCommentThread'](_0x773659),_0x4bddd6=this['activeMarker']&&er(this['activeMarker'])['id']===_0x773659;let _0x3e6c56;if(_0x3bfcc6&&_0x3bfcc6['isResolved']&&!_0x4bddd6&&_0x256412['item'])return _0x181615['consumable']['consume'](_0x256412['item'],'addMarker:'+_0x256412['markerName']),_0x181615['consumable']['consume'](_0x256412['item'],'removeMarker:'+_0x256412['markerName']),null;const _0x49a3ad=['ck-comment-marker'];return _0x4bddd6&&_0x49a3ad['push']('ck-comment-marker--active'),_0x3e6c56=_0x3bfcc6?.['length']?_0x3bfcc6['comments']['first']['author']['id']:_0x466aaf['me']['id'],{'classes':_0x49a3ad,'attributes':{'data-comment':_0x773659,'data-author-id':_0x3e6c56}};}}),_0xc61ce['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x4cef58,{options:_0x311a1e})=>{if(_0x311a1e['showCommentHighlights'])return null;const _0x2e6336=_0xc61ce['plugins']['get'](o),_0x82da44=_0xc61ce['model']['markers']['get'](_0x4cef58),{id:_0x2042b9,part:_0x3abf8d}=er(_0x4cef58);return _0x82da44&&!_0x82da44['affectsData']||_0x311a1e['ignoreResolvedComments']&&_0x2e6336['getCommentThread'](_0x2042b9)?.['isResolved']?null:{'group':'comment','name':_0x3abf8d?_0x2042b9+':'+_0x3abf8d:_0x2042b9};}}),_0xc61ce['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x3229e6,{writer:_0xe03dce})=>_0xe03dce['createElement']('$marker',{'data-name':'comment:'+_0x3229e6['getAttribute']('id')})}),_0xc61ce['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x5b4010=this['editor'],_0x55c5d0=_0x5b4010['plugins']['get'](o),_0x160395=new Set(),_0x526328=new Set();_0x5b4010['model']['document']['registerPostFixer'](_0x5a20a8=>{let _0x57ef8d=!0x1;for(const {name:_0xa5b7ac,data:_0x518382}of _0x5b4010['model']['document']['differ']['getChangedMarkers']()){const {group:_0x24416c,id:_0x386e2a}=er(_0xa5b7ac);let _0x4415a1=_0x518382['newRange'];if('comment'!==_0x24416c||!_0x4415a1)continue;const _0x1e8d3d='$graveyard'===_0x4415a1['root']['rootName'];_0x1e8d3d||(_0x4415a1=dt(_0x4415a1,_0x5b4010['model']),!_0x4415a1||_0x4415a1['isCollapsed']||!_0x518382['newRange']||_0x4415a1['isEqual'](_0x518382['newRange']))?_0x5b4010['model']['hasContent'](_0x4415a1)&&!_0x1e8d3d?this['isThreadsLoadingPaused']?_0x160395['add'](_0xa5b7ac):this['_handleThreadMarker'](_0xa5b7ac,_0x386e2a):(_0x526328['add'](_0xa5b7ac),_0x160395['delete'](_0xa5b7ac),_0x5a20a8['removeMarker'](_0xa5b7ac),_0x57ef8d=!0x0):(_0x5a20a8['updateMarker'](_0xa5b7ac,{'range':_0x4415a1}),_0x57ef8d=!0x0);}return _0x57ef8d;}),this['on']('change:isThreadsLoadingPaused',(_0xe06c67,_0x4d8488,_0xb4b5d6)=>{if(!_0xb4b5d6&&_0x160395['size'])for(const _0x5277a3 of _0x160395){const {id:_0x2de6cc}=er(_0x5277a3);_0x160395['delete'](_0x5277a3),_0x5b4010['model']['markers']['get'](_0x5277a3)&&this['_handleThreadMarker'](_0x5277a3,_0x2de6cc);}}),this['listenTo'](_0x5b4010['model']['document'],'change',()=>{for(const {name:_0x3210f8,data:{newRange:_0x5291b0}}of _0x5b4010['model']['document']['differ']['getChangedMarkers']()){const {group:_0x59ebe6,id:_0x3043be}=er(_0x3210f8);if('comment'!==_0x59ebe6)continue;const _0x386f12=_0x55c5d0['getCommentThread'](_0x3043be),_0x3dfb3b=this['hasMarkerForId'](_0x3043be);_0x386f12&&(!_0x386f12['_hasTargetInContent']&&_0x5291b0&&_0x5b4010['editing']['view']['once']('render',()=>{const _0x5e665e=_0x5b4010['plugins']['get'](O),_0x455f9d=_0x55c5d0['_threadToController']['get'](_0x386f12)['view'];_0x5e665e['getByInnerView'](_0x455f9d)['refreshVisibility']();},{'priority':'low'}),_0x386f12['_hasTargetInContent']=_0x3dfb3b||!!_0x5291b0),_0x5291b0||(_0x526328['add'](_0x3210f8),_0x160395['delete'](_0x3210f8));}for(const _0x399285 of _0x526328){const {id:_0x37fff9}=er(_0x399285),_0x1cf54c=_0x55c5d0['getCommentThread'](_0x37fff9);if(_0x160395['delete'](_0x399285),!_0x1cf54c)continue;const _0x3ffca5=this['hasMarkerForId'](_0x37fff9);_0x3ffca5||_0x1cf54c['isSubmitted']?_0x3ffca5||_0x1cf54c['unlinkedAt']||_0x1cf54c['setUnlinkedAt'](new Date()):_0x1cf54c['remove']();}_0x526328['clear']();});}['_handleInitialThreads'](_0x20e5df){_0x20e5df['forEach'](_0x14951e=>{_0x14951e['unlinkedAt']&&this['_attachArchivedThread'](_0x14951e['id']);});}['_getTargetForId'](_0x5bca8f){const _0x2161cd=this['editor'],_0x1cea7a=this['getAllMarkersForId'](_0x5bca8f);return et(_0x2161cd['editing'],_0x1cea7a);}['_getTextContext'](_0x5d4dd8){const _0x390a4b=this['getAllMarkersForId'](_0x5d4dd8);let _0xe86838='',_0x3881fd=!0x1;for(const _0x11bea3 of _0x390a4b){const _0x413c65=_0x11bea3['getRange']();for(const _0x5e44d6 of Array['from'](_0x413c65['getItems']()))_0x5e44d6['is']('$textProxy')?(_0xe86838&&_0x3881fd&&(_0xe86838+='\x20',_0x3881fd=!0x1),_0xe86838+=_0x5e44d6['data']):_0x3881fd=!0x0;_0x3881fd=!0x0;}return _0xe86838['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x4ae236,_0xdc271b){const _0x557c70=this['editor'],_0x119ff3=_0x557c70['plugins']['get'](o);let _0xceb6fa=_0x119ff3['getCommentThread'](_0xdc271b);const _0x5655f5=_0x557c70['config']['get']('collaboration.channelId'),_0x5601ed=_0x557c70['plugins']['get'](P);if(_0xceb6fa&&(_0xceb6fa['unlinkedAt']&&_0xceb6fa['setUnlinkedAt'](null),_0xceb6fa['isAttached']))return _0xceb6fa;return!this['getAllMarkersForId'](_0xdc271b)[0x0]['managedUsingOperations']?_0x557c70['editing']['view']['once']('render',()=>{if(_0x119ff3['getCommentThread'](_0xdc271b))return;const _0x3a5522=_0x557c70['plugins']['get'](O);_0xceb6fa=_0x119ff3['openNewCommentThread']({'channelId':_0x5655f5,'threadId':_0xdc271b,'target':()=>this['_getTargetForId'](_0xdc271b),'context':{'type':'text','value':this['_getTextContext'](_0xdc271b)}});const _0x5eb46a=_0x119ff3['_threadToController']['get'](_0xceb6fa)['view'],_0x127cd4=_0x3a5522['getByInnerView'](_0x5eb46a);_0x127cd4&&_0x5601ed['registerAnnotation'](_0x127cd4);},{'priority':'low'}):_0x119ff3['fetchCommentThread']({'channelId':_0x5655f5,'threadId':_0xdc271b})['then'](_0x3ba8b8=>{if('destroyed'!==_0x557c70['state']){if(_0xceb6fa=_0x3ba8b8,_0xceb6fa&&!_0xceb6fa['isAttached']){const _0x108334=_0xceb6fa['attachTo'](()=>this['_getTargetForId'](_0xdc271b));_0x5601ed['registerAnnotation'](_0x108334),_0xceb6fa['isResolved']&&this['_reconvertMarkers'](_0xdc271b);}else{if(!_0xceb6fa){const _0x430b28=this['getAllMarkersForId'](_0xdc271b);_0x557c70['model']['change'](_0x59974c=>{for(const _0x6457aa of _0x430b28)_0x59974c['removeMarker'](_0x6457aa);});}}}}),_0xceb6fa;}['_handleThreadMarker'](_0x381f09,_0xde8ad6){const _0x99fecf=this['_attachMarkerToThread'](_0x381f09,_0xde8ad6);_0x99fecf&&!_0x99fecf['context']&&_0x99fecf['setContext']({'type':'text','value':this['_getTextContext'](_0xde8ad6)});}['_initAriaMarkerChangeAnnouncements'](){const _0x25d857=this['editor'];ot(_0x25d857['model'],({left:_0x51b42b,entered:_0x505726})=>{for(const _0x333a5c of _0x51b42b)if(mt(_0x333a5c)){_0x25d857['ui']['ariaLiveAnnouncer']['announce'](E(_0x25d857['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x39bc61 of _0x505726)if(mt(_0x39bc61)){_0x25d857['ui']['ariaLiveAnnouncer']['announce'](E(_0x25d857['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x357028)));break;}});}}function ft(_0x313e37,_0x4c4cc8){return _0x4c4cc8?_0x313e37+':'+_0x4c4cc8:_0x313e37;}function er(_0x279b41){const _0x2698cd=_0x279b41['split'](':');return{'group':_0x2698cd[0x0],'id':_0x2698cd[0x1],'part':_0x2698cd[0x2]};}function dt(_0x5c7921,_0x4f2ec3){const _0x2fbddb=_0x4f2ec3['schema'],_0x53dccd=_0x4f2ec3['createRange'](_0x5c7921['start']);for(const _0x10051f of _0x5c7921['getWalker']()){const {type:_0x7f38ab,item:_0x55826f,nextPosition:_0x24416e}=_0x10051f;if('text'===_0x7f38ab||_0x2fbddb['isObject'](_0x55826f)){const _0x2971fa=_0x4f2ec3['createPositionBefore'](_0x55826f);_0x53dccd['isCollapsed']&&(_0x53dccd['start']=_0x2971fa),_0x53dccd['end']=_0x24416e;}}return _0x53dccd;}function mt(_0xbdf928){return'comment'===er(_0xbdf928['name'])['group'];}class i extends _0x3e155f{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,P,O];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x390bfb=this['editor'],_0x5b6965=_0x390bfb['plugins']['get'](o),_0x449236=_0x390bfb['plugins']['get'](r),_0x9eb382=_0x390bfb['plugins']['get'](O),_0x178eb8=_0x390bfb['plugins']['get'](P);_0x390bfb['ui']['componentFactory']['add']('comment',()=>{const _0x3330b3=this['_createUIButton'](_0x5ae41a);return _0x3330b3['tooltip']=!0x0,_0x3330b3;}),_0x390bfb['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x39588d)),_0x178eb8['addSourceCollector'](()=>{const _0x1c5f85=[];for(const [_0x247a43,_0x2b0b33]of _0x5b6965['_threadToController']){const _0xbc1c83=_0x449236['getAllMarkersForId'](_0x247a43['id']),_0xa43dfc=_0xbc1c83['map'](_0x16003b=>_0x16003b['getRange']());_0xbc1c83['length']>0x0&&_0x1c5f85['push']([_0x2b0b33['view'],_0xa43dfc]);}return _0x1c5f85;}),this['listenTo'](_0x9eb382,'change:activeAnnotations',(_0x57eb33,_0x216a5e,_0x54f651)=>{const _0x22b906=Array['from'](_0x54f651)['map'](_0xfe2c8d=>_0xfe2c8d['innerView'])['find'](_0x4b0d64=>_0x5b6965['_viewToController']['has'](_0x4b0d64));if(!_0x22b906)return void(_0x449236['activeMarker']=null);const _0x1a88f4=_0x5b6965['_viewToController']['get'](_0x22b906)['model']['id'],_0x1ac4b3='comment:'+_0x1a88f4;_0x1a88f4&&_0x449236['hasMarkerForId'](_0x1a88f4)?_0x449236['activeMarker']=_0x1ac4b3:_0x449236['activeMarker']&&(_0x449236['activeMarker']=null);}),this['listenTo'](_0x5b6965,'removeCommentThread',(_0x296a6e,{threadId:_0x7a72aa,isFromAdapter:_0x20a71d})=>{!_0x20a71d&&_0x390bfb['ui']['focusTracker']['isFocused']&&_0x449236['hasMarkerForId'](_0x7a72aa)&&_0x390bfb['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x5b6965,'addComment',(_0x58d9c8,{threadId:_0x4d78e8,isFromAdapter:_0x1cb4df})=>{if(_0x1cb4df||!_0x449236['hasMarkerForId'](_0x4d78e8)||!_0x5b6965['hasCommentThread'](_0x4d78e8))return;0x1===_0x5b6965['getCommentThread'](_0x4d78e8)['length']&&(_0x390bfb['editing']['view']['focus'](),_0x58d9c8['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2e0b42=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x29bc1b;for(const _0x16359c in _0x2e0b42){const _0xed0b5a=_0x16359c,_0xb0265=_0x2e0b42[_0xed0b5a];if('commentsLicenseKeyValid'==_0xb0265||'commentsLicenseKeyInvalid'==_0xb0265||'commentsLicenseKeyExpired'==_0xb0265||'commentsLicenseKeyDomainLimit'==_0xb0265||'commentsLicenseKeyNotAllowed'==_0xb0265||'commentsLicenseKeyEvaluationLimit'==_0xb0265||'commentsLicenseKeyTrialLimit'==_0xb0265||'commentsLicenseKeyUsageLimit'==_0xb0265){delete _0x2e0b42[_0xed0b5a],_0x29bc1b=_0xb0265,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x29bc1b&&_0x2e0b42['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x29bc1b&&_0x2e0b42['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x29bc1b&&_0x2e0b42['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x29bc1b&&_0x2e0b42['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x29bc1b&&_0x2e0b42['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x29bc1b&&_0x2e0b42['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x29bc1b&&_0x2e0b42['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x243186){const _0xb91d52=this['editor'],_0x29fbee=new _0x243186(_0xb91d52['locale']),_0x81fae1=_0xb91d52['commands']['get']('addCommentThread');return _0x29fbee['set']({'label':E(_0xb91d52['locale'],'Comment'),'icon':_0x5dec5b}),_0x29fbee['bind']('isEnabled')['to'](_0x81fae1),this['listenTo'](_0x29fbee,'execute',()=>{_0x81fae1['execute']();}),_0x29fbee;}}class s extends _0x3e155f{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x1eb38e){super(_0x1eb38e),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x118974,_0x26b7d7,_0x1ce07b)=>{_0x1ce07b?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x283259,_0x2d1420]of this['editor']['commands'])_0x2d1420['affectsData']&&'addCommentThread'!==_0x283259&&_0x2d1420['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 _0x121d7c=this['editor']['editing']['view']['document'];this['listenTo'](_0x121d7c,'cut',_0x59e6a2=>_0x59e6a2['stop'](),{'priority':'highest'}),this['listenTo'](_0x121d7c,'clipboardInput',_0x58e5a5=>_0x58e5a5['stop'](),{'priority':'highest'}),this['listenTo'](_0x121d7c,'delete',_0x22b206=>_0x22b206['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x30fc03,_0x11fdfc]of this['editor']['commands'])_0x11fdfc['affectsData']&&'addCommentThread'!==_0x30fc03&&_0x11fdfc['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 M extends _0x3c22fb{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[O];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x58dbb8){super(_0x58dbb8),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x46ac75=this['context']['plugins']['get'](O);this['listenTo'](_0x46ac75,'_activateAnnotation',(_0x3d375d,_0x94e3ee)=>{for(const _0x4c5df7 of this['activeUIs']){const _0xcefe97=this['_uis']['get'](_0x4c5df7);(0x0,this['uisData']['get'](_0x4c5df7)['filter'])(_0x94e3ee)&&_0xcefe97['setActiveAnnotation'](_0x94e3ee);}}),this['listenTo'](_0x46ac75,'_deactivateAllAnnotations',()=>{for(const _0x1c2098 of this['activeUIs']){this['_uis']['get'](_0x1c2098)['setActiveAnnotation'](null);}}),this['listenTo'](_0x46ac75['_visibleAnnotations'],'add',(_0x303837,_0xb60e6e)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xb60e6e);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x332850){return this['activeUIs']['has'](_0x332850);}['activate'](_0x4068a4,_0x3e5355=this['defaultFilter']){const _0x576c01=this['context']['plugins']['get'](O);if(!this['_uis']['has'](_0x4068a4))throw new _0x369546('annotationsuis-missing-ui',this,{'uiName':_0x4068a4});this['isActive'](_0x4068a4)&&this['deactivate'](_0x4068a4),this['activeUIs']['add'](_0x4068a4);const _0x12d9fb=new _();!function({source:_0x8c94df,target:_0x515610,filter:_0x4e381d}){for(const _0x214bd2 of _0x8c94df)_0x4e381d(_0x214bd2)&&_0x515610['add'](_0x214bd2);_0x515610['listenTo'](_0x8c94df,'add',(_0x1a70ce,_0x3feabc)=>{_0x4e381d(_0x3feabc)&&_0x515610['add'](_0x3feabc);}),_0x515610['listenTo'](_0x8c94df,'remove',(_0x344fe1,_0x4fab3d)=>{_0x515610['has'](_0x4fab3d)&&_0x515610['remove'](_0x4fab3d);});}({'source':_0x576c01['_visibleAnnotations'],'target':_0x12d9fb,'filter':_0x3e5355}),this['uisData']['set'](_0x4068a4,{'collection':_0x12d9fb,'filter':_0x3e5355});const _0x5bdde6=this['_uis']['get'](_0x4068a4);_0x5bdde6['attach'](_0x12d9fb),this['listenTo'](_0x5bdde6,'change:activeAnnotation',(_0x5a322d,_0x199e91,_0x3f058e,_0xfe5ab1)=>{_0xfe5ab1&&_0x576c01['_removeActiveAnnotation'](_0xfe5ab1),_0x3f058e&&_0x576c01['_addActiveAnnotation'](_0x3f058e);});}['deactivate'](_0x55d819){if(this['activeUIs']['delete'](_0x55d819),!this['_uis']['has'](_0x55d819))throw new _0x369546('annotationsuis-missing-ui',this,{'uiName':_0x55d819});const _0x47749c=this['_uis']['get'](_0x55d819);_0x47749c['detach'](),this['stopListening'](_0x47749c),this['uisData']['get'](_0x55d819)['collection']['destroy'](),this['uisData']['delete'](_0x55d819);}['switchTo'](_0x35575f){if(!this['_uis']['has'](_0x35575f))throw new _0x369546('annotationsuis-missing-ui',this,{'uiName':_0x35575f});const _0x59582a=this['context']['plugins']['get'](O),_0x57857e=Array['from'](_0x59582a['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x35575f);const _0x3a97a4=this['_uis']['get'](_0x35575f);_0x3a97a4['setActiveAnnotation'](_0x57857e),_0x3a97a4['_setSelectedAnnotations']&&_0x57857e&&_0x3a97a4['_setSelectedAnnotations']([_0x57857e]);}['deactivateAll'](){for(const _0x4422f2 of this['activeUIs'])this['deactivate'](_0x4422f2);}['register'](_0x5e173f,_0xa51369){if(this['_uis']['has'](_0x5e173f))throw new _0x369546('annotationsuis-register-already-registered');if('function'!=typeof _0xa51369['attach']||'function'!=typeof _0xa51369['detach']||'function'!=typeof _0xa51369['setActiveAnnotation'])throw new _0x369546('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x5e173f,_0xa51369);}['refilterAnnotations'](){const _0x45e983=this['context']['plugins']['get'](O)['collection'],_0x45a974=new Map(),_0x223ccc=Array['from'](this['activeUIs']);for(const _0x536047 of this['activeUIs']){const _0x4a5d5f=this['uisData']['get'](_0x536047)['collection'];for(const _0x10cbb7 of _0x4a5d5f)_0x45a974['set'](_0x10cbb7,_0x536047);}for(const _0x1f9759 of _0x45e983){const _0x464494=_0x45a974['get'](_0x1f9759);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1f9759);const _0x37cb45=_0x223ccc['find'](_0x5c05b2=>this['uisData']['get'](_0x5c05b2)['filter'](_0x1f9759));_0x464494!==_0x37cb45&&(_0x464494&&this['uisData']['get'](_0x464494)['collection']['remove'](_0x1f9759),_0x37cb45&&this['uisData']['get'](_0x37cb45)['collection']['add'](_0x1f9759));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1c05dd){const _0xb5e53c=[];for(const _0x227166 of this['activeUIs']){(0x0,this['uisData']['get'](_0x227166)['filter'])(_0x1c05dd)&&_0xb5e53c['push'](_0x227166);}if(_0xb5e53c['length']>0x1)throw new _0x369546('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0xb5e53c,'annotationType':_0x1c05dd['type']});}}const pi=xt('px');class F extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x5cdb14){super(_0x5cdb14);const _0x38a456=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 _0x4b4d8d(),this['focusCycler']=new _0x12ac84({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x38a456['to']('class')],'style':{'minHeight':_0x38a456['to']('minHeight',_0x5c1843=>'number'==typeof _0x5c1843?pi(_0x5c1843+0xa):null)},'dir':_0x5cdb14['uiLanguageDirection'],'role':'application','aria-label':E(_0x5cdb14,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':E(_0x5cdb14,'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',_0x552d8e=>{this['_updateItemPositionInFocusables'](_0x552d8e['source']);}),this['list']['forEach'](_0x49c327=>{this['focusTracker']['add'](_0x49c327['element']),this['_updateItemPositionInFocusables'](_0x49c327);}),this['list']['on']('change',(_0x2b1d8e,_0x27e4ef)=>{for(const _0x1e543b of _0x27e4ef['removed'])this['focusTracker']['remove'](_0x1e543b['element']),this['focusables']['remove'](_0x1e543b);for(const _0xaf5ea0 of _0x27e4ef['added'])this['focusTracker']['add'](_0xaf5ea0['element']),this['_updateItemPositionInFocusables'](_0xaf5ea0);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x37cd81){const _0x290209=this['focusables']['getIndex'](_0x37cd81);let _0x1006fb,_0x331cb8;for(const _0x4db088 of this['focusables'])if(_0x37cd81['top']<_0x4db088['top']){_0x1006fb=_0x4db088;break;}if(_0x331cb8=_0x1006fb?this['focusables']['getIndex'](_0x1006fb):this['focusables']['length'],-0x1!==_0x290209){if(_0x290209===_0x331cb8-0x1)return;this['focusables']['remove'](_0x37cd81),_0x331cb8=_0x1006fb?this['focusables']['getIndex'](_0x1006fb):this['focusables']['length'];}this['focusables']['add'](_0x37cd81,_0x331cb8);}}const Ht=xt('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x589a6d){super(_0x589a6d),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x31a39a,_0x3cfaa4)=>_0x31a39a+_0x3cfaa4),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x59a15c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x59a15c['to']('isAnimationDisabled',_0x5e4e4c=>_0x5e4e4c?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x59a15c['to']('top',_0x83705d=>Ht(_0x83705d))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x2c6b78=this['element']['clientHeight'];_0x2c6b78&&(this['height']=_0x2c6b78);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x3c22fb{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1cc4ee){super(_0x1cc4ee),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 _0x30c005=this['context']['config']['get']('sidebar.container');_0x30c005&&this['setContainer'](_0x30c005);}['setContainer'](_0x13e7ab){if(!y(_0x13e7ab))throw new _0x369546('sidebar-setcontainer-invalid-element');this['container']=_0x13e7ab;}['_attachToContainer']({viewClass:_0x561c55='',spaceBetweenItems:_0x51e86f=0x19}={}){if(!y(this['container']))throw new _0x369546('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x561c55,this['_spaceBetweenItems']=_0x51e86f;}['rearrange']({removedAnnotation:_0x1304ee,previousAnnotation:_0xf6e052,nextAnnotation:_0x2f0e58}){const _0xb1fbe=this['getSidebarItemView'](_0x1304ee);this['view']['list']['remove'](_0xb1fbe),this['_destroySidebarItemView'](_0x1304ee),_0xf6e052&&this['_alignToTargetRect'](this['getSidebarItemView'](_0xf6e052)),_0x2f0e58&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x2f0e58)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x2a0d90,activatedAnnotation:_0xce8e32,disableAnimationOnActivatedAnnotation:_0x1ffda1}){if(this['_activeAnnotation']=_0xce8e32,_0x2a0d90){_0x2a0d90['isActive']=!0x1;const _0x1304d0=this['getSidebarItemView'](_0x2a0d90);_0x1304d0&&_0x1ffda1&&(_0x1304d0['isAnimationDisabled']=!0x1);}if(_0xce8e32){const _0x43ba0e=this['getSidebarItemView'](_0xce8e32);_0x43ba0e&&(_0xce8e32['isActive']=!0x0,_0x1ffda1&&(_0x43ba0e['isAnimationDisabled']=!0x0,_0x43ba0e['top']+=0x1),this['_alignToTargetRect'](_0x43ba0e));}}['_detachFromContainer'](_0x281f2b){if(this['view']['element']['remove'](),_0x281f2b){for(const _0x4871df of _0x281f2b)this['_destroySidebarItemView'](_0x4871df);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x58bd83,_0x434102){_0x434102||(_0x434102=_0x58bd83['view']);const _0x44954e=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x44954e,_0x58bd83),this['_annotationToSidebarItemView']['set'](_0x58bd83,_0x44954e),_0x44954e['content']['add'](_0x434102),this['listenTo'](_0x58bd83['view'],'change:targetRect',(_0x5a5f6f,_0x1227fd,_0x49414e)=>{const _0x85dcb1=this['_getTargetTop'](_0x58bd83,_0x49414e);_0x44954e['_targetTop']!=_0x85dcb1&&(_0x44954e['_targetTop']=_0x85dcb1,this['_setItemTop'](_0x44954e,_0x85dcb1));}),this['listenTo'](_0x44954e,'change:top',()=>{this['_recalculate'](_0x44954e,'top');}),this['listenTo'](_0x44954e,'change:bottom',()=>{this['_recalculate'](_0x44954e,'bottom');}),this['_alignToTargetRect'](_0x44954e);const _0x586e62=this['_getItemBefore'](_0x44954e);if(_0x586e62)this['_alignAfterItem'](_0x586e62,_0x44954e)||this['_alignToTargetRect'](_0x44954e);else this['_alignToTargetRect'](_0x44954e);return this['_updateLastItem'](),this['view']['list']['add'](_0x44954e),_0x44954e;}['_alignForTopChange'](_0x3f240e){if(!_0x3f240e['content']['length'])return;const _0x32a720=this['_getItemBefore'](_0x3f240e);if(!_0x32a720)return;const _0x52a98d=this['_sidebarItemViewToAnnotation']['get'](_0x32a720),_0x269f40=this['_activeAnnotation'];_0x269f40&&_0x269f40===_0x52a98d?this['_alignAfterItem'](_0x32a720,_0x3f240e):this['_alignBeforeItem'](_0x3f240e,_0x32a720);}['_alignForBottomChange'](_0x112e2a){if(!_0x112e2a['content']['length'])return;const _0x26842e=this['_getItemAfter'](_0x112e2a);if(!_0x26842e)return;const _0x3d20ca=this['_sidebarItemViewToAnnotation']['get'](_0x26842e),_0x5dee4c=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x3e6bd9=this['_activeAnnotation'];_0x3e6bd9&&_0x3e6bd9===_0x3d20ca&&_0x5dee4c?(this['_alignBeforeItem'](_0x26842e,_0x112e2a),this['_alignAfterItem'](_0x112e2a,_0x26842e)):_0x3e6bd9&&_0x3e6bd9===_0x3d20ca?this['_alignBeforeItem'](_0x26842e,_0x112e2a):this['_alignAfterItem'](_0x112e2a,_0x26842e);}['_recalculate'](_0x226eb3,_0x21e9eb){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x5e8b78,changedProp:_0x150697}of this['_recalculateBuffer'])'top'===_0x150697?this['_alignForTopChange'](_0x5e8b78):this['_alignForBottomChange'](_0x5e8b78);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x226eb3,'changedProp':_0x21e9eb});}['getSidebarItemView'](_0x84b087){return this['_annotationToSidebarItemView']['get'](_0x84b087);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x4fb75a){const _0x126d64=this['getSidebarItemView'](_0x4fb75a);this['stopListening'](_0x126d64),this['stopListening'](_0x4fb75a['view']),_0x126d64['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x4fb75a),this['_sidebarItemViewToAnnotation']['delete'](_0x126d64);}['_createSidebarView'](){const _0x39bb02=new F(this['context']['locale']);return _0x39bb02['render'](),this['on']('change:_lastItem',(_0x392077,_0x3e0407,_0x494752,_0x36a286)=>{_0x36a286&&_0x39bb02['unbind']('minHeight'),_0x494752?_0x39bb02['bind']('minHeight')['to'](_0x494752,'bottom'):_0x39bb02['minHeight']=null;}),_0x39bb02;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x58e3f9){const _0x3b7c80=this['_sidebarItemViewToAnnotation']['get'](_0x58e3f9),_0x59bc6e=_0x3b7c80&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x3b7c80)-0x1);return _0x59bc6e&&this['getSidebarItemView'](_0x59bc6e)||null;}['_getItemAfter'](_0x171c86){const _0x404f9a=this['_sidebarItemViewToAnnotation']['get'](_0x171c86),_0x8a202c=_0x404f9a&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x404f9a)+0x1);return _0x8a202c&&this['getSidebarItemView'](_0x8a202c)||null;}['_alignBeforeItem'](_0x583a2e,_0x227bd8){_0x583a2e['updateHeight']();const _0x1dd7b3=R(_0x227bd8['bottom']+this['_spaceBetweenItems'],_0x583a2e['top']);return!!_0x1dd7b3&&(this['_setItemTop'](_0x227bd8,_0x227bd8['top']-_0x1dd7b3),!0x0);}['_alignAfterItem'](_0x14a19b,_0x58e18c){_0x14a19b['updateHeight']();const _0xb91480=R(_0x14a19b['bottom']+this['_spaceBetweenItems'],_0x58e18c['top']);return!!_0xb91480&&(this['_setItemTop'](_0x58e18c,_0x58e18c['top']+_0xb91480,!0x1),!0x0);}['_alignToTargetRect'](_0x5bb595){const _0x1f5624=this['_sidebarItemViewToAnnotation']['get'](_0x5bb595);if(!_0x1f5624||!_0x1f5624['target']||!_0x1f5624['targetRect'])return;const _0x463c9a=this['_getTargetTop'](_0x1f5624,_0x1f5624['targetRect']);this['_setItemTop'](_0x5bb595,_0x463c9a);}['_getTargetTop'](_0x2dfe6f,_0x4c9687){if(null===_0x4c9687)return 0x0;if(_0x2dfe6f['target']instanceof _0x44e78c)return _0x4c9687['top'];{const _0x586e31=new _0x44e78c(this['view']['element'])['top'];return _0x4c9687['top']-_0x586e31;}}['_setItemTop'](_0x10e6e0,_0x15e962,_0x1756b8=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x1756b8&&(_0x15e962=Math['max'](_0x15e962,this['_getMaxAvailableTop'](_0x10e6e0))),_0x10e6e0['top']=_0x15e962;}['_getMaxAvailableTop'](_0x4d4f56){let _0x5dffe9=this['_getItemBefore'](_0x4d4f56),_0x27e778=0x0;for(;_0x5dffe9;)_0x5dffe9['updateHeight'](),_0x27e778+=this['_spaceBetweenItems']+_0x5dffe9['height'],_0x5dffe9=this['_getItemBefore'](_0x5dffe9);return _0x27e778;}}function R(_0x430b69,_0x25ded7){return Math['max'](_0x430b69-_0x25ded7,0x0);}function y(_0x308a8b){return null!==_0x308a8b&&'object'==typeof _0x308a8b&&0x1===_0x308a8b['nodeType'];}class e extends _0x3c22fb{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,M];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe68b8a){super(_0xe68b8a),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x508354(),this['_refreshPositioningDebounced']=_0xaf86be(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0xbb851e=this['context']['plugins']['get'](M),_0xc604b0=this['context']['plugins']['get'](z);_0xbb851e['register']('wideSidebar',this),_0xc604b0['container']&&_0xbb851e['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x14747e){if(_0x14747e===this['activeAnnotation'])return;const _0x17e473=this['context']['plugins']['get'](z);_0x17e473['_activeAnnotation']=_0x14747e;const _0x440d0c=this['activeAnnotation'];_0x17e473['refresh']({'blurredAnnotation':_0x440d0c,'activatedAnnotation':_0x14747e}),this['activeAnnotation']=_0x14747e;}['attach'](_0x210c3e){this['annotations']=_0x210c3e;const _0x2cf641=this['context']['plugins']['get'](z);if(_0x2cf641['_annotations']=_0x210c3e,this['isAttached'])throw new _0x369546('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x2cf641,'set:container',()=>{this['detach'](),this['listenTo'](_0x2cf641,'change:container',_0x19c082=>{_0x19c082['off'](),this['attach'](_0x210c3e);});}),_0x2cf641['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x5cb994=_0x350db7=>{_0x350db7['updateTargetRect'](),_0x2cf641['addAnnotation'](_0x350db7);};for(const _0x278980 of _0x210c3e)_0x5cb994(_0x278980);this['listenTo'](_0x210c3e,'add',(_0x1b8ef3,_0x4710cc)=>{_0x5cb994(_0x4710cc);}),this['listenTo'](_0x210c3e,'remove',(_0x499079,_0x2ac414,_0x1ff13e)=>{_0x2cf641['rearrange']({'removedAnnotation':_0x2ac414,'previousAnnotation':_0x210c3e['get'](_0x1ff13e-0x1),'nextAnnotation':_0x210c3e['get'](_0x1ff13e+0x1)}),_0x2ac414===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x210c3e,'focus',(_0x3ea377,_0x518df6)=>{this['setActiveAnnotation'](_0x518df6);}),this['listenTo'](_0x210c3e,'blur',()=>{this['setActiveAnnotation'](null);});const _0xec25ed=this['context']instanceof _0x49d7c6?this['context']['editors']:new _0x508354([this['context']]);for(const _0x593236 of _0xec25ed)this['_integrateWithEditorAnnotations'](_0x593236);this['listenTo'](_0xec25ed,'add',(_0xeb55c4,_0x2eec4f)=>{this['listenTo'](_0x2eec4f,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x2eec4f);});}),this['listenTo'](_0xec25ed,'remove',(_0x17e0cb,_0x3879d4)=>{_0x3879d4['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x3879d4['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x369546('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x5f0cb2=this['context']['plugins']['get'](z);_0x5f0cb2['_detachFromContainer'](this['annotations']),this['stopListening'](_0x5f0cb2),this['stopListening'](this['annotations']),this['context']instanceof _0x49d7c6&&this['stopListening'](this['context']['editors']);for(const _0x395848 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x395848);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x3777fc){if(!_0x3777fc['plugins']['has']('EditorAnnotations'))return;const _0x393ff1=_0x3777fc['plugins']['get']('EditorAnnotations'),_0x50afd9=()=>{const _0x3b119e=_0x393ff1['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x3b119e[0x0]||null);};this['listenTo'](_0x393ff1,'refresh',_0x50afd9),this['listenTo'](_0x393ff1,'blur',(_0x363a66,{isAnnotationTracked:_0x1544ac})=>{this['activeAnnotation']&&_0x1544ac(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x393ff1,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x35e602=>{_0x393ff1['hasDomSelection']()&&(_0x50afd9(),_0x35e602['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x393ff1);}['_destroyEditorAnnotationsIntegration'](_0x972017){this['stopListening'](_0x972017),this['_editorAnnotations']['remove'](_0x972017);}}class C extends _0x5ae41a{['counterView'];constructor(_0x1acebf){super(_0x1acebf);const _0x3ede35=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x1803a8,_0xd05442)=>_0x1803a8?'...':_0xd05442['toString']()),this['set']('annotationType',''),this['icon']=_0x5dec5b,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x3ede35['to']('annotationType',_0x34f4b7=>'ck-annotation-counter__badge--'+_0x34f4b7),_0x3ede35['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x3ede35['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x3c22fb{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,M];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12bbb5){super(_0x12bbb5),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x2ff123),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x508354(),this['_refreshPositioningDebounced']=_0xaf86be(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x3b4750(this['context']['locale']),this['balloonPanelView']=new _0x1e208c(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x3f8394){this['annotations']=_0x3f8394;const _0x56c44d=this['context']['plugins']['get'](z),_0x50be61=this['balloonPanelView'];if(_0x56c44d['_annotations']=_0x3f8394,this['isAttached'])throw new _0x369546('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x56c44d,'set:container',()=>{this['detach'](),this['listenTo'](_0x56c44d,'change:container',_0x47ee4b=>{_0x47ee4b['off'](),this['attach'](_0x3f8394);});}),_0x56c44d['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x538e8c=_0x3e5850=>{const _0x4bdeb2=new C(this['context']['locale']);_0x56c44d['addAnnotation'](_0x3e5850,_0x4bdeb2),this['_annotationToNarrowView']['set'](_0x3e5850,_0x4bdeb2),_0x4bdeb2['bind']('isDirty','annotationType','number')['to'](_0x3e5850['view'],'isDirty','type','length'),_0x4bdeb2['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x50be61['content']['first']!==_0x3e5850['view']?(this['_showBalloon'](_0x3e5850),_0x3e5850['view']['element']['focus'](),this['setActiveAnnotation'](_0x3e5850)):this['setActiveAnnotation'](null);});};for(const _0x25c5c5 of _0x3f8394)_0x538e8c(_0x25c5c5);this['listenTo'](_0x3f8394,'add',(_0x2f07c1,_0x4672a3)=>{_0x538e8c(_0x4672a3);}),this['listenTo'](_0x3f8394,'remove',(_0x4b1105,_0x54d8f3,_0x5dcf8d)=>{this['_annotationToNarrowView']['get'](_0x54d8f3)['destroy'](),this['_annotationToNarrowView']['delete'](_0x54d8f3),_0x56c44d['rearrange']({'removedAnnotation':_0x54d8f3,'previousAnnotation':_0x3f8394['get'](_0x5dcf8d-0x1),'nextAnnotation':_0x3f8394['get'](_0x5dcf8d+0x1)}),_0x54d8f3===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x3f8394,'focus',(_0x4c51b4,_0xef05b2)=>{this['setActiveAnnotation'](_0xef05b2);}),this['listenTo'](_0x3f8394,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x239a0e,_0x1f02ce)=>{_0x1f02ce['keyCode']===_0x5d23d3['esc']&&_0x50be61['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x50be61['content']['first']),this['_hideBalloon'](),_0x1f02ce['stopPropagation'](),_0x1f02ce['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x172e67,_0x352148)=>{const _0x1739f8=_0x352148['target'];_0x50be61['isVisible']&&_0x50be61['element']['contains'](_0x1739f8)||_0x56c44d['view']['element']['contains'](_0x1739f8)||_0x172e67['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x1e1432=>_0x1e1432['contains'](_0x1739f8))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0xf7c6b5=this['context']instanceof _0x49d7c6?this['context']['editors']:new _0x508354([this['context']]);for(const _0xe0123a of _0xf7c6b5)this['_integrateWithEditorAnnotations'](_0xe0123a);this['listenTo'](_0xf7c6b5,'add',(_0x414022,_0x1ae6d4)=>{this['listenTo'](_0x1ae6d4,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x1ae6d4);});}),this['listenTo'](_0xf7c6b5,'remove',(_0x2ef265,_0x4d91e2)=>{_0x4d91e2['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x4d91e2['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x505038){if(_0x505038===this['activeAnnotation'])return;const _0x17e25e=this['context']['plugins']['get'](z);if(_0x17e25e['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x505038,'disableAnimationOnActivatedAnnotation':!0x0}),_0x505038)_0x17e25e['getSidebarItemView'](_0x505038)?this['_showBalloon'](_0x505038):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x505038;}['detach'](){if(!this['isAttached'])throw new _0x369546('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x3d2a5d=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x478bf2=>_0x478bf2['destroy']()),this['_annotationToNarrowView']['clear'](),_0x3d2a5d['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x49d7c6&&this['stopListening'](this['context']['editors']);for(const _0x22db69 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x22db69);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'](_0x348776){if(!_0x348776['plugins']['has']('EditorAnnotations'))return;const _0x569259=_0x348776['plugins']['get']('EditorAnnotations'),_0x1f1738=this['context']['plugins']['get'](z),_0x18b8c8=this['annotations'],_0x5edce7=this['balloonPanelView'],_0x174a61=()=>{const _0x53890b=_0x569259['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x53890b),this['setActiveAnnotation'](_0x53890b[0x0]||null);};this['listenTo'](_0x569259,'refresh',_0x174a61),this['listenTo'](_0x569259,'blur',(_0x146e70,{isAnnotationTracked:_0x51b45a})=>{this['activeAnnotation']&&_0x51b45a(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x569259,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x18b8c8,'blur',_0x29bc2f=>{_0x569259['hasDomSelection']()&&_0x29bc2f['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x12dd7d,_0x5afd48)=>{const _0xe40224=_0x5afd48['target'];_0x5edce7['isVisible']&&_0x5edce7['element']['contains'](_0xe40224)||_0x1f1738['view']['element']['contains'](_0xe40224)||this['activeAnnotation']&&_0x569259['hasDomSelection']()&&(_0x174a61(),_0x12dd7d['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x569259);}['_destroyEditorAnnotationsIntegration'](_0x202550){_0x202550&&(this['stopListening'](_0x202550),this['_editorAnnotations']['remove'](_0x202550));}['_setSelectedAnnotations'](_0xca57f4){for(const _0x4be5fd of this['_selectedAnnotations'])_0xca57f4['includes'](_0x4be5fd)||this['_manuallyClosedAnnotationViews']['delete'](_0x4be5fd['view']);this['_selectedAnnotations']=_0xca57f4;}['_refreshPositioning'](){const _0x2ba47e=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x2ba47e['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x59072d){if(this['_manuallyClosedAnnotationViews']['has'](_0x59072d['view']))return;const _0x35d02e=this['balloonPanelView']['content']['first'];_0x35d02e!==_0x59072d['view']?(_0x35d02e&&this['_detachListeners'](_0x35d02e),this['_attachListeners'](_0x59072d['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x59072d['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x5803ed=this['balloonPanelView']['content']['first'],_0x998deb=_0x5803ed&&this['annotations']['getByView'](_0x5803ed);if(!_0x998deb||!this['_annotationToNarrowView']['has'](_0x998deb))return;const _0x318370=this['_annotationToNarrowView']['get'](_0x998deb)['element'],_0x1279af=(function(){const _0x392964=_0x1e208c['defaultPositions'];return[_0x392964['southArrowNorthEast'],_0x392964['northArrowSouthEast'],_0x392964['southArrowNorth'],_0x392964['northArrowSouth'],_0x392964['southArrowNorthWest'],_0x392964['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x318370,'positions':_0x1279af});}['_hideBalloon'](){const _0x583fcc=this['balloonPanelView'],_0x51e1f6=_0x583fcc['content']['first'];_0x51e1f6&&(this['_detachListeners'](_0x51e1f6),_0x583fcc['unpin'](),_0x583fcc['content']['clear']());}['_attachListeners'](_0x32e946){this['listenTo'](_0x32e946,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x32e946,'Esc',(_0x440adc,_0x3417c3)=>{this['_manuallyClosedAnnotationViews']['add'](_0x32e946),this['_hideBalloon'](),_0x3417c3();});}['_detachListeners'](_0x1eeb32){this['stopListening'](_0x1eeb32);}}class c extends _0x3e155f{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x12283a,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x54cbc6){super(_0x54cbc6),_0x54cbc6['editing']['view']['addObserver'](_0x37f8d0),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x54cbc6['plugins']['get'](_0x12283a),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x552bcb=this['editor']['plugins']['get'](M);_0x552bcb['context']===this['editor']&&(_0x552bcb['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x14b228,_0x260200)=>{const _0x357861=this['_balloon'];if(this['isAttached']&&_0x357861['visibleView']){const _0x19f874=this['annotations']['getByView'](_0x357861['visibleView']);_0x19f874&&this['_closeAnnotation'](_0x19f874),_0x260200();}}));}['afterInit'](){const _0x241586=this['editor']['plugins']['get'](M);_0x241586['context']===this['editor']&&(_0x241586['hasActive']()||_0x241586['switchTo']('inline'));}['setActiveAnnotation'](_0x393cb9){_0x393cb9!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x393cb9&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x393cb9)&&this['_addAnnotationToBalloon'](_0x393cb9,!0x0),_0x393cb9['isActive']=!0x0),_0x393cb9||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x393cb9);}['attach'](_0x41d0e8){this['annotations']=_0x41d0e8;const _0x537ce7=this['editor']['plugins']['get'](M),_0x5ceb83=this['_balloon'];if(this['isAttached'])throw new _0x369546('inlineannotations-attach-already-attached',this);if(_0x537ce7['context']!==this['editor'])throw new _0x369546('inlineannotations-not-allowed-with-context',this);const _0x4b51bc=this['editor']['plugins']['get'](P);this['listenTo'](_0x4b51bc,'refresh',()=>{const _0x45a695=_0x4b51bc['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x241824,_0x30e1dc;!this['_forceRefresh']&&(_0x241824=_0x45a695,_0x30e1dc=this['_selectedAnnotations'],_0x241824['length']===_0x30e1dc['length']&&_0x241824['every'](_0x354212=>_0x30e1dc['includes'](_0x354212)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x45a695),this['setActiveAnnotation'](_0x45a695[0x0]||null));}),this['listenTo'](_0x4b51bc,'blur',(_0x35c40c,{isAnnotationTracked:_0x1786f7})=>{this['activeAnnotation']&&_0x1786f7(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x2e7674,_0x430126,_0x12329c)=>{_0x12329c||this['setActiveAnnotation'](null);}),this['listenTo'](_0x41d0e8,'remove',(_0x17c7a7,_0x50e91b)=>{this['_removeAnnotationFromBalloon'](_0x50e91b),_0x50e91b===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x5ceb83,'change:visibleView',(_0x23ac93,_0x446fd6,_0x29b2d0,_0x346a93)=>{_0x346a93&&this['stopListening'](_0x346a93);const _0x4d751b=_0x41d0e8['getByView'](_0x29b2d0);_0x29b2d0&&_0x4d751b&&(this['listenTo'](_0x29b2d0,'change:height',()=>{_0x5ceb83['updatePosition']();}),this['listenTo'](_0x29b2d0,'Esc',()=>{this['_closeAnnotation'](_0x4d751b),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x4d751b&&this['setActiveAnnotation'](_0x4d751b));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x5ceb83['visibleView']&&(_0x41d0e8['getByView'](_0x5ceb83['visibleView'])&&_0x5ceb83['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 _0x369546('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x4f623b of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x4f623b);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x546a4f){for(const _0xac4fe2 of this['_selectedAnnotations'])_0x546a4f['includes'](_0xac4fe2)||this['_manuallyClosed']['delete'](_0xac4fe2);for(const _0x12193f of this['annotations'])_0x546a4f['includes'](_0x12193f)||this['_removeAnnotationFromBalloon'](_0x12193f);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0xf20a7d of _0x546a4f)this['_addAnnotationToBalloon'](_0xf20a7d);}this['_selectedAnnotations']=_0x546a4f;}['_addAnnotationToBalloon'](_0x1e2eaf,_0x18481b=!0x1){this['_manuallyClosed']['has'](_0x1e2eaf)||(this['_addedAnnotations']['has'](_0x1e2eaf)||this['_balloon']['hasView'](_0x1e2eaf['view'])||(this['_addedAnnotations']['add'](_0x1e2eaf),this['_balloon']['add']({'stackId':_0x1e2eaf['view']['id'],'view':_0x1e2eaf['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x1e2eaf)}})),_0x18481b&&this['_balloon']['showStack'](_0x1e2eaf['view']['id']));}['_getBalloonTargetForAnnotation'](_0x57a667){const _0x24ee38=_0x57a667['target'],_0x25c76c=this['editor']['editing']['view'],_0xaa11e=_0x25c76c['document']['selection']['getFirstRange'](),_0x43183e=_0x25c76c['domConverter']['viewRangeToDom'](_0xaa11e);if(_0x43183e['collapse'](!0x0),_0x24ee38){if(_0x24ee38 instanceof _0x44e78c)return _0x24ee38;let _0x51e8bb=[];for(const _0x5e84d1 of _0x24ee38)_0x51e8bb['push'](...(_0x5ac9c7=_0x5e84d1['getClientRects'](),Array['from'](_0x5ac9c7)['map'](DOMRect['fromRect'])));_0x51e8bb=function(_0x36d2f9){const _0x1dc275=[];let _0xab033d=_0x36d2f9[0x0];for(let _0x669baf=0x1;_0x669baf<_0x36d2f9['length'];_0x669baf++)B(_0xab033d,_0x36d2f9[_0x669baf])?_0xab033d['width']+=_0x36d2f9[_0x669baf]['width']:(_0x1dc275['push'](_0xab033d),_0xab033d=_0x36d2f9[_0x669baf]);return _0x1dc275['push'](_0xab033d),_0x1dc275;}(_0x51e8bb);const _0x37d5cc=_0x43183e['getBoundingClientRect']();return _0x51e8bb['find'](_0x3228ae=>_0x3228ae['top']<=_0x37d5cc['top']&&_0x3228ae['bottom']>=_0x37d5cc['bottom']&&_0x3228ae['left']<=_0x37d5cc['left']&&_0x3228ae['right']>=_0x37d5cc['right'])||_0x51e8bb[0x0];}var _0x5ac9c7;return _0x57a667['targetRect']||_0x43183e;}['_removeAnnotationFromBalloon'](_0x26b1a7){this['_addedAnnotations']['has'](_0x26b1a7)&&this['_balloon']['hasView'](_0x26b1a7['view'])&&(this['_addedAnnotations']['delete'](_0x26b1a7),this['_balloon']['remove'](_0x26b1a7['view']));}['_closeAnnotation'](_0x4cd9ce){this['_manuallyClosed']['add'](_0x4cd9ce),this['_removeAnnotationFromBalloon'](_0x4cd9ce);}}function B(_0x1d46ed,_0x4507f2){return _0x1d46ed['top']===_0x4507f2['top']&&_0x1d46ed['bottom']===_0x4507f2['bottom']&&_0x1d46ed['right']===_0x4507f2['left'];}class tt extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x9d0589,_0x1154b9){super(_0x9d0589),this['set']('isEmpty',!_0x1154b9['length']),this['focusTracker']=new _0x4b4d8d(),this['_annotationViews']=_0x1154b9,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x12ac84({'focusables':_0x1154b9,'focusTracker':this['focusTracker']}),this['listenTo'](_0x1154b9,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x1154b9,'remove',(_0x1ff43a,_0x558780)=>{_0x558780['isActive']&&this['focus'](),_0x1154b9['length']||(this['isEmpty']=!0x0);});const _0x2cb856=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':E(_0x9d0589,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x1154b9},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x2cb856['if']('isEmpty','ck-hidden',_0x4b04e8=>!_0x4b04e8)]},'children':[{'text':E(_0x9d0589,'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 _0x3eb81c of this['_annotationViews'])this['focusTracker']['add'](_0x3eb81c['element']);this['_annotationViews']['on']('change',(_0x1c0cb4,{added:_0x39078f,removed:_0xe93fe1})=>{for(const _0x2fa897 of _0x39078f)this['focusTracker']['add'](_0x2fa897['element']);for(const _0x11cbf4 of _0xe93fe1)this['focusTracker']['remove'](_0x11cbf4['element']);});}}class f extends _0x3c22fb{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,O];}constructor(_0x193198){super(_0x193198),this['archivedThreads']=new _0x508354();}['init'](){const _0x377120=this['context'],_0x1e5aa8=_0x377120['plugins']['get'](o),_0x2214aa=_0x377120['plugins']['get'](O);this['listenTo'](_0x1e5aa8,'addCommentThread',(_0x1a2560,{threadId:_0x38b33c})=>{const _0x13566d=_0x1e5aa8['getCommentThread'](_0x38b33c);_0x13566d['archivedAt']&&this['archivedThreads']['add'](_0x13566d,this['_calculatePosition'](_0x13566d['archivedAt'])),this['listenTo'](_0x13566d,'change:archivedAt',(_0xc9966b,_0x5eb397,_0x2531bc)=>{_0x2531bc?this['archivedThreads']['has'](_0x13566d)||this['archivedThreads']['add'](_0x13566d,this['_calculatePosition'](_0x13566d['archivedAt'])):this['archivedThreads']['has'](_0x13566d)&&this['archivedThreads']['remove'](_0x13566d);});}),this['listenTo'](_0x1e5aa8,'removeCommentThread',(_0x1c41ab,{threadId:_0x239bd4})=>{const _0x5abfe7=_0x1e5aa8['getCommentThread'](_0x239bd4);this['stopListening'](_0x5abfe7),this['archivedThreads']['has'](_0x5abfe7)&&this['archivedThreads']['remove'](_0x5abfe7);},{'priority':'highest'}),this['listenTo'](_0x2214aa['collection'],'focus',(_0x3983e7,_0x5169aa)=>{_0x5169aa['isVisible']||(_0x5169aa['isActive']=!0x0,_0x2214aa['activate'](_0x5169aa));});}['_calculatePosition'](_0x573981){const _0x433c52=[...this['archivedThreads']]['findIndex'](_0x43bedc=>_0x43bedc['archivedAt']<_0x573981);return _0x433c52>-0x1?_0x433c52:this['archivedThreads']['length'];}}class a extends _0x3e155f{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x19a869];}constructor(_0x108425){super(_0x108425),this['annotationViews']=new _0x143e0c(),this['_pendingThreads']=[];}['init'](){const _0x472f5f=this['editor'],_0x544639=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x472f5f['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x5ae41a,!0x0)),_0x472f5f['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x3239fb=this['_createCommentsArchiveButton'](_0x39588d);return _0x3239fb['set']({'role':'menuitemcheckbox'}),_0x3239fb;});const _0x625d66=_0x472f5f['plugins']['get'](f),_0x48230f=_0x472f5f['plugins']['get']('Annotations'),_0x50b9e0=_0x472f5f['plugins']['get']('CommentsRepository');_0x625d66['archivedThreads']['forEach'](_0x435812=>{this['_handleNewThread'](_0x435812);}),this['listenTo'](_0x625d66['archivedThreads'],'add',(_0x17fae0,_0x15655a)=>{this['_handleNewThread'](_0x15655a);}),this['listenTo'](_0x48230f['collection'],'add',(_0x38940c,_0x38de32)=>{const _0x308551=this['_pendingThreads']['find'](_0x10b81b=>{const _0x2888e9=_0x50b9e0['_threadToController']['get'](_0x10b81b);return _0x2888e9&&_0x38de32['innerView']===_0x2888e9['view'];});if(_0x308551){const _0x46f9cf=this['_calculatePosition'](_0x308551['archivedAt']);this['annotationViews']['add'](_0x38de32['view'],_0x46f9cf),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x308551),0x1);}}),this['listenTo'](_0x625d66['archivedThreads'],'remove',(_0x3afc6f,_0x50cda7)=>{const _0x73c92f=_0x472f5f['config']['get']('collaboration.channelId');if(!_0x73c92f||_0x50cda7['channelId']===_0x73c92f){if(this['_pendingThreads']['includes'](_0x50cda7))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x50cda7),0x1);else{const _0x23df43=_0x50b9e0['_threadToController']['get'](_0x50cda7),_0x518f50=_0x48230f['getByInnerView'](_0x23df43['view']);this['annotationViews']['remove'](_0x518f50['view']),this['stopListening'](_0x518f50['focusableElements']);}}}),this['listenTo'](_0x48230f['collection'],'add',(_0x16f834,_0x8c2612)=>{this['listenTo'](_0x8c2612,'escape',_0x544639);}),this['listenTo'](_0x48230f['collection'],'remove',(_0x4fcd7b,_0xd3ba00)=>{this['stopListening'](_0xd3ba00,'escape',_0x544639);});}['_handleNewThread'](_0x239e56){const _0x131ff9=this['editor']['plugins']['get']('CommentsRepository'),_0x31a249=this['editor']['plugins']['get']('Annotations'),_0xc3d368=this['editor']['config']['get']('collaboration.channelId');if(!_0xc3d368||_0x239e56['channelId']===_0xc3d368){const _0x6f2628=_0x131ff9['_threadToController']['get'](_0x239e56);if(!_0x6f2628)return void this['_pendingThreads']['push'](_0x239e56);const _0x449c3b=this['_calculatePosition'](_0x239e56['archivedAt']),_0x59246d=_0x31a249['getByInnerView'](_0x6f2628['view']);_0x59246d['isVisible']&&_0x31a249['_visibleAnnotations']['remove'](_0x59246d),this['annotationViews']['add'](_0x59246d['view'],_0x449c3b);}}['_calculatePosition'](_0x32ef68){const _0x319900=this['editor']['config']['get']('collaboration.channelId'),_0x47a632=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x6f4e=>_0x6f4e['channelId']===_0x319900)['findIndex'](_0x4f0aa8=>_0x4f0aa8['archivedAt']<_0x32ef68);return _0x47a632<0x0||_0x47a632>this['annotationViews']['length']?this['annotationViews']['length']:_0x47a632-0x1;}['_toggleDialog'](){const _0xbdffb=this['editor'],_0x119347=_0xbdffb['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0xbdffb['locale'],this['annotationViews'])),'commentsArchive'===_0x119347['id']?_0x119347['hide']():_0x119347['show']({'id':'commentsArchive','title':E(_0xbdffb['locale'],'COMMENTS_ARCHIVE'),'icon':_0x4c7eff,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x513643['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x579a6e,_0x93876b=!0x1){const _0x466624=this['editor']['locale'],_0x510797=this['editor']['plugins']['get']('Dialog'),_0x3d4480=new _0x579a6e(_0x466624);return _0x3d4480['bind']('isEnabled')['to'](this,'isEnabled'),_0x3d4480['bind']('isOn')['to'](_0x510797,'id',_0x1d2e40=>'commentsArchive'===_0x1d2e40),_0x3d4480['set']({'label':E(_0x466624,'COMMENTS_ARCHIVE'),'icon':_0x4c7eff,'isToggleable':!0x0}),_0x93876b&&(_0x3d4480['tooltip']=!0x0),this['listenTo'](_0x3d4480,'execute',()=>this['_toggleDialog']()),_0x3d4480;}['_hideDialogOnAnnotationEscape']=_0x390b61=>{const _0x26a845=_0x390b61['source'];if(!this['annotationViews']['has'](_0x26a845['view']))return;const _0x3b4661=this['editor']['plugins']['get']('Dialog');_0x3b4661['isOpen']&&'commentsArchive'===_0x3b4661['id']&&(_0x3b4661['hide'](),_0x390b61['stop']());};}class p extends _0x3e155f{static get['requires'](){return[o,r,i,f,a,s,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{d as Annotation,_ as AnnotationCollection,S as AnnotationView,O as Annotations,M as AnnotationsUIs,ts as BaseCommentThreadView,hs as BaseCommentView,fi as Comment,ui as CommentThread,Ct as CommentThreadController,ie as CommentThreadInputView,vt as CommentThreadView,gt as CommentView,p as Comments,f as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,z as Sidebar,e as WideSidebar};
23
+ import{Editor as _0x17bd9d,ContextPlugin as _0x2c6a5a,PendingActions as ht,Command as _0x3ea4db,Plugin as _0x3136d3,Context as _0x5e197b}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x3b9dd7,uid as _0x35b95b,KeystrokeHandler as jt,FocusTracker as _0x4998e4,diff as _0x693b90,Collection as _0x2a536e,Rect as _0x5708d8,CKEditorError as _0x15c172,first as _0x5d65fb,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as xt,DomEmitterMixin as _0x13575b,keyCodes as _0x16045e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x12c1b5,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x4bb770,trimHtml as _0x2a709c,LateFocusDropdownButtonView as _0x5b1190,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x8ce7cf}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as yt,debounce as _0x356c72}from'es-toolkit/compat';import{IconUndo as _0x49b621,IconCheck as _0x56bad1,IconPencil as _0x2dd1d3,IconRemoveComment as _0x5207a8,IconThreeVerticalDots as _0x376907,IconAddComment as _0x4f9c07,IconCommentsArchive as _0x380c51}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as Vt,InlineEditableUIView as $t,EditorUI as Rt,View as kt,FocusCycler as _0x4a5462,ButtonView as _0x501ccc,ViewCollection as _0x1614c2,createDropdown as _0x173f07,ListView as _0x4478f6,focusChildOnDropdownOpen as _0x559ecd,ListItemView as _0x80f34e,MenuBarMenuListItemButtonView as _0x1d3340,BodyCollection as _0x4f0a56,BalloonPanelView as _0x34c707,ContextualBalloon as _0xf7176a,Dialog as _0x15c150,DialogViewPosition as _0x59b2e7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as St,enablePlaceholder as Ft,MouseObserver as _0x56d6e7}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as qt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as zt,ShiftEnter as Bt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Et}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Gt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Jt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Kt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x396715}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0xe8f520}from'@ckeditor/ckeditor5-widget/dist/index.js';class Ct extends/* #__PURE__ -- @preserve */
24
+ _0x3b9dd7(){['model'];['view'];constructor(_0x221e59,_0x377146){super(),this['model']=_0x221e59,this['model']['_isAttached']=!0x0,this['view']=_0x377146,this['listenTo'](_0x377146,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x377146,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x377146,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x377146,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x377146,'addComment',(_0x38693b,_0x2ead4b)=>this['addComment'](_0x2ead4b)),this['listenTo'](_0x377146,'updateComment',(_0x235741,_0x4a397c,_0x5849ce)=>this['updateComment'](_0x4a397c,_0x5849ce)),this['listenTo'](_0x377146,'removeComment',(_0x591234,_0x36ec4e)=>this['removeComment'](_0x36ec4e));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x29f1c7){this['model']['addComment']({'content':_0x29f1c7,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x24f30f,_0x3c63cc){this['model']['getComment'](_0x24f30f)['update']({'content':_0x3c63cc});}['removeComment'](_0x1d29c3){this['model']['getComment'](_0x1d29c3)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function E(_0x2108e7,_0x581cc5,_0x502831){const t=_0x2108e7['t'];switch(_0x581cc5){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'},_0x502831);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'},_0x502831);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'},_0x502831);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'},_0x502831);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x502831);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'},_0x502831);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'},_0x502831);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'},_0x502831);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 Ut extends Vt{['main'];['editable'];constructor(_0x210e2d,_0x4547a2){super(_0x210e2d);const _0x21a24e=_0x35b95b();this['main']=this['createCollection'](),this['editable']=new $t(_0x210e2d,_0x4547a2,void 0x0,{'label':()=>E(_0x210e2d,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x210e2d['uiLanguageDirection'],'lang':_0x210e2d['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x21a24e},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Ot extends Rt{['view'];constructor(_0x1b9ec0){super(_0x1b9ec0),this['view']=new Ut(_0x1b9ec0['locale'],_0x1b9ec0['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x30214f=this['editor']['editing']['view'],_0x193eb0=this['view']['editable'],_0x3c4c98=_0x30214f['document']['getRoot']();_0x193eb0['name']=_0x3c4c98['rootName'],this['view']['render']();const _0x5a9e6a=_0x193eb0['element'];this['setEditableElement'](_0x193eb0['name'],_0x5a9e6a),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x30214f['attachDomRoot'](_0x5a9e6a),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Nt=[qt,zt,Bt,Et,Gt,Jt,Kt];class Qt extends/* #__PURE__ -- @preserve */
25
+ _0x3b9dd7(_0x17bd9d){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Nt)());constructor(_0x59b836={}){function _0x45d121(_0x129f80){return _0x129f80['map'](_0x1f0a7c=>String['fromCharCode'](_0x1f0a7c))['join']('');}(_0x59b836=Object['assign']({},_0x59b836))['plugins']||(_0x59b836['plugins']=Qt['defaultPlugins']),super(_0x59b836),this['ui']=new Ot(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x45d121([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45d121([0x76,0x69,0x65,0x77])][_0x45d121([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x45d121([0x61,0x75,0x74,0x6f]),this[_0x45d121([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x45d121([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x45d121([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x45d121([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x45d121([0x6f,0x6b])});}['create'](){const _0x465509=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x465509))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x17e2ef=>{const _0x30920a=this['model']['document']['getRoot'](),_0x8099b5=_0x30920a&&_0x30920a['getChild'](_0x30920a['childCount']-0x1);_0x17e2ef['setSelection'](_0x8099b5,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x28aeb4=this['editing']['view'],_0x56eb69=_0x28aeb4['document']['getRoot'](),_0x17f7db=_0x56eb69['getChild'](0x0);_0x56eb69['childCount']>0x1||!_0x17f7db||'p'!=_0x17f7db['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x28aeb4,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x17f7db['placeholder']=this['placeholder']),Ft({'view':_0x28aeb4,'element':_0x17f7db,'keepOnFocus':!0x0}),this['placeholderElement']=_0x17f7db);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x2287c4,_0x19dc5c={}){super(_0x2287c4),this['editor']=null,this['_editorConfig']=_0x19dc5c,this['set']('value',_0x19dc5c['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',E(_0x2287c4,'Reply...')),this['set']('submitLabel',E(_0x2287c4,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x4998e4(),this['focusCycler']=new _0x4a5462({'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',(_0x28a9d4,_0x56dc30)=>{this['cancelButtonView']['fire']('execute'),_0x56dc30();}),this['keystrokes']['set']('Ctrl+Enter',(_0x4e1ae3,_0x6aa80f)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x6aa80f());}),this['on']('submit',(_0x51a747,_0x2a8ab3)=>{_0x2a8ab3['length']>0xfde8?(alert(E(_0x2287c4,'TOO_LONG_COMMENT_ALERT',[_0x2a8ab3['length'],0xfde8])),_0x51a747['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Qt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x46f15d=this['editor'];this['element']['insertBefore'](_0x46f15d['ui']['element'],this['element']['firstChild']),_0x46f15d['model']['document']['on']('change',()=>this['value']=_0x46f15d['getData']()),_0x46f15d['bind']('placeholder')['to'](this),this['focusables']['add'](_0x46f15d['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0xe7b5c1){-0x1===_0xe7b5c1?(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:_0x10e004}=this,_0x27a7f8=new _0x501ccc(_0x10e004);return _0x27a7f8['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x27a7f8['withText']=!0x0,_0x27a7f8['bind']('label')['to'](this,'submitLabel'),_0x27a7f8['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x27a7f8['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x2bb55b,_0x254500)=>!_0x254500&&!!_0x2bb55b['trim']()),_0x27a7f8;}['_createCancelButton'](){const {locale:_0x4ffb48}=this,_0x3726db=new _0x501ccc(_0x4ffb48);return _0x3726db['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x3726db['label']=E(_0x4ffb48,'Cancel'),_0x3726db['withText']=!0x0,_0x3726db['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x3726db;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x5d362f=>{this['focusTracker']['add'](_0x5d362f['element']);}),this['focusables']['on']('change',(_0x461aa5,_0x2e52f1)=>{for(const _0x4df941 of Array['from'](_0x2e52f1['added'])['reverse']())this['focusTracker']['add'](_0x4df941['element']);});}}class ie extends kt{constructor(_0x3ff30c,_0x452af5,_0x508433){super(_0x3ff30c),this['commentInputView']=new os(_0x3ff30c,_0x508433),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x56ab71,_0x4d7049)=>_0x56ab71||!!_0x4d7049),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 _0x12c1b5(_0x3ff30c,_0x452af5),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'](_0xeb6952){this['commentInputView']['focus'](_0xeb6952);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x32b779,_0x4865ad)=>{const {submitButtonView:_0x1b7e7d,cancelButtonView:_0x358d4b,editor:_0x5e831a}=this['commentInputView'];[_0x1b7e7d['element'],_0x358d4b['element'],_0x5e831a?_0x5e831a['editing']['view']['getDomRoot']():null]['filter'](_0x5e1ba8=>_0x5e1ba8)['some'](_0x4b78ec=>_0x4b78ec['contains'](_0x4865ad['target']))||(this['focus'](),_0x4865ad['preventDefault']());});}}class cs extends kt{constructor(_0x522cd4){super(_0x522cd4);const _0x3b55fa=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x3b55fa['to']('count',_0x333e6a=>E(_0x522cd4,'NUMBER_OF_COMMENTS',_0x333e6a))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x3f2dd7,_0x381f6c,_0x3d51fd){super(_0x3f2dd7);const _0x1969b0=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x381f6c['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x381f6c,this['_config']=_0x3d51fd,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x4998e4(),this['keystrokes']=new jt(),this['focusCycler']=new _0x4a5462({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3dcdc5=>this['commentViews']['map'](_0x52a0a2=>_0x52a0a2['element'])['includes'](_0x3dcdc5['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x3f2dd7),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x13cf1d=>_0x13cf1d-this['_config']['maxCommentsWhenCollapsed']);for(const _0x8c1dde of _0x381f6c['comments'])this['_handleNewCommentModel'](_0x8c1dde);this['_handleInfoComment'](),this['listenTo'](_0x381f6c['comments'],'add',(_0x2e07ae,_0x47f35a)=>{const _0x7096fe=this['_calculatePosition'](_0x47f35a);this['length']++,this['_handleNewCommentModel'](_0x47f35a,_0x7096fe),this['refreshVisibleViews']();}),this['listenTo'](_0x381f6c['comments'],'remove',(_0x1a4986,_0x450087)=>{this['length']--,this['_handleRemoveCommentModel'](_0x450087),this['refreshVisibleViews']();}),this['listenTo'](_0x381f6c,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x381f6c,'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',_0x1969b0['if']('length','ck-hidden',_0x268ecf=>!_0x268ecf)],'aria-label':E(_0x3f2dd7,'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'](_0x254490){-0x1===_0x254490?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x2f3c52 of this['commentViews'])_0x2f3c52['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x3fbe06,_0xc97f6a){const _0x1d9cb1=new this['_config']['CommentView'](this['locale'],_0x3fbe06,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x1d9cb1['viewUid']=_0x3fbe06['id'],_0x1d9cb1['delegate']('removeComment')['to'](this),_0x1d9cb1['delegate']('updateComment')['to'](this),_0x1d9cb1['delegate']('resolveCommentThread')['to'](this),_0x1d9cb1['delegate']('editorReady')['to'](this),_0x1d9cb1['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x1d9cb1,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x1d9cb1,_0xc97f6a);}['_calculatePosition'](_0x429478){const _0x253d0c=this['_model']['_findOptimalIndex'](_0x429478);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x429478['authoredAt']?_0x253d0c-0x1:_0x253d0c:_0x253d0c-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x43fdea={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':E(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x43fdea,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x43fdea));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x918aa6){const _0x5dc428=this['commentViews']['remove'](_0x918aa6['id']);this['stopListening'](_0x5dc428),_0x5dc428['isEditMode']&&this['_updateHasDirtyComment'](),_0x5dc428['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x55d2e6=>_0x55d2e6['isEditMode']);}['_rearrangeCollapse'](){const _0x1ed489=function(_0x4b0f1d){const _0x4a620d=new _0x2a536e();for(const _0x44cc86 of _0x4b0f1d)_0x4a620d['add'](_0x44cc86);return _0x4a620d;}(this['commentViews']),_0x487ec4=this['_collapsedCommentsView']['count'];for(let _0x5b666b=0x1;_0x5b666b<=_0x487ec4;_0x5b666b++)_0x1ed489['remove'](0x1);for(const _0x142dd0 of _0x1ed489)_0x142dd0['collapse']();_0x487ec4>0x0&&_0x1ed489['add'](this['_collapsedCommentsView'],0x1),ns(_0x693b90(Array['from'](this['visibleViews']),Array['from'](_0x1ed489)),this['visibleViews'],_0x1ed489);}['_rearrangeExpand'](){ns(_0x693b90(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x2a9335 of this['visibleViews'])_0x2a9335['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x32fc41=>{this['focusTracker']['add'](_0x32fc41['element']),this['keystrokes']['listenTo'](_0x32fc41['element']);}),this['commentViews']['on']('change',(_0x3acc42,_0x4a5b27)=>{for(const _0x50e322 of _0x4a5b27['removed'])this['focusTracker']['remove'](_0x50e322['element']),this['keystrokes']['stopListening'](_0x50e322['element']);for(const _0x2d8c32 of Array['from'](_0x4a5b27['added'])['reverse']())this['focusTracker']['add'](_0x2d8c32['element']),this['keystrokes']['listenTo'](_0x2d8c32['element']);});}}function ns(_0x373847,_0x22a734,_0x204cc2){let _0xd9406c=0x0;for(const _0x380b14 of _0x373847)switch(_0x380b14){case'insert':_0x22a734['add'](_0x204cc2['get'](_0xd9406c),_0xd9406c),_0xd9406c++;break;case'delete':_0x22a734['remove'](_0xd9406c);break;case'equal':_0xd9406c++;}}class as extends kt{constructor(_0xf5736b){super(_0xf5736b);const _0x1d3960=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x1d3960['to']('contextValue',_0x2d83f9=>E(_0xf5736b,'THREAD_CONTEXT_LABEL',_0x2d83f9)),'tabindex':-0x1},'children':[{'text':_0x1d3960['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x238668,_0x25b669){super(_0x238668);const _0x3340b5=this['bindTemplate'];this['_model']=_0x25b669,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x4998e4(),this['keystrokes']=new jt(),this['focusCycler']=new _0x4a5462({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0xa9d99=>!!_0xa9d99),this['bind']('contextValue')['to'](this['_model'],'context',_0x5b9f52=>_0x5b9f52&&_0x5b9f52['value']?this['_trimContextValue'](_0x5b9f52['value']):E(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',_0x3340b5['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 _0x32d7b9=new _0x501ccc(this['locale']);return _0x32d7b9['label']=E(this['locale'],'Reopen'),_0x32d7b9['tooltip']=E(this['locale'],'Reopen'),_0x32d7b9['icon']=_0x49b621,_0x32d7b9['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x306d70=>!_0x306d70),_0x32d7b9['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x15531b,_0x13145d)=>_0x15531b&&_0x13145d),_0x32d7b9['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x32d7b9;}['_trimContextValue'](_0x115d1b){if(_0x115d1b['length']<0x96)return _0x115d1b;const _0x58c716=_0x115d1b['lastIndexOf']('\x20',0x93);return _0x115d1b['substring'](0x0,_0x58c716>-0x1?_0x58c716:0x93)+'...';}['_attachContextActions'](){const _0x4177bc=this['element']['querySelector']('.ck-context'),_0x285720=_0x4177bc['querySelector']('.ck-context__value');this['listenTo'](_0x4177bc,'mouseenter',()=>{_0x285720['offsetWidth']<_0x285720['scrollWidth']&&_0x4177bc['classList']['add']('overlay');}),this['listenTo'](_0x4177bc,'mouseleave',()=>{_0x4177bc['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x3a11fa of this['focusables'])this['focusTracker']['add'](_0x3a11fa['element']),this['keystrokes']['listenTo'](_0x3a11fa['element']);}['_createContextView'](){const _0x58fb70=new as(this['locale']);return _0x58fb70['bind']('contextValue')['to'](this),_0x58fb70;}}class ts extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x1331c6,_0x37a4d4,_0xb95f3e,_0x374fff){super(_0x1331c6),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x37a4d4,this['_localUser']=_0xb95f3e,this['_config']=_0x374fff,this['commentThreadHeaderView']=new Xt(_0x1331c6,_0x37a4d4),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x1331c6,E(_0x1331c6,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x1331c6,_0x37a4d4,Object['assign']({'CommentView':this['_config']['CommentView']},_0x374fff)),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',(_0x5731f4,_0x245027)=>_0x5731f4||!!_0x245027),this['bind']('isUnlinked')['to'](_0x37a4d4,'unlinkedAt',_0x5ac605=>!!_0x5ac605),this['bind']('ariaLabel')['to'](this,'length',_0x25e50a=>{const _0x44f066=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return E(this['locale'],'COMMENT_THREAD_LABEL',[_0x25e50a,_0x44f066]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x4998e4(),this['keystrokes']=new jt(),this['focusCycler']=new _0x4a5462({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x121532=>_0x121532['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),Zt(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0xb2259e=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3bff9a=_0xb2259e['commentInputView'];return _0xb2259e['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x3bff9a,'value',(_0x3aed7f,_0xe8bcaf,_0x2ceabd,_0x1b9fc4,_0x1a63af)=>!!_0x1a63af||!!_0x1b9fc4&&_0x2ceabd&&!_0xe8bcaf||_0x3aed7f&&_0x2ceabd&&!_0xe8bcaf),_0x3bff9a['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4508a4,_0x57b312,_0x1067a4)=>{let _0x366016;return _0x366016=_0x1067a4&&_0x57b312?'Reply\x20to\x20reopen\x20discussion...':_0x4508a4?'Reply...':'Write\x20a\x20comment...',E(this['locale'],_0x366016);}),_0x3bff9a['bind']('submitLabel')['to'](this,'length',_0x3879f0=>E(this['locale'],_0x3879f0?'Reply':'Comment')),_0x3bff9a['on']('submit',(_0x15e1aa,_0x500653)=>{this['fire']('addComment',_0x500653),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x3bff9a['on']('cancel',()=>{this['focus']();}),_0x3bff9a['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x3bff9a['on']('cancel',_0x34f7f0=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x34f7f0['stop']());}),this['on']('change:isActive',(_0x3db6ed,_0x3d7c91,_0x132528)=>{_0x132528||this['length']||_0x3bff9a['value']||this['fire']('removeCommentThread');}),_0xb2259e;}}class vt extends/* #__PURE__ -- @preserve */
27
+ ti(ts){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x5be524,_0xd3c1cd,_0x3865ad,_0x5db0f9){super(_0x5be524,_0xd3c1cd,_0x3865ad,_0x5db0f9),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x5be524,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x4d8a33,_0x63e3ae,_0x2a3523)=>{_0x2a3523||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x3fb1dd,_0x39ac48,_0x1a4cbc)=>{_0x1a4cbc&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x54914e=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x54914e['if']('isActive','ck-thread--active'),_0x54914e['if']('isUnlinked','ck-thread--unlinked'),_0x54914e['if']('isConfirm','ck-thread--remove-confirmation'),_0x54914e['to']('actionIndicator',_0x2f90b7=>_0x2f90b7?'ck-thread--'+_0x2f90b7:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x54914e['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 _0x4d309d of this['commentsListView']['commentViews'])_0x4d309d['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x586859}=this,_0x45beab=this['commentsListView']['commentViews']['get'](0x0);_0x45beab===this['_boundFirstCommentView']||_0x45beab['isSystemComment']||(this['_boundFirstCommentView']=_0x45beab,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x45beab,'actionIndicator',_0x2a576a=>'remove'===_0x2a576a?'remove':null),_0x45beab['placeholder']=E(_0x586859,'Write\x20a\x20comment...'),_0x45beab['removeButton']['on']('execute',_0x53207c=>{_0x53207c['stop'](),this['showConfirm'](E(_0x586859,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x45beab['focus']();}),_0x45beab['actionBar']['add'](this['resolveButton'],0x0),_0x45beab['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x4aa407=new _0x4bb770(this['locale']);return _0x4aa407['label']=E(this['locale'],'Resolve'),_0x4aa407['tooltip']=E(this['locale'],'Resolve'),_0x4aa407['icon']=_0x56bad1,_0x4aa407['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x4aa407['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2261d0=>!_0x2261d0),_0x4aa407['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x39d0e7,_0x29f624)=>_0x39d0e7&&!_0x29f624),_0x4aa407['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x4aa407;}['_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(_0x1dea76){super(_0x1dea76),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x14e0cd,_0x1efd82,_0x55fcc6)=>{this['element']['innerHTML']=_0x55fcc6;}),this['element']['innerHTML']=this['content'];}}class hs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x159101,_0x54c4e9,_0x32aec3){super(_0x159101),this['_model']=_0x54c4e9,this['_config']=_0x32aec3,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x54c4e9,'content',_0x54c4e9,'authoredAt',(_0x4c4860,_0x3bd4a9)=>E(_0x159101,'COMMENT_ARIA_LABEL',[_0x54c4e9['author']['name'],_0x32aec3['formatDateTime'](_0x3bd4a9),new DOMParser()['parseFromString'](_0x4c4860,'text/html')['body']['textContent'],_0x54c4e9['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x159101,E(_0x159101,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x1614c2(),this['focusTracker']=new _0x4998e4(),this['keystrokes']=new jt(),this['focusCycler']=new _0x4a5462({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x29248e=>_0x29248e['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']?E(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):E(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?E(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):E(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x33a813=new es(this['locale']);return _0x33a813['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x52bbd3,_0x3892c1)=>_0x3892c1?_0x2a709c(_0x52bbd3,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x52bbd3),_0x33a813;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x15fb3f=new os(this['locale'],this['_config']['editorConfig']);return _0x15fb3f['value']=this['_model']['content'],_0x15fb3f['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x15fb3f['submitLabel']=E(this['locale'],'Save'),_0x15fb3f['on']('submit',(_0xb37829,_0x1c997b)=>{this['fire']('updateComment',this['_model']['id'],_0x1c997b),this['switchToDisplayMode'](),this['focus']();}),_0x15fb3f['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x15fb3f['once']('editorReady',()=>{_0x15fb3f['focus']();}),_0x15fb3f['createEditor'](),_0x15fb3f['delegate']('editorReady')['to'](this),_0x15fb3f['delegate']('editorDestroyed')['to'](this),_0x15fb3f;}['_setupKeyboardNavigation'](){const _0x16ff8d=this['element'];this['keystrokes']['listenTo'](_0x16ff8d);for(const _0x5e878d of this['focusables'])this['focusTracker']['add'](_0x5e878d['element']),this['keystrokes']['listenTo'](_0x5e878d['element']);this['focusables']['on']('change',(_0x5c8808,_0x7f9a0b)=>{for(const _0x170503 of _0x7f9a0b['removed'])this['focusTracker']['remove'](_0x170503['element']),this['keystrokes']['stopListening'](_0x170503['element']);for(const _0x494c07 of _0x7f9a0b['added'])this['focusTracker']['add'](_0x494c07['element']),this['keystrokes']['listenTo'](_0x494c07['element']);}),this['keystrokes']['set']('enter',(_0x5e72aa,_0x1792d4)=>{_0x16ff8d===_0x5e72aa['target']&&(this['focusCycler']['focusFirst'](),_0x1792d4());}),this['keystrokes']['set']('esc',(_0x2108b7,_0x518563)=>{_0x16ff8d!==_0x2108b7['target']&&(this['focus'](),_0x518563());});}}class gt extends/* #__PURE__ -- @preserve */
28
+ ti(hs){['actionBar'];['userView'];constructor(_0xe58b7c,_0x212a86,_0x4a0fd5){super(_0xe58b7c,_0x212a86,_0x4a0fd5),this['set']('actionIndicator',null),this['set']('placeholder',E(_0xe58b7c,'Reply...')),this['bind']('authoredAt')['to'](_0x212a86),this['bind']('resolvedAt')['to'](_0x212a86),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 _0x12c1b5(_0xe58b7c,_0x212a86['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x212a86,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x260475=this['bindTemplate'],_0x3b02d1=[{'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':_0x260475['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x260475['to']('authoredAt',_0x1d1cdc=>this['_config']['formatDateTime'](_0x1d1cdc))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x260475['if']('isEditMode','ck-comment__actions--hidden'),_0x260475['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']&&_0x3b02d1['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x260475['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x260475['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x260475['if']('isEditMode','ck-comment--edit'),_0x260475['if']('isSystemComment','ck-comment--info'),_0x260475['to']('actionIndicator',_0x209ab9=>_0x209ab9?'ck-comment--'+_0x209ab9:'')],'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':_0x3b02d1}]}]};}['_createEditButton'](){const _0x1a1d6f=new _0x501ccc(this['locale']);return _0x1a1d6f['label']=E(this['locale'],'Edit'),_0x1a1d6f['icon']=_0x2dd1d3,_0x1a1d6f['withText']=!0x0,_0x1a1d6f['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x1a1d6f['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1dcbbb=>!_0x1dcbbb),_0x1a1d6f['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x1a1d6f['on']('execute',()=>this['switchToEditMode']()),_0x1a1d6f;}['_createRemoveButton'](){const _0x4cad2e=new _0x501ccc(this['locale']);return _0x4cad2e['label']=E(this['locale'],'Remove'),_0x4cad2e['icon']=_0x5207a8,_0x4cad2e['withText']=!0x0,_0x4cad2e['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x4cad2e['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xdf495a=>!_0xdf495a),_0x4cad2e['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x4cad2e['on']('execute',()=>{this['showConfirm'](E(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x4cad2e;}['_createDropdown'](){const _0x1403eb=_0x173f07(this['locale'],_0x5b1190),_0x4992dc=_0x1403eb['panelView']['children'],_0x134b93=new _0x4478f6(this['locale']),_0x4b4389=_0x1403eb['bindTemplate'];_0x559ecd(_0x1403eb,()=>this['items']['find'](_0x449020=>_0x449020['isVisible'])),_0x1403eb['extendTemplate']({'attributes':{'class':[_0x4b4389['if']('isVisible','ck-hidden',_0x2bc151=>!_0x2bc151)]}});const _0x260329=(_0x3b3639,_0x3254f7=-0x1)=>{const _0x2bdc52=new _0x80f34e(this['locale']);_0x2bdc52['children']['add'](_0x3b3639);const _0xa1477b=_0x3254f7>-0x1?_0x3254f7:_0x134b93['items']['length'];_0x134b93['items']['add'](_0x2bdc52,_0xa1477b);const _0x72a969=Array['from'](this['items']);_0x1403eb['unbind']('isEnabled','isVisible'),_0x1403eb['bind']('isEnabled')['toMany'](_0x72a969,'isEnabled',(..._0x4d55c1)=>_0x4d55c1['some'](_0x308a11=>_0x308a11)),_0x1403eb['bind']('isVisible')['toMany'](_0x72a969,'isVisible',(..._0x4bd193)=>_0x4bd193['some'](_0x5b5656=>_0x5b5656));};_0x1403eb['panelPosition']='sw',_0x1403eb['buttonView']['set']({'label':E(this['locale'],'Show\x20more\x20items'),'icon':_0x376907});for(const _0x501f7f of this['items'])_0x260329(_0x501f7f);return _0x4992dc['add'](_0x134b93),_0x1403eb['listenTo'](this['items'],'add',(_0x261319,_0x1fb1c8,_0xa4b404)=>{_0x260329(_0x1fb1c8,_0xa4b404);}),_0x1403eb['listenTo'](this['items'],'remove',(_0x2ee68a,_0x55c637,_0x5e4898)=>{_0x134b93['items']['remove'](_0x5e4898);}),_0x1403eb;}['_attachActions'](_0x4e0b2f,_0x247183){const _0x336f0b=_0x4e0b2f&&_0x4e0b2f['element'];_0x336f0b&&(this['listenTo'](_0x336f0b,'mouseenter',()=>this['actionIndicator']=_0x247183),this['listenTo'](_0x336f0b,'focus',()=>this['actionIndicator']=_0x247183),this['listenTo'](_0x336f0b,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x336f0b,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x4ae3d1=super['_createCommentInputView']();return _0x4ae3d1['bind']('placeholder')['to'](this),_0x4ae3d1;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0x153375){const _0xedb6b9=Dt(_0x153375,0x1e),_0x177d00=new MutationObserver(_0xdf7b7a=>{for(const _0x291f51 of _0xdf7b7a)('attributes'==_0x291f51['type']&&'class'==_0x291f51['attributeName']||'childList'==_0x291f51['type']||'characterData'==_0x291f51['type'])&&_0xedb6b9();});return{'attach'(_0x2e6b9){_0x177d00['observe'](_0x2e6b9,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x177d00['disconnect'](),_0xedb6b9['cancel']();}};}class S extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x138993,_0x315492){super(_0x138993),this['id']=_0x35b95b(),this['focusTracker']=new _0x4998e4(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x7fc38f,_0x6a6ac0)=>this['fire']('Esc',_0x6a6ac0)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=Lt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x315492),this['mainView']=_0x315492;const _0x1cb97d=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x1cb97d['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 _0x4adf40=this['element']['clientHeight'];_0x4adf40&&(this['height']=_0x4adf40);}}class d extends/* #__PURE__ -- @preserve */
29
+ _0x3b9dd7(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x45232b,target:_0x4a0753,type:_0x1af45c,isVisible:_0x40f432=!0x0}){super(),this['view']=_0x45232b,this['view']['element']||this['view']['render'](),this['_type']=_0x1af45c,this['_target']=_0x4a0753,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x2a536e([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x7d1e7f,_0x2e97e0)=>{this['view']['focusTracker']['add'](_0x2e97e0);}),this['focusableElements']['on']('remove',(_0x1f6dae,_0x502686)=>{this['view']['focusTracker']['remove'](_0x502686);}),this['set']('isVisible',_0x40f432);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x5d7fef=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x5d7fef),_0x5d7fef;}get['targetRect'](){const _0x4a1646=this['target'];if(null===_0x4a1646)return null;if(_0x4a1646 instanceof _0x5708d8)return _0x4a1646;const _0x3b9d2c=_0x4a1646['filter'](_0xade569=>function(_0x5387e2){const _0x13017a=_0x5387e2['offsetParent'];if(_0x13017a)return!0x0;const _0x24a2e8=_0x5387e2['getClientRects']()['item'](0x0);return!!_0x24a2e8;}(_0xade569));return 0x0===_0x3b9d2c['length']?null:new _0x5708d8(_0x3b9d2c[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x5cd325){this['view']['isActive']=_0x5cd325,this['view']['mainView']['isActive']=_0x5cd325;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x449d1b){if(!(null===_0x449d1b||_0x449d1b instanceof _0x5708d8||Array['isArray'](_0x449d1b)&&_0x449d1b['every'](_0x4b0bdf=>li(_0x4b0bdf))))throw new _0x15c172('annotation-invalid-target',null,{'target':_0x449d1b});}['_getNormalizedTarget'](){const _0x178266='function'==typeof this['_target']?this['_target']():this['_target'];return li(_0x178266)?[_0x178266]:_0x178266;}}function li(_0x423574){return null!==_0x423574&&'object'==typeof _0x423574&&'nodeType'in _0x423574&&0x1===_0x423574['nodeType'];}class _ extends _0x2a536e{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x4ecd81=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x4998e4(),this['_focusTracker']['on']('change:isFocused',(_0x439f21,_0x49bc80,_0x498dec)=>{_0x498dec||this['fire']('blur');});for(const _0x49420f of _0x4ecd81)this['add'](_0x49420f);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x2b9491){if(this['has'](_0x2b9491))throw new _0x15c172('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x2b9491['innerView'],_0x2b9491),this['_viewToAnnotation']['set'](_0x2b9491['view'],_0x2b9491);for(const _0x3f6b35 of _0x2b9491['focusableElements'])this['_focusTracker']['add'](_0x3f6b35);this['listenTo'](_0x2b9491['focusableElements'],'add',(_0x408a21,_0x57344b)=>{this['_focusTracker']['add'](_0x57344b);}),this['listenTo'](_0x2b9491['focusableElements'],'remove',(_0x2645e4,_0x567145)=>{this['_focusTracker']['remove'](_0x567145);}),this['listenTo'](_0x2b9491['view']['focusTracker'],'change:isFocused',(_0x309d48,_0x5a561e,_0x26a4cf)=>{_0x26a4cf&&this['fire']('focus',_0x2b9491);}),_0x2b9491['updateTargetRect']();const _0x4b7f6f=this['_getOrderInContent'](_0x2b9491['view']['targetRect']);return super['add'](_0x2b9491,_0x4b7f6f);}['remove'](_0x58c0d5){if(!this['has'](_0x58c0d5))throw new _0x15c172('annotationcollection-not-existing-item',null);this['stopListening'](_0x58c0d5['view']['focusTracker']),this['stopListening'](_0x58c0d5['focusableElements']);for(const _0x13bd2e of _0x58c0d5['focusableElements'])this['_focusTracker']['remove'](_0x13bd2e);return this['_viewToAnnotation']['delete'](_0x58c0d5['view']),this['_innerViewToAnnotation']['delete'](_0x58c0d5['innerView']),super['remove'](_0x58c0d5);}['getByInnerView'](_0x6be1f4){return this['_innerViewToAnnotation']['get'](_0x6be1f4);}['getByView'](_0xd8310d){return this['_viewToAnnotation']['get'](_0xd8310d);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x166469 of this)_0x166469['updateTargetRect']();this['_sort']();}['_sort'](){const _0x485af8=Array['from'](this)['sort']((_0x3b8370,_0x1089fa)=>v(_0x3b8370['view']['targetRect'],_0x1089fa['view']['targetRect']));for(let _0x2206e2=_0x485af8['length']-0x1;_0x2206e2>0x0;_0x2206e2--){const _0x4e49bc=_0x485af8[_0x2206e2];_0x2206e2!==this['getIndex'](_0x4e49bc)&&(this['remove'](_0x4e49bc),this['add'](_0x4e49bc));}}['_getOrderInContent'](_0x25642d){let _0x6d23e5=0x0;if(!_0x25642d)return this['length'];for(const _0x82d42b of this){const _0x36d443=_0x82d42b['view']['targetRect'];if(_0x36d443){if(v(_0x25642d,_0x36d443)<0x0)return _0x6d23e5;_0x6d23e5++;}}return _0x6d23e5;}}function v(_0x959fc0,_0xa37af2){if(null===_0x959fc0&&null===_0xa37af2)return 0x0;if(null===_0x959fc0)return-0x1;if(null===_0xa37af2)return 0x1;const _0xfd23fc=_0x959fc0['top']-_0xa37af2['top'];return 0x0==_0xfd23fc?_0x959fc0['left']-_0xa37af2['left']:_0xfd23fc;}class O extends _0x2c6a5a{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x379a2e){if(super(_0x379a2e),this['collection']=new _(),this['_visibleAnnotations']=new _(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x379a2e instanceof _0x17bd9d){const _0x5473e9=_0x379a2e['locale'];_0x379a2e['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':E(_0x5473e9,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':E(_0x5473e9,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':E(_0x5473e9,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':E(_0x5473e9,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':E(_0x5473e9,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':E(_0x5473e9,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':E(_0x5473e9,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x45d382){this['collection']['add'](_0x45d382);}['remove'](_0x2558a7){this['collection']['remove'](_0x2558a7),_0x2558a7['destroy']();}['refreshVisibility'](){for(const _0x5dc45c of this['collection'])_0x5dc45c['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x17b479){return this['collection']['getByInnerView'](_0x17b479);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x44a3bb of this['collection'])_0x44a3bb['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x3b3729){this['fire']('_activateAnnotation',_0x3b3729);}['createAnnotation'](_0xbb0943){return new d(_0xbb0943);}['createAnnotationView'](_0x265e07,_0x842829){return new S(_0x265e07,_0x842829);}['_addActiveAnnotation'](_0x533c29){const _0xc436a7=new Set(this['activeAnnotations']);_0xc436a7['add'](_0x533c29),this['activeAnnotations']=_0xc436a7;}['_removeActiveAnnotation'](_0x491c51){const _0x2ad539=new Set(this['activeAnnotations']);_0x2ad539['delete'](_0x491c51),this['activeAnnotations']=_0x2ad539;}['_bindAnnotationsToVisibleAnnotations'](){const _0x23faaa=this['collection'],_0x273f1d=this['_visibleAnnotations'];function _0x5dfb46(_0x40882d){const _0x884452=_0x40882d['source'];_0x884452['isVisible']&&!_0x273f1d['has'](_0x884452)?_0x273f1d['add'](_0x884452):!_0x884452['isVisible']&&_0x273f1d['has'](_0x884452)&&_0x273f1d['remove'](_0x884452),_0x884452['view']['focusTracker']['remove'](_0x884452['view']['element']),_0x884452['view']['focusTracker']['add'](_0x884452['view']['element']);}this['listenTo'](_0x23faaa,'add',(_0x172096,_0x1d8a26)=>{_0x1d8a26['isVisible']&&_0x273f1d['add'](_0x1d8a26),this['listenTo'](_0x1d8a26,'change:isVisible',_0x5dfb46);}),this['listenTo'](_0x23faaa,'remove',(_0x3d9b70,_0x531d0f)=>{_0x273f1d['has'](_0x531d0f)&&_0x273f1d['remove'](_0x531d0f),this['stopListening'](_0x531d0f,'change:isVisible',_0x5dfb46);});}['_setupEnterAnnotationKeystroke'](){const _0x497648=_0x1b8794=>{_0x1b8794['on']('ready',()=>{_0x1b8794['keystrokes']['set'](_0x396715,(_0x2abe14,_0x572979)=>{const _0x1da2bf=_0x5d65fb(this['activeAnnotations']['values']());_0x1da2bf&&(_0x1da2bf['view']['focus'](),_0x572979());});});};this['context']instanceof _0x17bd9d?_0x497648(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x52582b,_0xc780c9)=>{_0x497648(_0xc780c9);});}['_setupEscapeAnnotationHandling'](){const _0x19e9a3=_0x3c46f8=>{const _0x245ef2=_0x3c46f8['source'],_0x465d31=[];let _0x4d6b0e;if(Array['isArray'](_0x245ef2['target'])){_0x4d6b0e=_0x245ef2['target'][0x0],this['context']instanceof _0x17bd9d?_0x465d31['push'](this['context']):this['context']['editors']&&_0x465d31['push'](...this['context']['editors']);for(const _0x22f164 of _0x465d31)for(const _0x51df26 of _0x22f164['editing']['view']['domRoots']['values']())if(_0x51df26['contains'](_0x4d6b0e))return void _0x22f164['editing']['view']['focus']();_0x4d6b0e['focus']();}};this['listenTo'](this['collection'],'add',(_0x152c66,_0x2438d8)=>{this['listenTo'](_0x2438d8,'escape',_0x19e9a3,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x2e690f,_0x4ba55f)=>{this['stopListening'](_0x4ba55f,'escape',_0x19e9a3);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x2c6a5a{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[O,ht,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a0bfd){super(_0x4a0bfd),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0xb05720=this['context']['config'];_0xb05720['define']('comments.maxCommentsWhenCollapsed',0x2),_0xb05720['define']('comments.maxThreadTotalWeight',0x1f4),_0xb05720['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0xb05720['define']('comments.CommentThreadView',vt),_0xb05720['define']('comments.CommentView',gt),_0xb05720['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x2f2e6c=this['context']['plugins']['get'](O);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x4da32e,_0x50e5a6)=>this['_addCommentThread'](_0x50e5a6)),this['on']('submitCommentThread',(_0x378bd2,_0x33dd20)=>this['_submitCommentThread'](_0x33dd20)),this['on']('resolveCommentThread',(_0x3ab859,_0x4c5d2a)=>this['_resolveCommentThread'](_0x4c5d2a)),this['on']('resolveCommentThread',(_0x589994,_0x390fac)=>this['_updateActiveAnnotation'](_0x390fac),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x58fcf5,_0x27fe76)=>this['_reopenCommentThread'](_0x27fe76)),this['on']('reopenCommentThread',(_0x47f201,_0x3c0b5a)=>this['_updateActiveAnnotation'](_0x3c0b5a),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x1c5890,_0x4f282f)=>this['_removeCommentThread'](_0x4f282f)),this['on']('updateCommentThread',(_0x29d0d2,_0xfeaca9)=>this['_updateCommentThread'](_0xfeaca9)),this['on']('updateCommentThread',(_0x3ed69f,_0xdbdb5f)=>this['_updateActiveAnnotation'](_0xdbdb5f),{'priority':'lowest'}),this['on']('addComment',(_0x4f74ba,_0x199ec2)=>this['_addComment'](_0x199ec2)),this['on']('updateComment',(_0x33dee2,_0x42d498)=>this['_updateComment'](_0x42d498)),this['on']('removeComment',(_0x1446d2,_0x47b290)=>this['_removeComment'](_0x47b290)),this['on']('addComment',(_0x52f4f5,{threadId:_0x5bc427,isFromAdapter:_0x898bfb})=>{if(_0x898bfb)return;const _0x14a9a1=this['getCommentThread'](_0x5bc427),_0x35d0ca=_0x14a9a1&&this['_threadToController']['get'](_0x14a9a1);_0x35d0ca&&_0x35d0ca['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x2f2e6c,'change:activeAnnotations',(_0x5588ea,_0x9cab16,_0x3afb17)=>{const _0x1375a5=Array['from'](_0x3afb17)['map'](_0x448b8c=>this['_viewToController']['get'](_0x448b8c['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x1375a5?_0x1375a5['model']:null;});}set['adapter'](_0x32e1d9){if(this['_adapter'])throw new _0x15c172('commentsrepository-adapter-already-set');this['_adapter']=_0x32e1d9;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x4586d2=Tt,threadId:_0x54c847=_0x35b95b(),comments:_0x46121a=[],unlinkedAt:_0x490656=null,resolvedAt:_0x28ee6f=null,resolvedBy:_0x208a8d=null,target:_0x42da9b=null,context:_0x49df16=null,attributes:_0x115b51={},isResolvable:_0x3f8416=!0x0,isSubmitted:_0x10fa27=!0x1,isFromAdapter:_0x21ca2c=!0x1}={}){return this['fire'](bt('addCommentThread',_0x4586d2),{'channelId':_0x4586d2,'threadId':_0x54c847,'comments':_0x46121a,'unlinkedAt':_0x490656,'resolvedAt':_0x28ee6f,'resolvedBy':_0x208a8d,'target':_0x42da9b,'context':_0x49df16,'attributes':_0x115b51,'isFromAdapter':_0x21ca2c,'isResolvable':_0x3f8416,'isSubmitted':_0x10fa27}),this['getCommentThread'](_0x54c847);}['openNewCommentThread']({channelId:_0x2ddcff=Tt,threadId:_0x5065b9=_0x35b95b(),target:_0x1a4783,context:_0x2fe592=null,isResolvable:_0xac5ef0=!0x0}){if(this['_readOnlyChannels']['has'](_0x2ddcff)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x1a4783)throw new _0x15c172('commentsrepository-missing-target');const _0x422de3=this['addCommentThread']({'channelId':_0x2ddcff,'threadId':_0x5065b9,'target':_0x1a4783,'context':_0x2fe592,'isResolvable':_0xac5ef0});if(!_0x422de3)return null;const _0x1265d9=this['_threadToController']['get'](_0x422de3),_0x2657c0=_0x1265d9['view']['commentThreadInputView']['commentInputView'],_0x4b551e=this['context']['plugins']['get'](O),_0x3c3eeb=_0x4b551e['getByInnerView'](_0x1265d9['view']);return _0x4b551e['activate'](_0x3c3eeb),_0x2657c0['once']('editorReady',()=>_0x2657c0['focus']()),_0x422de3;}['hasCommentThread'](_0x3f36c5){if('string'!=typeof _0x3f36c5)throw new _0x15c172('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x3f36c5);}['updateCommentThread']({channelId:_0x50c3fb=Tt,threadId:_0x81bb93,context:_0x3032e8,unlinkedAt:_0x4b96fc,attributes:_0x47e2bc,isFromAdapter:_0x109335=!0x1}){return this['fire'](bt('updateCommentThread',_0x50c3fb),{'channelId':_0x50c3fb,'threadId':_0x81bb93,'context':_0x3032e8,'unlinkedAt':_0x4b96fc,'attributes':_0x47e2bc,'isFromAdapter':_0x109335}),this['getCommentThread'](_0x81bb93);}['getCommentThread'](_0x4fce12){if('string'!=typeof _0x4fce12)throw new _0x15c172('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x4fce12);}['fetchCommentThread']({channelId:_0x34840a,threadId:_0xa311a7}={}){const _0x7bd410=this['getCommentThread'](_0xa311a7);if(_0x7bd410)return Promise['resolve'](_0x7bd410);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x15c172('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x34840a,'threadId':_0xa311a7})['then'](_0x2bfc83=>this['hasCommentThread'](_0xa311a7)?this['getCommentThread'](_0xa311a7):_0x2bfc83?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x34840a},_0x2bfc83)):void 0x0)['catch'](_0x42aa19=>{throw console['error'](_0x42aa19),new _0x15c172('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x49356d,skipNotAttached:_0x3b600c=!0x1,skipEmpty:_0x12da45=!0x1,toJSON:_0x4e1346=!0x1}={}){const _0x415382=[];for(const _0x48db00 of this['_threads']['values']())_0x49356d&&_0x48db00['channelId']!==_0x49356d||_0x3b600c&&!_0x48db00['isAttached']||_0x12da45&&0x0===_0x48db00['length']||_0x415382['push'](_0x48db00);return _0x4e1346?_0x415382['map'](_0x3578d0=>_0x3578d0['toJSON']()):_0x415382;}['setActiveCommentThread'](_0x3186c4){const _0xa07709=this['context']['plugins']['get'](O);if(!_0x3186c4)return void(this['activeCommentThread']&&_0xa07709['deactivateAll']());const _0x66bb21=this['getCommentThread'](_0x3186c4);if(!_0x66bb21)throw new _0x15c172('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x3186c4});if(!this['_threadToController']['has'](_0x66bb21))throw new _0x15c172('commentsrepository-active-not-attached',null,{'threadId':_0x3186c4});const _0x16fa6b=_0xa07709['getByInnerView'](this['_threadToController']['get'](_0x66bb21)['view']);_0xa07709['activate'](_0x16fa6b);}['switchReadOnly'](_0x5f21fa,_0x2a72aa){_0x5f21fa?this['_readOnlyChannels']['add'](_0x2a72aa):this['_readOnlyChannels']['delete'](_0x2a72aa),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0xbde589){return this['_readOnlyChannels']['has'](_0xbde589)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x53c1d6,_0x1db48e){return new Ct(_0x53c1d6,_0x1db48e);}['setPermissions'](_0x259b8e,_0x4c127e=Tt){this['_permissions']['set'](_0x4c127e,_0x259b8e),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x245c23=Tt){return this['_permissions']['has'](_0x245c23)?this['_permissions']['get'](_0x245c23):_t;}['_addCommentThread']({channelId:_0x56d701,threadId:_0xf2b8c8,comments:_0x4cb569,unlinkedAt:_0x57ae7d,resolvedAt:_0x131d75,resolvedBy:_0x2dd1dd,target:_0x3805b7,context:_0x4186df,attributes:_0x4c7123,isFromAdapter:_0xdc6ad,isResolvable:_0x47db37,isSubmitted:_0x33af49}){if('string'!=typeof _0xf2b8c8)throw new _0x15c172('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0xf2b8c8});if(this['hasCommentThread'](_0xf2b8c8))throw new _0x15c172('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0xf2b8c8});const _0x1fd0b3=new ui(this,{'channelId':_0x56d701,'id':_0xf2b8c8,'context':_0x4186df,'attributes':_0x4c7123,'unlinkedAt':_0x57ae7d,'resolvedAt':_0x131d75,'resolvedBy':_0x2dd1dd?this['context']['plugins']['get'](it)['getUser'](_0x2dd1dd):null,'isResolvable':_0x47db37,'isSubmitted':_0x33af49||_0xdc6ad});this['_threads']['set'](_0xf2b8c8,_0x1fd0b3);for(const _0x1c2ff1 of _0x4cb569)_0x1fd0b3['_add'](this['_createNewComment']({'threadId':_0xf2b8c8,..._0x1c2ff1}));return _0x3805b7&&_0x1fd0b3['attachTo'](_0x3805b7),_0xdc6ad||!_0x1fd0b3['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x56d701,'threadId':_0xf2b8c8});}['_submitCommentThread']({channelId:_0x1037cb,threadId:_0x45ede9}){if(!this['hasCommentThread'](_0x45ede9))throw new _0x15c172('commentsrepository-missing-comment-thread',this);const _0x5f04aa=this['getCommentThread'](_0x45ede9);if(_0x5f04aa['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x354aa0,comments:_0x534a86,resolvedAt:_0x1a258b,resolvedBy:_0x564fbd,context:_0x4ece6e,attributes:_0x23e0ae}=_0x5f04aa,_0x803f16=this['context']['plugins']['get']('PendingActions'),_0x4997e8=_0x803f16['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x1037cb,'threadId':_0x354aa0,'comments':_0x534a86['map'](_0x935bb5=>_0x935bb5['toJSON']()),'resolvedAt':_0x1a258b,'resolvedBy':_0x564fbd?_0x564fbd['id']:_0x564fbd,'context':_0x4ece6e,'attributes':_0x23e0ae})['then'](({comments:_0x2fe341})=>{_0x803f16['remove'](_0x4997e8);for(const _0x52f5df of _0x2fe341)this['_updateComment']({'channelId':_0x1037cb,'threadId':_0x45ede9,'commentId':_0x52f5df['commentId'],'createdAt':_0x52f5df['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x1a8e0c=>{throw console['error'](_0x1a8e0c),new _0x15c172('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0xc4a666,target:_0x29bd49}){const _0x3a7c5d=this['getCommentThread'](_0xc4a666);if(!_0x3a7c5d)throw new _0x15c172('commentsrepository-attach-missing-comment-thread',this);const _0x805e77=this['context']['plugins']['get']('PendingActions'),_0x33a543=this['context']['plugins']['get'](O),_0xd4dc91=this['_createCommentThreadView'](_0x3a7c5d),_0x4c4582=new Ct(_0x3a7c5d,_0xd4dc91);let _0x14fd71=null;_0xd4dc91['on']('change:isDirty',(_0x64c99b,_0x4045c2,_0x5907a8)=>{_0x5907a8?_0x14fd71=_0x805e77['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x14fd71&&(_0x805e77['remove'](_0x14fd71),_0x14fd71=null);}),this['_threadToController']['set'](_0x3a7c5d,_0x4c4582),this['_viewToController']['set'](_0xd4dc91,_0x4c4582);const _0x51e6b6=new S(this['context']['locale'],_0xd4dc91);_0x51e6b6['bind']('length')['to'](_0xd4dc91),_0x51e6b6['bind']('isDirty')['to'](_0xd4dc91,'isDirty',_0xd4dc91,'length',(_0x47562d,_0x5ff2eb)=>_0x47562d||!_0x5ff2eb),_0x51e6b6['bind']('isActive')['to'](_0xd4dc91),_0x51e6b6['type']='comment';const _0x7cd0c7=new d({'view':_0x51e6b6,'target':_0x29bd49,'type':'comment','isVisible':!_0x3a7c5d['archivedAt']});return _0xd4dc91['on']('escape',()=>{_0x7cd0c7['fire']('escape');}),this['_bindAnnotationToEditors'](_0xd4dc91,_0x7cd0c7),_0x33a543['add'](_0x7cd0c7),_0x7cd0c7;}['_bindAnnotationToEditors'](_0x16fbf5,_0x47cee3){this['listenTo'](_0x16fbf5,'editorReady',(_0x1b3559,_0x2e6315)=>{const _0xa102f6=_0x2e6315['ui']['view']['body']['bodyCollectionContainer'];_0x47cee3['focusableElements']['add'](_0xa102f6),this['context']instanceof _0x17bd9d&&this['context']['ui']['focusTracker']['add'](_0xa102f6);},{'priority':'highest'}),this['listenTo'](_0x16fbf5,'editorDestroyed',(_0x9308d4,_0x597886)=>{const _0x3c90a6=_0x597886['ui']['view']['body']['bodyCollectionContainer'];_0x47cee3['focusableElements']['has'](_0x3c90a6)&&_0x47cee3['focusableElements']['remove'](_0x3c90a6),this['context']instanceof _0x17bd9d&&this['context']['ui']['focusTracker']['remove'](_0x3c90a6);});}['_unbindEditors'](_0x5eb702){this['stopListening'](_0x5eb702,'editorReady'),this['stopListening'](_0x5eb702,'editorDestroyed');}['_createCommentThreadView'](_0x45f60a){const _0x26b615=this['context']['plugins']['get'](it),{config:_0x439630,locale:_0x597479}=this['context'],_0x19b1cb=lt(_0x439630['get']('locale'),_0x597479);return new(0x0,(_0x439630['get']('comments'))['CommentThreadView'])(_0x597479,_0x45f60a,_0x26b615['me'],{'editorConfig':{..._0x439630['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x439630['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x439630['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x439630['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x439630['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x19b1cb,'CommentView':_0x439630['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x1d2c3d,channelId:_0x2d52d0,resolvedAt:_0x29a7d9,resolvedBy:_0x4bd03a,isFromAdapter:_0x101ef5}){if(!this['hasCommentThread'](_0x1d2c3d))throw new _0x15c172('commentsrepository-missing-comment-thread',null,{'threadId':_0x1d2c3d});const _0x164dce=this['getCommentThread'](_0x1d2c3d);if(_0x164dce['isResolved'])throw new _0x15c172('commentsrepository-resolved-comment-thread',null,{'threadId':_0x1d2c3d});const _0x4a7e88=this['context']['plugins']['get'](it);if(_0x164dce['resolvedBy']=_0x4a7e88['getUser'](_0x4bd03a),_0x164dce['resolvedAt']=_0x29a7d9,_0x101ef5||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0xe61ece=this['context']['plugins']['get']('PendingActions'),_0x39ca27=_0xe61ece['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x2d52d0,'threadId':_0x1d2c3d})['then'](({resolvedAt:_0x5d4df6,resolvedBy:_0x506bfb})=>{_0xe61ece['remove'](_0x39ca27),_0x164dce['resolvedBy']['id']!==_0x506bfb&&(_0x164dce['resolvedBy']=_0x4a7e88['getUser'](_0x506bfb)),_0x164dce['resolvedAt']=_0x5d4df6;})['catch'](_0x5494ff=>{throw console['error'](_0x5494ff),new _0x15c172('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x17f91d,channelId:_0x1e6535,isFromAdapter:_0xd57634}){if(!this['hasCommentThread'](_0x17f91d))throw new _0x15c172('commentsrepository-missing-comment-thread',null,{'threadId':_0x17f91d});const _0x29cac1=this['getCommentThread'](_0x17f91d);if(!_0x29cac1['isResolved'])throw new _0x15c172('commentsrepository-reopen-comment-thread',null,{'threadId':_0x17f91d});if(_0x29cac1['resolvedBy']=null,_0x29cac1['resolvedAt']=null,_0xd57634||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x121519=this['context']['plugins']['get']('PendingActions'),_0x347183=_0x121519['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x1e6535,'threadId':_0x17f91d})['then'](()=>_0x121519['remove'](_0x347183))['catch'](_0x2299e7=>{throw console['error'](_0x2299e7),new _0x15c172('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x2be539,isFromAdapter:_0x823ed5}){const _0x137ddb=this['getCommentThread'](_0x2be539);if(!_0x137ddb)throw new _0x15c172('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x2be539),this['_threads']['delete'](_0x2be539),!_0x137ddb['isSubmitted']||_0x823ed5||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x5ea47a=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1fbaec}=_0x137ddb,_0x352cfc=_0x5ea47a['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x1fbaec,'threadId':_0x2be539})['then'](()=>_0x5ea47a['remove'](_0x352cfc))['catch'](_0x40ab74=>{throw console['error'](_0x40ab74),new _0x15c172('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x7ba645,unlinkedAt:_0x4e250d,context:_0x5c8fac,attributes:_0xdc26b5,isFromAdapter:_0x240fd7}){if('string'!=typeof _0x7ba645)throw new _0x15c172('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x7ba645});if(!this['hasCommentThread'](_0x7ba645))throw new _0x15c172('commentsrepository-missing-comment-thread',null,{'threadId':_0x7ba645});const _0x12e023=this['getCommentThread'](_0x7ba645);let _0x290545=!0x1;if(void 0x0!==_0x5c8fac&&_0x12e023['context']!==_0x5c8fac&&(_0x12e023['context']=_0x5c8fac,_0x290545=!0x0),void 0x0!==_0x4e250d&&_0x12e023['unlinkedAt']!==_0x4e250d&&(_0x12e023['unlinkedAt']=_0x4e250d,_0x290545=!0x0),_0xdc26b5&&!wt(_0xdc26b5,_0x12e023['attributes'])&&(_0x12e023['attributes']=_0xdc26b5,_0x290545=!0x0),!_0x290545)return Promise['resolve']();if(!_0x12e023['isSubmitted']||_0x240fd7||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x2fe263=this['context']['plugins']['get']('PendingActions'),{channelId:_0x37ddbe}=_0x12e023,_0x384b8e=_0x2fe263['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x37ddbe,'threadId':_0x7ba645,'context':_0x5c8fac,'unlinkedAt':_0x4e250d,'attributes':_0xdc26b5})['then'](()=>_0x2fe263['remove'](_0x384b8e))['catch'](_0x3ccb5d=>{throw console['error'](_0x3ccb5d),new _0x15c172('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x556a44){const _0x36e869=this['context']['plugins']['get'](O),_0x33a880=this['getCommentThread'](_0x556a44);if(_0x33a880['_isAttached']=!0x1,this['_threadToController']['has'](_0x33a880)){const _0x51dd4f=this['_threadToController']['get'](_0x33a880),_0x49f7eb=_0x51dd4f['view'],_0x29e6e5=_0x36e869['getByInnerView'](_0x49f7eb);this['_threadToController']['delete'](_0x33a880),this['_viewToController']['delete'](_0x49f7eb),_0x29e6e5&&_0x36e869['remove'](_0x29e6e5),_0x51dd4f['destroy'](),_0x49f7eb['destroy']()['then'](()=>{this['_unbindEditors'](_0x49f7eb);});}}['_updateActiveAnnotation']({threadId:_0x10af0d,resolvedAt:_0xa0b232,unlinkedAt:_0x881cf5}){const _0x5c7a29=!!_0xa0b232,_0xf51afd=this['context']['plugins']['get'](O),_0x2dc6b9=this['getCommentThread'](_0x10af0d);if(this['_threadToController']['has'](_0x2dc6b9)){const _0x4f00c1=this['_threadToController']['get'](_0x2dc6b9)['view'],_0xcf2934=_0xf51afd['getByInnerView'](_0x4f00c1);_0xcf2934&&(_0x5c7a29&&_0xf51afd['_removeActiveAnnotation'](_0xcf2934),_0x881cf5?_0xcf2934['isVisible']=!0x1:_0xcf2934['refreshVisibility']());}}['_getExternalAuthor'](_0x50f13d){const _0x22a1d7=this['context']['plugins']['get'](it),_0x5e58ce=pt('external:'+_0x50f13d),_0x3beb27=_0x22a1d7['getUser'](_0x5e58ce);return _0x3beb27||_0x22a1d7['addUser']({'id':_0x5e58ce,'name':_0x50f13d});}['_createNewComment']({threadId:_0x4a32ef,commentId:_0xb26d4a=_0x35b95b(),content:_0x3bbf65,authorId:_0x155014,createdAt:_0x23d1f5,attributes:_0xc1cf1f}){if('string'!=typeof _0xb26d4a)throw new _0x15c172('commentsrepository-invalid-commentid');if('string'!=typeof _0x155014)throw new _0x15c172('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x3bbf65||!_0x3bbf65['trim']())throw new _0x15c172('commentsrepository-invalid-comment-content');const _0x110af1=this['context']['plugins']['get'](it)['getUser'](_0x155014);if(!_0x110af1)throw new _0x15c172('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x155014});let _0x3c94fb=null,_0x3236d7=_0x23d1f5;return _0xc1cf1f?.['@external']&&(_0x3c94fb=this['_getExternalAuthor'](_0xc1cf1f['@external']['authorName']),_0x3236d7=new Date(_0xc1cf1f['@external']['createdAt'])),new fi(this,{'threadId':_0x4a32ef,'id':_0xb26d4a,'author':_0x3c94fb||_0x110af1,'creator':_0x110af1,'content':_0x3bbf65,'createdAt':_0x23d1f5,'authoredAt':_0x3236d7,'attributes':_0xc1cf1f});}['_addComment'](_0x9a76c9){let {threadId:_0x202550,content:_0x289496,attributes:_0xb2c8e5,isFromAdapter:_0x495492}=_0x9a76c9;const _0x168331=this['getCommentThread'](_0x9a76c9['threadId']);if(!_0x168331)throw new _0x15c172('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x1d3df3=this['_createNewComment'](_0x9a76c9),{id:_0x5b5da8}=_0x1d3df3;if(_0x168331['_add'](_0x1d3df3),_0x495492||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x168331['isSubmitted'])return Promise['resolve']();const _0x59613c=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5b5701}=_0x168331,_0x16ad8f=_0x59613c['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0xb2c8e5||(_0xb2c8e5={}),this['adapter']['addComment']({'channelId':_0x5b5701,'threadId':_0x202550,'commentId':_0x5b5da8,'content':_0x289496,'attributes':_0xb2c8e5})['then'](_0x1baa03=>{_0x59613c['remove'](_0x16ad8f),_0x1baa03&&this['_updateComment']({'channelId':_0x5b5701,'threadId':_0x202550,'commentId':_0x5b5da8,'createdAt':_0x1baa03['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x24e696=>{throw console['error'](_0x24e696),new _0x15c172('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x3af0b9,commentId:_0x1360a0,content:_0x10eafd,createdAt:_0x52f4ad,attributes:_0x2a245b,isFromAdapter:_0x5a47d5}){if(void 0x0!==_0x10eafd&&('string'!=typeof _0x10eafd||!_0x10eafd['trim']()['length']))throw new _0x15c172('commentsrepository-update-comment-invalid-content');const _0x5ae307=this['getCommentThread'](_0x3af0b9),_0x5c281c=_0x5ae307['getComment'](_0x1360a0);if(!_0x5c281c)throw new _0x15c172('commentsrepository-update-missing-comment',this);let _0x6ee5f9=!0x1;if(_0x10eafd&&_0x10eafd!==_0x5c281c['content']&&(_0x5c281c['isEditable']||_0x5a47d5)&&(_0x5c281c['content']=_0x10eafd,_0x6ee5f9=!0x0),_0x52f4ad&&_0x52f4ad!==_0x5c281c['createdAt']&&(_0x5c281c['createdAt']=_0x52f4ad,_0x5c281c['attributes']&&_0x5c281c['attributes']['@external']||(_0x5c281c['authoredAt']=_0x52f4ad),_0x6ee5f9=!0x0),_0x2a245b&&!wt(_0x2a245b,_0x5c281c['attributes'])&&(_0x5c281c['attributes']=_0x2a245b,_0x6ee5f9=!0x0),!_0x6ee5f9)return Promise['resolve']();if(_0x5ae307['fire']('commentUpdated'),_0x5a47d5||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x197224=this['context']['plugins']['get']('PendingActions'),{channelId:_0x311413}=this['getCommentThread'](_0x5c281c['threadId']),_0x33b18e=_0x197224['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x311413,'threadId':_0x3af0b9,'commentId':_0x1360a0,'content':_0x10eafd,'attributes':_0x2a245b})['then'](()=>_0x197224['remove'](_0x33b18e))['catch'](_0xb06cb1=>{throw console['error'](_0xb06cb1),new _0x15c172('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x202567,commentId:_0x816850,isFromAdapter:_0x1ddbdb}){const _0x149a18=this['getCommentThread'](_0x202567),_0x315b51=_0x149a18['getComment'](_0x816850);if(!_0x315b51)throw new _0x15c172('commentsrepository-remove-missing-comment',this);if(_0x149a18['_remove'](_0x315b51),_0x1ddbdb||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x38b42a=this['context']['plugins']['get']('PendingActions'),{channelId:_0xc56ee0}=_0x149a18,_0x31222d=_0x38b42a['add'](E(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0xc56ee0,'threadId':_0x202567,'commentId':_0x816850})['then'](()=>_0x38b42a['remove'](_0x31222d))['catch'](_0x31421c=>{throw console['error'](_0x31421c),new _0x15c172('commentsrepository-remove-comment-internal-error',this);});}}class ui extends/* #__PURE__ -- @preserve */
30
+ _0x3b9dd7(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x5050a2,_0x2761a0){super();const _0x2e7cca=_0x2761a0['isResolvable'];this['channelId']=_0x2761a0['channelId'],this['id']=_0x2761a0['id'],this['comments']=new _0x2a536e(),this['_repository']=_0x5050a2,this['_isAttached']=!0x1,this['_isSubmitted']=_0x2761a0['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x5050a2,'_permissions',_0x5050a2,'_readOnlyChannels',()=>_0x5050a2['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x5050a2,'_permissions',()=>_0x5050a2['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x5050a2,'_permissions',()=>{const _0x5c7f3a=_0x5050a2['getPermissions'](this['channelId']);return _0x5c7f3a['write']||_0x5c7f3a['admin'];}),this['bind']('isResolvable')['to'](_0x5050a2,'_permissions',()=>_0x2e7cca&&_0x5050a2['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x2761a0['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x4c89a0,_0x462ae5)=>_0x4c89a0?_0x462ae5?_0x4c89a0<_0x462ae5?_0x4c89a0:_0x462ae5:_0x4c89a0:_0x462ae5),this['set']('unlinkedAt',_0x2761a0['unlinkedAt']||null),this['set']('resolvedAt',_0x2761a0['resolvedAt']||null),this['set']('resolvedBy',_0x2761a0['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x201c56=>!!_0x201c56),this['set']('attributes',_0x2761a0['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x2acd23,_0x53f651)=>_0x2acd23+_0x53f651['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x4db681,id:_0x43e808}=this;this['_repository']['fire'](bt('submitCommentThread',_0x4db681),{'channelId':_0x4db681,'threadId':_0x43e808});}['setUnlinkedAt'](_0x415e68){this['_update']({'unlinkedAt':_0x415e68});}['resolve']({resolvedAt:_0x37e6ca=new Date(),resolvedBy:_0x39f371=null,isFromAdapter:_0x164a24=!0x1}={}){const _0x375c1f=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x3eccb3,id:_0x5c8818}=this;this['_repository']['fire'](bt('resolveCommentThread',_0x3eccb3),{'channelId':_0x3eccb3,'threadId':_0x5c8818,'resolvedAt':_0x37e6ca,'resolvedBy':_0x39f371||_0x375c1f['id'],'isFromAdapter':_0x164a24});}['reopen']({isFromAdapter:_0x30f0bb=!0x1}={}){const {channelId:_0xf96b6d,id:_0x248db9}=this;this['_repository']['fire'](bt('reopenCommentThread',_0xf96b6d),{'channelId':_0xf96b6d,'threadId':_0x248db9,'isFromAdapter':_0x30f0bb});}['setContext'](_0x1b4680){this['context']||this['_update']({'context':_0x1b4680});}['setAttribute'](_0x4fffa1,_0x443336){const _0x2ef0a4=It(this['attributes']);At(_0x2ef0a4,_0x4fffa1,_0x443336),this['_update']({'attributes':_0x2ef0a4});}['removeAttribute'](_0x46ba77){const _0xb9b255=It(this['attributes']);yt(_0xb9b255,_0x46ba77),this['_update']({'attributes':_0xb9b255});}['remove']({isFromAdapter:_0x2e1869=!0x1}={}){const {channelId:_0x360e89,id:_0x4ad577}=this;this['_repository']['fire'](bt('removeCommentThread',_0x360e89),{'channelId':_0x360e89,'threadId':_0x4ad577,'isFromAdapter':_0x2e1869});}['attachTo'](_0x3043b2){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x3043b2});}['addComment'](_0x87fc5a){const {channelId:_0x417b2e,id:_0x10a046}=this;this['_repository']['fire'](bt('addComment',_0x417b2e,_0x10a046),Object['assign']({'channelId':_0x417b2e,'threadId':_0x10a046},_0x87fc5a));}['getComment'](_0x803a3b){if('string'!=typeof _0x803a3b)throw new _0x15c172('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x803a3b});return this['comments']['get'](_0x803a3b);}['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'](_0x60c223=>_0x60c223['toJSON']()),'attributes':this['attributes']};}['_add'](_0x4670f3){return this['listenTo'](_0x4670f3,'change:authoredAt',()=>{const _0x309874=this['_findOptimalIndex'](_0x4670f3),_0x5ead38=this['comments'];_0x309874-0x1!=_0x5ead38['getIndex'](_0x4670f3)&&_0x309874+0x1!=_0x5ead38['getIndex'](_0x4670f3)&&(this['_remove'](_0x4670f3),this['_add'](_0x4670f3));}),this['comments']['add'](_0x4670f3,this['_findOptimalIndex'](_0x4670f3));}['_update'](_0x402b26){const {channelId:_0x25aced,id:_0x3582af}=this;this['_repository']['fire'](bt('updateCommentThread',_0x25aced),{..._0x402b26,'channelId':_0x25aced,'threadId':_0x3582af});}['_remove'](_0x38cec0){return this['stopListening'](_0x38cec0),_0x38cec0['destroy'](),this['comments']['remove'](_0x38cec0);}['_findOptimalIndex'](_0xd77e8d){const _0x1dd8ef=this['comments']['find'](_0x4dd391=>new Date(_0x4dd391['authoredAt'])['getTime']()>new Date(_0xd77e8d['authoredAt'])['getTime']());return _0x1dd8ef?this['comments']['getIndex'](_0x1dd8ef):this['length'];}}class fi extends/* #__PURE__ -- @preserve */
31
+ _0x3b9dd7(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x23bbf6,_0x1ff399){super();const _0x1687e7=_0x23bbf6['context']['plugins']['get'](it)['me'],_0x3a08a7=_0x23bbf6['getCommentThread'](_0x1ff399['threadId']),_0x1affa7=0x0===_0x3a08a7['comments']['length'],_0x2f11b4=_0x1687e7===_0x1ff399['author'];this['id']=_0x1ff399['id'],this['threadId']=_0x1ff399['threadId'],this['author']=_0x1ff399['author'],this['creator']=_0x1ff399['creator'],this['isExternal']=Boolean(_0x1ff399['attributes']&&_0x1ff399['attributes']['@external']),this['set']('content',_0x1ff399['content']),this['createdAt']=_0x1ff399['createdAt']||new Date(),this['set']('authoredAt',_0x1ff399['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x3a08a7,'resolvedAt'),this['set']('attributes',_0x1ff399['attributes']||{}),this['bind']('isEditable')['to'](_0x23bbf6,'_permissions',()=>{const _0x3994c5=_0x23bbf6['getPermissions'](_0x3a08a7['channelId'])['write'],_0x5823c6=_0x23bbf6['getPermissions'](_0x3a08a7['channelId'])['modifyAll'];return _0x2f11b4&&_0x3994c5||!_0x2f11b4&&_0x5823c6;}),this['bind']('isRemovable')['to'](_0x3a08a7,'isRemovable',_0x23bbf6,'_permissions',_0xc5475c=>{const _0x59a21f=_0x23bbf6['getPermissions'](_0x3a08a7['channelId'])['write'],_0x2031d8=_0x23bbf6['getPermissions'](_0x3a08a7['channelId'])['modifyAll'];return _0x2f11b4&&_0x59a21f||_0xc5475c&&_0x1affa7||!_0x2f11b4&&_0x2031d8&&!_0x1affa7;}),this['bind']('isReadOnly')['to'](_0x3a08a7,'isReadOnly'),this['_repository']=_0x23bbf6;}get['weight'](){return Math['max'](function(_0x56fa7f){const _0x1a1b49=document['createElement']('div');return _0x1a1b49['innerHTML']=_0x56fa7f,_0x1a1b49['textContent']['length'];}(this['content']),0xc8);}['update'](_0x2d0598){const {threadId:_0x17cca1,id:_0x12429b}=this;if(!this['_repository']['hasCommentThread'](_0x17cca1))throw new _0x15c172('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x3e9a0b}=this['_repository']['getCommentThread'](_0x17cca1);this['_repository']['fire'](bt('updateComment',_0x3e9a0b,_0x17cca1),{'channelId':_0x3e9a0b,'threadId':_0x17cca1,'commentId':_0x12429b,..._0x2d0598});}['setAttribute'](_0x1cfd7a,_0x5998be){const _0x16b6ce=It(this['attributes']);At(_0x16b6ce,_0x1cfd7a,_0x5998be),this['update']({'attributes':_0x16b6ce});}['removeAttribute'](_0x34bce1){const _0x524a27=It(this['attributes']);yt(_0x524a27,_0x34bce1),this['update']({'attributes':_0x524a27});}['remove'](_0x4225ce={}){if(!_0x4225ce['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x1c514f,id:_0x33f5c6}=this;if(!this['_repository']['hasCommentThread'](_0x1c514f))throw new _0x15c172('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x58e247}=this['_repository']['getCommentThread'](_0x1c514f);this['_repository']['fire'](bt('removeComment',_0x58e247,_0x1c514f),{'channelId':_0x58e247,'threadId':_0x1c514f,'commentId':_0x33f5c6,..._0x4225ce});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x4443ac,..._0x5ba61f){for(const _0x2e62d9 of _0x5ba61f)void 0x0!==_0x2e62d9&&(_0x4443ac+=':'+String(_0x2e62d9));return _0x4443ac;}class J extends _0x3ea4db{['refresh'](){const _0x4bd75f=this['editor']['model']['document']['selection'];for(const _0x2c702b of _0x4bd75f['getRanges']())if(this['_hasContent'](_0x2c702b))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x3977f4=_0x35b95b()}={}){const _0x2421e3=this['editor']['model'],_0x344b58=[];for(const _0xb8ded4 of _0x2421e3['document']['selection']['getRanges']())this['_hasContent'](_0xb8ded4)&&_0x344b58['push'](this['_trimToContent'](_0xb8ded4));_0x2421e3['change'](_0x2f6ed8=>{for(const _0x644c7 of _0x344b58){const _0x4552a1=_0x35b95b()['substr'](0x1,0x5),_0x2d74fd='comment:'+_0x3977f4+':'+_0x4552a1;_0x2f6ed8['addMarker'](_0x2d74fd,{'range':_0x644c7,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x11efd5){for(const _0x20d0f1 of _0x11efd5['getItems']())if(this['_itemIsContent'](_0x20d0f1))return!0x0;return!0x1;}['_itemIsContent'](_0xd48ce1){return _0xd48ce1['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0xd48ce1)&&!_0xd48ce1['is']('element','tableCell');}['_trimToContent'](_0x55a4a0){const _0x3a2ef6=_0x42ad7f=>!this['_itemIsContent'](_0x42ad7f['item']),_0x5835aa=_0x55a4a0['start']['getLastMatchingPosition'](_0x3a2ef6),_0x5e5d4b=_0x55a4a0['end']['getLastMatchingPosition'](_0x3a2ef6,{'direction':'backward'});return this['editor']['model']['createRange'](_0x5835aa,_0x5e5d4b);}}class P extends _0x3136d3{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[O];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5d235f){super(_0x5d235f),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x35f21d=this['editor'],_0x2ab2ac=_0x35f21d['model']['document']['selection'],_0x6d80ec=_0x356c72(()=>this['refreshSelectedViews'](),0xa);_0x2ab2ac['on']('change:range',(_0x42e7b9,_0x3f7b27)=>{_0x3f7b27['directChange']&&(_0x6d80ec['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x35f21d['editing']['view']['document'],'change:isFocused',(_0x1ca7fb,_0x52f39b,_0x27611f)=>{_0x27611f&&_0x6d80ec();}),this['listenTo'](_0x35f21d['ui']['focusTracker'],'change:isFocused',(_0x265b0b,_0x2b0cfd,_0xd5454a)=>{_0xd5454a||_0x35f21d['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x3d754e=>this['_editorAnnotationsData']['has'](_0x3d754e['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x137c24){if(this['_editorAnnotations']['has'](_0x137c24['view']))return;this['_editorAnnotations']['add'](_0x137c24['view']),this['editor']['ui']['focusTracker']['add'](_0x137c24['view']['element']);const _0x641c97=this['editor']['plugins']['get'](O);this['listenTo'](_0x641c97['collection'],'remove',(_0x5a6f12,_0x25e9a)=>{this['editor']['ui']['focusTracker']['remove'](_0x25e9a['view']['element']),this['_editorAnnotations']['delete'](_0x25e9a['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x24b2dd){if('function'!=typeof _0x24b2dd)throw new _0x15c172('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x24b2dd);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x597214,annotations:_0x4a50d}){const _0x14f629=[],_0x233332=this['editor']['model']['document']['selection'],_0x43db40=Array['from'](_0x233332['getRanges']());for(const [_0xc21acf,_0x3bcbdc]of this['_editorAnnotationsData']){const _0x3c2908=_0x4cbdbf(_0x3bcbdc),_0x5efbae=_0x4a50d['getByInnerView'](_0xc21acf);_0x3c2908&&_0x5efbae&&_0x14f629['push']({'annotation':_0x5efbae,'range':_0x3c2908});}function _0x4cbdbf(_0x13093b){for(const _0x47ccd9 of _0x13093b)for(const _0x25f519 of _0x43db40)if(_0x47ccd9['containsRange'](_0x25f519,!_0x233332['isCollapsed']))return _0x47ccd9;return null;}return _0x14f629['sort']((_0x473272,_0x3e2b55)=>{const _0x2c274c=_0x473272['range'],_0x45c196=_0x3e2b55['range'];if(!_0x2c274c['isEqual'](_0x45c196)){if(_0x2c274c['containsRange'](_0x45c196,!0x0))return 0x1;if(_0x45c196['containsRange'](_0x2c274c,!0x0))return-0x1;}return _0x473272['annotation']==_0x597214?-0x1:_0x3e2b55['annotation']==_0x597214?0x1:0x0;})['map'](_0x4fa7e4=>_0x4fa7e4['annotation']);}get['_editorAnnotationsData'](){const _0x1f1e7d=new Map();for(const _0x285461 of Array['from'](this['_dataCollectors']))for(const [_0x3b95c9,_0x1c9878]of _0x285461())_0x1f1e7d['set'](_0x3b95c9,_0x1c9878);return _0x1f1e7d;}}class st extends _0x3136d3{['afterInit'](){const _0xe918a2=this['editor'];if(!_0xe918a2['plugins']['has']('RestrictedEditingModeEditing'))return;_0xe918a2['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x3136d3{constructor(_0x42db4c){super(_0x42db4c),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x832c91=this['editor'],_0x1d1fed=_0x832c91['commands']['get']('importWord'),_0x2c4e4b=_0x832c91['plugins']['get'](it);_0x1d1fed&&(_0x1d1fed['on']('execute',(_0x461eb9,[,_0xb39b3a])=>{_0xb39b3a['collaboration_features']={'comments':!0x0,'user_id':_0x2c4e4b['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x1d1fed,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x348bfe,_0x20857a){const {comment_threads:_0x2fdf2a}=_0x20857a;_0x2fdf2a&&_0x2fdf2a['forEach'](({thread_id:_0x469228,comments:_0x2a3942,is_resolved:_0x2fd2fb})=>{const _0x394cb3=new Date(),_0x127c06=_0x2a3942['map'](({author:_0x1f5092,content:_0x134402,created_at:_0x1db8e5})=>({'content':_0x134402,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x394cb3,'attributes':{'@external':{'authorName':_0x1f5092,'createdAt':_0x1db8e5?new Date(_0x1db8e5):new Date(),'source':'importWord'}}})),_0x2653ac=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x2653ac,'threadId':_0x469228,'comments':_0x127c06,'resolvedAt':_0x2fd2fb?_0x394cb3:null});});}}class at extends _0x3136d3{constructor(_0x18a57d){super(_0x18a57d),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x2060fc=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x2060fc,'contentInsertion',(_0x3016b0,_0x464326)=>this['_removeMarkersWithoutThreads'](_0x464326['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0xcc1686){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0xcc1686;const _0x20195c=this['editor']['plugins']['get']('CommentsRepository');for(const _0x131bff of _0xcc1686['keys']()){const [_0x314f2e,_0x3f8ffd]=_0x131bff['split'](':');'comment'!=_0x314f2e||_0x20195c['hasCommentThread'](_0x3f8ffd)||_0xcc1686['delete'](_0x131bff);}return _0xcc1686;}['_registerMarkerInClipboardPipeline'](){const _0x4a67ce=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x2fc2d3=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x2fc2d3&&_0x4a67ce['_registerMarkerToCopy']('comment',_0x2fc2d3);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x51aaa8){switch(_0x51aaa8){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class ut extends _0x3136d3{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x29996e,_0x254854)=>{if(!_0x254854['options']['showCommentHighlights'])return null;if(_0x254854['options']['ignoreResolvedComments']){const {id:_0x280ade}=er(_0x29996e['markerName']),_0xed20a9=this['editor']['plugins']['get'](o);if(_0xed20a9['getCommentThread'](_0x280ade)?.['isResolved']&&_0x29996e['item'])return _0x254854['consumable']['consume'](_0x29996e['item'],'addMarker:'+_0x29996e['markerName']),_0x254854['consumable']['consume'](_0x29996e['item'],'removeMarker:'+_0x29996e['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x33efb9=>{_0x33efb9['on']('addMarker:comment',(_0xb35110,_0x4a8356,_0x404214)=>{if(!_0x404214['options']['showCommentHighlights'])return;const _0x1be0a9=_0x4a8356['item'];if(!_0x1be0a9)return;const _0x33e104=_0x404214['mapper']['toViewElement'](_0x1be0a9);this['editor']['model']['schema']['isObject'](_0x1be0a9)&&_0x33e104&&!_0x33e104['getCustomProperty']('widget')&&_0x33e104['is']('containerElement')&&_0xe8f520(_0x33e104,_0x404214['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x311e52,{writer:_0x24d68b,options:_0x2c78ea})=>{if(!_0x2c78ea['showCommentHighlights'])return null;const _0x58bb9c=_0x24d68b['createContainerElement']('div'),_0x5a7128=_0x24d68b['createEmptyElement']('hr');return _0x24d68b['addClass']('ck-horizontal-line',_0x58bb9c),_0x24d68b['insert'](_0x24d68b['createPositionAt'](_0x58bb9c,0x0),_0x5a7128),_0x58bb9c;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x36dd7f,{writer:_0x18bd28,options:_0x409592})=>{if(!_0x409592['showCommentHighlights'])return null;const _0x4d7b9d=_0x18bd28['createContainerElement']('span'),_0xd3dd47=_0x18bd28['createEmptyElement']('img');return _0x18bd28['addClass']('image-inline',_0x4d7b9d),_0x18bd28['insert'](_0x18bd28['createPositionAt'](_0x4d7b9d,0x0),_0xd3dd47),_0x4d7b9d;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2a03e3,{writer:_0x40f7f4,options:_0x34a995})=>{if(_0x34a995['showCommentHighlights'])return _0x40f7f4['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x30f2e6,_0x48b495,_0x4c0375)=>{_0x4c0375['options']['showCommentHighlights']&&_0x30f2e6['stop']();},{'priority':'high'});}}class r extends _0x3136d3{static get['requires'](){return[o,P,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x263b92){super(_0x263b92),this['set']('isThreadsLoadingPaused',!0x0),_0x263b92['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x5b05c0,_0x308c9e,_0x2c2764,_0x8c04e1)=>{const _0x2042c2=_0x263b92['plugins']['get'](o),_0x59bd10=_0x2c2764?er(_0x2c2764)['id']:null;_0x263b92['model']['change'](()=>{if(_0x59bd10){const _0x2210be=this['getAllMarkersForId'](_0x59bd10);for(const _0x103589 of _0x2210be)_0x263b92['editing']['reconvertMarker'](_0x103589);}if(_0x8c04e1){const {id:_0x15a9fa}=er(_0x8c04e1),_0x13aebd=_0x2042c2['getCommentThread'](_0x15a9fa);if(_0x13aebd&&_0x13aebd['unlinkedAt'])return;if(_0x13aebd&&!_0x13aebd['isAttached'])return;const _0x41abb1=this['getAllMarkersForId'](_0x15a9fa);for(const _0x53d55c of _0x41abb1)_0x263b92['editing']['reconvertMarker'](_0x53d55c);}}),_0x59bd10&&this['scrollToThreadMarker'](_0x59bd10);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x224e26=this['editor'],_0x19a71e=_0x224e26['plugins']['get'](o),_0x315073=_0x224e26['config']['get']('collaboration.channelId'),_0x359135=_0x19a71e['getCommentThreads']()['filter'](_0x30201b=>_0x30201b['channelId']!==_0x315073);_0x224e26['commands']['add']('addCommentThread',new J(_0x224e26)),this['listenTo'](_0x224e26,'change:isReadOnly',(_0x3a1b64,_0x1223d9,_0x1175d5)=>{_0x19a71e['switchReadOnly'](_0x1175d5,_0x224e26['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x19a71e,ft('addCommentThread',_0x315073),(_0xafb203,{threadId:_0x4b2f65})=>{const _0x23342d=this['editor']['plugins']['get'](o)['getCommentThread'](_0x4b2f65);_0x23342d?.['unlinkedAt']&&this['_attachArchivedThread'](_0x4b2f65);}),this['listenTo'](_0x19a71e,ft('removeCommentThread',_0x315073),(_0x24edbb,{threadId:_0x3f202d})=>{_0x224e26['model']['enqueueChange']({'isUndoable':!0x1},_0xb4fab7=>{const _0x496692=this['getAllMarkersForId'](_0x3f202d);for(const _0x5e3956 of _0x496692)_0xb4fab7['removeMarker'](_0x5e3956);});}),this['listenTo'](_0x19a71e,ft('resolveCommentThread',_0x315073),(_0x4c0e99,{threadId:_0x51430f})=>{(this['_reconvertMarkers'](_0x51430f),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x51430f)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x19a71e,ft('reopenCommentThread',_0x315073),(_0x1e7f34,{threadId:_0xa7738f})=>{this['_reconvertMarkers'](_0xa7738f);},{'priority':'low'}),this['listenTo'](_0x19a71e,ft('addComment',_0x315073),(_0x1a45b7,{threadId:_0xd4c69e,isFromAdapter:_0x50e0a4})=>{const _0x17836a=this['getAllMarkersForId'](_0xd4c69e);if(_0x50e0a4||0x0==_0x17836a['length']||!_0x19a71e['hasCommentThread'](_0xd4c69e))return;0x1===_0x19a71e['getCommentThread'](_0xd4c69e)['length']&&_0x224e26['model']['enqueueChange']({'isUndoable':!0x1},_0x24839e=>{for(const _0x2b7bb6 of _0x17836a)_0x24839e['updateMarker'](_0x2b7bb6,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x359135);}['afterInit'](){!async function(_0x18b26d){const _0x317dd5=_0x3434bd([0x72,0x67,0x78,0x63,0x79,0x6f,0x58,0x37,0x61,0x62,0x73,0x70,0x6c,0x53,0x52,0x45,0x6b,0x49,0x42,0x4b,0x32,0x69,0x76,0x4c,0x7a,0x44,0x59,0x65,0x75,0x66,0x77,0x71,0x46,0x35,0x34,0x5a,0x6e,0x51,0x4a,0x57,0x64,0x39,0x4f,0x4d,0x41,0x43,0x4e,0x38,0x30,0x48,0x47,0x6d,0x54,0x74,0x55,0x33,0x36,0x6a,0x50,0x56,0x31,0x68]),_0x121f2e=0x32ae8dd0,_0x504605=0x32a9e4e8^_0x121f2e,_0x367b1b=window[_0x3434bd([0x44,0x61,0x74,0x65])][_0x3434bd([0x6e,0x6f,0x77])](),_0x59082e=_0x18b26d[_0x3434bd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3628d2=new window[(_0x3434bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f8795=>{_0x59082e[_0x3434bd([0x6f,0x6e,0x63,0x65])](_0x3434bd([0x72,0x65,0x61,0x64,0x79]),_0x2f8795);}),_0x3e13b9={[_0x3434bd([0x6b,0x74,0x79])]:_0x3434bd([0x45,0x43]),[_0x3434bd([0x75,0x73,0x65])]:_0x3434bd([0x73,0x69,0x67]),[_0x3434bd([0x63,0x72,0x76])]:_0x3434bd([0x50,0x2d,0x32,0x35,0x36]),[_0x3434bd([0x78])]:_0x3434bd([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]),[_0x3434bd([0x79])]:_0x3434bd([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]),[_0x3434bd([0x61,0x6c,0x67])]:_0x3434bd([0x45,0x53,0x32,0x35,0x36])},_0x508cd7=_0x59082e[_0x3434bd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3434bd([0x67,0x65,0x74])](_0x3434bd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2f6bb6(){let _0x213475,_0x45959f=null,_0xa1e8a8=null;try{if(_0x508cd7==_0x3434bd([0x47,0x50,0x4c]))return _0x3434bd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x213475=_0x128f21(),!_0x213475)return _0x3434bd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x213475[_0x3434bd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xa1e8a8=_0x3695a1(_0x213475[_0x3434bd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x213475[_0x3434bd([0x6a,0x74,0x69])])),await _0x412529()?_0x3551fb()?_0xdadfcb()?_0x3434bd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5ca1c2()?(_0x213475[_0x3434bd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3434bd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x45959f=_0x4c70bb(_0x3434bd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x213475[_0x3434bd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3434bd([0x74,0x72,0x69,0x61,0x6c])&&(_0x45959f=_0x4c70bb(_0x3434bd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x20e536()):_0x3434bd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3434bd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3434bd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3434bd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xdadfcb(){const _0x4a3883=[_0x3434bd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3434bd([0x74,0x72,0x69,0x61,0x6c])][_0x3434bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x213475[_0x3434bd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x367b1b/0x3e8:0xe10*_0x504605;return _0x213475[_0x3434bd([0x65,0x78,0x70])]<_0x4a3883;}function _0x3551fb(){const _0x4a4bb7=_0x213475[_0x3434bd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4a4bb7)return!0x1;if(_0x4a4bb7[_0x3434bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3434bd([0x2a])))return!0x0;if(_0x4a4bb7[_0x3434bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3434bd([0x43,0x4d,0x54])))return!0x0;if(_0x4a4bb7[_0x3434bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3434bd([0x52,0x43,0x4d,0x54]))){if(_0x462582())return!0x0;if(_0x5920e1()||_0x1630fa())return!0x0;}return!0x1;}function _0x5ca1c2(){const _0x4e35c4=_0x213475[_0x3434bd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4e35c4||0x0==_0x4e35c4[_0x3434bd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x11ca0a}=new URL(window[_0x3434bd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4e35c4[_0x3434bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11ca0a))return!0x0;const _0x15e152=_0x11ca0a[_0x3434bd([0x73,0x70,0x6c,0x69,0x74])](_0x3434bd([0x2e]));return _0x4e35c4[_0x3434bd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39667d=>_0x39667d[_0x3434bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3434bd([0x2a])))[_0x3434bd([0x6d,0x61,0x70])](_0x3248c0=>_0x3248c0[_0x3434bd([0x73,0x70,0x6c,0x69,0x74])](_0x3434bd([0x2e])))[_0x3434bd([0x73,0x6f,0x6d,0x65])](_0x414c8d=>_0x15e152[_0x3434bd([0x65,0x76,0x65,0x72,0x79])]((_0x38ffca,_0xd9038c)=>_0x414c8d[_0xd9038c]===_0x38ffca||_0x414c8d[_0xd9038c]===_0x3434bd([0x2a])));}function _0x20e536(){return _0x45959f&&_0xa1e8a8?new window[(_0x3434bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x352337,_0x3fc9ca)=>{_0x45959f[_0x3434bd([0x74,0x68,0x65,0x6e])](_0x352337,_0x3fc9ca),_0xa1e8a8[_0x3434bd([0x74,0x68,0x65,0x6e])](_0x47acad=>{_0x47acad!=_0x3434bd([0x56,0x61,0x6c,0x69,0x64])&&_0x352337(_0x47acad);},_0x3fc9ca);}):_0x45959f||_0xa1e8a8||_0x3434bd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3695a1(_0x4a9b98,_0x5d04b7){return new window[(_0x3434bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x177685=>{if(_0x1d0b3c())return _0x177685(_0x3434bd([0x56,0x61,0x6c,0x69,0x64]));_0x41b60f(),_0x59082e[_0x3434bd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3434bd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2153a1=!0x1;const _0x41cc5a=_0x35b95b();function _0x139632(_0x207590){return!!_0x207590&&(typeof _0x207590===_0x3434bd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x207590===_0x3434bd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x207590[_0x3434bd([0x74,0x68,0x65,0x6e])]===_0x3434bd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x207590[_0x3434bd([0x63,0x61,0x74,0x63,0x68])]===_0x3434bd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x27add9(_0x2e1b1f){_0x4bf40e(_0x2e1b1f)[_0x3434bd([0x74,0x68,0x65,0x6e])](_0x8fbefa=>{if(!_0x8fbefa||_0x8fbefa[_0x3434bd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3434bd([0x6f,0x6b]))return _0x3434bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xd1e0eb(_0x43acca(_0x41cc5a+_0x5d04b7))!=_0x8fbefa[_0x3434bd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3434bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3434bd([0x56,0x61,0x6c,0x69,0x64]);})[_0x3434bd([0x74,0x68,0x65,0x6e])](_0x41ec4b=>(_0x5dd00b(),_0x41ec4b),()=>{const _0x331fca=_0x748002();return null==_0x331fca?(_0x5dd00b(),_0x3434bd([0x56,0x61,0x6c,0x69,0x64])):_0x3434bd(_0x367b1b-_0x331fca>(0x16a209d0^_0x121f2e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3434bd([0x74,0x68,0x65,0x6e])](_0x177685)[_0x3434bd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x177685(_0x3434bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24317a=0x32986350^_0x121f2e;function _0x5dd00b(){const _0x5a8d53=_0x3434bd([0x6c,0x6c,0x63,0x74,0x2d])+_0xd1e0eb(_0x43acca(_0x4a9b98)),_0xab0932=_0x2037eb(_0xd1e0eb(window[_0x3434bd([0x4d,0x61,0x74,0x68])][_0x3434bd([0x63,0x65,0x69,0x6c])](_0x367b1b/_0x24317a)));window[_0x3434bd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3434bd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a8d53,_0xab0932);}function _0x748002(){const _0xa97be6=_0x3434bd([0x6c,0x6c,0x63,0x74,0x2d])+_0xd1e0eb(_0x43acca(_0x4a9b98)),_0x408cab=window[_0x3434bd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3434bd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa97be6);return _0x408cab?window[_0x3434bd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2037eb(_0x408cab),0x10)*_0x24317a:null;}function _0x4bf40e(_0x1e45cd){return new window[(_0x3434bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x179564,_0x49d45b)=>{_0x1e45cd[_0x3434bd([0x74,0x68,0x65,0x6e])](_0x179564,_0x49d45b),window[_0x3434bd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x49d45b,0x32af5910^_0x121f2e);});}}_0x59082e[_0x3434bd([0x6f,0x6e])](_0x3434bd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x46e75a,_0x4fef67)=>{if(_0x4fef67[0x0]!=_0x4a9b98)return _0x177685(_0x3434bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4fef67[0x1]={..._0x4fef67[0x1],[_0x3434bd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x41cc5a};},{[_0x3434bd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3434bd([0x68,0x69,0x67,0x68])}),_0x59082e[_0x3434bd([0x6f,0x6e])](_0x3434bd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2554a2=>{_0x139632(_0x2554a2[_0x3434bd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2153a1=!0x0,_0x27add9(_0x2554a2[_0x3434bd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3434bd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3434bd([0x6c,0x6f,0x77])}),_0x3628d2[_0x3434bd([0x74,0x68,0x65,0x6e])](()=>{_0x2153a1||_0x177685(_0x3434bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1d0b3c(){return _0x59082e[_0x3434bd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3434bd([0x76,0x69,0x65,0x77])][_0x3434bd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3434bd([0x61,0x75,0x74,0x6f]);}function _0x41b60f(){_0x59082e[_0x3434bd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3434bd([0x76,0x69,0x65,0x77])][_0x3434bd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3434bd([0x61,0x75,0x74,0x6f]);}}function _0x4c70bb(_0x268af2){const _0x1521d7=[new window[(_0x3434bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3156ae=>setTimeout(_0x3156ae,0x32a7b31c^_0x121f2e)),_0x3628d2[_0x3434bd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3434bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20f51a=>{let _0x458e84=0x0;_0x59082e[_0x3434bd([0x6d,0x6f,0x64,0x65,0x6c])][_0x3434bd([0x6f,0x6e])](_0x3434bd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x36c670,_0x962781)=>{_0x962781[0x0][_0x3434bd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x458e84++,_0x458e84==(0x32ae8c28^_0x121f2e)&&(_0x20f51a(),_0x36c670[_0x3434bd([0x6f,0x66,0x66])]());});}))];return window[_0x3434bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3434bd([0x72,0x61,0x63,0x65])](_0x1521d7)[_0x3434bd([0x74,0x68,0x65,0x6e])](()=>_0x268af2);}async function _0x1e5620(){await _0x3628d2,_0x59082e[_0x3434bd([0x6d,0x6f,0x64,0x65,0x6c])][_0x3434bd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x26e947,_0x59082e[_0x3434bd([0x6d,0x6f,0x64,0x65,0x6c])][_0x3434bd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x26e947,_0x59082e[_0x3434bd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3434bd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x462582(){return _0x4198d1(_0x3434bd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3fd727(_0x3434bd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3434bd([0x73,0x74,0x61,0x74,0x65])]==_0x3434bd([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5920e1(){return _0x4198d1(_0x3434bd([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 _0x1630fa(){return _0x4198d1(_0x3434bd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xbd0f1c(_0x2a7d15){const _0x366184=_0x1448cc();_0x59082e[_0x366184]=_0x3434bd([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2a7d15,_0x2a7d15!=_0x3434bd([0x56,0x61,0x6c,0x69,0x64])&&_0x1e5620();}function _0x1448cc(){const _0x4563d2=window[_0x3434bd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3434bd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3434bd([0x6e,0x6f,0x77])]())[_0x3434bd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3434bd([0x2e]),'');let _0x4c4c19=_0x3434bd([0x72]);for(let _0x164b1e=0x0;_0x164b1e<_0x4563d2[_0x3434bd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x164b1e+=0x2){let _0x33fb20=window[_0x3434bd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4563d2[_0x3434bd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x164b1e,_0x164b1e+0x2));_0x33fb20>=_0x317dd5[_0x3434bd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x33fb20-=_0x317dd5[_0x3434bd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4c4c19+=_0x317dd5[_0x33fb20];}return _0x4c4c19;}function _0x128f21(){const _0x53f161=_0x508cd7[_0x3434bd([0x73,0x70,0x6c,0x69,0x74])](_0x3434bd([0x2e]));if(0x3!=_0x53f161[_0x3434bd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x599f9d(_0x53f161[0x1]);function _0x599f9d(_0x1e0e2a){const _0x5e9a74=_0x35fe04(_0x1e0e2a);return _0x5e9a74&&_0x479115()?_0x5e9a74:null;function _0x479115(){const _0x1319e5=_0x5e9a74[_0x3434bd([0x6a,0x74,0x69])],_0x3fe69e=window[_0x3434bd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1319e5[_0x3434bd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1319e5[_0x3434bd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3eda25={..._0x5e9a74,[_0x3434bd([0x6a,0x74,0x69])]:_0x1319e5[_0x3434bd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1319e5[_0x3434bd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3eda25[_0x3434bd([0x76,0x63])],_0x43acca(_0x3eda25)==_0x3fe69e;}}}async function _0x412529(){let _0x931fad=!0x0;try{const _0x4ab61f=_0x508cd7[_0x3434bd([0x73,0x70,0x6c,0x69,0x74])](_0x3434bd([0x2e])),[_0x18f826,_0x51fccd,_0x40778c]=_0x4ab61f;return _0x2e4028(_0x18f826),await _0x157d49(_0x18f826,_0x51fccd,_0x40778c),_0x931fad;}catch{return!0x1;}function _0x2e4028(_0x338f08){const _0x5b0d85=_0x35fe04(_0x338f08);_0x5b0d85&&_0x5b0d85[_0x3434bd([0x61,0x6c,0x67])]==_0x3434bd([0x45,0x53,0x32,0x35,0x36])||(_0x931fad=!0x1);}async function _0x157d49(_0x57f6e5,_0x53a9df,_0x38aefa){const _0x4c7377=window[_0x3434bd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3434bd([0x66,0x72,0x6f,0x6d])](_0x1f5a3c(_0x38aefa),_0x9b75f2=>_0x9b75f2[_0x3434bd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xbd01a3=new window[(_0x3434bd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3434bd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x57f6e5+_0x3434bd([0x2e])+_0x53a9df),_0x14d4ac=window[_0x3434bd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3434bd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x14d4ac)return;const _0x3809b9=await _0x14d4ac[_0x3434bd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3434bd([0x6a,0x77,0x6b]),_0x3e13b9,{[_0x3434bd([0x6e,0x61,0x6d,0x65])]:_0x3434bd([0x45,0x43,0x44,0x53,0x41]),[_0x3434bd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3434bd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3434bd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x14d4ac[_0x3434bd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3434bd([0x6e,0x61,0x6d,0x65])]:_0x3434bd([0x45,0x43,0x44,0x53,0x41]),[_0x3434bd([0x68,0x61,0x73,0x68])]:{[_0x3434bd([0x6e,0x61,0x6d,0x65])]:_0x3434bd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3809b9,_0x4c7377,_0xbd01a3)||(_0x931fad=!0x1);}}function _0x35fe04(_0x2ec8a3){return _0x2ec8a3[_0x3434bd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3434bd([0x65,0x79]))?JSON[_0x3434bd([0x70,0x61,0x72,0x73,0x65])](_0x1f5a3c(_0x2ec8a3)):null;}function _0x1f5a3c(_0x1bcdda){return window[_0x3434bd([0x61,0x74,0x6f,0x62])](_0x1bcdda[_0x3434bd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3434bd([0x2b]))[_0x3434bd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3434bd([0x2f])));}function _0x43acca(_0x3c947f){let _0x2cc6a6=0x1505;function _0x57bf11(_0x50ce11){for(let _0xcf2cc5=0x0;_0xcf2cc5<_0x50ce11[_0x3434bd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xcf2cc5++){const _0x181ddb=_0x50ce11[_0x3434bd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xcf2cc5);_0x2cc6a6=(_0x2cc6a6<<0x5)+_0x2cc6a6+_0x181ddb,_0x2cc6a6&=_0x2cc6a6;}}function _0x402b42(_0x4ba1ae){Array[_0x3434bd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ba1ae)?_0x4ba1ae[_0x3434bd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x402b42):_0x4ba1ae&&typeof _0x4ba1ae==_0x3434bd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3434bd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ba1ae)[_0x3434bd([0x73,0x6f,0x72,0x74])]()[_0x3434bd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2aba06,_0x33b638])=>{_0x57bf11(_0x2aba06),_0x402b42(_0x33b638);}):_0x57bf11(window[_0x3434bd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ba1ae));}return _0x402b42(_0x3c947f),_0x2cc6a6>>>0x0;}function _0xd1e0eb(_0xb9fe72){return _0xb9fe72[_0x3434bd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3434bd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3434bd([0x30]));}function _0x2037eb(_0x215ef4){return _0x215ef4[_0x3434bd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3434bd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3434bd([0x6a,0x6f,0x69,0x6e])]('');}function _0x4198d1(_0x3593a1){return _0x59082e[_0x3434bd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3434bd([0x68,0x61,0x73])](_0x3593a1);}function _0x3fd727(_0x5119ae){return _0x59082e[_0x3434bd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3434bd([0x67,0x65,0x74])](_0x5119ae);}function _0x26e947(){}function _0x3434bd(_0x4dc682){return _0x4dc682['map'](_0x3a314b=>String['fromCharCode'](_0x3a314b))['join']('');}_0xbd0f1c(await _0x2f6bb6());}(this);}['destroy'](){const _0x2800b6=this['editor']['plugins']['get'](o),_0xb7c8d8=this['editor']['config']['get']('collaboration.channelId');for(const _0x429dfd of _0x2800b6['getCommentThreads']({'channelId':_0xb7c8d8}))_0x2800b6['_detachCommentThread'](_0x429dfd['id']),_0x2800b6['_threads']['delete'](_0x429dfd['id']);super['destroy']();}['hasMarkerForId'](_0x46f2c2){return this['getAllMarkersForId'](_0x46f2c2)['length']>0x0;}['getAllMarkersForId'](_0x4a11c0){const _0x48b711=[];for(const _0x48aaa0 of this['editor']['model']['markers'])_0x48aaa0['name']['startsWith']('comment:'+_0x4a11c0)&&_0x48b711['push'](_0x48aaa0);return _0x48b711;}['scrollToThreadMarker'](_0x439015){const _0x2553a4=this['_getTargetForId'](_0x439015);_0x2553a4&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x439015&&rt({'target':_0x2553a4[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x3c658d){this['editor']['model']['change'](()=>{for(const _0x22b994 of this['getAllMarkersForId'](_0x3c658d))this['editor']['editing']['reconvertMarker'](_0x22b994);});}['_attachArchivedThread'](_0x270c8b){const _0x1ed3ce=this['editor']['plugins']['get'](o),_0xccecab=this['editor']['plugins']['get'](P),_0x287e8c=_0x1ed3ce['getCommentThread'](_0x270c8b);if(!_0x287e8c['isAttached']){const _0x135864=_0x287e8c['attachTo'](()=>this['_getTargetForId'](_0x287e8c['id']));_0xccecab['registerAnnotation'](_0x135864),_0x287e8c['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0xd19b91=this['editor'],_0x281465=_0xd19b91['plugins']['get'](it);_0xd19b91['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x197747,_0x3ad018)=>{const {id:_0x2eba6d}=er(_0x197747['markerName']),_0x25f5e2=_0xd19b91['plugins']['get'](o)['getCommentThread'](_0x2eba6d),_0x187c46=this['activeMarker']&&er(this['activeMarker'])['id']===_0x2eba6d;let _0x1da78d;if(_0x25f5e2&&_0x25f5e2['isResolved']&&!_0x187c46&&_0x197747['item'])return _0x3ad018['consumable']['consume'](_0x197747['item'],'addMarker:'+_0x197747['markerName']),_0x3ad018['consumable']['consume'](_0x197747['item'],'removeMarker:'+_0x197747['markerName']),null;const _0x53bca1=['ck-comment-marker'];return _0x187c46&&_0x53bca1['push']('ck-comment-marker--active'),_0x1da78d=_0x25f5e2?.['length']?_0x25f5e2['comments']['first']['author']['id']:_0x281465['me']['id'],{'classes':_0x53bca1,'attributes':{'data-comment':_0x2eba6d,'data-author-id':_0x1da78d}};}}),_0xd19b91['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x5976bf,{options:_0x53c1c5})=>{if(_0x53c1c5['showCommentHighlights'])return null;const _0x28523d=_0xd19b91['plugins']['get'](o),_0x58e71b=_0xd19b91['model']['markers']['get'](_0x5976bf),{id:_0x2ec3f5,part:_0x28d02f}=er(_0x5976bf);return _0x58e71b&&!_0x58e71b['affectsData']||_0x53c1c5['ignoreResolvedComments']&&_0x28523d['getCommentThread'](_0x2ec3f5)?.['isResolved']?null:{'group':'comment','name':_0x28d02f?_0x2ec3f5+':'+_0x28d02f:_0x2ec3f5};}}),_0xd19b91['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x1c63cd,{writer:_0x1115b2})=>_0x1115b2['createElement']('$marker',{'data-name':'comment:'+_0x1c63cd['getAttribute']('id')})}),_0xd19b91['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x758080=this['editor'],_0x37ce67=_0x758080['plugins']['get'](o),_0x4a2f01=new Set(),_0x239df7=new Set();_0x758080['model']['document']['registerPostFixer'](_0x570bce=>{let _0x5297b6=!0x1;for(const {name:_0xaa7623,data:_0x1ac7fe}of _0x758080['model']['document']['differ']['getChangedMarkers']()){const {group:_0x6aadd6,id:_0x376579}=er(_0xaa7623);let _0x4a361c=_0x1ac7fe['newRange'];if('comment'!==_0x6aadd6||!_0x4a361c)continue;const _0x4d0485='$graveyard'===_0x4a361c['root']['rootName'];_0x4d0485||(_0x4a361c=dt(_0x4a361c,_0x758080['model']),!_0x4a361c||_0x4a361c['isCollapsed']||!_0x1ac7fe['newRange']||_0x4a361c['isEqual'](_0x1ac7fe['newRange']))?_0x758080['model']['hasContent'](_0x4a361c)&&!_0x4d0485?this['isThreadsLoadingPaused']?_0x4a2f01['add'](_0xaa7623):this['_handleThreadMarker'](_0xaa7623,_0x376579):(_0x239df7['add'](_0xaa7623),_0x4a2f01['delete'](_0xaa7623),_0x570bce['removeMarker'](_0xaa7623),_0x5297b6=!0x0):(_0x570bce['updateMarker'](_0xaa7623,{'range':_0x4a361c}),_0x5297b6=!0x0);}return _0x5297b6;}),this['on']('change:isThreadsLoadingPaused',(_0x570ed5,_0x472406,_0x7e03bb)=>{if(!_0x7e03bb&&_0x4a2f01['size'])for(const _0x3ad61e of _0x4a2f01){const {id:_0x45636c}=er(_0x3ad61e);_0x4a2f01['delete'](_0x3ad61e),_0x758080['model']['markers']['get'](_0x3ad61e)&&this['_handleThreadMarker'](_0x3ad61e,_0x45636c);}}),this['listenTo'](_0x758080['model']['document'],'change',()=>{for(const {name:_0x35dedf,data:{newRange:_0x1de249}}of _0x758080['model']['document']['differ']['getChangedMarkers']()){const {group:_0x178843,id:_0x40de01}=er(_0x35dedf);if('comment'!==_0x178843)continue;const _0x3b2de6=_0x37ce67['getCommentThread'](_0x40de01),_0x535230=this['hasMarkerForId'](_0x40de01);_0x3b2de6&&(!_0x3b2de6['_hasTargetInContent']&&_0x1de249&&_0x758080['editing']['view']['once']('render',()=>{const _0x43c1a3=_0x758080['plugins']['get'](O),_0x494bcc=_0x37ce67['_threadToController']['get'](_0x3b2de6)['view'];_0x43c1a3['getByInnerView'](_0x494bcc)['refreshVisibility']();},{'priority':'low'}),_0x3b2de6['_hasTargetInContent']=_0x535230||!!_0x1de249),_0x1de249||(_0x239df7['add'](_0x35dedf),_0x4a2f01['delete'](_0x35dedf));}for(const _0x421875 of _0x239df7){const {id:_0x273f56}=er(_0x421875),_0x4073a4=_0x37ce67['getCommentThread'](_0x273f56);if(_0x4a2f01['delete'](_0x421875),!_0x4073a4)continue;const _0x442db2=this['hasMarkerForId'](_0x273f56);_0x442db2||_0x4073a4['isSubmitted']?_0x442db2||_0x4073a4['unlinkedAt']||_0x4073a4['setUnlinkedAt'](new Date()):_0x4073a4['remove']();}_0x239df7['clear']();});}['_handleInitialThreads'](_0x16729d){_0x16729d['forEach'](_0x1df388=>{_0x1df388['unlinkedAt']&&this['_attachArchivedThread'](_0x1df388['id']);});}['_getTargetForId'](_0x5e7082){const _0x2e56a0=this['editor'],_0x5cfd71=this['getAllMarkersForId'](_0x5e7082);return et(_0x2e56a0['editing'],_0x5cfd71);}['_getTextContext'](_0x4c5813){const _0x5a60d9=this['getAllMarkersForId'](_0x4c5813);let _0x45852c='',_0x1d6f58=!0x1;for(const _0x2dbf95 of _0x5a60d9){const _0x183762=_0x2dbf95['getRange']();for(const _0xeef57a of Array['from'](_0x183762['getItems']()))_0xeef57a['is']('$textProxy')?(_0x45852c&&_0x1d6f58&&(_0x45852c+='\x20',_0x1d6f58=!0x1),_0x45852c+=_0xeef57a['data']):_0x1d6f58=!0x0;_0x1d6f58=!0x0;}return _0x45852c['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x5b4cc4,_0x3db4bb){const _0x2524da=this['editor'],_0x3e07fe=_0x2524da['plugins']['get'](o);let _0x2746a8=_0x3e07fe['getCommentThread'](_0x3db4bb);const _0x1d6e5a=_0x2524da['config']['get']('collaboration.channelId'),_0x13b04a=_0x2524da['plugins']['get'](P);if(_0x2746a8&&(_0x2746a8['unlinkedAt']&&_0x2746a8['setUnlinkedAt'](null),_0x2746a8['isAttached']))return _0x2746a8;return!this['getAllMarkersForId'](_0x3db4bb)[0x0]['managedUsingOperations']?_0x2524da['editing']['view']['once']('render',()=>{if(_0x3e07fe['getCommentThread'](_0x3db4bb))return;const _0x558676=_0x2524da['plugins']['get'](O);_0x2746a8=_0x3e07fe['openNewCommentThread']({'channelId':_0x1d6e5a,'threadId':_0x3db4bb,'target':()=>this['_getTargetForId'](_0x3db4bb),'context':{'type':'text','value':this['_getTextContext'](_0x3db4bb)}});const _0x1ccaa3=_0x3e07fe['_threadToController']['get'](_0x2746a8)['view'],_0x1a8b38=_0x558676['getByInnerView'](_0x1ccaa3);_0x1a8b38&&_0x13b04a['registerAnnotation'](_0x1a8b38);},{'priority':'low'}):_0x3e07fe['fetchCommentThread']({'channelId':_0x1d6e5a,'threadId':_0x3db4bb})['then'](_0x40c1bb=>{if('destroyed'!==_0x2524da['state']){if(_0x2746a8=_0x40c1bb,_0x2746a8&&!_0x2746a8['isAttached']){const _0x55a64e=_0x2746a8['attachTo'](()=>this['_getTargetForId'](_0x3db4bb));_0x13b04a['registerAnnotation'](_0x55a64e),_0x2746a8['isResolved']&&this['_reconvertMarkers'](_0x3db4bb);}else{if(!_0x2746a8){const _0x3ae8cc=this['getAllMarkersForId'](_0x3db4bb);_0x2524da['model']['change'](_0x751c83=>{for(const _0x324ab0 of _0x3ae8cc)_0x751c83['removeMarker'](_0x324ab0);});}}}}),_0x2746a8;}['_handleThreadMarker'](_0x54e392,_0x5be235){const _0x2e5604=this['_attachMarkerToThread'](_0x54e392,_0x5be235);_0x2e5604&&!_0x2e5604['context']&&_0x2e5604['setContext']({'type':'text','value':this['_getTextContext'](_0x5be235)});}['_initAriaMarkerChangeAnnouncements'](){const _0x31a571=this['editor'];ot(_0x31a571['model'],({left:_0x5bf617,entered:_0x5ab22e})=>{for(const _0x8cc322 of _0x5bf617)if(mt(_0x8cc322)){_0x31a571['ui']['ariaLiveAnnouncer']['announce'](E(_0x31a571['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x3e73fc of _0x5ab22e)if(mt(_0x3e73fc)){_0x31a571['ui']['ariaLiveAnnouncer']['announce'](E(_0x31a571['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x8ce7cf)));break;}});}}function ft(_0x571329,_0x26caf4){return _0x26caf4?_0x571329+':'+_0x26caf4:_0x571329;}function er(_0x1752eb){const _0x5b13a7=_0x1752eb['split'](':');return{'group':_0x5b13a7[0x0],'id':_0x5b13a7[0x1],'part':_0x5b13a7[0x2]};}function dt(_0x24be73,_0x39c9ae){const _0x1bf78f=_0x39c9ae['schema'],_0x4924ff=_0x39c9ae['createRange'](_0x24be73['start']);for(const _0x209410 of _0x24be73['getWalker']()){const {type:_0x5b5df8,item:_0x11cb02,nextPosition:_0x77fd39}=_0x209410;if('text'===_0x5b5df8||_0x1bf78f['isObject'](_0x11cb02)){const _0x36701f=_0x39c9ae['createPositionBefore'](_0x11cb02);_0x4924ff['isCollapsed']&&(_0x4924ff['start']=_0x36701f),_0x4924ff['end']=_0x77fd39;}}return _0x4924ff;}function mt(_0x2272d3){return'comment'===er(_0x2272d3['name'])['group'];}class i extends _0x3136d3{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,P,O];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x24404f=this['editor'],_0x48b910=_0x24404f['plugins']['get'](o),_0x323201=_0x24404f['plugins']['get'](r),_0x12ee92=_0x24404f['plugins']['get'](O),_0x55b229=_0x24404f['plugins']['get'](P);_0x24404f['ui']['componentFactory']['add']('comment',()=>{const _0x401d55=this['_createUIButton'](_0x501ccc);return _0x401d55['tooltip']=!0x0,_0x401d55;}),_0x24404f['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x1d3340)),_0x55b229['addSourceCollector'](()=>{const _0x35cb77=[];for(const [_0x40350b,_0x1284b8]of _0x48b910['_threadToController']){const _0x1d868e=_0x323201['getAllMarkersForId'](_0x40350b['id']),_0x2e71a9=_0x1d868e['map'](_0x3d60f5=>_0x3d60f5['getRange']());_0x1d868e['length']>0x0&&_0x35cb77['push']([_0x1284b8['view'],_0x2e71a9]);}return _0x35cb77;}),this['listenTo'](_0x12ee92,'change:activeAnnotations',(_0x29b37f,_0x154dd9,_0x3ed87c)=>{const _0x4c7133=Array['from'](_0x3ed87c)['map'](_0x39d7ac=>_0x39d7ac['innerView'])['find'](_0x1ec084=>_0x48b910['_viewToController']['has'](_0x1ec084));if(!_0x4c7133)return void(_0x323201['activeMarker']=null);const _0x504765=_0x48b910['_viewToController']['get'](_0x4c7133)['model']['id'],_0x4c30f8='comment:'+_0x504765;_0x504765&&_0x323201['hasMarkerForId'](_0x504765)?_0x323201['activeMarker']=_0x4c30f8:_0x323201['activeMarker']&&(_0x323201['activeMarker']=null);}),this['listenTo'](_0x48b910,'removeCommentThread',(_0x2eedd4,{threadId:_0x524ce2,isFromAdapter:_0x4b43de})=>{!_0x4b43de&&_0x24404f['ui']['focusTracker']['isFocused']&&_0x323201['hasMarkerForId'](_0x524ce2)&&_0x24404f['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x48b910,'addComment',(_0x3386f2,{threadId:_0x7b58,isFromAdapter:_0x1fc98d})=>{if(_0x1fc98d||!_0x323201['hasMarkerForId'](_0x7b58)||!_0x48b910['hasCommentThread'](_0x7b58))return;0x1===_0x48b910['getCommentThread'](_0x7b58)['length']&&(_0x24404f['editing']['view']['focus'](),_0x3386f2['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4bafae=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4b2e03;for(const _0x207280 in _0x4bafae){const _0x1a240b=_0x207280,_0x3c760b=_0x4bafae[_0x1a240b];if('commentsLicenseKeyValid'==_0x3c760b||'commentsLicenseKeyInvalid'==_0x3c760b||'commentsLicenseKeyExpired'==_0x3c760b||'commentsLicenseKeyDomainLimit'==_0x3c760b||'commentsLicenseKeyNotAllowed'==_0x3c760b||'commentsLicenseKeyEvaluationLimit'==_0x3c760b||'commentsLicenseKeyTrialLimit'==_0x3c760b||'commentsLicenseKeyUsageLimit'==_0x3c760b){delete _0x4bafae[_0x1a240b],_0x4b2e03=_0x3c760b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x4b2e03&&_0x4bafae['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x4b2e03&&_0x4bafae['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x4b2e03&&_0x4bafae['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x4b2e03&&_0x4bafae['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x4b2e03&&_0x4bafae['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x4b2e03&&_0x4bafae['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x4b2e03&&_0x4bafae['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0xe651f7){const _0x5512b6=this['editor'],_0xa57560=new _0xe651f7(_0x5512b6['locale']),_0x438731=_0x5512b6['commands']['get']('addCommentThread');return _0xa57560['set']({'label':E(_0x5512b6['locale'],'Comment'),'icon':_0x4f9c07}),_0xa57560['bind']('isEnabled')['to'](_0x438731),this['listenTo'](_0xa57560,'execute',()=>{_0x438731['execute']();}),_0xa57560;}}class s extends _0x3136d3{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x32c04a){super(_0x32c04a),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x204418,_0x379f52,_0x279463)=>{_0x279463?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x93b0d4,_0x3342d2]of this['editor']['commands'])_0x3342d2['affectsData']&&'addCommentThread'!==_0x93b0d4&&_0x3342d2['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 _0x30dcda=this['editor']['editing']['view']['document'];this['listenTo'](_0x30dcda,'cut',_0xa55c05=>_0xa55c05['stop'](),{'priority':'highest'}),this['listenTo'](_0x30dcda,'clipboardInput',_0x8fb011=>_0x8fb011['stop'](),{'priority':'highest'}),this['listenTo'](_0x30dcda,'delete',_0x45ae14=>_0x45ae14['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x5aefd3,_0x5f4e8f]of this['editor']['commands'])_0x5f4e8f['affectsData']&&'addCommentThread'!==_0x5aefd3&&_0x5f4e8f['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 M extends _0x2c6a5a{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[O];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3be377){super(_0x3be377),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x4893ee=this['context']['plugins']['get'](O);this['listenTo'](_0x4893ee,'_activateAnnotation',(_0x4a630a,_0x33a629)=>{for(const _0x130799 of this['activeUIs']){const _0x233736=this['_uis']['get'](_0x130799);(0x0,this['uisData']['get'](_0x130799)['filter'])(_0x33a629)&&_0x233736['setActiveAnnotation'](_0x33a629);}}),this['listenTo'](_0x4893ee,'_deactivateAllAnnotations',()=>{for(const _0x383ba0 of this['activeUIs']){this['_uis']['get'](_0x383ba0)['setActiveAnnotation'](null);}}),this['listenTo'](_0x4893ee['_visibleAnnotations'],'add',(_0xca25ff,_0x56c98e)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x56c98e);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x3c535e){return this['activeUIs']['has'](_0x3c535e);}['activate'](_0x207d88,_0x1e3cae=this['defaultFilter']){const _0xfc9a1c=this['context']['plugins']['get'](O);if(!this['_uis']['has'](_0x207d88))throw new _0x15c172('annotationsuis-missing-ui',this,{'uiName':_0x207d88});this['isActive'](_0x207d88)&&this['deactivate'](_0x207d88),this['activeUIs']['add'](_0x207d88);const _0x5c0e16=new _();!function({source:_0x7aec5c,target:_0x5e531d,filter:_0x28b428}){for(const _0x1b1598 of _0x7aec5c)_0x28b428(_0x1b1598)&&_0x5e531d['add'](_0x1b1598);_0x5e531d['listenTo'](_0x7aec5c,'add',(_0x541b40,_0x35cbbb)=>{_0x28b428(_0x35cbbb)&&_0x5e531d['add'](_0x35cbbb);}),_0x5e531d['listenTo'](_0x7aec5c,'remove',(_0x23ad4a,_0x27ec94)=>{_0x5e531d['has'](_0x27ec94)&&_0x5e531d['remove'](_0x27ec94);});}({'source':_0xfc9a1c['_visibleAnnotations'],'target':_0x5c0e16,'filter':_0x1e3cae}),this['uisData']['set'](_0x207d88,{'collection':_0x5c0e16,'filter':_0x1e3cae});const _0x571a08=this['_uis']['get'](_0x207d88);_0x571a08['attach'](_0x5c0e16),this['listenTo'](_0x571a08,'change:activeAnnotation',(_0x3aace7,_0x2ec78c,_0x140a88,_0x607c32)=>{_0x607c32&&_0xfc9a1c['_removeActiveAnnotation'](_0x607c32),_0x140a88&&_0xfc9a1c['_addActiveAnnotation'](_0x140a88);});}['deactivate'](_0x2c3bb0){if(this['activeUIs']['delete'](_0x2c3bb0),!this['_uis']['has'](_0x2c3bb0))throw new _0x15c172('annotationsuis-missing-ui',this,{'uiName':_0x2c3bb0});const _0x530c97=this['_uis']['get'](_0x2c3bb0);_0x530c97['detach'](),this['stopListening'](_0x530c97),this['uisData']['get'](_0x2c3bb0)['collection']['destroy'](),this['uisData']['delete'](_0x2c3bb0);}['switchTo'](_0x1dc9c4){if(!this['_uis']['has'](_0x1dc9c4))throw new _0x15c172('annotationsuis-missing-ui',this,{'uiName':_0x1dc9c4});const _0x332040=this['context']['plugins']['get'](O),_0xc690ce=Array['from'](_0x332040['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x1dc9c4);const _0x1140f2=this['_uis']['get'](_0x1dc9c4);_0x1140f2['setActiveAnnotation'](_0xc690ce),_0x1140f2['_setSelectedAnnotations']&&_0xc690ce&&_0x1140f2['_setSelectedAnnotations']([_0xc690ce]);}['deactivateAll'](){for(const _0x43fe3a of this['activeUIs'])this['deactivate'](_0x43fe3a);}['register'](_0x7e59b7,_0x3f3575){if(this['_uis']['has'](_0x7e59b7))throw new _0x15c172('annotationsuis-register-already-registered');if('function'!=typeof _0x3f3575['attach']||'function'!=typeof _0x3f3575['detach']||'function'!=typeof _0x3f3575['setActiveAnnotation'])throw new _0x15c172('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x7e59b7,_0x3f3575);}['refilterAnnotations'](){const _0x42d2e4=this['context']['plugins']['get'](O)['collection'],_0x2cee74=new Map(),_0x8a6cd2=Array['from'](this['activeUIs']);for(const _0x2fcfdd of this['activeUIs']){const _0xfe4a04=this['uisData']['get'](_0x2fcfdd)['collection'];for(const _0x5b863f of _0xfe4a04)_0x2cee74['set'](_0x5b863f,_0x2fcfdd);}for(const _0x1bda8d of _0x42d2e4){const _0x2ef813=_0x2cee74['get'](_0x1bda8d);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1bda8d);const _0x2c12ae=_0x8a6cd2['find'](_0x1d716d=>this['uisData']['get'](_0x1d716d)['filter'](_0x1bda8d));_0x2ef813!==_0x2c12ae&&(_0x2ef813&&this['uisData']['get'](_0x2ef813)['collection']['remove'](_0x1bda8d),_0x2c12ae&&this['uisData']['get'](_0x2c12ae)['collection']['add'](_0x1bda8d));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x566e07){const _0x110adb=[];for(const _0x139e06 of this['activeUIs']){(0x0,this['uisData']['get'](_0x139e06)['filter'])(_0x566e07)&&_0x110adb['push'](_0x139e06);}if(_0x110adb['length']>0x1)throw new _0x15c172('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x110adb,'annotationType':_0x566e07['type']});}}const pi=xt('px');class F extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x2c4ff2){super(_0x2c4ff2);const _0x5d956f=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 _0x4998e4(),this['focusCycler']=new _0x4a5462({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x5d956f['to']('class')],'style':{'minHeight':_0x5d956f['to']('minHeight',_0x36a80b=>'number'==typeof _0x36a80b?pi(_0x36a80b+0xa):null)},'dir':_0x2c4ff2['uiLanguageDirection'],'role':'application','aria-label':E(_0x2c4ff2,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':E(_0x2c4ff2,'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',_0xcce857=>{this['_updateItemPositionInFocusables'](_0xcce857['source']);}),this['list']['forEach'](_0xe3a70a=>{this['focusTracker']['add'](_0xe3a70a['element']),this['_updateItemPositionInFocusables'](_0xe3a70a);}),this['list']['on']('change',(_0x1b95a1,_0x5726ee)=>{for(const _0x2b96e9 of _0x5726ee['removed'])this['focusTracker']['remove'](_0x2b96e9['element']),this['focusables']['remove'](_0x2b96e9);for(const _0x1bbaae of _0x5726ee['added'])this['focusTracker']['add'](_0x1bbaae['element']),this['_updateItemPositionInFocusables'](_0x1bbaae);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x55bd13){const _0x4e2b6e=this['focusables']['getIndex'](_0x55bd13);let _0x22bb47,_0x4d4b43;for(const _0x2aa458 of this['focusables'])if(_0x55bd13['top']<_0x2aa458['top']){_0x22bb47=_0x2aa458;break;}if(_0x4d4b43=_0x22bb47?this['focusables']['getIndex'](_0x22bb47):this['focusables']['length'],-0x1!==_0x4e2b6e){if(_0x4e2b6e===_0x4d4b43-0x1)return;this['focusables']['remove'](_0x55bd13),_0x4d4b43=_0x22bb47?this['focusables']['getIndex'](_0x22bb47):this['focusables']['length'];}this['focusables']['add'](_0x55bd13,_0x4d4b43);}}const Ht=xt('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x47b82e){super(_0x47b82e),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x457519,_0x4d59dc)=>_0x457519+_0x4d59dc),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x48adad=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x48adad['to']('isAnimationDisabled',_0x3dd824=>_0x3dd824?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x48adad['to']('top',_0x4b195f=>Ht(_0x4b195f))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x3a6cc2=this['element']['clientHeight'];_0x3a6cc2&&(this['height']=_0x3a6cc2);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x2c6a5a{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x13bdd7){super(_0x13bdd7),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 _0x1c582f=this['context']['config']['get']('sidebar.container');_0x1c582f&&this['setContainer'](_0x1c582f);}['setContainer'](_0x40eac0){if(!y(_0x40eac0))throw new _0x15c172('sidebar-setcontainer-invalid-element');this['container']=_0x40eac0;}['_attachToContainer']({viewClass:_0x3e140e='',spaceBetweenItems:_0x56b74a=0x19}={}){if(!y(this['container']))throw new _0x15c172('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x3e140e,this['_spaceBetweenItems']=_0x56b74a;}['rearrange']({removedAnnotation:_0x1694f1,previousAnnotation:_0x53c522,nextAnnotation:_0x3deecc}){const _0x2999b5=this['getSidebarItemView'](_0x1694f1);this['view']['list']['remove'](_0x2999b5),this['_destroySidebarItemView'](_0x1694f1),_0x53c522&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x53c522)),_0x3deecc&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3deecc)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x369dc3,activatedAnnotation:_0x396ab4,disableAnimationOnActivatedAnnotation:_0x4bbd99}){if(this['_activeAnnotation']=_0x396ab4,_0x369dc3){_0x369dc3['isActive']=!0x1;const _0x5f31e2=this['getSidebarItemView'](_0x369dc3);_0x5f31e2&&_0x4bbd99&&(_0x5f31e2['isAnimationDisabled']=!0x1);}if(_0x396ab4){const _0x5e6e6c=this['getSidebarItemView'](_0x396ab4);_0x5e6e6c&&(_0x396ab4['isActive']=!0x0,_0x4bbd99&&(_0x5e6e6c['isAnimationDisabled']=!0x0,_0x5e6e6c['top']+=0x1),this['_alignToTargetRect'](_0x5e6e6c));}}['_detachFromContainer'](_0x36b1e2){if(this['view']['element']['remove'](),_0x36b1e2){for(const _0x47bcf2 of _0x36b1e2)this['_destroySidebarItemView'](_0x47bcf2);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x3f94b2,_0x1d1dd0){_0x1d1dd0||(_0x1d1dd0=_0x3f94b2['view']);const _0x53494f=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x53494f,_0x3f94b2),this['_annotationToSidebarItemView']['set'](_0x3f94b2,_0x53494f),_0x53494f['content']['add'](_0x1d1dd0),this['listenTo'](_0x3f94b2['view'],'change:targetRect',(_0x52a8f0,_0x4fd710,_0x1d934f)=>{const _0x1b8e82=this['_getTargetTop'](_0x3f94b2,_0x1d934f);_0x53494f['_targetTop']!=_0x1b8e82&&(_0x53494f['_targetTop']=_0x1b8e82,this['_setItemTop'](_0x53494f,_0x1b8e82));}),this['listenTo'](_0x53494f,'change:top',()=>{this['_recalculate'](_0x53494f,'top');}),this['listenTo'](_0x53494f,'change:bottom',()=>{this['_recalculate'](_0x53494f,'bottom');}),this['_alignToTargetRect'](_0x53494f);const _0x144324=this['_getItemBefore'](_0x53494f);if(_0x144324)this['_alignAfterItem'](_0x144324,_0x53494f)||this['_alignToTargetRect'](_0x53494f);else this['_alignToTargetRect'](_0x53494f);return this['_updateLastItem'](),this['view']['list']['add'](_0x53494f),_0x53494f;}['_alignForTopChange'](_0x34c376){if(!_0x34c376['content']['length'])return;const _0x3ec280=this['_getItemBefore'](_0x34c376);if(!_0x3ec280)return;const _0x1ccdb7=this['_sidebarItemViewToAnnotation']['get'](_0x3ec280),_0x20dabd=this['_activeAnnotation'];_0x20dabd&&_0x20dabd===_0x1ccdb7?this['_alignAfterItem'](_0x3ec280,_0x34c376):this['_alignBeforeItem'](_0x34c376,_0x3ec280);}['_alignForBottomChange'](_0x637c01){if(!_0x637c01['content']['length'])return;const _0x47b3a6=this['_getItemAfter'](_0x637c01);if(!_0x47b3a6)return;const _0x23d485=this['_sidebarItemViewToAnnotation']['get'](_0x47b3a6),_0x446582=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x41983b=this['_activeAnnotation'];_0x41983b&&_0x41983b===_0x23d485&&_0x446582?(this['_alignBeforeItem'](_0x47b3a6,_0x637c01),this['_alignAfterItem'](_0x637c01,_0x47b3a6)):_0x41983b&&_0x41983b===_0x23d485?this['_alignBeforeItem'](_0x47b3a6,_0x637c01):this['_alignAfterItem'](_0x637c01,_0x47b3a6);}['_recalculate'](_0x31bd87,_0x35236f){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x499976,changedProp:_0x235831}of this['_recalculateBuffer'])'top'===_0x235831?this['_alignForTopChange'](_0x499976):this['_alignForBottomChange'](_0x499976);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x31bd87,'changedProp':_0x35236f});}['getSidebarItemView'](_0x978eee){return this['_annotationToSidebarItemView']['get'](_0x978eee);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x191916){const _0x3c0586=this['getSidebarItemView'](_0x191916);this['stopListening'](_0x3c0586),this['stopListening'](_0x191916['view']),_0x3c0586['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x191916),this['_sidebarItemViewToAnnotation']['delete'](_0x3c0586);}['_createSidebarView'](){const _0x2a1a43=new F(this['context']['locale']);return _0x2a1a43['render'](),this['on']('change:_lastItem',(_0x43d38e,_0x4e2166,_0x384ce5,_0x54a2e0)=>{_0x54a2e0&&_0x2a1a43['unbind']('minHeight'),_0x384ce5?_0x2a1a43['bind']('minHeight')['to'](_0x384ce5,'bottom'):_0x2a1a43['minHeight']=null;}),_0x2a1a43;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x5f12f3){const _0x3eb4ef=this['_sidebarItemViewToAnnotation']['get'](_0x5f12f3),_0xbf229f=_0x3eb4ef&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x3eb4ef)-0x1);return _0xbf229f&&this['getSidebarItemView'](_0xbf229f)||null;}['_getItemAfter'](_0x599e4d){const _0xe12095=this['_sidebarItemViewToAnnotation']['get'](_0x599e4d),_0x16458c=_0xe12095&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0xe12095)+0x1);return _0x16458c&&this['getSidebarItemView'](_0x16458c)||null;}['_alignBeforeItem'](_0x47435a,_0x2b3988){_0x47435a['updateHeight']();const _0x6a6eec=R(_0x2b3988['bottom']+this['_spaceBetweenItems'],_0x47435a['top']);return!!_0x6a6eec&&(this['_setItemTop'](_0x2b3988,_0x2b3988['top']-_0x6a6eec),!0x0);}['_alignAfterItem'](_0x53d2fb,_0x41c189){_0x53d2fb['updateHeight']();const _0x271156=R(_0x53d2fb['bottom']+this['_spaceBetweenItems'],_0x41c189['top']);return!!_0x271156&&(this['_setItemTop'](_0x41c189,_0x41c189['top']+_0x271156,!0x1),!0x0);}['_alignToTargetRect'](_0x347f91){const _0x359323=this['_sidebarItemViewToAnnotation']['get'](_0x347f91);if(!_0x359323||!_0x359323['target']||!_0x359323['targetRect'])return;const _0x1123e1=this['_getTargetTop'](_0x359323,_0x359323['targetRect']);this['_setItemTop'](_0x347f91,_0x1123e1);}['_getTargetTop'](_0xae83c8,_0x6cc69d){if(null===_0x6cc69d)return 0x0;if(_0xae83c8['target']instanceof _0x5708d8)return _0x6cc69d['top'];{const _0x39fa54=new _0x5708d8(this['view']['element'])['top'];return _0x6cc69d['top']-_0x39fa54;}}['_setItemTop'](_0x2f0a11,_0x57fc40,_0xdd1601=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0xdd1601&&(_0x57fc40=Math['max'](_0x57fc40,this['_getMaxAvailableTop'](_0x2f0a11))),_0x2f0a11['top']=_0x57fc40;}['_getMaxAvailableTop'](_0x422824){let _0x18e86c=this['_getItemBefore'](_0x422824),_0x2a52f6=0x0;for(;_0x18e86c;)_0x18e86c['updateHeight'](),_0x2a52f6+=this['_spaceBetweenItems']+_0x18e86c['height'],_0x18e86c=this['_getItemBefore'](_0x18e86c);return _0x2a52f6;}}function R(_0x3815ec,_0x2c742f){return Math['max'](_0x3815ec-_0x2c742f,0x0);}function y(_0x1d0d59){return null!==_0x1d0d59&&'object'==typeof _0x1d0d59&&0x1===_0x1d0d59['nodeType'];}class e extends _0x2c6a5a{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,M];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x30b2d9){super(_0x30b2d9),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x2a536e(),this['_refreshPositioningDebounced']=_0x356c72(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x349cad=this['context']['plugins']['get'](M),_0x165ab0=this['context']['plugins']['get'](z);_0x349cad['register']('wideSidebar',this),_0x165ab0['container']&&_0x349cad['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x291e31){if(_0x291e31===this['activeAnnotation'])return;const _0x4a4bb8=this['context']['plugins']['get'](z);_0x4a4bb8['_activeAnnotation']=_0x291e31;const _0x29e21e=this['activeAnnotation'];_0x4a4bb8['refresh']({'blurredAnnotation':_0x29e21e,'activatedAnnotation':_0x291e31}),this['activeAnnotation']=_0x291e31;}['attach'](_0x291718){this['annotations']=_0x291718;const _0x221b93=this['context']['plugins']['get'](z);if(_0x221b93['_annotations']=_0x291718,this['isAttached'])throw new _0x15c172('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x221b93,'set:container',()=>{this['detach'](),this['listenTo'](_0x221b93,'change:container',_0x60f550=>{_0x60f550['off'](),this['attach'](_0x291718);});}),_0x221b93['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x5c628f=_0x418f6b=>{_0x418f6b['updateTargetRect'](),_0x221b93['addAnnotation'](_0x418f6b);};for(const _0xb32568 of _0x291718)_0x5c628f(_0xb32568);this['listenTo'](_0x291718,'add',(_0x1bcd19,_0xe81a8b)=>{_0x5c628f(_0xe81a8b);}),this['listenTo'](_0x291718,'remove',(_0x3fa8c7,_0x4e8135,_0x428dcc)=>{_0x221b93['rearrange']({'removedAnnotation':_0x4e8135,'previousAnnotation':_0x291718['get'](_0x428dcc-0x1),'nextAnnotation':_0x291718['get'](_0x428dcc+0x1)}),_0x4e8135===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x291718,'focus',(_0x372550,_0x2a5d4f)=>{this['setActiveAnnotation'](_0x2a5d4f);}),this['listenTo'](_0x291718,'blur',()=>{this['setActiveAnnotation'](null);});const _0x2c92e2=this['context']instanceof _0x5e197b?this['context']['editors']:new _0x2a536e([this['context']]);for(const _0x458307 of _0x2c92e2)this['_integrateWithEditorAnnotations'](_0x458307);this['listenTo'](_0x2c92e2,'add',(_0x255bb0,_0x41cc0b)=>{this['listenTo'](_0x41cc0b,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x41cc0b);});}),this['listenTo'](_0x2c92e2,'remove',(_0x398571,_0x3de071)=>{_0x3de071['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x3de071['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x15c172('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x5cde45=this['context']['plugins']['get'](z);_0x5cde45['_detachFromContainer'](this['annotations']),this['stopListening'](_0x5cde45),this['stopListening'](this['annotations']),this['context']instanceof _0x5e197b&&this['stopListening'](this['context']['editors']);for(const _0x120aeb of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x120aeb);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x226be2){if(!_0x226be2['plugins']['has']('EditorAnnotations'))return;const _0x2fc2de=_0x226be2['plugins']['get']('EditorAnnotations'),_0x196314=()=>{const _0x4c4c48=_0x2fc2de['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x4c4c48[0x0]||null);};this['listenTo'](_0x2fc2de,'refresh',_0x196314),this['listenTo'](_0x2fc2de,'blur',(_0x309c8b,{isAnnotationTracked:_0x5f15d6})=>{this['activeAnnotation']&&_0x5f15d6(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x2fc2de,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x38dcd2=>{_0x2fc2de['hasDomSelection']()&&(_0x196314(),_0x38dcd2['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x2fc2de);}['_destroyEditorAnnotationsIntegration'](_0x2e5233){this['stopListening'](_0x2e5233),this['_editorAnnotations']['remove'](_0x2e5233);}}class C extends _0x501ccc{['counterView'];constructor(_0x5839a3){super(_0x5839a3);const _0x3eeca9=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x2c573e,_0x3a779f)=>_0x2c573e?'...':_0x3a779f['toString']()),this['set']('annotationType',''),this['icon']=_0x4f9c07,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x3eeca9['to']('annotationType',_0x2e6656=>'ck-annotation-counter__badge--'+_0x2e6656),_0x3eeca9['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x3eeca9['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x2c6a5a{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,M];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x588f2e){super(_0x588f2e),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x13575b),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x2a536e(),this['_refreshPositioningDebounced']=_0x356c72(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x4f0a56(this['context']['locale']),this['balloonPanelView']=new _0x34c707(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x109b32){this['annotations']=_0x109b32;const _0x6b80a2=this['context']['plugins']['get'](z),_0x5a0896=this['balloonPanelView'];if(_0x6b80a2['_annotations']=_0x109b32,this['isAttached'])throw new _0x15c172('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x6b80a2,'set:container',()=>{this['detach'](),this['listenTo'](_0x6b80a2,'change:container',_0x48ba2f=>{_0x48ba2f['off'](),this['attach'](_0x109b32);});}),_0x6b80a2['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x3d547d=_0x5dfba0=>{const _0x1ac032=new C(this['context']['locale']);_0x6b80a2['addAnnotation'](_0x5dfba0,_0x1ac032),this['_annotationToNarrowView']['set'](_0x5dfba0,_0x1ac032),_0x1ac032['bind']('isDirty','annotationType','number')['to'](_0x5dfba0['view'],'isDirty','type','length'),_0x1ac032['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x5a0896['content']['first']!==_0x5dfba0['view']?(this['_showBalloon'](_0x5dfba0),_0x5dfba0['view']['element']['focus'](),this['setActiveAnnotation'](_0x5dfba0)):this['setActiveAnnotation'](null);});};for(const _0x4fdc7d of _0x109b32)_0x3d547d(_0x4fdc7d);this['listenTo'](_0x109b32,'add',(_0x5018d4,_0x5781fa)=>{_0x3d547d(_0x5781fa);}),this['listenTo'](_0x109b32,'remove',(_0x3ebc32,_0x28fc59,_0x5a3e8b)=>{this['_annotationToNarrowView']['get'](_0x28fc59)['destroy'](),this['_annotationToNarrowView']['delete'](_0x28fc59),_0x6b80a2['rearrange']({'removedAnnotation':_0x28fc59,'previousAnnotation':_0x109b32['get'](_0x5a3e8b-0x1),'nextAnnotation':_0x109b32['get'](_0x5a3e8b+0x1)}),_0x28fc59===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x109b32,'focus',(_0x5c329c,_0x5b270b)=>{this['setActiveAnnotation'](_0x5b270b);}),this['listenTo'](_0x109b32,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x1e5cab,_0x3a4525)=>{_0x3a4525['keyCode']===_0x16045e['esc']&&_0x5a0896['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x5a0896['content']['first']),this['_hideBalloon'](),_0x3a4525['stopPropagation'](),_0x3a4525['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x49e585,_0x57e458)=>{const _0x39068e=_0x57e458['target'];_0x5a0896['isVisible']&&_0x5a0896['element']['contains'](_0x39068e)||_0x6b80a2['view']['element']['contains'](_0x39068e)||_0x49e585['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x4c87a4=>_0x4c87a4['contains'](_0x39068e))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x1a8cb0=this['context']instanceof _0x5e197b?this['context']['editors']:new _0x2a536e([this['context']]);for(const _0x42abf1 of _0x1a8cb0)this['_integrateWithEditorAnnotations'](_0x42abf1);this['listenTo'](_0x1a8cb0,'add',(_0x1eac2d,_0x2b4882)=>{this['listenTo'](_0x2b4882,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x2b4882);});}),this['listenTo'](_0x1a8cb0,'remove',(_0x9a8461,_0x56eb31)=>{_0x56eb31['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x56eb31['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x1178de){if(_0x1178de===this['activeAnnotation'])return;const _0x31d241=this['context']['plugins']['get'](z);if(_0x31d241['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x1178de,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1178de)_0x31d241['getSidebarItemView'](_0x1178de)?this['_showBalloon'](_0x1178de):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x1178de;}['detach'](){if(!this['isAttached'])throw new _0x15c172('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x34cdd1=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x11cbd1=>_0x11cbd1['destroy']()),this['_annotationToNarrowView']['clear'](),_0x34cdd1['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x5e197b&&this['stopListening'](this['context']['editors']);for(const _0x6f608e of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x6f608e);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'](_0x266a53){if(!_0x266a53['plugins']['has']('EditorAnnotations'))return;const _0x475843=_0x266a53['plugins']['get']('EditorAnnotations'),_0x282900=this['context']['plugins']['get'](z),_0x13a74f=this['annotations'],_0x24170d=this['balloonPanelView'],_0x232bc4=()=>{const _0x1540d3=_0x475843['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x1540d3),this['setActiveAnnotation'](_0x1540d3[0x0]||null);};this['listenTo'](_0x475843,'refresh',_0x232bc4),this['listenTo'](_0x475843,'blur',(_0x23206e,{isAnnotationTracked:_0x4b1840})=>{this['activeAnnotation']&&_0x4b1840(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x475843,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x13a74f,'blur',_0x29c825=>{_0x475843['hasDomSelection']()&&_0x29c825['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x5ef307,_0x133d83)=>{const _0x51003d=_0x133d83['target'];_0x24170d['isVisible']&&_0x24170d['element']['contains'](_0x51003d)||_0x282900['view']['element']['contains'](_0x51003d)||this['activeAnnotation']&&_0x475843['hasDomSelection']()&&(_0x232bc4(),_0x5ef307['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x475843);}['_destroyEditorAnnotationsIntegration'](_0x5223ef){_0x5223ef&&(this['stopListening'](_0x5223ef),this['_editorAnnotations']['remove'](_0x5223ef));}['_setSelectedAnnotations'](_0x175082){for(const _0x2c0069 of this['_selectedAnnotations'])_0x175082['includes'](_0x2c0069)||this['_manuallyClosedAnnotationViews']['delete'](_0x2c0069['view']);this['_selectedAnnotations']=_0x175082;}['_refreshPositioning'](){const _0x1c1693=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x1c1693['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x346dd8){if(this['_manuallyClosedAnnotationViews']['has'](_0x346dd8['view']))return;const _0x2078e2=this['balloonPanelView']['content']['first'];_0x2078e2!==_0x346dd8['view']?(_0x2078e2&&this['_detachListeners'](_0x2078e2),this['_attachListeners'](_0x346dd8['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x346dd8['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0xda17cd=this['balloonPanelView']['content']['first'],_0x170402=_0xda17cd&&this['annotations']['getByView'](_0xda17cd);if(!_0x170402||!this['_annotationToNarrowView']['has'](_0x170402))return;const _0x5e89f0=this['_annotationToNarrowView']['get'](_0x170402)['element'],_0x41fb7c=(function(){const _0x3d18ce=_0x34c707['defaultPositions'];return[_0x3d18ce['southArrowNorthEast'],_0x3d18ce['northArrowSouthEast'],_0x3d18ce['southArrowNorth'],_0x3d18ce['northArrowSouth'],_0x3d18ce['southArrowNorthWest'],_0x3d18ce['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x5e89f0,'positions':_0x41fb7c});}['_hideBalloon'](){const _0x4ac8e0=this['balloonPanelView'],_0x442d95=_0x4ac8e0['content']['first'];_0x442d95&&(this['_detachListeners'](_0x442d95),_0x4ac8e0['unpin'](),_0x4ac8e0['content']['clear']());}['_attachListeners'](_0x1212eb){this['listenTo'](_0x1212eb,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x1212eb,'Esc',(_0x10e57f,_0x5dd585)=>{this['_manuallyClosedAnnotationViews']['add'](_0x1212eb),this['_hideBalloon'](),_0x5dd585();});}['_detachListeners'](_0x1fb0cb){this['stopListening'](_0x1fb0cb);}}class c extends _0x3136d3{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0xf7176a,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x8b7d56){super(_0x8b7d56),_0x8b7d56['editing']['view']['addObserver'](_0x56d6e7),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x8b7d56['plugins']['get'](_0xf7176a),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x26ebfb=this['editor']['plugins']['get'](M);_0x26ebfb['context']===this['editor']&&(_0x26ebfb['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x2ba84f,_0x3970cc)=>{const _0x5d08af=this['_balloon'];if(this['isAttached']&&_0x5d08af['visibleView']){const _0x1de96=this['annotations']['getByView'](_0x5d08af['visibleView']);_0x1de96&&this['_closeAnnotation'](_0x1de96),_0x3970cc();}}));}['afterInit'](){const _0xa14160=this['editor']['plugins']['get'](M);_0xa14160['context']===this['editor']&&(_0xa14160['hasActive']()||_0xa14160['switchTo']('inline'));}['setActiveAnnotation'](_0x2c1444){_0x2c1444!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x2c1444&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x2c1444)&&this['_addAnnotationToBalloon'](_0x2c1444,!0x0),_0x2c1444['isActive']=!0x0),_0x2c1444||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x2c1444);}['attach'](_0x54f49d){this['annotations']=_0x54f49d;const _0x34791c=this['editor']['plugins']['get'](M),_0x1d6aba=this['_balloon'];if(this['isAttached'])throw new _0x15c172('inlineannotations-attach-already-attached',this);if(_0x34791c['context']!==this['editor'])throw new _0x15c172('inlineannotations-not-allowed-with-context',this);const _0x5a01e3=this['editor']['plugins']['get'](P);this['listenTo'](_0x5a01e3,'refresh',()=>{const _0x3a6416=_0x5a01e3['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x358c4e,_0x5862c4;!this['_forceRefresh']&&(_0x358c4e=_0x3a6416,_0x5862c4=this['_selectedAnnotations'],_0x358c4e['length']===_0x5862c4['length']&&_0x358c4e['every'](_0x4c1fde=>_0x5862c4['includes'](_0x4c1fde)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x3a6416),this['setActiveAnnotation'](_0x3a6416[0x0]||null));}),this['listenTo'](_0x5a01e3,'blur',(_0x502e27,{isAnnotationTracked:_0x1a9222})=>{this['activeAnnotation']&&_0x1a9222(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x57a308,_0x6c2d5f,_0x764f1b)=>{_0x764f1b||this['setActiveAnnotation'](null);}),this['listenTo'](_0x54f49d,'remove',(_0x136bfe,_0x1ffb34)=>{this['_removeAnnotationFromBalloon'](_0x1ffb34),_0x1ffb34===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x1d6aba,'change:visibleView',(_0x1a49fe,_0x4342e0,_0x59ec46,_0x48266a)=>{_0x48266a&&this['stopListening'](_0x48266a);const _0x3856fb=_0x54f49d['getByView'](_0x59ec46);_0x59ec46&&_0x3856fb&&(this['listenTo'](_0x59ec46,'change:height',()=>{_0x1d6aba['updatePosition']();}),this['listenTo'](_0x59ec46,'Esc',()=>{this['_closeAnnotation'](_0x3856fb),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x3856fb&&this['setActiveAnnotation'](_0x3856fb));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x1d6aba['visibleView']&&(_0x54f49d['getByView'](_0x1d6aba['visibleView'])&&_0x1d6aba['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 _0x15c172('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x172400 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x172400);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x593c66){for(const _0x2decc9 of this['_selectedAnnotations'])_0x593c66['includes'](_0x2decc9)||this['_manuallyClosed']['delete'](_0x2decc9);for(const _0x2105fe of this['annotations'])_0x593c66['includes'](_0x2105fe)||this['_removeAnnotationFromBalloon'](_0x2105fe);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x45dad6 of _0x593c66)this['_addAnnotationToBalloon'](_0x45dad6);}this['_selectedAnnotations']=_0x593c66;}['_addAnnotationToBalloon'](_0x2e85bb,_0x48a285=!0x1){this['_manuallyClosed']['has'](_0x2e85bb)||(this['_addedAnnotations']['has'](_0x2e85bb)||this['_balloon']['hasView'](_0x2e85bb['view'])||(this['_addedAnnotations']['add'](_0x2e85bb),this['_balloon']['add']({'stackId':_0x2e85bb['view']['id'],'view':_0x2e85bb['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x2e85bb)}})),_0x48a285&&this['_balloon']['showStack'](_0x2e85bb['view']['id']));}['_getBalloonTargetForAnnotation'](_0x4486be){const _0x3ca19b=_0x4486be['target'],_0x470109=this['editor']['editing']['view'],_0x4a0618=_0x470109['document']['selection']['getFirstRange'](),_0x103108=_0x470109['domConverter']['viewRangeToDom'](_0x4a0618);if(_0x103108['collapse'](!0x0),_0x3ca19b){if(_0x3ca19b instanceof _0x5708d8)return _0x3ca19b;let _0x4f5ee4=[];for(const _0x517ed4 of _0x3ca19b)_0x4f5ee4['push'](...(_0x33dbfb=_0x517ed4['getClientRects'](),Array['from'](_0x33dbfb)['map'](DOMRect['fromRect'])));_0x4f5ee4=function(_0x367b04){const _0x16e269=[];let _0x1af9de=_0x367b04[0x0];for(let _0x3fb184=0x1;_0x3fb184<_0x367b04['length'];_0x3fb184++)B(_0x1af9de,_0x367b04[_0x3fb184])?_0x1af9de['width']+=_0x367b04[_0x3fb184]['width']:(_0x16e269['push'](_0x1af9de),_0x1af9de=_0x367b04[_0x3fb184]);return _0x16e269['push'](_0x1af9de),_0x16e269;}(_0x4f5ee4);const _0x4cb3aa=_0x103108['getBoundingClientRect']();return _0x4f5ee4['find'](_0x2bf6f3=>_0x2bf6f3['top']<=_0x4cb3aa['top']&&_0x2bf6f3['bottom']>=_0x4cb3aa['bottom']&&_0x2bf6f3['left']<=_0x4cb3aa['left']&&_0x2bf6f3['right']>=_0x4cb3aa['right'])||_0x4f5ee4[0x0];}var _0x33dbfb;return _0x4486be['targetRect']||_0x103108;}['_removeAnnotationFromBalloon'](_0x3bff69){this['_addedAnnotations']['has'](_0x3bff69)&&this['_balloon']['hasView'](_0x3bff69['view'])&&(this['_addedAnnotations']['delete'](_0x3bff69),this['_balloon']['remove'](_0x3bff69['view']));}['_closeAnnotation'](_0x50f2d1){this['_manuallyClosed']['add'](_0x50f2d1),this['_removeAnnotationFromBalloon'](_0x50f2d1);}}function B(_0x27979b,_0x56b9c3){return _0x27979b['top']===_0x56b9c3['top']&&_0x27979b['bottom']===_0x56b9c3['bottom']&&_0x27979b['right']===_0x56b9c3['left'];}class tt extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x294bf4,_0x629bb1){super(_0x294bf4),this['set']('isEmpty',!_0x629bb1['length']),this['focusTracker']=new _0x4998e4(),this['_annotationViews']=_0x629bb1,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x4a5462({'focusables':_0x629bb1,'focusTracker':this['focusTracker']}),this['listenTo'](_0x629bb1,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x629bb1,'remove',(_0x4f0a6f,_0x66210)=>{_0x66210['isActive']&&this['focus'](),_0x629bb1['length']||(this['isEmpty']=!0x0);});const _0x243f9c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':E(_0x294bf4,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x629bb1},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x243f9c['if']('isEmpty','ck-hidden',_0x5ab072=>!_0x5ab072)]},'children':[{'text':E(_0x294bf4,'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 _0x2362ec of this['_annotationViews'])this['focusTracker']['add'](_0x2362ec['element']);this['_annotationViews']['on']('change',(_0x1077f0,{added:_0xbc6d5b,removed:_0x233c76})=>{for(const _0x4ace75 of _0xbc6d5b)this['focusTracker']['add'](_0x4ace75['element']);for(const _0x5ece0f of _0x233c76)this['focusTracker']['remove'](_0x5ece0f['element']);});}}class f extends _0x2c6a5a{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,O];}constructor(_0x1f5953){super(_0x1f5953),this['archivedThreads']=new _0x2a536e();}['init'](){const _0x523686=this['context'],_0x580aa8=_0x523686['plugins']['get'](o),_0x4d2704=_0x523686['plugins']['get'](O);this['listenTo'](_0x580aa8,'addCommentThread',(_0x34ef66,{threadId:_0x53f3a1})=>{const _0x46a5d9=_0x580aa8['getCommentThread'](_0x53f3a1);_0x46a5d9['archivedAt']&&this['archivedThreads']['add'](_0x46a5d9,this['_calculatePosition'](_0x46a5d9['archivedAt'])),this['listenTo'](_0x46a5d9,'change:archivedAt',(_0x530678,_0x18a263,_0x5e4caf)=>{_0x5e4caf?this['archivedThreads']['has'](_0x46a5d9)||this['archivedThreads']['add'](_0x46a5d9,this['_calculatePosition'](_0x46a5d9['archivedAt'])):this['archivedThreads']['has'](_0x46a5d9)&&this['archivedThreads']['remove'](_0x46a5d9);});}),this['listenTo'](_0x580aa8,'removeCommentThread',(_0x5634ee,{threadId:_0x1c35b0})=>{const _0x2148ab=_0x580aa8['getCommentThread'](_0x1c35b0);this['stopListening'](_0x2148ab),this['archivedThreads']['has'](_0x2148ab)&&this['archivedThreads']['remove'](_0x2148ab);},{'priority':'highest'}),this['listenTo'](_0x4d2704['collection'],'focus',(_0x46cac8,_0x47bb61)=>{_0x47bb61['isVisible']||(_0x47bb61['isActive']=!0x0,_0x4d2704['activate'](_0x47bb61));});}['_calculatePosition'](_0x209cf){const _0x22c67d=[...this['archivedThreads']]['findIndex'](_0x3c91cf=>_0x3c91cf['archivedAt']<_0x209cf);return _0x22c67d>-0x1?_0x22c67d:this['archivedThreads']['length'];}}class a extends _0x3136d3{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x15c150];}constructor(_0x2db29){super(_0x2db29),this['annotationViews']=new _0x1614c2(),this['_pendingThreads']=[];}['init'](){const _0x39e150=this['editor'],_0x3b75f4=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x39e150['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x501ccc,!0x0)),_0x39e150['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x5a1fcf=this['_createCommentsArchiveButton'](_0x1d3340);return _0x5a1fcf['set']({'role':'menuitemcheckbox'}),_0x5a1fcf;});const _0x7d5f7d=_0x39e150['plugins']['get'](f),_0x3f5aa4=_0x39e150['plugins']['get']('Annotations'),_0x484de5=_0x39e150['plugins']['get']('CommentsRepository');_0x7d5f7d['archivedThreads']['forEach'](_0x2a0844=>{this['_handleNewThread'](_0x2a0844);}),this['listenTo'](_0x7d5f7d['archivedThreads'],'add',(_0x5e9380,_0x3384a4)=>{this['_handleNewThread'](_0x3384a4);}),this['listenTo'](_0x3f5aa4['collection'],'add',(_0x380e02,_0x2175d8)=>{const _0x5c4e30=this['_pendingThreads']['find'](_0x2c939b=>{const _0x18c45c=_0x484de5['_threadToController']['get'](_0x2c939b);return _0x18c45c&&_0x2175d8['innerView']===_0x18c45c['view'];});if(_0x5c4e30){const _0x26e9f1=this['_calculatePosition'](_0x5c4e30['archivedAt']);this['annotationViews']['add'](_0x2175d8['view'],_0x26e9f1),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x5c4e30),0x1);}}),this['listenTo'](_0x7d5f7d['archivedThreads'],'remove',(_0x3cc82e,_0x5a182a)=>{const _0x4a73df=_0x39e150['config']['get']('collaboration.channelId');if(!_0x4a73df||_0x5a182a['channelId']===_0x4a73df){if(this['_pendingThreads']['includes'](_0x5a182a))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x5a182a),0x1);else{const _0x228b0e=_0x484de5['_threadToController']['get'](_0x5a182a),_0x159ae3=_0x3f5aa4['getByInnerView'](_0x228b0e['view']);this['annotationViews']['remove'](_0x159ae3['view']),this['stopListening'](_0x159ae3['focusableElements']);}}}),this['listenTo'](_0x3f5aa4['collection'],'add',(_0x50a926,_0x5c139e)=>{this['listenTo'](_0x5c139e,'escape',_0x3b75f4);}),this['listenTo'](_0x3f5aa4['collection'],'remove',(_0x4bb06e,_0x92bbef)=>{this['stopListening'](_0x92bbef,'escape',_0x3b75f4);});}['_handleNewThread'](_0x23a2ba){const _0x446a06=this['editor']['plugins']['get']('CommentsRepository'),_0x3d7d27=this['editor']['plugins']['get']('Annotations'),_0x5bdbc2=this['editor']['config']['get']('collaboration.channelId');if(!_0x5bdbc2||_0x23a2ba['channelId']===_0x5bdbc2){const _0x27b9a1=_0x446a06['_threadToController']['get'](_0x23a2ba);if(!_0x27b9a1)return void this['_pendingThreads']['push'](_0x23a2ba);const _0x2a5ca4=this['_calculatePosition'](_0x23a2ba['archivedAt']),_0x4d4b18=_0x3d7d27['getByInnerView'](_0x27b9a1['view']);_0x4d4b18['isVisible']&&_0x3d7d27['_visibleAnnotations']['remove'](_0x4d4b18),this['annotationViews']['add'](_0x4d4b18['view'],_0x2a5ca4);}}['_calculatePosition'](_0x28565a){const _0x2f85db=this['editor']['config']['get']('collaboration.channelId'),_0x2cc919=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x1f440f=>_0x1f440f['channelId']===_0x2f85db)['findIndex'](_0x66fb26=>_0x66fb26['archivedAt']<_0x28565a);return _0x2cc919<0x0||_0x2cc919>this['annotationViews']['length']?this['annotationViews']['length']:_0x2cc919-0x1;}['_toggleDialog'](){const _0x24f80c=this['editor'],_0x4ca072=_0x24f80c['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x24f80c['locale'],this['annotationViews'])),'commentsArchive'===_0x4ca072['id']?_0x4ca072['hide']():_0x4ca072['show']({'id':'commentsArchive','title':E(_0x24f80c['locale'],'COMMENTS_ARCHIVE'),'icon':_0x380c51,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x59b2e7['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x13b5e9,_0x4dd87f=!0x1){const _0x114403=this['editor']['locale'],_0x357418=this['editor']['plugins']['get']('Dialog'),_0x4414d9=new _0x13b5e9(_0x114403);return _0x4414d9['bind']('isEnabled')['to'](this,'isEnabled'),_0x4414d9['bind']('isOn')['to'](_0x357418,'id',_0x8a0b39=>'commentsArchive'===_0x8a0b39),_0x4414d9['set']({'label':E(_0x114403,'COMMENTS_ARCHIVE'),'icon':_0x380c51,'isToggleable':!0x0}),_0x4dd87f&&(_0x4414d9['tooltip']=!0x0),this['listenTo'](_0x4414d9,'execute',()=>this['_toggleDialog']()),_0x4414d9;}['_hideDialogOnAnnotationEscape']=_0x3bedb2=>{const _0x1f8931=_0x3bedb2['source'];if(!this['annotationViews']['has'](_0x1f8931['view']))return;const _0x59cb06=this['editor']['plugins']['get']('Dialog');_0x59cb06['isOpen']&&'commentsArchive'===_0x59cb06['id']&&(_0x59cb06['hide'](),_0x3bedb2['stop']());};}class p extends _0x3136d3{static get['requires'](){return[o,r,i,f,a,s,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{d as Annotation,_ as AnnotationCollection,S as AnnotationView,O as Annotations,M as AnnotationsUIs,ts as BaseCommentThreadView,hs as BaseCommentView,fi as Comment,ui as CommentThread,Ct as CommentThreadController,ie as CommentThreadInputView,vt as CommentThreadView,gt as CommentView,p as Comments,f as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,z as Sidebar,e as WideSidebar};