@ckeditor/ckeditor5-comments 44.1.0-alpha.5 → 44.1.0

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 (191) 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/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +16 -16
  148. package/src/annotations/annotation.js +2 -2
  149. package/src/annotations/annotationcollection.js +1 -1
  150. package/src/annotations/annotations.js +1 -1
  151. package/src/annotations/annotationsuis.js +1 -1
  152. package/src/annotations/editorannotations.js +1 -1
  153. package/src/annotations/inlineannotations.js +1 -1
  154. package/src/annotations/narrowsidebar.js +1 -1
  155. package/src/annotations/sidebar.js +1 -1
  156. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  157. package/src/annotations/view/annotationview.js +1 -1
  158. package/src/annotations/view/sidebaritemview.js +1 -1
  159. package/src/annotations/view/sidebarview.js +1 -1
  160. package/src/annotations/widesidebar.js +1 -1
  161. package/src/comments/addcommentthreadcommand.js +1 -1
  162. package/src/comments/commentsarchive.js +1 -1
  163. package/src/comments/commentsarchiveui.js +1 -1
  164. package/src/comments/commentsediting.js +1 -1
  165. package/src/comments/commentsrepository.js +3 -3
  166. package/src/comments/commentsui.js +1 -1
  167. package/src/comments/integrations/clipboard.js +1 -1
  168. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  169. package/src/comments/integrations/importword.js +1 -1
  170. package/src/comments/integrations/showcommenthighlights.js +1 -1
  171. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  172. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  173. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  174. package/src/comments/ui/commentthreadcontroller.js +2 -2
  175. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  176. package/src/comments/ui/view/basecommentview.js +1 -1
  177. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  178. package/src/comments/ui/view/commentcontentview.js +1 -1
  179. package/src/comments/ui/view/commentinputview.js +1 -1
  180. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  181. package/src/comments/ui/view/commentslistview.js +1 -1
  182. package/src/comments/ui/view/commentthreadheadercontextview.js +1 -1
  183. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  184. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  185. package/src/comments/ui/view/commentthreadview.js +2 -2
  186. package/src/comments/ui/view/commentview.js +2 -2
  187. package/src/comments.js +1 -1
  188. package/src/commentsonly.js +1 -1
  189. package/src/index.js +1 -1
  190. package/src/utils/common-translations.js +1 -1
  191. 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 _0x21f649,icons as _0x3412ec,ContextPlugin as _0x3f9f30,PendingActions as ht,Command as _0x1135cd,Plugin as _0x44c214,Context as _0x5257b6}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x1eb62e,uid as _0x5ec6e9,KeystrokeHandler as jt,FocusTracker as _0x22a307,diff as _0xcc1a29,Collection as _0x11cbf4,Rect as _0x12a62b,CKEditorError as _0x766f41,first as _0x4b73ac,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0xe2bdbb,keyCodes as _0x1cfb48}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x2ef72b,AriaDescriptionView as ts,setupThreadKeyboardNavigation as _0x25184d,ConfirmMixin as ti,LateFocusButtonView as _0x446621,trimHtml as _0x4a0a95,LateFocusDropdownButtonView as _0x5ae254,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x44b7c0}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as yt,debounce as _0x23ed5d}from'lodash-es';import{EditorUIView as Yt,InlineEditableUIView as $t,EditorUI as Vt,View as kt,FocusCycler as Ft,ButtonView as _0x3e77fe,ViewCollection as _0x36f2fa,createDropdown as _0x398c32,ListView as _0x4150e1,focusChildOnDropdownOpen as _0x11a468,ListItemView as _0x12e8bd,MenuBarMenuListItemButtonView as _0xa36070,BodyCollection as _0x977e01,BalloonPanelView as _0x17391a,ContextualBalloon as _0x32dd4a,Dialog as _0x2135ff,DialogViewPosition as _0x310fee}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x47e7a4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as Bt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as Et,ShiftEnter as Gt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Jt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Kt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Nt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Qt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x122bf7}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0xc2c561}from'@ckeditor/ckeditor5-widget/dist/index.js';class Ct extends/* #__PURE__ -- @preserve */
24
- _0x1eb62e(){['model'];['view'];constructor(_0x460941,_0x24d5ed){super(),this['model']=_0x460941,this['model']['_isAttached']=!0x0,this['view']=_0x24d5ed,this['listenTo'](_0x24d5ed,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x24d5ed,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x24d5ed,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x24d5ed,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x24d5ed,'addComment',(_0x216eea,_0x581984)=>this['addComment'](_0x581984)),this['listenTo'](_0x24d5ed,'updateComment',(_0x262938,_0x1469cc,_0x51be18)=>this['updateComment'](_0x1469cc,_0x51be18)),this['listenTo'](_0x24d5ed,'removeComment',(_0x1793ea,_0x43396a)=>this['removeComment'](_0x43396a));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0xd7b014){this['model']['addComment']({'content':_0xd7b014,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x3ee726,_0x43208b){this['model']['getComment'](_0x3ee726)['update']({'content':_0x43208b});}['removeComment'](_0x4536bf){this['model']['getComment'](_0x4536bf)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x2d2b87,_0x2ba11,_0x488d77){const t=_0x2d2b87['t'];switch(_0x2ba11){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'},_0x488d77);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'},_0x488d77);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'},_0x488d77);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'},_0x488d77);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x488d77);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'},_0x488d77);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'},_0x488d77);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'},_0x488d77);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Xt extends Yt{['main'];['editable'];constructor(_0x2b961c,_0x2b3d16){super(_0x2b961c);const _0x56afaa=_0x5ec6e9();this['main']=this['createCollection'](),this['editable']=new $t(_0x2b961c,_0x2b3d16,void 0x0,{'label':()=>S(_0x2b961c,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x2b961c['uiLanguageDirection'],'lang':_0x2b961c['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x56afaa},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Ot extends Vt{['view'];constructor(_0xa5fb5a){super(_0xa5fb5a),this['view']=new Xt(_0xa5fb5a['locale'],_0xa5fb5a['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x16c254=this['editor']['editing']['view'],_0x1a04d8=this['view']['editable'],_0x2b9b55=_0x16c254['document']['getRoot']();_0x1a04d8['name']=_0x2b9b55['rootName'],this['view']['render']();const _0x375e69=_0x1a04d8['element'];this['setEditableElement'](_0x1a04d8['name'],_0x375e69),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x16c254['attachDomRoot'](_0x375e69),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Rt=[Bt,Et,Gt,Jt,Kt,Nt,Qt];class Ut extends/* #__PURE__ -- @preserve */
25
- _0x1eb62e(_0x21f649){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Rt)());constructor(_0x56d78d={}){function _0xb784d2(_0xec109c){return _0xec109c['map'](_0x58b2f4=>String['fromCharCode'](_0x58b2f4))['join']('');}(_0x56d78d=Object['assign']({},_0x56d78d))['plugins']||(_0x56d78d['plugins']=Ut['defaultPlugins']),super(_0x56d78d),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[_0xb784d2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb784d2([0x76,0x69,0x65,0x77])][_0xb784d2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb784d2([0x61,0x75,0x74,0x6f]),this[_0xb784d2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xb784d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb784d2([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xb784d2([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xb784d2([0x6f,0x6b])});}['create'](){const _0x4048c4=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x4048c4))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x4fcbce=>{const _0x4714fb=this['model']['document']['getRoot'](),_0x5a7dc1=_0x4714fb&&_0x4714fb['getChild'](_0x4714fb['childCount']-0x1);_0x4fcbce['setSelection'](_0x5a7dc1,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x509799=this['editing']['view'],_0x493662=_0x509799['document']['getRoot'](),_0x142929=_0x493662['getChild'](0x0);_0x493662['childCount']>0x1||!_0x142929||'p'!=_0x142929['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x509799,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x142929['placeholder']=this['placeholder']),St({'view':_0x509799,'element':_0x142929,'keepOnFocus':!0x0}),this['placeholderElement']=_0x142929);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0xf62897,_0x35ca0d={}){super(_0xf62897),this['editor']=null,this['_editorConfig']=_0x35ca0d,this['set']('value',_0x35ca0d['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0xf62897,'Reply...')),this['set']('submitLabel',S(_0xf62897,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x22a307(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x5ba800,_0x25d86f)=>{this['cancelButtonView']['fire']('execute'),_0x25d86f();}),this['keystrokes']['set']('Ctrl+Enter',(_0x3fea21,_0x1f10bf)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x1f10bf());}),this['on']('submit',(_0x41c267,_0x19c5db)=>{_0x19c5db['length']>0xfde8?(alert(S(_0xf62897,'TOO_LONG_COMMENT_ALERT',[_0x19c5db['length'],0xfde8])),_0x41c267['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Ut(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x4cc43f=this['editor'];this['element']['insertBefore'](_0x4cc43f['ui']['element'],this['element']['firstChild']),_0x4cc43f['model']['document']['on']('change',()=>this['value']=_0x4cc43f['getData']()),_0x4cc43f['bind']('placeholder')['to'](this),this['focusables']['add'](_0x4cc43f['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x543666){-0x1===_0x543666?(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:_0x2c65b2}=this,_0x2c834a=new _0x3e77fe(_0x2c65b2);return _0x2c834a['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x2c834a['withText']=!0x0,_0x2c834a['bind']('label')['to'](this,'submitLabel'),_0x2c834a['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x2c834a['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x10d4c7,_0x5a8105)=>!_0x5a8105&&!!_0x10d4c7['trim']()),_0x2c834a;}['_createCancelButton'](){const {locale:_0x4c193a}=this,_0x515062=new _0x3e77fe(_0x4c193a);return _0x515062['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x515062['label']=S(_0x4c193a,'Cancel'),_0x515062['withText']=!0x0,_0x515062['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x515062;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x316548=>{this['focusTracker']['add'](_0x316548['element']);}),this['focusables']['on']('change',(_0x4a9c25,_0x22c9df)=>{for(const _0xfc425c of Array['from'](_0x22c9df['added'])['reverse']())this['focusTracker']['add'](_0xfc425c['element']);});}}class ie extends kt{constructor(_0x50760a,_0x2eb2b8,_0x4eadd0){super(_0x50760a),this['commentInputView']=new os(_0x50760a,_0x4eadd0),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x459180,_0xebe467)=>_0x459180||!!_0xebe467),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 _0x2ef72b(_0x50760a,_0x2eb2b8),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'](_0x4b106b){this['commentInputView']['focus'](_0x4b106b);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x2765aa,_0x4482cb)=>{const {submitButtonView:_0x138628,cancelButtonView:_0x1f7111,editor:_0x4c559e}=this['commentInputView'];[_0x138628['element'],_0x1f7111['element'],_0x4c559e?_0x4c559e['editing']['view']['getDomRoot']():null]['filter'](_0x4e3a20=>_0x4e3a20)['some'](_0x465e85=>_0x465e85['contains'](_0x4482cb['target']))||(this['focus'](),_0x4482cb['preventDefault']());});}}class cs extends kt{constructor(_0x38a29e){super(_0x38a29e);const _0x2621da=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x2621da['to']('count',_0x226bad=>S(_0x38a29e,'NUMBER_OF_COMMENTS',_0x226bad))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x5d6cc5,_0x459994,_0x5c7144){super(_0x5d6cc5);const _0x4c1941=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x459994['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x459994,this['_config']=_0x5c7144,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x22a307(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x56beae=>this['commentViews']['map'](_0x4c91c9=>_0x4c91c9['element'])['includes'](_0x56beae['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x5d6cc5),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x59c809=>_0x59c809-this['_config']['maxCommentsWhenCollapsed']);for(const _0x53f197 of _0x459994['comments'])this['_handleNewCommentModel'](_0x53f197);this['_handleInfoComment'](),this['listenTo'](_0x459994['comments'],'add',(_0x3fb0bc,_0x24f916)=>{const _0x5b1221=this['_calculatePosition'](_0x24f916);this['length']++,this['_handleNewCommentModel'](_0x24f916,_0x5b1221),this['refreshVisibleViews']();}),this['listenTo'](_0x459994['comments'],'remove',(_0x428c16,_0x37fd30)=>{this['length']--,this['_handleRemoveCommentModel'](_0x37fd30),this['refreshVisibleViews']();}),this['listenTo'](_0x459994,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x459994,'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',_0x4c1941['if']('length','ck-hidden',_0x4a6ff8=>!_0x4a6ff8)],'aria-label':S(_0x5d6cc5,'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'](_0x1b2f5d){-0x1===_0x1b2f5d?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x221799 of this['commentViews'])_0x221799['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x1e27d6,_0x1df596){const _0x4b51a5=new this['_config']['CommentView'](this['locale'],_0x1e27d6,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x4b51a5['viewUid']=_0x1e27d6['id'],_0x4b51a5['delegate']('removeComment')['to'](this),_0x4b51a5['delegate']('updateComment')['to'](this),_0x4b51a5['delegate']('resolveCommentThread')['to'](this),_0x4b51a5['delegate']('editorReady')['to'](this),_0x4b51a5['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x4b51a5,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x4b51a5,_0x1df596);}['_calculatePosition'](_0x2b58dc){const _0x2a73eb=this['_model']['_findOptimalIndex'](_0x2b58dc);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x2b58dc['authoredAt']?_0x2a73eb-0x1:_0x2a73eb:_0x2a73eb-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x1a7262={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':S(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x1a7262,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x1a7262));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x5aa32d){const _0x2d6113=this['commentViews']['remove'](_0x5aa32d['id']);this['stopListening'](_0x2d6113),_0x2d6113['isEditMode']&&this['_updateHasDirtyComment'](),_0x2d6113['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x5953b4=>_0x5953b4['isEditMode']);}['_rearrangeCollapse'](){const _0x29d5b1=function(_0x1145b2){const _0x3e343f=new _0x11cbf4();for(const _0x8925c8 of _0x1145b2)_0x3e343f['add'](_0x8925c8);return _0x3e343f;}(this['commentViews']),_0x3d97e7=this['_collapsedCommentsView']['count'];for(let _0x42b66b=0x1;_0x42b66b<=_0x3d97e7;_0x42b66b++)_0x29d5b1['remove'](0x1);for(const _0xd6159 of _0x29d5b1)_0xd6159['collapse']();_0x3d97e7>0x0&&_0x29d5b1['add'](this['_collapsedCommentsView'],0x1),as(_0xcc1a29(Array['from'](this['visibleViews']),Array['from'](_0x29d5b1)),this['visibleViews'],_0x29d5b1);}['_rearrangeExpand'](){as(_0xcc1a29(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x489463 of this['visibleViews'])_0x489463['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x2676f1=>{this['focusTracker']['add'](_0x2676f1['element']),this['keystrokes']['listenTo'](_0x2676f1['element']);}),this['commentViews']['on']('change',(_0xfa0cb,_0x5d1bcc)=>{for(const _0x3f3f22 of _0x5d1bcc['removed'])this['focusTracker']['remove'](_0x3f3f22['element']),this['keystrokes']['stopListening'](_0x3f3f22['element']);for(const _0x35f199 of Array['from'](_0x5d1bcc['added'])['reverse']())this['focusTracker']['add'](_0x35f199['element']),this['keystrokes']['listenTo'](_0x35f199['element']);});}}function as(_0x567ea4,_0x4c1dcb,_0x4d5bd1){let _0x59c50e=0x0;for(const _0x25c5bb of _0x567ea4)switch(_0x25c5bb){case'insert':_0x4c1dcb['add'](_0x4d5bd1['get'](_0x59c50e),_0x59c50e),_0x59c50e++;break;case'delete':_0x4c1dcb['remove'](_0x59c50e);break;case'equal':_0x59c50e++;}}class ls extends kt{constructor(_0x2cf961){super(_0x2cf961);const _0x1c37e0=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x1c37e0['to']('contextValue',_0x50e3cf=>S(_0x2cf961,'THREAD_CONTEXT_LABEL',_0x50e3cf)),'tabindex':-0x1},'children':[{'text':_0x1c37e0['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Zt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x4742f7,_0x46be97){super(_0x4742f7);const _0x61a7c0=this['bindTemplate'];this['_model']=_0x46be97,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x22a307(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x4f503b=>!!_0x4f503b),this['bind']('contextValue')['to'](this['_model'],'context',_0x2eb319=>_0x2eb319&&_0x2eb319['value']?this['_trimContextValue'](_0x2eb319['value']):S(this['locale'],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':['ck-context-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-context',_0x61a7c0['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 _0xc3c310=new _0x3e77fe(this['locale']);return _0xc3c310['label']=S(this['locale'],'Reopen'),_0xc3c310['tooltip']=S(this['locale'],'Reopen'),_0xc3c310['icon']='<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22m5.042\x209.367\x202.189\x201.837a.75.75\x200\x200\x201-.965\x201.149l-3.788-3.18a.747.747\x200\x200\x201-.21-.284.75.75\x200\x200\x201\x20.17-.945L6.23\x204.762a.75.75\x200\x201\x201\x20.964\x201.15L4.863\x207.866h8.917A.75.75\x200\x200\x201\x2014\x207.9a4\x204\x200\x201\x201-1.477\x207.718l.344-1.489a2.5\x202.5\x200\x201\x200\x201.094-4.73l.008-.032H5.042z\x22/></svg>',_0xc3c310['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x25bd63=>!_0x25bd63),_0xc3c310['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x50488e,_0x4fe6ef)=>_0x50488e&&_0x4fe6ef),_0xc3c310['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0xc3c310;}['_trimContextValue'](_0x3ef32f){if(_0x3ef32f['length']<0x96)return _0x3ef32f;const _0x26d8b9=_0x3ef32f['lastIndexOf']('\x20',0x93);return _0x3ef32f['substring'](0x0,_0x26d8b9>-0x1?_0x26d8b9:0x93)+'...';}['_attachContextActions'](){const _0x3f36ee=this['element']['querySelector']('.ck-context'),_0x8c8e9f=_0x3f36ee['querySelector']('.ck-context__value');this['listenTo'](_0x3f36ee,'mouseenter',()=>{_0x8c8e9f['offsetWidth']<_0x8c8e9f['scrollWidth']&&_0x3f36ee['classList']['add']('overlay');}),this['listenTo'](_0x3f36ee,'mouseleave',()=>{_0x3f36ee['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x1c6a7a of this['focusables'])this['focusTracker']['add'](_0x1c6a7a['element']),this['keystrokes']['listenTo'](_0x1c6a7a['element']);}['_createContextView'](){const _0x107bab=new ls(this['locale']);return _0x107bab['bind']('contextValue')['to'](this),_0x107bab;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x47468f,_0x4f1b89,_0xbca10c,_0x205fa8){super(_0x47468f),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x4f1b89,this['_localUser']=_0xbca10c,this['_config']=_0x205fa8,this['commentThreadHeaderView']=new Zt(_0x47468f,_0x4f1b89),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new ts(_0x47468f,S(_0x47468f,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x47468f,_0x4f1b89,Object['assign']({'CommentView':this['_config']['CommentView']},_0x205fa8)),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',(_0x2d2aae,_0x24209e)=>_0x2d2aae||!!_0x24209e),this['bind']('isUnlinked')['to'](_0x4f1b89,'unlinkedAt',_0x1d3792=>!!_0x1d3792),this['bind']('ariaLabel')['to'](this,'length',_0x5e796c=>{const _0x352a4b=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x5e796c,_0x352a4b]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x22a307(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x10bf12=>_0x10bf12['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x25184d(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x19d946=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xea7b93=_0x19d946['commentInputView'];return _0x19d946['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0xea7b93,'value',(_0x37f068,_0x210b5a,_0xb7b347,_0x5ad4ed,_0x42e89a)=>!!_0x42e89a||!!_0x5ad4ed&&_0xb7b347&&!_0x210b5a||_0x37f068&&_0xb7b347&&!_0x210b5a),_0xea7b93['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x14772a,_0x51f5b7,_0xe9480d)=>{let _0x29febd;return _0x29febd=_0xe9480d&&_0x51f5b7?'Reply\x20to\x20reopen\x20discussion...':_0x14772a?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x29febd);}),_0xea7b93['bind']('submitLabel')['to'](this,'length',_0x3bd8d2=>S(this['locale'],_0x3bd8d2?'Reply':'Comment')),_0xea7b93['on']('submit',(_0x4f6a15,_0x332e78)=>{this['fire']('addComment',_0x332e78),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0xea7b93['on']('cancel',()=>{this['focus']();}),_0xea7b93['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0xea7b93['on']('cancel',_0x2aafb7=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x2aafb7['stop']());}),this['on']('change:isActive',(_0x1df547,_0x3a9968,_0x389a1f)=>{_0x389a1f||this['length']||_0xea7b93['value']||this['fire']('removeCommentThread');}),_0x19d946;}}class vt extends/* #__PURE__ -- @preserve */
27
- ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x2ccd44,_0x447746,_0x2a589b,_0x31ed61){super(_0x2ccd44,_0x447746,_0x2a589b,_0x31ed61),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x2ccd44,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x1ef129,_0x46f414,_0x586c0f)=>{_0x586c0f||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x2afde9,_0x4e7b18,_0x25f93d)=>{_0x25f93d&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x32dc8e=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x32dc8e['if']('isActive','ck-thread--active'),_0x32dc8e['if']('isUnlinked','ck-thread--unlinked'),_0x32dc8e['if']('isConfirm','ck-thread--remove-confirmation'),_0x32dc8e['to']('actionIndicator',_0x5dcd59=>_0x5dcd59?'ck-thread--'+_0x5dcd59:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x32dc8e['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 _0x33eba8 of this['commentsListView']['commentViews'])_0x33eba8['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x7c1628}=this,_0x18120d=this['commentsListView']['commentViews']['get'](0x0);_0x18120d===this['_boundFirstCommentView']||_0x18120d['isSystemComment']||(this['_boundFirstCommentView']=_0x18120d,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x18120d,'actionIndicator',_0x9c3518=>'remove'===_0x9c3518?'remove':null),_0x18120d['placeholder']=S(_0x7c1628,'Write\x20a\x20comment...'),_0x18120d['removeButton']['on']('execute',_0x452ae7=>{_0x452ae7['stop'](),this['showConfirm'](S(_0x7c1628,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x18120d['focus']();}),_0x18120d['actionBar']['add'](this['resolveButton'],0x0),_0x18120d['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x4c4b5d=new _0x446621(this['locale']);return _0x4c4b5d['label']=S(this['locale'],'Resolve'),_0x4c4b5d['tooltip']=S(this['locale'],'Resolve'),_0x4c4b5d['icon']=_0x3412ec['check'],_0x4c4b5d['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x4c4b5d['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x463472=>!_0x463472),_0x4c4b5d['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4582b4,_0x58b1b4)=>_0x4582b4&&!_0x58b1b4),_0x4c4b5d['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x4c4b5d;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class hs extends kt{constructor(_0x3c19e1){super(_0x3c19e1),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x57e2a3,_0x567416,_0x42528c)=>{this['element']['innerHTML']=_0x42528c;}),this['element']['innerHTML']=this['content'];}}class rs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x374530,_0x1fa959,_0x1db0b4){super(_0x374530),this['_model']=_0x1fa959,this['_config']=_0x1db0b4,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x1fa959,'content',_0x1fa959,'authoredAt',(_0x298ebb,_0x2b3709)=>S(_0x374530,'COMMENT_ARIA_LABEL',[_0x1fa959['author']['name'],_0x1db0b4['formatDateTime'](_0x2b3709),new DOMParser()['parseFromString'](_0x298ebb,'text/html')['body']['textContent'],_0x1fa959['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new ts(_0x374530,S(_0x374530,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x36f2fa(),this['focusTracker']=new _0x22a307(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xc76272=>_0xc76272['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['expand'](){this['isCollapsed']=!0x1;}['collapse'](){this['isEditMode']||(this['isCollapsed']=!0x0);}['focus'](){this['element']['focus']();}['render'](){super['render'](),this['_setupKeyboardNavigation']();}async['destroy'](){await this['visibleView']['get'](0x0)['destroy'](),super['destroy']();}['switchToEditMode'](){this['isEditMode']||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentInputView']()));}['switchToDisplayMode'](){this['isEditMode']&&(this['isEditMode']=!0x1,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentContentView']()));}['getExternalCommentNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?S(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):S(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?S(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):S(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x7cb542=new hs(this['locale']);return _0x7cb542['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x38c544,_0x16f44e)=>_0x16f44e?_0x4a0a95(_0x38c544,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x38c544),_0x7cb542;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x28b7ea=new os(this['locale'],this['_config']['editorConfig']);return _0x28b7ea['value']=this['_model']['content'],_0x28b7ea['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x28b7ea['submitLabel']=S(this['locale'],'Save'),_0x28b7ea['on']('submit',(_0x3d6543,_0x4b4ce1)=>{this['fire']('updateComment',this['_model']['id'],_0x4b4ce1),this['switchToDisplayMode'](),this['focus']();}),_0x28b7ea['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x28b7ea['once']('editorReady',()=>{_0x28b7ea['focus']();}),_0x28b7ea['createEditor'](),_0x28b7ea['delegate']('editorReady')['to'](this),_0x28b7ea['delegate']('editorDestroyed')['to'](this),_0x28b7ea;}['_setupKeyboardNavigation'](){const _0x314a29=this['element'];this['keystrokes']['listenTo'](_0x314a29);for(const _0x2ce6be of this['focusables'])this['focusTracker']['add'](_0x2ce6be['element']),this['keystrokes']['listenTo'](_0x2ce6be['element']);this['focusables']['on']('change',(_0x2a6d72,_0x2b7a3a)=>{for(const _0x5d9379 of _0x2b7a3a['removed'])this['focusTracker']['remove'](_0x5d9379['element']),this['keystrokes']['stopListening'](_0x5d9379['element']);for(const _0x352a67 of _0x2b7a3a['added'])this['focusTracker']['add'](_0x352a67['element']),this['keystrokes']['listenTo'](_0x352a67['element']);}),this['keystrokes']['set']('enter',(_0x2553c8,_0x20740f)=>{_0x314a29===_0x2553c8['target']&&(this['focusCycler']['focusFirst'](),_0x20740f());}),this['keystrokes']['set']('esc',(_0x4bd5ad,_0x2670f3)=>{_0x314a29!==_0x4bd5ad['target']&&(this['focus'](),_0x2670f3());});}}class gt extends/* #__PURE__ -- @preserve */
28
- ti(rs){['actionBar'];['userView'];constructor(_0x484da5,_0x164939,_0x2aa4b7){super(_0x484da5,_0x164939,_0x2aa4b7),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x484da5,'Reply...')),this['bind']('authoredAt')['to'](_0x164939),this['bind']('resolvedAt')['to'](_0x164939),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 _0x2ef72b(_0x484da5,_0x164939['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x164939,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0xd15ec5=this['bindTemplate'],_0x566005=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0xd15ec5['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xd15ec5['to']('authoredAt',_0x3c23da=>this['_config']['formatDateTime'](_0x3c23da))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0xd15ec5['if']('isEditMode','ck-comment__actions--hidden'),_0xd15ec5['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']&&_0x566005['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0xd15ec5['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0xd15ec5['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0xd15ec5['if']('isEditMode','ck-comment--edit'),_0xd15ec5['if']('isSystemComment','ck-comment--info'),_0xd15ec5['to']('actionIndicator',_0x2adb16=>_0x2adb16?'ck-comment--'+_0x2adb16:'')],'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':_0x566005}]}]};}['_createEditButton'](){const _0x58d8c1=new _0x3e77fe(this['locale']);return _0x58d8c1['label']=S(this['locale'],'Edit'),_0x58d8c1['icon']=_0x3412ec['pencil'],_0x58d8c1['withText']=!0x0,_0x58d8c1['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x58d8c1['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x262ff3=>!_0x262ff3),_0x58d8c1['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x58d8c1['on']('execute',()=>this['switchToEditMode']()),_0x58d8c1;}['_createRemoveButton'](){const _0xe7e909=new _0x3e77fe(this['locale']);return _0xe7e909['label']=S(this['locale'],'Remove'),_0xe7e909['icon']='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M5.2\x207h9.2c.6\x200\x201\x20.4\x201\x201v9.9c0\x20.5-.4\x201-1\x201H5.2a1\x201\x200\x200\x201-1-1V8c0-.6.4-1\x201-1zm1\x201.5c-.3\x200-.5.2-.5.5v8c0\x20.3.2.5.5.5h.5c.2\x200\x20.5-.2.5-.5V9c0-.3-.3-.5-.5-.5h-.5zm3.2\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.4zm3.5\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.5zm-1.4-7.1H8.3L6.5\x203.6H3.8c-.5\x200-.7.3-.7.8s.2.7.7.7h12c.6\x200\x20.9-.2.9-.7\x200-.5-.3-.8-1-.8h-2.4l-1.8-2.2z\x22/></svg>\x0a',_0xe7e909['withText']=!0x0,_0xe7e909['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0xe7e909['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x489c17=>!_0x489c17),_0xe7e909['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0xe7e909['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0xe7e909;}['_createDropdown'](){const _0x5da519=_0x398c32(this['locale'],_0x5ae254),_0x32bf45=_0x5da519['panelView']['children'],_0x1db8a5=new _0x4150e1(this['locale']),_0x5711ab=_0x5da519['bindTemplate'];_0x11a468(_0x5da519,()=>this['items']['find'](_0x47913d=>_0x47913d['isVisible'])),_0x5da519['extendTemplate']({'attributes':{'class':[_0x5711ab['if']('isVisible','ck-hidden',_0x411ca4=>!_0x411ca4)]}});const _0x440cc6=(_0x55fc68,_0xdfd7ff=-0x1)=>{const _0x58b513=new _0x12e8bd(this['locale']);_0x58b513['children']['add'](_0x55fc68);const _0x4c85be=_0xdfd7ff>-0x1?_0xdfd7ff:_0x1db8a5['items']['length'];_0x1db8a5['items']['add'](_0x58b513,_0x4c85be);const _0x37cf4e=Array['from'](this['items']);_0x5da519['unbind']('isEnabled','isVisible'),_0x5da519['bind']('isEnabled')['toMany'](_0x37cf4e,'isEnabled',(..._0x20cfca)=>_0x20cfca['some'](_0x279c44=>_0x279c44)),_0x5da519['bind']('isVisible')['toMany'](_0x37cf4e,'isVisible',(..._0x227d06)=>_0x227d06['some'](_0x69f58a=>_0x69f58a));};_0x5da519['panelPosition']='sw',_0x5da519['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x3412ec['threeVerticalDots']});for(const _0x4b50ca of this['items'])_0x440cc6(_0x4b50ca);return _0x32bf45['add'](_0x1db8a5),_0x5da519['listenTo'](this['items'],'add',(_0xaa9b80,_0xefbffd,_0x10950b)=>{_0x440cc6(_0xefbffd,_0x10950b);}),_0x5da519['listenTo'](this['items'],'remove',(_0x40997b,_0x58ecb4,_0x681901)=>{_0x1db8a5['items']['remove'](_0x681901);}),_0x5da519;}['_attachActions'](_0x2f9dab,_0xf44e32){const _0x590e8c=_0x2f9dab&&_0x2f9dab['element'];_0x590e8c&&(this['listenTo'](_0x590e8c,'mouseenter',()=>this['actionIndicator']=_0xf44e32),this['listenTo'](_0x590e8c,'focus',()=>this['actionIndicator']=_0xf44e32),this['listenTo'](_0x590e8c,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x590e8c,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x3b18f9=super['_createCommentInputView']();return _0x3b18f9['bind']('placeholder')['to'](this),_0x3b18f9;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0x4c4d4b){const _0x4021df=Dt(_0x4c4d4b,0x1e),_0x3f457c=new MutationObserver(_0x3b88a6=>{for(const _0x17b5f4 of _0x3b88a6)('attributes'==_0x17b5f4['type']&&'class'==_0x17b5f4['attributeName']||'childList'==_0x17b5f4['type']||'characterData'==_0x17b5f4['type'])&&_0x4021df();});return{'attach'(_0x27aef2){_0x3f457c['observe'](_0x27aef2,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x3f457c['disconnect'](),_0x4021df['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x53557b,_0xe4955d){super(_0x53557b),this['id']=_0x5ec6e9(),this['focusTracker']=new _0x22a307(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x1c84ec,_0x41a184)=>this['fire']('Esc',_0x41a184)),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'](_0xe4955d),this['mainView']=_0xe4955d;const _0x7c8943=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x7c8943['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 _0x1d8b23=this['element']['clientHeight'];_0x1d8b23&&(this['height']=_0x1d8b23);}}class d extends/* #__PURE__ -- @preserve */
29
- _0x1eb62e(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x54d2cd,target:_0xa0a0e5,type:_0xd923bb,isVisible:_0x516f1b=!0x0}){super(),this['view']=_0x54d2cd,this['view']['element']||this['view']['render'](),this['_type']=_0xd923bb,this['_target']=_0xa0a0e5,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x11cbf4([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x5c6e60,_0x3a2cbe)=>{this['view']['focusTracker']['add'](_0x3a2cbe);}),this['focusableElements']['on']('remove',(_0x2d77cc,_0x40a5c0)=>{this['view']['focusTracker']['remove'](_0x40a5c0);}),this['set']('isVisible',_0x516f1b);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x31d65d=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x31d65d),_0x31d65d;}get['targetRect'](){const _0xadf83c=this['target'];if(null===_0xadf83c)return null;if(_0xadf83c instanceof _0x12a62b)return _0xadf83c;const _0x156180=_0xadf83c['filter'](_0x2dc5b7=>function(_0x5cc76d){const _0x45162b=_0x5cc76d['offsetParent'];if(_0x45162b)return!0x0;const _0x5f1b7d=_0x5cc76d['getClientRects']()['item'](0x0);return!!_0x5f1b7d;}(_0x2dc5b7));return 0x0===_0x156180['length']?null:new _0x12a62b(_0x156180[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x36901d){this['view']['isActive']=_0x36901d,this['view']['mainView']['isActive']=_0x36901d;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x3eb081){if(!(null===_0x3eb081||_0x3eb081 instanceof _0x12a62b||Array['isArray'](_0x3eb081)&&_0x3eb081['every'](_0x4e15c5=>ne(_0x4e15c5))))throw new _0x766f41('annotation-invalid-target',null,{'target':_0x3eb081});}['_getNormalizedTarget'](){const _0x362ad4='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x362ad4)?[_0x362ad4]:_0x362ad4;}}function ne(_0x5b0ba5){return null!==_0x5b0ba5&&'object'==typeof _0x5b0ba5&&'nodeType'in _0x5b0ba5&&0x1===_0x5b0ba5['nodeType'];}class x extends _0x11cbf4{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x2f55e9=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x22a307(),this['_focusTracker']['on']('change:isFocused',(_0x4a7a30,_0x476401,_0xcb9d14)=>{_0xcb9d14||this['fire']('blur');});for(const _0x5f54f3 of _0x2f55e9)this['add'](_0x5f54f3);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x4a1e9c){if(this['has'](_0x4a1e9c))throw new _0x766f41('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x4a1e9c['innerView'],_0x4a1e9c),this['_viewToAnnotation']['set'](_0x4a1e9c['view'],_0x4a1e9c);for(const _0x45cd19 of _0x4a1e9c['focusableElements'])this['_focusTracker']['add'](_0x45cd19);this['listenTo'](_0x4a1e9c['focusableElements'],'add',(_0x173366,_0x3dc2c7)=>{this['_focusTracker']['add'](_0x3dc2c7);}),this['listenTo'](_0x4a1e9c['focusableElements'],'remove',(_0x479680,_0x4e10b9)=>{this['_focusTracker']['remove'](_0x4e10b9);}),this['listenTo'](_0x4a1e9c['view']['focusTracker'],'change:isFocused',(_0x387472,_0x5e2732,_0x3e651a)=>{_0x3e651a&&this['fire']('focus',_0x4a1e9c);}),_0x4a1e9c['updateTargetRect']();const _0x16811b=this['_getOrderInContent'](_0x4a1e9c['view']['targetRect']);return super['add'](_0x4a1e9c,_0x16811b);}['remove'](_0x3f93f9){if(!this['has'](_0x3f93f9))throw new _0x766f41('annotationcollection-not-existing-item',null);this['stopListening'](_0x3f93f9['view']['focusTracker']),this['stopListening'](_0x3f93f9['focusableElements']);for(const _0x59b0bd of _0x3f93f9['focusableElements'])this['_focusTracker']['remove'](_0x59b0bd);return this['_viewToAnnotation']['delete'](_0x3f93f9['view']),this['_innerViewToAnnotation']['delete'](_0x3f93f9['innerView']),super['remove'](_0x3f93f9);}['getByInnerView'](_0x24c03c){return this['_innerViewToAnnotation']['get'](_0x24c03c);}['getByView'](_0x2a16f2){return this['_viewToAnnotation']['get'](_0x2a16f2);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x35736c of this)_0x35736c['updateTargetRect']();this['_sort']();}['_sort'](){const _0x264bd5=Array['from'](this)['sort']((_0x5a786f,_0x3cfdab)=>v(_0x5a786f['view']['targetRect'],_0x3cfdab['view']['targetRect']));for(let _0x463f2e=_0x264bd5['length']-0x1;_0x463f2e>0x0;_0x463f2e--){const _0x524783=_0x264bd5[_0x463f2e];_0x463f2e!==this['getIndex'](_0x524783)&&(this['remove'](_0x524783),this['add'](_0x524783));}}['_getOrderInContent'](_0x29fedc){let _0x30a06b=0x0;if(!_0x29fedc)return this['length'];for(const _0x45a2bd of this){const _0x223285=_0x45a2bd['view']['targetRect'];if(_0x223285){if(v(_0x29fedc,_0x223285)<0x0)return _0x30a06b;_0x30a06b++;}}return _0x30a06b;}}function v(_0x41d6d3,_0x1f9133){if(null===_0x41d6d3&&null===_0x1f9133)return 0x0;if(null===_0x41d6d3)return-0x1;if(null===_0x1f9133)return 0x1;const _0x2c7b0c=_0x41d6d3['top']-_0x1f9133['top'];return 0x0==_0x2c7b0c?_0x41d6d3['left']-_0x1f9133['left']:_0x2c7b0c;}class N extends _0x3f9f30{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x99804d){if(super(_0x99804d),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x99804d instanceof _0x21f649){const _0x36c382=_0x99804d['locale'];_0x99804d['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x36c382,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x36c382,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x36c382,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x36c382,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x36c382,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x36c382,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x36c382,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x6ba7c1){this['collection']['add'](_0x6ba7c1);}['remove'](_0x16f54b){this['collection']['remove'](_0x16f54b),_0x16f54b['destroy']();}['refreshVisibility'](){for(const _0x518331 of this['collection'])_0x518331['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0xd45640){return this['collection']['getByInnerView'](_0xd45640);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x24e787 of this['collection'])_0x24e787['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x32cb11){this['fire']('_activateAnnotation',_0x32cb11);}['createAnnotation'](_0x126a27){return new d(_0x126a27);}['createAnnotationView'](_0x49f877,_0x380344){return new T(_0x49f877,_0x380344);}['_addActiveAnnotation'](_0x1e93b3){const _0x59af73=new Set(this['activeAnnotations']);_0x59af73['add'](_0x1e93b3),this['activeAnnotations']=_0x59af73;}['_removeActiveAnnotation'](_0x16580c){const _0x2f6a31=new Set(this['activeAnnotations']);_0x2f6a31['delete'](_0x16580c),this['activeAnnotations']=_0x2f6a31;}['_bindAnnotationsToVisibleAnnotations'](){const _0x4bf05d=this['collection'],_0x31a15f=this['_visibleAnnotations'];function _0x2d61fc(_0x5a2ee5){const _0x440ee8=_0x5a2ee5['source'];_0x440ee8['isVisible']&&!_0x31a15f['has'](_0x440ee8)?_0x31a15f['add'](_0x440ee8):!_0x440ee8['isVisible']&&_0x31a15f['has'](_0x440ee8)&&_0x31a15f['remove'](_0x440ee8),_0x440ee8['view']['focusTracker']['remove'](_0x440ee8['view']['element']),_0x440ee8['view']['focusTracker']['add'](_0x440ee8['view']['element']);}this['listenTo'](_0x4bf05d,'add',(_0x4395bf,_0x3efd4d)=>{_0x3efd4d['isVisible']&&_0x31a15f['add'](_0x3efd4d),this['listenTo'](_0x3efd4d,'change:isVisible',_0x2d61fc);}),this['listenTo'](_0x4bf05d,'remove',(_0x46d81a,_0x451d5d)=>{_0x31a15f['has'](_0x451d5d)&&_0x31a15f['remove'](_0x451d5d),this['stopListening'](_0x451d5d,'change:isVisible',_0x2d61fc);});}['_setupEnterAnnotationKeystroke'](){const _0x1174bb=_0x451e5d=>{_0x451e5d['on']('ready',()=>{_0x451e5d['keystrokes']['set'](_0x122bf7,(_0x3b56f8,_0x4e3c89)=>{const _0x1527c1=_0x4b73ac(this['activeAnnotations']['values']());_0x1527c1&&(_0x1527c1['view']['focus'](),_0x4e3c89());});});};this['context']instanceof _0x21f649?_0x1174bb(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x27a2c7,_0x38aa7d)=>{_0x1174bb(_0x38aa7d);});}['_setupEscapeAnnotationHandling'](){const _0x59304=_0x13d58f=>{const _0x1f9c4a=_0x13d58f['source'],_0x2e58c6=[];let _0x2917b7;if(Array['isArray'](_0x1f9c4a['target'])){_0x2917b7=_0x1f9c4a['target'][0x0],this['context']instanceof _0x21f649?_0x2e58c6['push'](this['context']):this['context']['editors']&&_0x2e58c6['push'](...this['context']['editors']);for(const _0x3cc9f7 of _0x2e58c6)for(const _0xbfe3a7 of _0x3cc9f7['editing']['view']['domRoots']['values']())if(_0xbfe3a7['contains'](_0x2917b7))return void _0x3cc9f7['editing']['view']['focus']();_0x2917b7['focus']();}};this['listenTo'](this['collection'],'add',(_0x4512d2,_0x1a8368)=>{this['listenTo'](_0x1a8368,'escape',_0x59304,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x3fec23,_0x262265)=>{this['stopListening'](_0x262265,'escape',_0x59304);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x3f9f30{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[N,ht,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x235105){super(_0x235105),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x3fce4c=this['context']['config'];_0x3fce4c['define']('comments.maxCommentsWhenCollapsed',0x2),_0x3fce4c['define']('comments.maxThreadTotalWeight',0x1f4),_0x3fce4c['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x3fce4c['define']('comments.CommentThreadView',vt),_0x3fce4c['define']('comments.CommentView',gt),_0x3fce4c['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0xc7c70b=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0xd076f6,_0x41996e)=>this['_addCommentThread'](_0x41996e)),this['on']('submitCommentThread',(_0x41d0c1,_0x422f7e)=>this['_submitCommentThread'](_0x422f7e)),this['on']('resolveCommentThread',(_0x5aa652,_0x15bc98)=>this['_resolveCommentThread'](_0x15bc98)),this['on']('resolveCommentThread',(_0x575ff5,_0x256793)=>this['_updateActiveAnnotation'](_0x256793),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x11c641,_0x2f4ffd)=>this['_reopenCommentThread'](_0x2f4ffd)),this['on']('reopenCommentThread',(_0x53f15a,_0x1cb8d5)=>this['_updateActiveAnnotation'](_0x1cb8d5),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x59eaec,_0x108ff8)=>this['_removeCommentThread'](_0x108ff8)),this['on']('updateCommentThread',(_0x479419,_0x3a59e1)=>this['_updateCommentThread'](_0x3a59e1)),this['on']('updateCommentThread',(_0x2bfbcc,_0x2987d9)=>this['_updateActiveAnnotation'](_0x2987d9),{'priority':'lowest'}),this['on']('addComment',(_0x2c1fda,_0x4111eb)=>this['_addComment'](_0x4111eb)),this['on']('updateComment',(_0x7ef6a0,_0x30386b)=>this['_updateComment'](_0x30386b)),this['on']('removeComment',(_0xedd73f,_0x8077c1)=>this['_removeComment'](_0x8077c1)),this['on']('addComment',(_0x257dfa,{threadId:_0x17d255,isFromAdapter:_0x23550d})=>{if(_0x23550d)return;const _0xc7242e=this['getCommentThread'](_0x17d255),_0x569766=_0xc7242e&&this['_threadToController']['get'](_0xc7242e);_0x569766&&_0x569766['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0xc7c70b,'change:activeAnnotations',(_0x45d470,_0x52301a,_0x4cdf2a)=>{const _0x178af8=Array['from'](_0x4cdf2a)['map'](_0x3f67bb=>this['_viewToController']['get'](_0x3f67bb['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x178af8?_0x178af8['model']:null;});}set['adapter'](_0x508a18){if(this['_adapter'])throw new _0x766f41('commentsrepository-adapter-already-set');this['_adapter']=_0x508a18;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x20d0de=Tt,threadId:_0x1b7c67=_0x5ec6e9(),comments:_0x471e77=[],unlinkedAt:_0x2cef4d=null,resolvedAt:_0x2471df=null,resolvedBy:_0x3c4720=null,target:_0xe54f72=null,context:_0xbe7c0f=null,attributes:_0x2fd0b4={},isResolvable:_0x3faed1=!0x0,isSubmitted:_0x3d4601=!0x1,isFromAdapter:_0x41631e=!0x1}={}){return this['fire'](bt('addCommentThread',_0x20d0de),{'channelId':_0x20d0de,'threadId':_0x1b7c67,'comments':_0x471e77,'unlinkedAt':_0x2cef4d,'resolvedAt':_0x2471df,'resolvedBy':_0x3c4720,'target':_0xe54f72,'context':_0xbe7c0f,'attributes':_0x2fd0b4,'isFromAdapter':_0x41631e,'isResolvable':_0x3faed1,'isSubmitted':_0x3d4601}),this['getCommentThread'](_0x1b7c67);}['openNewCommentThread']({channelId:_0x22d995=Tt,threadId:_0x4003c2=_0x5ec6e9(),target:_0x52eddc,context:_0x51dd24=null,isResolvable:_0x9ef4bb=!0x0}){if(this['_readOnlyChannels']['has'](_0x22d995)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x52eddc)throw new _0x766f41('commentsrepository-missing-target');const _0x304c08=this['addCommentThread']({'channelId':_0x22d995,'threadId':_0x4003c2,'target':_0x52eddc,'context':_0x51dd24,'isResolvable':_0x9ef4bb});if(!_0x304c08)return null;const _0x520f3a=this['_threadToController']['get'](_0x304c08),_0x1c00eb=_0x520f3a['view']['commentThreadInputView']['commentInputView'],_0x559a32=this['context']['plugins']['get'](N),_0x5c2a61=_0x559a32['getByInnerView'](_0x520f3a['view']);return _0x559a32['activate'](_0x5c2a61),_0x1c00eb['once']('editorReady',()=>_0x1c00eb['focus']()),_0x304c08;}['hasCommentThread'](_0x512f84){if('string'!=typeof _0x512f84)throw new _0x766f41('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x512f84);}['updateCommentThread']({channelId:_0x407465=Tt,threadId:_0x5ad69c,context:_0x1b5325,unlinkedAt:_0x13c0b,attributes:_0x49af97,isFromAdapter:_0x38c6ce=!0x1}){return this['fire'](bt('updateCommentThread',_0x407465),{'channelId':_0x407465,'threadId':_0x5ad69c,'context':_0x1b5325,'unlinkedAt':_0x13c0b,'attributes':_0x49af97,'isFromAdapter':_0x38c6ce}),this['getCommentThread'](_0x5ad69c);}['getCommentThread'](_0x1ae74c){if('string'!=typeof _0x1ae74c)throw new _0x766f41('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x1ae74c);}['fetchCommentThread']({channelId:_0x834e52,threadId:_0x4d9525}={}){const _0x4c141f=this['getCommentThread'](_0x4d9525);if(_0x4c141f)return Promise['resolve'](_0x4c141f);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x766f41('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x834e52,'threadId':_0x4d9525})['then'](_0x4776e1=>this['hasCommentThread'](_0x4d9525)?this['getCommentThread'](_0x4d9525):_0x4776e1?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x834e52},_0x4776e1)):void 0x0)['catch'](_0x511e10=>{throw console['error'](_0x511e10),new _0x766f41('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x4266c7,skipNotAttached:_0x302be1=!0x1,skipEmpty:_0x52955a=!0x1,toJSON:_0x20875e=!0x1}={}){const _0x2d611a=[];for(const _0x5e006e of this['_threads']['values']())_0x4266c7&&_0x5e006e['channelId']!==_0x4266c7||_0x302be1&&!_0x5e006e['isAttached']||_0x52955a&&0x0===_0x5e006e['length']||_0x2d611a['push'](_0x5e006e);return _0x20875e?_0x2d611a['map'](_0x1d74dc=>_0x1d74dc['toJSON']()):_0x2d611a;}['setActiveCommentThread'](_0x148d12){const _0x2abb57=this['context']['plugins']['get'](N);if(!_0x148d12)return void(this['activeCommentThread']&&_0x2abb57['deactivateAll']());const _0x5c6d42=this['getCommentThread'](_0x148d12);if(!_0x5c6d42)throw new _0x766f41('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x148d12});if(!this['_threadToController']['has'](_0x5c6d42))throw new _0x766f41('commentsrepository-active-not-attached',null,{'threadId':_0x148d12});const _0x352ffe=_0x2abb57['getByInnerView'](this['_threadToController']['get'](_0x5c6d42)['view']);_0x2abb57['activate'](_0x352ffe);}['switchReadOnly'](_0x44f8c2,_0x54196d){_0x44f8c2?this['_readOnlyChannels']['add'](_0x54196d):this['_readOnlyChannels']['delete'](_0x54196d),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x282fc7){return this['_readOnlyChannels']['has'](_0x282fc7)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x9ec0a7,_0xab758b){return new Ct(_0x9ec0a7,_0xab758b);}['setPermissions'](_0x544825,_0x4e2e5a=Tt){this['_permissions']['set'](_0x4e2e5a,_0x544825),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x1f82c1=Tt){return this['_permissions']['has'](_0x1f82c1)?this['_permissions']['get'](_0x1f82c1):_t;}['_addCommentThread']({channelId:_0x34305a,threadId:_0x3b19d8,comments:_0x737fcd,unlinkedAt:_0x461fdc,resolvedAt:_0x632170,resolvedBy:_0x29baf6,target:_0x13c12d,context:_0x32b86e,attributes:_0x550db0,isFromAdapter:_0x20f9c9,isResolvable:_0x597882,isSubmitted:_0x41e9d1}){if('string'!=typeof _0x3b19d8)throw new _0x766f41('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x3b19d8});if(this['hasCommentThread'](_0x3b19d8))throw new _0x766f41('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x3b19d8});const _0x2a8838=new oe(this,{'channelId':_0x34305a,'id':_0x3b19d8,'context':_0x32b86e,'attributes':_0x550db0,'unlinkedAt':_0x461fdc,'resolvedAt':_0x632170,'resolvedBy':_0x29baf6?this['context']['plugins']['get'](it)['getUser'](_0x29baf6):null,'isResolvable':_0x597882,'isSubmitted':_0x41e9d1||_0x20f9c9});this['_threads']['set'](_0x3b19d8,_0x2a8838);for(const _0xc10dca of _0x737fcd)_0x2a8838['_add'](this['_createNewComment']({'threadId':_0x3b19d8,..._0xc10dca}));return _0x13c12d&&_0x2a8838['attachTo'](_0x13c12d),_0x20f9c9||!_0x2a8838['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x34305a,'threadId':_0x3b19d8});}['_submitCommentThread']({channelId:_0x276792,threadId:_0x8f9f6}){if(!this['hasCommentThread'](_0x8f9f6))throw new _0x766f41('commentsrepository-missing-comment-thread',this);const _0x1c4f87=this['getCommentThread'](_0x8f9f6);if(_0x1c4f87['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x1af971,comments:_0x335f08,resolvedAt:_0x3ad675,resolvedBy:_0xa2ce26,context:_0x580957,attributes:_0x43a4ab}=_0x1c4f87,_0x367275=this['context']['plugins']['get']('PendingActions'),_0x3b5ec7=_0x367275['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x276792,'threadId':_0x1af971,'comments':_0x335f08['map'](_0x27c837=>_0x27c837['toJSON']()),'resolvedAt':_0x3ad675,'resolvedBy':_0xa2ce26?_0xa2ce26['id']:_0xa2ce26,'context':_0x580957,'attributes':_0x43a4ab})['then'](({comments:_0x5ac25e})=>{_0x367275['remove'](_0x3b5ec7);for(const _0x437c14 of _0x5ac25e)this['_updateComment']({'channelId':_0x276792,'threadId':_0x8f9f6,'commentId':_0x437c14['commentId'],'createdAt':_0x437c14['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x24f6e5=>{throw console['error'](_0x24f6e5),new _0x766f41('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x236f10,target:_0x147c1f}){const _0x56953a=this['getCommentThread'](_0x236f10);if(!_0x56953a)throw new _0x766f41('commentsrepository-attach-missing-comment-thread',this);const _0x58bf38=this['context']['plugins']['get']('PendingActions'),_0x369615=this['context']['plugins']['get'](N),_0x3ea206=this['_createCommentThreadView'](_0x56953a),_0x54ebd3=new Ct(_0x56953a,_0x3ea206);let _0x154e2f=null;_0x3ea206['on']('change:isDirty',(_0x336d7e,_0x1cc3ef,_0x1b7281)=>{_0x1b7281?_0x154e2f=_0x58bf38['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x154e2f&&(_0x58bf38['remove'](_0x154e2f),_0x154e2f=null);}),this['_threadToController']['set'](_0x56953a,_0x54ebd3),this['_viewToController']['set'](_0x3ea206,_0x54ebd3);const _0x3ae367=new T(this['context']['locale'],_0x3ea206);_0x3ae367['bind']('length')['to'](_0x3ea206),_0x3ae367['bind']('isDirty')['to'](_0x3ea206,'isDirty',_0x3ea206,'length',(_0x3ec41c,_0x875385)=>_0x3ec41c||!_0x875385),_0x3ae367['bind']('isActive')['to'](_0x3ea206),_0x3ae367['type']='comment';const _0x3e06a3=new d({'view':_0x3ae367,'target':_0x147c1f,'type':'comment','isVisible':!_0x56953a['isResolved']});return _0x3ea206['on']('escape',()=>{_0x3e06a3['fire']('escape');}),this['_bindAnnotationToEditors'](_0x3ea206,_0x3e06a3),_0x369615['add'](_0x3e06a3),_0x3e06a3;}['_bindAnnotationToEditors'](_0x2678ec,_0x21e408){this['listenTo'](_0x2678ec,'editorReady',(_0x1fcda2,_0x39adfb)=>{const _0x42ea16=_0x39adfb['ui']['view']['body']['bodyCollectionContainer'];_0x21e408['focusableElements']['add'](_0x42ea16),this['context']instanceof _0x21f649&&this['context']['ui']['focusTracker']['add'](_0x42ea16);},{'priority':'highest'}),this['listenTo'](_0x2678ec,'editorDestroyed',(_0x2e14f7,_0x2ff250)=>{const _0x7d09d0=_0x2ff250['ui']['view']['body']['bodyCollectionContainer'];_0x21e408['focusableElements']['has'](_0x7d09d0)&&_0x21e408['focusableElements']['remove'](_0x7d09d0),this['context']instanceof _0x21f649&&this['context']['ui']['focusTracker']['remove'](_0x7d09d0);});}['_unbindEditors'](_0xc20905){this['stopListening'](_0xc20905,'editorReady'),this['stopListening'](_0xc20905,'editorDestroyed');}['_createCommentThreadView'](_0x3cda24){const _0xad5c93=this['context']['plugins']['get'](it),{config:_0xe1a643,locale:_0x3c591d}=this['context'],_0x4c41c0=lt(_0xe1a643['get']('locale'));return new(0x0,(_0xe1a643['get']('comments'))['CommentThreadView'])(_0x3c591d,_0x3cda24,_0xad5c93['me'],{'editorConfig':{..._0xe1a643['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0xe1a643['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0xe1a643['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xe1a643['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xe1a643['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4c41c0,'CommentView':_0xe1a643['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x3e649a,channelId:_0x1476ce,resolvedAt:_0x18532e,resolvedBy:_0x4e3f9a,isFromAdapter:_0x3bc351}){if(!this['hasCommentThread'](_0x3e649a))throw new _0x766f41('commentsrepository-missing-comment-thread',null,{'threadId':_0x3e649a});const _0x567c40=this['getCommentThread'](_0x3e649a);if(_0x567c40['isResolved'])throw new _0x766f41('commentsrepository-resolved-comment-thread',null,{'threadId':_0x3e649a});const _0x5de7e0=this['context']['plugins']['get'](it);if(_0x567c40['resolvedBy']=_0x5de7e0['getUser'](_0x4e3f9a),_0x567c40['resolvedAt']=_0x18532e,_0x3bc351||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x144ef7=this['context']['plugins']['get']('PendingActions'),_0x46a3ac=_0x144ef7['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x1476ce,'threadId':_0x3e649a})['then'](({resolvedAt:_0xe98492,resolvedBy:_0x1c9453})=>{_0x144ef7['remove'](_0x46a3ac),_0x567c40['resolvedBy']['id']!==_0x1c9453&&(_0x567c40['resolvedBy']=_0x5de7e0['getUser'](_0x1c9453)),_0x567c40['resolvedAt']=_0xe98492;})['catch'](_0xb90c9c=>{throw console['error'](_0xb90c9c),new _0x766f41('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x1aa7eb,channelId:_0x16d7a6,isFromAdapter:_0x366d88}){if(!this['hasCommentThread'](_0x1aa7eb))throw new _0x766f41('commentsrepository-missing-comment-thread',null,{'threadId':_0x1aa7eb});const _0x4d8e76=this['getCommentThread'](_0x1aa7eb);if(!_0x4d8e76['isResolved'])throw new _0x766f41('commentsrepository-reopen-comment-thread',null,{'threadId':_0x1aa7eb});if(_0x4d8e76['resolvedBy']=null,_0x4d8e76['resolvedAt']=null,_0x366d88||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x1d9914=this['context']['plugins']['get']('PendingActions'),_0x464df1=_0x1d9914['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x16d7a6,'threadId':_0x1aa7eb})['then'](()=>_0x1d9914['remove'](_0x464df1))['catch'](_0x1e70ae=>{throw console['error'](_0x1e70ae),new _0x766f41('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0xa929a3,isFromAdapter:_0x4f222a}){const _0x215d5a=this['getCommentThread'](_0xa929a3);if(!_0x215d5a)throw new _0x766f41('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0xa929a3),this['_threads']['delete'](_0xa929a3),!_0x215d5a['isSubmitted']||_0x4f222a||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x5364ba=this['context']['plugins']['get']('PendingActions'),{channelId:_0x550f1b}=_0x215d5a,_0x3f7ee8=_0x5364ba['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x550f1b,'threadId':_0xa929a3})['then'](()=>_0x5364ba['remove'](_0x3f7ee8))['catch'](_0x417d99=>{throw console['error'](_0x417d99),new _0x766f41('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x3350e9,unlinkedAt:_0x4c1b1d,context:_0x9e4641,attributes:_0x50f754,isFromAdapter:_0x2ef0e6}){if('string'!=typeof _0x3350e9)throw new _0x766f41('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x3350e9});if(!this['hasCommentThread'](_0x3350e9))throw new _0x766f41('commentsrepository-missing-comment-thread',null,{'threadId':_0x3350e9});const _0x2e5bb3=this['getCommentThread'](_0x3350e9);let _0x14fb24=!0x1;if(void 0x0!==_0x9e4641&&_0x2e5bb3['context']!==_0x9e4641&&(_0x2e5bb3['context']=_0x9e4641,_0x14fb24=!0x0),void 0x0!==_0x4c1b1d&&_0x2e5bb3['unlinkedAt']!==_0x4c1b1d&&(_0x2e5bb3['unlinkedAt']=_0x4c1b1d,_0x14fb24=!0x0),_0x50f754&&!wt(_0x50f754,_0x2e5bb3['attributes'])&&(_0x2e5bb3['attributes']=_0x50f754,_0x14fb24=!0x0),!_0x14fb24)return Promise['resolve']();if(!_0x2e5bb3['isSubmitted']||_0x2ef0e6||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x180793=this['context']['plugins']['get']('PendingActions'),{channelId:_0x47ded1}=_0x2e5bb3,_0xaecbef=_0x180793['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x47ded1,'threadId':_0x3350e9,'context':_0x9e4641,'unlinkedAt':_0x4c1b1d,'attributes':_0x50f754})['then'](()=>_0x180793['remove'](_0xaecbef))['catch'](_0x20ebdc=>{throw console['error'](_0x20ebdc),new _0x766f41('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x448622){const _0x5bf149=this['context']['plugins']['get'](N),_0x49f038=this['getCommentThread'](_0x448622);if(_0x49f038['_isAttached']=!0x1,this['_threadToController']['has'](_0x49f038)){const _0x196fea=this['_threadToController']['get'](_0x49f038),_0x3427e3=_0x196fea['view'],_0xdd08b5=_0x5bf149['getByInnerView'](_0x3427e3);this['_threadToController']['delete'](_0x49f038),this['_viewToController']['delete'](_0x3427e3),_0xdd08b5&&_0x5bf149['remove'](_0xdd08b5),_0x196fea['destroy'](),_0x3427e3['destroy']()['then'](()=>{this['_unbindEditors'](_0x3427e3);});}}['_updateActiveAnnotation']({threadId:_0x593ffa,resolvedAt:_0x61f820}){const _0x41ffbc=!!_0x61f820,_0x22508f=this['context']['plugins']['get'](N),_0x15ed77=this['getCommentThread'](_0x593ffa);if(this['_threadToController']['has'](_0x15ed77)){const _0x413de3=this['_threadToController']['get'](_0x15ed77)['view'],_0x254c29=_0x22508f['getByInnerView'](_0x413de3);_0x254c29&&(_0x41ffbc&&_0x22508f['_removeActiveAnnotation'](_0x254c29),_0x254c29['refreshVisibility']());}}['_getExternalAuthor'](_0x492fea){const _0x1f853e=this['context']['plugins']['get'](it),_0x2ff876=pt('external:'+_0x492fea),_0x5d3456=_0x1f853e['getUser'](_0x2ff876);return _0x5d3456||_0x1f853e['addUser']({'id':_0x2ff876,'name':_0x492fea});}['_createNewComment']({threadId:_0x1d51f5,commentId:_0x4f31a6=_0x5ec6e9(),content:_0x5e654d,authorId:_0x2d503c,createdAt:_0x36a1b9,attributes:_0x5f53fe}){if('string'!=typeof _0x4f31a6)throw new _0x766f41('commentsrepository-invalid-commentid');if('string'!=typeof _0x2d503c)throw new _0x766f41('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x5e654d||!_0x5e654d['trim']())throw new _0x766f41('commentsrepository-invalid-comment-content');const _0x15d0cc=this['context']['plugins']['get'](it)['getUser'](_0x2d503c);if(!_0x15d0cc)throw new _0x766f41('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x2d503c});let _0x41d4cf=null,_0x11d134=_0x36a1b9;return _0x5f53fe&&_0x5f53fe['@external']&&(_0x41d4cf=this['_getExternalAuthor'](_0x5f53fe['@external']['authorName']),_0x11d134=new Date(_0x5f53fe['@external']['createdAt'])),new re(this,{'threadId':_0x1d51f5,'id':_0x4f31a6,'author':_0x41d4cf||_0x15d0cc,'creator':_0x15d0cc,'content':_0x5e654d,'createdAt':_0x36a1b9,'authoredAt':_0x11d134,'attributes':_0x5f53fe});}['_addComment'](_0x35472e){let {threadId:_0x1b4952,content:_0x122f63,attributes:_0x1c04fc,isFromAdapter:_0x17628a}=_0x35472e;const _0x4aaff3=this['getCommentThread'](_0x35472e['threadId']);if(!_0x4aaff3)throw new _0x766f41('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x2a2f99=this['_createNewComment'](_0x35472e),{id:_0x50de6a}=_0x2a2f99;if(_0x4aaff3['_add'](_0x2a2f99),_0x17628a||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x4aaff3['isSubmitted'])return Promise['resolve']();const _0x349300=this['context']['plugins']['get']('PendingActions'),{channelId:_0x44148f}=_0x4aaff3,_0x82b74c=_0x349300['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x1c04fc||(_0x1c04fc={}),this['adapter']['addComment']({'channelId':_0x44148f,'threadId':_0x1b4952,'commentId':_0x50de6a,'content':_0x122f63,'attributes':_0x1c04fc})['then'](_0x4c83e2=>{_0x349300['remove'](_0x82b74c),_0x4c83e2&&this['_updateComment']({'channelId':_0x44148f,'threadId':_0x1b4952,'commentId':_0x50de6a,'createdAt':_0x4c83e2['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x1ed833=>{throw console['error'](_0x1ed833),new _0x766f41('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x25a688,commentId:_0x352097,content:_0x56def8,createdAt:_0x18834f,attributes:_0x34e798,isFromAdapter:_0x59ae63}){if(void 0x0!==_0x56def8&&('string'!=typeof _0x56def8||!_0x56def8['trim']()['length']))throw new _0x766f41('commentsrepository-update-comment-invalid-content');const _0x20f5bc=this['getCommentThread'](_0x25a688),_0x1cf015=_0x20f5bc['getComment'](_0x352097);if(!_0x1cf015)throw new _0x766f41('commentsrepository-update-missing-comment',this);let _0x5b745d=!0x1;if(_0x56def8&&_0x56def8!==_0x1cf015['content']&&(_0x1cf015['isEditable']||_0x59ae63)&&(_0x1cf015['content']=_0x56def8,_0x5b745d=!0x0),_0x18834f&&_0x18834f!==_0x1cf015['createdAt']&&(_0x1cf015['createdAt']=_0x18834f,_0x1cf015['attributes']&&_0x1cf015['attributes']['@external']||(_0x1cf015['authoredAt']=_0x18834f),_0x5b745d=!0x0),_0x34e798&&!wt(_0x34e798,_0x1cf015['attributes'])&&(_0x1cf015['attributes']=_0x34e798,_0x5b745d=!0x0),!_0x5b745d)return Promise['resolve']();if(_0x20f5bc['fire']('commentUpdated'),_0x59ae63||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x248335=this['context']['plugins']['get']('PendingActions'),{channelId:_0x45d34d}=this['getCommentThread'](_0x1cf015['threadId']),_0x569429=_0x248335['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x45d34d,'threadId':_0x25a688,'commentId':_0x352097,'content':_0x56def8,'attributes':_0x34e798})['then'](()=>_0x248335['remove'](_0x569429))['catch'](_0x1ea511=>{throw console['error'](_0x1ea511),new _0x766f41('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x1ca062,commentId:_0x3a97d6,isFromAdapter:_0x5b90cb}){const _0x35ddbd=this['getCommentThread'](_0x1ca062),_0x43aa18=_0x35ddbd['getComment'](_0x3a97d6);if(!_0x43aa18)throw new _0x766f41('commentsrepository-remove-missing-comment',this);if(_0x35ddbd['_remove'](_0x43aa18),_0x5b90cb||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x170556=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2239d4}=_0x35ddbd,_0x1417c5=_0x170556['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x2239d4,'threadId':_0x1ca062,'commentId':_0x3a97d6})['then'](()=>_0x170556['remove'](_0x1417c5))['catch'](_0x227cb5=>{throw console['error'](_0x227cb5),new _0x766f41('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
30
- _0x1eb62e(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x3ca689,_0x14c2b9){super();const _0x447273=_0x14c2b9['isResolvable'];this['channelId']=_0x14c2b9['channelId'],this['id']=_0x14c2b9['id'],this['comments']=new _0x11cbf4(),this['_repository']=_0x3ca689,this['_isAttached']=!0x1,this['_isSubmitted']=_0x14c2b9['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x3ca689,'_permissions',_0x3ca689,'_readOnlyChannels',()=>_0x3ca689['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x3ca689,'_permissions',()=>_0x3ca689['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x3ca689,'_permissions',()=>{const _0x3afc15=_0x3ca689['getPermissions'](this['channelId']);return _0x3afc15['write']||_0x3afc15['admin'];}),this['bind']('isResolvable')['to'](_0x3ca689,'_permissions',()=>_0x447273&&_0x3ca689['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x14c2b9['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x5f57b6,_0x568f64)=>_0x5f57b6?_0x568f64?_0x5f57b6<_0x568f64?_0x5f57b6:_0x568f64:_0x5f57b6:_0x568f64),this['set']('unlinkedAt',_0x14c2b9['unlinkedAt']||null),this['set']('resolvedAt',_0x14c2b9['resolvedAt']||null),this['set']('resolvedBy',_0x14c2b9['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x3b3080=>!!_0x3b3080),this['set']('attributes',_0x14c2b9['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x4b7492,_0x2934f2)=>_0x4b7492+_0x2934f2['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x1ce57f,id:_0x309290}=this;this['_repository']['fire'](bt('submitCommentThread',_0x1ce57f),{'channelId':_0x1ce57f,'threadId':_0x309290});}['setUnlinkedAt'](_0x347154){this['_update']({'unlinkedAt':_0x347154});}['resolve']({resolvedAt:_0x5f50c=new Date(),resolvedBy:_0x480541=null,isFromAdapter:_0x41d285=!0x1}={}){const _0x37839f=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0xd0a3ba,id:_0x447a9a}=this;this['_repository']['fire'](bt('resolveCommentThread',_0xd0a3ba),{'channelId':_0xd0a3ba,'threadId':_0x447a9a,'resolvedAt':_0x5f50c,'resolvedBy':_0x480541||_0x37839f['id'],'isFromAdapter':_0x41d285});}['reopen']({isFromAdapter:_0x4ddcfb=!0x1}={}){const {channelId:_0x47a3bd,id:_0x11be53}=this;this['_repository']['fire'](bt('reopenCommentThread',_0x47a3bd),{'channelId':_0x47a3bd,'threadId':_0x11be53,'isFromAdapter':_0x4ddcfb});}['setContext'](_0x55132e){this['context']||this['_update']({'context':_0x55132e});}['setAttribute'](_0xddf9b3,_0x157662){const _0x243551=It(this['attributes']);At(_0x243551,_0xddf9b3,_0x157662),this['_update']({'attributes':_0x243551});}['removeAttribute'](_0x1319c9){const _0x35638c=It(this['attributes']);yt(_0x35638c,_0x1319c9),this['_update']({'attributes':_0x35638c});}['remove']({isFromAdapter:_0x62a43d=!0x1}={}){const {channelId:_0x2865ee,id:_0x4f1923}=this;this['_repository']['fire'](bt('removeCommentThread',_0x2865ee),{'channelId':_0x2865ee,'threadId':_0x4f1923,'isFromAdapter':_0x62a43d});}['attachTo'](_0x578569){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x578569});}['addComment'](_0x4c4861){const {channelId:_0x1ad79a,id:_0x583318}=this;this['_repository']['fire'](bt('addComment',_0x1ad79a,_0x583318),Object['assign']({'channelId':_0x1ad79a,'threadId':_0x583318},_0x4c4861));}['getComment'](_0x881e13){if('string'!=typeof _0x881e13)throw new _0x766f41('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x881e13});return this['comments']['get'](_0x881e13);}['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'](_0x1c309a=>_0x1c309a['toJSON']()),'attributes':this['attributes']};}['_add'](_0x17df52){return this['listenTo'](_0x17df52,'change:authoredAt',()=>{const _0x109c0d=this['_findOptimalIndex'](_0x17df52),_0x32668d=this['comments'];_0x109c0d-0x1!=_0x32668d['getIndex'](_0x17df52)&&_0x109c0d+0x1!=_0x32668d['getIndex'](_0x17df52)&&(this['_remove'](_0x17df52),this['_add'](_0x17df52));}),this['comments']['add'](_0x17df52,this['_findOptimalIndex'](_0x17df52));}['_update'](_0xe9de00){const {channelId:_0x2eae66,id:_0xb4e787}=this;this['_repository']['fire'](bt('updateCommentThread',_0x2eae66),{..._0xe9de00,'channelId':_0x2eae66,'threadId':_0xb4e787});}['_remove'](_0xa4a080){return this['stopListening'](_0xa4a080),_0xa4a080['destroy'](),this['comments']['remove'](_0xa4a080);}['_findOptimalIndex'](_0x5ac217){const _0x178faf=this['comments']['find'](_0x4bf24f=>new Date(_0x4bf24f['authoredAt'])['getTime']()>new Date(_0x5ac217['authoredAt'])['getTime']());return _0x178faf?this['comments']['getIndex'](_0x178faf):this['length'];}}class re extends/* #__PURE__ -- @preserve */
31
- _0x1eb62e(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x12c9e6,_0x262e22){super();const _0x2b1c8c=_0x12c9e6['context']['plugins']['get'](it)['me'],_0x27f83b=_0x12c9e6['getCommentThread'](_0x262e22['threadId']),_0x10370a=0x0===_0x27f83b['comments']['length'],_0x221aed=_0x2b1c8c===_0x262e22['author'];this['id']=_0x262e22['id'],this['threadId']=_0x262e22['threadId'],this['author']=_0x262e22['author'],this['creator']=_0x262e22['creator'],this['isExternal']=Boolean(_0x262e22['attributes']&&_0x262e22['attributes']['@external']),this['set']('content',_0x262e22['content']),this['createdAt']=_0x262e22['createdAt']||new Date(),this['set']('authoredAt',_0x262e22['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x27f83b,'resolvedAt'),this['set']('attributes',_0x262e22['attributes']||{}),this['bind']('isEditable')['to'](_0x12c9e6,'_permissions',()=>{const _0x729649=_0x12c9e6['getPermissions'](_0x27f83b['channelId'])['write'],_0x5994c4=_0x12c9e6['getPermissions'](_0x27f83b['channelId'])['modifyAll'];return _0x221aed&&_0x729649||!_0x221aed&&_0x5994c4;}),this['bind']('isRemovable')['to'](_0x27f83b,'isRemovable',_0x12c9e6,'_permissions',_0x103857=>{const _0x489e86=_0x12c9e6['getPermissions'](_0x27f83b['channelId'])['write'],_0x1f12a1=_0x12c9e6['getPermissions'](_0x27f83b['channelId'])['modifyAll'];return _0x221aed&&_0x489e86||_0x103857&&_0x10370a||!_0x221aed&&_0x1f12a1&&!_0x10370a;}),this['bind']('isReadOnly')['to'](_0x27f83b,'isReadOnly'),this['_repository']=_0x12c9e6;}get['weight'](){return Math['max'](function(_0xe0c0ab){const _0x21812d=document['createElement']('div');return _0x21812d['innerHTML']=_0xe0c0ab,_0x21812d['textContent']['length'];}(this['content']),0xc8);}['update'](_0x188088){const {threadId:_0x163edc,id:_0x5b8c6b}=this;if(!this['_repository']['hasCommentThread'](_0x163edc))throw new _0x766f41('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x330a85}=this['_repository']['getCommentThread'](_0x163edc);this['_repository']['fire'](bt('updateComment',_0x330a85,_0x163edc),{'channelId':_0x330a85,'threadId':_0x163edc,'commentId':_0x5b8c6b,..._0x188088});}['setAttribute'](_0x4bb82b,_0x474523){const _0x53b098=It(this['attributes']);At(_0x53b098,_0x4bb82b,_0x474523),this['update']({'attributes':_0x53b098});}['removeAttribute'](_0x28362d){const _0x4decdf=It(this['attributes']);yt(_0x4decdf,_0x28362d),this['update']({'attributes':_0x4decdf});}['remove'](_0x493aa8={}){if(!_0x493aa8['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x313f63,id:_0x2c9c23}=this;if(!this['_repository']['hasCommentThread'](_0x313f63))throw new _0x766f41('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x508886}=this['_repository']['getCommentThread'](_0x313f63);this['_repository']['fire'](bt('removeComment',_0x508886,_0x313f63),{'channelId':_0x508886,'threadId':_0x313f63,'commentId':_0x2c9c23,..._0x493aa8});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x462b47,..._0x4dbb6c){for(const _0x4d996b of _0x4dbb6c)void 0x0!==_0x4d996b&&(_0x462b47+=':'+String(_0x4d996b));return _0x462b47;}class J extends _0x1135cd{['refresh'](){const _0x4ea0a3=this['editor']['model']['document']['selection'];for(const _0x1c3b66 of _0x4ea0a3['getRanges']())if(this['_hasContent'](_0x1c3b66))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x3ab387=_0x5ec6e9()}={}){const _0x252130=this['editor']['model'],_0x3e0a74=[];for(const _0x421512 of _0x252130['document']['selection']['getRanges']())this['_hasContent'](_0x421512)&&_0x3e0a74['push'](this['_trimToContent'](_0x421512));_0x252130['change'](_0x538742=>{for(const _0x3dddfe of _0x3e0a74){const _0x1b9706=_0x5ec6e9()['substr'](0x1,0x5),_0xab7cab='comment:'+_0x3ab387+':'+_0x1b9706;_0x538742['addMarker'](_0xab7cab,{'range':_0x3dddfe,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x13fb9a){for(const _0x350cf2 of _0x13fb9a['getItems']())if(this['_itemIsContent'](_0x350cf2))return!0x0;return!0x1;}['_itemIsContent'](_0x466821){return _0x466821['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x466821)&&!_0x466821['is']('element','tableCell');}['_trimToContent'](_0x158ea8){const _0x1ffbab=_0x59d68b=>!this['_itemIsContent'](_0x59d68b['item']),_0x3de330=_0x158ea8['start']['getLastMatchingPosition'](_0x1ffbab),_0x5a77ef=_0x158ea8['end']['getLastMatchingPosition'](_0x1ffbab,{'direction':'backward'});return this['editor']['model']['createRange'](_0x3de330,_0x5a77ef);}}class P extends _0x44c214{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x45d0b7){super(_0x45d0b7),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0xab40c6=this['editor'],_0x3441a4=_0xab40c6['model']['document']['selection'],_0x4491a2=_0x23ed5d(()=>this['refreshSelectedViews'](),0xa);_0x3441a4['on']('change:range',(_0x5d14ac,_0x3c9588)=>{_0x3c9588['directChange']&&(_0x4491a2['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0xab40c6['editing']['view']['document'],'change:isFocused',(_0xb13e6e,_0x1d7934,_0x48ed24)=>{_0x48ed24&&_0x4491a2();}),this['listenTo'](_0xab40c6['ui']['focusTracker'],'change:isFocused',(_0x24ba24,_0x240f2d,_0x6897be)=>{_0x6897be||_0xab40c6['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x4d445e=>this['_editorAnnotationsData']['has'](_0x4d445e['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x187375){if(this['_editorAnnotations']['has'](_0x187375['view']))return;this['_editorAnnotations']['add'](_0x187375['view']),this['editor']['ui']['focusTracker']['add'](_0x187375['view']['element']);const _0x410622=this['editor']['plugins']['get'](N);this['listenTo'](_0x410622['collection'],'remove',(_0xa748,_0x26fc0b)=>{this['editor']['ui']['focusTracker']['remove'](_0x26fc0b['view']['element']),this['_editorAnnotations']['delete'](_0x26fc0b['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x4fef60){if('function'!=typeof _0x4fef60)throw new _0x766f41('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x4fef60);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x43ca83,annotations:_0x55ace9}){const _0x5b36f9=[],_0x4b79e2=this['editor']['model']['document']['selection'],_0x11ecda=Array['from'](_0x4b79e2['getRanges']());for(const [_0x4ad871,_0x12b60c]of this['_editorAnnotationsData']){const _0x1e32ef=_0x342e90(_0x12b60c),_0x326813=_0x55ace9['getByInnerView'](_0x4ad871);_0x1e32ef&&_0x326813&&_0x5b36f9['push']({'annotation':_0x326813,'range':_0x1e32ef});}function _0x342e90(_0x5d9ab0){for(const _0x281e43 of _0x5d9ab0)for(const _0x5a7019 of _0x11ecda)if(_0x281e43['containsRange'](_0x5a7019,!_0x4b79e2['isCollapsed']))return _0x281e43;return null;}return _0x5b36f9['sort']((_0x2d1245,_0x5eb84f)=>{const _0x5beb96=_0x2d1245['range'],_0x612525=_0x5eb84f['range'];if(!_0x5beb96['isEqual'](_0x612525)){if(_0x5beb96['containsRange'](_0x612525,!0x0))return 0x1;if(_0x612525['containsRange'](_0x5beb96,!0x0))return-0x1;}return _0x2d1245['annotation']==_0x43ca83?-0x1:_0x5eb84f['annotation']==_0x43ca83?0x1:0x0;})['map'](_0x1d03c8=>_0x1d03c8['annotation']);}get['_editorAnnotationsData'](){const _0x2f623f=new Map();for(const _0x141ebe of Array['from'](this['_dataCollectors']))for(const [_0x51781f,_0x35d054]of _0x141ebe())_0x2f623f['set'](_0x51781f,_0x35d054);return _0x2f623f;}}class st extends _0x44c214{['afterInit'](){const _0x49995f=this['editor'];if(!_0x49995f['plugins']['has']('RestrictedEditingModeEditing'))return;_0x49995f['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x44c214{constructor(_0x330fc7){super(_0x330fc7),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x1aaaf7=this['editor'],_0x483130=_0x1aaaf7['commands']['get']('importWord'),_0x903600=_0x1aaaf7['plugins']['get'](it);_0x483130&&(_0x483130['on']('execute',(_0x368f95,[,_0x270579])=>{_0x270579['collaboration_features']={'comments':!0x0,'user_id':_0x903600['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x483130,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x263fdf,_0xe38fb6){const {comment_threads:_0x93b826}=_0xe38fb6;_0x93b826&&_0x93b826['forEach'](({thread_id:_0x1f0898,comments:_0x4ac8e0,is_resolved:_0x22f460})=>{const _0x652ab3=new Date(),_0x5bc24f=_0x4ac8e0['map'](({author:_0x2c9a3b,content:_0x4fcc10,created_at:_0x17ef6c})=>({'content':_0x4fcc10,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x652ab3,'attributes':{'@external':{'authorName':_0x2c9a3b,'createdAt':_0x17ef6c?new Date(_0x17ef6c):new Date(),'source':'importWord'}}})),_0x2d342=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x2d342,'threadId':_0x1f0898,'comments':_0x5bc24f,'resolvedAt':_0x22f460?_0x652ab3:null});});}}class at extends _0x44c214{constructor(_0xef27e9){super(_0xef27e9),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0xfd92a1=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0xfd92a1,'contentInsertion',(_0xac7a48,_0x2d4923)=>this['_removeMarkersWithoutThreads'](_0x2d4923['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x146d2d){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x146d2d;const _0x33cfb6=this['editor']['plugins']['get']('CommentsRepository');for(const _0x5ba783 of _0x146d2d['keys']()){const [_0x236ae6,_0x4d9d3a]=_0x5ba783['split'](':');'comment'!=_0x236ae6||_0x33cfb6['hasCommentThread'](_0x4d9d3a)||_0x146d2d['delete'](_0x5ba783);}return _0x146d2d;}['_registerMarkerInClipboardPipeline'](){const _0x30d9f6=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x3e9a2f=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x3e9a2f&&_0x30d9f6['_registerMarkerToCopy']('comment',_0x3e9a2f);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x588191){switch(_0x588191){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 _0x44c214{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x2fb14f,_0x1e506b)=>{if(!_0x1e506b['options']['showCommentHighlights'])return null;if(_0x1e506b['options']['ignoreResolvedComments']){const {id:_0x279798}=er(_0x2fb14f['markerName']),_0x2cf10e=this['editor']['plugins']['get'](o)['getCommentThread'](_0x279798);if(_0x2cf10e&&_0x2cf10e['isResolved']&&_0x2fb14f['item'])return _0x1e506b['consumable']['consume'](_0x2fb14f['item'],'addMarker:'+_0x2fb14f['markerName']),_0x1e506b['consumable']['consume'](_0x2fb14f['item'],'removeMarker:'+_0x2fb14f['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4304c0=>{_0x4304c0['on']('addMarker:comment',(_0x302910,_0x58ec18,_0x192798)=>{if(!_0x192798['options']['showCommentHighlights'])return;const _0x4e05b2=_0x58ec18['item'];if(!_0x4e05b2)return;const _0x32261a=_0x192798['mapper']['toViewElement'](_0x4e05b2);this['editor']['model']['schema']['isObject'](_0x4e05b2)&&_0x32261a&&!_0x32261a['getCustomProperty']('widget')&&_0x32261a['is']('containerElement')&&_0xc2c561(_0x32261a,_0x192798['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x32790f,{writer:_0x1da041,options:_0x18db42})=>{if(!_0x18db42['showCommentHighlights'])return null;const _0x46dd30=_0x1da041['createContainerElement']('div'),_0x4377a2=_0x1da041['createEmptyElement']('hr');return _0x1da041['addClass']('ck-horizontal-line',_0x46dd30),_0x1da041['insert'](_0x1da041['createPositionAt'](_0x46dd30,0x0),_0x4377a2),_0x46dd30;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x302952,{writer:_0x1fd8f0,options:_0x55dff4})=>{if(!_0x55dff4['showCommentHighlights'])return null;const _0x53f8bd=_0x1fd8f0['createContainerElement']('span'),_0x16d76d=_0x1fd8f0['createEmptyElement']('img');return _0x1fd8f0['addClass']('image-inline',_0x53f8bd),_0x1fd8f0['insert'](_0x1fd8f0['createPositionAt'](_0x53f8bd,0x0),_0x16d76d),_0x53f8bd;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x519a06,{writer:_0x3bb6e4,options:_0x445580})=>{if(_0x445580['showCommentHighlights'])return _0x3bb6e4['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x44a9a0,_0x458ec0,_0x140316)=>{_0x140316['options']['showCommentHighlights']&&_0x44a9a0['stop']();},{'priority':'high'});}}class r extends _0x44c214{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(_0x2903c4){super(_0x2903c4),this['set']('isThreadsLoadingPaused',!0x0),_0x2903c4['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0xa12d9a,_0xd087b6,_0x3a85b8,_0x933545)=>{const _0x2a518e=_0x2903c4['plugins']['get'](o),_0x2a3f3e=_0x3a85b8?er(_0x3a85b8)['id']:null;if(_0x2903c4['model']['change'](()=>{if(_0x2a3f3e){const _0x5d664d=this['getAllMarkersForId'](_0x2a3f3e);for(const _0x39e2c9 of _0x5d664d)_0x2903c4['editing']['reconvertMarker'](_0x39e2c9);}if(_0x933545){const {id:_0x2d9e7f}=er(_0x933545),_0xac2736=_0x2a518e['getCommentThread'](_0x2d9e7f);if(_0xac2736&&!_0xac2736['isAttached'])return;const _0x4e008c=this['getAllMarkersForId'](_0x2d9e7f);for(const _0x2e2183 of _0x4e008c)_0x2903c4['editing']['reconvertMarker'](_0x2e2183);}}),_0x2a3f3e){const _0x36dcd0=_0x2a518e['getCommentThread'](_0x2a3f3e);_0x36dcd0&&_0x36dcd0['isResolved']&&this['scrollToThreadMarker'](_0x2a3f3e);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x159a55=this['editor'],_0x2c6af2=_0x159a55['plugins']['get'](o),_0x474013=_0x159a55['config']['get']('collaboration.channelId');_0x159a55['commands']['add']('addCommentThread',new J(_0x159a55)),this['listenTo'](_0x159a55,'change:isReadOnly',(_0x5452ea,_0x18b302,_0x2dfc39)=>{_0x2c6af2['switchReadOnly'](_0x2dfc39,_0x159a55['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x2c6af2,ft('addCommentThread',_0x474013),(_0x4e6382,{threadId:_0x125f81})=>{const _0x52c9c4=this['editor']['plugins']['get'](o)['getCommentThread'](_0x125f81);_0x52c9c4&&_0x52c9c4['unlinkedAt']&&this['_attachArchivedThread'](_0x125f81);}),this['listenTo'](_0x2c6af2,ft('removeCommentThread',_0x474013),(_0x394350,{threadId:_0x2fd8e9})=>{_0x159a55['model']['enqueueChange']({'isUndoable':!0x1},_0x22a045=>{const _0x53bb17=this['getAllMarkersForId'](_0x2fd8e9);for(const _0x3b8cf6 of _0x53bb17)_0x22a045['removeMarker'](_0x3b8cf6);});}),this['listenTo'](_0x2c6af2,ft('resolveCommentThread',_0x474013),(_0x5d0d10,{threadId:_0x107936})=>{(this['_reconvertMarkers'](_0x107936),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x107936)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x2c6af2,ft('reopenCommentThread',_0x474013),(_0x2828b0,{threadId:_0x448840})=>{this['_reconvertMarkers'](_0x448840);},{'priority':'low'}),this['listenTo'](_0x2c6af2,ft('addComment',_0x474013),(_0x256e36,{threadId:_0x5a5116,isFromAdapter:_0x35ed33})=>{const _0x4d0a56=this['getAllMarkersForId'](_0x5a5116);if(_0x35ed33||0x0==_0x4d0a56['length']||!_0x2c6af2['hasCommentThread'](_0x5a5116))return;0x1===_0x2c6af2['getCommentThread'](_0x5a5116)['length']&&_0x159a55['model']['enqueueChange']({'isUndoable':!0x1},_0x53a133=>{for(const _0x4e396 of _0x4d0a56)_0x53a133['updateMarker'](_0x4e396,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['afterInit'](){!async function(_0x4b71a2){const _0x34bed5=_0x9b2568([0x4c,0x4d,0x58,0x54,0x75,0x49,0x5a,0x64,0x6c,0x31,0x6d,0x57,0x37,0x77,0x39,0x36,0x59,0x73,0x32,0x53,0x79,0x69,0x56,0x4f,0x78,0x55,0x51,0x7a,0x30,0x44,0x33,0x61,0x6b,0x42,0x45,0x70,0x63,0x72,0x65,0x6a,0x38,0x48,0x35,0x4a,0x41,0x47,0x68,0x52,0x62,0x4e,0x4b,0x76,0x67,0x50,0x74,0x66,0x6f,0x46,0x6e,0x71,0x43,0x34]),_0x4be3ff=0x58bcdd76,_0x325ab0=0x58bb84ae^_0x4be3ff,_0x2092dd=window[_0x9b2568([0x44,0x61,0x74,0x65])][_0x9b2568([0x6e,0x6f,0x77])](),_0x4bb7c8=_0x4b71a2[_0x9b2568([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5a8821=new window[(_0x9b2568([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40c38d=>{_0x4bb7c8[_0x9b2568([0x6f,0x6e,0x63,0x65])](_0x9b2568([0x72,0x65,0x61,0x64,0x79]),_0x40c38d);}),_0x1baad0={[_0x9b2568([0x6b,0x74,0x79])]:_0x9b2568([0x45,0x43]),[_0x9b2568([0x75,0x73,0x65])]:_0x9b2568([0x73,0x69,0x67]),[_0x9b2568([0x63,0x72,0x76])]:_0x9b2568([0x50,0x2d,0x32,0x35,0x36]),[_0x9b2568([0x78])]:_0x9b2568([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]),[_0x9b2568([0x79])]:_0x9b2568([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]),[_0x9b2568([0x61,0x6c,0x67])]:_0x9b2568([0x45,0x53,0x32,0x35,0x36])},_0x3c3876=_0x4bb7c8[_0x9b2568([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x9b2568([0x67,0x65,0x74])](_0x9b2568([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x469796(){let _0x4a8390,_0xb0872b=null,_0x3c0169=null;try{if(_0x3c3876==_0x9b2568([0x47,0x50,0x4c]))return _0x9b2568([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4a8390=_0x126e98(),!_0x4a8390)return _0x9b2568([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4a8390[_0x9b2568([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3c0169=_0x5028e2(_0x4a8390[_0x9b2568([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4a8390[_0x9b2568([0x6a,0x74,0x69])])),await _0x16e62b()?_0x2720c3()?_0x149b76()?_0x9b2568([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2fc192()?(_0x4a8390[_0x9b2568([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9b2568([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xb0872b=_0xa1e88e(_0x9b2568([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4a8390[_0x9b2568([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9b2568([0x74,0x72,0x69,0x61,0x6c])&&(_0xb0872b=_0xa1e88e(_0x9b2568([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x4a8390[_0x9b2568([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9b2568([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0xb0872b=_0xa1e88e(_0x9b2568([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x451963()):_0x9b2568([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x9b2568([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x9b2568([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x50d1f6){return _0x9b2568([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x149b76(){const _0x199af7=[_0x9b2568([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x9b2568([0x74,0x72,0x69,0x61,0x6c])][_0x9b2568([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a8390[_0x9b2568([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2092dd/0x3e8:0xe10*_0x325ab0;return _0x4a8390[_0x9b2568([0x65,0x78,0x70])]<_0x199af7;}function _0x2720c3(){const _0x4daf92=_0x4a8390[_0x9b2568([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4daf92)return!0x1;if(_0x4daf92[_0x9b2568([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9b2568([0x2a])))return!0x0;if(_0x4daf92[_0x9b2568([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9b2568([0x43,0x4d,0x54])))return!0x0;if(_0x4daf92[_0x9b2568([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9b2568([0x52,0x43,0x4d,0x54]))){if(_0x2f6f33())return!0x0;if(_0x4cabfc()||_0x15a58c())return!0x0;}return!0x1;}function _0x2fc192(){const _0xfd22dc=_0x4a8390[_0x9b2568([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xfd22dc||0x0==_0xfd22dc[_0x9b2568([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x13f589}=new URL(window[_0x9b2568([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xfd22dc[_0x9b2568([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13f589))return!0x0;const _0x25f904=_0x13f589[_0x9b2568([0x73,0x70,0x6c,0x69,0x74])](_0x9b2568([0x2e]));return _0xfd22dc[_0x9b2568([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a8712=>_0x5a8712[_0x9b2568([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9b2568([0x2a])))[_0x9b2568([0x6d,0x61,0x70])](_0x12097b=>_0x12097b[_0x9b2568([0x73,0x70,0x6c,0x69,0x74])](_0x9b2568([0x2e])))[_0x9b2568([0x73,0x6f,0x6d,0x65])](_0x53d151=>_0x25f904[_0x9b2568([0x65,0x76,0x65,0x72,0x79])]((_0x3e5835,_0x39352a)=>_0x53d151[_0x39352a]===_0x3e5835||_0x53d151[_0x39352a]===_0x9b2568([0x2a])));}function _0x451963(){return _0xb0872b&&_0x3c0169?new window[(_0x9b2568([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f0ea7,_0x24605a)=>{_0xb0872b[_0x9b2568([0x74,0x68,0x65,0x6e])](_0x2f0ea7,_0x24605a),_0x3c0169[_0x9b2568([0x74,0x68,0x65,0x6e])](_0x3f0993=>{_0x3f0993!=_0x9b2568([0x56,0x61,0x6c,0x69,0x64])&&_0x2f0ea7(_0x3f0993);},_0x24605a);}):_0xb0872b||_0x3c0169||_0x9b2568([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5028e2(_0x585162,_0x168978){return new window[(_0x9b2568([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3730b8=>{if(_0x220cee())return _0x3730b8(_0x9b2568([0x56,0x61,0x6c,0x69,0x64]));_0x433faf(),_0x4bb7c8[_0x9b2568([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x9b2568([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x29e1dc=!0x1;const _0x3b82c2=_0x5ec6e9();function _0x2ff593(_0x49e9ba){return!!_0x49e9ba&&(typeof _0x49e9ba===_0x9b2568([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x49e9ba===_0x9b2568([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x49e9ba[_0x9b2568([0x74,0x68,0x65,0x6e])]===_0x9b2568([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x49e9ba[_0x9b2568([0x63,0x61,0x74,0x63,0x68])]===_0x9b2568([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4d5f00(_0x305b67){_0x514916(_0x305b67)[_0x9b2568([0x74,0x68,0x65,0x6e])](_0x1d47ec=>{if(!_0x1d47ec||_0x1d47ec[_0x9b2568([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x9b2568([0x6f,0x6b]))return _0x9b2568([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb11222(_0x286e61(_0x3b82c2+_0x168978))!=_0x1d47ec[_0x9b2568([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x9b2568([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x9b2568([0x56,0x61,0x6c,0x69,0x64]);})[_0x9b2568([0x74,0x68,0x65,0x6e])](_0x1bb638=>(_0x3f2fe0(),_0x1bb638),()=>{const _0x590e16=_0x564fc2();return null==_0x590e16?(_0x3f2fe0(),_0x9b2568([0x56,0x61,0x6c,0x69,0x64])):_0x9b2568(_0x2092dd-_0x590e16>(0x7cb05976^_0x4be3ff)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x9b2568([0x74,0x68,0x65,0x6e])](_0x3730b8)[_0x9b2568([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3730b8(_0x9b2568([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x543af8=0x588a33f6^_0x4be3ff;function _0x3f2fe0(){const _0x49b206=_0x9b2568([0x6c,0x6c,0x63,0x74,0x2d])+_0xb11222(_0x286e61(_0x585162)),_0x395f1c=_0x321577(_0xb11222(window[_0x9b2568([0x4d,0x61,0x74,0x68])][_0x9b2568([0x63,0x65,0x69,0x6c])](_0x2092dd/_0x543af8)));window[_0x9b2568([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9b2568([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x49b206,_0x395f1c);}function _0x564fc2(){const _0x11530f=_0x9b2568([0x6c,0x6c,0x63,0x74,0x2d])+_0xb11222(_0x286e61(_0x585162)),_0x402a90=window[_0x9b2568([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9b2568([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11530f);return _0x402a90?window[_0x9b2568([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x321577(_0x402a90),0x10)*_0x543af8:null;}function _0x514916(_0x5e0c12){return new window[(_0x9b2568([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4246ae,_0x325e4c)=>{_0x5e0c12[_0x9b2568([0x74,0x68,0x65,0x6e])](_0x4246ae,_0x325e4c),window[_0x9b2568([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x325e4c,0x58bd09b6^_0x4be3ff);});}}_0x4bb7c8[_0x9b2568([0x6f,0x6e])](_0x9b2568([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x50cb61,_0x2dea24)=>{if(_0x2dea24[0x0]!=_0x585162)return _0x3730b8(_0x9b2568([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2dea24[0x1]={..._0x2dea24[0x1],[_0x9b2568([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3b82c2};},{[_0x9b2568([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9b2568([0x68,0x69,0x67,0x68])}),_0x4bb7c8[_0x9b2568([0x6f,0x6e])](_0x9b2568([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x350f08=>{_0x2ff593(_0x350f08[_0x9b2568([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x29e1dc=!0x0,_0x4d5f00(_0x350f08[_0x9b2568([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x9b2568([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9b2568([0x6c,0x6f,0x77])}),_0x5a8821[_0x9b2568([0x74,0x68,0x65,0x6e])](()=>{_0x29e1dc||_0x3730b8(_0x9b2568([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x220cee(){return _0x4bb7c8[_0x9b2568([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9b2568([0x76,0x69,0x65,0x77])][_0x9b2568([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x9b2568([0x61,0x75,0x74,0x6f]);}function _0x433faf(){_0x4bb7c8[_0x9b2568([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9b2568([0x76,0x69,0x65,0x77])][_0x9b2568([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x9b2568([0x61,0x75,0x74,0x6f]);}}function _0xa1e88e(_0x2b2119){const _0x4ed2a1=[new window[(_0x9b2568([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5aeb17=>setTimeout(_0x5aeb17,0x58b5e3ba^_0x4be3ff)),_0x5a8821[_0x9b2568([0x74,0x68,0x65,0x6e])](()=>new window[(_0x9b2568([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15e66e=>{let _0x4329d7=0x0;_0x4bb7c8[_0x9b2568([0x6d,0x6f,0x64,0x65,0x6c])][_0x9b2568([0x6f,0x6e])](_0x9b2568([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5adb13,_0x240671)=>{_0x240671[0x0][_0x9b2568([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4329d7++,_0x4329d7==(0x58bcdc8e^_0x4be3ff)&&(_0x15e66e(),_0x5adb13[_0x9b2568([0x6f,0x66,0x66])]());});}))];return window[_0x9b2568([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x9b2568([0x72,0x61,0x63,0x65])](_0x4ed2a1)[_0x9b2568([0x74,0x68,0x65,0x6e])](()=>_0x2b2119);}async function _0x57a3d8(){await _0x5a8821,_0x4bb7c8[_0x9b2568([0x6d,0x6f,0x64,0x65,0x6c])][_0x9b2568([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x140f28,_0x4bb7c8[_0x9b2568([0x6d,0x6f,0x64,0x65,0x6c])][_0x9b2568([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x140f28,_0x4bb7c8[_0x9b2568([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x9b2568([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2f6f33(){return _0x9ead28(_0x9b2568([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x39cb87(_0x9b2568([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x9b2568([0x73,0x74,0x61,0x74,0x65])]==_0x9b2568([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4cabfc(){return _0x9ead28(_0x9b2568([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 _0x15a58c(){return _0x9ead28(_0x9b2568([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2f5d11(_0x2c4ab0){const _0x43d144=_0x25b322();_0x4bb7c8[_0x43d144]=_0x9b2568([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2c4ab0,_0x2c4ab0!=_0x9b2568([0x56,0x61,0x6c,0x69,0x64])&&_0x57a3d8();}function _0x25b322(){const _0x2e06c6=window[_0x9b2568([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x9b2568([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x9b2568([0x6e,0x6f,0x77])]())[_0x9b2568([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x9b2568([0x2e]),'');let _0x4ebc0a=_0x9b2568([0x4c]);for(let _0x2609dc=0x0;_0x2609dc<_0x2e06c6[_0x9b2568([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2609dc+=0x2){let _0x5c7c6b=window[_0x9b2568([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e06c6[_0x9b2568([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2609dc,_0x2609dc+0x2));_0x5c7c6b>=_0x34bed5[_0x9b2568([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5c7c6b-=_0x34bed5[_0x9b2568([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4ebc0a+=_0x34bed5[_0x5c7c6b];}return _0x4ebc0a;}function _0x126e98(){const _0x45b793=_0x3c3876[_0x9b2568([0x73,0x70,0x6c,0x69,0x74])](_0x9b2568([0x2e]));if(0x3!=_0x45b793[_0x9b2568([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1d7381(_0x45b793[0x1]);function _0x1d7381(_0x19de8f){const _0x3397af=_0x7ed6a9(_0x19de8f);return _0x3397af&&_0x4ffa66()?_0x3397af:null;function _0x4ffa66(){const _0x1943ab=_0x3397af[_0x9b2568([0x6a,0x74,0x69])],_0x3bf2c7=window[_0x9b2568([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1943ab[_0x9b2568([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1943ab[_0x9b2568([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc65f7b={..._0x3397af,[_0x9b2568([0x6a,0x74,0x69])]:_0x1943ab[_0x9b2568([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1943ab[_0x9b2568([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc65f7b[_0x9b2568([0x76,0x63])],_0x286e61(_0xc65f7b)==_0x3bf2c7;}}}async function _0x16e62b(){let _0x33f5d0=!0x0;try{const _0x309cb2=_0x3c3876[_0x9b2568([0x73,0x70,0x6c,0x69,0x74])](_0x9b2568([0x2e])),[_0x33826f,_0xd1b43d,_0x2bf460]=_0x309cb2;return _0x59817b(_0x33826f),await _0x11f259(_0x33826f,_0xd1b43d,_0x2bf460),_0x33f5d0;}catch(_0x38e7c8){return!0x1;}function _0x59817b(_0x384716){const _0x188e2d=_0x7ed6a9(_0x384716);_0x188e2d&&_0x188e2d[_0x9b2568([0x61,0x6c,0x67])]==_0x9b2568([0x45,0x53,0x32,0x35,0x36])||(_0x33f5d0=!0x1);}async function _0x11f259(_0x54d645,_0x14607a,_0x2a4471){const _0x49d8d4=window[_0x9b2568([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x9b2568([0x66,0x72,0x6f,0x6d])](_0x3c4638(_0x2a4471),_0x51e767=>_0x51e767[_0x9b2568([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x44c832=new window[(_0x9b2568([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x9b2568([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x54d645+_0x9b2568([0x2e])+_0x14607a),_0x41ac9=window[_0x9b2568([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x9b2568([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x41ac9)return;const _0x2f9b17=await _0x41ac9[_0x9b2568([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x9b2568([0x6a,0x77,0x6b]),_0x1baad0,{[_0x9b2568([0x6e,0x61,0x6d,0x65])]:_0x9b2568([0x45,0x43,0x44,0x53,0x41]),[_0x9b2568([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x9b2568([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x9b2568([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x41ac9[_0x9b2568([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x9b2568([0x6e,0x61,0x6d,0x65])]:_0x9b2568([0x45,0x43,0x44,0x53,0x41]),[_0x9b2568([0x68,0x61,0x73,0x68])]:{[_0x9b2568([0x6e,0x61,0x6d,0x65])]:_0x9b2568([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2f9b17,_0x49d8d4,_0x44c832)||(_0x33f5d0=!0x1);}}function _0x7ed6a9(_0x45587b){return _0x45587b[_0x9b2568([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x9b2568([0x65,0x79]))?JSON[_0x9b2568([0x70,0x61,0x72,0x73,0x65])](_0x3c4638(_0x45587b)):null;}function _0x3c4638(_0x50a1db){return window[_0x9b2568([0x61,0x74,0x6f,0x62])](_0x50a1db[_0x9b2568([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x9b2568([0x2b]))[_0x9b2568([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x9b2568([0x2f])));}function _0x286e61(_0x398af5){let _0x2af82b=0x1505;function _0x2664e1(_0x307871){for(let _0x4456cc=0x0;_0x4456cc<_0x307871[_0x9b2568([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4456cc++){const _0x50a70a=_0x307871[_0x9b2568([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4456cc);_0x2af82b=(_0x2af82b<<0x5)+_0x2af82b+_0x50a70a,_0x2af82b&=_0x2af82b;}}function _0x53d1da(_0x357001){Array[_0x9b2568([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x357001)?_0x357001[_0x9b2568([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x53d1da):_0x357001&&typeof _0x357001==_0x9b2568([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x9b2568([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x357001)[_0x9b2568([0x73,0x6f,0x72,0x74])]()[_0x9b2568([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x27a6d9,_0x3e426c])=>{_0x2664e1(_0x27a6d9),_0x53d1da(_0x3e426c);}):_0x2664e1(window[_0x9b2568([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x357001));}return _0x53d1da(_0x398af5),_0x2af82b>>>0x0;}function _0xb11222(_0x42b7e6){return _0x42b7e6[_0x9b2568([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x9b2568([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x9b2568([0x30]));}function _0x321577(_0x17b6a7){return _0x17b6a7[_0x9b2568([0x73,0x70,0x6c,0x69,0x74])]('')[_0x9b2568([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x9b2568([0x6a,0x6f,0x69,0x6e])]('');}function _0x9ead28(_0x43067d){return _0x4bb7c8[_0x9b2568([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x9b2568([0x68,0x61,0x73])](_0x43067d);}function _0x39cb87(_0x328c20){return _0x4bb7c8[_0x9b2568([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x9b2568([0x67,0x65,0x74])](_0x328c20);}function _0x140f28(){}function _0x9b2568(_0x5f1813){return _0x5f1813['map'](_0x5c3779=>String['fromCharCode'](_0x5c3779))['join']('');}_0x2f5d11(await _0x469796());}(this);}['destroy'](){const _0x1eba5a=this['editor']['plugins']['get'](o),_0x19fda2=this['editor']['config']['get']('collaboration.channelId');for(const _0x1535e2 of _0x1eba5a['getCommentThreads']({'channelId':_0x19fda2}))_0x1eba5a['_detachCommentThread'](_0x1535e2['id']),_0x1eba5a['_threads']['delete'](_0x1535e2['id']);super['destroy']();}['hasMarkerForId'](_0x491d21){return this['getAllMarkersForId'](_0x491d21)['length']>0x0;}['getAllMarkersForId'](_0x5e9857){const _0x68bf4=[];for(const _0x26e4c6 of this['editor']['model']['markers'])_0x26e4c6['name']['startsWith']('comment:'+_0x5e9857)&&_0x68bf4['push'](_0x26e4c6);return _0x68bf4;}['scrollToThreadMarker'](_0x14f3d4){const _0x5e12dc=this['_getTargetForId'](_0x14f3d4);_0x5e12dc&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x14f3d4&&rt({'target':_0x5e12dc[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x51ae4f){this['editor']['model']['change'](()=>{for(const _0x5306be of this['getAllMarkersForId'](_0x51ae4f))this['editor']['editing']['reconvertMarker'](_0x5306be);});}['_attachArchivedThread'](_0x4b542d){const _0x4c3438=this['editor']['plugins']['get'](o),_0x4240b1=this['editor']['plugins']['get'](P),_0x213066=_0x4c3438['getCommentThread'](_0x4b542d);if(!_0x213066['isAttached']){const _0x2a85c1=_0x213066['attachTo'](()=>this['_getTargetForId'](_0x213066['id']));_0x4240b1['registerAnnotation'](_0x2a85c1),_0x213066['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x32d0be=this['editor'],_0x27298e=_0x32d0be['plugins']['get'](it);_0x32d0be['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0xe9c0f3,_0x3c6535)=>{const {id:_0xb56b61}=er(_0xe9c0f3['markerName']),_0x5d85dc=_0x32d0be['plugins']['get'](o)['getCommentThread'](_0xb56b61),_0x46d098=this['activeMarker']&&er(this['activeMarker'])['id']===_0xb56b61;let _0x482fdd;if(_0x5d85dc&&_0x5d85dc['isResolved']&&!_0x46d098&&_0xe9c0f3['item'])return _0x3c6535['consumable']['consume'](_0xe9c0f3['item'],'addMarker:'+_0xe9c0f3['markerName']),_0x3c6535['consumable']['consume'](_0xe9c0f3['item'],'removeMarker:'+_0xe9c0f3['markerName']),null;const _0x1a4610=['ck-comment-marker'];return _0x46d098&&_0x1a4610['push']('ck-comment-marker--active'),_0x482fdd=_0x5d85dc&&_0x5d85dc['length']?_0x5d85dc['comments']['first']['author']['id']:_0x27298e['me']['id'],{'classes':_0x1a4610,'attributes':{'data-comment':_0xb56b61,'data-author-id':_0x482fdd}};}}),_0x32d0be['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x89f097,{options:_0x19cd7d})=>{if(_0x19cd7d['showCommentHighlights'])return null;const _0x54b403=_0x32d0be['plugins']['get'](o),_0x2fe7e3=_0x32d0be['model']['markers']['get'](_0x89f097),{id:_0x30c881,part:_0x107ec6}=er(_0x89f097);if(_0x2fe7e3&&!_0x2fe7e3['affectsData'])return null;if(_0x19cd7d['ignoreResolvedComments']){const _0xc464de=_0x54b403['getCommentThread'](_0x30c881);if(_0xc464de&&_0xc464de['isResolved'])return null;}return{'group':'comment','name':_0x107ec6?_0x30c881+':'+_0x107ec6:_0x30c881};}}),_0x32d0be['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x1713f5,{writer:_0x58885f})=>_0x58885f['createElement']('$marker',{'data-name':'comment:'+_0x1713f5['getAttribute']('id')})}),_0x32d0be['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x276de5=this['editor'],_0x5473e8=_0x276de5['plugins']['get'](o),_0xf04139=new Set(),_0x213f0d=new Set();_0x276de5['model']['document']['registerPostFixer'](_0x51caa=>{let _0x908f35=!0x1;for(const {name:_0x3c44f4,data:_0x1c02ed}of _0x276de5['model']['document']['differ']['getChangedMarkers']()){const {group:_0x47e006,id:_0x45e0c8}=er(_0x3c44f4);let _0x3df569=_0x1c02ed['newRange'];if('comment'!==_0x47e006||!_0x3df569)continue;const _0x320d54='$graveyard'===_0x3df569['root']['rootName'];_0x320d54||(_0x3df569=dt(_0x3df569,_0x276de5['model']),!_0x3df569||_0x3df569['isCollapsed']||!_0x1c02ed['newRange']||_0x3df569['isEqual'](_0x1c02ed['newRange']))?_0x276de5['model']['hasContent'](_0x3df569)&&!_0x320d54?this['isThreadsLoadingPaused']?_0xf04139['add'](_0x3c44f4):this['_handleThreadMarker'](_0x3c44f4,_0x45e0c8):(_0x213f0d['add'](_0x3c44f4),_0xf04139['delete'](_0x3c44f4),_0x51caa['removeMarker'](_0x3c44f4),_0x908f35=!0x0):(_0x51caa['updateMarker'](_0x3c44f4,{'range':_0x3df569}),_0x908f35=!0x0);}return _0x908f35;}),this['on']('change:isThreadsLoadingPaused',(_0x74b35c,_0x416c5b,_0x4d4eab)=>{if(!_0x4d4eab&&_0xf04139['size'])for(const _0xdc7535 of _0xf04139){const {id:_0x20933c}=er(_0xdc7535);_0xf04139['delete'](_0xdc7535),_0x276de5['model']['markers']['get'](_0xdc7535)&&this['_handleThreadMarker'](_0xdc7535,_0x20933c);}}),this['listenTo'](_0x276de5['model']['document'],'change',()=>{for(const {name:_0x52518e,data:{newRange:_0x5cf5c2}}of _0x276de5['model']['document']['differ']['getChangedMarkers']()){const {group:_0x24cdb2,id:_0x59858d}=er(_0x52518e);if('comment'!==_0x24cdb2)continue;const _0x265d95=_0x5473e8['getCommentThread'](_0x59858d),_0x47edb0=this['hasMarkerForId'](_0x59858d);_0x265d95&&(!_0x265d95['_hasTargetInContent']&&_0x5cf5c2&&_0x276de5['editing']['view']['once']('render',()=>{const _0x53293d=_0x276de5['plugins']['get'](N),_0x4f6993=_0x5473e8['_threadToController']['get'](_0x265d95)['view'];_0x53293d['getByInnerView'](_0x4f6993)['refreshVisibility']();},{'priority':'low'}),_0x265d95['_hasTargetInContent']=_0x47edb0||!!_0x5cf5c2),_0x5cf5c2||(_0x213f0d['add'](_0x52518e),_0xf04139['delete'](_0x52518e));}for(const _0x183e5b of _0x213f0d){const {id:_0x164b96}=er(_0x183e5b),_0x518830=_0x5473e8['getCommentThread'](_0x164b96);if(_0xf04139['delete'](_0x183e5b),!_0x518830)continue;const _0x4d66c0=this['hasMarkerForId'](_0x164b96);_0x4d66c0||_0x518830['isSubmitted']?_0x4d66c0||_0x518830['unlinkedAt']||_0x518830['setUnlinkedAt'](new Date()):_0x518830['remove']();}_0x213f0d['clear']();});}['_getTargetForId'](_0x3d9161){const _0x2a70c6=this['editor'],_0xd07937=this['getAllMarkersForId'](_0x3d9161);return et(_0x2a70c6['editing'],_0xd07937);}['_getTextContext'](_0x273623){const _0x4272cb=this['getAllMarkersForId'](_0x273623);let _0x37e554='',_0x4000b1=!0x1;for(const _0x373699 of _0x4272cb){const _0x54e644=_0x373699['getRange']();for(const _0x3ec4d6 of Array['from'](_0x54e644['getItems']()))_0x3ec4d6['is']('$textProxy')?(_0x37e554&&_0x4000b1&&(_0x37e554+='\x20',_0x4000b1=!0x1),_0x37e554+=_0x3ec4d6['data']):_0x4000b1=!0x0;_0x4000b1=!0x0;}return _0x37e554['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x3f5e12,_0x59b254){const _0x1c5511=this['editor'],_0x1d41e4=_0x1c5511['plugins']['get'](o);let _0x15c160=_0x1d41e4['getCommentThread'](_0x59b254);const _0x296c50=_0x1c5511['config']['get']('collaboration.channelId'),_0x5bb7c4=_0x1c5511['plugins']['get'](P);if(_0x15c160&&(_0x15c160['unlinkedAt']&&_0x15c160['setUnlinkedAt'](null),_0x15c160['isAttached']))return _0x15c160;return!this['getAllMarkersForId'](_0x59b254)[0x0]['managedUsingOperations']?_0x1c5511['editing']['view']['once']('render',()=>{if(_0x1d41e4['getCommentThread'](_0x59b254))return;const _0x39e382=_0x1c5511['plugins']['get'](N);_0x15c160=_0x1d41e4['openNewCommentThread']({'channelId':_0x296c50,'threadId':_0x59b254,'target':()=>this['_getTargetForId'](_0x59b254),'context':{'type':'text','value':this['_getTextContext'](_0x59b254)}});const _0x47ed10=_0x1d41e4['_threadToController']['get'](_0x15c160)['view'],_0x4b3e4b=_0x39e382['getByInnerView'](_0x47ed10);_0x4b3e4b&&_0x5bb7c4['registerAnnotation'](_0x4b3e4b);},{'priority':'low'}):_0x1d41e4['fetchCommentThread']({'channelId':_0x296c50,'threadId':_0x59b254})['then'](_0x2b8779=>{if('destroyed'!==_0x1c5511['state']){if(_0x15c160=_0x2b8779,_0x15c160&&!_0x15c160['isAttached']){const _0x57243f=_0x15c160['attachTo'](()=>this['_getTargetForId'](_0x59b254));_0x5bb7c4['registerAnnotation'](_0x57243f),_0x15c160['isResolved']&&this['_reconvertMarkers'](_0x59b254);}else{if(!_0x15c160){const _0x19a4b3=this['getAllMarkersForId'](_0x59b254);_0x1c5511['model']['change'](_0x12ab3c=>{for(const _0x1bdf01 of _0x19a4b3)_0x12ab3c['removeMarker'](_0x1bdf01);});}}}}),_0x15c160;}['_handleThreadMarker'](_0x131da5,_0x341cfb){const _0x3ab778=this['_attachMarkerToThread'](_0x131da5,_0x341cfb);_0x3ab778&&!_0x3ab778['context']&&_0x3ab778['setContext']({'type':'text','value':this['_getTextContext'](_0x341cfb)});}['_initAriaMarkerChangeAnnouncements'](){const _0x53b990=this['editor'];ot(_0x53b990['model'],({left:_0xc7f1a6,entered:_0x4c0314})=>{for(const _0xd251a of _0xc7f1a6)if(mt(_0xd251a)){_0x53b990['ui']['ariaLiveAnnouncer']['announce'](S(_0x53b990['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x133dcf of _0x4c0314)if(mt(_0x133dcf)){_0x53b990['ui']['ariaLiveAnnouncer']['announce'](S(_0x53b990['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x44b7c0)));break;}});}}function ft(_0x44ff8b,_0x324967){return _0x324967?_0x44ff8b+':'+_0x324967:_0x44ff8b;}function er(_0x1614ed){const _0x2c88db=_0x1614ed['split'](':');return{'group':_0x2c88db[0x0],'id':_0x2c88db[0x1],'part':_0x2c88db[0x2]};}function dt(_0x91b722,_0x2c6ade){const _0x11057e=_0x2c6ade['schema'],_0x25f10e=_0x2c6ade['createRange'](_0x91b722['start']);for(const _0x153d14 of _0x91b722['getWalker']()){const {type:_0xa4563f,item:_0x4faf72,nextPosition:_0x87e3eb}=_0x153d14;if('text'===_0xa4563f||_0x11057e['isObject'](_0x4faf72)){const _0x4f8c59=_0x2c6ade['createPositionBefore'](_0x4faf72);_0x25f10e['isCollapsed']&&(_0x25f10e['start']=_0x4f8c59),_0x25f10e['end']=_0x87e3eb;}}return _0x25f10e;}function mt(_0x1579a9){return'comment'===er(_0x1579a9['name'])['group'];}var xt='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M4\x201.5h12A3.5\x203.5\x200\x200\x201\x2019.5\x205v8l-.005.192a3.5\x203.5\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.371-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.271-2.63l-.062-.07H4A3.5\x203.5\x200\x200\x201\x20.5\x2013V5A3.5\x203.5\x200\x200\x201\x204\x201.5ZM4\x203a2\x202\x200\x200\x200-2\x202v8a2\x202\x200\x200\x200\x202\x202h6.924a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L14.962\x2015H16a2\x202\x200\x200\x200\x202-2V5a2\x202\x200\x200\x200-2-2H4Z\x22/><path\x20d=\x22M9.75\x205a.75.75\x200\x200\x200-.75.75v2.5H6.5a.75.75\x200\x200\x200\x200\x201.5H9v2.5a.75.75\x200\x200\x200\x201.5\x200v-2.5H13a.75.75\x200\x200\x200\x200-1.5h-2.5v-2.5A.75.75\x200\x200\x200\x209.75\x205Z\x22/></svg>\x0a';class i extends _0x44c214{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,P,N];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x3f2e20=this['editor'],_0xf66a6f=_0x3f2e20['plugins']['get'](o),_0x32b6c2=_0x3f2e20['plugins']['get'](r),_0x61e210=_0x3f2e20['plugins']['get'](N),_0x234c6d=_0x3f2e20['plugins']['get'](P);_0x3f2e20['ui']['componentFactory']['add']('comment',()=>{const _0x19a07a=this['_createUIButton'](_0x3e77fe);return _0x19a07a['tooltip']=!0x0,_0x19a07a;}),_0x3f2e20['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0xa36070)),_0x234c6d['addSourceCollector'](()=>{const _0xf8cc8=[];for(const [_0x49e47e,_0x3f5079]of _0xf66a6f['_threadToController']){const _0x1c5603=_0x32b6c2['getAllMarkersForId'](_0x49e47e['id']),_0x41b6f9=_0x1c5603['map'](_0x49f728=>_0x49f728['getRange']());_0x1c5603['length']>0x0&&_0xf8cc8['push']([_0x3f5079['view'],_0x41b6f9]);}return _0xf8cc8;}),this['listenTo'](_0x61e210,'change:activeAnnotations',(_0x39b866,_0x410267,_0x1b4158)=>{const _0x48ec1b=Array['from'](_0x1b4158)['map'](_0x3027e1=>_0x3027e1['innerView'])['find'](_0x55c869=>_0xf66a6f['_viewToController']['has'](_0x55c869));if(!_0x48ec1b)return void(_0x32b6c2['activeMarker']=null);const _0x2b8381=_0xf66a6f['_viewToController']['get'](_0x48ec1b)['model']['id'],_0x115704='comment:'+_0x2b8381;_0x2b8381&&_0x32b6c2['hasMarkerForId'](_0x2b8381)?_0x32b6c2['activeMarker']=_0x115704:_0x32b6c2['activeMarker']&&(_0x32b6c2['activeMarker']=null);}),this['listenTo'](_0xf66a6f,'removeCommentThread',(_0x286df9,{threadId:_0x408788,isFromAdapter:_0x86b4ba})=>{!_0x86b4ba&&_0x3f2e20['ui']['focusTracker']['isFocused']&&_0x32b6c2['hasMarkerForId'](_0x408788)&&_0x3f2e20['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0xf66a6f,'addComment',(_0x5ab9c9,{threadId:_0x5231d2,isFromAdapter:_0x2ab659})=>{if(_0x2ab659||!_0x32b6c2['hasMarkerForId'](_0x5231d2)||!_0xf66a6f['hasCommentThread'](_0x5231d2))return;0x1===_0xf66a6f['getCommentThread'](_0x5231d2)['length']&&(_0x3f2e20['editing']['view']['focus'](),_0x5ab9c9['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x146cde=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x38db24;for(const _0x4eef68 in _0x146cde){const _0x31308f=_0x4eef68,_0x3bbcbe=_0x146cde[_0x31308f];if('commentsLicenseKeyValid'==_0x3bbcbe||'commentsLicenseKeyInvalid'==_0x3bbcbe||'commentsLicenseKeyExpired'==_0x3bbcbe||'commentsLicenseKeyDomainLimit'==_0x3bbcbe||'commentsLicenseKeyNotAllowed'==_0x3bbcbe||'commentsLicenseKeyEvaluationLimit'==_0x3bbcbe||'commentsLicenseKeyTrialLimit'==_0x3bbcbe||'commentsLicenseKeyDevelopmentLimit'==_0x3bbcbe||'commentsLicenseKeyUsageLimit'==_0x3bbcbe){delete _0x146cde[_0x31308f],_0x38db24=_0x3bbcbe,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x38db24&&_0x146cde['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x38db24&&_0x146cde['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x38db24&&_0x146cde['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x38db24&&_0x146cde['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x38db24&&_0x146cde['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x38db24&&_0x146cde['_showLicenseError']('trialLimit'),'commentsLicenseKeyDevelopmentLimit'==_0x38db24&&_0x146cde['_showLicenseError']('developmentLimit'),'commentsLicenseKeyUsageLimit'==_0x38db24&&_0x146cde['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0xad6a32){const _0x4ae73d=this['editor'],_0x5c8f49=new _0xad6a32(_0x4ae73d['locale']),_0xf38339=_0x4ae73d['commands']['get']('addCommentThread');return _0x5c8f49['set']({'label':S(_0x4ae73d['locale'],'Comment'),'icon':xt}),_0x5c8f49['bind']('isEnabled')['to'](_0xf38339),this['listenTo'](_0x5c8f49,'execute',()=>_0xf38339['execute']()),_0x5c8f49;}}class s extends _0x44c214{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x3a21c7){super(_0x3a21c7),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x2fbf33,_0x4672b4,_0x12edd4)=>{_0x12edd4?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x54f0b6,_0x4a60c3]of this['editor']['commands'])_0x4a60c3['affectsData']&&'addCommentThread'!==_0x54f0b6&&_0x4a60c3['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0x9f7d9b=this['editor']['editing']['view']['document'];this['listenTo'](_0x9f7d9b,'cut',_0x4cd9e2=>_0x4cd9e2['stop'](),{'priority':'highest'}),this['listenTo'](_0x9f7d9b,'clipboardInput',_0x460172=>_0x460172['stop'](),{'priority':'highest'}),this['listenTo'](_0x9f7d9b,'delete',_0x1066f3=>_0x1066f3['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x39febd,_0x1f0716]of this['editor']['commands'])_0x1f0716['affectsData']&&'addCommentThread'!==_0x39febd&&_0x1f0716['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x3f9f30{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38583b){super(_0x38583b),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x558a2b=this['context']['plugins']['get'](N);this['listenTo'](_0x558a2b,'_activateAnnotation',(_0x3decc1,_0xa710c8)=>{for(const _0x5b60ca of this['activeUIs']){const _0x274b59=this['_uis']['get'](_0x5b60ca);(0x0,this['_uisData']['get'](_0x5b60ca)['filter'])(_0xa710c8)&&_0x274b59['setActiveAnnotation'](_0xa710c8);}}),this['listenTo'](_0x558a2b,'_deactivateAllAnnotations',()=>{for(const _0x45a21c of this['activeUIs']){this['_uis']['get'](_0x45a21c)['setActiveAnnotation'](null);}}),this['listenTo'](_0x558a2b['_visibleAnnotations'],'add',(_0x3bb56b,_0x37ad8c)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x37ad8c);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x50e4d9){return this['activeUIs']['has'](_0x50e4d9);}['activate'](_0x36969b,_0xc7bb2f=()=>!0x0){const _0x59b941=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x36969b))throw new _0x766f41('annotationsuis-missing-ui',this,{'uiName':_0x36969b});this['isActive'](_0x36969b)&&this['deactivate'](_0x36969b),this['activeUIs']['add'](_0x36969b);const _0x261619=new x();!function({source:_0x2f499b,target:_0x274c48,filter:_0x4a1308}){for(const _0x4ab02d of _0x2f499b)_0x4a1308(_0x4ab02d)&&_0x274c48['add'](_0x4ab02d);_0x274c48['listenTo'](_0x2f499b,'add',(_0x103b75,_0x493238)=>{_0x4a1308(_0x493238)&&_0x274c48['add'](_0x493238);}),_0x274c48['listenTo'](_0x2f499b,'remove',(_0x50cd13,_0xac6a13)=>{_0x274c48['has'](_0xac6a13)&&_0x274c48['remove'](_0xac6a13);});}({'source':_0x59b941['_visibleAnnotations'],'target':_0x261619,'filter':_0xc7bb2f}),this['_uisData']['set'](_0x36969b,{'collection':_0x261619,'filter':_0xc7bb2f});const _0x4892a4=this['_uis']['get'](_0x36969b);_0x4892a4['attach'](_0x261619),this['listenTo'](_0x4892a4,'change:activeAnnotation',(_0x19e7b2,_0x439bbd,_0x1d2794,_0x5cb98f)=>{_0x5cb98f&&_0x59b941['_removeActiveAnnotation'](_0x5cb98f),_0x1d2794&&_0x59b941['_addActiveAnnotation'](_0x1d2794);});}['deactivate'](_0x34579b){if(this['activeUIs']['delete'](_0x34579b),!this['_uis']['has'](_0x34579b))throw new _0x766f41('annotationsuis-missing-ui',this,{'uiName':_0x34579b});const _0x4110ec=this['_uis']['get'](_0x34579b);_0x4110ec['detach'](),this['stopListening'](_0x4110ec),this['_uisData']['get'](_0x34579b)['collection']['destroy'](),this['_uisData']['delete'](_0x34579b);}['switchTo'](_0x21ace3){if(!this['_uis']['has'](_0x21ace3))throw new _0x766f41('annotationsuis-missing-ui',this,{'uiName':_0x21ace3});const _0x54f2df=this['context']['plugins']['get'](N),_0x21ed31=Array['from'](_0x54f2df['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x21ace3);const _0x24b9c6=this['_uis']['get'](_0x21ace3);_0x24b9c6['setActiveAnnotation'](_0x21ed31),_0x24b9c6['_setSelectedAnnotations']&&_0x21ed31&&_0x24b9c6['_setSelectedAnnotations']([_0x21ed31]);}['deactivateAll'](){for(const _0x4b6319 of this['activeUIs'])this['deactivate'](_0x4b6319);}['register'](_0xe6d9b8,_0x59648c){if(this['_uis']['has'](_0xe6d9b8))throw new _0x766f41('annotationsuis-register-already-registered');if('function'!=typeof _0x59648c['attach']||'function'!=typeof _0x59648c['detach']||'function'!=typeof _0x59648c['setActiveAnnotation'])throw new _0x766f41('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0xe6d9b8,_0x59648c);}['refilterAnnotations'](){const _0x5d6160=this['context']['plugins']['get'](N)['collection'],_0x4dd0c7=new Map(),_0x204667=Array['from'](this['activeUIs']);for(const _0x36cb90 of this['activeUIs']){const _0x6dcb01=this['_uisData']['get'](_0x36cb90)['collection'];for(const _0x6588d3 of _0x6dcb01)_0x4dd0c7['set'](_0x6588d3,_0x36cb90);}for(const _0x56d032 of _0x5d6160){const _0xf6ebd8=_0x4dd0c7['get'](_0x56d032);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x56d032);const _0x2c4110=_0x204667['find'](_0x4de7f1=>this['_uisData']['get'](_0x4de7f1)['filter'](_0x56d032));_0xf6ebd8!==_0x2c4110&&(_0xf6ebd8&&this['_uisData']['get'](_0xf6ebd8)['collection']['remove'](_0x56d032),_0x2c4110&&this['_uisData']['get'](_0x2c4110)['collection']['add'](_0x56d032));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x2f843e){const _0x583482=[];for(const _0x4751c3 of this['activeUIs']){(0x0,this['_uisData']['get'](_0x4751c3)['filter'])(_0x2f843e)&&_0x583482['push'](_0x4751c3);}if(_0x583482['length']>0x1)throw new _0x766f41('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x583482,'annotationType':_0x2f843e['type']});}}const he=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x5486b2){super(_0x5486b2);const _0x1f10e2=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 _0x22a307(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x1f10e2['to']('class')],'style':{'minHeight':_0x1f10e2['to']('minHeight',_0x1d26b5=>'number'==typeof _0x1d26b5?he(_0x1d26b5+0xa):null)},'dir':_0x5486b2['uiLanguageDirection'],'role':'application','aria-label':S(_0x5486b2,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x5486b2,'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',_0x1817fd=>{this['_updateItemPositionInFocusables'](_0x1817fd['source']);}),this['list']['forEach'](_0x404d20=>{this['focusTracker']['add'](_0x404d20['element']),this['_updateItemPositionInFocusables'](_0x404d20);}),this['list']['on']('change',(_0x4084b3,_0x5c4daf)=>{for(const _0x2fcf79 of _0x5c4daf['removed'])this['focusTracker']['remove'](_0x2fcf79['element']),this['focusables']['remove'](_0x2fcf79);for(const _0x291819 of _0x5c4daf['added'])this['focusTracker']['add'](_0x291819['element']),this['_updateItemPositionInFocusables'](_0x291819);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0xaa7cc0){const _0x1fc71f=this['focusables']['getIndex'](_0xaa7cc0);let _0x3432ae,_0x5861f7;for(const _0x517e0f of this['focusables'])if(_0xaa7cc0['top']<_0x517e0f['top']){_0x3432ae=_0x517e0f;break;}if(_0x5861f7=_0x3432ae?this['focusables']['getIndex'](_0x3432ae):this['focusables']['length'],-0x1!==_0x1fc71f){if(_0x1fc71f===_0x5861f7-0x1)return;this['focusables']['remove'](_0xaa7cc0),_0x5861f7=_0x3432ae?this['focusables']['getIndex'](_0x3432ae):this['focusables']['length'];}this['focusables']['add'](_0xaa7cc0,_0x5861f7);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x3f6e24){super(_0x3f6e24),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x2eccf5,_0x674f49)=>_0x2eccf5+_0x674f49),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x5510d1=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x5510d1['to']('isAnimationDisabled',_0x3925d4=>_0x3925d4?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x5510d1['to']('top',_0x2f26cb=>qt(_0x2f26cb))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x53bdb9=this['element']['clientHeight'];_0x53bdb9&&(this['height']=_0x53bdb9);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x3f9f30{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xdcbaf4){super(_0xdcbaf4),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 _0x230ab6=this['context']['config']['get']('sidebar.container');_0x230ab6&&this['setContainer'](_0x230ab6);}['setContainer'](_0x4dd145){if(!y(_0x4dd145))throw new _0x766f41('sidebar-setcontainer-invalid-element');this['container']=_0x4dd145;}['_attachToContainer']({viewClass:_0x37ce6e='',spaceBetweenItems:_0xb7764e=0x19}={}){if(!y(this['container']))throw new _0x766f41('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x37ce6e,this['_spaceBetweenItems']=_0xb7764e;}['rearrange']({removedAnnotation:_0x571b6f,previousAnnotation:_0x277bc4,nextAnnotation:_0x339909}){const _0x259e86=this['getSidebarItemView'](_0x571b6f);this['view']['list']['remove'](_0x259e86),this['_destroySidebarItemView'](_0x571b6f),_0x277bc4&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x277bc4)),_0x339909&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x339909)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x2cfd67,activatedAnnotation:_0x290eb6,disableAnimationOnActivatedAnnotation:_0x9b273e}){if(this['_activeAnnotation']=_0x290eb6,_0x2cfd67){_0x2cfd67['isActive']=!0x1;const _0x493947=this['getSidebarItemView'](_0x2cfd67);_0x493947&&_0x9b273e&&(_0x493947['isAnimationDisabled']=!0x1);}if(_0x290eb6){const _0x324393=this['getSidebarItemView'](_0x290eb6);_0x324393&&(_0x290eb6['isActive']=!0x0,_0x9b273e&&(_0x324393['isAnimationDisabled']=!0x0,_0x324393['top']+=0x1),this['_alignToTargetRect'](_0x324393));}}['_detachFromContainer'](_0x4e3f6c){if(this['view']['element']['remove'](),_0x4e3f6c){for(const _0x5836b0 of _0x4e3f6c)this['_destroySidebarItemView'](_0x5836b0);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0xc417a4,_0x22320d){_0x22320d||(_0x22320d=_0xc417a4['view']);const _0x8a84e0=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x8a84e0,_0xc417a4),this['_annotationToSidebarItemView']['set'](_0xc417a4,_0x8a84e0),_0x8a84e0['content']['add'](_0x22320d),this['listenTo'](_0xc417a4['view'],'change:targetRect',(_0xa993c3,_0x18c34a,_0x375868)=>{const _0x2d195a=this['_getTargetTop'](_0xc417a4,_0x375868);_0x8a84e0['_targetTop']!=_0x2d195a&&(_0x8a84e0['_targetTop']=_0x2d195a,this['_setItemTop'](_0x8a84e0,_0x2d195a));}),this['listenTo'](_0x8a84e0,'change:top',()=>{this['_recalculate'](_0x8a84e0,'top');}),this['listenTo'](_0x8a84e0,'change:bottom',()=>{this['_recalculate'](_0x8a84e0,'bottom');}),this['_alignToTargetRect'](_0x8a84e0);const _0x1ba8b4=this['_getItemBefore'](_0x8a84e0);if(_0x1ba8b4)this['_alignAfterItem'](_0x1ba8b4,_0x8a84e0)||this['_alignToTargetRect'](_0x8a84e0);else this['_alignToTargetRect'](_0x8a84e0);return this['_updateLastItem'](),this['view']['list']['add'](_0x8a84e0),_0x8a84e0;}['_alignForTopChange'](_0x5bdf6c){if(!_0x5bdf6c['content']['length'])return;const _0x272561=this['_getItemBefore'](_0x5bdf6c);if(!_0x272561)return;const _0x35c927=this['_sidebarItemViewToAnnotation']['get'](_0x272561),_0x53db0b=this['_activeAnnotation'];_0x53db0b&&_0x53db0b===_0x35c927?this['_alignAfterItem'](_0x272561,_0x5bdf6c):this['_alignBeforeItem'](_0x5bdf6c,_0x272561);}['_alignForBottomChange'](_0x36f5a9){if(!_0x36f5a9['content']['length'])return;const _0x472dc6=this['_getItemAfter'](_0x36f5a9);if(!_0x472dc6)return;const _0x3ba6a8=this['_sidebarItemViewToAnnotation']['get'](_0x472dc6),_0x41ac1d=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x380519=this['_activeAnnotation'];_0x380519&&_0x380519===_0x3ba6a8&&_0x41ac1d?(this['_alignBeforeItem'](_0x472dc6,_0x36f5a9),this['_alignAfterItem'](_0x36f5a9,_0x472dc6)):_0x380519&&_0x380519===_0x3ba6a8?this['_alignBeforeItem'](_0x472dc6,_0x36f5a9):this['_alignAfterItem'](_0x36f5a9,_0x472dc6);}['_recalculate'](_0x4892f7,_0x5ea7a4){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x5f2f6b,changedProp:_0x5b49b2}of this['_recalculateBuffer'])'top'===_0x5b49b2?this['_alignForTopChange'](_0x5f2f6b):this['_alignForBottomChange'](_0x5f2f6b);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x4892f7,'changedProp':_0x5ea7a4});}['getSidebarItemView'](_0x398654){return this['_annotationToSidebarItemView']['get'](_0x398654);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x5e9cdf){const _0x41f659=this['getSidebarItemView'](_0x5e9cdf);this['stopListening'](_0x41f659),this['stopListening'](_0x5e9cdf['view']),_0x41f659['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x5e9cdf),this['_sidebarItemViewToAnnotation']['delete'](_0x41f659);}['_createSidebarView'](){const _0x4d4de4=new V(this['context']['locale']);return _0x4d4de4['render'](),this['on']('change:_lastItem',(_0x1c95a3,_0xf68ed8,_0x4df28a,_0x47be5a)=>{_0x47be5a&&_0x4d4de4['unbind']('minHeight'),_0x4df28a?_0x4d4de4['bind']('minHeight')['to'](_0x4df28a,'bottom'):_0x4d4de4['minHeight']=null;}),_0x4d4de4;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x26d01b){const _0x404b07=this['_sidebarItemViewToAnnotation']['get'](_0x26d01b),_0x47f006=_0x404b07&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x404b07)-0x1);return _0x47f006&&this['getSidebarItemView'](_0x47f006)||null;}['_getItemAfter'](_0x5af395){const _0x309dcf=this['_sidebarItemViewToAnnotation']['get'](_0x5af395),_0x322f84=_0x309dcf&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x309dcf)+0x1);return _0x322f84&&this['getSidebarItemView'](_0x322f84)||null;}['_alignBeforeItem'](_0x51e64a,_0x3a715e){_0x51e64a['updateHeight']();const _0x3b0ade=R(_0x3a715e['bottom']+this['_spaceBetweenItems'],_0x51e64a['top']);return!!_0x3b0ade&&(this['_setItemTop'](_0x3a715e,_0x3a715e['top']-_0x3b0ade),!0x0);}['_alignAfterItem'](_0x337d64,_0x4e3375){_0x337d64['updateHeight']();const _0xe63036=R(_0x337d64['bottom']+this['_spaceBetweenItems'],_0x4e3375['top']);return!!_0xe63036&&(this['_setItemTop'](_0x4e3375,_0x4e3375['top']+_0xe63036,!0x1),!0x0);}['_alignToTargetRect'](_0x36ba8a){const _0x299bfc=this['_sidebarItemViewToAnnotation']['get'](_0x36ba8a);if(!_0x299bfc||!_0x299bfc['target']||!_0x299bfc['targetRect'])return;const _0x57445d=this['_getTargetTop'](_0x299bfc,_0x299bfc['targetRect']);this['_setItemTop'](_0x36ba8a,_0x57445d);}['_getTargetTop'](_0x52f5bf,_0x5ec271){if(null===_0x5ec271)return 0x0;if(_0x52f5bf['target']instanceof _0x12a62b)return _0x5ec271['top'];{const _0x23b73e=new _0x12a62b(this['view']['element'])['top'];return _0x5ec271['top']-_0x23b73e;}}['_setItemTop'](_0xc609da,_0x2e0f5e,_0xd9aaaa=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0xd9aaaa&&(_0x2e0f5e=Math['max'](_0x2e0f5e,this['_getMaxAvailableTop'](_0xc609da))),_0xc609da['top']=_0x2e0f5e;}['_getMaxAvailableTop'](_0x545e7a){let _0x1ac9b9=this['_getItemBefore'](_0x545e7a),_0x349f58=0x0;for(;_0x1ac9b9;)_0x1ac9b9['updateHeight'](),_0x349f58+=this['_spaceBetweenItems']+_0x1ac9b9['height'],_0x1ac9b9=this['_getItemBefore'](_0x1ac9b9);return _0x349f58;}}function R(_0x24b3ad,_0x2775ad){return Math['max'](_0x24b3ad-_0x2775ad,0x0);}function y(_0x4ff5b7){return null!==_0x4ff5b7&&'object'==typeof _0x4ff5b7&&0x1===_0x4ff5b7['nodeType'];}class e extends _0x3f9f30{['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(_0x328bfe){super(_0x328bfe),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x11cbf4(),this['_refreshPositioningDebounced']=_0x23ed5d(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x2cea5a=this['context']['plugins']['get'](M),_0x1984d9=this['context']['plugins']['get'](z);_0x2cea5a['register']('wideSidebar',this),_0x1984d9['container']&&_0x2cea5a['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x4d60c2){if(_0x4d60c2===this['activeAnnotation'])return;const _0x5f537d=this['context']['plugins']['get'](z);_0x5f537d['_activeAnnotation']=_0x4d60c2;const _0x4677d5=this['activeAnnotation'];_0x5f537d['refresh']({'blurredAnnotation':_0x4677d5,'activatedAnnotation':_0x4d60c2}),this['activeAnnotation']=_0x4d60c2;}['attach'](_0x309376){this['annotations']=_0x309376;const _0x1caf3=this['context']['plugins']['get'](z);if(_0x1caf3['_annotations']=_0x309376,this['isAttached'])throw new _0x766f41('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x1caf3,'set:container',()=>{this['detach'](),this['listenTo'](_0x1caf3,'change:container',_0x92f795=>{_0x92f795['off'](),this['attach'](_0x309376);});}),_0x1caf3['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x2736f1=_0x338922=>{_0x338922['updateTargetRect'](),_0x1caf3['addAnnotation'](_0x338922);};for(const _0xe630fa of _0x309376)_0x2736f1(_0xe630fa);this['listenTo'](_0x309376,'add',(_0x57848e,_0x1306f6)=>{_0x2736f1(_0x1306f6);}),this['listenTo'](_0x309376,'remove',(_0x5c4188,_0x507bd6,_0xe0f3de)=>{_0x1caf3['rearrange']({'removedAnnotation':_0x507bd6,'previousAnnotation':_0x309376['get'](_0xe0f3de-0x1),'nextAnnotation':_0x309376['get'](_0xe0f3de+0x1)}),_0x507bd6===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x309376,'focus',(_0x504358,_0x2a58a9)=>{this['setActiveAnnotation'](_0x2a58a9);}),this['listenTo'](_0x309376,'blur',()=>{this['setActiveAnnotation'](null);});const _0x5bc54a=this['context']instanceof _0x5257b6?this['context']['editors']:new _0x11cbf4([this['context']]);for(const _0x364f4c of _0x5bc54a)this['_integrateWithEditorAnnotations'](_0x364f4c);this['listenTo'](_0x5bc54a,'add',(_0x4514d,_0x47af9d)=>{this['listenTo'](_0x47af9d,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x47af9d);});}),this['listenTo'](_0x5bc54a,'remove',(_0x12c03c,_0x1ecee7)=>{_0x1ecee7['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x1ecee7['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x766f41('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x720449=this['context']['plugins']['get'](z);_0x720449['_detachFromContainer'](this['annotations']),this['stopListening'](_0x720449),this['stopListening'](this['annotations']),this['context']instanceof _0x5257b6&&this['stopListening'](this['context']['editors']);for(const _0x2ac991 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x2ac991);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x473ae5){if(!_0x473ae5['plugins']['has']('EditorAnnotations'))return;const _0x19d4e7=_0x473ae5['plugins']['get']('EditorAnnotations'),_0x157095=()=>{const _0x59b059=_0x19d4e7['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x59b059[0x0]||null);};this['listenTo'](_0x19d4e7,'refresh',_0x157095),this['listenTo'](_0x19d4e7,'blur',(_0x5dd39d,{isAnnotationTracked:_0x2a22cc})=>{this['activeAnnotation']&&_0x2a22cc(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x19d4e7,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x10f53c=>{_0x19d4e7['hasDomSelection']()&&(_0x157095(),_0x10f53c['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x19d4e7);}['_destroyEditorAnnotationsIntegration'](_0x17190c){this['stopListening'](_0x17190c),this['_editorAnnotations']['remove'](_0x17190c);}}class D extends _0x3e77fe{['counterView'];constructor(_0x3e4a52){super(_0x3e4a52);const _0x1a3a82=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x27ebd3,_0x4212f4)=>_0x27ebd3?'...':_0x4212f4['toString']()),this['set']('annotationType',''),this['icon']=xt,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x1a3a82['to']('annotationType',_0x5c105c=>'ck-annotation-counter__badge--'+_0x5c105c),_0x1a3a82['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x1a3a82['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x3f9f30{['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(_0x2fdcad){super(_0x2fdcad),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0xe2bdbb),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x11cbf4(),this['_refreshPositioningDebounced']=_0x23ed5d(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x977e01(this['context']['locale']),this['balloonPanelView']=new _0x17391a(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x8ed80e){this['annotations']=_0x8ed80e;const _0x2c2944=this['context']['plugins']['get'](z),_0x35309b=this['balloonPanelView'];if(_0x2c2944['_annotations']=_0x8ed80e,this['isAttached'])throw new _0x766f41('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x2c2944,'set:container',()=>{this['detach'](),this['listenTo'](_0x2c2944,'change:container',_0x36d029=>{_0x36d029['off'](),this['attach'](_0x8ed80e);});}),_0x2c2944['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x52c041=_0x291d09=>{const _0x29046c=new D(this['context']['locale']);_0x2c2944['addAnnotation'](_0x291d09,_0x29046c),this['_annotationToNarrowView']['set'](_0x291d09,_0x29046c),_0x29046c['bind']('isDirty','annotationType','number')['to'](_0x291d09['view'],'isDirty','type','length'),_0x29046c['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x35309b['content']['first']!==_0x291d09['view']?(this['_showBalloon'](_0x291d09),_0x291d09['view']['element']['focus'](),this['setActiveAnnotation'](_0x291d09)):this['setActiveAnnotation'](null);});};for(const _0x21207b of _0x8ed80e)_0x52c041(_0x21207b);this['listenTo'](_0x8ed80e,'add',(_0x1eb5ae,_0x5bcdbb)=>{_0x52c041(_0x5bcdbb);}),this['listenTo'](_0x8ed80e,'remove',(_0xd86958,_0x3d576f,_0xbecb8d)=>{this['_annotationToNarrowView']['get'](_0x3d576f)['destroy'](),this['_annotationToNarrowView']['delete'](_0x3d576f),_0x2c2944['rearrange']({'removedAnnotation':_0x3d576f,'previousAnnotation':_0x8ed80e['get'](_0xbecb8d-0x1),'nextAnnotation':_0x8ed80e['get'](_0xbecb8d+0x1)}),_0x3d576f===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x8ed80e,'focus',(_0x19f905,_0x523d2a)=>{this['setActiveAnnotation'](_0x523d2a);}),this['listenTo'](_0x8ed80e,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x5f4526,_0x558095)=>{_0x558095['keyCode']===_0x1cfb48['esc']&&_0x35309b['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x35309b['content']['first']),this['_hideBalloon'](),_0x558095['stopPropagation'](),_0x558095['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x22ac8c,_0x341a45)=>{const _0x18abe7=_0x341a45['target'];_0x35309b['isVisible']&&_0x35309b['element']['contains'](_0x18abe7)||_0x2c2944['view']['element']['contains'](_0x18abe7)||_0x22ac8c['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x1f4987=>_0x1f4987['contains'](_0x18abe7))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x43b707=this['context']instanceof _0x5257b6?this['context']['editors']:new _0x11cbf4([this['context']]);for(const _0x1f1b77 of _0x43b707)this['_integrateWithEditorAnnotations'](_0x1f1b77);this['listenTo'](_0x43b707,'add',(_0x5276c4,_0x57b5c2)=>{this['listenTo'](_0x57b5c2,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x57b5c2);});}),this['listenTo'](_0x43b707,'remove',(_0x161b49,_0x9e7371)=>{_0x9e7371['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x9e7371['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x3ee750){if(_0x3ee750===this['activeAnnotation'])return;const _0x4f51eb=this['context']['plugins']['get'](z);if(_0x4f51eb['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x3ee750,'disableAnimationOnActivatedAnnotation':!0x0}),_0x3ee750)_0x4f51eb['getSidebarItemView'](_0x3ee750)?this['_showBalloon'](_0x3ee750):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x3ee750;}['detach'](){if(!this['isAttached'])throw new _0x766f41('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x5185ad=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x3a284f=>_0x3a284f['destroy']()),this['_annotationToNarrowView']['clear'](),_0x5185ad['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x5257b6&&this['stopListening'](this['context']['editors']);for(const _0x197747 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x197747);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'](_0x436e84){if(!_0x436e84['plugins']['has']('EditorAnnotations'))return;const _0x4afec7=_0x436e84['plugins']['get']('EditorAnnotations'),_0x43cd1=this['context']['plugins']['get'](z),_0x1d3383=this['annotations'],_0x1b8dc6=this['balloonPanelView'],_0x4f7777=()=>{const _0x1203ee=_0x4afec7['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x1203ee),this['setActiveAnnotation'](_0x1203ee[0x0]||null);};this['listenTo'](_0x4afec7,'refresh',_0x4f7777),this['listenTo'](_0x4afec7,'blur',(_0x277bc5,{isAnnotationTracked:_0x54e408})=>{this['activeAnnotation']&&_0x54e408(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x4afec7,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x1d3383,'blur',_0x59f718=>{_0x4afec7['hasDomSelection']()&&_0x59f718['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x5c9c5c,_0x4d6f70)=>{const _0x37f720=_0x4d6f70['target'];_0x1b8dc6['isVisible']&&_0x1b8dc6['element']['contains'](_0x37f720)||_0x43cd1['view']['element']['contains'](_0x37f720)||this['activeAnnotation']&&_0x4afec7['hasDomSelection']()&&(_0x4f7777(),_0x5c9c5c['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x4afec7);}['_destroyEditorAnnotationsIntegration'](_0x3d7a26){_0x3d7a26&&(this['stopListening'](_0x3d7a26),this['_editorAnnotations']['remove'](_0x3d7a26));}['_setSelectedAnnotations'](_0x213a63){for(const _0x290aea of this['_selectedAnnotations'])_0x213a63['includes'](_0x290aea)||this['_manuallyClosedAnnotationViews']['delete'](_0x290aea['view']);this['_selectedAnnotations']=_0x213a63;}['_refreshPositioning'](){const _0x501e0c=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x501e0c['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x1e9676){if(this['_manuallyClosedAnnotationViews']['has'](_0x1e9676['view']))return;const _0x469bfe=this['balloonPanelView']['content']['first'];_0x469bfe!==_0x1e9676['view']?(_0x469bfe&&this['_detachListeners'](_0x469bfe),this['_attachListeners'](_0x1e9676['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x1e9676['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x13fecc=this['balloonPanelView']['content']['first'],_0x30e15d=_0x13fecc&&this['annotations']['getByView'](_0x13fecc);if(!_0x30e15d||!this['_annotationToNarrowView']['has'](_0x30e15d))return;const _0x2fd032=this['_annotationToNarrowView']['get'](_0x30e15d)['element'],_0x281d0a=(function(){const _0x4c92da=_0x17391a['defaultPositions'];return[_0x4c92da['southArrowNorthEast'],_0x4c92da['northArrowSouthEast'],_0x4c92da['southArrowNorth'],_0x4c92da['northArrowSouth'],_0x4c92da['southArrowNorthWest'],_0x4c92da['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x2fd032,'positions':_0x281d0a});}['_hideBalloon'](){const _0x2d7f46=this['balloonPanelView'],_0x5bd24c=_0x2d7f46['content']['first'];_0x5bd24c&&(this['_detachListeners'](_0x5bd24c),_0x2d7f46['unpin'](),_0x2d7f46['content']['clear']());}['_attachListeners'](_0x353ad2){this['listenTo'](_0x353ad2,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x353ad2,'Esc',(_0x1f8748,_0x4c5f24)=>{this['_manuallyClosedAnnotationViews']['add'](_0x353ad2),this['_hideBalloon'](),_0x4c5f24();});}['_detachListeners'](_0x2105df){this['stopListening'](_0x2105df);}}class c extends _0x44c214{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x32dd4a,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e82c5){super(_0x1e82c5),_0x1e82c5['editing']['view']['addObserver'](_0x47e7a4),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x1e82c5['plugins']['get'](_0x32dd4a),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x40cac6=this['editor']['plugins']['get'](M);_0x40cac6['context']===this['editor']&&(_0x40cac6['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x149ec9,_0x44803e)=>{const _0x1877aa=this['_balloon'];if(this['isAttached']&&_0x1877aa['visibleView']){const _0x232c3f=this['annotations']['getByView'](_0x1877aa['visibleView']);_0x232c3f&&this['_closeAnnotation'](_0x232c3f),_0x44803e();}}));}['afterInit'](){const _0x52a8b9=this['editor']['plugins']['get'](M);_0x52a8b9['context']===this['editor']&&(_0x52a8b9['hasActive']()||_0x52a8b9['switchTo']('inline'));}['setActiveAnnotation'](_0x4756d6){_0x4756d6!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x4756d6&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x4756d6)&&this['_addAnnotationToBalloon'](_0x4756d6,!0x0),_0x4756d6['isActive']=!0x0),_0x4756d6||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x4756d6);}['attach'](_0x250c38){this['annotations']=_0x250c38;const _0x4ff52c=this['editor']['plugins']['get'](M),_0x1fe116=this['_balloon'];if(this['isAttached'])throw new _0x766f41('inlineannotations-attach-already-attached',this);if(_0x4ff52c['context']!==this['editor'])throw new _0x766f41('inlineannotations-not-allowed-with-context',this);const _0x513349=this['editor']['plugins']['get'](P);this['listenTo'](_0x513349,'refresh',()=>{const _0x235d3a=_0x513349['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x430d8d,_0x5055b3;!this['_forceRefresh']&&(_0x430d8d=_0x235d3a,_0x5055b3=this['_selectedAnnotations'],_0x430d8d['length']===_0x5055b3['length']&&_0x430d8d['every'](_0x27de47=>_0x5055b3['includes'](_0x27de47)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x235d3a),this['setActiveAnnotation'](_0x235d3a[0x0]||null));}),this['listenTo'](_0x513349,'blur',(_0x47b054,{isAnnotationTracked:_0x268c9d})=>{this['activeAnnotation']&&_0x268c9d(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x2a9c07,_0x54ca46,_0x6abccc)=>{_0x6abccc||this['setActiveAnnotation'](null);}),this['listenTo'](_0x250c38,'remove',(_0x31e270,_0x44a4d0)=>{this['_removeAnnotationFromBalloon'](_0x44a4d0),_0x44a4d0===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x1fe116,'change:visibleView',(_0x583fe3,_0x49bffe,_0x57d956,_0xb19b29)=>{_0xb19b29&&this['stopListening'](_0xb19b29);const _0x4f6864=_0x250c38['getByView'](_0x57d956);_0x57d956&&_0x4f6864&&(this['listenTo'](_0x57d956,'change:height',()=>{_0x1fe116['updatePosition']();}),this['listenTo'](_0x57d956,'Esc',()=>{this['_closeAnnotation'](_0x4f6864),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x4f6864&&this['setActiveAnnotation'](_0x4f6864));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x1fe116['visibleView']&&(_0x250c38['getByView'](_0x1fe116['visibleView'])&&_0x1fe116['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 _0x766f41('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x2aa912 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x2aa912);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x3bb613){for(const _0x58c553 of this['_selectedAnnotations'])_0x3bb613['includes'](_0x58c553)||this['_manuallyClosed']['delete'](_0x58c553);for(const _0x37fdfc of this['annotations'])_0x3bb613['includes'](_0x37fdfc)||this['_removeAnnotationFromBalloon'](_0x37fdfc);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x1cf3b1 of _0x3bb613)this['_addAnnotationToBalloon'](_0x1cf3b1);}this['_selectedAnnotations']=_0x3bb613;}['_addAnnotationToBalloon'](_0x306e31,_0x546d73=!0x1){this['_manuallyClosed']['has'](_0x306e31)||(this['_addedAnnotations']['has'](_0x306e31)||this['_balloon']['hasView'](_0x306e31['view'])||(this['_addedAnnotations']['add'](_0x306e31),this['_balloon']['add']({'stackId':_0x306e31['view']['id'],'view':_0x306e31['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x306e31)}})),_0x546d73&&this['_balloon']['showStack'](_0x306e31['view']['id']));}['_getBalloonTargetForAnnotation'](_0x580a21){const _0x3a2ca3=_0x580a21['target'],_0x19ea4b=this['editor']['editing']['view'],_0x2589e6=_0x19ea4b['document']['selection']['getFirstRange'](),_0x3bf5b3=_0x19ea4b['domConverter']['viewRangeToDom'](_0x2589e6);if(_0x3bf5b3['collapse'](!0x0),_0x3a2ca3){if(_0x3a2ca3 instanceof _0x12a62b)return _0x3a2ca3;let _0x144fd6=[];for(const _0x29aa22 of _0x3a2ca3)_0x144fd6['push'](...(_0x5bb6f6=_0x29aa22['getClientRects'](),Array['from'](_0x5bb6f6)['map'](DOMRect['fromRect'])));_0x144fd6=function(_0x2b718a){const _0x2db3be=[];let _0x294c36=_0x2b718a[0x0];for(let _0x483ad2=0x1;_0x483ad2<_0x2b718a['length'];_0x483ad2++)b(_0x294c36,_0x2b718a[_0x483ad2])?_0x294c36['width']+=_0x2b718a[_0x483ad2]['width']:(_0x2db3be['push'](_0x294c36),_0x294c36=_0x2b718a[_0x483ad2]);return _0x2db3be['push'](_0x294c36),_0x2db3be;}(_0x144fd6);const _0x435219=_0x3bf5b3['getBoundingClientRect']();return _0x144fd6['find'](_0x5b894f=>_0x5b894f['top']<=_0x435219['top']&&_0x5b894f['bottom']>=_0x435219['bottom']&&_0x5b894f['left']<=_0x435219['left']&&_0x5b894f['right']>=_0x435219['right'])||_0x144fd6[0x0];}var _0x5bb6f6;return _0x580a21['targetRect']||_0x3bf5b3;}['_removeAnnotationFromBalloon'](_0x1c3fed){this['_addedAnnotations']['has'](_0x1c3fed)&&this['_balloon']['hasView'](_0x1c3fed['view'])&&(this['_addedAnnotations']['delete'](_0x1c3fed),this['_balloon']['remove'](_0x1c3fed['view']));}['_closeAnnotation'](_0x5990f9){this['_manuallyClosed']['add'](_0x5990f9),this['_removeAnnotationFromBalloon'](_0x5990f9);}}function b(_0x2055fa,_0x246f92){return _0x2055fa['top']===_0x246f92['top']&&_0x2055fa['bottom']===_0x246f92['bottom']&&_0x2055fa['right']===_0x246f92['left'];}var Z='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M14\x203.5A3.5\x203.5\x200\x200\x201\x2017.5\x207v6l-.005.192a3.501\x203.501\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.37-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.272-2.63l-.062-.07-4.729-.046a3.5\x203.5\x200\x200\x201-3.5-3.5v-6a3.5\x203.5\x200\x200\x201\x203.5-3.5L14\x203.5ZM3.5\x204.954a2\x202\x200\x200\x200-2\x202v6a2\x202\x200\x200\x200\x202\x202L8.924\x2015a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L12.962\x2015H14a2\x202\x200\x200\x200\x202-2V7a2\x202\x200\x200\x200-2-2L3.5\x204.954Z\x22/><path\x20d=\x22M16.5.5h-10a3.5\x203.5\x200\x200\x200-3.162\x202h1.84A2\x202\x200\x200\x201\x206.5\x202h10a2\x202\x200\x200\x201\x202\x202v8.873a3.502\x203.502\x200\x200\x200\x201.495-2.681L20\x2010V4A3.5\x203.5\x200\x200\x200\x2016.5.5Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M12.013\x207.453a.75.75\x200\x200\x201\x20.034\x201.06l-3.75\x204a.75.75\x200\x200\x201-1.045.048l-2.25-2a.75.75\x200\x200\x201\x20.996-1.122l1.704\x201.515\x203.25-3.467a.75.75\x200\x200\x201\x201.061-.034Z\x22/></svg>\x0a';class tt extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x7c8bdb,_0x2681a2){super(_0x7c8bdb),this['set']('isEmpty',!_0x2681a2['length']),this['focusTracker']=new _0x22a307(),this['_annotationViews']=_0x2681a2,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x2681a2,'focusTracker':this['focusTracker']}),this['listenTo'](_0x2681a2,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x2681a2,'remove',(_0x323385,_0x507f91)=>{_0x507f91['isActive']&&this['focus'](),_0x2681a2['length']||(this['isEmpty']=!0x0);});const _0x2537b5=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x7c8bdb,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x2681a2},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x2537b5['if']('isEmpty','ck-hidden',_0x44411d=>!_0x44411d)]},'children':[{'text':S(_0x7c8bdb,'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 _0xa5b4bd of this['_annotationViews'])this['focusTracker']['add'](_0xa5b4bd['element']);this['_annotationViews']['on']('change',(_0x5ba9e2,{added:_0x2c8938,removed:_0x483449})=>{for(const _0x3ce7c9 of _0x2c8938)this['focusTracker']['add'](_0x3ce7c9['element']);for(const _0x40dd8d of _0x483449)this['focusTracker']['remove'](_0x40dd8d['element']);});}}class f extends _0x3f9f30{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x19403c){super(_0x19403c),this['archivedThreads']=new _0x11cbf4();}['init'](){const _0x3542bf=this['context'],_0x188c46=_0x3542bf['plugins']['get'](o),_0x2e4abb=_0x3542bf['plugins']['get'](N);this['listenTo'](_0x188c46,'addCommentThread',(_0x2d49ae,{threadId:_0x3f80b1})=>{const _0x375410=_0x188c46['getCommentThread'](_0x3f80b1);_0x375410['archivedAt']&&this['archivedThreads']['add'](_0x375410,this['_calculatePosition'](_0x375410['archivedAt'])),this['listenTo'](_0x375410,'change:archivedAt',(_0x3c3e23,_0x4a1f00,_0x36b39c)=>{_0x36b39c?this['archivedThreads']['has'](_0x375410)||this['archivedThreads']['add'](_0x375410,this['_calculatePosition'](_0x375410['archivedAt'])):this['archivedThreads']['has'](_0x375410)&&this['archivedThreads']['remove'](_0x375410);});}),this['listenTo'](_0x188c46,'removeCommentThread',(_0x4b05cf,{threadId:_0x25044d})=>{const _0x3346a7=_0x188c46['getCommentThread'](_0x25044d);this['stopListening'](_0x3346a7),this['archivedThreads']['has'](_0x3346a7)&&this['archivedThreads']['remove'](_0x3346a7);},{'priority':'highest'}),this['listenTo'](_0x2e4abb['collection'],'focus',(_0x5234d2,_0x3cf564)=>{_0x3cf564['isVisible']||(_0x3cf564['isActive']=!0x0,_0x2e4abb['activate'](_0x3cf564));});}['_calculatePosition'](_0x3b9611){const _0x5bf16f=[...this['archivedThreads']]['findIndex'](_0x437194=>_0x437194['archivedAt']<_0x3b9611);return _0x5bf16f>-0x1?_0x5bf16f:this['archivedThreads']['length'];}}class a extends _0x44c214{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x2135ff];}constructor(_0x15f034){super(_0x15f034),this['annotationViews']=new _0x36f2fa(),this['_pendingThreads']=[];}['init'](){const _0x1bcba7=this['editor'],_0x113ac0=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x1bcba7['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x3e77fe,!0x0)),_0x1bcba7['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x50a9ed=this['_createCommentsArchiveButton'](_0xa36070);return _0x50a9ed['set']({'role':'menuitemcheckbox'}),_0x50a9ed;});const _0x3d36e3=_0x1bcba7['plugins']['get'](f),_0x1782f8=_0x1bcba7['plugins']['get']('Annotations'),_0x8e6138=_0x1bcba7['plugins']['get']('CommentsRepository');this['listenTo'](_0x3d36e3['archivedThreads'],'add',(_0x213c5e,_0x3f57fc)=>{const _0x329c7d=_0x1bcba7['config']['get']('collaboration.channelId');if(!_0x329c7d||_0x3f57fc['channelId']===_0x329c7d){const _0x550b09=_0x8e6138['_threadToController']['get'](_0x3f57fc);if(!_0x550b09)return void this['_pendingThreads']['push'](_0x3f57fc);const _0x4fe718=this['_calculatePosition'](_0x3f57fc['archivedAt']),_0x44b391=_0x1782f8['getByInnerView'](_0x550b09['view']);_0x44b391['isVisible']&&_0x1782f8['_visibleAnnotations']['remove'](_0x44b391),this['annotationViews']['add'](_0x44b391['view'],_0x4fe718);}}),this['listenTo'](_0x1782f8['collection'],'add',(_0x8a59c7,_0x4671c5)=>{const _0x1181a1=this['_pendingThreads']['find'](_0x1728ce=>{const _0x3cad91=_0x8e6138['_threadToController']['get'](_0x1728ce);return _0x3cad91&&_0x4671c5['innerView']===_0x3cad91['view'];});if(_0x1181a1){const _0x1b34d1=this['_calculatePosition'](_0x1181a1['archivedAt']);this['annotationViews']['add'](_0x4671c5['view'],_0x1b34d1),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x1181a1),0x1);}}),this['listenTo'](_0x3d36e3['archivedThreads'],'remove',(_0x18448f,_0x1960a7)=>{const _0xeed75a=_0x1bcba7['config']['get']('collaboration.channelId');if(!_0xeed75a||_0x1960a7['channelId']===_0xeed75a){const _0x26081c=_0x8e6138['_threadToController']['get'](_0x1960a7),_0x333ceb=_0x1782f8['getByInnerView'](_0x26081c['view']);this['annotationViews']['remove'](_0x333ceb['view']),this['stopListening'](_0x333ceb['focusableElements']);}}),this['listenTo'](_0x1782f8['collection'],'add',(_0x610bde,_0x477b09)=>{this['listenTo'](_0x477b09,'escape',_0x113ac0);}),this['listenTo'](_0x1782f8['collection'],'remove',(_0x4aac49,_0x2d9e9a)=>{this['stopListening'](_0x2d9e9a,'escape',_0x113ac0);});}['_calculatePosition'](_0x589bec){const _0x58eec7=this['editor']['config']['get']('collaboration.channelId'),_0x579475=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0xe0cbc8=>_0xe0cbc8['channelId']===_0x58eec7)['findIndex'](_0x2d1af9=>_0x2d1af9['archivedAt']<_0x589bec);return _0x579475<0x0||_0x579475>this['annotationViews']['length']?this['annotationViews']['length']:_0x579475-0x1;}['_toggleDialog'](){const _0x5429a1=this['editor'],_0x10b49d=_0x5429a1['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x5429a1['locale'],this['annotationViews'])),'commentsArchive'===_0x10b49d['id']?_0x10b49d['hide']():_0x10b49d['show']({'id':'commentsArchive','title':S(_0x5429a1['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x310fee['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x320132,_0x5a08e7=!0x1){const _0x14e187=this['editor']['locale'],_0x24e9d9=this['editor']['plugins']['get']('Dialog'),_0x4ed8cf=new _0x320132(_0x14e187);return _0x4ed8cf['bind']('isEnabled')['to'](this,'isEnabled'),_0x4ed8cf['bind']('isOn')['to'](_0x24e9d9,'id',_0x295d93=>'commentsArchive'===_0x295d93),_0x4ed8cf['set']({'label':S(_0x14e187,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x5a08e7&&(_0x4ed8cf['tooltip']=!0x0),this['listenTo'](_0x4ed8cf,'execute',()=>this['_toggleDialog']()),_0x4ed8cf;}['_hideDialogOnAnnotationEscape']=_0x21b0c2=>{const _0x5131e1=_0x21b0c2['source'];if(!this['annotationViews']['has'](_0x5131e1['view']))return;const _0x38378f=this['editor']['plugins']['get']('Dialog');_0x38378f['isOpen']&&'commentsArchive'===_0x38378f['id']&&(_0x38378f['hide'](),_0x21b0c2['stop']());};}class p extends _0x44c214{static get['requires'](){return[o,r,i,f,a,s,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{d as Annotation,x as AnnotationCollection,T as AnnotationView,N as Annotations,M as AnnotationsUIs,is as BaseCommentThreadView,rs as BaseCommentView,re as Comment,oe as CommentThread,Ct as CommentThreadController,ie as CommentThreadInputView,vt as CommentThreadView,gt as CommentView,p as Comments,f as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,e as WideSidebar};
23
+ import{Editor as _0xa87eb7,icons as _0x2b050d,ContextPlugin as _0x17f52f,PendingActions as ht,Command as _0x224b6f,Plugin as _0x2ad286,Context as _0x1dbc00}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x459611,uid as _0x29ee90,KeystrokeHandler as jt,FocusTracker as _0x5abdce,diff as _0x1bb6be,Collection as _0x3040b9,Rect as _0x16256,CKEditorError as _0x2f1633,first as _0x99b28,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0xcdccb0,keyCodes as _0x4832b0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x1dd170,AriaDescriptionView as ts,setupThreadKeyboardNavigation as _0x5c179e,ConfirmMixin as ti,LateFocusButtonView as _0x3ac435,trimHtml as _0x1c656b,LateFocusDropdownButtonView as _0x50be63,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x3a6c48}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as yt,debounce as _0x2ab14a}from'lodash-es';import{EditorUIView as Yt,InlineEditableUIView as $t,EditorUI as Vt,View as kt,FocusCycler as Ft,ButtonView as _0xdf0cec,ViewCollection as _0x3d3c53,createDropdown as _0x179f8f,ListView as _0x54dc4a,focusChildOnDropdownOpen as _0x40aa58,ListItemView as _0x103fb5,MenuBarMenuListItemButtonView as _0x2444af,BodyCollection as _0x14a569,BalloonPanelView as _0x39be82,ContextualBalloon as _0x2ea456,Dialog as _0x123aad,DialogViewPosition as _0x5aaf2f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x258d07}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as Bt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as Et,ShiftEnter as Gt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Jt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Kt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Nt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Qt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x3329b5}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0xa5cd48}from'@ckeditor/ckeditor5-widget/dist/index.js';class Ct extends/* #__PURE__ -- @preserve */
24
+ _0x459611(){['model'];['view'];constructor(_0xc2798d,_0x4d8644){super(),this['model']=_0xc2798d,this['model']['_isAttached']=!0x0,this['view']=_0x4d8644,this['listenTo'](_0x4d8644,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x4d8644,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x4d8644,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x4d8644,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x4d8644,'addComment',(_0x43c316,_0x2ad5a9)=>this['addComment'](_0x2ad5a9)),this['listenTo'](_0x4d8644,'updateComment',(_0x307429,_0x204cbc,_0x43df33)=>this['updateComment'](_0x204cbc,_0x43df33)),this['listenTo'](_0x4d8644,'removeComment',(_0x23a586,_0x2369dd)=>this['removeComment'](_0x2369dd));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x3151d3){this['model']['addComment']({'content':_0x3151d3,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x263608,_0x1686a8){this['model']['getComment'](_0x263608)['update']({'content':_0x1686a8});}['removeComment'](_0x596397){this['model']['getComment'](_0x596397)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x290b9a,_0x333a7f,_0x49225b){const t=_0x290b9a['t'];switch(_0x333a7f){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'},_0x49225b);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'},_0x49225b);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'},_0x49225b);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'},_0x49225b);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x49225b);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'},_0x49225b);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'},_0x49225b);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'},_0x49225b);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Xt extends Yt{['main'];['editable'];constructor(_0x5bfff5,_0x3215f2){super(_0x5bfff5);const _0x438c4a=_0x29ee90();this['main']=this['createCollection'](),this['editable']=new $t(_0x5bfff5,_0x3215f2,void 0x0,{'label':()=>S(_0x5bfff5,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x5bfff5['uiLanguageDirection'],'lang':_0x5bfff5['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x438c4a},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Ot extends Vt{['view'];constructor(_0x417455){super(_0x417455),this['view']=new Xt(_0x417455['locale'],_0x417455['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0xcf3eb3=this['editor']['editing']['view'],_0x3cab93=this['view']['editable'],_0x212138=_0xcf3eb3['document']['getRoot']();_0x3cab93['name']=_0x212138['rootName'],this['view']['render']();const _0x45bf48=_0x3cab93['element'];this['setEditableElement'](_0x3cab93['name'],_0x45bf48),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0xcf3eb3['attachDomRoot'](_0x45bf48),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Rt=[Bt,Et,Gt,Jt,Kt,Nt,Qt];class Ut extends/* #__PURE__ -- @preserve */
25
+ _0x459611(_0xa87eb7){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Rt)());constructor(_0x223c70={}){function _0x20b728(_0x2ee269){return _0x2ee269['map'](_0x2736da=>String['fromCharCode'](_0x2736da))['join']('');}(_0x223c70=Object['assign']({},_0x223c70))['plugins']||(_0x223c70['plugins']=Ut['defaultPlugins']),super(_0x223c70),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[_0x20b728([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20b728([0x76,0x69,0x65,0x77])][_0x20b728([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20b728([0x61,0x75,0x74,0x6f]),this[_0x20b728([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x20b728([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20b728([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x20b728([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x20b728([0x6f,0x6b])});}['create'](){const _0x17e872=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x17e872))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x30aa0c=>{const _0x339b54=this['model']['document']['getRoot'](),_0x560096=_0x339b54&&_0x339b54['getChild'](_0x339b54['childCount']-0x1);_0x30aa0c['setSelection'](_0x560096,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x252ce8=this['editing']['view'],_0x55ba3f=_0x252ce8['document']['getRoot'](),_0x3282e8=_0x55ba3f['getChild'](0x0);_0x55ba3f['childCount']>0x1||!_0x3282e8||'p'!=_0x3282e8['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x252ce8,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x3282e8['placeholder']=this['placeholder']),St({'view':_0x252ce8,'element':_0x3282e8,'keepOnFocus':!0x0}),this['placeholderElement']=_0x3282e8);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x3ae49c,_0x200dcf={}){super(_0x3ae49c),this['editor']=null,this['_editorConfig']=_0x200dcf,this['set']('value',_0x200dcf['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x3ae49c,'Reply...')),this['set']('submitLabel',S(_0x3ae49c,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x5abdce(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x139cc8,_0x3ffd22)=>{this['cancelButtonView']['fire']('execute'),_0x3ffd22();}),this['keystrokes']['set']('Ctrl+Enter',(_0x4b1f8f,_0x41d12e)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x41d12e());}),this['on']('submit',(_0x14ddfd,_0x52e589)=>{_0x52e589['length']>0xfde8?(alert(S(_0x3ae49c,'TOO_LONG_COMMENT_ALERT',[_0x52e589['length'],0xfde8])),_0x14ddfd['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Ut(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x2e6c83=this['editor'];this['element']['insertBefore'](_0x2e6c83['ui']['element'],this['element']['firstChild']),_0x2e6c83['model']['document']['on']('change',()=>this['value']=_0x2e6c83['getData']()),_0x2e6c83['bind']('placeholder')['to'](this),this['focusables']['add'](_0x2e6c83['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x2b9f90){-0x1===_0x2b9f90?(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:_0x3fb398}=this,_0x3ff75a=new _0xdf0cec(_0x3fb398);return _0x3ff75a['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x3ff75a['withText']=!0x0,_0x3ff75a['bind']('label')['to'](this,'submitLabel'),_0x3ff75a['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x3ff75a['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x147216,_0x3764de)=>!_0x3764de&&!!_0x147216['trim']()),_0x3ff75a;}['_createCancelButton'](){const {locale:_0xbf53ee}=this,_0xe0fabb=new _0xdf0cec(_0xbf53ee);return _0xe0fabb['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0xe0fabb['label']=S(_0xbf53ee,'Cancel'),_0xe0fabb['withText']=!0x0,_0xe0fabb['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0xe0fabb;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x1704b2=>{this['focusTracker']['add'](_0x1704b2['element']);}),this['focusables']['on']('change',(_0x1676e7,_0x37035a)=>{for(const _0x118441 of Array['from'](_0x37035a['added'])['reverse']())this['focusTracker']['add'](_0x118441['element']);});}}class ie extends kt{constructor(_0x3318ea,_0x2bc6d1,_0x4bf511){super(_0x3318ea),this['commentInputView']=new os(_0x3318ea,_0x4bf511),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x33aa10,_0x4246ea)=>_0x33aa10||!!_0x4246ea),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 _0x1dd170(_0x3318ea,_0x2bc6d1),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'](_0x564c7e){this['commentInputView']['focus'](_0x564c7e);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x1d8244,_0x5e3e65)=>{const {submitButtonView:_0x3a00bd,cancelButtonView:_0x37fc24,editor:_0x43c062}=this['commentInputView'];[_0x3a00bd['element'],_0x37fc24['element'],_0x43c062?_0x43c062['editing']['view']['getDomRoot']():null]['filter'](_0x50ea3f=>_0x50ea3f)['some'](_0x45fe25=>_0x45fe25['contains'](_0x5e3e65['target']))||(this['focus'](),_0x5e3e65['preventDefault']());});}}class cs extends kt{constructor(_0x501503){super(_0x501503);const _0x7d564d=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x7d564d['to']('count',_0x13d7df=>S(_0x501503,'NUMBER_OF_COMMENTS',_0x13d7df))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x264589,_0x5d8db2,_0x45ab53){super(_0x264589);const _0x238d55=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x5d8db2['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x5d8db2,this['_config']=_0x45ab53,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x5abdce(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x57169d=>this['commentViews']['map'](_0x430d04=>_0x430d04['element'])['includes'](_0x57169d['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x264589),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x4998f5=>_0x4998f5-this['_config']['maxCommentsWhenCollapsed']);for(const _0x4d8f04 of _0x5d8db2['comments'])this['_handleNewCommentModel'](_0x4d8f04);this['_handleInfoComment'](),this['listenTo'](_0x5d8db2['comments'],'add',(_0x25bd76,_0xaafc22)=>{const _0x21981e=this['_calculatePosition'](_0xaafc22);this['length']++,this['_handleNewCommentModel'](_0xaafc22,_0x21981e),this['refreshVisibleViews']();}),this['listenTo'](_0x5d8db2['comments'],'remove',(_0x5701b4,_0x583c53)=>{this['length']--,this['_handleRemoveCommentModel'](_0x583c53),this['refreshVisibleViews']();}),this['listenTo'](_0x5d8db2,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x5d8db2,'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',_0x238d55['if']('length','ck-hidden',_0x2e99fc=>!_0x2e99fc)],'aria-label':S(_0x264589,'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'](_0xcee376){-0x1===_0xcee376?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0xeca304 of this['commentViews'])_0xeca304['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x3a05b0,_0x4dd362){const _0x23b801=new this['_config']['CommentView'](this['locale'],_0x3a05b0,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x23b801['viewUid']=_0x3a05b0['id'],_0x23b801['delegate']('removeComment')['to'](this),_0x23b801['delegate']('updateComment')['to'](this),_0x23b801['delegate']('resolveCommentThread')['to'](this),_0x23b801['delegate']('editorReady')['to'](this),_0x23b801['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x23b801,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x23b801,_0x4dd362);}['_calculatePosition'](_0x479d0c){const _0x4b9e5e=this['_model']['_findOptimalIndex'](_0x479d0c);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x479d0c['authoredAt']?_0x4b9e5e-0x1:_0x4b9e5e:_0x4b9e5e-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x2b8a64={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':S(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x2b8a64,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x2b8a64));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x28b171){const _0x7c1a81=this['commentViews']['remove'](_0x28b171['id']);this['stopListening'](_0x7c1a81),_0x7c1a81['isEditMode']&&this['_updateHasDirtyComment'](),_0x7c1a81['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x304fcc=>_0x304fcc['isEditMode']);}['_rearrangeCollapse'](){const _0x24ae76=function(_0x19e99c){const _0x24be7a=new _0x3040b9();for(const _0x1d0a91 of _0x19e99c)_0x24be7a['add'](_0x1d0a91);return _0x24be7a;}(this['commentViews']),_0x249195=this['_collapsedCommentsView']['count'];for(let _0x51b873=0x1;_0x51b873<=_0x249195;_0x51b873++)_0x24ae76['remove'](0x1);for(const _0x15c36f of _0x24ae76)_0x15c36f['collapse']();_0x249195>0x0&&_0x24ae76['add'](this['_collapsedCommentsView'],0x1),as(_0x1bb6be(Array['from'](this['visibleViews']),Array['from'](_0x24ae76)),this['visibleViews'],_0x24ae76);}['_rearrangeExpand'](){as(_0x1bb6be(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x342838 of this['visibleViews'])_0x342838['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x164d72=>{this['focusTracker']['add'](_0x164d72['element']),this['keystrokes']['listenTo'](_0x164d72['element']);}),this['commentViews']['on']('change',(_0x22106d,_0x3fce14)=>{for(const _0x192188 of _0x3fce14['removed'])this['focusTracker']['remove'](_0x192188['element']),this['keystrokes']['stopListening'](_0x192188['element']);for(const _0x5f021f of Array['from'](_0x3fce14['added'])['reverse']())this['focusTracker']['add'](_0x5f021f['element']),this['keystrokes']['listenTo'](_0x5f021f['element']);});}}function as(_0xaf67a8,_0x26b644,_0x590b95){let _0x12b265=0x0;for(const _0x3a7ad0 of _0xaf67a8)switch(_0x3a7ad0){case'insert':_0x26b644['add'](_0x590b95['get'](_0x12b265),_0x12b265),_0x12b265++;break;case'delete':_0x26b644['remove'](_0x12b265);break;case'equal':_0x12b265++;}}class ls extends kt{constructor(_0x34a5cd){super(_0x34a5cd);const _0x179a77=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x179a77['to']('contextValue',_0x18264e=>S(_0x34a5cd,'THREAD_CONTEXT_LABEL',_0x18264e)),'tabindex':-0x1},'children':[{'text':_0x179a77['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Zt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x5550d6,_0x5f3d94){super(_0x5550d6);const _0x8eb39b=this['bindTemplate'];this['_model']=_0x5f3d94,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x5abdce(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0xd2abcf=>!!_0xd2abcf),this['bind']('contextValue')['to'](this['_model'],'context',_0x69107d=>_0x69107d&&_0x69107d['value']?this['_trimContextValue'](_0x69107d['value']):S(this['locale'],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':['ck-context-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-context',_0x8eb39b['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 _0x41e49c=new _0xdf0cec(this['locale']);return _0x41e49c['label']=S(this['locale'],'Reopen'),_0x41e49c['tooltip']=S(this['locale'],'Reopen'),_0x41e49c['icon']='<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22m5.042\x209.367\x202.189\x201.837a.75.75\x200\x200\x201-.965\x201.149l-3.788-3.18a.747.747\x200\x200\x201-.21-.284.75.75\x200\x200\x201\x20.17-.945L6.23\x204.762a.75.75\x200\x201\x201\x20.964\x201.15L4.863\x207.866h8.917A.75.75\x200\x200\x201\x2014\x207.9a4\x204\x200\x201\x201-1.477\x207.718l.344-1.489a2.5\x202.5\x200\x201\x200\x201.094-4.73l.008-.032H5.042z\x22/></svg>',_0x41e49c['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3f8e74=>!_0x3f8e74),_0x41e49c['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x492fae,_0x39e7ae)=>_0x492fae&&_0x39e7ae),_0x41e49c['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x41e49c;}['_trimContextValue'](_0xc6470f){if(_0xc6470f['length']<0x96)return _0xc6470f;const _0x4ac43b=_0xc6470f['lastIndexOf']('\x20',0x93);return _0xc6470f['substring'](0x0,_0x4ac43b>-0x1?_0x4ac43b:0x93)+'...';}['_attachContextActions'](){const _0x3e7f1f=this['element']['querySelector']('.ck-context'),_0x60313c=_0x3e7f1f['querySelector']('.ck-context__value');this['listenTo'](_0x3e7f1f,'mouseenter',()=>{_0x60313c['offsetWidth']<_0x60313c['scrollWidth']&&_0x3e7f1f['classList']['add']('overlay');}),this['listenTo'](_0x3e7f1f,'mouseleave',()=>{_0x3e7f1f['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x3a4a90 of this['focusables'])this['focusTracker']['add'](_0x3a4a90['element']),this['keystrokes']['listenTo'](_0x3a4a90['element']);}['_createContextView'](){const _0x30d85c=new ls(this['locale']);return _0x30d85c['bind']('contextValue')['to'](this),_0x30d85c;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x2a50cc,_0x47f86f,_0x31daf1,_0x440253){super(_0x2a50cc),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x47f86f,this['_localUser']=_0x31daf1,this['_config']=_0x440253,this['commentThreadHeaderView']=new Zt(_0x2a50cc,_0x47f86f),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new ts(_0x2a50cc,S(_0x2a50cc,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x2a50cc,_0x47f86f,Object['assign']({'CommentView':this['_config']['CommentView']},_0x440253)),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',(_0x1290f4,_0x4a62d2)=>_0x1290f4||!!_0x4a62d2),this['bind']('isUnlinked')['to'](_0x47f86f,'unlinkedAt',_0x32b368=>!!_0x32b368),this['bind']('ariaLabel')['to'](this,'length',_0x2bb7da=>{const _0x35b7fd=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x2bb7da,_0x35b7fd]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x5abdce(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4ed651=>_0x4ed651['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x5c179e(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x1b9fb6=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x55c1bf=_0x1b9fb6['commentInputView'];return _0x1b9fb6['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x55c1bf,'value',(_0x38c5f7,_0x38aaba,_0xe36ec7,_0x517d1f,_0x40a2de)=>!!_0x40a2de||!!_0x517d1f&&_0xe36ec7&&!_0x38aaba||_0x38c5f7&&_0xe36ec7&&!_0x38aaba),_0x55c1bf['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x54ded2,_0x4bf15c,_0x10fb41)=>{let _0x21174a;return _0x21174a=_0x10fb41&&_0x4bf15c?'Reply\x20to\x20reopen\x20discussion...':_0x54ded2?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x21174a);}),_0x55c1bf['bind']('submitLabel')['to'](this,'length',_0x2e6763=>S(this['locale'],_0x2e6763?'Reply':'Comment')),_0x55c1bf['on']('submit',(_0x462050,_0x360c68)=>{this['fire']('addComment',_0x360c68),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x55c1bf['on']('cancel',()=>{this['focus']();}),_0x55c1bf['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x55c1bf['on']('cancel',_0x22023a=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x22023a['stop']());}),this['on']('change:isActive',(_0x54c9dc,_0x29b190,_0x5cc2f4)=>{_0x5cc2f4||this['length']||_0x55c1bf['value']||this['fire']('removeCommentThread');}),_0x1b9fb6;}}class vt extends/* #__PURE__ -- @preserve */
27
+ ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x3ec29b,_0x1b75da,_0x19405f,_0x4cc8b0){super(_0x3ec29b,_0x1b75da,_0x19405f,_0x4cc8b0),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x3ec29b,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x5b0f36,_0x217ea8,_0x506745)=>{_0x506745||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x2c50e6,_0x1650bf,_0x8e05b4)=>{_0x8e05b4&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x40cd70=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x40cd70['if']('isActive','ck-thread--active'),_0x40cd70['if']('isUnlinked','ck-thread--unlinked'),_0x40cd70['if']('isConfirm','ck-thread--remove-confirmation'),_0x40cd70['to']('actionIndicator',_0x1f7539=>_0x1f7539?'ck-thread--'+_0x1f7539:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x40cd70['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 _0xc1a654 of this['commentsListView']['commentViews'])_0xc1a654['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x305a0f}=this,_0x535d63=this['commentsListView']['commentViews']['get'](0x0);_0x535d63===this['_boundFirstCommentView']||_0x535d63['isSystemComment']||(this['_boundFirstCommentView']=_0x535d63,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x535d63,'actionIndicator',_0x261e09=>'remove'===_0x261e09?'remove':null),_0x535d63['placeholder']=S(_0x305a0f,'Write\x20a\x20comment...'),_0x535d63['removeButton']['on']('execute',_0x353186=>{_0x353186['stop'](),this['showConfirm'](S(_0x305a0f,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x535d63['focus']();}),_0x535d63['actionBar']['add'](this['resolveButton'],0x0),_0x535d63['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x586094=new _0x3ac435(this['locale']);return _0x586094['label']=S(this['locale'],'Resolve'),_0x586094['tooltip']=S(this['locale'],'Resolve'),_0x586094['icon']=_0x2b050d['check'],_0x586094['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x586094['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3cd008=>!_0x3cd008),_0x586094['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x40eaee,_0x8bf265)=>_0x40eaee&&!_0x8bf265),_0x586094['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x586094;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class hs extends kt{constructor(_0x29366f){super(_0x29366f),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x29942d,_0xf96cd8,_0x5bdccc)=>{this['element']['innerHTML']=_0x5bdccc;}),this['element']['innerHTML']=this['content'];}}class rs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2e0533,_0x46f7f4,_0x36ad34){super(_0x2e0533),this['_model']=_0x46f7f4,this['_config']=_0x36ad34,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x46f7f4,'content',_0x46f7f4,'authoredAt',(_0x413451,_0x35d01b)=>S(_0x2e0533,'COMMENT_ARIA_LABEL',[_0x46f7f4['author']['name'],_0x36ad34['formatDateTime'](_0x35d01b),new DOMParser()['parseFromString'](_0x413451,'text/html')['body']['textContent'],_0x46f7f4['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new ts(_0x2e0533,S(_0x2e0533,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x3d3c53(),this['focusTracker']=new _0x5abdce(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x448e69=>_0x448e69['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['expand'](){this['isCollapsed']=!0x1;}['collapse'](){this['isEditMode']||(this['isCollapsed']=!0x0);}['focus'](){this['element']['focus']();}['render'](){super['render'](),this['_setupKeyboardNavigation']();}async['destroy'](){await this['visibleView']['get'](0x0)['destroy'](),super['destroy']();}['switchToEditMode'](){this['isEditMode']||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentInputView']()));}['switchToDisplayMode'](){this['isEditMode']&&(this['isEditMode']=!0x1,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentContentView']()));}['getExternalCommentNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?S(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):S(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?S(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):S(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x40c06c=new hs(this['locale']);return _0x40c06c['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0xa148fe,_0xd7b9a1)=>_0xd7b9a1?_0x1c656b(_0xa148fe,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0xa148fe),_0x40c06c;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x2bfbf0=new os(this['locale'],this['_config']['editorConfig']);return _0x2bfbf0['value']=this['_model']['content'],_0x2bfbf0['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x2bfbf0['submitLabel']=S(this['locale'],'Save'),_0x2bfbf0['on']('submit',(_0x395c2e,_0x2d0629)=>{this['fire']('updateComment',this['_model']['id'],_0x2d0629),this['switchToDisplayMode'](),this['focus']();}),_0x2bfbf0['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x2bfbf0['once']('editorReady',()=>{_0x2bfbf0['focus']();}),_0x2bfbf0['createEditor'](),_0x2bfbf0['delegate']('editorReady')['to'](this),_0x2bfbf0['delegate']('editorDestroyed')['to'](this),_0x2bfbf0;}['_setupKeyboardNavigation'](){const _0x37bf50=this['element'];this['keystrokes']['listenTo'](_0x37bf50);for(const _0x2e74cf of this['focusables'])this['focusTracker']['add'](_0x2e74cf['element']),this['keystrokes']['listenTo'](_0x2e74cf['element']);this['focusables']['on']('change',(_0x1c6cc6,_0x18701c)=>{for(const _0x499ff6 of _0x18701c['removed'])this['focusTracker']['remove'](_0x499ff6['element']),this['keystrokes']['stopListening'](_0x499ff6['element']);for(const _0x530422 of _0x18701c['added'])this['focusTracker']['add'](_0x530422['element']),this['keystrokes']['listenTo'](_0x530422['element']);}),this['keystrokes']['set']('enter',(_0x2a1f7f,_0x4025e2)=>{_0x37bf50===_0x2a1f7f['target']&&(this['focusCycler']['focusFirst'](),_0x4025e2());}),this['keystrokes']['set']('esc',(_0x55e5d8,_0x17bf09)=>{_0x37bf50!==_0x55e5d8['target']&&(this['focus'](),_0x17bf09());});}}class gt extends/* #__PURE__ -- @preserve */
28
+ ti(rs){['actionBar'];['userView'];constructor(_0x19e810,_0x4052d1,_0x20d685){super(_0x19e810,_0x4052d1,_0x20d685),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x19e810,'Reply...')),this['bind']('authoredAt')['to'](_0x4052d1),this['bind']('resolvedAt')['to'](_0x4052d1),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 _0x1dd170(_0x19e810,_0x4052d1['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x4052d1,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x33c65f=this['bindTemplate'],_0x5dcbf2=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x33c65f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x33c65f['to']('authoredAt',_0x5d9505=>this['_config']['formatDateTime'](_0x5d9505))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x33c65f['if']('isEditMode','ck-comment__actions--hidden'),_0x33c65f['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']&&_0x5dcbf2['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x33c65f['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x33c65f['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x33c65f['if']('isEditMode','ck-comment--edit'),_0x33c65f['if']('isSystemComment','ck-comment--info'),_0x33c65f['to']('actionIndicator',_0x572e32=>_0x572e32?'ck-comment--'+_0x572e32:'')],'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':_0x5dcbf2}]}]};}['_createEditButton'](){const _0x38e85e=new _0xdf0cec(this['locale']);return _0x38e85e['label']=S(this['locale'],'Edit'),_0x38e85e['icon']=_0x2b050d['pencil'],_0x38e85e['withText']=!0x0,_0x38e85e['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x38e85e['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x5b7e14=>!_0x5b7e14),_0x38e85e['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x38e85e['on']('execute',()=>this['switchToEditMode']()),_0x38e85e;}['_createRemoveButton'](){const _0x4da6e2=new _0xdf0cec(this['locale']);return _0x4da6e2['label']=S(this['locale'],'Remove'),_0x4da6e2['icon']='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M5.2\x207h9.2c.6\x200\x201\x20.4\x201\x201v9.9c0\x20.5-.4\x201-1\x201H5.2a1\x201\x200\x200\x201-1-1V8c0-.6.4-1\x201-1zm1\x201.5c-.3\x200-.5.2-.5.5v8c0\x20.3.2.5.5.5h.5c.2\x200\x20.5-.2.5-.5V9c0-.3-.3-.5-.5-.5h-.5zm3.2\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.4zm3.5\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.5zm-1.4-7.1H8.3L6.5\x203.6H3.8c-.5\x200-.7.3-.7.8s.2.7.7.7h12c.6\x200\x20.9-.2.9-.7\x200-.5-.3-.8-1-.8h-2.4l-1.8-2.2z\x22/></svg>\x0a',_0x4da6e2['withText']=!0x0,_0x4da6e2['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x4da6e2['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2ac343=>!_0x2ac343),_0x4da6e2['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x4da6e2['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x4da6e2;}['_createDropdown'](){const _0x35aac7=_0x179f8f(this['locale'],_0x50be63),_0x3e773e=_0x35aac7['panelView']['children'],_0x334609=new _0x54dc4a(this['locale']),_0x48858f=_0x35aac7['bindTemplate'];_0x40aa58(_0x35aac7,()=>this['items']['find'](_0x489f01=>_0x489f01['isVisible'])),_0x35aac7['extendTemplate']({'attributes':{'class':[_0x48858f['if']('isVisible','ck-hidden',_0x1973e4=>!_0x1973e4)]}});const _0x53b574=(_0xbfa1db,_0x1cf2e4=-0x1)=>{const _0x45e4cd=new _0x103fb5(this['locale']);_0x45e4cd['children']['add'](_0xbfa1db);const _0x37b6a8=_0x1cf2e4>-0x1?_0x1cf2e4:_0x334609['items']['length'];_0x334609['items']['add'](_0x45e4cd,_0x37b6a8);const _0x52fab0=Array['from'](this['items']);_0x35aac7['unbind']('isEnabled','isVisible'),_0x35aac7['bind']('isEnabled')['toMany'](_0x52fab0,'isEnabled',(..._0x501585)=>_0x501585['some'](_0x156aee=>_0x156aee)),_0x35aac7['bind']('isVisible')['toMany'](_0x52fab0,'isVisible',(..._0x37593a)=>_0x37593a['some'](_0x5050d7=>_0x5050d7));};_0x35aac7['panelPosition']='sw',_0x35aac7['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x2b050d['threeVerticalDots']});for(const _0x288f2c of this['items'])_0x53b574(_0x288f2c);return _0x3e773e['add'](_0x334609),_0x35aac7['listenTo'](this['items'],'add',(_0x5742c7,_0x4be54b,_0x1bd2f5)=>{_0x53b574(_0x4be54b,_0x1bd2f5);}),_0x35aac7['listenTo'](this['items'],'remove',(_0x138e8b,_0x24fa72,_0x51007a)=>{_0x334609['items']['remove'](_0x51007a);}),_0x35aac7;}['_attachActions'](_0x85d6aa,_0x30732d){const _0x4417af=_0x85d6aa&&_0x85d6aa['element'];_0x4417af&&(this['listenTo'](_0x4417af,'mouseenter',()=>this['actionIndicator']=_0x30732d),this['listenTo'](_0x4417af,'focus',()=>this['actionIndicator']=_0x30732d),this['listenTo'](_0x4417af,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x4417af,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x30e9d6=super['_createCommentInputView']();return _0x30e9d6['bind']('placeholder')['to'](this),_0x30e9d6;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0x474c96){const _0x10a0aa=Dt(_0x474c96,0x1e),_0xba16ec=new MutationObserver(_0x12e353=>{for(const _0x22b90f of _0x12e353)('attributes'==_0x22b90f['type']&&'class'==_0x22b90f['attributeName']||'childList'==_0x22b90f['type']||'characterData'==_0x22b90f['type'])&&_0x10a0aa();});return{'attach'(_0x4e5f94){_0xba16ec['observe'](_0x4e5f94,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0xba16ec['disconnect'](),_0x10a0aa['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x2b87e7,_0x4f7423){super(_0x2b87e7),this['id']=_0x29ee90(),this['focusTracker']=new _0x5abdce(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x4a4b94,_0x4b62fc)=>this['fire']('Esc',_0x4b62fc)),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'](_0x4f7423),this['mainView']=_0x4f7423;const _0x2fbe3f=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x2fbe3f['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 _0x3b7cb3=this['element']['clientHeight'];_0x3b7cb3&&(this['height']=_0x3b7cb3);}}class d extends/* #__PURE__ -- @preserve */
29
+ _0x459611(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x484fc2,target:_0x517b19,type:_0x57a5a4,isVisible:_0x37d7cf=!0x0}){super(),this['view']=_0x484fc2,this['view']['element']||this['view']['render'](),this['_type']=_0x57a5a4,this['_target']=_0x517b19,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x3040b9([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x296d03,_0x3c0e50)=>{this['view']['focusTracker']['add'](_0x3c0e50);}),this['focusableElements']['on']('remove',(_0x3b43ea,_0x454f7f)=>{this['view']['focusTracker']['remove'](_0x454f7f);}),this['set']('isVisible',_0x37d7cf);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x394a29=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x394a29),_0x394a29;}get['targetRect'](){const _0xb8dacc=this['target'];if(null===_0xb8dacc)return null;if(_0xb8dacc instanceof _0x16256)return _0xb8dacc;const _0x33b0e0=_0xb8dacc['filter'](_0x65873c=>function(_0x4c6a27){const _0x410b56=_0x4c6a27['offsetParent'];if(_0x410b56)return!0x0;const _0x180fe0=_0x4c6a27['getClientRects']()['item'](0x0);return!!_0x180fe0;}(_0x65873c));return 0x0===_0x33b0e0['length']?null:new _0x16256(_0x33b0e0[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x294591){this['view']['isActive']=_0x294591,this['view']['mainView']['isActive']=_0x294591;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x5a79f8){if(!(null===_0x5a79f8||_0x5a79f8 instanceof _0x16256||Array['isArray'](_0x5a79f8)&&_0x5a79f8['every'](_0x443e7d=>ne(_0x443e7d))))throw new _0x2f1633('annotation-invalid-target',null,{'target':_0x5a79f8});}['_getNormalizedTarget'](){const _0x409b2d='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x409b2d)?[_0x409b2d]:_0x409b2d;}}function ne(_0xcba245){return null!==_0xcba245&&'object'==typeof _0xcba245&&'nodeType'in _0xcba245&&0x1===_0xcba245['nodeType'];}class x extends _0x3040b9{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x57f010=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x5abdce(),this['_focusTracker']['on']('change:isFocused',(_0x5a2ebf,_0x36e730,_0x3bbd66)=>{_0x3bbd66||this['fire']('blur');});for(const _0x57b168 of _0x57f010)this['add'](_0x57b168);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x4494ca){if(this['has'](_0x4494ca))throw new _0x2f1633('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x4494ca['innerView'],_0x4494ca),this['_viewToAnnotation']['set'](_0x4494ca['view'],_0x4494ca);for(const _0x5c2689 of _0x4494ca['focusableElements'])this['_focusTracker']['add'](_0x5c2689);this['listenTo'](_0x4494ca['focusableElements'],'add',(_0x2cb5eb,_0x3ddfac)=>{this['_focusTracker']['add'](_0x3ddfac);}),this['listenTo'](_0x4494ca['focusableElements'],'remove',(_0x58e814,_0x4515af)=>{this['_focusTracker']['remove'](_0x4515af);}),this['listenTo'](_0x4494ca['view']['focusTracker'],'change:isFocused',(_0xea0499,_0x24090f,_0x3dcf1d)=>{_0x3dcf1d&&this['fire']('focus',_0x4494ca);}),_0x4494ca['updateTargetRect']();const _0x7ecc2f=this['_getOrderInContent'](_0x4494ca['view']['targetRect']);return super['add'](_0x4494ca,_0x7ecc2f);}['remove'](_0x29428f){if(!this['has'](_0x29428f))throw new _0x2f1633('annotationcollection-not-existing-item',null);this['stopListening'](_0x29428f['view']['focusTracker']),this['stopListening'](_0x29428f['focusableElements']);for(const _0xfc9c0c of _0x29428f['focusableElements'])this['_focusTracker']['remove'](_0xfc9c0c);return this['_viewToAnnotation']['delete'](_0x29428f['view']),this['_innerViewToAnnotation']['delete'](_0x29428f['innerView']),super['remove'](_0x29428f);}['getByInnerView'](_0x1b81d0){return this['_innerViewToAnnotation']['get'](_0x1b81d0);}['getByView'](_0x5b61f9){return this['_viewToAnnotation']['get'](_0x5b61f9);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x5c9a0c of this)_0x5c9a0c['updateTargetRect']();this['_sort']();}['_sort'](){const _0x29caf6=Array['from'](this)['sort']((_0x102d7d,_0x481290)=>v(_0x102d7d['view']['targetRect'],_0x481290['view']['targetRect']));for(let _0xcf4898=_0x29caf6['length']-0x1;_0xcf4898>0x0;_0xcf4898--){const _0x3bccae=_0x29caf6[_0xcf4898];_0xcf4898!==this['getIndex'](_0x3bccae)&&(this['remove'](_0x3bccae),this['add'](_0x3bccae));}}['_getOrderInContent'](_0x75cbdd){let _0x1a6b4b=0x0;if(!_0x75cbdd)return this['length'];for(const _0x1c3a7e of this){const _0x388d97=_0x1c3a7e['view']['targetRect'];if(_0x388d97){if(v(_0x75cbdd,_0x388d97)<0x0)return _0x1a6b4b;_0x1a6b4b++;}}return _0x1a6b4b;}}function v(_0x5c9d71,_0x7df72d){if(null===_0x5c9d71&&null===_0x7df72d)return 0x0;if(null===_0x5c9d71)return-0x1;if(null===_0x7df72d)return 0x1;const _0x3b66a7=_0x5c9d71['top']-_0x7df72d['top'];return 0x0==_0x3b66a7?_0x5c9d71['left']-_0x7df72d['left']:_0x3b66a7;}class N extends _0x17f52f{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x228bfc){if(super(_0x228bfc),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x228bfc instanceof _0xa87eb7){const _0xfffc25=_0x228bfc['locale'];_0x228bfc['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0xfffc25,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0xfffc25,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0xfffc25,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0xfffc25,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0xfffc25,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0xfffc25,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0xfffc25,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x3f5b9f){this['collection']['add'](_0x3f5b9f);}['remove'](_0x35b01b){this['collection']['remove'](_0x35b01b),_0x35b01b['destroy']();}['refreshVisibility'](){for(const _0x68fe24 of this['collection'])_0x68fe24['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x4bf329){return this['collection']['getByInnerView'](_0x4bf329);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x2516ae of this['collection'])_0x2516ae['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0xc172bf){this['fire']('_activateAnnotation',_0xc172bf);}['createAnnotation'](_0x18ef03){return new d(_0x18ef03);}['createAnnotationView'](_0x2ab2a4,_0x36d06a){return new T(_0x2ab2a4,_0x36d06a);}['_addActiveAnnotation'](_0x18cde7){const _0x58f55c=new Set(this['activeAnnotations']);_0x58f55c['add'](_0x18cde7),this['activeAnnotations']=_0x58f55c;}['_removeActiveAnnotation'](_0x32e54e){const _0x251077=new Set(this['activeAnnotations']);_0x251077['delete'](_0x32e54e),this['activeAnnotations']=_0x251077;}['_bindAnnotationsToVisibleAnnotations'](){const _0x55688d=this['collection'],_0x2b39e2=this['_visibleAnnotations'];function _0xf4fdc3(_0x101606){const _0x253cbd=_0x101606['source'];_0x253cbd['isVisible']&&!_0x2b39e2['has'](_0x253cbd)?_0x2b39e2['add'](_0x253cbd):!_0x253cbd['isVisible']&&_0x2b39e2['has'](_0x253cbd)&&_0x2b39e2['remove'](_0x253cbd),_0x253cbd['view']['focusTracker']['remove'](_0x253cbd['view']['element']),_0x253cbd['view']['focusTracker']['add'](_0x253cbd['view']['element']);}this['listenTo'](_0x55688d,'add',(_0xe21144,_0x31e584)=>{_0x31e584['isVisible']&&_0x2b39e2['add'](_0x31e584),this['listenTo'](_0x31e584,'change:isVisible',_0xf4fdc3);}),this['listenTo'](_0x55688d,'remove',(_0x4e1aa0,_0xf82a01)=>{_0x2b39e2['has'](_0xf82a01)&&_0x2b39e2['remove'](_0xf82a01),this['stopListening'](_0xf82a01,'change:isVisible',_0xf4fdc3);});}['_setupEnterAnnotationKeystroke'](){const _0x70ceeb=_0x5c2d67=>{_0x5c2d67['on']('ready',()=>{_0x5c2d67['keystrokes']['set'](_0x3329b5,(_0x18469e,_0x2f8744)=>{const _0x266a78=_0x99b28(this['activeAnnotations']['values']());_0x266a78&&(_0x266a78['view']['focus'](),_0x2f8744());});});};this['context']instanceof _0xa87eb7?_0x70ceeb(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0xb7c30d,_0x4d4426)=>{_0x70ceeb(_0x4d4426);});}['_setupEscapeAnnotationHandling'](){const _0x3dfe1b=_0x234b77=>{const _0x1e123c=_0x234b77['source'],_0x23b67d=[];let _0x18ea7c;if(Array['isArray'](_0x1e123c['target'])){_0x18ea7c=_0x1e123c['target'][0x0],this['context']instanceof _0xa87eb7?_0x23b67d['push'](this['context']):this['context']['editors']&&_0x23b67d['push'](...this['context']['editors']);for(const _0xcb6bf1 of _0x23b67d)for(const _0x5722a5 of _0xcb6bf1['editing']['view']['domRoots']['values']())if(_0x5722a5['contains'](_0x18ea7c))return void _0xcb6bf1['editing']['view']['focus']();_0x18ea7c['focus']();}};this['listenTo'](this['collection'],'add',(_0x5dbfc7,_0x2bcc76)=>{this['listenTo'](_0x2bcc76,'escape',_0x3dfe1b,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x33b365,_0x148e1c)=>{this['stopListening'](_0x148e1c,'escape',_0x3dfe1b);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x17f52f{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[N,ht,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x108b3e){super(_0x108b3e),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x595c1=this['context']['config'];_0x595c1['define']('comments.maxCommentsWhenCollapsed',0x2),_0x595c1['define']('comments.maxThreadTotalWeight',0x1f4),_0x595c1['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x595c1['define']('comments.CommentThreadView',vt),_0x595c1['define']('comments.CommentView',gt),_0x595c1['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x206903=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x3eac3d,_0x2a6f4d)=>this['_addCommentThread'](_0x2a6f4d)),this['on']('submitCommentThread',(_0x555e8d,_0x283a5d)=>this['_submitCommentThread'](_0x283a5d)),this['on']('resolveCommentThread',(_0x21cd75,_0x3ee40e)=>this['_resolveCommentThread'](_0x3ee40e)),this['on']('resolveCommentThread',(_0x532a23,_0x331641)=>this['_updateActiveAnnotation'](_0x331641),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0xe661c,_0x83077b)=>this['_reopenCommentThread'](_0x83077b)),this['on']('reopenCommentThread',(_0xa025de,_0x3f0992)=>this['_updateActiveAnnotation'](_0x3f0992),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x422460,_0x26b9ff)=>this['_removeCommentThread'](_0x26b9ff)),this['on']('updateCommentThread',(_0x436880,_0x3e667d)=>this['_updateCommentThread'](_0x3e667d)),this['on']('updateCommentThread',(_0x5ec052,_0x38a498)=>this['_updateActiveAnnotation'](_0x38a498),{'priority':'lowest'}),this['on']('addComment',(_0x16338a,_0xbebe8e)=>this['_addComment'](_0xbebe8e)),this['on']('updateComment',(_0xd81561,_0x1ffd80)=>this['_updateComment'](_0x1ffd80)),this['on']('removeComment',(_0x5759c3,_0x413e9a)=>this['_removeComment'](_0x413e9a)),this['on']('addComment',(_0x4d4693,{threadId:_0x546d1d,isFromAdapter:_0x11ca0b})=>{if(_0x11ca0b)return;const _0x191075=this['getCommentThread'](_0x546d1d),_0x5d5898=_0x191075&&this['_threadToController']['get'](_0x191075);_0x5d5898&&_0x5d5898['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x206903,'change:activeAnnotations',(_0xb4a2aa,_0x48dc52,_0x3d1b92)=>{const _0x15042f=Array['from'](_0x3d1b92)['map'](_0x5a4ff3=>this['_viewToController']['get'](_0x5a4ff3['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x15042f?_0x15042f['model']:null;});}set['adapter'](_0x2a811e){if(this['_adapter'])throw new _0x2f1633('commentsrepository-adapter-already-set');this['_adapter']=_0x2a811e;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x59088f=Tt,threadId:_0x4a27ca=_0x29ee90(),comments:_0x3dbf4b=[],unlinkedAt:_0x2abddc=null,resolvedAt:_0x5340fc=null,resolvedBy:_0x338ebd=null,target:_0x416377=null,context:_0x14939d=null,attributes:_0xa608b7={},isResolvable:_0x4d7311=!0x0,isSubmitted:_0x9d528f=!0x1,isFromAdapter:_0x343beb=!0x1}={}){return this['fire'](bt('addCommentThread',_0x59088f),{'channelId':_0x59088f,'threadId':_0x4a27ca,'comments':_0x3dbf4b,'unlinkedAt':_0x2abddc,'resolvedAt':_0x5340fc,'resolvedBy':_0x338ebd,'target':_0x416377,'context':_0x14939d,'attributes':_0xa608b7,'isFromAdapter':_0x343beb,'isResolvable':_0x4d7311,'isSubmitted':_0x9d528f}),this['getCommentThread'](_0x4a27ca);}['openNewCommentThread']({channelId:_0x58ad44=Tt,threadId:_0x4ca8a2=_0x29ee90(),target:_0x39c172,context:_0x38610a=null,isResolvable:_0x4c3c61=!0x0}){if(this['_readOnlyChannels']['has'](_0x58ad44)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x39c172)throw new _0x2f1633('commentsrepository-missing-target');const _0xda4480=this['addCommentThread']({'channelId':_0x58ad44,'threadId':_0x4ca8a2,'target':_0x39c172,'context':_0x38610a,'isResolvable':_0x4c3c61});if(!_0xda4480)return null;const _0x4afd71=this['_threadToController']['get'](_0xda4480),_0x5fe19e=_0x4afd71['view']['commentThreadInputView']['commentInputView'],_0xdcc826=this['context']['plugins']['get'](N),_0x19269d=_0xdcc826['getByInnerView'](_0x4afd71['view']);return _0xdcc826['activate'](_0x19269d),_0x5fe19e['once']('editorReady',()=>_0x5fe19e['focus']()),_0xda4480;}['hasCommentThread'](_0x282d63){if('string'!=typeof _0x282d63)throw new _0x2f1633('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x282d63);}['updateCommentThread']({channelId:_0x643924=Tt,threadId:_0x1178fb,context:_0xac7a01,unlinkedAt:_0x4a99df,attributes:_0x123821,isFromAdapter:_0xb237eb=!0x1}){return this['fire'](bt('updateCommentThread',_0x643924),{'channelId':_0x643924,'threadId':_0x1178fb,'context':_0xac7a01,'unlinkedAt':_0x4a99df,'attributes':_0x123821,'isFromAdapter':_0xb237eb}),this['getCommentThread'](_0x1178fb);}['getCommentThread'](_0x536110){if('string'!=typeof _0x536110)throw new _0x2f1633('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x536110);}['fetchCommentThread']({channelId:_0x48c159,threadId:_0x544269}={}){const _0xb220c9=this['getCommentThread'](_0x544269);if(_0xb220c9)return Promise['resolve'](_0xb220c9);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x2f1633('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x48c159,'threadId':_0x544269})['then'](_0x515a7c=>this['hasCommentThread'](_0x544269)?this['getCommentThread'](_0x544269):_0x515a7c?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x48c159},_0x515a7c)):void 0x0)['catch'](_0x21d9a3=>{throw console['error'](_0x21d9a3),new _0x2f1633('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x3da74d,skipNotAttached:_0x4f3ada=!0x1,skipEmpty:_0x5a996f=!0x1,toJSON:_0x1c29b0=!0x1}={}){const _0x3338f4=[];for(const _0x4d9c1c of this['_threads']['values']())_0x3da74d&&_0x4d9c1c['channelId']!==_0x3da74d||_0x4f3ada&&!_0x4d9c1c['isAttached']||_0x5a996f&&0x0===_0x4d9c1c['length']||_0x3338f4['push'](_0x4d9c1c);return _0x1c29b0?_0x3338f4['map'](_0x1b2009=>_0x1b2009['toJSON']()):_0x3338f4;}['setActiveCommentThread'](_0x3e5504){const _0x44856e=this['context']['plugins']['get'](N);if(!_0x3e5504)return void(this['activeCommentThread']&&_0x44856e['deactivateAll']());const _0x5c77a8=this['getCommentThread'](_0x3e5504);if(!_0x5c77a8)throw new _0x2f1633('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x3e5504});if(!this['_threadToController']['has'](_0x5c77a8))throw new _0x2f1633('commentsrepository-active-not-attached',null,{'threadId':_0x3e5504});const _0x30a97a=_0x44856e['getByInnerView'](this['_threadToController']['get'](_0x5c77a8)['view']);_0x44856e['activate'](_0x30a97a);}['switchReadOnly'](_0x324e9a,_0x16eba7){_0x324e9a?this['_readOnlyChannels']['add'](_0x16eba7):this['_readOnlyChannels']['delete'](_0x16eba7),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x4e986f){return this['_readOnlyChannels']['has'](_0x4e986f)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x45392c,_0x2e6999){return new Ct(_0x45392c,_0x2e6999);}['setPermissions'](_0x37b14a,_0x37c637=Tt){this['_permissions']['set'](_0x37c637,_0x37b14a),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x39e0b2=Tt){return this['_permissions']['has'](_0x39e0b2)?this['_permissions']['get'](_0x39e0b2):_t;}['_addCommentThread']({channelId:_0x151ec4,threadId:_0x2b3bb4,comments:_0x53fa4d,unlinkedAt:_0x185a88,resolvedAt:_0x9e8951,resolvedBy:_0x587f33,target:_0x3a47d7,context:_0x552340,attributes:_0x21caf5,isFromAdapter:_0x5b33d5,isResolvable:_0x9ae0d,isSubmitted:_0x539ce5}){if('string'!=typeof _0x2b3bb4)throw new _0x2f1633('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x2b3bb4});if(this['hasCommentThread'](_0x2b3bb4))throw new _0x2f1633('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x2b3bb4});const _0x30e2b2=new oe(this,{'channelId':_0x151ec4,'id':_0x2b3bb4,'context':_0x552340,'attributes':_0x21caf5,'unlinkedAt':_0x185a88,'resolvedAt':_0x9e8951,'resolvedBy':_0x587f33?this['context']['plugins']['get'](it)['getUser'](_0x587f33):null,'isResolvable':_0x9ae0d,'isSubmitted':_0x539ce5||_0x5b33d5});this['_threads']['set'](_0x2b3bb4,_0x30e2b2);for(const _0x30288a of _0x53fa4d)_0x30e2b2['_add'](this['_createNewComment']({'threadId':_0x2b3bb4,..._0x30288a}));return _0x3a47d7&&_0x30e2b2['attachTo'](_0x3a47d7),_0x5b33d5||!_0x30e2b2['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x151ec4,'threadId':_0x2b3bb4});}['_submitCommentThread']({channelId:_0x2aa5cd,threadId:_0x2c2133}){if(!this['hasCommentThread'](_0x2c2133))throw new _0x2f1633('commentsrepository-missing-comment-thread',this);const _0x5bc75f=this['getCommentThread'](_0x2c2133);if(_0x5bc75f['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x12269a,comments:_0x5f3949,resolvedAt:_0x52b51d,resolvedBy:_0x284489,context:_0x45bbc1,attributes:_0x37b6d6}=_0x5bc75f,_0x389274=this['context']['plugins']['get']('PendingActions'),_0x107038=_0x389274['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x2aa5cd,'threadId':_0x12269a,'comments':_0x5f3949['map'](_0x21c744=>_0x21c744['toJSON']()),'resolvedAt':_0x52b51d,'resolvedBy':_0x284489?_0x284489['id']:_0x284489,'context':_0x45bbc1,'attributes':_0x37b6d6})['then'](({comments:_0x1ebb1a})=>{_0x389274['remove'](_0x107038);for(const _0xcef97 of _0x1ebb1a)this['_updateComment']({'channelId':_0x2aa5cd,'threadId':_0x2c2133,'commentId':_0xcef97['commentId'],'createdAt':_0xcef97['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x44b926=>{throw console['error'](_0x44b926),new _0x2f1633('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x3b3622,target:_0x10280a}){const _0x6ab7ca=this['getCommentThread'](_0x3b3622);if(!_0x6ab7ca)throw new _0x2f1633('commentsrepository-attach-missing-comment-thread',this);const _0x496e69=this['context']['plugins']['get']('PendingActions'),_0xd0f8d0=this['context']['plugins']['get'](N),_0x2fdc40=this['_createCommentThreadView'](_0x6ab7ca),_0x4896df=new Ct(_0x6ab7ca,_0x2fdc40);let _0x563150=null;_0x2fdc40['on']('change:isDirty',(_0x12558d,_0x3fcd31,_0x167cc7)=>{_0x167cc7?_0x563150=_0x496e69['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x563150&&(_0x496e69['remove'](_0x563150),_0x563150=null);}),this['_threadToController']['set'](_0x6ab7ca,_0x4896df),this['_viewToController']['set'](_0x2fdc40,_0x4896df);const _0xdbf781=new T(this['context']['locale'],_0x2fdc40);_0xdbf781['bind']('length')['to'](_0x2fdc40),_0xdbf781['bind']('isDirty')['to'](_0x2fdc40,'isDirty',_0x2fdc40,'length',(_0x2cabbc,_0x1123b0)=>_0x2cabbc||!_0x1123b0),_0xdbf781['bind']('isActive')['to'](_0x2fdc40),_0xdbf781['type']='comment';const _0x3b6955=new d({'view':_0xdbf781,'target':_0x10280a,'type':'comment','isVisible':!_0x6ab7ca['isResolved']});return _0x2fdc40['on']('escape',()=>{_0x3b6955['fire']('escape');}),this['_bindAnnotationToEditors'](_0x2fdc40,_0x3b6955),_0xd0f8d0['add'](_0x3b6955),_0x3b6955;}['_bindAnnotationToEditors'](_0x31a066,_0x2fb78d){this['listenTo'](_0x31a066,'editorReady',(_0x28c1a8,_0x57a3d1)=>{const _0x2029e3=_0x57a3d1['ui']['view']['body']['bodyCollectionContainer'];_0x2fb78d['focusableElements']['add'](_0x2029e3),this['context']instanceof _0xa87eb7&&this['context']['ui']['focusTracker']['add'](_0x2029e3);},{'priority':'highest'}),this['listenTo'](_0x31a066,'editorDestroyed',(_0x4e8bc0,_0x44bdd2)=>{const _0x3b8237=_0x44bdd2['ui']['view']['body']['bodyCollectionContainer'];_0x2fb78d['focusableElements']['has'](_0x3b8237)&&_0x2fb78d['focusableElements']['remove'](_0x3b8237),this['context']instanceof _0xa87eb7&&this['context']['ui']['focusTracker']['remove'](_0x3b8237);});}['_unbindEditors'](_0x1b464f){this['stopListening'](_0x1b464f,'editorReady'),this['stopListening'](_0x1b464f,'editorDestroyed');}['_createCommentThreadView'](_0x2c77c6){const _0x52e532=this['context']['plugins']['get'](it),{config:_0x18df10,locale:_0x2385fd}=this['context'],_0xe1faef=lt(_0x18df10['get']('locale'));return new(0x0,(_0x18df10['get']('comments'))['CommentThreadView'])(_0x2385fd,_0x2c77c6,_0x52e532['me'],{'editorConfig':{..._0x18df10['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x18df10['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x18df10['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x18df10['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x18df10['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xe1faef,'CommentView':_0x18df10['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x1efc3a,channelId:_0x1fc19f,resolvedAt:_0x50c983,resolvedBy:_0x1ef0b3,isFromAdapter:_0x59d1c1}){if(!this['hasCommentThread'](_0x1efc3a))throw new _0x2f1633('commentsrepository-missing-comment-thread',null,{'threadId':_0x1efc3a});const _0x352c16=this['getCommentThread'](_0x1efc3a);if(_0x352c16['isResolved'])throw new _0x2f1633('commentsrepository-resolved-comment-thread',null,{'threadId':_0x1efc3a});const _0x440207=this['context']['plugins']['get'](it);if(_0x352c16['resolvedBy']=_0x440207['getUser'](_0x1ef0b3),_0x352c16['resolvedAt']=_0x50c983,_0x59d1c1||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x48dab1=this['context']['plugins']['get']('PendingActions'),_0x4326f7=_0x48dab1['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x1fc19f,'threadId':_0x1efc3a})['then'](({resolvedAt:_0x5d9f3a,resolvedBy:_0x467d20})=>{_0x48dab1['remove'](_0x4326f7),_0x352c16['resolvedBy']['id']!==_0x467d20&&(_0x352c16['resolvedBy']=_0x440207['getUser'](_0x467d20)),_0x352c16['resolvedAt']=_0x5d9f3a;})['catch'](_0x58818f=>{throw console['error'](_0x58818f),new _0x2f1633('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x55df30,channelId:_0x150a70,isFromAdapter:_0x402bbc}){if(!this['hasCommentThread'](_0x55df30))throw new _0x2f1633('commentsrepository-missing-comment-thread',null,{'threadId':_0x55df30});const _0x5319f5=this['getCommentThread'](_0x55df30);if(!_0x5319f5['isResolved'])throw new _0x2f1633('commentsrepository-reopen-comment-thread',null,{'threadId':_0x55df30});if(_0x5319f5['resolvedBy']=null,_0x5319f5['resolvedAt']=null,_0x402bbc||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x33ab55=this['context']['plugins']['get']('PendingActions'),_0x2ef851=_0x33ab55['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x150a70,'threadId':_0x55df30})['then'](()=>_0x33ab55['remove'](_0x2ef851))['catch'](_0x2e4c65=>{throw console['error'](_0x2e4c65),new _0x2f1633('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x349fb7,isFromAdapter:_0x1d4e68}){const _0x4eec68=this['getCommentThread'](_0x349fb7);if(!_0x4eec68)throw new _0x2f1633('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x349fb7),this['_threads']['delete'](_0x349fb7),!_0x4eec68['isSubmitted']||_0x1d4e68||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x22247c=this['context']['plugins']['get']('PendingActions'),{channelId:_0x166248}=_0x4eec68,_0x101034=_0x22247c['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x166248,'threadId':_0x349fb7})['then'](()=>_0x22247c['remove'](_0x101034))['catch'](_0x3fbe01=>{throw console['error'](_0x3fbe01),new _0x2f1633('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x346c56,unlinkedAt:_0x4630ff,context:_0xa864f,attributes:_0x34168a,isFromAdapter:_0x506afc}){if('string'!=typeof _0x346c56)throw new _0x2f1633('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x346c56});if(!this['hasCommentThread'](_0x346c56))throw new _0x2f1633('commentsrepository-missing-comment-thread',null,{'threadId':_0x346c56});const _0x3aa070=this['getCommentThread'](_0x346c56);let _0x41b35b=!0x1;if(void 0x0!==_0xa864f&&_0x3aa070['context']!==_0xa864f&&(_0x3aa070['context']=_0xa864f,_0x41b35b=!0x0),void 0x0!==_0x4630ff&&_0x3aa070['unlinkedAt']!==_0x4630ff&&(_0x3aa070['unlinkedAt']=_0x4630ff,_0x41b35b=!0x0),_0x34168a&&!wt(_0x34168a,_0x3aa070['attributes'])&&(_0x3aa070['attributes']=_0x34168a,_0x41b35b=!0x0),!_0x41b35b)return Promise['resolve']();if(!_0x3aa070['isSubmitted']||_0x506afc||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x248289=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4b9062}=_0x3aa070,_0x65c3c5=_0x248289['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x4b9062,'threadId':_0x346c56,'context':_0xa864f,'unlinkedAt':_0x4630ff,'attributes':_0x34168a})['then'](()=>_0x248289['remove'](_0x65c3c5))['catch'](_0x3dc31b=>{throw console['error'](_0x3dc31b),new _0x2f1633('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x333fd7){const _0x58f0c2=this['context']['plugins']['get'](N),_0x3fa474=this['getCommentThread'](_0x333fd7);if(_0x3fa474['_isAttached']=!0x1,this['_threadToController']['has'](_0x3fa474)){const _0x5ca0c6=this['_threadToController']['get'](_0x3fa474),_0x3ec4d9=_0x5ca0c6['view'],_0x2ef53e=_0x58f0c2['getByInnerView'](_0x3ec4d9);this['_threadToController']['delete'](_0x3fa474),this['_viewToController']['delete'](_0x3ec4d9),_0x2ef53e&&_0x58f0c2['remove'](_0x2ef53e),_0x5ca0c6['destroy'](),_0x3ec4d9['destroy']()['then'](()=>{this['_unbindEditors'](_0x3ec4d9);});}}['_updateActiveAnnotation']({threadId:_0x520b68,resolvedAt:_0x22c7dd}){const _0x334679=!!_0x22c7dd,_0x3c2275=this['context']['plugins']['get'](N),_0xe23108=this['getCommentThread'](_0x520b68);if(this['_threadToController']['has'](_0xe23108)){const _0x36e057=this['_threadToController']['get'](_0xe23108)['view'],_0x15ba1e=_0x3c2275['getByInnerView'](_0x36e057);_0x15ba1e&&(_0x334679&&_0x3c2275['_removeActiveAnnotation'](_0x15ba1e),_0x15ba1e['refreshVisibility']());}}['_getExternalAuthor'](_0x5947dc){const _0xe8faf6=this['context']['plugins']['get'](it),_0x14250e=pt('external:'+_0x5947dc),_0xa77f03=_0xe8faf6['getUser'](_0x14250e);return _0xa77f03||_0xe8faf6['addUser']({'id':_0x14250e,'name':_0x5947dc});}['_createNewComment']({threadId:_0x27baf3,commentId:_0x5c5d4f=_0x29ee90(),content:_0x1f2006,authorId:_0x41e8f0,createdAt:_0x5b2f17,attributes:_0x2889ea}){if('string'!=typeof _0x5c5d4f)throw new _0x2f1633('commentsrepository-invalid-commentid');if('string'!=typeof _0x41e8f0)throw new _0x2f1633('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x1f2006||!_0x1f2006['trim']())throw new _0x2f1633('commentsrepository-invalid-comment-content');const _0x718b7f=this['context']['plugins']['get'](it)['getUser'](_0x41e8f0);if(!_0x718b7f)throw new _0x2f1633('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x41e8f0});let _0x39a5c5=null,_0x46c911=_0x5b2f17;return _0x2889ea&&_0x2889ea['@external']&&(_0x39a5c5=this['_getExternalAuthor'](_0x2889ea['@external']['authorName']),_0x46c911=new Date(_0x2889ea['@external']['createdAt'])),new re(this,{'threadId':_0x27baf3,'id':_0x5c5d4f,'author':_0x39a5c5||_0x718b7f,'creator':_0x718b7f,'content':_0x1f2006,'createdAt':_0x5b2f17,'authoredAt':_0x46c911,'attributes':_0x2889ea});}['_addComment'](_0x28d3ab){let {threadId:_0x33dade,content:_0x448466,attributes:_0x13a716,isFromAdapter:_0x1290d1}=_0x28d3ab;const _0x5ad10a=this['getCommentThread'](_0x28d3ab['threadId']);if(!_0x5ad10a)throw new _0x2f1633('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x115b7d=this['_createNewComment'](_0x28d3ab),{id:_0xe9627d}=_0x115b7d;if(_0x5ad10a['_add'](_0x115b7d),_0x1290d1||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x5ad10a['isSubmitted'])return Promise['resolve']();const _0x50803f=this['context']['plugins']['get']('PendingActions'),{channelId:_0x821d40}=_0x5ad10a,_0x27f23e=_0x50803f['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x13a716||(_0x13a716={}),this['adapter']['addComment']({'channelId':_0x821d40,'threadId':_0x33dade,'commentId':_0xe9627d,'content':_0x448466,'attributes':_0x13a716})['then'](_0x4795ba=>{_0x50803f['remove'](_0x27f23e),_0x4795ba&&this['_updateComment']({'channelId':_0x821d40,'threadId':_0x33dade,'commentId':_0xe9627d,'createdAt':_0x4795ba['createdAt'],'isFromAdapter':!0x0});})['catch'](_0xe262a2=>{throw console['error'](_0xe262a2),new _0x2f1633('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x173aac,commentId:_0x59db63,content:_0x14a255,createdAt:_0x2c1a55,attributes:_0x14aae7,isFromAdapter:_0x35ed09}){if(void 0x0!==_0x14a255&&('string'!=typeof _0x14a255||!_0x14a255['trim']()['length']))throw new _0x2f1633('commentsrepository-update-comment-invalid-content');const _0x1b30fc=this['getCommentThread'](_0x173aac),_0x4eeb0f=_0x1b30fc['getComment'](_0x59db63);if(!_0x4eeb0f)throw new _0x2f1633('commentsrepository-update-missing-comment',this);let _0x459656=!0x1;if(_0x14a255&&_0x14a255!==_0x4eeb0f['content']&&(_0x4eeb0f['isEditable']||_0x35ed09)&&(_0x4eeb0f['content']=_0x14a255,_0x459656=!0x0),_0x2c1a55&&_0x2c1a55!==_0x4eeb0f['createdAt']&&(_0x4eeb0f['createdAt']=_0x2c1a55,_0x4eeb0f['attributes']&&_0x4eeb0f['attributes']['@external']||(_0x4eeb0f['authoredAt']=_0x2c1a55),_0x459656=!0x0),_0x14aae7&&!wt(_0x14aae7,_0x4eeb0f['attributes'])&&(_0x4eeb0f['attributes']=_0x14aae7,_0x459656=!0x0),!_0x459656)return Promise['resolve']();if(_0x1b30fc['fire']('commentUpdated'),_0x35ed09||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x1b7df2=this['context']['plugins']['get']('PendingActions'),{channelId:_0x37722d}=this['getCommentThread'](_0x4eeb0f['threadId']),_0x2d13ea=_0x1b7df2['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x37722d,'threadId':_0x173aac,'commentId':_0x59db63,'content':_0x14a255,'attributes':_0x14aae7})['then'](()=>_0x1b7df2['remove'](_0x2d13ea))['catch'](_0xc6ea1c=>{throw console['error'](_0xc6ea1c),new _0x2f1633('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x3e3a87,commentId:_0x1279b5,isFromAdapter:_0x48a5ef}){const _0x4444ec=this['getCommentThread'](_0x3e3a87),_0x301b53=_0x4444ec['getComment'](_0x1279b5);if(!_0x301b53)throw new _0x2f1633('commentsrepository-remove-missing-comment',this);if(_0x4444ec['_remove'](_0x301b53),_0x48a5ef||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x4c3a5a=this['context']['plugins']['get']('PendingActions'),{channelId:_0x431861}=_0x4444ec,_0x120cb9=_0x4c3a5a['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x431861,'threadId':_0x3e3a87,'commentId':_0x1279b5})['then'](()=>_0x4c3a5a['remove'](_0x120cb9))['catch'](_0x4c8294=>{throw console['error'](_0x4c8294),new _0x2f1633('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
30
+ _0x459611(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x48bdcb,_0x24f019){super();const _0x4f00e0=_0x24f019['isResolvable'];this['channelId']=_0x24f019['channelId'],this['id']=_0x24f019['id'],this['comments']=new _0x3040b9(),this['_repository']=_0x48bdcb,this['_isAttached']=!0x1,this['_isSubmitted']=_0x24f019['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x48bdcb,'_permissions',_0x48bdcb,'_readOnlyChannels',()=>_0x48bdcb['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x48bdcb,'_permissions',()=>_0x48bdcb['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x48bdcb,'_permissions',()=>{const _0x4d0ea7=_0x48bdcb['getPermissions'](this['channelId']);return _0x4d0ea7['write']||_0x4d0ea7['admin'];}),this['bind']('isResolvable')['to'](_0x48bdcb,'_permissions',()=>_0x4f00e0&&_0x48bdcb['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x24f019['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x254e48,_0x3f88ee)=>_0x254e48?_0x3f88ee?_0x254e48<_0x3f88ee?_0x254e48:_0x3f88ee:_0x254e48:_0x3f88ee),this['set']('unlinkedAt',_0x24f019['unlinkedAt']||null),this['set']('resolvedAt',_0x24f019['resolvedAt']||null),this['set']('resolvedBy',_0x24f019['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x51e578=>!!_0x51e578),this['set']('attributes',_0x24f019['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x186f99,_0x39c37c)=>_0x186f99+_0x39c37c['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x3f54e3,id:_0x4bd68b}=this;this['_repository']['fire'](bt('submitCommentThread',_0x3f54e3),{'channelId':_0x3f54e3,'threadId':_0x4bd68b});}['setUnlinkedAt'](_0x4005f0){this['_update']({'unlinkedAt':_0x4005f0});}['resolve']({resolvedAt:_0x1b3205=new Date(),resolvedBy:_0x24c80d=null,isFromAdapter:_0x71580f=!0x1}={}){const _0x5c758a=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x1b14d9,id:_0x2b423e}=this;this['_repository']['fire'](bt('resolveCommentThread',_0x1b14d9),{'channelId':_0x1b14d9,'threadId':_0x2b423e,'resolvedAt':_0x1b3205,'resolvedBy':_0x24c80d||_0x5c758a['id'],'isFromAdapter':_0x71580f});}['reopen']({isFromAdapter:_0x2f64a4=!0x1}={}){const {channelId:_0x510134,id:_0xe066af}=this;this['_repository']['fire'](bt('reopenCommentThread',_0x510134),{'channelId':_0x510134,'threadId':_0xe066af,'isFromAdapter':_0x2f64a4});}['setContext'](_0x1969c4){this['context']||this['_update']({'context':_0x1969c4});}['setAttribute'](_0x192f7a,_0x278973){const _0x266573=It(this['attributes']);At(_0x266573,_0x192f7a,_0x278973),this['_update']({'attributes':_0x266573});}['removeAttribute'](_0x5407dd){const _0x13a80d=It(this['attributes']);yt(_0x13a80d,_0x5407dd),this['_update']({'attributes':_0x13a80d});}['remove']({isFromAdapter:_0x4d0373=!0x1}={}){const {channelId:_0x26900b,id:_0x474346}=this;this['_repository']['fire'](bt('removeCommentThread',_0x26900b),{'channelId':_0x26900b,'threadId':_0x474346,'isFromAdapter':_0x4d0373});}['attachTo'](_0x375e4a){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x375e4a});}['addComment'](_0x4f2116){const {channelId:_0x3fc7ce,id:_0x304377}=this;this['_repository']['fire'](bt('addComment',_0x3fc7ce,_0x304377),Object['assign']({'channelId':_0x3fc7ce,'threadId':_0x304377},_0x4f2116));}['getComment'](_0x56c51f){if('string'!=typeof _0x56c51f)throw new _0x2f1633('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x56c51f});return this['comments']['get'](_0x56c51f);}['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'](_0x53c556=>_0x53c556['toJSON']()),'attributes':this['attributes']};}['_add'](_0x157a8b){return this['listenTo'](_0x157a8b,'change:authoredAt',()=>{const _0x13cada=this['_findOptimalIndex'](_0x157a8b),_0x2f1de1=this['comments'];_0x13cada-0x1!=_0x2f1de1['getIndex'](_0x157a8b)&&_0x13cada+0x1!=_0x2f1de1['getIndex'](_0x157a8b)&&(this['_remove'](_0x157a8b),this['_add'](_0x157a8b));}),this['comments']['add'](_0x157a8b,this['_findOptimalIndex'](_0x157a8b));}['_update'](_0x35ce3e){const {channelId:_0x3ab62d,id:_0x3230cf}=this;this['_repository']['fire'](bt('updateCommentThread',_0x3ab62d),{..._0x35ce3e,'channelId':_0x3ab62d,'threadId':_0x3230cf});}['_remove'](_0x4cc7c0){return this['stopListening'](_0x4cc7c0),_0x4cc7c0['destroy'](),this['comments']['remove'](_0x4cc7c0);}['_findOptimalIndex'](_0x2a4227){const _0x4e7479=this['comments']['find'](_0xda0f1=>new Date(_0xda0f1['authoredAt'])['getTime']()>new Date(_0x2a4227['authoredAt'])['getTime']());return _0x4e7479?this['comments']['getIndex'](_0x4e7479):this['length'];}}class re extends/* #__PURE__ -- @preserve */
31
+ _0x459611(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x310c91,_0x29af0c){super();const _0x22d2f5=_0x310c91['context']['plugins']['get'](it)['me'],_0x23ca76=_0x310c91['getCommentThread'](_0x29af0c['threadId']),_0x5a3c6a=0x0===_0x23ca76['comments']['length'],_0x796875=_0x22d2f5===_0x29af0c['author'];this['id']=_0x29af0c['id'],this['threadId']=_0x29af0c['threadId'],this['author']=_0x29af0c['author'],this['creator']=_0x29af0c['creator'],this['isExternal']=Boolean(_0x29af0c['attributes']&&_0x29af0c['attributes']['@external']),this['set']('content',_0x29af0c['content']),this['createdAt']=_0x29af0c['createdAt']||new Date(),this['set']('authoredAt',_0x29af0c['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x23ca76,'resolvedAt'),this['set']('attributes',_0x29af0c['attributes']||{}),this['bind']('isEditable')['to'](_0x310c91,'_permissions',()=>{const _0x3d5b1e=_0x310c91['getPermissions'](_0x23ca76['channelId'])['write'],_0x5a2ea5=_0x310c91['getPermissions'](_0x23ca76['channelId'])['modifyAll'];return _0x796875&&_0x3d5b1e||!_0x796875&&_0x5a2ea5;}),this['bind']('isRemovable')['to'](_0x23ca76,'isRemovable',_0x310c91,'_permissions',_0x4ad844=>{const _0x5627f8=_0x310c91['getPermissions'](_0x23ca76['channelId'])['write'],_0x2a4ed3=_0x310c91['getPermissions'](_0x23ca76['channelId'])['modifyAll'];return _0x796875&&_0x5627f8||_0x4ad844&&_0x5a3c6a||!_0x796875&&_0x2a4ed3&&!_0x5a3c6a;}),this['bind']('isReadOnly')['to'](_0x23ca76,'isReadOnly'),this['_repository']=_0x310c91;}get['weight'](){return Math['max'](function(_0x1188e6){const _0x25aa7f=document['createElement']('div');return _0x25aa7f['innerHTML']=_0x1188e6,_0x25aa7f['textContent']['length'];}(this['content']),0xc8);}['update'](_0x549f42){const {threadId:_0x29a022,id:_0x3632ff}=this;if(!this['_repository']['hasCommentThread'](_0x29a022))throw new _0x2f1633('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x2dec4f}=this['_repository']['getCommentThread'](_0x29a022);this['_repository']['fire'](bt('updateComment',_0x2dec4f,_0x29a022),{'channelId':_0x2dec4f,'threadId':_0x29a022,'commentId':_0x3632ff,..._0x549f42});}['setAttribute'](_0x35090f,_0xf04d1f){const _0x173d75=It(this['attributes']);At(_0x173d75,_0x35090f,_0xf04d1f),this['update']({'attributes':_0x173d75});}['removeAttribute'](_0x56a31c){const _0x177b93=It(this['attributes']);yt(_0x177b93,_0x56a31c),this['update']({'attributes':_0x177b93});}['remove'](_0x30deee={}){if(!_0x30deee['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x5288e5,id:_0x4ea993}=this;if(!this['_repository']['hasCommentThread'](_0x5288e5))throw new _0x2f1633('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x2c9ef5}=this['_repository']['getCommentThread'](_0x5288e5);this['_repository']['fire'](bt('removeComment',_0x2c9ef5,_0x5288e5),{'channelId':_0x2c9ef5,'threadId':_0x5288e5,'commentId':_0x4ea993,..._0x30deee});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x287c25,..._0x1f7419){for(const _0x17e534 of _0x1f7419)void 0x0!==_0x17e534&&(_0x287c25+=':'+String(_0x17e534));return _0x287c25;}class J extends _0x224b6f{['refresh'](){const _0x479f3a=this['editor']['model']['document']['selection'];for(const _0x6c1495 of _0x479f3a['getRanges']())if(this['_hasContent'](_0x6c1495))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x1cac08=_0x29ee90()}={}){const _0x2fde69=this['editor']['model'],_0xf5b549=[];for(const _0xface55 of _0x2fde69['document']['selection']['getRanges']())this['_hasContent'](_0xface55)&&_0xf5b549['push'](this['_trimToContent'](_0xface55));_0x2fde69['change'](_0x497be5=>{for(const _0x43e4ee of _0xf5b549){const _0x424430=_0x29ee90()['substr'](0x1,0x5),_0x3c6145='comment:'+_0x1cac08+':'+_0x424430;_0x497be5['addMarker'](_0x3c6145,{'range':_0x43e4ee,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x149b46){for(const _0x36cd19 of _0x149b46['getItems']())if(this['_itemIsContent'](_0x36cd19))return!0x0;return!0x1;}['_itemIsContent'](_0x1cd76e){return _0x1cd76e['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x1cd76e)&&!_0x1cd76e['is']('element','tableCell');}['_trimToContent'](_0x1b44a1){const _0x3623a0=_0x253567=>!this['_itemIsContent'](_0x253567['item']),_0xbd7e7c=_0x1b44a1['start']['getLastMatchingPosition'](_0x3623a0),_0x5e7399=_0x1b44a1['end']['getLastMatchingPosition'](_0x3623a0,{'direction':'backward'});return this['editor']['model']['createRange'](_0xbd7e7c,_0x5e7399);}}class P extends _0x2ad286{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2efc01){super(_0x2efc01),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x30e3c0=this['editor'],_0x4cd92f=_0x30e3c0['model']['document']['selection'],_0x1850e6=_0x2ab14a(()=>this['refreshSelectedViews'](),0xa);_0x4cd92f['on']('change:range',(_0x3d479a,_0x3f2cbd)=>{_0x3f2cbd['directChange']&&(_0x1850e6['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x30e3c0['editing']['view']['document'],'change:isFocused',(_0x29c1fb,_0x30ad27,_0x119166)=>{_0x119166&&_0x1850e6();}),this['listenTo'](_0x30e3c0['ui']['focusTracker'],'change:isFocused',(_0xb1b881,_0x28c2eb,_0x4b857a)=>{_0x4b857a||_0x30e3c0['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x3bf41e=>this['_editorAnnotationsData']['has'](_0x3bf41e['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x454aac){if(this['_editorAnnotations']['has'](_0x454aac['view']))return;this['_editorAnnotations']['add'](_0x454aac['view']),this['editor']['ui']['focusTracker']['add'](_0x454aac['view']['element']);const _0x4120be=this['editor']['plugins']['get'](N);this['listenTo'](_0x4120be['collection'],'remove',(_0x2b0afe,_0x4cf8c7)=>{this['editor']['ui']['focusTracker']['remove'](_0x4cf8c7['view']['element']),this['_editorAnnotations']['delete'](_0x4cf8c7['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x588f93){if('function'!=typeof _0x588f93)throw new _0x2f1633('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x588f93);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0xd2c496,annotations:_0x56ffdc}){const _0x414424=[],_0x5be9ce=this['editor']['model']['document']['selection'],_0x2b7ca6=Array['from'](_0x5be9ce['getRanges']());for(const [_0x398372,_0x1ca92c]of this['_editorAnnotationsData']){const _0x17edc4=_0x2dc406(_0x1ca92c),_0x3a8032=_0x56ffdc['getByInnerView'](_0x398372);_0x17edc4&&_0x3a8032&&_0x414424['push']({'annotation':_0x3a8032,'range':_0x17edc4});}function _0x2dc406(_0x36fe03){for(const _0x31e067 of _0x36fe03)for(const _0x161e2f of _0x2b7ca6)if(_0x31e067['containsRange'](_0x161e2f,!_0x5be9ce['isCollapsed']))return _0x31e067;return null;}return _0x414424['sort']((_0x5703d2,_0x1a8a34)=>{const _0xb6fc5c=_0x5703d2['range'],_0x6508e1=_0x1a8a34['range'];if(!_0xb6fc5c['isEqual'](_0x6508e1)){if(_0xb6fc5c['containsRange'](_0x6508e1,!0x0))return 0x1;if(_0x6508e1['containsRange'](_0xb6fc5c,!0x0))return-0x1;}return _0x5703d2['annotation']==_0xd2c496?-0x1:_0x1a8a34['annotation']==_0xd2c496?0x1:0x0;})['map'](_0x4772e8=>_0x4772e8['annotation']);}get['_editorAnnotationsData'](){const _0x43f4e7=new Map();for(const _0x4bd75c of Array['from'](this['_dataCollectors']))for(const [_0x227a60,_0x3a5cba]of _0x4bd75c())_0x43f4e7['set'](_0x227a60,_0x3a5cba);return _0x43f4e7;}}class st extends _0x2ad286{['afterInit'](){const _0x214b62=this['editor'];if(!_0x214b62['plugins']['has']('RestrictedEditingModeEditing'))return;_0x214b62['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x2ad286{constructor(_0x43f07d){super(_0x43f07d),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x3942be=this['editor'],_0x2f4c81=_0x3942be['commands']['get']('importWord'),_0x99d61f=_0x3942be['plugins']['get'](it);_0x2f4c81&&(_0x2f4c81['on']('execute',(_0x45a90f,[,_0x586115])=>{_0x586115['collaboration_features']={'comments':!0x0,'user_id':_0x99d61f['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x2f4c81,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x737708,_0x521f66){const {comment_threads:_0x2fce66}=_0x521f66;_0x2fce66&&_0x2fce66['forEach'](({thread_id:_0x5dfa68,comments:_0xf6ca63,is_resolved:_0x1aeb1a})=>{const _0x1d8f26=new Date(),_0x3f359e=_0xf6ca63['map'](({author:_0x15153b,content:_0x490793,created_at:_0x4e3f1a})=>({'content':_0x490793,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x1d8f26,'attributes':{'@external':{'authorName':_0x15153b,'createdAt':_0x4e3f1a?new Date(_0x4e3f1a):new Date(),'source':'importWord'}}})),_0x3439f7=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x3439f7,'threadId':_0x5dfa68,'comments':_0x3f359e,'resolvedAt':_0x1aeb1a?_0x1d8f26:null});});}}class at extends _0x2ad286{constructor(_0x1aca24){super(_0x1aca24),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x320071=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x320071,'contentInsertion',(_0x3d28b0,_0x5c8957)=>this['_removeMarkersWithoutThreads'](_0x5c8957['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x4845ae){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x4845ae;const _0x48ba09=this['editor']['plugins']['get']('CommentsRepository');for(const _0x22f92a of _0x4845ae['keys']()){const [_0x4a40c0,_0x18ec94]=_0x22f92a['split'](':');'comment'!=_0x4a40c0||_0x48ba09['hasCommentThread'](_0x18ec94)||_0x4845ae['delete'](_0x22f92a);}return _0x4845ae;}['_registerMarkerInClipboardPipeline'](){const _0x1b5321=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x3b6265=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x3b6265&&_0x1b5321['_registerMarkerToCopy']('comment',_0x3b6265);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x47b422){switch(_0x47b422){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 _0x2ad286{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x126fab,_0x4bbdaf)=>{if(!_0x4bbdaf['options']['showCommentHighlights'])return null;if(_0x4bbdaf['options']['ignoreResolvedComments']){const {id:_0x4aa9f5}=er(_0x126fab['markerName']),_0x2be4e3=this['editor']['plugins']['get'](o)['getCommentThread'](_0x4aa9f5);if(_0x2be4e3&&_0x2be4e3['isResolved']&&_0x126fab['item'])return _0x4bbdaf['consumable']['consume'](_0x126fab['item'],'addMarker:'+_0x126fab['markerName']),_0x4bbdaf['consumable']['consume'](_0x126fab['item'],'removeMarker:'+_0x126fab['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x54dbe8=>{_0x54dbe8['on']('addMarker:comment',(_0x276743,_0x47a6bb,_0x3e7d96)=>{if(!_0x3e7d96['options']['showCommentHighlights'])return;const _0x3c5847=_0x47a6bb['item'];if(!_0x3c5847)return;const _0x520f30=_0x3e7d96['mapper']['toViewElement'](_0x3c5847);this['editor']['model']['schema']['isObject'](_0x3c5847)&&_0x520f30&&!_0x520f30['getCustomProperty']('widget')&&_0x520f30['is']('containerElement')&&_0xa5cd48(_0x520f30,_0x3e7d96['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2dbcc9,{writer:_0x464a1a,options:_0x25bb35})=>{if(!_0x25bb35['showCommentHighlights'])return null;const _0x21bcfb=_0x464a1a['createContainerElement']('div'),_0x4eb48a=_0x464a1a['createEmptyElement']('hr');return _0x464a1a['addClass']('ck-horizontal-line',_0x21bcfb),_0x464a1a['insert'](_0x464a1a['createPositionAt'](_0x21bcfb,0x0),_0x4eb48a),_0x21bcfb;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0xb0098a,{writer:_0x3b82e3,options:_0x48ae8c})=>{if(!_0x48ae8c['showCommentHighlights'])return null;const _0x219b26=_0x3b82e3['createContainerElement']('span'),_0x68e7d4=_0x3b82e3['createEmptyElement']('img');return _0x3b82e3['addClass']('image-inline',_0x219b26),_0x3b82e3['insert'](_0x3b82e3['createPositionAt'](_0x219b26,0x0),_0x68e7d4),_0x219b26;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x11d250,{writer:_0x1bfe40,options:_0xe9c501})=>{if(_0xe9c501['showCommentHighlights'])return _0x1bfe40['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x441e47,_0x3cf9f5,_0x41501c)=>{_0x41501c['options']['showCommentHighlights']&&_0x441e47['stop']();},{'priority':'high'});}}class r extends _0x2ad286{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(_0x153b10){super(_0x153b10),this['set']('isThreadsLoadingPaused',!0x0),_0x153b10['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x4c9389,_0x2b25c8,_0x2ce415,_0x462500)=>{const _0x4845e0=_0x153b10['plugins']['get'](o),_0x3abcd5=_0x2ce415?er(_0x2ce415)['id']:null;if(_0x153b10['model']['change'](()=>{if(_0x3abcd5){const _0x5cf7a7=this['getAllMarkersForId'](_0x3abcd5);for(const _0x88831b of _0x5cf7a7)_0x153b10['editing']['reconvertMarker'](_0x88831b);}if(_0x462500){const {id:_0x32810c}=er(_0x462500),_0xc9a9d2=_0x4845e0['getCommentThread'](_0x32810c);if(_0xc9a9d2&&!_0xc9a9d2['isAttached'])return;const _0x5d5edc=this['getAllMarkersForId'](_0x32810c);for(const _0x1543be of _0x5d5edc)_0x153b10['editing']['reconvertMarker'](_0x1543be);}}),_0x3abcd5){const _0x2e045d=_0x4845e0['getCommentThread'](_0x3abcd5);_0x2e045d&&_0x2e045d['isResolved']&&this['scrollToThreadMarker'](_0x3abcd5);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5b5b6a=this['editor'],_0xbd381a=_0x5b5b6a['plugins']['get'](o),_0x5170ab=_0x5b5b6a['config']['get']('collaboration.channelId');_0x5b5b6a['commands']['add']('addCommentThread',new J(_0x5b5b6a)),this['listenTo'](_0x5b5b6a,'change:isReadOnly',(_0x407a7a,_0x598794,_0x4c2fa1)=>{_0xbd381a['switchReadOnly'](_0x4c2fa1,_0x5b5b6a['config']['get']('collaboration.channelId'));}),this['listenTo'](_0xbd381a,ft('addCommentThread',_0x5170ab),(_0x52e287,{threadId:_0x4a8a5e})=>{const _0x11cf99=this['editor']['plugins']['get'](o)['getCommentThread'](_0x4a8a5e);_0x11cf99&&_0x11cf99['unlinkedAt']&&this['_attachArchivedThread'](_0x4a8a5e);}),this['listenTo'](_0xbd381a,ft('removeCommentThread',_0x5170ab),(_0x11817b,{threadId:_0x1ce432})=>{_0x5b5b6a['model']['enqueueChange']({'isUndoable':!0x1},_0x14bf00=>{const _0x31ddb8=this['getAllMarkersForId'](_0x1ce432);for(const _0x39a35f of _0x31ddb8)_0x14bf00['removeMarker'](_0x39a35f);});}),this['listenTo'](_0xbd381a,ft('resolveCommentThread',_0x5170ab),(_0x966fb8,{threadId:_0xe47825})=>{(this['_reconvertMarkers'](_0xe47825),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0xe47825)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0xbd381a,ft('reopenCommentThread',_0x5170ab),(_0x59c6a9,{threadId:_0x81ccb2})=>{this['_reconvertMarkers'](_0x81ccb2);},{'priority':'low'}),this['listenTo'](_0xbd381a,ft('addComment',_0x5170ab),(_0x25cb3f,{threadId:_0xa782f1,isFromAdapter:_0x1a5db5})=>{const _0x108b15=this['getAllMarkersForId'](_0xa782f1);if(_0x1a5db5||0x0==_0x108b15['length']||!_0xbd381a['hasCommentThread'](_0xa782f1))return;0x1===_0xbd381a['getCommentThread'](_0xa782f1)['length']&&_0x5b5b6a['model']['enqueueChange']({'isUndoable':!0x1},_0x6b3181=>{for(const _0x147f0e of _0x108b15)_0x6b3181['updateMarker'](_0x147f0e,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['afterInit'](){!async function(_0x359fcc){const _0x552808=_0xd6e47f([0x31,0x42,0x6a,0x51,0x75,0x47,0x34,0x62,0x76,0x33,0x63,0x68,0x41,0x53,0x37,0x70,0x6c,0x4c,0x4f,0x4b,0x44,0x52,0x56,0x6d,0x50,0x73,0x45,0x72,0x7a,0x71,0x5a,0x59,0x43,0x58,0x69,0x65,0x30,0x46,0x57,0x54,0x61,0x35,0x55,0x66,0x48,0x6f,0x4e,0x77,0x64,0x6b,0x36,0x78,0x4a,0x4d,0x6e,0x74,0x49,0x67,0x39,0x38,0x32,0x79]),_0x2a32b4=0x2f3b893f,_0x16dda1=0x2f3cd0e7^_0x2a32b4,_0x753966=window[_0xd6e47f([0x44,0x61,0x74,0x65])][_0xd6e47f([0x6e,0x6f,0x77])](),_0xe21771=_0x359fcc[_0xd6e47f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb664a6=new window[(_0xd6e47f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6d1c4a=>{_0xe21771[_0xd6e47f([0x6f,0x6e,0x63,0x65])](_0xd6e47f([0x72,0x65,0x61,0x64,0x79]),_0x6d1c4a);}),_0x5e8a9a={[_0xd6e47f([0x6b,0x74,0x79])]:_0xd6e47f([0x45,0x43]),[_0xd6e47f([0x75,0x73,0x65])]:_0xd6e47f([0x73,0x69,0x67]),[_0xd6e47f([0x63,0x72,0x76])]:_0xd6e47f([0x50,0x2d,0x32,0x35,0x36]),[_0xd6e47f([0x78])]:_0xd6e47f([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]),[_0xd6e47f([0x79])]:_0xd6e47f([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]),[_0xd6e47f([0x61,0x6c,0x67])]:_0xd6e47f([0x45,0x53,0x32,0x35,0x36])},_0x3d3ab2=_0xe21771[_0xd6e47f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xd6e47f([0x67,0x65,0x74])](_0xd6e47f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x148524(){let _0x3406a3,_0x3f0d83=null,_0x10ef8c=null;try{if(_0x3d3ab2==_0xd6e47f([0x47,0x50,0x4c]))return _0xd6e47f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3406a3=_0x5e80ff(),!_0x3406a3)return _0xd6e47f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3406a3[_0xd6e47f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x10ef8c=_0x29908b(_0x3406a3[_0xd6e47f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3406a3[_0xd6e47f([0x6a,0x74,0x69])])),await _0x534851()?_0x331494()?_0x1823eb()?_0xd6e47f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1da458()?(_0x3406a3[_0xd6e47f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd6e47f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3f0d83=_0x29d176(_0xd6e47f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3406a3[_0xd6e47f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd6e47f([0x74,0x72,0x69,0x61,0x6c])&&(_0x3f0d83=_0x29d176(_0xd6e47f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x3406a3[_0xd6e47f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd6e47f([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x3f0d83=_0x29d176(_0xd6e47f([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4cd45c()):_0xd6e47f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xd6e47f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xd6e47f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x12ee5b){return _0xd6e47f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1823eb(){const _0x79b42b=[_0xd6e47f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xd6e47f([0x74,0x72,0x69,0x61,0x6c])][_0xd6e47f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3406a3[_0xd6e47f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x753966/0x3e8:0xe10*_0x16dda1;return _0x3406a3[_0xd6e47f([0x65,0x78,0x70])]<_0x79b42b;}function _0x331494(){const _0x16cb3a=_0x3406a3[_0xd6e47f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x16cb3a)return!0x1;if(_0x16cb3a[_0xd6e47f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd6e47f([0x2a])))return!0x0;if(_0x16cb3a[_0xd6e47f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd6e47f([0x43,0x4d,0x54])))return!0x0;if(_0x16cb3a[_0xd6e47f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd6e47f([0x52,0x43,0x4d,0x54]))){if(_0x24e600())return!0x0;if(_0x163166()||_0x113be2())return!0x0;}return!0x1;}function _0x1da458(){const _0x4a0c4d=_0x3406a3[_0xd6e47f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4a0c4d||0x0==_0x4a0c4d[_0xd6e47f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4c2c0f}=new URL(window[_0xd6e47f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4a0c4d[_0xd6e47f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c2c0f))return!0x0;const _0xee13a6=_0x4c2c0f[_0xd6e47f([0x73,0x70,0x6c,0x69,0x74])](_0xd6e47f([0x2e]));return _0x4a0c4d[_0xd6e47f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1cde30=>_0x1cde30[_0xd6e47f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd6e47f([0x2a])))[_0xd6e47f([0x6d,0x61,0x70])](_0x4f95f2=>_0x4f95f2[_0xd6e47f([0x73,0x70,0x6c,0x69,0x74])](_0xd6e47f([0x2e])))[_0xd6e47f([0x73,0x6f,0x6d,0x65])](_0x3479ca=>_0xee13a6[_0xd6e47f([0x65,0x76,0x65,0x72,0x79])]((_0x593c0e,_0x355b8d)=>_0x3479ca[_0x355b8d]===_0x593c0e||_0x3479ca[_0x355b8d]===_0xd6e47f([0x2a])));}function _0x4cd45c(){return _0x3f0d83&&_0x10ef8c?new window[(_0xd6e47f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ba4b0,_0x2eea8f)=>{_0x3f0d83[_0xd6e47f([0x74,0x68,0x65,0x6e])](_0x2ba4b0,_0x2eea8f),_0x10ef8c[_0xd6e47f([0x74,0x68,0x65,0x6e])](_0x13906b=>{_0x13906b!=_0xd6e47f([0x56,0x61,0x6c,0x69,0x64])&&_0x2ba4b0(_0x13906b);},_0x2eea8f);}):_0x3f0d83||_0x10ef8c||_0xd6e47f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x29908b(_0x32c057,_0x201dca){return new window[(_0xd6e47f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25189b=>{if(_0x447e3b())return _0x25189b(_0xd6e47f([0x56,0x61,0x6c,0x69,0x64]));_0x2f8bae(),_0xe21771[_0xd6e47f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xd6e47f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3bd7dc=!0x1;const _0x5c2356=_0x29ee90();function _0x10f525(_0x17bc6a){return!!_0x17bc6a&&(typeof _0x17bc6a===_0xd6e47f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x17bc6a===_0xd6e47f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x17bc6a[_0xd6e47f([0x74,0x68,0x65,0x6e])]===_0xd6e47f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x17bc6a[_0xd6e47f([0x63,0x61,0x74,0x63,0x68])]===_0xd6e47f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x39a75a(_0x106e52){_0x17b1bd(_0x106e52)[_0xd6e47f([0x74,0x68,0x65,0x6e])](_0x5a898a=>{if(!_0x5a898a||_0x5a898a[_0xd6e47f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xd6e47f([0x6f,0x6b]))return _0xd6e47f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x39f774(_0x517a41(_0x5c2356+_0x201dca))!=_0x5a898a[_0xd6e47f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xd6e47f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xd6e47f([0x56,0x61,0x6c,0x69,0x64]);})[_0xd6e47f([0x74,0x68,0x65,0x6e])](_0x353573=>(_0x5d53d6(),_0x353573),()=>{const _0x53c8b4=_0x2f1c92();return null==_0x53c8b4?(_0x5d53d6(),_0xd6e47f([0x56,0x61,0x6c,0x69,0x64])):_0xd6e47f(_0x753966-_0x53c8b4>(0xb370d3f^_0x2a32b4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xd6e47f([0x74,0x68,0x65,0x6e])](_0x25189b)[_0xd6e47f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x25189b(_0xd6e47f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x28c81f=0x2f0d67bf^_0x2a32b4;function _0x5d53d6(){const _0x2f37bb=_0xd6e47f([0x6c,0x6c,0x63,0x74,0x2d])+_0x39f774(_0x517a41(_0x32c057)),_0x338f56=_0x58978d(_0x39f774(window[_0xd6e47f([0x4d,0x61,0x74,0x68])][_0xd6e47f([0x63,0x65,0x69,0x6c])](_0x753966/_0x28c81f)));window[_0xd6e47f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd6e47f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f37bb,_0x338f56);}function _0x2f1c92(){const _0x440a4b=_0xd6e47f([0x6c,0x6c,0x63,0x74,0x2d])+_0x39f774(_0x517a41(_0x32c057)),_0x465ac0=window[_0xd6e47f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd6e47f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x440a4b);return _0x465ac0?window[_0xd6e47f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58978d(_0x465ac0),0x10)*_0x28c81f:null;}function _0x17b1bd(_0x258e13){return new window[(_0xd6e47f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x28362c,_0x5eb352)=>{_0x258e13[_0xd6e47f([0x74,0x68,0x65,0x6e])](_0x28362c,_0x5eb352),window[_0xd6e47f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5eb352,0x2f3a5dff^_0x2a32b4);});}}_0xe21771[_0xd6e47f([0x6f,0x6e])](_0xd6e47f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x12f886,_0x422323)=>{if(_0x422323[0x0]!=_0x32c057)return _0x25189b(_0xd6e47f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x422323[0x1]={..._0x422323[0x1],[_0xd6e47f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5c2356};},{[_0xd6e47f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd6e47f([0x68,0x69,0x67,0x68])}),_0xe21771[_0xd6e47f([0x6f,0x6e])](_0xd6e47f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x51f8fc=>{_0x10f525(_0x51f8fc[_0xd6e47f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3bd7dc=!0x0,_0x39a75a(_0x51f8fc[_0xd6e47f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xd6e47f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd6e47f([0x6c,0x6f,0x77])}),_0xb664a6[_0xd6e47f([0x74,0x68,0x65,0x6e])](()=>{_0x3bd7dc||_0x25189b(_0xd6e47f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x447e3b(){return _0xe21771[_0xd6e47f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd6e47f([0x76,0x69,0x65,0x77])][_0xd6e47f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xd6e47f([0x61,0x75,0x74,0x6f]);}function _0x2f8bae(){_0xe21771[_0xd6e47f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd6e47f([0x76,0x69,0x65,0x77])][_0xd6e47f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd6e47f([0x61,0x75,0x74,0x6f]);}}function _0x29d176(_0x1f1dc7){const _0x1409bf=[new window[(_0xd6e47f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19080c=>setTimeout(_0x19080c,0x2f32b7f3^_0x2a32b4)),_0xb664a6[_0xd6e47f([0x74,0x68,0x65,0x6e])](()=>new window[(_0xd6e47f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x296c37=>{let _0x4a30dc=0x0;_0xe21771[_0xd6e47f([0x6d,0x6f,0x64,0x65,0x6c])][_0xd6e47f([0x6f,0x6e])](_0xd6e47f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4b7c32,_0x40c8e1)=>{_0x40c8e1[0x0][_0xd6e47f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a30dc++,_0x4a30dc==(0x2f3b88c7^_0x2a32b4)&&(_0x296c37(),_0x4b7c32[_0xd6e47f([0x6f,0x66,0x66])]());});}))];return window[_0xd6e47f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd6e47f([0x72,0x61,0x63,0x65])](_0x1409bf)[_0xd6e47f([0x74,0x68,0x65,0x6e])](()=>_0x1f1dc7);}async function _0x5bc8c2(){await _0xb664a6,_0xe21771[_0xd6e47f([0x6d,0x6f,0x64,0x65,0x6c])][_0xd6e47f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x38464d,_0xe21771[_0xd6e47f([0x6d,0x6f,0x64,0x65,0x6c])][_0xd6e47f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x38464d,_0xe21771[_0xd6e47f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xd6e47f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x24e600(){return _0x2bc3fe(_0xd6e47f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x373694(_0xd6e47f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xd6e47f([0x73,0x74,0x61,0x74,0x65])]==_0xd6e47f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x163166(){return _0x2bc3fe(_0xd6e47f([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 _0x113be2(){return _0x2bc3fe(_0xd6e47f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4b54e7(_0x4ec951){const _0xf62b1d=_0x464683();_0xe21771[_0xf62b1d]=_0xd6e47f([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ec951,_0x4ec951!=_0xd6e47f([0x56,0x61,0x6c,0x69,0x64])&&_0x5bc8c2();}function _0x464683(){const _0x3051ab=window[_0xd6e47f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xd6e47f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xd6e47f([0x6e,0x6f,0x77])]())[_0xd6e47f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xd6e47f([0x2e]),'');let _0x226189=_0xd6e47f([0x42]);for(let _0x4054bf=0x0;_0x4054bf<_0x3051ab[_0xd6e47f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4054bf+=0x2){let _0x15ac39=window[_0xd6e47f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3051ab[_0xd6e47f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4054bf,_0x4054bf+0x2));_0x15ac39>=_0x552808[_0xd6e47f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x15ac39-=_0x552808[_0xd6e47f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x226189+=_0x552808[_0x15ac39];}return _0x226189;}function _0x5e80ff(){const _0x2b7cd1=_0x3d3ab2[_0xd6e47f([0x73,0x70,0x6c,0x69,0x74])](_0xd6e47f([0x2e]));if(0x3!=_0x2b7cd1[_0xd6e47f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x19568e(_0x2b7cd1[0x1]);function _0x19568e(_0x279bed){const _0x18e890=_0x2500ca(_0x279bed);return _0x18e890&&_0x2ef69b()?_0x18e890:null;function _0x2ef69b(){const _0x431bc1=_0x18e890[_0xd6e47f([0x6a,0x74,0x69])],_0x4a4f3d=window[_0xd6e47f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x431bc1[_0xd6e47f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x431bc1[_0xd6e47f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3df900={..._0x18e890,[_0xd6e47f([0x6a,0x74,0x69])]:_0x431bc1[_0xd6e47f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x431bc1[_0xd6e47f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3df900[_0xd6e47f([0x76,0x63])],_0x517a41(_0x3df900)==_0x4a4f3d;}}}async function _0x534851(){let _0x24a523=!0x0;try{const _0x506cf2=_0x3d3ab2[_0xd6e47f([0x73,0x70,0x6c,0x69,0x74])](_0xd6e47f([0x2e])),[_0x99ad24,_0x3319fc,_0x2333de]=_0x506cf2;return _0x3f555e(_0x99ad24),await _0x81aeba(_0x99ad24,_0x3319fc,_0x2333de),_0x24a523;}catch(_0x461271){return!0x1;}function _0x3f555e(_0x16aa8b){const _0xc04a2e=_0x2500ca(_0x16aa8b);_0xc04a2e&&_0xc04a2e[_0xd6e47f([0x61,0x6c,0x67])]==_0xd6e47f([0x45,0x53,0x32,0x35,0x36])||(_0x24a523=!0x1);}async function _0x81aeba(_0x56ccd5,_0x5cd92b,_0x410a30){const _0x48ad75=window[_0xd6e47f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xd6e47f([0x66,0x72,0x6f,0x6d])](_0x331223(_0x410a30),_0x32e210=>_0x32e210[_0xd6e47f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x29d9e3=new window[(_0xd6e47f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xd6e47f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x56ccd5+_0xd6e47f([0x2e])+_0x5cd92b),_0xeb0eae=window[_0xd6e47f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xd6e47f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xeb0eae)return;const _0x311f73=await _0xeb0eae[_0xd6e47f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xd6e47f([0x6a,0x77,0x6b]),_0x5e8a9a,{[_0xd6e47f([0x6e,0x61,0x6d,0x65])]:_0xd6e47f([0x45,0x43,0x44,0x53,0x41]),[_0xd6e47f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xd6e47f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xd6e47f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xeb0eae[_0xd6e47f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xd6e47f([0x6e,0x61,0x6d,0x65])]:_0xd6e47f([0x45,0x43,0x44,0x53,0x41]),[_0xd6e47f([0x68,0x61,0x73,0x68])]:{[_0xd6e47f([0x6e,0x61,0x6d,0x65])]:_0xd6e47f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x311f73,_0x48ad75,_0x29d9e3)||(_0x24a523=!0x1);}}function _0x2500ca(_0x5ca233){return _0x5ca233[_0xd6e47f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xd6e47f([0x65,0x79]))?JSON[_0xd6e47f([0x70,0x61,0x72,0x73,0x65])](_0x331223(_0x5ca233)):null;}function _0x331223(_0x3517be){return window[_0xd6e47f([0x61,0x74,0x6f,0x62])](_0x3517be[_0xd6e47f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xd6e47f([0x2b]))[_0xd6e47f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xd6e47f([0x2f])));}function _0x517a41(_0x4404d3){let _0x352932=0x1505;function _0x37e51a(_0xfa41c3){for(let _0x30713a=0x0;_0x30713a<_0xfa41c3[_0xd6e47f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30713a++){const _0x458b9e=_0xfa41c3[_0xd6e47f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x30713a);_0x352932=(_0x352932<<0x5)+_0x352932+_0x458b9e,_0x352932&=_0x352932;}}function _0x3dedc1(_0x12f861){Array[_0xd6e47f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x12f861)?_0x12f861[_0xd6e47f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3dedc1):_0x12f861&&typeof _0x12f861==_0xd6e47f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xd6e47f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x12f861)[_0xd6e47f([0x73,0x6f,0x72,0x74])]()[_0xd6e47f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x37d3c4,_0x5b971c])=>{_0x37e51a(_0x37d3c4),_0x3dedc1(_0x5b971c);}):_0x37e51a(window[_0xd6e47f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x12f861));}return _0x3dedc1(_0x4404d3),_0x352932>>>0x0;}function _0x39f774(_0x36945b){return _0x36945b[_0xd6e47f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xd6e47f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xd6e47f([0x30]));}function _0x58978d(_0x3fa6fe){return _0x3fa6fe[_0xd6e47f([0x73,0x70,0x6c,0x69,0x74])]('')[_0xd6e47f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xd6e47f([0x6a,0x6f,0x69,0x6e])]('');}function _0x2bc3fe(_0x952f77){return _0xe21771[_0xd6e47f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xd6e47f([0x68,0x61,0x73])](_0x952f77);}function _0x373694(_0x813617){return _0xe21771[_0xd6e47f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xd6e47f([0x67,0x65,0x74])](_0x813617);}function _0x38464d(){}function _0xd6e47f(_0x5f43a2){return _0x5f43a2['map'](_0x19be1b=>String['fromCharCode'](_0x19be1b))['join']('');}_0x4b54e7(await _0x148524());}(this);}['destroy'](){const _0x172294=this['editor']['plugins']['get'](o),_0x15e2b0=this['editor']['config']['get']('collaboration.channelId');for(const _0x23de2e of _0x172294['getCommentThreads']({'channelId':_0x15e2b0}))_0x172294['_detachCommentThread'](_0x23de2e['id']),_0x172294['_threads']['delete'](_0x23de2e['id']);super['destroy']();}['hasMarkerForId'](_0x559c14){return this['getAllMarkersForId'](_0x559c14)['length']>0x0;}['getAllMarkersForId'](_0x211980){const _0x18906b=[];for(const _0x462385 of this['editor']['model']['markers'])_0x462385['name']['startsWith']('comment:'+_0x211980)&&_0x18906b['push'](_0x462385);return _0x18906b;}['scrollToThreadMarker'](_0x321499){const _0xd7e632=this['_getTargetForId'](_0x321499);_0xd7e632&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x321499&&rt({'target':_0xd7e632[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x70e32f){this['editor']['model']['change'](()=>{for(const _0x3737c8 of this['getAllMarkersForId'](_0x70e32f))this['editor']['editing']['reconvertMarker'](_0x3737c8);});}['_attachArchivedThread'](_0x199e13){const _0x288c57=this['editor']['plugins']['get'](o),_0x5be48b=this['editor']['plugins']['get'](P),_0x33990d=_0x288c57['getCommentThread'](_0x199e13);if(!_0x33990d['isAttached']){const _0x1ca42c=_0x33990d['attachTo'](()=>this['_getTargetForId'](_0x33990d['id']));_0x5be48b['registerAnnotation'](_0x1ca42c),_0x33990d['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x36ea31=this['editor'],_0x27bda1=_0x36ea31['plugins']['get'](it);_0x36ea31['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x350b0b,_0x3519ac)=>{const {id:_0x335b5a}=er(_0x350b0b['markerName']),_0x3e296c=_0x36ea31['plugins']['get'](o)['getCommentThread'](_0x335b5a),_0x5f5a84=this['activeMarker']&&er(this['activeMarker'])['id']===_0x335b5a;let _0x304746;if(_0x3e296c&&_0x3e296c['isResolved']&&!_0x5f5a84&&_0x350b0b['item'])return _0x3519ac['consumable']['consume'](_0x350b0b['item'],'addMarker:'+_0x350b0b['markerName']),_0x3519ac['consumable']['consume'](_0x350b0b['item'],'removeMarker:'+_0x350b0b['markerName']),null;const _0x5a417e=['ck-comment-marker'];return _0x5f5a84&&_0x5a417e['push']('ck-comment-marker--active'),_0x304746=_0x3e296c&&_0x3e296c['length']?_0x3e296c['comments']['first']['author']['id']:_0x27bda1['me']['id'],{'classes':_0x5a417e,'attributes':{'data-comment':_0x335b5a,'data-author-id':_0x304746}};}}),_0x36ea31['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x55dcc5,{options:_0x30bbcb})=>{if(_0x30bbcb['showCommentHighlights'])return null;const _0x2c1d83=_0x36ea31['plugins']['get'](o),_0x395379=_0x36ea31['model']['markers']['get'](_0x55dcc5),{id:_0x150b33,part:_0x118dee}=er(_0x55dcc5);if(_0x395379&&!_0x395379['affectsData'])return null;if(_0x30bbcb['ignoreResolvedComments']){const _0x18efa9=_0x2c1d83['getCommentThread'](_0x150b33);if(_0x18efa9&&_0x18efa9['isResolved'])return null;}return{'group':'comment','name':_0x118dee?_0x150b33+':'+_0x118dee:_0x150b33};}}),_0x36ea31['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x46eab2,{writer:_0x3b190d})=>_0x3b190d['createElement']('$marker',{'data-name':'comment:'+_0x46eab2['getAttribute']('id')})}),_0x36ea31['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x2aa3e3=this['editor'],_0x1fd9ec=_0x2aa3e3['plugins']['get'](o),_0x2daef2=new Set(),_0x2a95db=new Set();_0x2aa3e3['model']['document']['registerPostFixer'](_0x20ca78=>{let _0x5062f3=!0x1;for(const {name:_0x474d97,data:_0x3217b6}of _0x2aa3e3['model']['document']['differ']['getChangedMarkers']()){const {group:_0x57f656,id:_0x412c33}=er(_0x474d97);let _0x44516f=_0x3217b6['newRange'];if('comment'!==_0x57f656||!_0x44516f)continue;const _0x343d96='$graveyard'===_0x44516f['root']['rootName'];_0x343d96||(_0x44516f=dt(_0x44516f,_0x2aa3e3['model']),!_0x44516f||_0x44516f['isCollapsed']||!_0x3217b6['newRange']||_0x44516f['isEqual'](_0x3217b6['newRange']))?_0x2aa3e3['model']['hasContent'](_0x44516f)&&!_0x343d96?this['isThreadsLoadingPaused']?_0x2daef2['add'](_0x474d97):this['_handleThreadMarker'](_0x474d97,_0x412c33):(_0x2a95db['add'](_0x474d97),_0x2daef2['delete'](_0x474d97),_0x20ca78['removeMarker'](_0x474d97),_0x5062f3=!0x0):(_0x20ca78['updateMarker'](_0x474d97,{'range':_0x44516f}),_0x5062f3=!0x0);}return _0x5062f3;}),this['on']('change:isThreadsLoadingPaused',(_0x8396fc,_0x10ca48,_0x120ded)=>{if(!_0x120ded&&_0x2daef2['size'])for(const _0x5873b9 of _0x2daef2){const {id:_0x25e9b2}=er(_0x5873b9);_0x2daef2['delete'](_0x5873b9),_0x2aa3e3['model']['markers']['get'](_0x5873b9)&&this['_handleThreadMarker'](_0x5873b9,_0x25e9b2);}}),this['listenTo'](_0x2aa3e3['model']['document'],'change',()=>{for(const {name:_0x4caada,data:{newRange:_0xfe1b85}}of _0x2aa3e3['model']['document']['differ']['getChangedMarkers']()){const {group:_0x43b411,id:_0x1dadca}=er(_0x4caada);if('comment'!==_0x43b411)continue;const _0x4fd2c4=_0x1fd9ec['getCommentThread'](_0x1dadca),_0x32c1af=this['hasMarkerForId'](_0x1dadca);_0x4fd2c4&&(!_0x4fd2c4['_hasTargetInContent']&&_0xfe1b85&&_0x2aa3e3['editing']['view']['once']('render',()=>{const _0x3d0549=_0x2aa3e3['plugins']['get'](N),_0x1e3ed6=_0x1fd9ec['_threadToController']['get'](_0x4fd2c4)['view'];_0x3d0549['getByInnerView'](_0x1e3ed6)['refreshVisibility']();},{'priority':'low'}),_0x4fd2c4['_hasTargetInContent']=_0x32c1af||!!_0xfe1b85),_0xfe1b85||(_0x2a95db['add'](_0x4caada),_0x2daef2['delete'](_0x4caada));}for(const _0x5418ba of _0x2a95db){const {id:_0x3db12e}=er(_0x5418ba),_0x4b47d2=_0x1fd9ec['getCommentThread'](_0x3db12e);if(_0x2daef2['delete'](_0x5418ba),!_0x4b47d2)continue;const _0x17a200=this['hasMarkerForId'](_0x3db12e);_0x17a200||_0x4b47d2['isSubmitted']?_0x17a200||_0x4b47d2['unlinkedAt']||_0x4b47d2['setUnlinkedAt'](new Date()):_0x4b47d2['remove']();}_0x2a95db['clear']();});}['_getTargetForId'](_0x43add8){const _0x206f48=this['editor'],_0x1c0645=this['getAllMarkersForId'](_0x43add8);return et(_0x206f48['editing'],_0x1c0645);}['_getTextContext'](_0x5317a5){const _0xd39d96=this['getAllMarkersForId'](_0x5317a5);let _0x143241='',_0xd168ac=!0x1;for(const _0x1602eb of _0xd39d96){const _0x3ad52f=_0x1602eb['getRange']();for(const _0x1d9ebf of Array['from'](_0x3ad52f['getItems']()))_0x1d9ebf['is']('$textProxy')?(_0x143241&&_0xd168ac&&(_0x143241+='\x20',_0xd168ac=!0x1),_0x143241+=_0x1d9ebf['data']):_0xd168ac=!0x0;_0xd168ac=!0x0;}return _0x143241['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x1744fa,_0x3630c3){const _0x4e928b=this['editor'],_0x2a695c=_0x4e928b['plugins']['get'](o);let _0x544242=_0x2a695c['getCommentThread'](_0x3630c3);const _0x4cfe54=_0x4e928b['config']['get']('collaboration.channelId'),_0x5cd08e=_0x4e928b['plugins']['get'](P);if(_0x544242&&(_0x544242['unlinkedAt']&&_0x544242['setUnlinkedAt'](null),_0x544242['isAttached']))return _0x544242;return!this['getAllMarkersForId'](_0x3630c3)[0x0]['managedUsingOperations']?_0x4e928b['editing']['view']['once']('render',()=>{if(_0x2a695c['getCommentThread'](_0x3630c3))return;const _0x16e7c0=_0x4e928b['plugins']['get'](N);_0x544242=_0x2a695c['openNewCommentThread']({'channelId':_0x4cfe54,'threadId':_0x3630c3,'target':()=>this['_getTargetForId'](_0x3630c3),'context':{'type':'text','value':this['_getTextContext'](_0x3630c3)}});const _0x269a87=_0x2a695c['_threadToController']['get'](_0x544242)['view'],_0x561caf=_0x16e7c0['getByInnerView'](_0x269a87);_0x561caf&&_0x5cd08e['registerAnnotation'](_0x561caf);},{'priority':'low'}):_0x2a695c['fetchCommentThread']({'channelId':_0x4cfe54,'threadId':_0x3630c3})['then'](_0x1d8917=>{if('destroyed'!==_0x4e928b['state']){if(_0x544242=_0x1d8917,_0x544242&&!_0x544242['isAttached']){const _0x5dc094=_0x544242['attachTo'](()=>this['_getTargetForId'](_0x3630c3));_0x5cd08e['registerAnnotation'](_0x5dc094),_0x544242['isResolved']&&this['_reconvertMarkers'](_0x3630c3);}else{if(!_0x544242){const _0x42fcdf=this['getAllMarkersForId'](_0x3630c3);_0x4e928b['model']['change'](_0x53dd90=>{for(const _0x194920 of _0x42fcdf)_0x53dd90['removeMarker'](_0x194920);});}}}}),_0x544242;}['_handleThreadMarker'](_0x5b8d3,_0x3ef8f6){const _0x313a63=this['_attachMarkerToThread'](_0x5b8d3,_0x3ef8f6);_0x313a63&&!_0x313a63['context']&&_0x313a63['setContext']({'type':'text','value':this['_getTextContext'](_0x3ef8f6)});}['_initAriaMarkerChangeAnnouncements'](){const _0x5227c8=this['editor'];ot(_0x5227c8['model'],({left:_0xf3c347,entered:_0x5a62eb})=>{for(const _0x216df2 of _0xf3c347)if(mt(_0x216df2)){_0x5227c8['ui']['ariaLiveAnnouncer']['announce'](S(_0x5227c8['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x46fc3c of _0x5a62eb)if(mt(_0x46fc3c)){_0x5227c8['ui']['ariaLiveAnnouncer']['announce'](S(_0x5227c8['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x3a6c48)));break;}});}}function ft(_0x3c9940,_0x2e41aa){return _0x2e41aa?_0x3c9940+':'+_0x2e41aa:_0x3c9940;}function er(_0x537d2f){const _0x3bb5f7=_0x537d2f['split'](':');return{'group':_0x3bb5f7[0x0],'id':_0x3bb5f7[0x1],'part':_0x3bb5f7[0x2]};}function dt(_0x1cb139,_0x7c3e8f){const _0x5e5825=_0x7c3e8f['schema'],_0x44be77=_0x7c3e8f['createRange'](_0x1cb139['start']);for(const _0x5dd405 of _0x1cb139['getWalker']()){const {type:_0x5118c3,item:_0x565676,nextPosition:_0x334d62}=_0x5dd405;if('text'===_0x5118c3||_0x5e5825['isObject'](_0x565676)){const _0x3e1397=_0x7c3e8f['createPositionBefore'](_0x565676);_0x44be77['isCollapsed']&&(_0x44be77['start']=_0x3e1397),_0x44be77['end']=_0x334d62;}}return _0x44be77;}function mt(_0x4c6993){return'comment'===er(_0x4c6993['name'])['group'];}var xt='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M4\x201.5h12A3.5\x203.5\x200\x200\x201\x2019.5\x205v8l-.005.192a3.5\x203.5\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.371-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.271-2.63l-.062-.07H4A3.5\x203.5\x200\x200\x201\x20.5\x2013V5A3.5\x203.5\x200\x200\x201\x204\x201.5ZM4\x203a2\x202\x200\x200\x200-2\x202v8a2\x202\x200\x200\x200\x202\x202h6.924a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L14.962\x2015H16a2\x202\x200\x200\x200\x202-2V5a2\x202\x200\x200\x200-2-2H4Z\x22/><path\x20d=\x22M9.75\x205a.75.75\x200\x200\x200-.75.75v2.5H6.5a.75.75\x200\x200\x200\x200\x201.5H9v2.5a.75.75\x200\x200\x200\x201.5\x200v-2.5H13a.75.75\x200\x200\x200\x200-1.5h-2.5v-2.5A.75.75\x200\x200\x200\x209.75\x205Z\x22/></svg>\x0a';class i extends _0x2ad286{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,P,N];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x543acb=this['editor'],_0xcb9890=_0x543acb['plugins']['get'](o),_0x59643a=_0x543acb['plugins']['get'](r),_0xf3cc2e=_0x543acb['plugins']['get'](N),_0x490727=_0x543acb['plugins']['get'](P);_0x543acb['ui']['componentFactory']['add']('comment',()=>{const _0x54aaa7=this['_createUIButton'](_0xdf0cec);return _0x54aaa7['tooltip']=!0x0,_0x54aaa7;}),_0x543acb['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x2444af)),_0x490727['addSourceCollector'](()=>{const _0x32c82d=[];for(const [_0x44e4a4,_0x7c76e7]of _0xcb9890['_threadToController']){const _0x530e5a=_0x59643a['getAllMarkersForId'](_0x44e4a4['id']),_0x557825=_0x530e5a['map'](_0x51b964=>_0x51b964['getRange']());_0x530e5a['length']>0x0&&_0x32c82d['push']([_0x7c76e7['view'],_0x557825]);}return _0x32c82d;}),this['listenTo'](_0xf3cc2e,'change:activeAnnotations',(_0x5e1cbc,_0x277228,_0x3f9a9a)=>{const _0x16fcd9=Array['from'](_0x3f9a9a)['map'](_0x5ea181=>_0x5ea181['innerView'])['find'](_0x56e702=>_0xcb9890['_viewToController']['has'](_0x56e702));if(!_0x16fcd9)return void(_0x59643a['activeMarker']=null);const _0x4444cf=_0xcb9890['_viewToController']['get'](_0x16fcd9)['model']['id'],_0x4336ef='comment:'+_0x4444cf;_0x4444cf&&_0x59643a['hasMarkerForId'](_0x4444cf)?_0x59643a['activeMarker']=_0x4336ef:_0x59643a['activeMarker']&&(_0x59643a['activeMarker']=null);}),this['listenTo'](_0xcb9890,'removeCommentThread',(_0x1c6410,{threadId:_0x40a666,isFromAdapter:_0x1f1aa9})=>{!_0x1f1aa9&&_0x543acb['ui']['focusTracker']['isFocused']&&_0x59643a['hasMarkerForId'](_0x40a666)&&_0x543acb['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0xcb9890,'addComment',(_0x1f07c2,{threadId:_0x2b4855,isFromAdapter:_0x275e16})=>{if(_0x275e16||!_0x59643a['hasMarkerForId'](_0x2b4855)||!_0xcb9890['hasCommentThread'](_0x2b4855))return;0x1===_0xcb9890['getCommentThread'](_0x2b4855)['length']&&(_0x543acb['editing']['view']['focus'](),_0x1f07c2['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x724d2c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5613bf;for(const _0x314f2e in _0x724d2c){const _0xdab105=_0x314f2e,_0x284013=_0x724d2c[_0xdab105];if('commentsLicenseKeyValid'==_0x284013||'commentsLicenseKeyInvalid'==_0x284013||'commentsLicenseKeyExpired'==_0x284013||'commentsLicenseKeyDomainLimit'==_0x284013||'commentsLicenseKeyNotAllowed'==_0x284013||'commentsLicenseKeyEvaluationLimit'==_0x284013||'commentsLicenseKeyTrialLimit'==_0x284013||'commentsLicenseKeyDevelopmentLimit'==_0x284013||'commentsLicenseKeyUsageLimit'==_0x284013){delete _0x724d2c[_0xdab105],_0x5613bf=_0x284013,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x5613bf&&_0x724d2c['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x5613bf&&_0x724d2c['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x5613bf&&_0x724d2c['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x5613bf&&_0x724d2c['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x5613bf&&_0x724d2c['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x5613bf&&_0x724d2c['_showLicenseError']('trialLimit'),'commentsLicenseKeyDevelopmentLimit'==_0x5613bf&&_0x724d2c['_showLicenseError']('developmentLimit'),'commentsLicenseKeyUsageLimit'==_0x5613bf&&_0x724d2c['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x5a1f56){const _0x54bcf8=this['editor'],_0xe31144=new _0x5a1f56(_0x54bcf8['locale']),_0x55f78c=_0x54bcf8['commands']['get']('addCommentThread');return _0xe31144['set']({'label':S(_0x54bcf8['locale'],'Comment'),'icon':xt}),_0xe31144['bind']('isEnabled')['to'](_0x55f78c),this['listenTo'](_0xe31144,'execute',()=>_0x55f78c['execute']()),_0xe31144;}}class s extends _0x2ad286{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x40e443){super(_0x40e443),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x498595,_0xd00b22,_0x4ad15b)=>{_0x4ad15b?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0xb9e9be,_0x33398d]of this['editor']['commands'])_0x33398d['affectsData']&&'addCommentThread'!==_0xb9e9be&&_0x33398d['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0x27c2dd=this['editor']['editing']['view']['document'];this['listenTo'](_0x27c2dd,'cut',_0x3c89f3=>_0x3c89f3['stop'](),{'priority':'highest'}),this['listenTo'](_0x27c2dd,'clipboardInput',_0x2a1f1e=>_0x2a1f1e['stop'](),{'priority':'highest'}),this['listenTo'](_0x27c2dd,'delete',_0x2c60f0=>_0x2c60f0['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x2e8caf,_0x523a8d]of this['editor']['commands'])_0x523a8d['affectsData']&&'addCommentThread'!==_0x2e8caf&&_0x523a8d['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x17f52f{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f81ed){super(_0x2f81ed),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x4a4e28=this['context']['plugins']['get'](N);this['listenTo'](_0x4a4e28,'_activateAnnotation',(_0x4c3f52,_0x5b459a)=>{for(const _0x4668f3 of this['activeUIs']){const _0x1f7ba1=this['_uis']['get'](_0x4668f3);(0x0,this['_uisData']['get'](_0x4668f3)['filter'])(_0x5b459a)&&_0x1f7ba1['setActiveAnnotation'](_0x5b459a);}}),this['listenTo'](_0x4a4e28,'_deactivateAllAnnotations',()=>{for(const _0x4dc132 of this['activeUIs']){this['_uis']['get'](_0x4dc132)['setActiveAnnotation'](null);}}),this['listenTo'](_0x4a4e28['_visibleAnnotations'],'add',(_0x167a25,_0x10d77d)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x10d77d);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x5580ce){return this['activeUIs']['has'](_0x5580ce);}['activate'](_0x239966,_0x45a38c=()=>!0x0){const _0x45abf0=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x239966))throw new _0x2f1633('annotationsuis-missing-ui',this,{'uiName':_0x239966});this['isActive'](_0x239966)&&this['deactivate'](_0x239966),this['activeUIs']['add'](_0x239966);const _0x305a9e=new x();!function({source:_0x527dad,target:_0x5190e6,filter:_0x19ec96}){for(const _0x2b43e8 of _0x527dad)_0x19ec96(_0x2b43e8)&&_0x5190e6['add'](_0x2b43e8);_0x5190e6['listenTo'](_0x527dad,'add',(_0x3e54d0,_0x4b523e)=>{_0x19ec96(_0x4b523e)&&_0x5190e6['add'](_0x4b523e);}),_0x5190e6['listenTo'](_0x527dad,'remove',(_0x1e5bab,_0x2f3c98)=>{_0x5190e6['has'](_0x2f3c98)&&_0x5190e6['remove'](_0x2f3c98);});}({'source':_0x45abf0['_visibleAnnotations'],'target':_0x305a9e,'filter':_0x45a38c}),this['_uisData']['set'](_0x239966,{'collection':_0x305a9e,'filter':_0x45a38c});const _0x225725=this['_uis']['get'](_0x239966);_0x225725['attach'](_0x305a9e),this['listenTo'](_0x225725,'change:activeAnnotation',(_0x187346,_0x578918,_0xe8ae7,_0x533bfa)=>{_0x533bfa&&_0x45abf0['_removeActiveAnnotation'](_0x533bfa),_0xe8ae7&&_0x45abf0['_addActiveAnnotation'](_0xe8ae7);});}['deactivate'](_0x289f5f){if(this['activeUIs']['delete'](_0x289f5f),!this['_uis']['has'](_0x289f5f))throw new _0x2f1633('annotationsuis-missing-ui',this,{'uiName':_0x289f5f});const _0x4d3745=this['_uis']['get'](_0x289f5f);_0x4d3745['detach'](),this['stopListening'](_0x4d3745),this['_uisData']['get'](_0x289f5f)['collection']['destroy'](),this['_uisData']['delete'](_0x289f5f);}['switchTo'](_0x2b5441){if(!this['_uis']['has'](_0x2b5441))throw new _0x2f1633('annotationsuis-missing-ui',this,{'uiName':_0x2b5441});const _0x3c1f17=this['context']['plugins']['get'](N),_0x42e85e=Array['from'](_0x3c1f17['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x2b5441);const _0x434d65=this['_uis']['get'](_0x2b5441);_0x434d65['setActiveAnnotation'](_0x42e85e),_0x434d65['_setSelectedAnnotations']&&_0x42e85e&&_0x434d65['_setSelectedAnnotations']([_0x42e85e]);}['deactivateAll'](){for(const _0x45317e of this['activeUIs'])this['deactivate'](_0x45317e);}['register'](_0x2d8af7,_0x4bbd7e){if(this['_uis']['has'](_0x2d8af7))throw new _0x2f1633('annotationsuis-register-already-registered');if('function'!=typeof _0x4bbd7e['attach']||'function'!=typeof _0x4bbd7e['detach']||'function'!=typeof _0x4bbd7e['setActiveAnnotation'])throw new _0x2f1633('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x2d8af7,_0x4bbd7e);}['refilterAnnotations'](){const _0x46e9ab=this['context']['plugins']['get'](N)['collection'],_0x1a2fdc=new Map(),_0x28590b=Array['from'](this['activeUIs']);for(const _0xd55edf of this['activeUIs']){const _0x11febc=this['_uisData']['get'](_0xd55edf)['collection'];for(const _0x3a4ebf of _0x11febc)_0x1a2fdc['set'](_0x3a4ebf,_0xd55edf);}for(const _0x139c19 of _0x46e9ab){const _0x206ce6=_0x1a2fdc['get'](_0x139c19);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x139c19);const _0x57813d=_0x28590b['find'](_0x40915c=>this['_uisData']['get'](_0x40915c)['filter'](_0x139c19));_0x206ce6!==_0x57813d&&(_0x206ce6&&this['_uisData']['get'](_0x206ce6)['collection']['remove'](_0x139c19),_0x57813d&&this['_uisData']['get'](_0x57813d)['collection']['add'](_0x139c19));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xe4a0a4){const _0x3fd349=[];for(const _0x5d526d of this['activeUIs']){(0x0,this['_uisData']['get'](_0x5d526d)['filter'])(_0xe4a0a4)&&_0x3fd349['push'](_0x5d526d);}if(_0x3fd349['length']>0x1)throw new _0x2f1633('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x3fd349,'annotationType':_0xe4a0a4['type']});}}const he=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x5066f3){super(_0x5066f3);const _0xdbb007=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 _0x5abdce(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0xdbb007['to']('class')],'style':{'minHeight':_0xdbb007['to']('minHeight',_0x3fb074=>'number'==typeof _0x3fb074?he(_0x3fb074+0xa):null)},'dir':_0x5066f3['uiLanguageDirection'],'role':'application','aria-label':S(_0x5066f3,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x5066f3,'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',_0x3dabe1=>{this['_updateItemPositionInFocusables'](_0x3dabe1['source']);}),this['list']['forEach'](_0x1c3e2f=>{this['focusTracker']['add'](_0x1c3e2f['element']),this['_updateItemPositionInFocusables'](_0x1c3e2f);}),this['list']['on']('change',(_0x1f98b1,_0x49614c)=>{for(const _0x4abd8a of _0x49614c['removed'])this['focusTracker']['remove'](_0x4abd8a['element']),this['focusables']['remove'](_0x4abd8a);for(const _0x4b41c7 of _0x49614c['added'])this['focusTracker']['add'](_0x4b41c7['element']),this['_updateItemPositionInFocusables'](_0x4b41c7);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x3a2298){const _0x27d708=this['focusables']['getIndex'](_0x3a2298);let _0x237f2e,_0x511aad;for(const _0x575a91 of this['focusables'])if(_0x3a2298['top']<_0x575a91['top']){_0x237f2e=_0x575a91;break;}if(_0x511aad=_0x237f2e?this['focusables']['getIndex'](_0x237f2e):this['focusables']['length'],-0x1!==_0x27d708){if(_0x27d708===_0x511aad-0x1)return;this['focusables']['remove'](_0x3a2298),_0x511aad=_0x237f2e?this['focusables']['getIndex'](_0x237f2e):this['focusables']['length'];}this['focusables']['add'](_0x3a2298,_0x511aad);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x241b96){super(_0x241b96),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x4393d7,_0x43ea52)=>_0x4393d7+_0x43ea52),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x3ae7ad=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x3ae7ad['to']('isAnimationDisabled',_0x264ac3=>_0x264ac3?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x3ae7ad['to']('top',_0x16794f=>qt(_0x16794f))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0xcf9a39=this['element']['clientHeight'];_0xcf9a39&&(this['height']=_0xcf9a39);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x17f52f{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f3d6d){super(_0x1f3d6d),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 _0x405e4e=this['context']['config']['get']('sidebar.container');_0x405e4e&&this['setContainer'](_0x405e4e);}['setContainer'](_0x391aeb){if(!y(_0x391aeb))throw new _0x2f1633('sidebar-setcontainer-invalid-element');this['container']=_0x391aeb;}['_attachToContainer']({viewClass:_0x1f3a60='',spaceBetweenItems:_0xcb9d31=0x19}={}){if(!y(this['container']))throw new _0x2f1633('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x1f3a60,this['_spaceBetweenItems']=_0xcb9d31;}['rearrange']({removedAnnotation:_0x71bf9b,previousAnnotation:_0x3328ba,nextAnnotation:_0x47605d}){const _0xbb9d15=this['getSidebarItemView'](_0x71bf9b);this['view']['list']['remove'](_0xbb9d15),this['_destroySidebarItemView'](_0x71bf9b),_0x3328ba&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3328ba)),_0x47605d&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x47605d)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x2ca405,activatedAnnotation:_0x1aba5d,disableAnimationOnActivatedAnnotation:_0x53d16f}){if(this['_activeAnnotation']=_0x1aba5d,_0x2ca405){_0x2ca405['isActive']=!0x1;const _0x1982dd=this['getSidebarItemView'](_0x2ca405);_0x1982dd&&_0x53d16f&&(_0x1982dd['isAnimationDisabled']=!0x1);}if(_0x1aba5d){const _0x2a8e9f=this['getSidebarItemView'](_0x1aba5d);_0x2a8e9f&&(_0x1aba5d['isActive']=!0x0,_0x53d16f&&(_0x2a8e9f['isAnimationDisabled']=!0x0,_0x2a8e9f['top']+=0x1),this['_alignToTargetRect'](_0x2a8e9f));}}['_detachFromContainer'](_0x176a17){if(this['view']['element']['remove'](),_0x176a17){for(const _0x3f91ac of _0x176a17)this['_destroySidebarItemView'](_0x3f91ac);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x28792c,_0x52dd8f){_0x52dd8f||(_0x52dd8f=_0x28792c['view']);const _0x5a45e8=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x5a45e8,_0x28792c),this['_annotationToSidebarItemView']['set'](_0x28792c,_0x5a45e8),_0x5a45e8['content']['add'](_0x52dd8f),this['listenTo'](_0x28792c['view'],'change:targetRect',(_0x2c5c4f,_0x5365f7,_0x644491)=>{const _0x4fa6f3=this['_getTargetTop'](_0x28792c,_0x644491);_0x5a45e8['_targetTop']!=_0x4fa6f3&&(_0x5a45e8['_targetTop']=_0x4fa6f3,this['_setItemTop'](_0x5a45e8,_0x4fa6f3));}),this['listenTo'](_0x5a45e8,'change:top',()=>{this['_recalculate'](_0x5a45e8,'top');}),this['listenTo'](_0x5a45e8,'change:bottom',()=>{this['_recalculate'](_0x5a45e8,'bottom');}),this['_alignToTargetRect'](_0x5a45e8);const _0x314a25=this['_getItemBefore'](_0x5a45e8);if(_0x314a25)this['_alignAfterItem'](_0x314a25,_0x5a45e8)||this['_alignToTargetRect'](_0x5a45e8);else this['_alignToTargetRect'](_0x5a45e8);return this['_updateLastItem'](),this['view']['list']['add'](_0x5a45e8),_0x5a45e8;}['_alignForTopChange'](_0x1d9c4a){if(!_0x1d9c4a['content']['length'])return;const _0x2078b2=this['_getItemBefore'](_0x1d9c4a);if(!_0x2078b2)return;const _0x2e4656=this['_sidebarItemViewToAnnotation']['get'](_0x2078b2),_0x2fc612=this['_activeAnnotation'];_0x2fc612&&_0x2fc612===_0x2e4656?this['_alignAfterItem'](_0x2078b2,_0x1d9c4a):this['_alignBeforeItem'](_0x1d9c4a,_0x2078b2);}['_alignForBottomChange'](_0x196a83){if(!_0x196a83['content']['length'])return;const _0x541644=this['_getItemAfter'](_0x196a83);if(!_0x541644)return;const _0x268723=this['_sidebarItemViewToAnnotation']['get'](_0x541644),_0x48b3e9=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0xb41b04=this['_activeAnnotation'];_0xb41b04&&_0xb41b04===_0x268723&&_0x48b3e9?(this['_alignBeforeItem'](_0x541644,_0x196a83),this['_alignAfterItem'](_0x196a83,_0x541644)):_0xb41b04&&_0xb41b04===_0x268723?this['_alignBeforeItem'](_0x541644,_0x196a83):this['_alignAfterItem'](_0x196a83,_0x541644);}['_recalculate'](_0xa6a657,_0x3fc43f){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x309058,changedProp:_0x248aa5}of this['_recalculateBuffer'])'top'===_0x248aa5?this['_alignForTopChange'](_0x309058):this['_alignForBottomChange'](_0x309058);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0xa6a657,'changedProp':_0x3fc43f});}['getSidebarItemView'](_0x40d4f9){return this['_annotationToSidebarItemView']['get'](_0x40d4f9);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x5d9dd6){const _0x6f6877=this['getSidebarItemView'](_0x5d9dd6);this['stopListening'](_0x6f6877),this['stopListening'](_0x5d9dd6['view']),_0x6f6877['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x5d9dd6),this['_sidebarItemViewToAnnotation']['delete'](_0x6f6877);}['_createSidebarView'](){const _0x38e890=new V(this['context']['locale']);return _0x38e890['render'](),this['on']('change:_lastItem',(_0x132ede,_0x5a9599,_0x5e2dc1,_0x137daf)=>{_0x137daf&&_0x38e890['unbind']('minHeight'),_0x5e2dc1?_0x38e890['bind']('minHeight')['to'](_0x5e2dc1,'bottom'):_0x38e890['minHeight']=null;}),_0x38e890;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x30e05a){const _0x6f77=this['_sidebarItemViewToAnnotation']['get'](_0x30e05a),_0x3d51bf=_0x6f77&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x6f77)-0x1);return _0x3d51bf&&this['getSidebarItemView'](_0x3d51bf)||null;}['_getItemAfter'](_0x34f2da){const _0x2d5edb=this['_sidebarItemViewToAnnotation']['get'](_0x34f2da),_0x2b9779=_0x2d5edb&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x2d5edb)+0x1);return _0x2b9779&&this['getSidebarItemView'](_0x2b9779)||null;}['_alignBeforeItem'](_0x512401,_0x204232){_0x512401['updateHeight']();const _0x521998=R(_0x204232['bottom']+this['_spaceBetweenItems'],_0x512401['top']);return!!_0x521998&&(this['_setItemTop'](_0x204232,_0x204232['top']-_0x521998),!0x0);}['_alignAfterItem'](_0x3ea766,_0x4d95af){_0x3ea766['updateHeight']();const _0xd599b9=R(_0x3ea766['bottom']+this['_spaceBetweenItems'],_0x4d95af['top']);return!!_0xd599b9&&(this['_setItemTop'](_0x4d95af,_0x4d95af['top']+_0xd599b9,!0x1),!0x0);}['_alignToTargetRect'](_0x2b132e){const _0x4e9a64=this['_sidebarItemViewToAnnotation']['get'](_0x2b132e);if(!_0x4e9a64||!_0x4e9a64['target']||!_0x4e9a64['targetRect'])return;const _0x19f283=this['_getTargetTop'](_0x4e9a64,_0x4e9a64['targetRect']);this['_setItemTop'](_0x2b132e,_0x19f283);}['_getTargetTop'](_0x2b1099,_0x435881){if(null===_0x435881)return 0x0;if(_0x2b1099['target']instanceof _0x16256)return _0x435881['top'];{const _0x222881=new _0x16256(this['view']['element'])['top'];return _0x435881['top']-_0x222881;}}['_setItemTop'](_0x77a9d8,_0x2d95e1,_0x39b5f7=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x39b5f7&&(_0x2d95e1=Math['max'](_0x2d95e1,this['_getMaxAvailableTop'](_0x77a9d8))),_0x77a9d8['top']=_0x2d95e1;}['_getMaxAvailableTop'](_0x453e76){let _0x814d9a=this['_getItemBefore'](_0x453e76),_0x355677=0x0;for(;_0x814d9a;)_0x814d9a['updateHeight'](),_0x355677+=this['_spaceBetweenItems']+_0x814d9a['height'],_0x814d9a=this['_getItemBefore'](_0x814d9a);return _0x355677;}}function R(_0x3be11e,_0x5e4919){return Math['max'](_0x3be11e-_0x5e4919,0x0);}function y(_0x4f3fa4){return null!==_0x4f3fa4&&'object'==typeof _0x4f3fa4&&0x1===_0x4f3fa4['nodeType'];}class e extends _0x17f52f{['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(_0x3516d3){super(_0x3516d3),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x3040b9(),this['_refreshPositioningDebounced']=_0x2ab14a(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x253914=this['context']['plugins']['get'](M),_0x4cab65=this['context']['plugins']['get'](z);_0x253914['register']('wideSidebar',this),_0x4cab65['container']&&_0x253914['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x9cbe49){if(_0x9cbe49===this['activeAnnotation'])return;const _0x1ac2b4=this['context']['plugins']['get'](z);_0x1ac2b4['_activeAnnotation']=_0x9cbe49;const _0x1adc4f=this['activeAnnotation'];_0x1ac2b4['refresh']({'blurredAnnotation':_0x1adc4f,'activatedAnnotation':_0x9cbe49}),this['activeAnnotation']=_0x9cbe49;}['attach'](_0x2539d5){this['annotations']=_0x2539d5;const _0x3f9aac=this['context']['plugins']['get'](z);if(_0x3f9aac['_annotations']=_0x2539d5,this['isAttached'])throw new _0x2f1633('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x3f9aac,'set:container',()=>{this['detach'](),this['listenTo'](_0x3f9aac,'change:container',_0x501744=>{_0x501744['off'](),this['attach'](_0x2539d5);});}),_0x3f9aac['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x47ba15=_0x1414ee=>{_0x1414ee['updateTargetRect'](),_0x3f9aac['addAnnotation'](_0x1414ee);};for(const _0x2f2946 of _0x2539d5)_0x47ba15(_0x2f2946);this['listenTo'](_0x2539d5,'add',(_0x201738,_0x445f7e)=>{_0x47ba15(_0x445f7e);}),this['listenTo'](_0x2539d5,'remove',(_0x29f40f,_0x218ef4,_0x555f3b)=>{_0x3f9aac['rearrange']({'removedAnnotation':_0x218ef4,'previousAnnotation':_0x2539d5['get'](_0x555f3b-0x1),'nextAnnotation':_0x2539d5['get'](_0x555f3b+0x1)}),_0x218ef4===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x2539d5,'focus',(_0x60d9c4,_0x16fc8f)=>{this['setActiveAnnotation'](_0x16fc8f);}),this['listenTo'](_0x2539d5,'blur',()=>{this['setActiveAnnotation'](null);});const _0x555be8=this['context']instanceof _0x1dbc00?this['context']['editors']:new _0x3040b9([this['context']]);for(const _0x287a4d of _0x555be8)this['_integrateWithEditorAnnotations'](_0x287a4d);this['listenTo'](_0x555be8,'add',(_0x99a88e,_0x3d6be9)=>{this['listenTo'](_0x3d6be9,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x3d6be9);});}),this['listenTo'](_0x555be8,'remove',(_0x24c1a5,_0x262b7f)=>{_0x262b7f['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x262b7f['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x2f1633('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x57a8aa=this['context']['plugins']['get'](z);_0x57a8aa['_detachFromContainer'](this['annotations']),this['stopListening'](_0x57a8aa),this['stopListening'](this['annotations']),this['context']instanceof _0x1dbc00&&this['stopListening'](this['context']['editors']);for(const _0x1c2ee7 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x1c2ee7);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x3fcab0){if(!_0x3fcab0['plugins']['has']('EditorAnnotations'))return;const _0x16872f=_0x3fcab0['plugins']['get']('EditorAnnotations'),_0x3b2cf7=()=>{const _0xdd69de=_0x16872f['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0xdd69de[0x0]||null);};this['listenTo'](_0x16872f,'refresh',_0x3b2cf7),this['listenTo'](_0x16872f,'blur',(_0xad203a,{isAnnotationTracked:_0x68be1c})=>{this['activeAnnotation']&&_0x68be1c(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x16872f,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x346339=>{_0x16872f['hasDomSelection']()&&(_0x3b2cf7(),_0x346339['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x16872f);}['_destroyEditorAnnotationsIntegration'](_0x2de417){this['stopListening'](_0x2de417),this['_editorAnnotations']['remove'](_0x2de417);}}class D extends _0xdf0cec{['counterView'];constructor(_0x35576f){super(_0x35576f);const _0x5031b1=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0xd823e,_0xb1277e)=>_0xd823e?'...':_0xb1277e['toString']()),this['set']('annotationType',''),this['icon']=xt,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x5031b1['to']('annotationType',_0x46c206=>'ck-annotation-counter__badge--'+_0x46c206),_0x5031b1['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x5031b1['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x17f52f{['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(_0x5aee32){super(_0x5aee32),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0xcdccb0),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x3040b9(),this['_refreshPositioningDebounced']=_0x2ab14a(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x14a569(this['context']['locale']),this['balloonPanelView']=new _0x39be82(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x4ac3a6){this['annotations']=_0x4ac3a6;const _0x14d6fd=this['context']['plugins']['get'](z),_0x3d4854=this['balloonPanelView'];if(_0x14d6fd['_annotations']=_0x4ac3a6,this['isAttached'])throw new _0x2f1633('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x14d6fd,'set:container',()=>{this['detach'](),this['listenTo'](_0x14d6fd,'change:container',_0x236ae6=>{_0x236ae6['off'](),this['attach'](_0x4ac3a6);});}),_0x14d6fd['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x55bab3=_0x255a43=>{const _0x6417f6=new D(this['context']['locale']);_0x14d6fd['addAnnotation'](_0x255a43,_0x6417f6),this['_annotationToNarrowView']['set'](_0x255a43,_0x6417f6),_0x6417f6['bind']('isDirty','annotationType','number')['to'](_0x255a43['view'],'isDirty','type','length'),_0x6417f6['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x3d4854['content']['first']!==_0x255a43['view']?(this['_showBalloon'](_0x255a43),_0x255a43['view']['element']['focus'](),this['setActiveAnnotation'](_0x255a43)):this['setActiveAnnotation'](null);});};for(const _0xea8d7 of _0x4ac3a6)_0x55bab3(_0xea8d7);this['listenTo'](_0x4ac3a6,'add',(_0x3d5a6c,_0x1c3e55)=>{_0x55bab3(_0x1c3e55);}),this['listenTo'](_0x4ac3a6,'remove',(_0x215f0c,_0x50e28e,_0x19fff5)=>{this['_annotationToNarrowView']['get'](_0x50e28e)['destroy'](),this['_annotationToNarrowView']['delete'](_0x50e28e),_0x14d6fd['rearrange']({'removedAnnotation':_0x50e28e,'previousAnnotation':_0x4ac3a6['get'](_0x19fff5-0x1),'nextAnnotation':_0x4ac3a6['get'](_0x19fff5+0x1)}),_0x50e28e===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x4ac3a6,'focus',(_0x57befe,_0x3ef459)=>{this['setActiveAnnotation'](_0x3ef459);}),this['listenTo'](_0x4ac3a6,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x118d3c,_0x11aafa)=>{_0x11aafa['keyCode']===_0x4832b0['esc']&&_0x3d4854['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x3d4854['content']['first']),this['_hideBalloon'](),_0x11aafa['stopPropagation'](),_0x11aafa['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x59a558,_0x2777a8)=>{const _0x25e287=_0x2777a8['target'];_0x3d4854['isVisible']&&_0x3d4854['element']['contains'](_0x25e287)||_0x14d6fd['view']['element']['contains'](_0x25e287)||_0x59a558['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x1f9a81=>_0x1f9a81['contains'](_0x25e287))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x208f13=this['context']instanceof _0x1dbc00?this['context']['editors']:new _0x3040b9([this['context']]);for(const _0x467634 of _0x208f13)this['_integrateWithEditorAnnotations'](_0x467634);this['listenTo'](_0x208f13,'add',(_0x278def,_0x1f79ec)=>{this['listenTo'](_0x1f79ec,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x1f79ec);});}),this['listenTo'](_0x208f13,'remove',(_0x481116,_0x3fad12)=>{_0x3fad12['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x3fad12['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x101256){if(_0x101256===this['activeAnnotation'])return;const _0x446091=this['context']['plugins']['get'](z);if(_0x446091['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x101256,'disableAnimationOnActivatedAnnotation':!0x0}),_0x101256)_0x446091['getSidebarItemView'](_0x101256)?this['_showBalloon'](_0x101256):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x101256;}['detach'](){if(!this['isAttached'])throw new _0x2f1633('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x2021e6=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x20ce52=>_0x20ce52['destroy']()),this['_annotationToNarrowView']['clear'](),_0x2021e6['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x1dbc00&&this['stopListening'](this['context']['editors']);for(const _0x368343 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x368343);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'](_0x368964){if(!_0x368964['plugins']['has']('EditorAnnotations'))return;const _0x588b2d=_0x368964['plugins']['get']('EditorAnnotations'),_0x30652a=this['context']['plugins']['get'](z),_0x29cbeb=this['annotations'],_0xc7ca77=this['balloonPanelView'],_0x5c679e=()=>{const _0x3f14b6=_0x588b2d['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x3f14b6),this['setActiveAnnotation'](_0x3f14b6[0x0]||null);};this['listenTo'](_0x588b2d,'refresh',_0x5c679e),this['listenTo'](_0x588b2d,'blur',(_0x225f68,{isAnnotationTracked:_0x54d685})=>{this['activeAnnotation']&&_0x54d685(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x588b2d,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x29cbeb,'blur',_0x45058d=>{_0x588b2d['hasDomSelection']()&&_0x45058d['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x1c205b,_0x2cabaa)=>{const _0xec8531=_0x2cabaa['target'];_0xc7ca77['isVisible']&&_0xc7ca77['element']['contains'](_0xec8531)||_0x30652a['view']['element']['contains'](_0xec8531)||this['activeAnnotation']&&_0x588b2d['hasDomSelection']()&&(_0x5c679e(),_0x1c205b['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x588b2d);}['_destroyEditorAnnotationsIntegration'](_0x1c5526){_0x1c5526&&(this['stopListening'](_0x1c5526),this['_editorAnnotations']['remove'](_0x1c5526));}['_setSelectedAnnotations'](_0x207950){for(const _0x13f269 of this['_selectedAnnotations'])_0x207950['includes'](_0x13f269)||this['_manuallyClosedAnnotationViews']['delete'](_0x13f269['view']);this['_selectedAnnotations']=_0x207950;}['_refreshPositioning'](){const _0x1d95f5=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x1d95f5['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x2bc590){if(this['_manuallyClosedAnnotationViews']['has'](_0x2bc590['view']))return;const _0x24e57e=this['balloonPanelView']['content']['first'];_0x24e57e!==_0x2bc590['view']?(_0x24e57e&&this['_detachListeners'](_0x24e57e),this['_attachListeners'](_0x2bc590['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x2bc590['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x5b6685=this['balloonPanelView']['content']['first'],_0x9bf786=_0x5b6685&&this['annotations']['getByView'](_0x5b6685);if(!_0x9bf786||!this['_annotationToNarrowView']['has'](_0x9bf786))return;const _0x208d71=this['_annotationToNarrowView']['get'](_0x9bf786)['element'],_0x308412=(function(){const _0x18d4a6=_0x39be82['defaultPositions'];return[_0x18d4a6['southArrowNorthEast'],_0x18d4a6['northArrowSouthEast'],_0x18d4a6['southArrowNorth'],_0x18d4a6['northArrowSouth'],_0x18d4a6['southArrowNorthWest'],_0x18d4a6['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x208d71,'positions':_0x308412});}['_hideBalloon'](){const _0x5835ad=this['balloonPanelView'],_0x161f69=_0x5835ad['content']['first'];_0x161f69&&(this['_detachListeners'](_0x161f69),_0x5835ad['unpin'](),_0x5835ad['content']['clear']());}['_attachListeners'](_0x5444ce){this['listenTo'](_0x5444ce,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x5444ce,'Esc',(_0x559c09,_0x4c09bb)=>{this['_manuallyClosedAnnotationViews']['add'](_0x5444ce),this['_hideBalloon'](),_0x4c09bb();});}['_detachListeners'](_0x3ede23){this['stopListening'](_0x3ede23);}}class c extends _0x2ad286{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x2ea456,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12bef8){super(_0x12bef8),_0x12bef8['editing']['view']['addObserver'](_0x258d07),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x12bef8['plugins']['get'](_0x2ea456),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x2d1b36=this['editor']['plugins']['get'](M);_0x2d1b36['context']===this['editor']&&(_0x2d1b36['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x40d776,_0x3f1710)=>{const _0x2c56bc=this['_balloon'];if(this['isAttached']&&_0x2c56bc['visibleView']){const _0x44673e=this['annotations']['getByView'](_0x2c56bc['visibleView']);_0x44673e&&this['_closeAnnotation'](_0x44673e),_0x3f1710();}}));}['afterInit'](){const _0x38c92c=this['editor']['plugins']['get'](M);_0x38c92c['context']===this['editor']&&(_0x38c92c['hasActive']()||_0x38c92c['switchTo']('inline'));}['setActiveAnnotation'](_0x498d10){_0x498d10!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x498d10&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x498d10)&&this['_addAnnotationToBalloon'](_0x498d10,!0x0),_0x498d10['isActive']=!0x0),_0x498d10||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x498d10);}['attach'](_0x397d33){this['annotations']=_0x397d33;const _0x2bd57a=this['editor']['plugins']['get'](M),_0x12335e=this['_balloon'];if(this['isAttached'])throw new _0x2f1633('inlineannotations-attach-already-attached',this);if(_0x2bd57a['context']!==this['editor'])throw new _0x2f1633('inlineannotations-not-allowed-with-context',this);const _0x562bf4=this['editor']['plugins']['get'](P);this['listenTo'](_0x562bf4,'refresh',()=>{const _0x38c6ec=_0x562bf4['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x37e104,_0x2932ab;!this['_forceRefresh']&&(_0x37e104=_0x38c6ec,_0x2932ab=this['_selectedAnnotations'],_0x37e104['length']===_0x2932ab['length']&&_0x37e104['every'](_0x5b06ae=>_0x2932ab['includes'](_0x5b06ae)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x38c6ec),this['setActiveAnnotation'](_0x38c6ec[0x0]||null));}),this['listenTo'](_0x562bf4,'blur',(_0x206ad9,{isAnnotationTracked:_0x390a96})=>{this['activeAnnotation']&&_0x390a96(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x257963,_0x2663eb,_0x4d6c6a)=>{_0x4d6c6a||this['setActiveAnnotation'](null);}),this['listenTo'](_0x397d33,'remove',(_0x8e48bf,_0x2c7af0)=>{this['_removeAnnotationFromBalloon'](_0x2c7af0),_0x2c7af0===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x12335e,'change:visibleView',(_0x4086f7,_0x1afd13,_0x5b66c6,_0x461b49)=>{_0x461b49&&this['stopListening'](_0x461b49);const _0xd7548e=_0x397d33['getByView'](_0x5b66c6);_0x5b66c6&&_0xd7548e&&(this['listenTo'](_0x5b66c6,'change:height',()=>{_0x12335e['updatePosition']();}),this['listenTo'](_0x5b66c6,'Esc',()=>{this['_closeAnnotation'](_0xd7548e),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0xd7548e&&this['setActiveAnnotation'](_0xd7548e));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x12335e['visibleView']&&(_0x397d33['getByView'](_0x12335e['visibleView'])&&_0x12335e['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 _0x2f1633('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x1744cb of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x1744cb);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x460628){for(const _0x329fe8 of this['_selectedAnnotations'])_0x460628['includes'](_0x329fe8)||this['_manuallyClosed']['delete'](_0x329fe8);for(const _0x57324a of this['annotations'])_0x460628['includes'](_0x57324a)||this['_removeAnnotationFromBalloon'](_0x57324a);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0xba704 of _0x460628)this['_addAnnotationToBalloon'](_0xba704);}this['_selectedAnnotations']=_0x460628;}['_addAnnotationToBalloon'](_0x7fa6ed,_0xb81683=!0x1){this['_manuallyClosed']['has'](_0x7fa6ed)||(this['_addedAnnotations']['has'](_0x7fa6ed)||this['_balloon']['hasView'](_0x7fa6ed['view'])||(this['_addedAnnotations']['add'](_0x7fa6ed),this['_balloon']['add']({'stackId':_0x7fa6ed['view']['id'],'view':_0x7fa6ed['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x7fa6ed)}})),_0xb81683&&this['_balloon']['showStack'](_0x7fa6ed['view']['id']));}['_getBalloonTargetForAnnotation'](_0x114f40){const _0x35d09a=_0x114f40['target'],_0x45bd08=this['editor']['editing']['view'],_0x4ff3c5=_0x45bd08['document']['selection']['getFirstRange'](),_0x34342e=_0x45bd08['domConverter']['viewRangeToDom'](_0x4ff3c5);if(_0x34342e['collapse'](!0x0),_0x35d09a){if(_0x35d09a instanceof _0x16256)return _0x35d09a;let _0x143f03=[];for(const _0x2b6880 of _0x35d09a)_0x143f03['push'](...(_0x43be87=_0x2b6880['getClientRects'](),Array['from'](_0x43be87)['map'](DOMRect['fromRect'])));_0x143f03=function(_0x2a1407){const _0x19fdba=[];let _0x19fd37=_0x2a1407[0x0];for(let _0x1f7d10=0x1;_0x1f7d10<_0x2a1407['length'];_0x1f7d10++)b(_0x19fd37,_0x2a1407[_0x1f7d10])?_0x19fd37['width']+=_0x2a1407[_0x1f7d10]['width']:(_0x19fdba['push'](_0x19fd37),_0x19fd37=_0x2a1407[_0x1f7d10]);return _0x19fdba['push'](_0x19fd37),_0x19fdba;}(_0x143f03);const _0x1a33ec=_0x34342e['getBoundingClientRect']();return _0x143f03['find'](_0x58616c=>_0x58616c['top']<=_0x1a33ec['top']&&_0x58616c['bottom']>=_0x1a33ec['bottom']&&_0x58616c['left']<=_0x1a33ec['left']&&_0x58616c['right']>=_0x1a33ec['right'])||_0x143f03[0x0];}var _0x43be87;return _0x114f40['targetRect']||_0x34342e;}['_removeAnnotationFromBalloon'](_0x57902b){this['_addedAnnotations']['has'](_0x57902b)&&this['_balloon']['hasView'](_0x57902b['view'])&&(this['_addedAnnotations']['delete'](_0x57902b),this['_balloon']['remove'](_0x57902b['view']));}['_closeAnnotation'](_0x4ee702){this['_manuallyClosed']['add'](_0x4ee702),this['_removeAnnotationFromBalloon'](_0x4ee702);}}function b(_0x4c05af,_0x589032){return _0x4c05af['top']===_0x589032['top']&&_0x4c05af['bottom']===_0x589032['bottom']&&_0x4c05af['right']===_0x589032['left'];}var Z='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M14\x203.5A3.5\x203.5\x200\x200\x201\x2017.5\x207v6l-.005.192a3.501\x203.501\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.37-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.272-2.63l-.062-.07-4.729-.046a3.5\x203.5\x200\x200\x201-3.5-3.5v-6a3.5\x203.5\x200\x200\x201\x203.5-3.5L14\x203.5ZM3.5\x204.954a2\x202\x200\x200\x200-2\x202v6a2\x202\x200\x200\x200\x202\x202L8.924\x2015a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L12.962\x2015H14a2\x202\x200\x200\x200\x202-2V7a2\x202\x200\x200\x200-2-2L3.5\x204.954Z\x22/><path\x20d=\x22M16.5.5h-10a3.5\x203.5\x200\x200\x200-3.162\x202h1.84A2\x202\x200\x200\x201\x206.5\x202h10a2\x202\x200\x200\x201\x202\x202v8.873a3.502\x203.502\x200\x200\x200\x201.495-2.681L20\x2010V4A3.5\x203.5\x200\x200\x200\x2016.5.5Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M12.013\x207.453a.75.75\x200\x200\x201\x20.034\x201.06l-3.75\x204a.75.75\x200\x200\x201-1.045.048l-2.25-2a.75.75\x200\x200\x201\x20.996-1.122l1.704\x201.515\x203.25-3.467a.75.75\x200\x200\x201\x201.061-.034Z\x22/></svg>\x0a';class tt extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x44e3e4,_0x5a8a17){super(_0x44e3e4),this['set']('isEmpty',!_0x5a8a17['length']),this['focusTracker']=new _0x5abdce(),this['_annotationViews']=_0x5a8a17,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x5a8a17,'focusTracker':this['focusTracker']}),this['listenTo'](_0x5a8a17,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x5a8a17,'remove',(_0x53de8f,_0x673b28)=>{_0x673b28['isActive']&&this['focus'](),_0x5a8a17['length']||(this['isEmpty']=!0x0);});const _0x1147f9=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x44e3e4,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x5a8a17},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x1147f9['if']('isEmpty','ck-hidden',_0x4fb058=>!_0x4fb058)]},'children':[{'text':S(_0x44e3e4,'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 _0x48dc19 of this['_annotationViews'])this['focusTracker']['add'](_0x48dc19['element']);this['_annotationViews']['on']('change',(_0xcea87e,{added:_0x429153,removed:_0xbe8df0})=>{for(const _0xc146ec of _0x429153)this['focusTracker']['add'](_0xc146ec['element']);for(const _0xd4f6fb of _0xbe8df0)this['focusTracker']['remove'](_0xd4f6fb['element']);});}}class f extends _0x17f52f{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x5c98cd){super(_0x5c98cd),this['archivedThreads']=new _0x3040b9();}['init'](){const _0x355551=this['context'],_0xfe6b43=_0x355551['plugins']['get'](o),_0x2c293b=_0x355551['plugins']['get'](N);this['listenTo'](_0xfe6b43,'addCommentThread',(_0x2787e7,{threadId:_0xdbd566})=>{const _0x966e62=_0xfe6b43['getCommentThread'](_0xdbd566);_0x966e62['archivedAt']&&this['archivedThreads']['add'](_0x966e62,this['_calculatePosition'](_0x966e62['archivedAt'])),this['listenTo'](_0x966e62,'change:archivedAt',(_0x36ce82,_0x4a9f9b,_0x3ea401)=>{_0x3ea401?this['archivedThreads']['has'](_0x966e62)||this['archivedThreads']['add'](_0x966e62,this['_calculatePosition'](_0x966e62['archivedAt'])):this['archivedThreads']['has'](_0x966e62)&&this['archivedThreads']['remove'](_0x966e62);});}),this['listenTo'](_0xfe6b43,'removeCommentThread',(_0x385f68,{threadId:_0x13e58d})=>{const _0x1de7b0=_0xfe6b43['getCommentThread'](_0x13e58d);this['stopListening'](_0x1de7b0),this['archivedThreads']['has'](_0x1de7b0)&&this['archivedThreads']['remove'](_0x1de7b0);},{'priority':'highest'}),this['listenTo'](_0x2c293b['collection'],'focus',(_0x41f3fb,_0x132f45)=>{_0x132f45['isVisible']||(_0x132f45['isActive']=!0x0,_0x2c293b['activate'](_0x132f45));});}['_calculatePosition'](_0x42d815){const _0x24846e=[...this['archivedThreads']]['findIndex'](_0x811345=>_0x811345['archivedAt']<_0x42d815);return _0x24846e>-0x1?_0x24846e:this['archivedThreads']['length'];}}class a extends _0x2ad286{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x123aad];}constructor(_0x481e78){super(_0x481e78),this['annotationViews']=new _0x3d3c53(),this['_pendingThreads']=[];}['init'](){const _0x55361e=this['editor'],_0x203d2d=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x55361e['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0xdf0cec,!0x0)),_0x55361e['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x38907e=this['_createCommentsArchiveButton'](_0x2444af);return _0x38907e['set']({'role':'menuitemcheckbox'}),_0x38907e;});const _0x49455c=_0x55361e['plugins']['get'](f),_0x58c874=_0x55361e['plugins']['get']('Annotations'),_0x48633f=_0x55361e['plugins']['get']('CommentsRepository');this['listenTo'](_0x49455c['archivedThreads'],'add',(_0x14dda5,_0x3b2abb)=>{const _0x5d82f7=_0x55361e['config']['get']('collaboration.channelId');if(!_0x5d82f7||_0x3b2abb['channelId']===_0x5d82f7){const _0x328bd7=_0x48633f['_threadToController']['get'](_0x3b2abb);if(!_0x328bd7)return void this['_pendingThreads']['push'](_0x3b2abb);const _0x1a5aff=this['_calculatePosition'](_0x3b2abb['archivedAt']),_0x157841=_0x58c874['getByInnerView'](_0x328bd7['view']);_0x157841['isVisible']&&_0x58c874['_visibleAnnotations']['remove'](_0x157841),this['annotationViews']['add'](_0x157841['view'],_0x1a5aff);}}),this['listenTo'](_0x58c874['collection'],'add',(_0x5e9f74,_0x2131c2)=>{const _0x4bacb7=this['_pendingThreads']['find'](_0x3f2996=>{const _0xfdf7ff=_0x48633f['_threadToController']['get'](_0x3f2996);return _0xfdf7ff&&_0x2131c2['innerView']===_0xfdf7ff['view'];});if(_0x4bacb7){const _0xed9270=this['_calculatePosition'](_0x4bacb7['archivedAt']);this['annotationViews']['add'](_0x2131c2['view'],_0xed9270),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x4bacb7),0x1);}}),this['listenTo'](_0x49455c['archivedThreads'],'remove',(_0x36e061,_0x31ee39)=>{const _0x14220c=_0x55361e['config']['get']('collaboration.channelId');if(!_0x14220c||_0x31ee39['channelId']===_0x14220c){const _0x30e03a=_0x48633f['_threadToController']['get'](_0x31ee39),_0x5b8321=_0x58c874['getByInnerView'](_0x30e03a['view']);this['annotationViews']['remove'](_0x5b8321['view']),this['stopListening'](_0x5b8321['focusableElements']);}}),this['listenTo'](_0x58c874['collection'],'add',(_0x2d581a,_0x1aa264)=>{this['listenTo'](_0x1aa264,'escape',_0x203d2d);}),this['listenTo'](_0x58c874['collection'],'remove',(_0x2252ae,_0x39eda0)=>{this['stopListening'](_0x39eda0,'escape',_0x203d2d);});}['_calculatePosition'](_0x18aba6){const _0x2a8052=this['editor']['config']['get']('collaboration.channelId'),_0x5df4e1=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x2dd841=>_0x2dd841['channelId']===_0x2a8052)['findIndex'](_0x322fdd=>_0x322fdd['archivedAt']<_0x18aba6);return _0x5df4e1<0x0||_0x5df4e1>this['annotationViews']['length']?this['annotationViews']['length']:_0x5df4e1-0x1;}['_toggleDialog'](){const _0x5e5928=this['editor'],_0x41ea9b=_0x5e5928['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x5e5928['locale'],this['annotationViews'])),'commentsArchive'===_0x41ea9b['id']?_0x41ea9b['hide']():_0x41ea9b['show']({'id':'commentsArchive','title':S(_0x5e5928['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x5aaf2f['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x229495,_0x309763=!0x1){const _0xc1e642=this['editor']['locale'],_0x2d23a4=this['editor']['plugins']['get']('Dialog'),_0x332bb5=new _0x229495(_0xc1e642);return _0x332bb5['bind']('isEnabled')['to'](this,'isEnabled'),_0x332bb5['bind']('isOn')['to'](_0x2d23a4,'id',_0x4ab782=>'commentsArchive'===_0x4ab782),_0x332bb5['set']({'label':S(_0xc1e642,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x309763&&(_0x332bb5['tooltip']=!0x0),this['listenTo'](_0x332bb5,'execute',()=>this['_toggleDialog']()),_0x332bb5;}['_hideDialogOnAnnotationEscape']=_0x3992c8=>{const _0x39661f=_0x3992c8['source'];if(!this['annotationViews']['has'](_0x39661f['view']))return;const _0x594cc0=this['editor']['plugins']['get']('Dialog');_0x594cc0['isOpen']&&'commentsArchive'===_0x594cc0['id']&&(_0x594cc0['hide'](),_0x3992c8['stop']());};}class p extends _0x2ad286{static get['requires'](){return[o,r,i,f,a,s,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{d as Annotation,x as AnnotationCollection,T as AnnotationView,N as Annotations,M as AnnotationsUIs,is as BaseCommentThreadView,rs as BaseCommentView,re as Comment,oe as CommentThread,Ct as CommentThreadController,ie as CommentThreadInputView,vt as CommentThreadView,gt as CommentView,p as Comments,f as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,e as WideSidebar};