@ckeditor/ckeditor5-comments 44.2.0-alpha.5 → 44.2.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +17 -17
  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 _0x7b514d,icons as _0x4f31bf,ContextPlugin as _0x4ad5c3,PendingActions as ht,Command as _0x43fab0,Plugin as _0x5ab294,Context as _0x53f178}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x269697,uid as _0x23b87c,KeystrokeHandler as jt,FocusTracker as _0x5414ac,diff as _0x4213ac,Collection as _0x1c34e7,Rect as _0x3b9eb0,CKEditorError as _0x487ab6,first as _0x19ae8e,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0x454a14,keyCodes as _0x231b87}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x226fcb,AriaDescriptionView as ts,setupThreadKeyboardNavigation as _0x423b7e,ConfirmMixin as ti,LateFocusButtonView as _0x4dd298,trimHtml as _0x4f9762,LateFocusDropdownButtonView as _0x5b0bac,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x56abeb}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as yt,debounce as _0x1e4fec}from'lodash-es';import{EditorUIView as Yt,InlineEditableUIView as $t,EditorUI as Vt,View as kt,FocusCycler as Ft,ButtonView as _0x3bfc4d,ViewCollection as _0x3048f9,createDropdown as _0x13830e,ListView as _0x1d04ec,focusChildOnDropdownOpen as _0x5dd5f5,ListItemView as _0x23f350,MenuBarMenuListItemButtonView as _0x4cf37f,BodyCollection as _0x92e78e,BalloonPanelView as _0x2a91a2,ContextualBalloon as _0x24f819,Dialog as _0xcf346a,DialogViewPosition as _0x381ed4}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x105c06}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 _0x1c34b1}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x1bacff}from'@ckeditor/ckeditor5-widget/dist/index.js';class Ct extends/* #__PURE__ -- @preserve */
24
- _0x269697(){['model'];['view'];constructor(_0x1d0446,_0x4aec47){super(),this['model']=_0x1d0446,this['model']['_isAttached']=!0x0,this['view']=_0x4aec47,this['listenTo'](_0x4aec47,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x4aec47,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x4aec47,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x4aec47,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x4aec47,'addComment',(_0x5c8010,_0x29408d)=>this['addComment'](_0x29408d)),this['listenTo'](_0x4aec47,'updateComment',(_0x3e3030,_0x4c3ab8,_0x4decd0)=>this['updateComment'](_0x4c3ab8,_0x4decd0)),this['listenTo'](_0x4aec47,'removeComment',(_0x51271a,_0x5156ba)=>this['removeComment'](_0x5156ba));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x24a80e){this['model']['addComment']({'content':_0x24a80e,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x4973fc,_0xb5aec9){this['model']['getComment'](_0x4973fc)['update']({'content':_0xb5aec9});}['removeComment'](_0x47c5a7){this['model']['getComment'](_0x47c5a7)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0xa16332,_0x1210c2,_0x2ff747){const t=_0xa16332['t'];switch(_0x1210c2){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'},_0x2ff747);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'},_0x2ff747);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'},_0x2ff747);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'},_0x2ff747);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x2ff747);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'},_0x2ff747);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'},_0x2ff747);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'},_0x2ff747);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(_0x533e51,_0x41d15c){super(_0x533e51);const _0x49be29=_0x23b87c();this['main']=this['createCollection'](),this['editable']=new $t(_0x533e51,_0x41d15c,void 0x0,{'label':()=>S(_0x533e51,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x533e51['uiLanguageDirection'],'lang':_0x533e51['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x49be29},'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(_0x20c6f7){super(_0x20c6f7),this['view']=new Xt(_0x20c6f7['locale'],_0x20c6f7['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x2017de=this['editor']['editing']['view'],_0x5d1e48=this['view']['editable'],_0x46727c=_0x2017de['document']['getRoot']();_0x5d1e48['name']=_0x46727c['rootName'],this['view']['render']();const _0x4f4d4f=_0x5d1e48['element'];this['setEditableElement'](_0x5d1e48['name'],_0x4f4d4f),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2017de['attachDomRoot'](_0x4f4d4f),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Rt=[Bt,Et,Gt,Jt,Kt,Nt,Qt];class Ut extends/* #__PURE__ -- @preserve */
25
- _0x269697(_0x7b514d){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Rt)());constructor(_0x3dd1df={}){function _0x49eac5(_0x5ef535){return _0x5ef535['map'](_0x18e786=>String['fromCharCode'](_0x18e786))['join']('');}(_0x3dd1df=Object['assign']({},_0x3dd1df))['plugins']||(_0x3dd1df['plugins']=Ut['defaultPlugins']),super(_0x3dd1df),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[_0x49eac5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49eac5([0x76,0x69,0x65,0x77])][_0x49eac5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x49eac5([0x61,0x75,0x74,0x6f]),this[_0x49eac5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x49eac5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x49eac5([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x49eac5([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x49eac5([0x6f,0x6b])});}['create'](){const _0x22d23e=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x22d23e))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x1987ed=>{const _0x287106=this['model']['document']['getRoot'](),_0x1502ab=_0x287106&&_0x287106['getChild'](_0x287106['childCount']-0x1);_0x1987ed['setSelection'](_0x1502ab,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x482b8e=this['editing']['view'],_0x8dcada=_0x482b8e['document']['getRoot'](),_0x5d31de=_0x8dcada['getChild'](0x0);_0x8dcada['childCount']>0x1||!_0x5d31de||'p'!=_0x5d31de['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x482b8e,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x5d31de['placeholder']=this['placeholder']),St({'view':_0x482b8e,'element':_0x5d31de,'keepOnFocus':!0x0}),this['placeholderElement']=_0x5d31de);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x138754,_0x48c649={}){super(_0x138754),this['editor']=null,this['_editorConfig']=_0x48c649,this['set']('value',_0x48c649['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x138754,'Reply...')),this['set']('submitLabel',S(_0x138754,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x5414ac(),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',(_0x261577,_0x3ceaa1)=>{this['cancelButtonView']['fire']('execute'),_0x3ceaa1();}),this['keystrokes']['set']('Ctrl+Enter',(_0x5b1f6b,_0x395036)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x395036());}),this['on']('submit',(_0x1ffff9,_0x2f88fc)=>{_0x2f88fc['length']>0xfde8?(alert(S(_0x138754,'TOO_LONG_COMMENT_ALERT',[_0x2f88fc['length'],0xfde8])),_0x1ffff9['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 _0x29f2e5=this['editor'];this['element']['insertBefore'](_0x29f2e5['ui']['element'],this['element']['firstChild']),_0x29f2e5['model']['document']['on']('change',()=>this['value']=_0x29f2e5['getData']()),_0x29f2e5['bind']('placeholder')['to'](this),this['focusables']['add'](_0x29f2e5['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x717acb){-0x1===_0x717acb?(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:_0x2d5ab8}=this,_0x280abf=new _0x3bfc4d(_0x2d5ab8);return _0x280abf['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x280abf['withText']=!0x0,_0x280abf['bind']('label')['to'](this,'submitLabel'),_0x280abf['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x280abf['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x1b3c83,_0x246232)=>!_0x246232&&!!_0x1b3c83['trim']()),_0x280abf;}['_createCancelButton'](){const {locale:_0x2b3b4a}=this,_0x53812b=new _0x3bfc4d(_0x2b3b4a);return _0x53812b['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x53812b['label']=S(_0x2b3b4a,'Cancel'),_0x53812b['withText']=!0x0,_0x53812b['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x53812b;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x2c7faf=>{this['focusTracker']['add'](_0x2c7faf['element']);}),this['focusables']['on']('change',(_0x593d76,_0xd64413)=>{for(const _0x56648c of Array['from'](_0xd64413['added'])['reverse']())this['focusTracker']['add'](_0x56648c['element']);});}}class ie extends kt{constructor(_0x3e7c2b,_0x403e1a,_0x2cf00f){super(_0x3e7c2b),this['commentInputView']=new os(_0x3e7c2b,_0x2cf00f),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x338f9d,_0x194dd9)=>_0x338f9d||!!_0x194dd9),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 _0x226fcb(_0x3e7c2b,_0x403e1a),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'](_0x35b818){this['commentInputView']['focus'](_0x35b818);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x498a9d,_0x39f0a3)=>{const {submitButtonView:_0xacf6f6,cancelButtonView:_0x527608,editor:_0x1bfb15}=this['commentInputView'];[_0xacf6f6['element'],_0x527608['element'],_0x1bfb15?_0x1bfb15['editing']['view']['getDomRoot']():null]['filter'](_0x1865bd=>_0x1865bd)['some'](_0x2ec973=>_0x2ec973['contains'](_0x39f0a3['target']))||(this['focus'](),_0x39f0a3['preventDefault']());});}}class cs extends kt{constructor(_0x3c3b1e){super(_0x3c3b1e);const _0x2bc2e5=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x2bc2e5['to']('count',_0xb0b6da=>S(_0x3c3b1e,'NUMBER_OF_COMMENTS',_0xb0b6da))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x217c53,_0x25fe7b,_0x38dc3f){super(_0x217c53);const _0x1c1662=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x25fe7b['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x25fe7b,this['_config']=_0x38dc3f,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x5414ac(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xddcbbd=>this['commentViews']['map'](_0x4cb6a3=>_0x4cb6a3['element'])['includes'](_0xddcbbd['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x217c53),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x1cf38b=>_0x1cf38b-this['_config']['maxCommentsWhenCollapsed']);for(const _0x579613 of _0x25fe7b['comments'])this['_handleNewCommentModel'](_0x579613);this['_handleInfoComment'](),this['listenTo'](_0x25fe7b['comments'],'add',(_0x5a8e4f,_0x54deb9)=>{const _0x29a88e=this['_calculatePosition'](_0x54deb9);this['length']++,this['_handleNewCommentModel'](_0x54deb9,_0x29a88e),this['refreshVisibleViews']();}),this['listenTo'](_0x25fe7b['comments'],'remove',(_0x17f62c,_0x1a6bd7)=>{this['length']--,this['_handleRemoveCommentModel'](_0x1a6bd7),this['refreshVisibleViews']();}),this['listenTo'](_0x25fe7b,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x25fe7b,'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',_0x1c1662['if']('length','ck-hidden',_0x183ed0=>!_0x183ed0)],'aria-label':S(_0x217c53,'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'](_0x4e1465){-0x1===_0x4e1465?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x2679d4 of this['commentViews'])_0x2679d4['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0xb8eac2,_0x27bd24){const _0x1b2a54=new this['_config']['CommentView'](this['locale'],_0xb8eac2,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x1b2a54['viewUid']=_0xb8eac2['id'],_0x1b2a54['delegate']('removeComment')['to'](this),_0x1b2a54['delegate']('updateComment')['to'](this),_0x1b2a54['delegate']('resolveCommentThread')['to'](this),_0x1b2a54['delegate']('editorReady')['to'](this),_0x1b2a54['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x1b2a54,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x1b2a54,_0x27bd24);}['_calculatePosition'](_0x2f535c){const _0x1cae4d=this['_model']['_findOptimalIndex'](_0x2f535c);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x2f535c['authoredAt']?_0x1cae4d-0x1:_0x1cae4d:_0x1cae4d-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x3a363e={'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'],_0x3a363e,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x3a363e));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x1770ad){const _0x1bc4af=this['commentViews']['remove'](_0x1770ad['id']);this['stopListening'](_0x1bc4af),_0x1bc4af['isEditMode']&&this['_updateHasDirtyComment'](),_0x1bc4af['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x40d6b7=>_0x40d6b7['isEditMode']);}['_rearrangeCollapse'](){const _0x2998fd=function(_0x5fa237){const _0x746d3e=new _0x1c34e7();for(const _0x1db6c of _0x5fa237)_0x746d3e['add'](_0x1db6c);return _0x746d3e;}(this['commentViews']),_0x523df9=this['_collapsedCommentsView']['count'];for(let _0x2bf19a=0x1;_0x2bf19a<=_0x523df9;_0x2bf19a++)_0x2998fd['remove'](0x1);for(const _0x2c95e9 of _0x2998fd)_0x2c95e9['collapse']();_0x523df9>0x0&&_0x2998fd['add'](this['_collapsedCommentsView'],0x1),as(_0x4213ac(Array['from'](this['visibleViews']),Array['from'](_0x2998fd)),this['visibleViews'],_0x2998fd);}['_rearrangeExpand'](){as(_0x4213ac(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x1299f8 of this['visibleViews'])_0x1299f8['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x2ef4bb=>{this['focusTracker']['add'](_0x2ef4bb['element']),this['keystrokes']['listenTo'](_0x2ef4bb['element']);}),this['commentViews']['on']('change',(_0x47c63c,_0x17531e)=>{for(const _0x2fb9d2 of _0x17531e['removed'])this['focusTracker']['remove'](_0x2fb9d2['element']),this['keystrokes']['stopListening'](_0x2fb9d2['element']);for(const _0x589b1c of Array['from'](_0x17531e['added'])['reverse']())this['focusTracker']['add'](_0x589b1c['element']),this['keystrokes']['listenTo'](_0x589b1c['element']);});}}function as(_0x9e28ab,_0x5e259f,_0x891272){let _0x116669=0x0;for(const _0xdb40a0 of _0x9e28ab)switch(_0xdb40a0){case'insert':_0x5e259f['add'](_0x891272['get'](_0x116669),_0x116669),_0x116669++;break;case'delete':_0x5e259f['remove'](_0x116669);break;case'equal':_0x116669++;}}class ls extends kt{constructor(_0x57e4d8){super(_0x57e4d8);const _0x3101df=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x3101df['to']('contextValue',_0x558003=>S(_0x57e4d8,'THREAD_CONTEXT_LABEL',_0x558003)),'tabindex':-0x1},'children':[{'text':_0x3101df['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Zt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x3258a8,_0x3484e8){super(_0x3258a8);const _0x40de98=this['bindTemplate'];this['_model']=_0x3484e8,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x5414ac(),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',_0x4e2acc=>!!_0x4e2acc),this['bind']('contextValue')['to'](this['_model'],'context',_0x59e5f9=>_0x59e5f9&&_0x59e5f9['value']?this['_trimContextValue'](_0x59e5f9['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',_0x40de98['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 _0x338a32=new _0x3bfc4d(this['locale']);return _0x338a32['label']=S(this['locale'],'Reopen'),_0x338a32['tooltip']=S(this['locale'],'Reopen'),_0x338a32['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>',_0x338a32['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x50ae35=>!_0x50ae35),_0x338a32['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4eab7e,_0x4508f0)=>_0x4eab7e&&_0x4508f0),_0x338a32['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x338a32;}['_trimContextValue'](_0x1795c5){if(_0x1795c5['length']<0x96)return _0x1795c5;const _0x15ea19=_0x1795c5['lastIndexOf']('\x20',0x93);return _0x1795c5['substring'](0x0,_0x15ea19>-0x1?_0x15ea19:0x93)+'...';}['_attachContextActions'](){const _0x2b8e0f=this['element']['querySelector']('.ck-context'),_0x517c0b=_0x2b8e0f['querySelector']('.ck-context__value');this['listenTo'](_0x2b8e0f,'mouseenter',()=>{_0x517c0b['offsetWidth']<_0x517c0b['scrollWidth']&&_0x2b8e0f['classList']['add']('overlay');}),this['listenTo'](_0x2b8e0f,'mouseleave',()=>{_0x2b8e0f['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x3a64a7 of this['focusables'])this['focusTracker']['add'](_0x3a64a7['element']),this['keystrokes']['listenTo'](_0x3a64a7['element']);}['_createContextView'](){const _0xd56913=new ls(this['locale']);return _0xd56913['bind']('contextValue')['to'](this),_0xd56913;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x34c491,_0x1ea733,_0x54c194,_0x51bd4e){super(_0x34c491),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x1ea733,this['_localUser']=_0x54c194,this['_config']=_0x51bd4e,this['commentThreadHeaderView']=new Zt(_0x34c491,_0x1ea733),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new ts(_0x34c491,S(_0x34c491,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x34c491,_0x1ea733,Object['assign']({'CommentView':this['_config']['CommentView']},_0x51bd4e)),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',(_0x4f8c36,_0x168033)=>_0x4f8c36||!!_0x168033),this['bind']('isUnlinked')['to'](_0x1ea733,'unlinkedAt',_0x2bb0f5=>!!_0x2bb0f5),this['bind']('ariaLabel')['to'](this,'length',_0x2dde83=>{const _0x54b7ea=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x2dde83,_0x54b7ea]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x5414ac(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2cd617=>_0x2cd617['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x423b7e(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x18bc8a=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x16a2e6=_0x18bc8a['commentInputView'];return _0x18bc8a['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x16a2e6,'value',(_0x49df14,_0x30adf3,_0x44fd48,_0x45ea8a,_0x17be0d)=>!!_0x17be0d||!!_0x45ea8a&&_0x44fd48&&!_0x30adf3||_0x49df14&&_0x44fd48&&!_0x30adf3),_0x16a2e6['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x19187c,_0xcf06ed,_0xdd3441)=>{let _0x424c6e;return _0x424c6e=_0xdd3441&&_0xcf06ed?'Reply\x20to\x20reopen\x20discussion...':_0x19187c?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x424c6e);}),_0x16a2e6['bind']('submitLabel')['to'](this,'length',_0x273890=>S(this['locale'],_0x273890?'Reply':'Comment')),_0x16a2e6['on']('submit',(_0x155c18,_0x2731bd)=>{this['fire']('addComment',_0x2731bd),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x16a2e6['on']('cancel',()=>{this['focus']();}),_0x16a2e6['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x16a2e6['on']('cancel',_0x33accd=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x33accd['stop']());}),this['on']('change:isActive',(_0x4f7e99,_0x2cafef,_0x154cd9)=>{_0x154cd9||this['length']||_0x16a2e6['value']||this['fire']('removeCommentThread');}),_0x18bc8a;}}class vt extends/* #__PURE__ -- @preserve */
27
- ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x4d3a44,_0x10f2b4,_0x2b8a56,_0x264213){super(_0x4d3a44,_0x10f2b4,_0x2b8a56,_0x264213),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x4d3a44,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x4e39e0,_0x2f308a,_0x416cb2)=>{_0x416cb2||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x38de5e,_0x34ad71,_0xa6f8a)=>{_0xa6f8a&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x56711d=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x56711d['if']('isActive','ck-thread--active'),_0x56711d['if']('isUnlinked','ck-thread--unlinked'),_0x56711d['if']('isConfirm','ck-thread--remove-confirmation'),_0x56711d['to']('actionIndicator',_0x203572=>_0x203572?'ck-thread--'+_0x203572:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x56711d['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 _0x3ed4e2 of this['commentsListView']['commentViews'])_0x3ed4e2['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x6d3873}=this,_0x43868b=this['commentsListView']['commentViews']['get'](0x0);_0x43868b===this['_boundFirstCommentView']||_0x43868b['isSystemComment']||(this['_boundFirstCommentView']=_0x43868b,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x43868b,'actionIndicator',_0x588b75=>'remove'===_0x588b75?'remove':null),_0x43868b['placeholder']=S(_0x6d3873,'Write\x20a\x20comment...'),_0x43868b['removeButton']['on']('execute',_0x5f1902=>{_0x5f1902['stop'](),this['showConfirm'](S(_0x6d3873,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x43868b['focus']();}),_0x43868b['actionBar']['add'](this['resolveButton'],0x0),_0x43868b['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x4858c9=new _0x4dd298(this['locale']);return _0x4858c9['label']=S(this['locale'],'Resolve'),_0x4858c9['tooltip']=S(this['locale'],'Resolve'),_0x4858c9['icon']=_0x4f31bf['check'],_0x4858c9['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x4858c9['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x124790=>!_0x124790),_0x4858c9['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x1c8bc8,_0x558e41)=>_0x1c8bc8&&!_0x558e41),_0x4858c9['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x4858c9;}['_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(_0xaf8a19){super(_0xaf8a19),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x467235,_0x976fac,_0x3ab779)=>{this['element']['innerHTML']=_0x3ab779;}),this['element']['innerHTML']=this['content'];}}class rs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x34e01f,_0x29df34,_0x1b229e){super(_0x34e01f),this['_model']=_0x29df34,this['_config']=_0x1b229e,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x29df34,'content',_0x29df34,'authoredAt',(_0x3e9074,_0x40e731)=>S(_0x34e01f,'COMMENT_ARIA_LABEL',[_0x29df34['author']['name'],_0x1b229e['formatDateTime'](_0x40e731),new DOMParser()['parseFromString'](_0x3e9074,'text/html')['body']['textContent'],_0x29df34['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new ts(_0x34e01f,S(_0x34e01f,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x3048f9(),this['focusTracker']=new _0x5414ac(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x55e309=>_0x55e309['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 _0x90aa13=new hs(this['locale']);return _0x90aa13['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x1d5d60,_0x31e7b7)=>_0x31e7b7?_0x4f9762(_0x1d5d60,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x1d5d60),_0x90aa13;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x3051f3=new os(this['locale'],this['_config']['editorConfig']);return _0x3051f3['value']=this['_model']['content'],_0x3051f3['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x3051f3['submitLabel']=S(this['locale'],'Save'),_0x3051f3['on']('submit',(_0x3a4fda,_0x539782)=>{this['fire']('updateComment',this['_model']['id'],_0x539782),this['switchToDisplayMode'](),this['focus']();}),_0x3051f3['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x3051f3['once']('editorReady',()=>{_0x3051f3['focus']();}),_0x3051f3['createEditor'](),_0x3051f3['delegate']('editorReady')['to'](this),_0x3051f3['delegate']('editorDestroyed')['to'](this),_0x3051f3;}['_setupKeyboardNavigation'](){const _0x4cb06f=this['element'];this['keystrokes']['listenTo'](_0x4cb06f);for(const _0x511e8e of this['focusables'])this['focusTracker']['add'](_0x511e8e['element']),this['keystrokes']['listenTo'](_0x511e8e['element']);this['focusables']['on']('change',(_0x21f3d2,_0x7e8d70)=>{for(const _0xff6687 of _0x7e8d70['removed'])this['focusTracker']['remove'](_0xff6687['element']),this['keystrokes']['stopListening'](_0xff6687['element']);for(const _0x39455c of _0x7e8d70['added'])this['focusTracker']['add'](_0x39455c['element']),this['keystrokes']['listenTo'](_0x39455c['element']);}),this['keystrokes']['set']('enter',(_0x3b3b2a,_0x53f2f0)=>{_0x4cb06f===_0x3b3b2a['target']&&(this['focusCycler']['focusFirst'](),_0x53f2f0());}),this['keystrokes']['set']('esc',(_0x436489,_0x2d7f1b)=>{_0x4cb06f!==_0x436489['target']&&(this['focus'](),_0x2d7f1b());});}}class gt extends/* #__PURE__ -- @preserve */
28
- ti(rs){['actionBar'];['userView'];constructor(_0x562ef0,_0x3de68a,_0x2619b5){super(_0x562ef0,_0x3de68a,_0x2619b5),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x562ef0,'Reply...')),this['bind']('authoredAt')['to'](_0x3de68a),this['bind']('resolvedAt')['to'](_0x3de68a),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 _0x226fcb(_0x562ef0,_0x3de68a['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x3de68a,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5691c5=this['bindTemplate'],_0x5aa017=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x5691c5['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5691c5['to']('authoredAt',_0x4e3f92=>this['_config']['formatDateTime'](_0x4e3f92))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x5691c5['if']('isEditMode','ck-comment__actions--hidden'),_0x5691c5['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']&&_0x5aa017['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x5691c5['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x5691c5['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x5691c5['if']('isEditMode','ck-comment--edit'),_0x5691c5['if']('isSystemComment','ck-comment--info'),_0x5691c5['to']('actionIndicator',_0x2924a3=>_0x2924a3?'ck-comment--'+_0x2924a3:'')],'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':_0x5aa017}]}]};}['_createEditButton'](){const _0x2e8001=new _0x3bfc4d(this['locale']);return _0x2e8001['label']=S(this['locale'],'Edit'),_0x2e8001['icon']=_0x4f31bf['pencil'],_0x2e8001['withText']=!0x0,_0x2e8001['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x2e8001['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x34e41c=>!_0x34e41c),_0x2e8001['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x2e8001['on']('execute',()=>this['switchToEditMode']()),_0x2e8001;}['_createRemoveButton'](){const _0x2cac25=new _0x3bfc4d(this['locale']);return _0x2cac25['label']=S(this['locale'],'Remove'),_0x2cac25['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-2025,\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',_0x2cac25['withText']=!0x0,_0x2cac25['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x2cac25['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x350584=>!_0x350584),_0x2cac25['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x2cac25['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x2cac25;}['_createDropdown'](){const _0x3630df=_0x13830e(this['locale'],_0x5b0bac),_0x4e12e8=_0x3630df['panelView']['children'],_0xceb21b=new _0x1d04ec(this['locale']),_0x38138e=_0x3630df['bindTemplate'];_0x5dd5f5(_0x3630df,()=>this['items']['find'](_0x421e36=>_0x421e36['isVisible'])),_0x3630df['extendTemplate']({'attributes':{'class':[_0x38138e['if']('isVisible','ck-hidden',_0x1f0b8b=>!_0x1f0b8b)]}});const _0x1c763e=(_0x57a0f4,_0x3bf46b=-0x1)=>{const _0x561b3a=new _0x23f350(this['locale']);_0x561b3a['children']['add'](_0x57a0f4);const _0x4f8d39=_0x3bf46b>-0x1?_0x3bf46b:_0xceb21b['items']['length'];_0xceb21b['items']['add'](_0x561b3a,_0x4f8d39);const _0x4b9771=Array['from'](this['items']);_0x3630df['unbind']('isEnabled','isVisible'),_0x3630df['bind']('isEnabled')['toMany'](_0x4b9771,'isEnabled',(..._0x4b1131)=>_0x4b1131['some'](_0x4254d3=>_0x4254d3)),_0x3630df['bind']('isVisible')['toMany'](_0x4b9771,'isVisible',(..._0x218114)=>_0x218114['some'](_0x4faacd=>_0x4faacd));};_0x3630df['panelPosition']='sw',_0x3630df['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x4f31bf['threeVerticalDots']});for(const _0x20b33d of this['items'])_0x1c763e(_0x20b33d);return _0x4e12e8['add'](_0xceb21b),_0x3630df['listenTo'](this['items'],'add',(_0x47c43c,_0x4f9225,_0x3ea255)=>{_0x1c763e(_0x4f9225,_0x3ea255);}),_0x3630df['listenTo'](this['items'],'remove',(_0x2d0bec,_0x4e4e03,_0xbb677)=>{_0xceb21b['items']['remove'](_0xbb677);}),_0x3630df;}['_attachActions'](_0x6fe839,_0x487cf5){const _0x23abee=_0x6fe839&&_0x6fe839['element'];_0x23abee&&(this['listenTo'](_0x23abee,'mouseenter',()=>this['actionIndicator']=_0x487cf5),this['listenTo'](_0x23abee,'focus',()=>this['actionIndicator']=_0x487cf5),this['listenTo'](_0x23abee,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x23abee,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x9d15a5=super['_createCommentInputView']();return _0x9d15a5['bind']('placeholder')['to'](this),_0x9d15a5;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0x10ebd3){const _0x2cc63a=Dt(_0x10ebd3,0x1e),_0x1563ba=new MutationObserver(_0x2895eb=>{for(const _0x961b8b of _0x2895eb)('attributes'==_0x961b8b['type']&&'class'==_0x961b8b['attributeName']||'childList'==_0x961b8b['type']||'characterData'==_0x961b8b['type'])&&_0x2cc63a();});return{'attach'(_0x3351ec){_0x1563ba['observe'](_0x3351ec,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x1563ba['disconnect'](),_0x2cc63a['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x33ec33,_0x504ac6){super(_0x33ec33),this['id']=_0x23b87c(),this['focusTracker']=new _0x5414ac(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x131f7f,_0x239feb)=>this['fire']('Esc',_0x239feb)),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'](_0x504ac6),this['mainView']=_0x504ac6;const _0x5b330e=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x5b330e['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 _0x4ec3b5=this['element']['clientHeight'];_0x4ec3b5&&(this['height']=_0x4ec3b5);}}class d extends/* #__PURE__ -- @preserve */
29
- _0x269697(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x199eab,target:_0x24eb0f,type:_0x52efc5,isVisible:_0x156234=!0x0}){super(),this['view']=_0x199eab,this['view']['element']||this['view']['render'](),this['_type']=_0x52efc5,this['_target']=_0x24eb0f,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x1c34e7([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x2cd06c,_0x22e99f)=>{this['view']['focusTracker']['add'](_0x22e99f);}),this['focusableElements']['on']('remove',(_0x22d7ac,_0x4600d5)=>{this['view']['focusTracker']['remove'](_0x4600d5);}),this['set']('isVisible',_0x156234);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x431fa3=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x431fa3),_0x431fa3;}get['targetRect'](){const _0x529ea4=this['target'];if(null===_0x529ea4)return null;if(_0x529ea4 instanceof _0x3b9eb0)return _0x529ea4;const _0x25bfee=_0x529ea4['filter'](_0x49a2c3=>function(_0x3d8e78){const _0x120253=_0x3d8e78['offsetParent'];if(_0x120253)return!0x0;const _0x2a9327=_0x3d8e78['getClientRects']()['item'](0x0);return!!_0x2a9327;}(_0x49a2c3));return 0x0===_0x25bfee['length']?null:new _0x3b9eb0(_0x25bfee[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x52bb5c){this['view']['isActive']=_0x52bb5c,this['view']['mainView']['isActive']=_0x52bb5c;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x1e8946){if(!(null===_0x1e8946||_0x1e8946 instanceof _0x3b9eb0||Array['isArray'](_0x1e8946)&&_0x1e8946['every'](_0x188384=>ne(_0x188384))))throw new _0x487ab6('annotation-invalid-target',null,{'target':_0x1e8946});}['_getNormalizedTarget'](){const _0x3e9fb4='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x3e9fb4)?[_0x3e9fb4]:_0x3e9fb4;}}function ne(_0x4ea43d){return null!==_0x4ea43d&&'object'==typeof _0x4ea43d&&'nodeType'in _0x4ea43d&&0x1===_0x4ea43d['nodeType'];}class x extends _0x1c34e7{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x1b5a07=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x5414ac(),this['_focusTracker']['on']('change:isFocused',(_0x29f5fd,_0x50d954,_0x5d1cda)=>{_0x5d1cda||this['fire']('blur');});for(const _0x7a7776 of _0x1b5a07)this['add'](_0x7a7776);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x423989){if(this['has'](_0x423989))throw new _0x487ab6('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x423989['innerView'],_0x423989),this['_viewToAnnotation']['set'](_0x423989['view'],_0x423989);for(const _0x421d45 of _0x423989['focusableElements'])this['_focusTracker']['add'](_0x421d45);this['listenTo'](_0x423989['focusableElements'],'add',(_0x397581,_0xe4bece)=>{this['_focusTracker']['add'](_0xe4bece);}),this['listenTo'](_0x423989['focusableElements'],'remove',(_0x266acc,_0x5d7345)=>{this['_focusTracker']['remove'](_0x5d7345);}),this['listenTo'](_0x423989['view']['focusTracker'],'change:isFocused',(_0x59c4d8,_0x3362c5,_0x4f9d42)=>{_0x4f9d42&&this['fire']('focus',_0x423989);}),_0x423989['updateTargetRect']();const _0x37dc65=this['_getOrderInContent'](_0x423989['view']['targetRect']);return super['add'](_0x423989,_0x37dc65);}['remove'](_0x28520f){if(!this['has'](_0x28520f))throw new _0x487ab6('annotationcollection-not-existing-item',null);this['stopListening'](_0x28520f['view']['focusTracker']),this['stopListening'](_0x28520f['focusableElements']);for(const _0x5ddeb5 of _0x28520f['focusableElements'])this['_focusTracker']['remove'](_0x5ddeb5);return this['_viewToAnnotation']['delete'](_0x28520f['view']),this['_innerViewToAnnotation']['delete'](_0x28520f['innerView']),super['remove'](_0x28520f);}['getByInnerView'](_0x3a639f){return this['_innerViewToAnnotation']['get'](_0x3a639f);}['getByView'](_0xa4e262){return this['_viewToAnnotation']['get'](_0xa4e262);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x5614a3 of this)_0x5614a3['updateTargetRect']();this['_sort']();}['_sort'](){const _0x17a28e=Array['from'](this)['sort']((_0x2251db,_0x1ff137)=>v(_0x2251db['view']['targetRect'],_0x1ff137['view']['targetRect']));for(let _0x49319b=_0x17a28e['length']-0x1;_0x49319b>0x0;_0x49319b--){const _0x10c6f5=_0x17a28e[_0x49319b];_0x49319b!==this['getIndex'](_0x10c6f5)&&(this['remove'](_0x10c6f5),this['add'](_0x10c6f5));}}['_getOrderInContent'](_0x493a14){let _0x588153=0x0;if(!_0x493a14)return this['length'];for(const _0x5b2f9c of this){const _0xb6d87e=_0x5b2f9c['view']['targetRect'];if(_0xb6d87e){if(v(_0x493a14,_0xb6d87e)<0x0)return _0x588153;_0x588153++;}}return _0x588153;}}function v(_0x425db6,_0x4b317a){if(null===_0x425db6&&null===_0x4b317a)return 0x0;if(null===_0x425db6)return-0x1;if(null===_0x4b317a)return 0x1;const _0x2307ee=_0x425db6['top']-_0x4b317a['top'];return 0x0==_0x2307ee?_0x425db6['left']-_0x4b317a['left']:_0x2307ee;}class N extends _0x4ad5c3{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2e3800){if(super(_0x2e3800),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x2e3800 instanceof _0x7b514d){const _0x3271eb=_0x2e3800['locale'];_0x2e3800['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x3271eb,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x3271eb,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x3271eb,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x3271eb,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x3271eb,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x3271eb,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x3271eb,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x4d4819){this['collection']['add'](_0x4d4819);}['remove'](_0x39d048){this['collection']['remove'](_0x39d048),_0x39d048['destroy']();}['refreshVisibility'](){for(const _0xca522b of this['collection'])_0xca522b['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x24dc2c){return this['collection']['getByInnerView'](_0x24dc2c);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x40622a of this['collection'])_0x40622a['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x2141db){this['fire']('_activateAnnotation',_0x2141db);}['createAnnotation'](_0x5a2b7a){return new d(_0x5a2b7a);}['createAnnotationView'](_0x491b55,_0x33fe24){return new T(_0x491b55,_0x33fe24);}['_addActiveAnnotation'](_0x24eb84){const _0x12d355=new Set(this['activeAnnotations']);_0x12d355['add'](_0x24eb84),this['activeAnnotations']=_0x12d355;}['_removeActiveAnnotation'](_0x14a70c){const _0x103809=new Set(this['activeAnnotations']);_0x103809['delete'](_0x14a70c),this['activeAnnotations']=_0x103809;}['_bindAnnotationsToVisibleAnnotations'](){const _0x1ca4dc=this['collection'],_0x3ff4f0=this['_visibleAnnotations'];function _0x5200c4(_0x48ba10){const _0x4fb22c=_0x48ba10['source'];_0x4fb22c['isVisible']&&!_0x3ff4f0['has'](_0x4fb22c)?_0x3ff4f0['add'](_0x4fb22c):!_0x4fb22c['isVisible']&&_0x3ff4f0['has'](_0x4fb22c)&&_0x3ff4f0['remove'](_0x4fb22c),_0x4fb22c['view']['focusTracker']['remove'](_0x4fb22c['view']['element']),_0x4fb22c['view']['focusTracker']['add'](_0x4fb22c['view']['element']);}this['listenTo'](_0x1ca4dc,'add',(_0x58d9ef,_0x207eec)=>{_0x207eec['isVisible']&&_0x3ff4f0['add'](_0x207eec),this['listenTo'](_0x207eec,'change:isVisible',_0x5200c4);}),this['listenTo'](_0x1ca4dc,'remove',(_0x54674a,_0x583bee)=>{_0x3ff4f0['has'](_0x583bee)&&_0x3ff4f0['remove'](_0x583bee),this['stopListening'](_0x583bee,'change:isVisible',_0x5200c4);});}['_setupEnterAnnotationKeystroke'](){const _0x5790e8=_0x256094=>{_0x256094['on']('ready',()=>{_0x256094['keystrokes']['set'](_0x1c34b1,(_0x563045,_0x56a74a)=>{const _0x4f8a7c=_0x19ae8e(this['activeAnnotations']['values']());_0x4f8a7c&&(_0x4f8a7c['view']['focus'](),_0x56a74a());});});};this['context']instanceof _0x7b514d?_0x5790e8(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x3b85e3,_0x137b9c)=>{_0x5790e8(_0x137b9c);});}['_setupEscapeAnnotationHandling'](){const _0x19af9e=_0x5d8fb8=>{const _0xd751e8=_0x5d8fb8['source'],_0x1d7764=[];let _0x1cf2c1;if(Array['isArray'](_0xd751e8['target'])){_0x1cf2c1=_0xd751e8['target'][0x0],this['context']instanceof _0x7b514d?_0x1d7764['push'](this['context']):this['context']['editors']&&_0x1d7764['push'](...this['context']['editors']);for(const _0x1717ff of _0x1d7764)for(const _0x1c8c9f of _0x1717ff['editing']['view']['domRoots']['values']())if(_0x1c8c9f['contains'](_0x1cf2c1))return void _0x1717ff['editing']['view']['focus']();_0x1cf2c1['focus']();}};this['listenTo'](this['collection'],'add',(_0x40867c,_0x235cb1)=>{this['listenTo'](_0x235cb1,'escape',_0x19af9e,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x4d3d3d,_0x56df68)=>{this['stopListening'](_0x56df68,'escape',_0x19af9e);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x4ad5c3{['_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(_0x3e3711){super(_0x3e3711),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x3541ca=this['context']['config'];_0x3541ca['define']('comments.maxCommentsWhenCollapsed',0x2),_0x3541ca['define']('comments.maxThreadTotalWeight',0x1f4),_0x3541ca['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x3541ca['define']('comments.CommentThreadView',vt),_0x3541ca['define']('comments.CommentView',gt),_0x3541ca['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x5dd180=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x55ec8e,_0x217414)=>this['_addCommentThread'](_0x217414)),this['on']('submitCommentThread',(_0x5dedbd,_0x40d036)=>this['_submitCommentThread'](_0x40d036)),this['on']('resolveCommentThread',(_0x1618fc,_0x2a6081)=>this['_resolveCommentThread'](_0x2a6081)),this['on']('resolveCommentThread',(_0x1434cc,_0x190755)=>this['_updateActiveAnnotation'](_0x190755),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x51cb22,_0xb62964)=>this['_reopenCommentThread'](_0xb62964)),this['on']('reopenCommentThread',(_0x55d3d9,_0x4f9e17)=>this['_updateActiveAnnotation'](_0x4f9e17),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x4e824d,_0x1d9cb9)=>this['_removeCommentThread'](_0x1d9cb9)),this['on']('updateCommentThread',(_0x386587,_0x5cb5a9)=>this['_updateCommentThread'](_0x5cb5a9)),this['on']('updateCommentThread',(_0x537ad1,_0x4da828)=>this['_updateActiveAnnotation'](_0x4da828),{'priority':'lowest'}),this['on']('addComment',(_0x1c059b,_0x4573f5)=>this['_addComment'](_0x4573f5)),this['on']('updateComment',(_0xdf6faa,_0x331692)=>this['_updateComment'](_0x331692)),this['on']('removeComment',(_0x3de69c,_0x500606)=>this['_removeComment'](_0x500606)),this['on']('addComment',(_0x51a78d,{threadId:_0x23853c,isFromAdapter:_0x580063})=>{if(_0x580063)return;const _0x4c3178=this['getCommentThread'](_0x23853c),_0x37dd21=_0x4c3178&&this['_threadToController']['get'](_0x4c3178);_0x37dd21&&_0x37dd21['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x5dd180,'change:activeAnnotations',(_0x5f7f68,_0x47cdf5,_0x3eee55)=>{const _0xdf45d2=Array['from'](_0x3eee55)['map'](_0xdbd33f=>this['_viewToController']['get'](_0xdbd33f['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0xdf45d2?_0xdf45d2['model']:null;});}set['adapter'](_0x6a386d){if(this['_adapter'])throw new _0x487ab6('commentsrepository-adapter-already-set');this['_adapter']=_0x6a386d;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x4e174c=Tt,threadId:_0x226d36=_0x23b87c(),comments:_0x3b5673=[],unlinkedAt:_0x593927=null,resolvedAt:_0x2b92ec=null,resolvedBy:_0x3ff5f4=null,target:_0x487957=null,context:_0x393604=null,attributes:_0x3440e0={},isResolvable:_0x253d7b=!0x0,isSubmitted:_0x979d64=!0x1,isFromAdapter:_0x2dcf00=!0x1}={}){return this['fire'](bt('addCommentThread',_0x4e174c),{'channelId':_0x4e174c,'threadId':_0x226d36,'comments':_0x3b5673,'unlinkedAt':_0x593927,'resolvedAt':_0x2b92ec,'resolvedBy':_0x3ff5f4,'target':_0x487957,'context':_0x393604,'attributes':_0x3440e0,'isFromAdapter':_0x2dcf00,'isResolvable':_0x253d7b,'isSubmitted':_0x979d64}),this['getCommentThread'](_0x226d36);}['openNewCommentThread']({channelId:_0x530cff=Tt,threadId:_0x26f725=_0x23b87c(),target:_0x4cb00e,context:_0x2a7a41=null,isResolvable:_0x593fc9=!0x0}){if(this['_readOnlyChannels']['has'](_0x530cff)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x4cb00e)throw new _0x487ab6('commentsrepository-missing-target');const _0x1ebf35=this['addCommentThread']({'channelId':_0x530cff,'threadId':_0x26f725,'target':_0x4cb00e,'context':_0x2a7a41,'isResolvable':_0x593fc9});if(!_0x1ebf35)return null;const _0x3a6d04=this['_threadToController']['get'](_0x1ebf35),_0xaf1547=_0x3a6d04['view']['commentThreadInputView']['commentInputView'],_0x1e0dfa=this['context']['plugins']['get'](N),_0x24178d=_0x1e0dfa['getByInnerView'](_0x3a6d04['view']);return _0x1e0dfa['activate'](_0x24178d),_0xaf1547['once']('editorReady',()=>_0xaf1547['focus']()),_0x1ebf35;}['hasCommentThread'](_0x306ac7){if('string'!=typeof _0x306ac7)throw new _0x487ab6('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x306ac7);}['updateCommentThread']({channelId:_0x1ba16b=Tt,threadId:_0xd1205b,context:_0x161c9a,unlinkedAt:_0x3b9822,attributes:_0x27d0b5,isFromAdapter:_0x48ecae=!0x1}){return this['fire'](bt('updateCommentThread',_0x1ba16b),{'channelId':_0x1ba16b,'threadId':_0xd1205b,'context':_0x161c9a,'unlinkedAt':_0x3b9822,'attributes':_0x27d0b5,'isFromAdapter':_0x48ecae}),this['getCommentThread'](_0xd1205b);}['getCommentThread'](_0x2276bf){if('string'!=typeof _0x2276bf)throw new _0x487ab6('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x2276bf);}['fetchCommentThread']({channelId:_0x327877,threadId:_0x4a9777}={}){const _0x351785=this['getCommentThread'](_0x4a9777);if(_0x351785)return Promise['resolve'](_0x351785);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x487ab6('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x327877,'threadId':_0x4a9777})['then'](_0x27f65a=>this['hasCommentThread'](_0x4a9777)?this['getCommentThread'](_0x4a9777):_0x27f65a?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x327877},_0x27f65a)):void 0x0)['catch'](_0xebda68=>{throw console['error'](_0xebda68),new _0x487ab6('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x5ba4f5,skipNotAttached:_0x2bc95e=!0x1,skipEmpty:_0x470d6b=!0x1,toJSON:_0x36f74a=!0x1}={}){const _0x28da95=[];for(const _0x17024d of this['_threads']['values']())_0x5ba4f5&&_0x17024d['channelId']!==_0x5ba4f5||_0x2bc95e&&!_0x17024d['isAttached']||_0x470d6b&&0x0===_0x17024d['length']||_0x28da95['push'](_0x17024d);return _0x36f74a?_0x28da95['map'](_0x24dc5b=>_0x24dc5b['toJSON']()):_0x28da95;}['setActiveCommentThread'](_0x4de12e){const _0x3cb992=this['context']['plugins']['get'](N);if(!_0x4de12e)return void(this['activeCommentThread']&&_0x3cb992['deactivateAll']());const _0x3c0d3e=this['getCommentThread'](_0x4de12e);if(!_0x3c0d3e)throw new _0x487ab6('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x4de12e});if(!this['_threadToController']['has'](_0x3c0d3e))throw new _0x487ab6('commentsrepository-active-not-attached',null,{'threadId':_0x4de12e});const _0xb5cbc6=_0x3cb992['getByInnerView'](this['_threadToController']['get'](_0x3c0d3e)['view']);_0x3cb992['activate'](_0xb5cbc6);}['switchReadOnly'](_0x3160e8,_0x56803d){_0x3160e8?this['_readOnlyChannels']['add'](_0x56803d):this['_readOnlyChannels']['delete'](_0x56803d),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x48f3f1){return this['_readOnlyChannels']['has'](_0x48f3f1)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x1ca599,_0x2eba97){return new Ct(_0x1ca599,_0x2eba97);}['setPermissions'](_0xcb2d,_0x4e1679=Tt){this['_permissions']['set'](_0x4e1679,_0xcb2d),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x22bab0=Tt){return this['_permissions']['has'](_0x22bab0)?this['_permissions']['get'](_0x22bab0):_t;}['_addCommentThread']({channelId:_0x179742,threadId:_0x409572,comments:_0x5c708a,unlinkedAt:_0x598166,resolvedAt:_0x3f500d,resolvedBy:_0x41216a,target:_0x4ec69f,context:_0x5d71a3,attributes:_0x456c97,isFromAdapter:_0x5a9843,isResolvable:_0x9024fc,isSubmitted:_0x488427}){if('string'!=typeof _0x409572)throw new _0x487ab6('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x409572});if(this['hasCommentThread'](_0x409572))throw new _0x487ab6('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x409572});const _0x367534=new oe(this,{'channelId':_0x179742,'id':_0x409572,'context':_0x5d71a3,'attributes':_0x456c97,'unlinkedAt':_0x598166,'resolvedAt':_0x3f500d,'resolvedBy':_0x41216a?this['context']['plugins']['get'](it)['getUser'](_0x41216a):null,'isResolvable':_0x9024fc,'isSubmitted':_0x488427||_0x5a9843});this['_threads']['set'](_0x409572,_0x367534);for(const _0x37db02 of _0x5c708a)_0x367534['_add'](this['_createNewComment']({'threadId':_0x409572,..._0x37db02}));return _0x4ec69f&&_0x367534['attachTo'](_0x4ec69f),_0x5a9843||!_0x367534['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x179742,'threadId':_0x409572});}['_submitCommentThread']({channelId:_0xfeb50,threadId:_0x1128b6}){if(!this['hasCommentThread'](_0x1128b6))throw new _0x487ab6('commentsrepository-missing-comment-thread',this);const _0x17e63f=this['getCommentThread'](_0x1128b6);if(_0x17e63f['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x1f699b,comments:_0x525d1d,resolvedAt:_0x1ab022,resolvedBy:_0xa40f49,context:_0x21fc22,attributes:_0x4b3b0e}=_0x17e63f,_0x43800a=this['context']['plugins']['get']('PendingActions'),_0x76a4f8=_0x43800a['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0xfeb50,'threadId':_0x1f699b,'comments':_0x525d1d['map'](_0x21f96a=>_0x21f96a['toJSON']()),'resolvedAt':_0x1ab022,'resolvedBy':_0xa40f49?_0xa40f49['id']:_0xa40f49,'context':_0x21fc22,'attributes':_0x4b3b0e})['then'](({comments:_0x331755})=>{_0x43800a['remove'](_0x76a4f8);for(const _0xd63f88 of _0x331755)this['_updateComment']({'channelId':_0xfeb50,'threadId':_0x1128b6,'commentId':_0xd63f88['commentId'],'createdAt':_0xd63f88['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x60bb8d=>{throw console['error'](_0x60bb8d),new _0x487ab6('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x4cf3e7,target:_0x57f1bc}){const _0x2037d6=this['getCommentThread'](_0x4cf3e7);if(!_0x2037d6)throw new _0x487ab6('commentsrepository-attach-missing-comment-thread',this);const _0x2a8083=this['context']['plugins']['get']('PendingActions'),_0xcb28c=this['context']['plugins']['get'](N),_0x3b6045=this['_createCommentThreadView'](_0x2037d6),_0x5d8134=new Ct(_0x2037d6,_0x3b6045);let _0x30b02d=null;_0x3b6045['on']('change:isDirty',(_0x799589,_0x29469e,_0x5a1eb0)=>{_0x5a1eb0?_0x30b02d=_0x2a8083['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x30b02d&&(_0x2a8083['remove'](_0x30b02d),_0x30b02d=null);}),this['_threadToController']['set'](_0x2037d6,_0x5d8134),this['_viewToController']['set'](_0x3b6045,_0x5d8134);const _0x3df990=new T(this['context']['locale'],_0x3b6045);_0x3df990['bind']('length')['to'](_0x3b6045),_0x3df990['bind']('isDirty')['to'](_0x3b6045,'isDirty',_0x3b6045,'length',(_0x2e8c0c,_0x4f7e68)=>_0x2e8c0c||!_0x4f7e68),_0x3df990['bind']('isActive')['to'](_0x3b6045),_0x3df990['type']='comment';const _0x5f2a79=new d({'view':_0x3df990,'target':_0x57f1bc,'type':'comment','isVisible':!_0x2037d6['archivedAt']});return _0x3b6045['on']('escape',()=>{_0x5f2a79['fire']('escape');}),this['_bindAnnotationToEditors'](_0x3b6045,_0x5f2a79),_0xcb28c['add'](_0x5f2a79),_0x5f2a79;}['_bindAnnotationToEditors'](_0x49f8f1,_0x2d4a69){this['listenTo'](_0x49f8f1,'editorReady',(_0x2cabfc,_0x52f6f4)=>{const _0x32c085=_0x52f6f4['ui']['view']['body']['bodyCollectionContainer'];_0x2d4a69['focusableElements']['add'](_0x32c085),this['context']instanceof _0x7b514d&&this['context']['ui']['focusTracker']['add'](_0x32c085);},{'priority':'highest'}),this['listenTo'](_0x49f8f1,'editorDestroyed',(_0x1d3e9b,_0x31af5c)=>{const _0x2ee933=_0x31af5c['ui']['view']['body']['bodyCollectionContainer'];_0x2d4a69['focusableElements']['has'](_0x2ee933)&&_0x2d4a69['focusableElements']['remove'](_0x2ee933),this['context']instanceof _0x7b514d&&this['context']['ui']['focusTracker']['remove'](_0x2ee933);});}['_unbindEditors'](_0x547ab6){this['stopListening'](_0x547ab6,'editorReady'),this['stopListening'](_0x547ab6,'editorDestroyed');}['_createCommentThreadView'](_0x4694a0){const _0x54130c=this['context']['plugins']['get'](it),{config:_0x5593df,locale:_0x40d0bf}=this['context'],_0xd4a6c3=lt(_0x5593df['get']('locale'));return new(0x0,(_0x5593df['get']('comments'))['CommentThreadView'])(_0x40d0bf,_0x4694a0,_0x54130c['me'],{'editorConfig':{..._0x5593df['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x5593df['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x5593df['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5593df['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5593df['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xd4a6c3,'CommentView':_0x5593df['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x3490a9,channelId:_0x125954,resolvedAt:_0x2cc21d,resolvedBy:_0x47656f,isFromAdapter:_0x219e5b}){if(!this['hasCommentThread'](_0x3490a9))throw new _0x487ab6('commentsrepository-missing-comment-thread',null,{'threadId':_0x3490a9});const _0x283566=this['getCommentThread'](_0x3490a9);if(_0x283566['isResolved'])throw new _0x487ab6('commentsrepository-resolved-comment-thread',null,{'threadId':_0x3490a9});const _0x39d770=this['context']['plugins']['get'](it);if(_0x283566['resolvedBy']=_0x39d770['getUser'](_0x47656f),_0x283566['resolvedAt']=_0x2cc21d,_0x219e5b||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x3406c4=this['context']['plugins']['get']('PendingActions'),_0x2e100f=_0x3406c4['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x125954,'threadId':_0x3490a9})['then'](({resolvedAt:_0x5de2b6,resolvedBy:_0x4c51fb})=>{_0x3406c4['remove'](_0x2e100f),_0x283566['resolvedBy']['id']!==_0x4c51fb&&(_0x283566['resolvedBy']=_0x39d770['getUser'](_0x4c51fb)),_0x283566['resolvedAt']=_0x5de2b6;})['catch'](_0x1274ed=>{throw console['error'](_0x1274ed),new _0x487ab6('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x5d04cb,channelId:_0x10c2dc,isFromAdapter:_0x37eaee}){if(!this['hasCommentThread'](_0x5d04cb))throw new _0x487ab6('commentsrepository-missing-comment-thread',null,{'threadId':_0x5d04cb});const _0x46ac1e=this['getCommentThread'](_0x5d04cb);if(!_0x46ac1e['isResolved'])throw new _0x487ab6('commentsrepository-reopen-comment-thread',null,{'threadId':_0x5d04cb});if(_0x46ac1e['resolvedBy']=null,_0x46ac1e['resolvedAt']=null,_0x37eaee||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x23f9bb=this['context']['plugins']['get']('PendingActions'),_0x4bcaad=_0x23f9bb['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x10c2dc,'threadId':_0x5d04cb})['then'](()=>_0x23f9bb['remove'](_0x4bcaad))['catch'](_0x12351d=>{throw console['error'](_0x12351d),new _0x487ab6('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x47ba37,isFromAdapter:_0x39d550}){const _0x123daa=this['getCommentThread'](_0x47ba37);if(!_0x123daa)throw new _0x487ab6('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x47ba37),this['_threads']['delete'](_0x47ba37),!_0x123daa['isSubmitted']||_0x39d550||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x17f658=this['context']['plugins']['get']('PendingActions'),{channelId:_0x35c4a5}=_0x123daa,_0x37eef4=_0x17f658['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x35c4a5,'threadId':_0x47ba37})['then'](()=>_0x17f658['remove'](_0x37eef4))['catch'](_0x3b9b02=>{throw console['error'](_0x3b9b02),new _0x487ab6('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x474dbb,unlinkedAt:_0x158bb5,context:_0x17e25e,attributes:_0x1ea339,isFromAdapter:_0x146f27}){if('string'!=typeof _0x474dbb)throw new _0x487ab6('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x474dbb});if(!this['hasCommentThread'](_0x474dbb))throw new _0x487ab6('commentsrepository-missing-comment-thread',null,{'threadId':_0x474dbb});const _0x3e6636=this['getCommentThread'](_0x474dbb);let _0x342200=!0x1;if(void 0x0!==_0x17e25e&&_0x3e6636['context']!==_0x17e25e&&(_0x3e6636['context']=_0x17e25e,_0x342200=!0x0),void 0x0!==_0x158bb5&&_0x3e6636['unlinkedAt']!==_0x158bb5&&(_0x3e6636['unlinkedAt']=_0x158bb5,_0x342200=!0x0),_0x1ea339&&!wt(_0x1ea339,_0x3e6636['attributes'])&&(_0x3e6636['attributes']=_0x1ea339,_0x342200=!0x0),!_0x342200)return Promise['resolve']();if(!_0x3e6636['isSubmitted']||_0x146f27||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x4ff2b8=this['context']['plugins']['get']('PendingActions'),{channelId:_0x54bef1}=_0x3e6636,_0x370182=_0x4ff2b8['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x54bef1,'threadId':_0x474dbb,'context':_0x17e25e,'unlinkedAt':_0x158bb5,'attributes':_0x1ea339})['then'](()=>_0x4ff2b8['remove'](_0x370182))['catch'](_0x149ac1=>{throw console['error'](_0x149ac1),new _0x487ab6('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x592229){const _0x4e01a1=this['context']['plugins']['get'](N),_0x5c24c7=this['getCommentThread'](_0x592229);if(_0x5c24c7['_isAttached']=!0x1,this['_threadToController']['has'](_0x5c24c7)){const _0x59a596=this['_threadToController']['get'](_0x5c24c7),_0x446704=_0x59a596['view'],_0x85039d=_0x4e01a1['getByInnerView'](_0x446704);this['_threadToController']['delete'](_0x5c24c7),this['_viewToController']['delete'](_0x446704),_0x85039d&&_0x4e01a1['remove'](_0x85039d),_0x59a596['destroy'](),_0x446704['destroy']()['then'](()=>{this['_unbindEditors'](_0x446704);});}}['_updateActiveAnnotation']({threadId:_0x2042a7,resolvedAt:_0x33808e}){const _0x4765dc=!!_0x33808e,_0x2d5f51=this['context']['plugins']['get'](N),_0x476a08=this['getCommentThread'](_0x2042a7);if(this['_threadToController']['has'](_0x476a08)){const _0x408db0=this['_threadToController']['get'](_0x476a08)['view'],_0x2a3b76=_0x2d5f51['getByInnerView'](_0x408db0);_0x2a3b76&&(_0x4765dc&&_0x2d5f51['_removeActiveAnnotation'](_0x2a3b76),_0x2a3b76['refreshVisibility']());}}['_getExternalAuthor'](_0x2fefc8){const _0x47a7fc=this['context']['plugins']['get'](it),_0xb7d3c7=pt('external:'+_0x2fefc8),_0x5df520=_0x47a7fc['getUser'](_0xb7d3c7);return _0x5df520||_0x47a7fc['addUser']({'id':_0xb7d3c7,'name':_0x2fefc8});}['_createNewComment']({threadId:_0x2830e8,commentId:_0x12fa6d=_0x23b87c(),content:_0x12a2a5,authorId:_0x3cfc76,createdAt:_0x3baca5,attributes:_0x38e7b6}){if('string'!=typeof _0x12fa6d)throw new _0x487ab6('commentsrepository-invalid-commentid');if('string'!=typeof _0x3cfc76)throw new _0x487ab6('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x12a2a5||!_0x12a2a5['trim']())throw new _0x487ab6('commentsrepository-invalid-comment-content');const _0x3b73a0=this['context']['plugins']['get'](it)['getUser'](_0x3cfc76);if(!_0x3b73a0)throw new _0x487ab6('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x3cfc76});let _0xae5524=null,_0x15031a=_0x3baca5;return _0x38e7b6&&_0x38e7b6['@external']&&(_0xae5524=this['_getExternalAuthor'](_0x38e7b6['@external']['authorName']),_0x15031a=new Date(_0x38e7b6['@external']['createdAt'])),new re(this,{'threadId':_0x2830e8,'id':_0x12fa6d,'author':_0xae5524||_0x3b73a0,'creator':_0x3b73a0,'content':_0x12a2a5,'createdAt':_0x3baca5,'authoredAt':_0x15031a,'attributes':_0x38e7b6});}['_addComment'](_0x5efbdb){let {threadId:_0x1b8121,content:_0x4d4807,attributes:_0x239de2,isFromAdapter:_0x4467e7}=_0x5efbdb;const _0xfc40e=this['getCommentThread'](_0x5efbdb['threadId']);if(!_0xfc40e)throw new _0x487ab6('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x508d62=this['_createNewComment'](_0x5efbdb),{id:_0x74488}=_0x508d62;if(_0xfc40e['_add'](_0x508d62),_0x4467e7||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0xfc40e['isSubmitted'])return Promise['resolve']();const _0x3d1543=this['context']['plugins']['get']('PendingActions'),{channelId:_0x282c58}=_0xfc40e,_0x1f5922=_0x3d1543['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x239de2||(_0x239de2={}),this['adapter']['addComment']({'channelId':_0x282c58,'threadId':_0x1b8121,'commentId':_0x74488,'content':_0x4d4807,'attributes':_0x239de2})['then'](_0x3b8de0=>{_0x3d1543['remove'](_0x1f5922),_0x3b8de0&&this['_updateComment']({'channelId':_0x282c58,'threadId':_0x1b8121,'commentId':_0x74488,'createdAt':_0x3b8de0['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x19a6cd=>{throw console['error'](_0x19a6cd),new _0x487ab6('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x592ed5,commentId:_0x36a76d,content:_0x568fd1,createdAt:_0x579cf1,attributes:_0x3f761d,isFromAdapter:_0x38945e}){if(void 0x0!==_0x568fd1&&('string'!=typeof _0x568fd1||!_0x568fd1['trim']()['length']))throw new _0x487ab6('commentsrepository-update-comment-invalid-content');const _0x1fe549=this['getCommentThread'](_0x592ed5),_0x417a8e=_0x1fe549['getComment'](_0x36a76d);if(!_0x417a8e)throw new _0x487ab6('commentsrepository-update-missing-comment',this);let _0x27ab6e=!0x1;if(_0x568fd1&&_0x568fd1!==_0x417a8e['content']&&(_0x417a8e['isEditable']||_0x38945e)&&(_0x417a8e['content']=_0x568fd1,_0x27ab6e=!0x0),_0x579cf1&&_0x579cf1!==_0x417a8e['createdAt']&&(_0x417a8e['createdAt']=_0x579cf1,_0x417a8e['attributes']&&_0x417a8e['attributes']['@external']||(_0x417a8e['authoredAt']=_0x579cf1),_0x27ab6e=!0x0),_0x3f761d&&!wt(_0x3f761d,_0x417a8e['attributes'])&&(_0x417a8e['attributes']=_0x3f761d,_0x27ab6e=!0x0),!_0x27ab6e)return Promise['resolve']();if(_0x1fe549['fire']('commentUpdated'),_0x38945e||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x5a8855=this['context']['plugins']['get']('PendingActions'),{channelId:_0x356054}=this['getCommentThread'](_0x417a8e['threadId']),_0x49a020=_0x5a8855['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x356054,'threadId':_0x592ed5,'commentId':_0x36a76d,'content':_0x568fd1,'attributes':_0x3f761d})['then'](()=>_0x5a8855['remove'](_0x49a020))['catch'](_0x244721=>{throw console['error'](_0x244721),new _0x487ab6('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x21c515,commentId:_0x17a26e,isFromAdapter:_0x4a15e7}){const _0x5669ed=this['getCommentThread'](_0x21c515),_0x191ab4=_0x5669ed['getComment'](_0x17a26e);if(!_0x191ab4)throw new _0x487ab6('commentsrepository-remove-missing-comment',this);if(_0x5669ed['_remove'](_0x191ab4),_0x4a15e7||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x16ade8=this['context']['plugins']['get']('PendingActions'),{channelId:_0x10af01}=_0x5669ed,_0x190170=_0x16ade8['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x10af01,'threadId':_0x21c515,'commentId':_0x17a26e})['then'](()=>_0x16ade8['remove'](_0x190170))['catch'](_0x2b8744=>{throw console['error'](_0x2b8744),new _0x487ab6('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
30
- _0x269697(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x458dd0,_0x9b695){super();const _0xffce21=_0x9b695['isResolvable'];this['channelId']=_0x9b695['channelId'],this['id']=_0x9b695['id'],this['comments']=new _0x1c34e7(),this['_repository']=_0x458dd0,this['_isAttached']=!0x1,this['_isSubmitted']=_0x9b695['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x458dd0,'_permissions',_0x458dd0,'_readOnlyChannels',()=>_0x458dd0['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x458dd0,'_permissions',()=>_0x458dd0['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x458dd0,'_permissions',()=>{const _0x55362f=_0x458dd0['getPermissions'](this['channelId']);return _0x55362f['write']||_0x55362f['admin'];}),this['bind']('isResolvable')['to'](_0x458dd0,'_permissions',()=>_0xffce21&&_0x458dd0['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x9b695['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x217820,_0x16838b)=>_0x217820?_0x16838b?_0x217820<_0x16838b?_0x217820:_0x16838b:_0x217820:_0x16838b),this['set']('unlinkedAt',_0x9b695['unlinkedAt']||null),this['set']('resolvedAt',_0x9b695['resolvedAt']||null),this['set']('resolvedBy',_0x9b695['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x17205a=>!!_0x17205a),this['set']('attributes',_0x9b695['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x26bb6e,_0x3d1c64)=>_0x26bb6e+_0x3d1c64['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x33321e,id:_0x11843b}=this;this['_repository']['fire'](bt('submitCommentThread',_0x33321e),{'channelId':_0x33321e,'threadId':_0x11843b});}['setUnlinkedAt'](_0x1c8bdf){this['_update']({'unlinkedAt':_0x1c8bdf});}['resolve']({resolvedAt:_0x5dd2d9=new Date(),resolvedBy:_0x2f1a2=null,isFromAdapter:_0x3d821b=!0x1}={}){const _0x10cad8=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x51e072,id:_0x31cfd1}=this;this['_repository']['fire'](bt('resolveCommentThread',_0x51e072),{'channelId':_0x51e072,'threadId':_0x31cfd1,'resolvedAt':_0x5dd2d9,'resolvedBy':_0x2f1a2||_0x10cad8['id'],'isFromAdapter':_0x3d821b});}['reopen']({isFromAdapter:_0x4279ac=!0x1}={}){const {channelId:_0x778819,id:_0x560bc7}=this;this['_repository']['fire'](bt('reopenCommentThread',_0x778819),{'channelId':_0x778819,'threadId':_0x560bc7,'isFromAdapter':_0x4279ac});}['setContext'](_0x29c81a){this['context']||this['_update']({'context':_0x29c81a});}['setAttribute'](_0xa77db7,_0x2170b7){const _0x5b81b2=It(this['attributes']);At(_0x5b81b2,_0xa77db7,_0x2170b7),this['_update']({'attributes':_0x5b81b2});}['removeAttribute'](_0x4777e2){const _0x5c9916=It(this['attributes']);yt(_0x5c9916,_0x4777e2),this['_update']({'attributes':_0x5c9916});}['remove']({isFromAdapter:_0x4aeaa4=!0x1}={}){const {channelId:_0xfff9a6,id:_0x12925d}=this;this['_repository']['fire'](bt('removeCommentThread',_0xfff9a6),{'channelId':_0xfff9a6,'threadId':_0x12925d,'isFromAdapter':_0x4aeaa4});}['attachTo'](_0x290978){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x290978});}['addComment'](_0x1b2694){const {channelId:_0x51d574,id:_0x5b870d}=this;this['_repository']['fire'](bt('addComment',_0x51d574,_0x5b870d),Object['assign']({'channelId':_0x51d574,'threadId':_0x5b870d},_0x1b2694));}['getComment'](_0x5301e2){if('string'!=typeof _0x5301e2)throw new _0x487ab6('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x5301e2});return this['comments']['get'](_0x5301e2);}['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'](_0x4b8a76=>_0x4b8a76['toJSON']()),'attributes':this['attributes']};}['_add'](_0x3fd306){return this['listenTo'](_0x3fd306,'change:authoredAt',()=>{const _0x160302=this['_findOptimalIndex'](_0x3fd306),_0x43c372=this['comments'];_0x160302-0x1!=_0x43c372['getIndex'](_0x3fd306)&&_0x160302+0x1!=_0x43c372['getIndex'](_0x3fd306)&&(this['_remove'](_0x3fd306),this['_add'](_0x3fd306));}),this['comments']['add'](_0x3fd306,this['_findOptimalIndex'](_0x3fd306));}['_update'](_0x5441a9){const {channelId:_0x217b2e,id:_0x339a3a}=this;this['_repository']['fire'](bt('updateCommentThread',_0x217b2e),{..._0x5441a9,'channelId':_0x217b2e,'threadId':_0x339a3a});}['_remove'](_0x4cf76a){return this['stopListening'](_0x4cf76a),_0x4cf76a['destroy'](),this['comments']['remove'](_0x4cf76a);}['_findOptimalIndex'](_0x30d6e5){const _0x11af1e=this['comments']['find'](_0x25cf31=>new Date(_0x25cf31['authoredAt'])['getTime']()>new Date(_0x30d6e5['authoredAt'])['getTime']());return _0x11af1e?this['comments']['getIndex'](_0x11af1e):this['length'];}}class re extends/* #__PURE__ -- @preserve */
31
- _0x269697(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x5f5125,_0x44779d){super();const _0x527075=_0x5f5125['context']['plugins']['get'](it)['me'],_0x312051=_0x5f5125['getCommentThread'](_0x44779d['threadId']),_0xd21135=0x0===_0x312051['comments']['length'],_0x57dff9=_0x527075===_0x44779d['author'];this['id']=_0x44779d['id'],this['threadId']=_0x44779d['threadId'],this['author']=_0x44779d['author'],this['creator']=_0x44779d['creator'],this['isExternal']=Boolean(_0x44779d['attributes']&&_0x44779d['attributes']['@external']),this['set']('content',_0x44779d['content']),this['createdAt']=_0x44779d['createdAt']||new Date(),this['set']('authoredAt',_0x44779d['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x312051,'resolvedAt'),this['set']('attributes',_0x44779d['attributes']||{}),this['bind']('isEditable')['to'](_0x5f5125,'_permissions',()=>{const _0x52a79b=_0x5f5125['getPermissions'](_0x312051['channelId'])['write'],_0x4e3911=_0x5f5125['getPermissions'](_0x312051['channelId'])['modifyAll'];return _0x57dff9&&_0x52a79b||!_0x57dff9&&_0x4e3911;}),this['bind']('isRemovable')['to'](_0x312051,'isRemovable',_0x5f5125,'_permissions',_0x17db15=>{const _0x37a5b0=_0x5f5125['getPermissions'](_0x312051['channelId'])['write'],_0x29199f=_0x5f5125['getPermissions'](_0x312051['channelId'])['modifyAll'];return _0x57dff9&&_0x37a5b0||_0x17db15&&_0xd21135||!_0x57dff9&&_0x29199f&&!_0xd21135;}),this['bind']('isReadOnly')['to'](_0x312051,'isReadOnly'),this['_repository']=_0x5f5125;}get['weight'](){return Math['max'](function(_0x2dd542){const _0x2e0c50=document['createElement']('div');return _0x2e0c50['innerHTML']=_0x2dd542,_0x2e0c50['textContent']['length'];}(this['content']),0xc8);}['update'](_0x583709){const {threadId:_0x445734,id:_0x43edd8}=this;if(!this['_repository']['hasCommentThread'](_0x445734))throw new _0x487ab6('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x372893}=this['_repository']['getCommentThread'](_0x445734);this['_repository']['fire'](bt('updateComment',_0x372893,_0x445734),{'channelId':_0x372893,'threadId':_0x445734,'commentId':_0x43edd8,..._0x583709});}['setAttribute'](_0x3642df,_0x177bef){const _0x291cc9=It(this['attributes']);At(_0x291cc9,_0x3642df,_0x177bef),this['update']({'attributes':_0x291cc9});}['removeAttribute'](_0x26077c){const _0x8e772b=It(this['attributes']);yt(_0x8e772b,_0x26077c),this['update']({'attributes':_0x8e772b});}['remove'](_0x3b75fd={}){if(!_0x3b75fd['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x14ec33,id:_0x36d601}=this;if(!this['_repository']['hasCommentThread'](_0x14ec33))throw new _0x487ab6('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x28d913}=this['_repository']['getCommentThread'](_0x14ec33);this['_repository']['fire'](bt('removeComment',_0x28d913,_0x14ec33),{'channelId':_0x28d913,'threadId':_0x14ec33,'commentId':_0x36d601,..._0x3b75fd});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x16a610,..._0x10de54){for(const _0x555cd1 of _0x10de54)void 0x0!==_0x555cd1&&(_0x16a610+=':'+String(_0x555cd1));return _0x16a610;}class J extends _0x43fab0{['refresh'](){const _0x463fca=this['editor']['model']['document']['selection'];for(const _0x194694 of _0x463fca['getRanges']())if(this['_hasContent'](_0x194694))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x235d9f=_0x23b87c()}={}){const _0x407a9d=this['editor']['model'],_0x11b1b9=[];for(const _0x1846e8 of _0x407a9d['document']['selection']['getRanges']())this['_hasContent'](_0x1846e8)&&_0x11b1b9['push'](this['_trimToContent'](_0x1846e8));_0x407a9d['change'](_0x34e27e=>{for(const _0x69e223 of _0x11b1b9){const _0x3c83b5=_0x23b87c()['substr'](0x1,0x5),_0x137437='comment:'+_0x235d9f+':'+_0x3c83b5;_0x34e27e['addMarker'](_0x137437,{'range':_0x69e223,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x28bac1){for(const _0x16e263 of _0x28bac1['getItems']())if(this['_itemIsContent'](_0x16e263))return!0x0;return!0x1;}['_itemIsContent'](_0x5b9d9c){return _0x5b9d9c['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x5b9d9c)&&!_0x5b9d9c['is']('element','tableCell');}['_trimToContent'](_0x5852ed){const _0x26fe61=_0x53356d=>!this['_itemIsContent'](_0x53356d['item']),_0x80b3d8=_0x5852ed['start']['getLastMatchingPosition'](_0x26fe61),_0x543ed8=_0x5852ed['end']['getLastMatchingPosition'](_0x26fe61,{'direction':'backward'});return this['editor']['model']['createRange'](_0x80b3d8,_0x543ed8);}}class P extends _0x5ab294{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28ba27){super(_0x28ba27),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x3c0d77=this['editor'],_0x26731d=_0x3c0d77['model']['document']['selection'],_0x769d08=_0x1e4fec(()=>this['refreshSelectedViews'](),0xa);_0x26731d['on']('change:range',(_0x357a10,_0xf73897)=>{_0xf73897['directChange']&&(_0x769d08['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x3c0d77['editing']['view']['document'],'change:isFocused',(_0x3c0bba,_0x5519cb,_0x2f2ef2)=>{_0x2f2ef2&&_0x769d08();}),this['listenTo'](_0x3c0d77['ui']['focusTracker'],'change:isFocused',(_0x35980f,_0x5afb0f,_0x2a8369)=>{_0x2a8369||_0x3c0d77['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x3b83aa=>this['_editorAnnotationsData']['has'](_0x3b83aa['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x1689eb){if(this['_editorAnnotations']['has'](_0x1689eb['view']))return;this['_editorAnnotations']['add'](_0x1689eb['view']),this['editor']['ui']['focusTracker']['add'](_0x1689eb['view']['element']);const _0x184714=this['editor']['plugins']['get'](N);this['listenTo'](_0x184714['collection'],'remove',(_0x368d4c,_0x2b6c8a)=>{this['editor']['ui']['focusTracker']['remove'](_0x2b6c8a['view']['element']),this['_editorAnnotations']['delete'](_0x2b6c8a['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x5d36da){if('function'!=typeof _0x5d36da)throw new _0x487ab6('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x5d36da);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x4c72c5,annotations:_0xdd9018}){const _0x67e558=[],_0x3d957d=this['editor']['model']['document']['selection'],_0x348401=Array['from'](_0x3d957d['getRanges']());for(const [_0x2a1d92,_0x53cd0e]of this['_editorAnnotationsData']){const _0x102e9e=_0x5254de(_0x53cd0e),_0x1b6230=_0xdd9018['getByInnerView'](_0x2a1d92);_0x102e9e&&_0x1b6230&&_0x67e558['push']({'annotation':_0x1b6230,'range':_0x102e9e});}function _0x5254de(_0x283d80){for(const _0x4d3858 of _0x283d80)for(const _0x99cb05 of _0x348401)if(_0x4d3858['containsRange'](_0x99cb05,!_0x3d957d['isCollapsed']))return _0x4d3858;return null;}return _0x67e558['sort']((_0x4ea8bd,_0x3f36a9)=>{const _0x38b5fe=_0x4ea8bd['range'],_0x3f81b8=_0x3f36a9['range'];if(!_0x38b5fe['isEqual'](_0x3f81b8)){if(_0x38b5fe['containsRange'](_0x3f81b8,!0x0))return 0x1;if(_0x3f81b8['containsRange'](_0x38b5fe,!0x0))return-0x1;}return _0x4ea8bd['annotation']==_0x4c72c5?-0x1:_0x3f36a9['annotation']==_0x4c72c5?0x1:0x0;})['map'](_0x2789ff=>_0x2789ff['annotation']);}get['_editorAnnotationsData'](){const _0xad1e9=new Map();for(const _0x45e7bd of Array['from'](this['_dataCollectors']))for(const [_0x309587,_0x4cf49d]of _0x45e7bd())_0xad1e9['set'](_0x309587,_0x4cf49d);return _0xad1e9;}}class st extends _0x5ab294{['afterInit'](){const _0x196d02=this['editor'];if(!_0x196d02['plugins']['has']('RestrictedEditingModeEditing'))return;_0x196d02['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x5ab294{constructor(_0x1dd9af){super(_0x1dd9af),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x46d223=this['editor'],_0x2258b1=_0x46d223['commands']['get']('importWord'),_0x31bdcd=_0x46d223['plugins']['get'](it);_0x2258b1&&(_0x2258b1['on']('execute',(_0x2cefcb,[,_0xeee810])=>{_0xeee810['collaboration_features']={'comments':!0x0,'user_id':_0x31bdcd['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x2258b1,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x3dd4ea,_0x8a0d72){const {comment_threads:_0x4e9ed4}=_0x8a0d72;_0x4e9ed4&&_0x4e9ed4['forEach'](({thread_id:_0x418537,comments:_0x523c99,is_resolved:_0x24fc20})=>{const _0x189405=new Date(),_0x12fd4c=_0x523c99['map'](({author:_0x340528,content:_0xd96a5a,created_at:_0x1113a6})=>({'content':_0xd96a5a,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x189405,'attributes':{'@external':{'authorName':_0x340528,'createdAt':_0x1113a6?new Date(_0x1113a6):new Date(),'source':'importWord'}}})),_0x3df237=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x3df237,'threadId':_0x418537,'comments':_0x12fd4c,'resolvedAt':_0x24fc20?_0x189405:null});});}}class at extends _0x5ab294{constructor(_0x3163f1){super(_0x3163f1),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x5de7e6=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x5de7e6,'contentInsertion',(_0x5e6757,_0x5e47ec)=>this['_removeMarkersWithoutThreads'](_0x5e47ec['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x41276c){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x41276c;const _0x48445c=this['editor']['plugins']['get']('CommentsRepository');for(const _0x40f150 of _0x41276c['keys']()){const [_0x1541f0,_0x3872cb]=_0x40f150['split'](':');'comment'!=_0x1541f0||_0x48445c['hasCommentThread'](_0x3872cb)||_0x41276c['delete'](_0x40f150);}return _0x41276c;}['_registerMarkerInClipboardPipeline'](){const _0x3b2bf4=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x177c67=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x177c67&&_0x3b2bf4['_registerMarkerToCopy']('comment',_0x177c67);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x1c9919){switch(_0x1c9919){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 _0x5ab294{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x4eccc0,_0x391a6a)=>{if(!_0x391a6a['options']['showCommentHighlights'])return null;if(_0x391a6a['options']['ignoreResolvedComments']){const {id:_0x43d9f5}=er(_0x4eccc0['markerName']),_0x27a4ab=this['editor']['plugins']['get'](o)['getCommentThread'](_0x43d9f5);if(_0x27a4ab&&_0x27a4ab['isResolved']&&_0x4eccc0['item'])return _0x391a6a['consumable']['consume'](_0x4eccc0['item'],'addMarker:'+_0x4eccc0['markerName']),_0x391a6a['consumable']['consume'](_0x4eccc0['item'],'removeMarker:'+_0x4eccc0['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5af0c5=>{_0x5af0c5['on']('addMarker:comment',(_0x1b23bf,_0x55463f,_0x3a0726)=>{if(!_0x3a0726['options']['showCommentHighlights'])return;const _0x17a0e3=_0x55463f['item'];if(!_0x17a0e3)return;const _0xa25685=_0x3a0726['mapper']['toViewElement'](_0x17a0e3);this['editor']['model']['schema']['isObject'](_0x17a0e3)&&_0xa25685&&!_0xa25685['getCustomProperty']('widget')&&_0xa25685['is']('containerElement')&&_0x1bacff(_0xa25685,_0x3a0726['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x50bd10,{writer:_0x2c5608,options:_0x4f66c4})=>{if(!_0x4f66c4['showCommentHighlights'])return null;const _0x3d4e46=_0x2c5608['createContainerElement']('div'),_0x13599=_0x2c5608['createEmptyElement']('hr');return _0x2c5608['addClass']('ck-horizontal-line',_0x3d4e46),_0x2c5608['insert'](_0x2c5608['createPositionAt'](_0x3d4e46,0x0),_0x13599),_0x3d4e46;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x26becf,{writer:_0x5c6637,options:_0x560d07})=>{if(!_0x560d07['showCommentHighlights'])return null;const _0x4879d8=_0x5c6637['createContainerElement']('span'),_0x199d03=_0x5c6637['createEmptyElement']('img');return _0x5c6637['addClass']('image-inline',_0x4879d8),_0x5c6637['insert'](_0x5c6637['createPositionAt'](_0x4879d8,0x0),_0x199d03),_0x4879d8;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1a764a,{writer:_0x2d5083,options:_0x2ab0e4})=>{if(_0x2ab0e4['showCommentHighlights'])return _0x2d5083['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x55767c,_0x221ba5,_0x21f0f3)=>{_0x21f0f3['options']['showCommentHighlights']&&_0x55767c['stop']();},{'priority':'high'});}}class r extends _0x5ab294{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(_0x593425){super(_0x593425),this['set']('isThreadsLoadingPaused',!0x0),_0x593425['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x2b9827,_0x22ee8c,_0x39fd48,_0x496ef5)=>{const _0x2fdb14=_0x593425['plugins']['get'](o),_0x2df486=_0x39fd48?er(_0x39fd48)['id']:null;_0x593425['model']['change'](()=>{if(_0x2df486){const _0x52afbe=this['getAllMarkersForId'](_0x2df486);for(const _0x2652e2 of _0x52afbe)_0x593425['editing']['reconvertMarker'](_0x2652e2);}if(_0x496ef5){const {id:_0x4da189}=er(_0x496ef5),_0x483e0c=_0x2fdb14['getCommentThread'](_0x4da189);if(_0x483e0c&&!_0x483e0c['isAttached'])return;const _0x3aa9b4=this['getAllMarkersForId'](_0x4da189);for(const _0x4122b2 of _0x3aa9b4)_0x593425['editing']['reconvertMarker'](_0x4122b2);}}),_0x2df486&&this['scrollToThreadMarker'](_0x2df486);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4dcaf9=this['editor'],_0x4c4e33=_0x4dcaf9['plugins']['get'](o),_0x3b5b76=_0x4dcaf9['config']['get']('collaboration.channelId'),_0x143786=_0x4c4e33['getCommentThreads']()['filter'](_0x2ec515=>_0x2ec515['channelId']!==_0x3b5b76);_0x4dcaf9['commands']['add']('addCommentThread',new J(_0x4dcaf9)),this['listenTo'](_0x4dcaf9,'change:isReadOnly',(_0x3207aa,_0x56d058,_0x383017)=>{_0x4c4e33['switchReadOnly'](_0x383017,_0x4dcaf9['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x4c4e33,ft('addCommentThread',_0x3b5b76),(_0x43b832,{threadId:_0x43691a})=>{const _0x35c6e4=this['editor']['plugins']['get'](o)['getCommentThread'](_0x43691a);_0x35c6e4&&_0x35c6e4['unlinkedAt']&&this['_attachArchivedThread'](_0x43691a);}),this['listenTo'](_0x4c4e33,ft('removeCommentThread',_0x3b5b76),(_0xcc143e,{threadId:_0x19f9d4})=>{_0x4dcaf9['model']['enqueueChange']({'isUndoable':!0x1},_0x199e4c=>{const _0x598766=this['getAllMarkersForId'](_0x19f9d4);for(const _0x31c027 of _0x598766)_0x199e4c['removeMarker'](_0x31c027);});}),this['listenTo'](_0x4c4e33,ft('resolveCommentThread',_0x3b5b76),(_0x2c254d,{threadId:_0x4b4d18})=>{(this['_reconvertMarkers'](_0x4b4d18),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x4b4d18)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x4c4e33,ft('reopenCommentThread',_0x3b5b76),(_0x50a01e,{threadId:_0x15e40e})=>{this['_reconvertMarkers'](_0x15e40e);},{'priority':'low'}),this['listenTo'](_0x4c4e33,ft('addComment',_0x3b5b76),(_0x448bce,{threadId:_0x145ff1,isFromAdapter:_0x28fb9d})=>{const _0x35a234=this['getAllMarkersForId'](_0x145ff1);if(_0x28fb9d||0x0==_0x35a234['length']||!_0x4c4e33['hasCommentThread'](_0x145ff1))return;0x1===_0x4c4e33['getCommentThread'](_0x145ff1)['length']&&_0x4dcaf9['model']['enqueueChange']({'isUndoable':!0x1},_0x49d1cb=>{for(const _0x49be8c of _0x35a234)_0x49d1cb['updateMarker'](_0x49be8c,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x143786);}['afterInit'](){!async function(_0x377236){const _0x3b7748=_0x38f111([0x6e,0x49,0x6f,0x78,0x66,0x37,0x54,0x74,0x4b,0x36,0x61,0x73,0x42,0x50,0x62,0x71,0x30,0x6d,0x4d,0x57,0x6b,0x39,0x31,0x79,0x72,0x58,0x7a,0x68,0x59,0x75,0x53,0x4e,0x47,0x4a,0x32,0x70,0x76,0x6c,0x67,0x77,0x64,0x34,0x44,0x56,0x45,0x65,0x33,0x51,0x5a,0x4f,0x52,0x41,0x55,0x43,0x69,0x48,0x46,0x6a,0x35,0x4c,0x63,0x38]),_0x18b5d0=0x71e1a044,_0xb1017f=0x71e6fe1c^_0x18b5d0,_0x2cea4d=window[_0x38f111([0x44,0x61,0x74,0x65])][_0x38f111([0x6e,0x6f,0x77])](),_0x104c3a=_0x377236[_0x38f111([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x25e545=new window[(_0x38f111([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c4469=>{_0x104c3a[_0x38f111([0x6f,0x6e,0x63,0x65])](_0x38f111([0x72,0x65,0x61,0x64,0x79]),_0x5c4469);}),_0xa0ea86={[_0x38f111([0x6b,0x74,0x79])]:_0x38f111([0x45,0x43]),[_0x38f111([0x75,0x73,0x65])]:_0x38f111([0x73,0x69,0x67]),[_0x38f111([0x63,0x72,0x76])]:_0x38f111([0x50,0x2d,0x32,0x35,0x36]),[_0x38f111([0x78])]:_0x38f111([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]),[_0x38f111([0x79])]:_0x38f111([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]),[_0x38f111([0x61,0x6c,0x67])]:_0x38f111([0x45,0x53,0x32,0x35,0x36])},_0x4519c0=_0x104c3a[_0x38f111([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x38f111([0x67,0x65,0x74])](_0x38f111([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5cc0ce(){let _0x3ab8d2,_0x48e2b4=null,_0xebbded=null;try{if(_0x4519c0==_0x38f111([0x47,0x50,0x4c]))return _0x38f111([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3ab8d2=_0x29060b(),!_0x3ab8d2)return _0x38f111([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3ab8d2[_0x38f111([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xebbded=_0x2f2e39(_0x3ab8d2[_0x38f111([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3ab8d2[_0x38f111([0x6a,0x74,0x69])])),await _0x5e644c()?_0x36c4d5()?_0x539682()?_0x38f111([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xdfc9ba()?(_0x3ab8d2[_0x38f111([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x38f111([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x48e2b4=_0x465490(_0x38f111([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3ab8d2[_0x38f111([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x38f111([0x74,0x72,0x69,0x61,0x6c])&&(_0x48e2b4=_0x465490(_0x38f111([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4b9d05()):_0x38f111([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x38f111([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x38f111([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5a2f3d){return _0x38f111([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x539682(){const _0x1b0a0c=[_0x38f111([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x38f111([0x74,0x72,0x69,0x61,0x6c])][_0x38f111([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ab8d2[_0x38f111([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2cea4d/0x3e8:0xe10*_0xb1017f;return _0x3ab8d2[_0x38f111([0x65,0x78,0x70])]<_0x1b0a0c;}function _0x36c4d5(){const _0x6790f4=_0x3ab8d2[_0x38f111([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x6790f4)return!0x1;if(_0x6790f4[_0x38f111([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38f111([0x2a])))return!0x0;if(_0x6790f4[_0x38f111([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38f111([0x43,0x4d,0x54])))return!0x0;if(_0x6790f4[_0x38f111([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38f111([0x52,0x43,0x4d,0x54]))){if(_0x111686())return!0x0;if(_0x50a75a()||_0x126d5c())return!0x0;}return!0x1;}function _0xdfc9ba(){const _0x290705=_0x3ab8d2[_0x38f111([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x290705||0x0==_0x290705[_0x38f111([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1c4465}=new URL(window[_0x38f111([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x290705[_0x38f111([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c4465))return!0x0;const _0x3f8f35=_0x1c4465[_0x38f111([0x73,0x70,0x6c,0x69,0x74])](_0x38f111([0x2e]));return _0x290705[_0x38f111([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c539c=>_0x5c539c[_0x38f111([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38f111([0x2a])))[_0x38f111([0x6d,0x61,0x70])](_0x57016c=>_0x57016c[_0x38f111([0x73,0x70,0x6c,0x69,0x74])](_0x38f111([0x2e])))[_0x38f111([0x73,0x6f,0x6d,0x65])](_0x2033ee=>_0x3f8f35[_0x38f111([0x65,0x76,0x65,0x72,0x79])]((_0x3aaa92,_0x2bc160)=>_0x2033ee[_0x2bc160]===_0x3aaa92||_0x2033ee[_0x2bc160]===_0x38f111([0x2a])));}function _0x4b9d05(){return _0x48e2b4&&_0xebbded?new window[(_0x38f111([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58ef66,_0x59f02c)=>{_0x48e2b4[_0x38f111([0x74,0x68,0x65,0x6e])](_0x58ef66,_0x59f02c),_0xebbded[_0x38f111([0x74,0x68,0x65,0x6e])](_0x4d332b=>{_0x4d332b!=_0x38f111([0x56,0x61,0x6c,0x69,0x64])&&_0x58ef66(_0x4d332b);},_0x59f02c);}):_0x48e2b4||_0xebbded||_0x38f111([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2f2e39(_0x22fab4,_0x13b284){return new window[(_0x38f111([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xde3773=>{if(_0x1ba0eb())return _0xde3773(_0x38f111([0x56,0x61,0x6c,0x69,0x64]));_0x56a9eb(),_0x104c3a[_0x38f111([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x38f111([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2a576b=!0x1;const _0xd657b2=_0x23b87c();function _0x2c6813(_0x5ecb4e){return!!_0x5ecb4e&&(typeof _0x5ecb4e===_0x38f111([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5ecb4e===_0x38f111([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5ecb4e[_0x38f111([0x74,0x68,0x65,0x6e])]===_0x38f111([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5ecb4e[_0x38f111([0x63,0x61,0x74,0x63,0x68])]===_0x38f111([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2753c7(_0x941a1){_0x4ec25c(_0x941a1)[_0x38f111([0x74,0x68,0x65,0x6e])](_0x1e1b30=>{if(!_0x1e1b30||_0x1e1b30[_0x38f111([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x38f111([0x6f,0x6b]))return _0x38f111([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a3219(_0x3e9a9a(_0xd657b2+_0x13b284))!=_0x1e1b30[_0x38f111([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x38f111([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x38f111([0x56,0x61,0x6c,0x69,0x64]);})[_0x38f111([0x74,0x68,0x65,0x6e])](_0x129d09=>(_0x5a5bd9(),_0x129d09),()=>{const _0x39113a=_0x345f95();return null==_0x39113a?(_0x5a5bd9(),_0x38f111([0x56,0x61,0x6c,0x69,0x64])):_0x38f111(_0x2cea4d-_0x39113a>(0x55ed2444^_0x18b5d0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x38f111([0x74,0x68,0x65,0x6e])](_0xde3773)[_0x38f111([0x63,0x61,0x74,0x63,0x68])](()=>{_0xde3773(_0x38f111([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x531583=0x71d74ec4^_0x18b5d0;function _0x5a5bd9(){const _0x3a4a53=_0x38f111([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a3219(_0x3e9a9a(_0x22fab4)),_0x647376=_0x6dee71(_0x2a3219(window[_0x38f111([0x4d,0x61,0x74,0x68])][_0x38f111([0x63,0x65,0x69,0x6c])](_0x2cea4d/_0x531583)));window[_0x38f111([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38f111([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a4a53,_0x647376);}function _0x345f95(){const _0x4c9e59=_0x38f111([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a3219(_0x3e9a9a(_0x22fab4)),_0x17523d=window[_0x38f111([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38f111([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c9e59);return _0x17523d?window[_0x38f111([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6dee71(_0x17523d),0x10)*_0x531583:null;}function _0x4ec25c(_0x361dd9){return new window[(_0x38f111([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x526af3,_0x4b0485)=>{_0x361dd9[_0x38f111([0x74,0x68,0x65,0x6e])](_0x526af3,_0x4b0485),window[_0x38f111([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4b0485,0x71e07484^_0x18b5d0);});}}_0x104c3a[_0x38f111([0x6f,0x6e])](_0x38f111([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x506655,_0x448105)=>{if(_0x448105[0x0]!=_0x22fab4)return _0xde3773(_0x38f111([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x448105[0x1]={..._0x448105[0x1],[_0x38f111([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xd657b2};},{[_0x38f111([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38f111([0x68,0x69,0x67,0x68])}),_0x104c3a[_0x38f111([0x6f,0x6e])](_0x38f111([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x169d90=>{_0x2c6813(_0x169d90[_0x38f111([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2a576b=!0x0,_0x2753c7(_0x169d90[_0x38f111([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x38f111([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38f111([0x6c,0x6f,0x77])}),_0x25e545[_0x38f111([0x74,0x68,0x65,0x6e])](()=>{_0x2a576b||_0xde3773(_0x38f111([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1ba0eb(){return _0x104c3a[_0x38f111([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38f111([0x76,0x69,0x65,0x77])][_0x38f111([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x38f111([0x61,0x75,0x74,0x6f]);}function _0x56a9eb(){_0x104c3a[_0x38f111([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38f111([0x76,0x69,0x65,0x77])][_0x38f111([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x38f111([0x61,0x75,0x74,0x6f]);}}function _0x465490(_0x2f01b9){const _0x316968=[new window[(_0x38f111([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2638a3=>setTimeout(_0x2638a3,0x71e89e88^_0x18b5d0)),_0x25e545[_0x38f111([0x74,0x68,0x65,0x6e])](()=>new window[(_0x38f111([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b1495=>{let _0x179aab=0x0;_0x104c3a[_0x38f111([0x6d,0x6f,0x64,0x65,0x6c])][_0x38f111([0x6f,0x6e])](_0x38f111([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x244213,_0x4c5b6f)=>{_0x4c5b6f[0x0][_0x38f111([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x179aab++,_0x179aab==(0x71e1a1bc^_0x18b5d0)&&(_0x3b1495(),_0x244213[_0x38f111([0x6f,0x66,0x66])]());});}))];return window[_0x38f111([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x38f111([0x72,0x61,0x63,0x65])](_0x316968)[_0x38f111([0x74,0x68,0x65,0x6e])](()=>_0x2f01b9);}async function _0x4d4bb0(){await _0x25e545,_0x104c3a[_0x38f111([0x6d,0x6f,0x64,0x65,0x6c])][_0x38f111([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x51110f,_0x104c3a[_0x38f111([0x6d,0x6f,0x64,0x65,0x6c])][_0x38f111([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x51110f,_0x104c3a[_0x38f111([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x38f111([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x111686(){return _0x5bb198(_0x38f111([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5bf18e(_0x38f111([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x38f111([0x73,0x74,0x61,0x74,0x65])]==_0x38f111([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x50a75a(){return _0x5bb198(_0x38f111([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 _0x126d5c(){return _0x5bb198(_0x38f111([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xb2639f(_0xbcd550){const _0x203017=_0x2d1fb5();_0x104c3a[_0x203017]=_0x38f111([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xbcd550,_0xbcd550!=_0x38f111([0x56,0x61,0x6c,0x69,0x64])&&_0x4d4bb0();}function _0x2d1fb5(){const _0x161eff=window[_0x38f111([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x38f111([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x38f111([0x6e,0x6f,0x77])]())[_0x38f111([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x38f111([0x2e]),'');let _0x23f3e1=_0x38f111([0x6e]);for(let _0xc02238=0x0;_0xc02238<_0x161eff[_0x38f111([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc02238+=0x2){let _0x50f653=window[_0x38f111([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x161eff[_0x38f111([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc02238,_0xc02238+0x2));_0x50f653>=_0x3b7748[_0x38f111([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x50f653-=_0x3b7748[_0x38f111([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x23f3e1+=_0x3b7748[_0x50f653];}return _0x23f3e1;}function _0x29060b(){const _0x3274ad=_0x4519c0[_0x38f111([0x73,0x70,0x6c,0x69,0x74])](_0x38f111([0x2e]));if(0x3!=_0x3274ad[_0x38f111([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5e7eca(_0x3274ad[0x1]);function _0x5e7eca(_0x573f1c){const _0x34aaf3=_0x104950(_0x573f1c);return _0x34aaf3&&_0x402c56()?_0x34aaf3:null;function _0x402c56(){const _0x4e0e08=_0x34aaf3[_0x38f111([0x6a,0x74,0x69])],_0x50070c=window[_0x38f111([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e0e08[_0x38f111([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e0e08[_0x38f111([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4b0c83={..._0x34aaf3,[_0x38f111([0x6a,0x74,0x69])]:_0x4e0e08[_0x38f111([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4e0e08[_0x38f111([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4b0c83[_0x38f111([0x76,0x63])],_0x3e9a9a(_0x4b0c83)==_0x50070c;}}}async function _0x5e644c(){let _0x2bfcce=!0x0;try{const _0x477e3a=_0x4519c0[_0x38f111([0x73,0x70,0x6c,0x69,0x74])](_0x38f111([0x2e])),[_0x5a0628,_0x500c24,_0x5fd7c7]=_0x477e3a;return _0x14a283(_0x5a0628),await _0x4ef8f1(_0x5a0628,_0x500c24,_0x5fd7c7),_0x2bfcce;}catch(_0x10ea67){return!0x1;}function _0x14a283(_0x4eaaf1){const _0x4a515c=_0x104950(_0x4eaaf1);_0x4a515c&&_0x4a515c[_0x38f111([0x61,0x6c,0x67])]==_0x38f111([0x45,0x53,0x32,0x35,0x36])||(_0x2bfcce=!0x1);}async function _0x4ef8f1(_0x67de15,_0x32f451,_0x328cf3){const _0x381607=window[_0x38f111([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x38f111([0x66,0x72,0x6f,0x6d])](_0x56978e(_0x328cf3),_0x1d097e=>_0x1d097e[_0x38f111([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4bcbf6=new window[(_0x38f111([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x38f111([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x67de15+_0x38f111([0x2e])+_0x32f451),_0x227ff9=window[_0x38f111([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x38f111([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x227ff9)return;const _0x3ad75f=await _0x227ff9[_0x38f111([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x38f111([0x6a,0x77,0x6b]),_0xa0ea86,{[_0x38f111([0x6e,0x61,0x6d,0x65])]:_0x38f111([0x45,0x43,0x44,0x53,0x41]),[_0x38f111([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x38f111([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x38f111([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x227ff9[_0x38f111([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x38f111([0x6e,0x61,0x6d,0x65])]:_0x38f111([0x45,0x43,0x44,0x53,0x41]),[_0x38f111([0x68,0x61,0x73,0x68])]:{[_0x38f111([0x6e,0x61,0x6d,0x65])]:_0x38f111([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3ad75f,_0x381607,_0x4bcbf6)||(_0x2bfcce=!0x1);}}function _0x104950(_0x58fccb){return _0x58fccb[_0x38f111([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x38f111([0x65,0x79]))?JSON[_0x38f111([0x70,0x61,0x72,0x73,0x65])](_0x56978e(_0x58fccb)):null;}function _0x56978e(_0x15d689){return window[_0x38f111([0x61,0x74,0x6f,0x62])](_0x15d689[_0x38f111([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x38f111([0x2b]))[_0x38f111([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x38f111([0x2f])));}function _0x3e9a9a(_0x177452){let _0x46ac53=0x1505;function _0x3f5ee1(_0x1f1696){for(let _0x1f82ca=0x0;_0x1f82ca<_0x1f1696[_0x38f111([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f82ca++){const _0x2b1c94=_0x1f1696[_0x38f111([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f82ca);_0x46ac53=(_0x46ac53<<0x5)+_0x46ac53+_0x2b1c94,_0x46ac53&=_0x46ac53;}}function _0x122cf5(_0x16ba71){Array[_0x38f111([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x16ba71)?_0x16ba71[_0x38f111([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x122cf5):_0x16ba71&&typeof _0x16ba71==_0x38f111([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x38f111([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x16ba71)[_0x38f111([0x73,0x6f,0x72,0x74])]()[_0x38f111([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2ed103,_0x59cbd2])=>{_0x3f5ee1(_0x2ed103),_0x122cf5(_0x59cbd2);}):_0x3f5ee1(window[_0x38f111([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x16ba71));}return _0x122cf5(_0x177452),_0x46ac53>>>0x0;}function _0x2a3219(_0x390a4d){return _0x390a4d[_0x38f111([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x38f111([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x38f111([0x30]));}function _0x6dee71(_0x2bdb8a){return _0x2bdb8a[_0x38f111([0x73,0x70,0x6c,0x69,0x74])]('')[_0x38f111([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x38f111([0x6a,0x6f,0x69,0x6e])]('');}function _0x5bb198(_0x1051db){return _0x104c3a[_0x38f111([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x38f111([0x68,0x61,0x73])](_0x1051db);}function _0x5bf18e(_0x3210a1){return _0x104c3a[_0x38f111([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x38f111([0x67,0x65,0x74])](_0x3210a1);}function _0x51110f(){}function _0x38f111(_0x460f98){return _0x460f98['map'](_0x453fe9=>String['fromCharCode'](_0x453fe9))['join']('');}_0xb2639f(await _0x5cc0ce());}(this);}['destroy'](){const _0x3cf550=this['editor']['plugins']['get'](o),_0x29871c=this['editor']['config']['get']('collaboration.channelId');for(const _0x27d450 of _0x3cf550['getCommentThreads']({'channelId':_0x29871c}))_0x3cf550['_detachCommentThread'](_0x27d450['id']),_0x3cf550['_threads']['delete'](_0x27d450['id']);super['destroy']();}['hasMarkerForId'](_0x5f2c00){return this['getAllMarkersForId'](_0x5f2c00)['length']>0x0;}['getAllMarkersForId'](_0x15bbb8){const _0x5314bf=[];for(const _0x2cadd3 of this['editor']['model']['markers'])_0x2cadd3['name']['startsWith']('comment:'+_0x15bbb8)&&_0x5314bf['push'](_0x2cadd3);return _0x5314bf;}['scrollToThreadMarker'](_0xd33c72){const _0x5adcd6=this['_getTargetForId'](_0xd33c72);_0x5adcd6&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0xd33c72&&rt({'target':_0x5adcd6[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x562338){this['editor']['model']['change'](()=>{for(const _0xb6e430 of this['getAllMarkersForId'](_0x562338))this['editor']['editing']['reconvertMarker'](_0xb6e430);});}['_attachArchivedThread'](_0x1d260e){const _0x173433=this['editor']['plugins']['get'](o),_0x4cfb64=this['editor']['plugins']['get'](P),_0x463425=_0x173433['getCommentThread'](_0x1d260e);if(!_0x463425['isAttached']){const _0x418133=_0x463425['attachTo'](()=>this['_getTargetForId'](_0x463425['id']));_0x4cfb64['registerAnnotation'](_0x418133),_0x463425['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x4a4607=this['editor'],_0xf28ee8=_0x4a4607['plugins']['get'](it);_0x4a4607['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x1d9cfb,_0x3d8238)=>{const {id:_0x3cd089}=er(_0x1d9cfb['markerName']),_0x4d4307=_0x4a4607['plugins']['get'](o)['getCommentThread'](_0x3cd089),_0x157f47=this['activeMarker']&&er(this['activeMarker'])['id']===_0x3cd089;let _0x3a5aee;if(_0x4d4307&&_0x4d4307['isResolved']&&!_0x157f47&&_0x1d9cfb['item'])return _0x3d8238['consumable']['consume'](_0x1d9cfb['item'],'addMarker:'+_0x1d9cfb['markerName']),_0x3d8238['consumable']['consume'](_0x1d9cfb['item'],'removeMarker:'+_0x1d9cfb['markerName']),null;const _0x32c453=['ck-comment-marker'];return _0x157f47&&_0x32c453['push']('ck-comment-marker--active'),_0x3a5aee=_0x4d4307&&_0x4d4307['length']?_0x4d4307['comments']['first']['author']['id']:_0xf28ee8['me']['id'],{'classes':_0x32c453,'attributes':{'data-comment':_0x3cd089,'data-author-id':_0x3a5aee}};}}),_0x4a4607['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x5047b0,{options:_0x45a720})=>{if(_0x45a720['showCommentHighlights'])return null;const _0x7a28ab=_0x4a4607['plugins']['get'](o),_0x3b086b=_0x4a4607['model']['markers']['get'](_0x5047b0),{id:_0x9534d9,part:_0x4796a8}=er(_0x5047b0);if(_0x3b086b&&!_0x3b086b['affectsData'])return null;if(_0x45a720['ignoreResolvedComments']){const _0x3d058d=_0x7a28ab['getCommentThread'](_0x9534d9);if(_0x3d058d&&_0x3d058d['isResolved'])return null;}return{'group':'comment','name':_0x4796a8?_0x9534d9+':'+_0x4796a8:_0x9534d9};}}),_0x4a4607['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x41b477,{writer:_0x470b75})=>_0x470b75['createElement']('$marker',{'data-name':'comment:'+_0x41b477['getAttribute']('id')})}),_0x4a4607['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x41169b=this['editor'],_0xa09c3a=_0x41169b['plugins']['get'](o),_0x2bbab8=new Set(),_0xfa93b1=new Set();_0x41169b['model']['document']['registerPostFixer'](_0x49a80c=>{let _0x3216c7=!0x1;for(const {name:_0x440dc2,data:_0x2af374}of _0x41169b['model']['document']['differ']['getChangedMarkers']()){const {group:_0xd15ec8,id:_0x19c4bb}=er(_0x440dc2);let _0x1178f6=_0x2af374['newRange'];if('comment'!==_0xd15ec8||!_0x1178f6)continue;const _0xe5991a='$graveyard'===_0x1178f6['root']['rootName'];_0xe5991a||(_0x1178f6=dt(_0x1178f6,_0x41169b['model']),!_0x1178f6||_0x1178f6['isCollapsed']||!_0x2af374['newRange']||_0x1178f6['isEqual'](_0x2af374['newRange']))?_0x41169b['model']['hasContent'](_0x1178f6)&&!_0xe5991a?this['isThreadsLoadingPaused']?_0x2bbab8['add'](_0x440dc2):this['_handleThreadMarker'](_0x440dc2,_0x19c4bb):(_0xfa93b1['add'](_0x440dc2),_0x2bbab8['delete'](_0x440dc2),_0x49a80c['removeMarker'](_0x440dc2),_0x3216c7=!0x0):(_0x49a80c['updateMarker'](_0x440dc2,{'range':_0x1178f6}),_0x3216c7=!0x0);}return _0x3216c7;}),this['on']('change:isThreadsLoadingPaused',(_0x3ac955,_0x5f0900,_0x25c51c)=>{if(!_0x25c51c&&_0x2bbab8['size'])for(const _0x50b02e of _0x2bbab8){const {id:_0x555aac}=er(_0x50b02e);_0x2bbab8['delete'](_0x50b02e),_0x41169b['model']['markers']['get'](_0x50b02e)&&this['_handleThreadMarker'](_0x50b02e,_0x555aac);}}),this['listenTo'](_0x41169b['model']['document'],'change',()=>{for(const {name:_0x5df5e1,data:{newRange:_0x5d6b52}}of _0x41169b['model']['document']['differ']['getChangedMarkers']()){const {group:_0x103ca1,id:_0x48112d}=er(_0x5df5e1);if('comment'!==_0x103ca1)continue;const _0x1fea6c=_0xa09c3a['getCommentThread'](_0x48112d),_0x202c0e=this['hasMarkerForId'](_0x48112d);_0x1fea6c&&(!_0x1fea6c['_hasTargetInContent']&&_0x5d6b52&&_0x41169b['editing']['view']['once']('render',()=>{const _0x245280=_0x41169b['plugins']['get'](N),_0x55b191=_0xa09c3a['_threadToController']['get'](_0x1fea6c)['view'];_0x245280['getByInnerView'](_0x55b191)['refreshVisibility']();},{'priority':'low'}),_0x1fea6c['_hasTargetInContent']=_0x202c0e||!!_0x5d6b52),_0x5d6b52||(_0xfa93b1['add'](_0x5df5e1),_0x2bbab8['delete'](_0x5df5e1));}for(const _0x15c352 of _0xfa93b1){const {id:_0x12321d}=er(_0x15c352),_0x3a1600=_0xa09c3a['getCommentThread'](_0x12321d);if(_0x2bbab8['delete'](_0x15c352),!_0x3a1600)continue;const _0x39b762=this['hasMarkerForId'](_0x12321d);_0x39b762||_0x3a1600['isSubmitted']?_0x39b762||_0x3a1600['unlinkedAt']||_0x3a1600['setUnlinkedAt'](new Date()):_0x3a1600['remove']();}_0xfa93b1['clear']();});}['_handleInitialThreads'](_0x5a6960){_0x5a6960['forEach'](_0x4fec19=>{_0x4fec19['unlinkedAt']&&this['_attachArchivedThread'](_0x4fec19['id']);});}['_getTargetForId'](_0x3669f6){const _0x282fc5=this['editor'],_0x4ac7c8=this['getAllMarkersForId'](_0x3669f6);return et(_0x282fc5['editing'],_0x4ac7c8);}['_getTextContext'](_0x170d54){const _0x4c5d25=this['getAllMarkersForId'](_0x170d54);let _0x54221f='',_0x44356c=!0x1;for(const _0x14b3ec of _0x4c5d25){const _0x220b8d=_0x14b3ec['getRange']();for(const _0x580905 of Array['from'](_0x220b8d['getItems']()))_0x580905['is']('$textProxy')?(_0x54221f&&_0x44356c&&(_0x54221f+='\x20',_0x44356c=!0x1),_0x54221f+=_0x580905['data']):_0x44356c=!0x0;_0x44356c=!0x0;}return _0x54221f['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x51e239,_0xc3f43e){const _0x286915=this['editor'],_0x20bba6=_0x286915['plugins']['get'](o);let _0x51c8e0=_0x20bba6['getCommentThread'](_0xc3f43e);const _0x428b95=_0x286915['config']['get']('collaboration.channelId'),_0x5f205b=_0x286915['plugins']['get'](P);if(_0x51c8e0&&(_0x51c8e0['unlinkedAt']&&_0x51c8e0['setUnlinkedAt'](null),_0x51c8e0['isAttached']))return _0x51c8e0;return!this['getAllMarkersForId'](_0xc3f43e)[0x0]['managedUsingOperations']?_0x286915['editing']['view']['once']('render',()=>{if(_0x20bba6['getCommentThread'](_0xc3f43e))return;const _0x302bc1=_0x286915['plugins']['get'](N);_0x51c8e0=_0x20bba6['openNewCommentThread']({'channelId':_0x428b95,'threadId':_0xc3f43e,'target':()=>this['_getTargetForId'](_0xc3f43e),'context':{'type':'text','value':this['_getTextContext'](_0xc3f43e)}});const _0x2f78ae=_0x20bba6['_threadToController']['get'](_0x51c8e0)['view'],_0x3494d2=_0x302bc1['getByInnerView'](_0x2f78ae);_0x3494d2&&_0x5f205b['registerAnnotation'](_0x3494d2);},{'priority':'low'}):_0x20bba6['fetchCommentThread']({'channelId':_0x428b95,'threadId':_0xc3f43e})['then'](_0x49a54f=>{if('destroyed'!==_0x286915['state']){if(_0x51c8e0=_0x49a54f,_0x51c8e0&&!_0x51c8e0['isAttached']){const _0x236c0f=_0x51c8e0['attachTo'](()=>this['_getTargetForId'](_0xc3f43e));_0x5f205b['registerAnnotation'](_0x236c0f),_0x51c8e0['isResolved']&&this['_reconvertMarkers'](_0xc3f43e);}else{if(!_0x51c8e0){const _0x8b3f8f=this['getAllMarkersForId'](_0xc3f43e);_0x286915['model']['change'](_0x89a6ee=>{for(const _0x4dd04a of _0x8b3f8f)_0x89a6ee['removeMarker'](_0x4dd04a);});}}}}),_0x51c8e0;}['_handleThreadMarker'](_0x987c27,_0x15a469){const _0x2599ca=this['_attachMarkerToThread'](_0x987c27,_0x15a469);_0x2599ca&&!_0x2599ca['context']&&_0x2599ca['setContext']({'type':'text','value':this['_getTextContext'](_0x15a469)});}['_initAriaMarkerChangeAnnouncements'](){const _0x15859c=this['editor'];ot(_0x15859c['model'],({left:_0x4e4a0c,entered:_0x2bb79b})=>{for(const _0x15feca of _0x4e4a0c)if(mt(_0x15feca)){_0x15859c['ui']['ariaLiveAnnouncer']['announce'](S(_0x15859c['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x319ecb of _0x2bb79b)if(mt(_0x319ecb)){_0x15859c['ui']['ariaLiveAnnouncer']['announce'](S(_0x15859c['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x56abeb)));break;}});}}function ft(_0x1bd854,_0x70180e){return _0x70180e?_0x1bd854+':'+_0x70180e:_0x1bd854;}function er(_0x3294b7){const _0x1968b5=_0x3294b7['split'](':');return{'group':_0x1968b5[0x0],'id':_0x1968b5[0x1],'part':_0x1968b5[0x2]};}function dt(_0x2eb83c,_0x3e7cea){const _0xc97d8d=_0x3e7cea['schema'],_0x206a43=_0x3e7cea['createRange'](_0x2eb83c['start']);for(const _0x1d6b63 of _0x2eb83c['getWalker']()){const {type:_0x35846f,item:_0x49204f,nextPosition:_0x375ebc}=_0x1d6b63;if('text'===_0x35846f||_0xc97d8d['isObject'](_0x49204f)){const _0x322a48=_0x3e7cea['createPositionBefore'](_0x49204f);_0x206a43['isCollapsed']&&(_0x206a43['start']=_0x322a48),_0x206a43['end']=_0x375ebc;}}return _0x206a43;}function mt(_0x16ded2){return'comment'===er(_0x16ded2['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-2025,\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 _0x5ab294{['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 _0x214304=this['editor'],_0x22af35=_0x214304['plugins']['get'](o),_0x3d5974=_0x214304['plugins']['get'](r),_0x2311dc=_0x214304['plugins']['get'](N),_0x597ade=_0x214304['plugins']['get'](P);_0x214304['ui']['componentFactory']['add']('comment',()=>{const _0x5b4ec7=this['_createUIButton'](_0x3bfc4d);return _0x5b4ec7['tooltip']=!0x0,_0x5b4ec7;}),_0x214304['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x4cf37f)),_0x597ade['addSourceCollector'](()=>{const _0x171025=[];for(const [_0x69737e,_0x14927b]of _0x22af35['_threadToController']){const _0x5ac017=_0x3d5974['getAllMarkersForId'](_0x69737e['id']),_0x108f0d=_0x5ac017['map'](_0x1f1839=>_0x1f1839['getRange']());_0x5ac017['length']>0x0&&_0x171025['push']([_0x14927b['view'],_0x108f0d]);}return _0x171025;}),this['listenTo'](_0x2311dc,'change:activeAnnotations',(_0x16ca63,_0x56fe8b,_0x205243)=>{const _0x480331=Array['from'](_0x205243)['map'](_0x4141d4=>_0x4141d4['innerView'])['find'](_0x49bf13=>_0x22af35['_viewToController']['has'](_0x49bf13));if(!_0x480331)return void(_0x3d5974['activeMarker']=null);const _0x24eb0d=_0x22af35['_viewToController']['get'](_0x480331)['model']['id'],_0x554427='comment:'+_0x24eb0d;_0x24eb0d&&_0x3d5974['hasMarkerForId'](_0x24eb0d)?_0x3d5974['activeMarker']=_0x554427:_0x3d5974['activeMarker']&&(_0x3d5974['activeMarker']=null);}),this['listenTo'](_0x22af35,'removeCommentThread',(_0x2ef2d1,{threadId:_0x2e64f0,isFromAdapter:_0x59a1c2})=>{!_0x59a1c2&&_0x214304['ui']['focusTracker']['isFocused']&&_0x3d5974['hasMarkerForId'](_0x2e64f0)&&_0x214304['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x22af35,'addComment',(_0x20176c,{threadId:_0x2ee030,isFromAdapter:_0x11395c})=>{if(_0x11395c||!_0x3d5974['hasMarkerForId'](_0x2ee030)||!_0x22af35['hasCommentThread'](_0x2ee030))return;0x1===_0x22af35['getCommentThread'](_0x2ee030)['length']&&(_0x214304['editing']['view']['focus'](),_0x20176c['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x555259=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xc85b9a;for(const _0x11eaf4 in _0x555259){const _0x9fff39=_0x11eaf4,_0x5bce68=_0x555259[_0x9fff39];if('commentsLicenseKeyValid'==_0x5bce68||'commentsLicenseKeyInvalid'==_0x5bce68||'commentsLicenseKeyExpired'==_0x5bce68||'commentsLicenseKeyDomainLimit'==_0x5bce68||'commentsLicenseKeyNotAllowed'==_0x5bce68||'commentsLicenseKeyEvaluationLimit'==_0x5bce68||'commentsLicenseKeyTrialLimit'==_0x5bce68||'commentsLicenseKeyUsageLimit'==_0x5bce68){delete _0x555259[_0x9fff39],_0xc85b9a=_0x5bce68,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0xc85b9a&&_0x555259['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0xc85b9a&&_0x555259['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0xc85b9a&&_0x555259['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0xc85b9a&&_0x555259['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0xc85b9a&&_0x555259['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0xc85b9a&&_0x555259['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0xc85b9a&&_0x555259['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x42b99f){const _0x2197bf=this['editor'],_0x2ae46f=new _0x42b99f(_0x2197bf['locale']),_0x365158=_0x2197bf['commands']['get']('addCommentThread');return _0x2ae46f['set']({'label':S(_0x2197bf['locale'],'Comment'),'icon':xt}),_0x2ae46f['bind']('isEnabled')['to'](_0x365158),this['listenTo'](_0x2ae46f,'execute',()=>{_0x2197bf['editing']['view']['focus'](),_0x365158['execute']();}),_0x2ae46f;}}class s extends _0x5ab294{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x1c0967){super(_0x1c0967),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x219291,_0xf4a18,_0x85d9e3)=>{_0x85d9e3?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x14b62f,_0x11be19]of this['editor']['commands'])_0x11be19['affectsData']&&'addCommentThread'!==_0x14b62f&&_0x11be19['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing'))&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x4fe266=this['editor']['editing']['view']['document'];this['listenTo'](_0x4fe266,'cut',_0x839c38=>_0x839c38['stop'](),{'priority':'highest'}),this['listenTo'](_0x4fe266,'clipboardInput',_0x546bed=>_0x546bed['stop'](),{'priority':'highest'}),this['listenTo'](_0x4fe266,'delete',_0x5990cf=>_0x5990cf['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x55ddbb,_0x443f8c]of this['editor']['commands'])_0x443f8c['affectsData']&&'addCommentThread'!==_0x55ddbb&&_0x443f8c['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x4ad5c3{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5eb384){super(_0x5eb384),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x4f8be8=this['context']['plugins']['get'](N);this['listenTo'](_0x4f8be8,'_activateAnnotation',(_0x343194,_0x2fbe8e)=>{for(const _0x49f71c of this['activeUIs']){const _0x1cd76f=this['_uis']['get'](_0x49f71c);(0x0,this['_uisData']['get'](_0x49f71c)['filter'])(_0x2fbe8e)&&_0x1cd76f['setActiveAnnotation'](_0x2fbe8e);}}),this['listenTo'](_0x4f8be8,'_deactivateAllAnnotations',()=>{for(const _0x25456f of this['activeUIs']){this['_uis']['get'](_0x25456f)['setActiveAnnotation'](null);}}),this['listenTo'](_0x4f8be8['_visibleAnnotations'],'add',(_0x5a0da8,_0x3566fe)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3566fe);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x58e0fb){return this['activeUIs']['has'](_0x58e0fb);}['activate'](_0x151d6f,_0x1b2758=()=>!0x0){const _0x28b772=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x151d6f))throw new _0x487ab6('annotationsuis-missing-ui',this,{'uiName':_0x151d6f});this['isActive'](_0x151d6f)&&this['deactivate'](_0x151d6f),this['activeUIs']['add'](_0x151d6f);const _0x4048c0=new x();!function({source:_0x538a0b,target:_0x123fa7,filter:_0x46580c}){for(const _0x3bf9d3 of _0x538a0b)_0x46580c(_0x3bf9d3)&&_0x123fa7['add'](_0x3bf9d3);_0x123fa7['listenTo'](_0x538a0b,'add',(_0x43cf77,_0x32fdda)=>{_0x46580c(_0x32fdda)&&_0x123fa7['add'](_0x32fdda);}),_0x123fa7['listenTo'](_0x538a0b,'remove',(_0x128f1e,_0x5c0b24)=>{_0x123fa7['has'](_0x5c0b24)&&_0x123fa7['remove'](_0x5c0b24);});}({'source':_0x28b772['_visibleAnnotations'],'target':_0x4048c0,'filter':_0x1b2758}),this['_uisData']['set'](_0x151d6f,{'collection':_0x4048c0,'filter':_0x1b2758});const _0x5aff0d=this['_uis']['get'](_0x151d6f);_0x5aff0d['attach'](_0x4048c0),this['listenTo'](_0x5aff0d,'change:activeAnnotation',(_0x2cf43c,_0x4a5486,_0x2c1393,_0x1e4ccb)=>{_0x1e4ccb&&_0x28b772['_removeActiveAnnotation'](_0x1e4ccb),_0x2c1393&&_0x28b772['_addActiveAnnotation'](_0x2c1393);});}['deactivate'](_0x4c8016){if(this['activeUIs']['delete'](_0x4c8016),!this['_uis']['has'](_0x4c8016))throw new _0x487ab6('annotationsuis-missing-ui',this,{'uiName':_0x4c8016});const _0xc0cfbb=this['_uis']['get'](_0x4c8016);_0xc0cfbb['detach'](),this['stopListening'](_0xc0cfbb),this['_uisData']['get'](_0x4c8016)['collection']['destroy'](),this['_uisData']['delete'](_0x4c8016);}['switchTo'](_0x17b21c){if(!this['_uis']['has'](_0x17b21c))throw new _0x487ab6('annotationsuis-missing-ui',this,{'uiName':_0x17b21c});const _0x2bdd35=this['context']['plugins']['get'](N),_0x110ec9=Array['from'](_0x2bdd35['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x17b21c);const _0x4920ee=this['_uis']['get'](_0x17b21c);_0x4920ee['setActiveAnnotation'](_0x110ec9),_0x4920ee['_setSelectedAnnotations']&&_0x110ec9&&_0x4920ee['_setSelectedAnnotations']([_0x110ec9]);}['deactivateAll'](){for(const _0x4204eb of this['activeUIs'])this['deactivate'](_0x4204eb);}['register'](_0x120c57,_0x996608){if(this['_uis']['has'](_0x120c57))throw new _0x487ab6('annotationsuis-register-already-registered');if('function'!=typeof _0x996608['attach']||'function'!=typeof _0x996608['detach']||'function'!=typeof _0x996608['setActiveAnnotation'])throw new _0x487ab6('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x120c57,_0x996608);}['refilterAnnotations'](){const _0xd2cb0a=this['context']['plugins']['get'](N)['collection'],_0x17e8db=new Map(),_0x21a789=Array['from'](this['activeUIs']);for(const _0x49d90d of this['activeUIs']){const _0x2ec88b=this['_uisData']['get'](_0x49d90d)['collection'];for(const _0x51778d of _0x2ec88b)_0x17e8db['set'](_0x51778d,_0x49d90d);}for(const _0x4b3388 of _0xd2cb0a){const _0xbb569=_0x17e8db['get'](_0x4b3388);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4b3388);const _0x1e5a9f=_0x21a789['find'](_0x22f7ea=>this['_uisData']['get'](_0x22f7ea)['filter'](_0x4b3388));_0xbb569!==_0x1e5a9f&&(_0xbb569&&this['_uisData']['get'](_0xbb569)['collection']['remove'](_0x4b3388),_0x1e5a9f&&this['_uisData']['get'](_0x1e5a9f)['collection']['add'](_0x4b3388));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xb6ca72){const _0x5786dc=[];for(const _0x7b1ce3 of this['activeUIs']){(0x0,this['_uisData']['get'](_0x7b1ce3)['filter'])(_0xb6ca72)&&_0x5786dc['push'](_0x7b1ce3);}if(_0x5786dc['length']>0x1)throw new _0x487ab6('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x5786dc,'annotationType':_0xb6ca72['type']});}}const he=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x154dec){super(_0x154dec);const _0x18d9c7=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 _0x5414ac(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x18d9c7['to']('class')],'style':{'minHeight':_0x18d9c7['to']('minHeight',_0x110a22=>'number'==typeof _0x110a22?he(_0x110a22+0xa):null)},'dir':_0x154dec['uiLanguageDirection'],'role':'application','aria-label':S(_0x154dec,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x154dec,'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',_0xfd8e18=>{this['_updateItemPositionInFocusables'](_0xfd8e18['source']);}),this['list']['forEach'](_0x4d8f51=>{this['focusTracker']['add'](_0x4d8f51['element']),this['_updateItemPositionInFocusables'](_0x4d8f51);}),this['list']['on']('change',(_0x3aaa42,_0xffd9a6)=>{for(const _0x222168 of _0xffd9a6['removed'])this['focusTracker']['remove'](_0x222168['element']),this['focusables']['remove'](_0x222168);for(const _0x525b0c of _0xffd9a6['added'])this['focusTracker']['add'](_0x525b0c['element']),this['_updateItemPositionInFocusables'](_0x525b0c);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x2b70a0){const _0x10ec9e=this['focusables']['getIndex'](_0x2b70a0);let _0x218e89,_0x4d57ce;for(const _0x40aaba of this['focusables'])if(_0x2b70a0['top']<_0x40aaba['top']){_0x218e89=_0x40aaba;break;}if(_0x4d57ce=_0x218e89?this['focusables']['getIndex'](_0x218e89):this['focusables']['length'],-0x1!==_0x10ec9e){if(_0x10ec9e===_0x4d57ce-0x1)return;this['focusables']['remove'](_0x2b70a0),_0x4d57ce=_0x218e89?this['focusables']['getIndex'](_0x218e89):this['focusables']['length'];}this['focusables']['add'](_0x2b70a0,_0x4d57ce);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x3759ca){super(_0x3759ca),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x17ac12,_0x40856e)=>_0x17ac12+_0x40856e),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x3fed4a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x3fed4a['to']('isAnimationDisabled',_0x5e058c=>_0x5e058c?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x3fed4a['to']('top',_0xcde724=>qt(_0xcde724))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0xf9871c=this['element']['clientHeight'];_0xf9871c&&(this['height']=_0xf9871c);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x4ad5c3{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5ba091){super(_0x5ba091),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 _0x51e899=this['context']['config']['get']('sidebar.container');_0x51e899&&this['setContainer'](_0x51e899);}['setContainer'](_0xf4fd28){if(!y(_0xf4fd28))throw new _0x487ab6('sidebar-setcontainer-invalid-element');this['container']=_0xf4fd28;}['_attachToContainer']({viewClass:_0x55f2f6='',spaceBetweenItems:_0x18c861=0x19}={}){if(!y(this['container']))throw new _0x487ab6('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x55f2f6,this['_spaceBetweenItems']=_0x18c861;}['rearrange']({removedAnnotation:_0x532f7d,previousAnnotation:_0x54e1e7,nextAnnotation:_0x19d387}){const _0x324416=this['getSidebarItemView'](_0x532f7d);this['view']['list']['remove'](_0x324416),this['_destroySidebarItemView'](_0x532f7d),_0x54e1e7&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x54e1e7)),_0x19d387&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x19d387)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x27e962,activatedAnnotation:_0x375fe2,disableAnimationOnActivatedAnnotation:_0x53d228}){if(this['_activeAnnotation']=_0x375fe2,_0x27e962){_0x27e962['isActive']=!0x1;const _0x3ce1d3=this['getSidebarItemView'](_0x27e962);_0x3ce1d3&&_0x53d228&&(_0x3ce1d3['isAnimationDisabled']=!0x1);}if(_0x375fe2){const _0xcbbb5a=this['getSidebarItemView'](_0x375fe2);_0xcbbb5a&&(_0x375fe2['isActive']=!0x0,_0x53d228&&(_0xcbbb5a['isAnimationDisabled']=!0x0,_0xcbbb5a['top']+=0x1),this['_alignToTargetRect'](_0xcbbb5a));}}['_detachFromContainer'](_0x31d3d3){if(this['view']['element']['remove'](),_0x31d3d3){for(const _0x2b794d of _0x31d3d3)this['_destroySidebarItemView'](_0x2b794d);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x2cb60c,_0x5a30c5){_0x5a30c5||(_0x5a30c5=_0x2cb60c['view']);const _0x5b2b4a=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x5b2b4a,_0x2cb60c),this['_annotationToSidebarItemView']['set'](_0x2cb60c,_0x5b2b4a),_0x5b2b4a['content']['add'](_0x5a30c5),this['listenTo'](_0x2cb60c['view'],'change:targetRect',(_0x36d391,_0x2aa762,_0x22039c)=>{const _0x5deebf=this['_getTargetTop'](_0x2cb60c,_0x22039c);_0x5b2b4a['_targetTop']!=_0x5deebf&&(_0x5b2b4a['_targetTop']=_0x5deebf,this['_setItemTop'](_0x5b2b4a,_0x5deebf));}),this['listenTo'](_0x5b2b4a,'change:top',()=>{this['_recalculate'](_0x5b2b4a,'top');}),this['listenTo'](_0x5b2b4a,'change:bottom',()=>{this['_recalculate'](_0x5b2b4a,'bottom');}),this['_alignToTargetRect'](_0x5b2b4a);const _0x1dc21a=this['_getItemBefore'](_0x5b2b4a);if(_0x1dc21a)this['_alignAfterItem'](_0x1dc21a,_0x5b2b4a)||this['_alignToTargetRect'](_0x5b2b4a);else this['_alignToTargetRect'](_0x5b2b4a);return this['_updateLastItem'](),this['view']['list']['add'](_0x5b2b4a),_0x5b2b4a;}['_alignForTopChange'](_0x17c995){if(!_0x17c995['content']['length'])return;const _0x52312f=this['_getItemBefore'](_0x17c995);if(!_0x52312f)return;const _0x3bb322=this['_sidebarItemViewToAnnotation']['get'](_0x52312f),_0x2064fa=this['_activeAnnotation'];_0x2064fa&&_0x2064fa===_0x3bb322?this['_alignAfterItem'](_0x52312f,_0x17c995):this['_alignBeforeItem'](_0x17c995,_0x52312f);}['_alignForBottomChange'](_0x3b0cbb){if(!_0x3b0cbb['content']['length'])return;const _0x45f391=this['_getItemAfter'](_0x3b0cbb);if(!_0x45f391)return;const _0x3638f0=this['_sidebarItemViewToAnnotation']['get'](_0x45f391),_0x5915f8=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x57cd8c=this['_activeAnnotation'];_0x57cd8c&&_0x57cd8c===_0x3638f0&&_0x5915f8?(this['_alignBeforeItem'](_0x45f391,_0x3b0cbb),this['_alignAfterItem'](_0x3b0cbb,_0x45f391)):_0x57cd8c&&_0x57cd8c===_0x3638f0?this['_alignBeforeItem'](_0x45f391,_0x3b0cbb):this['_alignAfterItem'](_0x3b0cbb,_0x45f391);}['_recalculate'](_0x4c094a,_0x26820c){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x2fc6e9,changedProp:_0x5c2846}of this['_recalculateBuffer'])'top'===_0x5c2846?this['_alignForTopChange'](_0x2fc6e9):this['_alignForBottomChange'](_0x2fc6e9);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x4c094a,'changedProp':_0x26820c});}['getSidebarItemView'](_0x44f662){return this['_annotationToSidebarItemView']['get'](_0x44f662);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x2a67ea){const _0x24f4eb=this['getSidebarItemView'](_0x2a67ea);this['stopListening'](_0x24f4eb),this['stopListening'](_0x2a67ea['view']),_0x24f4eb['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x2a67ea),this['_sidebarItemViewToAnnotation']['delete'](_0x24f4eb);}['_createSidebarView'](){const _0x7cbbbe=new V(this['context']['locale']);return _0x7cbbbe['render'](),this['on']('change:_lastItem',(_0x20f2e4,_0x50fa84,_0x2fe293,_0x3778c5)=>{_0x3778c5&&_0x7cbbbe['unbind']('minHeight'),_0x2fe293?_0x7cbbbe['bind']('minHeight')['to'](_0x2fe293,'bottom'):_0x7cbbbe['minHeight']=null;}),_0x7cbbbe;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x25e5c4){const _0xeed9b=this['_sidebarItemViewToAnnotation']['get'](_0x25e5c4),_0x488915=_0xeed9b&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0xeed9b)-0x1);return _0x488915&&this['getSidebarItemView'](_0x488915)||null;}['_getItemAfter'](_0x5098af){const _0x294006=this['_sidebarItemViewToAnnotation']['get'](_0x5098af),_0x1f233a=_0x294006&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x294006)+0x1);return _0x1f233a&&this['getSidebarItemView'](_0x1f233a)||null;}['_alignBeforeItem'](_0x2899db,_0x632e79){_0x2899db['updateHeight']();const _0x4fb59a=R(_0x632e79['bottom']+this['_spaceBetweenItems'],_0x2899db['top']);return!!_0x4fb59a&&(this['_setItemTop'](_0x632e79,_0x632e79['top']-_0x4fb59a),!0x0);}['_alignAfterItem'](_0x361b0b,_0x3942c6){_0x361b0b['updateHeight']();const _0x587ba5=R(_0x361b0b['bottom']+this['_spaceBetweenItems'],_0x3942c6['top']);return!!_0x587ba5&&(this['_setItemTop'](_0x3942c6,_0x3942c6['top']+_0x587ba5,!0x1),!0x0);}['_alignToTargetRect'](_0x45d121){const _0x5183db=this['_sidebarItemViewToAnnotation']['get'](_0x45d121);if(!_0x5183db||!_0x5183db['target']||!_0x5183db['targetRect'])return;const _0x959f03=this['_getTargetTop'](_0x5183db,_0x5183db['targetRect']);this['_setItemTop'](_0x45d121,_0x959f03);}['_getTargetTop'](_0x3ef41a,_0x171570){if(null===_0x171570)return 0x0;if(_0x3ef41a['target']instanceof _0x3b9eb0)return _0x171570['top'];{const _0x231502=new _0x3b9eb0(this['view']['element'])['top'];return _0x171570['top']-_0x231502;}}['_setItemTop'](_0x4e2afe,_0x42a8b3,_0x28ee21=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x28ee21&&(_0x42a8b3=Math['max'](_0x42a8b3,this['_getMaxAvailableTop'](_0x4e2afe))),_0x4e2afe['top']=_0x42a8b3;}['_getMaxAvailableTop'](_0x3648c4){let _0x479fa7=this['_getItemBefore'](_0x3648c4),_0x483dae=0x0;for(;_0x479fa7;)_0x479fa7['updateHeight'](),_0x483dae+=this['_spaceBetweenItems']+_0x479fa7['height'],_0x479fa7=this['_getItemBefore'](_0x479fa7);return _0x483dae;}}function R(_0x207332,_0x48479b){return Math['max'](_0x207332-_0x48479b,0x0);}function y(_0x451b2d){return null!==_0x451b2d&&'object'==typeof _0x451b2d&&0x1===_0x451b2d['nodeType'];}class e extends _0x4ad5c3{['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(_0x1dfb16){super(_0x1dfb16),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x1c34e7(),this['_refreshPositioningDebounced']=_0x1e4fec(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x2943a3=this['context']['plugins']['get'](M),_0x19e714=this['context']['plugins']['get'](z);_0x2943a3['register']('wideSidebar',this),_0x19e714['container']&&_0x2943a3['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x34aa5f){if(_0x34aa5f===this['activeAnnotation'])return;const _0x3ec274=this['context']['plugins']['get'](z);_0x3ec274['_activeAnnotation']=_0x34aa5f;const _0x2f80b9=this['activeAnnotation'];_0x3ec274['refresh']({'blurredAnnotation':_0x2f80b9,'activatedAnnotation':_0x34aa5f}),this['activeAnnotation']=_0x34aa5f;}['attach'](_0x5215e3){this['annotations']=_0x5215e3;const _0x73bcd2=this['context']['plugins']['get'](z);if(_0x73bcd2['_annotations']=_0x5215e3,this['isAttached'])throw new _0x487ab6('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x73bcd2,'set:container',()=>{this['detach'](),this['listenTo'](_0x73bcd2,'change:container',_0x3bf46a=>{_0x3bf46a['off'](),this['attach'](_0x5215e3);});}),_0x73bcd2['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x27e39a=_0x57402f=>{_0x57402f['updateTargetRect'](),_0x73bcd2['addAnnotation'](_0x57402f);};for(const _0x4a13d3 of _0x5215e3)_0x27e39a(_0x4a13d3);this['listenTo'](_0x5215e3,'add',(_0x44611e,_0x38bee4)=>{_0x27e39a(_0x38bee4);}),this['listenTo'](_0x5215e3,'remove',(_0x4dd8fc,_0x9e890c,_0x5765f0)=>{_0x73bcd2['rearrange']({'removedAnnotation':_0x9e890c,'previousAnnotation':_0x5215e3['get'](_0x5765f0-0x1),'nextAnnotation':_0x5215e3['get'](_0x5765f0+0x1)}),_0x9e890c===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x5215e3,'focus',(_0x557c93,_0x3323b3)=>{this['setActiveAnnotation'](_0x3323b3);}),this['listenTo'](_0x5215e3,'blur',()=>{this['setActiveAnnotation'](null);});const _0x2b4bc7=this['context']instanceof _0x53f178?this['context']['editors']:new _0x1c34e7([this['context']]);for(const _0x210f01 of _0x2b4bc7)this['_integrateWithEditorAnnotations'](_0x210f01);this['listenTo'](_0x2b4bc7,'add',(_0x107f32,_0x32bdd7)=>{this['listenTo'](_0x32bdd7,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x32bdd7);});}),this['listenTo'](_0x2b4bc7,'remove',(_0x4a017d,_0x5a23b4)=>{_0x5a23b4['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x5a23b4['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x487ab6('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x33ecd7=this['context']['plugins']['get'](z);_0x33ecd7['_detachFromContainer'](this['annotations']),this['stopListening'](_0x33ecd7),this['stopListening'](this['annotations']),this['context']instanceof _0x53f178&&this['stopListening'](this['context']['editors']);for(const _0x5a0aa5 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x5a0aa5);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x478d05){if(!_0x478d05['plugins']['has']('EditorAnnotations'))return;const _0x1e11b0=_0x478d05['plugins']['get']('EditorAnnotations'),_0x467a0c=()=>{const _0x41c766=_0x1e11b0['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x41c766[0x0]||null);};this['listenTo'](_0x1e11b0,'refresh',_0x467a0c),this['listenTo'](_0x1e11b0,'blur',(_0x8da104,{isAnnotationTracked:_0x67104d})=>{this['activeAnnotation']&&_0x67104d(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x1e11b0,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x2353aa=>{_0x1e11b0['hasDomSelection']()&&(_0x467a0c(),_0x2353aa['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x1e11b0);}['_destroyEditorAnnotationsIntegration'](_0x555960){this['stopListening'](_0x555960),this['_editorAnnotations']['remove'](_0x555960);}}class D extends _0x3bfc4d{['counterView'];constructor(_0x289dfe){super(_0x289dfe);const _0x3c0aa9=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x1c75f5,_0x5e581c)=>_0x1c75f5?'...':_0x5e581c['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',_0x3c0aa9['to']('annotationType',_0x35ebac=>'ck-annotation-counter__badge--'+_0x35ebac),_0x3c0aa9['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x3c0aa9['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x4ad5c3{['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(_0x17308e){super(_0x17308e),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x454a14),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x1c34e7(),this['_refreshPositioningDebounced']=_0x1e4fec(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x92e78e(this['context']['locale']),this['balloonPanelView']=new _0x2a91a2(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x209ec0){this['annotations']=_0x209ec0;const _0x23aa27=this['context']['plugins']['get'](z),_0x2e8243=this['balloonPanelView'];if(_0x23aa27['_annotations']=_0x209ec0,this['isAttached'])throw new _0x487ab6('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x23aa27,'set:container',()=>{this['detach'](),this['listenTo'](_0x23aa27,'change:container',_0x3a256a=>{_0x3a256a['off'](),this['attach'](_0x209ec0);});}),_0x23aa27['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x33ea98=_0x304bbc=>{const _0x250181=new D(this['context']['locale']);_0x23aa27['addAnnotation'](_0x304bbc,_0x250181),this['_annotationToNarrowView']['set'](_0x304bbc,_0x250181),_0x250181['bind']('isDirty','annotationType','number')['to'](_0x304bbc['view'],'isDirty','type','length'),_0x250181['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x2e8243['content']['first']!==_0x304bbc['view']?(this['_showBalloon'](_0x304bbc),_0x304bbc['view']['element']['focus'](),this['setActiveAnnotation'](_0x304bbc)):this['setActiveAnnotation'](null);});};for(const _0x298f2a of _0x209ec0)_0x33ea98(_0x298f2a);this['listenTo'](_0x209ec0,'add',(_0x100077,_0x37db25)=>{_0x33ea98(_0x37db25);}),this['listenTo'](_0x209ec0,'remove',(_0x204b72,_0x65f911,_0x363c9c)=>{this['_annotationToNarrowView']['get'](_0x65f911)['destroy'](),this['_annotationToNarrowView']['delete'](_0x65f911),_0x23aa27['rearrange']({'removedAnnotation':_0x65f911,'previousAnnotation':_0x209ec0['get'](_0x363c9c-0x1),'nextAnnotation':_0x209ec0['get'](_0x363c9c+0x1)}),_0x65f911===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x209ec0,'focus',(_0x552469,_0x3b202e)=>{this['setActiveAnnotation'](_0x3b202e);}),this['listenTo'](_0x209ec0,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x4e87e0,_0x39c9ca)=>{_0x39c9ca['keyCode']===_0x231b87['esc']&&_0x2e8243['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x2e8243['content']['first']),this['_hideBalloon'](),_0x39c9ca['stopPropagation'](),_0x39c9ca['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x3f60e2,_0x37ee00)=>{const _0x2b2f24=_0x37ee00['target'];_0x2e8243['isVisible']&&_0x2e8243['element']['contains'](_0x2b2f24)||_0x23aa27['view']['element']['contains'](_0x2b2f24)||_0x3f60e2['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x542242=>_0x542242['contains'](_0x2b2f24))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x2fd7a8=this['context']instanceof _0x53f178?this['context']['editors']:new _0x1c34e7([this['context']]);for(const _0x769ce9 of _0x2fd7a8)this['_integrateWithEditorAnnotations'](_0x769ce9);this['listenTo'](_0x2fd7a8,'add',(_0x31f53b,_0x2f9758)=>{this['listenTo'](_0x2f9758,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x2f9758);});}),this['listenTo'](_0x2fd7a8,'remove',(_0x50eae1,_0x2b1b31)=>{_0x2b1b31['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x2b1b31['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x5f49c9){if(_0x5f49c9===this['activeAnnotation'])return;const _0x47bc00=this['context']['plugins']['get'](z);if(_0x47bc00['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x5f49c9,'disableAnimationOnActivatedAnnotation':!0x0}),_0x5f49c9)_0x47bc00['getSidebarItemView'](_0x5f49c9)?this['_showBalloon'](_0x5f49c9):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x5f49c9;}['detach'](){if(!this['isAttached'])throw new _0x487ab6('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x44894a=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x31fa88=>_0x31fa88['destroy']()),this['_annotationToNarrowView']['clear'](),_0x44894a['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x53f178&&this['stopListening'](this['context']['editors']);for(const _0x508015 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x508015);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'](_0x2aab53){if(!_0x2aab53['plugins']['has']('EditorAnnotations'))return;const _0x188634=_0x2aab53['plugins']['get']('EditorAnnotations'),_0x24aa5d=this['context']['plugins']['get'](z),_0x2322f4=this['annotations'],_0x73426d=this['balloonPanelView'],_0x4cb027=()=>{const _0x39b3ef=_0x188634['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x39b3ef),this['setActiveAnnotation'](_0x39b3ef[0x0]||null);};this['listenTo'](_0x188634,'refresh',_0x4cb027),this['listenTo'](_0x188634,'blur',(_0x382b09,{isAnnotationTracked:_0x2b8624})=>{this['activeAnnotation']&&_0x2b8624(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x188634,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x2322f4,'blur',_0x351ee0=>{_0x188634['hasDomSelection']()&&_0x351ee0['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x335357,_0x155d0f)=>{const _0x14b45a=_0x155d0f['target'];_0x73426d['isVisible']&&_0x73426d['element']['contains'](_0x14b45a)||_0x24aa5d['view']['element']['contains'](_0x14b45a)||this['activeAnnotation']&&_0x188634['hasDomSelection']()&&(_0x4cb027(),_0x335357['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x188634);}['_destroyEditorAnnotationsIntegration'](_0x555a3b){_0x555a3b&&(this['stopListening'](_0x555a3b),this['_editorAnnotations']['remove'](_0x555a3b));}['_setSelectedAnnotations'](_0x4fa4b4){for(const _0x2fbd18 of this['_selectedAnnotations'])_0x4fa4b4['includes'](_0x2fbd18)||this['_manuallyClosedAnnotationViews']['delete'](_0x2fbd18['view']);this['_selectedAnnotations']=_0x4fa4b4;}['_refreshPositioning'](){const _0x16860c=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x16860c['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x2a5a3d){if(this['_manuallyClosedAnnotationViews']['has'](_0x2a5a3d['view']))return;const _0x1c7897=this['balloonPanelView']['content']['first'];_0x1c7897!==_0x2a5a3d['view']?(_0x1c7897&&this['_detachListeners'](_0x1c7897),this['_attachListeners'](_0x2a5a3d['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x2a5a3d['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x698cbc=this['balloonPanelView']['content']['first'],_0x37b622=_0x698cbc&&this['annotations']['getByView'](_0x698cbc);if(!_0x37b622||!this['_annotationToNarrowView']['has'](_0x37b622))return;const _0x520e2f=this['_annotationToNarrowView']['get'](_0x37b622)['element'],_0x48a028=(function(){const _0x4d7517=_0x2a91a2['defaultPositions'];return[_0x4d7517['southArrowNorthEast'],_0x4d7517['northArrowSouthEast'],_0x4d7517['southArrowNorth'],_0x4d7517['northArrowSouth'],_0x4d7517['southArrowNorthWest'],_0x4d7517['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x520e2f,'positions':_0x48a028});}['_hideBalloon'](){const _0x581270=this['balloonPanelView'],_0xcaa77c=_0x581270['content']['first'];_0xcaa77c&&(this['_detachListeners'](_0xcaa77c),_0x581270['unpin'](),_0x581270['content']['clear']());}['_attachListeners'](_0x57cd29){this['listenTo'](_0x57cd29,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x57cd29,'Esc',(_0x48051d,_0x3bae85)=>{this['_manuallyClosedAnnotationViews']['add'](_0x57cd29),this['_hideBalloon'](),_0x3bae85();});}['_detachListeners'](_0xeb51a7){this['stopListening'](_0xeb51a7);}}class c extends _0x5ab294{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x24f819,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x55dcb3){super(_0x55dcb3),_0x55dcb3['editing']['view']['addObserver'](_0x105c06),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x55dcb3['plugins']['get'](_0x24f819),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0xdef570=this['editor']['plugins']['get'](M);_0xdef570['context']===this['editor']&&(_0xdef570['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x214155,_0x2cf8a0)=>{const _0x3cc8df=this['_balloon'];if(this['isAttached']&&_0x3cc8df['visibleView']){const _0x14d28c=this['annotations']['getByView'](_0x3cc8df['visibleView']);_0x14d28c&&this['_closeAnnotation'](_0x14d28c),_0x2cf8a0();}}));}['afterInit'](){const _0xbf4326=this['editor']['plugins']['get'](M);_0xbf4326['context']===this['editor']&&(_0xbf4326['hasActive']()||_0xbf4326['switchTo']('inline'));}['setActiveAnnotation'](_0x4865dd){_0x4865dd!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x4865dd&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x4865dd)&&this['_addAnnotationToBalloon'](_0x4865dd,!0x0),_0x4865dd['isActive']=!0x0),_0x4865dd||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x4865dd);}['attach'](_0x33ff10){this['annotations']=_0x33ff10;const _0x107542=this['editor']['plugins']['get'](M),_0x2968b4=this['_balloon'];if(this['isAttached'])throw new _0x487ab6('inlineannotations-attach-already-attached',this);if(_0x107542['context']!==this['editor'])throw new _0x487ab6('inlineannotations-not-allowed-with-context',this);const _0x3f50de=this['editor']['plugins']['get'](P);this['listenTo'](_0x3f50de,'refresh',()=>{const _0x3507bf=_0x3f50de['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x52162c,_0x2b28ca;!this['_forceRefresh']&&(_0x52162c=_0x3507bf,_0x2b28ca=this['_selectedAnnotations'],_0x52162c['length']===_0x2b28ca['length']&&_0x52162c['every'](_0x1281e0=>_0x2b28ca['includes'](_0x1281e0)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x3507bf),this['setActiveAnnotation'](_0x3507bf[0x0]||null));}),this['listenTo'](_0x3f50de,'blur',(_0x11e154,{isAnnotationTracked:_0x39ae09})=>{this['activeAnnotation']&&_0x39ae09(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x2d834b,_0xede70a,_0x537657)=>{_0x537657||this['setActiveAnnotation'](null);}),this['listenTo'](_0x33ff10,'remove',(_0x20c177,_0x162e27)=>{this['_removeAnnotationFromBalloon'](_0x162e27),_0x162e27===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x2968b4,'change:visibleView',(_0x4cc15c,_0x1cb4e0,_0x1f43a0,_0x41577f)=>{_0x41577f&&this['stopListening'](_0x41577f);const _0x1a82ab=_0x33ff10['getByView'](_0x1f43a0);_0x1f43a0&&_0x1a82ab&&(this['listenTo'](_0x1f43a0,'change:height',()=>{_0x2968b4['updatePosition']();}),this['listenTo'](_0x1f43a0,'Esc',()=>{this['_closeAnnotation'](_0x1a82ab),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x1a82ab&&this['setActiveAnnotation'](_0x1a82ab));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x2968b4['visibleView']&&(_0x33ff10['getByView'](_0x2968b4['visibleView'])&&_0x2968b4['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 _0x487ab6('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x5292c9 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x5292c9);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x5e689e){for(const _0x24f78c of this['_selectedAnnotations'])_0x5e689e['includes'](_0x24f78c)||this['_manuallyClosed']['delete'](_0x24f78c);for(const _0xa174eb of this['annotations'])_0x5e689e['includes'](_0xa174eb)||this['_removeAnnotationFromBalloon'](_0xa174eb);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x59e87e of _0x5e689e)this['_addAnnotationToBalloon'](_0x59e87e);}this['_selectedAnnotations']=_0x5e689e;}['_addAnnotationToBalloon'](_0x5cc623,_0x429af0=!0x1){this['_manuallyClosed']['has'](_0x5cc623)||(this['_addedAnnotations']['has'](_0x5cc623)||this['_balloon']['hasView'](_0x5cc623['view'])||(this['_addedAnnotations']['add'](_0x5cc623),this['_balloon']['add']({'stackId':_0x5cc623['view']['id'],'view':_0x5cc623['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x5cc623)}})),_0x429af0&&this['_balloon']['showStack'](_0x5cc623['view']['id']));}['_getBalloonTargetForAnnotation'](_0x4ed930){const _0x5a772b=_0x4ed930['target'],_0x3f1ebf=this['editor']['editing']['view'],_0x28f686=_0x3f1ebf['document']['selection']['getFirstRange'](),_0x433468=_0x3f1ebf['domConverter']['viewRangeToDom'](_0x28f686);if(_0x433468['collapse'](!0x0),_0x5a772b){if(_0x5a772b instanceof _0x3b9eb0)return _0x5a772b;let _0x43d76e=[];for(const _0x3171ae of _0x5a772b)_0x43d76e['push'](...(_0x384e53=_0x3171ae['getClientRects'](),Array['from'](_0x384e53)['map'](DOMRect['fromRect'])));_0x43d76e=function(_0x1a1248){const _0x3251bd=[];let _0x2842f0=_0x1a1248[0x0];for(let _0x1bbd0c=0x1;_0x1bbd0c<_0x1a1248['length'];_0x1bbd0c++)b(_0x2842f0,_0x1a1248[_0x1bbd0c])?_0x2842f0['width']+=_0x1a1248[_0x1bbd0c]['width']:(_0x3251bd['push'](_0x2842f0),_0x2842f0=_0x1a1248[_0x1bbd0c]);return _0x3251bd['push'](_0x2842f0),_0x3251bd;}(_0x43d76e);const _0x5121bb=_0x433468['getBoundingClientRect']();return _0x43d76e['find'](_0x3235f2=>_0x3235f2['top']<=_0x5121bb['top']&&_0x3235f2['bottom']>=_0x5121bb['bottom']&&_0x3235f2['left']<=_0x5121bb['left']&&_0x3235f2['right']>=_0x5121bb['right'])||_0x43d76e[0x0];}var _0x384e53;return _0x4ed930['targetRect']||_0x433468;}['_removeAnnotationFromBalloon'](_0x157c86){this['_addedAnnotations']['has'](_0x157c86)&&this['_balloon']['hasView'](_0x157c86['view'])&&(this['_addedAnnotations']['delete'](_0x157c86),this['_balloon']['remove'](_0x157c86['view']));}['_closeAnnotation'](_0x20d440){this['_manuallyClosed']['add'](_0x20d440),this['_removeAnnotationFromBalloon'](_0x20d440);}}function b(_0x2f1e0f,_0x3a1a92){return _0x2f1e0f['top']===_0x3a1a92['top']&&_0x2f1e0f['bottom']===_0x3a1a92['bottom']&&_0x2f1e0f['right']===_0x3a1a92['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-2025,\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(_0x23af29,_0xe4aa5e){super(_0x23af29),this['set']('isEmpty',!_0xe4aa5e['length']),this['focusTracker']=new _0x5414ac(),this['_annotationViews']=_0xe4aa5e,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0xe4aa5e,'focusTracker':this['focusTracker']}),this['listenTo'](_0xe4aa5e,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0xe4aa5e,'remove',(_0x5ad1bd,_0x51f006)=>{_0x51f006['isActive']&&this['focus'](),_0xe4aa5e['length']||(this['isEmpty']=!0x0);});const _0x90f43a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x23af29,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0xe4aa5e},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x90f43a['if']('isEmpty','ck-hidden',_0x488b9c=>!_0x488b9c)]},'children':[{'text':S(_0x23af29,'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 _0x114a53 of this['_annotationViews'])this['focusTracker']['add'](_0x114a53['element']);this['_annotationViews']['on']('change',(_0x3eb6f2,{added:_0x159b12,removed:_0x2bf61e})=>{for(const _0x5a2617 of _0x159b12)this['focusTracker']['add'](_0x5a2617['element']);for(const _0xa8c9d4 of _0x2bf61e)this['focusTracker']['remove'](_0xa8c9d4['element']);});}}class f extends _0x4ad5c3{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x15f890){super(_0x15f890),this['archivedThreads']=new _0x1c34e7();}['init'](){const _0x5d26d5=this['context'],_0x29640f=_0x5d26d5['plugins']['get'](o),_0x3b630d=_0x5d26d5['plugins']['get'](N);this['listenTo'](_0x29640f,'addCommentThread',(_0x3275f5,{threadId:_0x11ab78})=>{const _0x154b11=_0x29640f['getCommentThread'](_0x11ab78);_0x154b11['archivedAt']&&this['archivedThreads']['add'](_0x154b11,this['_calculatePosition'](_0x154b11['archivedAt'])),this['listenTo'](_0x154b11,'change:archivedAt',(_0x95545e,_0x129edb,_0x1c9a06)=>{_0x1c9a06?this['archivedThreads']['has'](_0x154b11)||this['archivedThreads']['add'](_0x154b11,this['_calculatePosition'](_0x154b11['archivedAt'])):this['archivedThreads']['has'](_0x154b11)&&this['archivedThreads']['remove'](_0x154b11);});}),this['listenTo'](_0x29640f,'removeCommentThread',(_0x3cce2b,{threadId:_0x68b7e6})=>{const _0x1f69e1=_0x29640f['getCommentThread'](_0x68b7e6);this['stopListening'](_0x1f69e1),this['archivedThreads']['has'](_0x1f69e1)&&this['archivedThreads']['remove'](_0x1f69e1);},{'priority':'highest'}),this['listenTo'](_0x3b630d['collection'],'focus',(_0x25696e,_0x551486)=>{_0x551486['isVisible']||(_0x551486['isActive']=!0x0,_0x3b630d['activate'](_0x551486));});}['_calculatePosition'](_0xdfd03f){const _0x513353=[...this['archivedThreads']]['findIndex'](_0xa3dbc8=>_0xa3dbc8['archivedAt']<_0xdfd03f);return _0x513353>-0x1?_0x513353:this['archivedThreads']['length'];}}class a extends _0x5ab294{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0xcf346a];}constructor(_0x4b4f39){super(_0x4b4f39),this['annotationViews']=new _0x3048f9(),this['_pendingThreads']=[];}['init'](){const _0x411e4b=this['editor'],_0x4372c0=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x411e4b['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x3bfc4d,!0x0)),_0x411e4b['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x5dcf47=this['_createCommentsArchiveButton'](_0x4cf37f);return _0x5dcf47['set']({'role':'menuitemcheckbox'}),_0x5dcf47;});const _0x586a19=_0x411e4b['plugins']['get'](f),_0x395a90=_0x411e4b['plugins']['get']('Annotations'),_0x1222a2=_0x411e4b['plugins']['get']('CommentsRepository');_0x586a19['archivedThreads']['forEach'](_0x2830c1=>{this['_handleNewThread'](_0x2830c1);}),this['listenTo'](_0x586a19['archivedThreads'],'add',(_0x2a09e9,_0x4b610f)=>{this['_handleNewThread'](_0x4b610f);}),this['listenTo'](_0x395a90['collection'],'add',(_0x19942f,_0x2f20e9)=>{const _0x439aa1=this['_pendingThreads']['find'](_0xe4dc3e=>{const _0x309cb2=_0x1222a2['_threadToController']['get'](_0xe4dc3e);return _0x309cb2&&_0x2f20e9['innerView']===_0x309cb2['view'];});if(_0x439aa1){const _0x365c9f=this['_calculatePosition'](_0x439aa1['archivedAt']);this['annotationViews']['add'](_0x2f20e9['view'],_0x365c9f),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x439aa1),0x1);}}),this['listenTo'](_0x586a19['archivedThreads'],'remove',(_0x103cdf,_0x227ce5)=>{const _0x2d309b=_0x411e4b['config']['get']('collaboration.channelId');if(!_0x2d309b||_0x227ce5['channelId']===_0x2d309b){const _0x4bea62=_0x1222a2['_threadToController']['get'](_0x227ce5),_0x53b493=_0x395a90['getByInnerView'](_0x4bea62['view']);this['annotationViews']['remove'](_0x53b493['view']),this['stopListening'](_0x53b493['focusableElements']);}}),this['listenTo'](_0x395a90['collection'],'add',(_0x5058ad,_0x198538)=>{this['listenTo'](_0x198538,'escape',_0x4372c0);}),this['listenTo'](_0x395a90['collection'],'remove',(_0x2ca436,_0x18d19e)=>{this['stopListening'](_0x18d19e,'escape',_0x4372c0);});}['_handleNewThread'](_0x31a9a9){const _0x26b962=this['editor']['plugins']['get']('CommentsRepository'),_0x39bfa2=this['editor']['plugins']['get']('Annotations'),_0x5ae0d2=this['editor']['config']['get']('collaboration.channelId');if(!_0x5ae0d2||_0x31a9a9['channelId']===_0x5ae0d2){const _0x426eaf=_0x26b962['_threadToController']['get'](_0x31a9a9);if(!_0x426eaf)return void this['_pendingThreads']['push'](_0x31a9a9);const _0xad53bd=this['_calculatePosition'](_0x31a9a9['archivedAt']),_0x37e30a=_0x39bfa2['getByInnerView'](_0x426eaf['view']);_0x37e30a['isVisible']&&_0x39bfa2['_visibleAnnotations']['remove'](_0x37e30a),this['annotationViews']['add'](_0x37e30a['view'],_0xad53bd);}}['_calculatePosition'](_0x5c9675){const _0x5d040c=this['editor']['config']['get']('collaboration.channelId'),_0xdb65d0=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x5bcacb=>_0x5bcacb['channelId']===_0x5d040c)['findIndex'](_0x32f19f=>_0x32f19f['archivedAt']<_0x5c9675);return _0xdb65d0<0x0||_0xdb65d0>this['annotationViews']['length']?this['annotationViews']['length']:_0xdb65d0-0x1;}['_toggleDialog'](){const _0x3c935d=this['editor'],_0x4c9b5e=_0x3c935d['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x3c935d['locale'],this['annotationViews'])),'commentsArchive'===_0x4c9b5e['id']?_0x4c9b5e['hide']():_0x4c9b5e['show']({'id':'commentsArchive','title':S(_0x3c935d['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x381ed4['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x47762f,_0x132f9f=!0x1){const _0x2b102a=this['editor']['locale'],_0x3a86b6=this['editor']['plugins']['get']('Dialog'),_0x8dbfdd=new _0x47762f(_0x2b102a);return _0x8dbfdd['bind']('isEnabled')['to'](this,'isEnabled'),_0x8dbfdd['bind']('isOn')['to'](_0x3a86b6,'id',_0x441918=>'commentsArchive'===_0x441918),_0x8dbfdd['set']({'label':S(_0x2b102a,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x132f9f&&(_0x8dbfdd['tooltip']=!0x0),this['listenTo'](_0x8dbfdd,'execute',()=>this['_toggleDialog']()),_0x8dbfdd;}['_hideDialogOnAnnotationEscape']=_0x2c831d=>{const _0x46ee1e=_0x2c831d['source'];if(!this['annotationViews']['has'](_0x46ee1e['view']))return;const _0x5ef833=this['editor']['plugins']['get']('Dialog');_0x5ef833['isOpen']&&'commentsArchive'===_0x5ef833['id']&&(_0x5ef833['hide'](),_0x2c831d['stop']());};}class p extends _0x5ab294{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 _0x3e9c61,icons as _0x5291e1,ContextPlugin as _0x2c5a36,PendingActions as ht,Command as _0x514a55,Plugin as _0x381c71,Context as _0x2fd299}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x3223d5,uid as _0x25b112,KeystrokeHandler as jt,FocusTracker as _0x4154a6,diff as _0x1baaf0,Collection as _0x390bdd,Rect as _0x11210f,CKEditorError as _0x4f8f09,first as _0xde018e,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0x54d38d,keyCodes as _0xa8769c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x4135a0,AriaDescriptionView as ts,setupThreadKeyboardNavigation as _0x290a71,ConfirmMixin as ti,LateFocusButtonView as _0x33a297,trimHtml as _0x3a9995,LateFocusDropdownButtonView as _0x5557ac,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0xfb8460}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as yt,debounce as _0xfa51ca}from'lodash-es';import{EditorUIView as Yt,InlineEditableUIView as $t,EditorUI as Vt,View as kt,FocusCycler as Ft,ButtonView as _0x2262e4,ViewCollection as _0x16c208,createDropdown as _0x296238,ListView as _0x1c1405,focusChildOnDropdownOpen as _0x302ad5,ListItemView as _0x4393c9,MenuBarMenuListItemButtonView as _0x35752f,BodyCollection as _0x51a437,BalloonPanelView as _0x196f9b,ContextualBalloon as _0x38f3d8,Dialog as _0xfa6a72,DialogViewPosition as _0x4ee589}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x266776}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 _0x997d2c}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x1dfa36}from'@ckeditor/ckeditor5-widget/dist/index.js';class Ct extends/* #__PURE__ -- @preserve */
24
+ _0x3223d5(){['model'];['view'];constructor(_0x21bab8,_0x591f99){super(),this['model']=_0x21bab8,this['model']['_isAttached']=!0x0,this['view']=_0x591f99,this['listenTo'](_0x591f99,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x591f99,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x591f99,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x591f99,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x591f99,'addComment',(_0x129e24,_0x3a1e4e)=>this['addComment'](_0x3a1e4e)),this['listenTo'](_0x591f99,'updateComment',(_0x594684,_0x14c784,_0x17caed)=>this['updateComment'](_0x14c784,_0x17caed)),this['listenTo'](_0x591f99,'removeComment',(_0x33d2fe,_0x5ec601)=>this['removeComment'](_0x5ec601));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x492f20){this['model']['addComment']({'content':_0x492f20,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x2b48a6,_0x2b33b6){this['model']['getComment'](_0x2b48a6)['update']({'content':_0x2b33b6});}['removeComment'](_0x1d9186){this['model']['getComment'](_0x1d9186)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x133c1c,_0x5d7cce,_0x25c447){const t=_0x133c1c['t'];switch(_0x5d7cce){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'},_0x25c447);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'},_0x25c447);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'},_0x25c447);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'},_0x25c447);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x25c447);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'},_0x25c447);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'},_0x25c447);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'},_0x25c447);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(_0x49d930,_0x583508){super(_0x49d930);const _0x3243e9=_0x25b112();this['main']=this['createCollection'](),this['editable']=new $t(_0x49d930,_0x583508,void 0x0,{'label':()=>S(_0x49d930,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x49d930['uiLanguageDirection'],'lang':_0x49d930['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x3243e9},'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(_0x268026){super(_0x268026),this['view']=new Xt(_0x268026['locale'],_0x268026['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x4b7cbd=this['editor']['editing']['view'],_0x50a02c=this['view']['editable'],_0x29fd32=_0x4b7cbd['document']['getRoot']();_0x50a02c['name']=_0x29fd32['rootName'],this['view']['render']();const _0x3f4a0e=_0x50a02c['element'];this['setEditableElement'](_0x50a02c['name'],_0x3f4a0e),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4b7cbd['attachDomRoot'](_0x3f4a0e),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Rt=[Bt,Et,Gt,Jt,Kt,Nt,Qt];class Ut extends/* #__PURE__ -- @preserve */
25
+ _0x3223d5(_0x3e9c61){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Rt)());constructor(_0x5f05f1={}){function _0x2be164(_0xd96c3f){return _0xd96c3f['map'](_0x5e5f6e=>String['fromCharCode'](_0x5e5f6e))['join']('');}(_0x5f05f1=Object['assign']({},_0x5f05f1))['plugins']||(_0x5f05f1['plugins']=Ut['defaultPlugins']),super(_0x5f05f1),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[_0x2be164([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2be164([0x76,0x69,0x65,0x77])][_0x2be164([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2be164([0x61,0x75,0x74,0x6f]),this[_0x2be164([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2be164([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2be164([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2be164([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2be164([0x6f,0x6b])});}['create'](){const _0x492397=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x492397))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x52292b=>{const _0x500ebd=this['model']['document']['getRoot'](),_0x2e1af9=_0x500ebd&&_0x500ebd['getChild'](_0x500ebd['childCount']-0x1);_0x52292b['setSelection'](_0x2e1af9,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x4fa681=this['editing']['view'],_0x4e053a=_0x4fa681['document']['getRoot'](),_0x2786f9=_0x4e053a['getChild'](0x0);_0x4e053a['childCount']>0x1||!_0x2786f9||'p'!=_0x2786f9['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x4fa681,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x2786f9['placeholder']=this['placeholder']),St({'view':_0x4fa681,'element':_0x2786f9,'keepOnFocus':!0x0}),this['placeholderElement']=_0x2786f9);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x24d954,_0x2f2ca3={}){super(_0x24d954),this['editor']=null,this['_editorConfig']=_0x2f2ca3,this['set']('value',_0x2f2ca3['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x24d954,'Reply...')),this['set']('submitLabel',S(_0x24d954,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x4154a6(),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',(_0x4e53d5,_0x1c76a7)=>{this['cancelButtonView']['fire']('execute'),_0x1c76a7();}),this['keystrokes']['set']('Ctrl+Enter',(_0x2eb103,_0x269fdd)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x269fdd());}),this['on']('submit',(_0x6a495,_0x26e31e)=>{_0x26e31e['length']>0xfde8?(alert(S(_0x24d954,'TOO_LONG_COMMENT_ALERT',[_0x26e31e['length'],0xfde8])),_0x6a495['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 _0x2af151=this['editor'];this['element']['insertBefore'](_0x2af151['ui']['element'],this['element']['firstChild']),_0x2af151['model']['document']['on']('change',()=>this['value']=_0x2af151['getData']()),_0x2af151['bind']('placeholder')['to'](this),this['focusables']['add'](_0x2af151['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x5d1d02){-0x1===_0x5d1d02?(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:_0x3042b4}=this,_0x5cbc02=new _0x2262e4(_0x3042b4);return _0x5cbc02['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x5cbc02['withText']=!0x0,_0x5cbc02['bind']('label')['to'](this,'submitLabel'),_0x5cbc02['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x5cbc02['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x2609d1,_0x53240e)=>!_0x53240e&&!!_0x2609d1['trim']()),_0x5cbc02;}['_createCancelButton'](){const {locale:_0x573256}=this,_0x205e8c=new _0x2262e4(_0x573256);return _0x205e8c['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x205e8c['label']=S(_0x573256,'Cancel'),_0x205e8c['withText']=!0x0,_0x205e8c['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x205e8c;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x25240c=>{this['focusTracker']['add'](_0x25240c['element']);}),this['focusables']['on']('change',(_0x18bfc4,_0x557904)=>{for(const _0x1603a8 of Array['from'](_0x557904['added'])['reverse']())this['focusTracker']['add'](_0x1603a8['element']);});}}class ie extends kt{constructor(_0x2aa3cb,_0x387008,_0xc1e4a){super(_0x2aa3cb),this['commentInputView']=new os(_0x2aa3cb,_0xc1e4a),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x3c4f19,_0x1f41fd)=>_0x3c4f19||!!_0x1f41fd),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 _0x4135a0(_0x2aa3cb,_0x387008),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'](_0x57d891){this['commentInputView']['focus'](_0x57d891);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x239bcc,_0x1b32fa)=>{const {submitButtonView:_0x5243c6,cancelButtonView:_0x5bafce,editor:_0x15f25c}=this['commentInputView'];[_0x5243c6['element'],_0x5bafce['element'],_0x15f25c?_0x15f25c['editing']['view']['getDomRoot']():null]['filter'](_0x585c91=>_0x585c91)['some'](_0x3dbb75=>_0x3dbb75['contains'](_0x1b32fa['target']))||(this['focus'](),_0x1b32fa['preventDefault']());});}}class cs extends kt{constructor(_0x16e097){super(_0x16e097);const _0x3e000a=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x3e000a['to']('count',_0x2d86c2=>S(_0x16e097,'NUMBER_OF_COMMENTS',_0x2d86c2))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x488745,_0x51eaea,_0x31c36b){super(_0x488745);const _0x36974a=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x51eaea['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x51eaea,this['_config']=_0x31c36b,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x4154a6(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4248ed=>this['commentViews']['map'](_0x15a0fc=>_0x15a0fc['element'])['includes'](_0x4248ed['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x488745),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x731820=>_0x731820-this['_config']['maxCommentsWhenCollapsed']);for(const _0x46576d of _0x51eaea['comments'])this['_handleNewCommentModel'](_0x46576d);this['_handleInfoComment'](),this['listenTo'](_0x51eaea['comments'],'add',(_0x4bf6dc,_0x38590f)=>{const _0x14fe1a=this['_calculatePosition'](_0x38590f);this['length']++,this['_handleNewCommentModel'](_0x38590f,_0x14fe1a),this['refreshVisibleViews']();}),this['listenTo'](_0x51eaea['comments'],'remove',(_0x37a4b7,_0x536a00)=>{this['length']--,this['_handleRemoveCommentModel'](_0x536a00),this['refreshVisibleViews']();}),this['listenTo'](_0x51eaea,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x51eaea,'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',_0x36974a['if']('length','ck-hidden',_0x3c2791=>!_0x3c2791)],'aria-label':S(_0x488745,'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'](_0x5e3467){-0x1===_0x5e3467?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x322a90 of this['commentViews'])_0x322a90['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x5966e8,_0x9f4b96){const _0x1d319a=new this['_config']['CommentView'](this['locale'],_0x5966e8,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x1d319a['viewUid']=_0x5966e8['id'],_0x1d319a['delegate']('removeComment')['to'](this),_0x1d319a['delegate']('updateComment')['to'](this),_0x1d319a['delegate']('resolveCommentThread')['to'](this),_0x1d319a['delegate']('editorReady')['to'](this),_0x1d319a['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x1d319a,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x1d319a,_0x9f4b96);}['_calculatePosition'](_0x2af8fd){const _0x490a2e=this['_model']['_findOptimalIndex'](_0x2af8fd);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x2af8fd['authoredAt']?_0x490a2e-0x1:_0x490a2e:_0x490a2e-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x2591a9={'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'],_0x2591a9,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x2591a9));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x5f58d5){const _0x53f1e4=this['commentViews']['remove'](_0x5f58d5['id']);this['stopListening'](_0x53f1e4),_0x53f1e4['isEditMode']&&this['_updateHasDirtyComment'](),_0x53f1e4['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x316bed=>_0x316bed['isEditMode']);}['_rearrangeCollapse'](){const _0x4f8915=function(_0x2a9b9d){const _0xf47284=new _0x390bdd();for(const _0x535b2e of _0x2a9b9d)_0xf47284['add'](_0x535b2e);return _0xf47284;}(this['commentViews']),_0x54e476=this['_collapsedCommentsView']['count'];for(let _0x5b5306=0x1;_0x5b5306<=_0x54e476;_0x5b5306++)_0x4f8915['remove'](0x1);for(const _0x2ad5a7 of _0x4f8915)_0x2ad5a7['collapse']();_0x54e476>0x0&&_0x4f8915['add'](this['_collapsedCommentsView'],0x1),as(_0x1baaf0(Array['from'](this['visibleViews']),Array['from'](_0x4f8915)),this['visibleViews'],_0x4f8915);}['_rearrangeExpand'](){as(_0x1baaf0(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x3cae02 of this['visibleViews'])_0x3cae02['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x2b6f1=>{this['focusTracker']['add'](_0x2b6f1['element']),this['keystrokes']['listenTo'](_0x2b6f1['element']);}),this['commentViews']['on']('change',(_0x4f39f1,_0x190882)=>{for(const _0x127247 of _0x190882['removed'])this['focusTracker']['remove'](_0x127247['element']),this['keystrokes']['stopListening'](_0x127247['element']);for(const _0x3957d5 of Array['from'](_0x190882['added'])['reverse']())this['focusTracker']['add'](_0x3957d5['element']),this['keystrokes']['listenTo'](_0x3957d5['element']);});}}function as(_0x5a35af,_0x504202,_0x10403f){let _0x184634=0x0;for(const _0x48e447 of _0x5a35af)switch(_0x48e447){case'insert':_0x504202['add'](_0x10403f['get'](_0x184634),_0x184634),_0x184634++;break;case'delete':_0x504202['remove'](_0x184634);break;case'equal':_0x184634++;}}class ls extends kt{constructor(_0x260b1a){super(_0x260b1a);const _0x479c38=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x479c38['to']('contextValue',_0x258461=>S(_0x260b1a,'THREAD_CONTEXT_LABEL',_0x258461)),'tabindex':-0x1},'children':[{'text':_0x479c38['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Zt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0xd706e4,_0x4e107f){super(_0xd706e4);const _0x4b534b=this['bindTemplate'];this['_model']=_0x4e107f,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x4154a6(),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',_0x171518=>!!_0x171518),this['bind']('contextValue')['to'](this['_model'],'context',_0x21b429=>_0x21b429&&_0x21b429['value']?this['_trimContextValue'](_0x21b429['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',_0x4b534b['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 _0x3b0e27=new _0x2262e4(this['locale']);return _0x3b0e27['label']=S(this['locale'],'Reopen'),_0x3b0e27['tooltip']=S(this['locale'],'Reopen'),_0x3b0e27['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>',_0x3b0e27['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x577a9c=>!_0x577a9c),_0x3b0e27['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x58ab9f,_0x2464f3)=>_0x58ab9f&&_0x2464f3),_0x3b0e27['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x3b0e27;}['_trimContextValue'](_0x9a1550){if(_0x9a1550['length']<0x96)return _0x9a1550;const _0x240151=_0x9a1550['lastIndexOf']('\x20',0x93);return _0x9a1550['substring'](0x0,_0x240151>-0x1?_0x240151:0x93)+'...';}['_attachContextActions'](){const _0x5b7af9=this['element']['querySelector']('.ck-context'),_0x48fe24=_0x5b7af9['querySelector']('.ck-context__value');this['listenTo'](_0x5b7af9,'mouseenter',()=>{_0x48fe24['offsetWidth']<_0x48fe24['scrollWidth']&&_0x5b7af9['classList']['add']('overlay');}),this['listenTo'](_0x5b7af9,'mouseleave',()=>{_0x5b7af9['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x47f623 of this['focusables'])this['focusTracker']['add'](_0x47f623['element']),this['keystrokes']['listenTo'](_0x47f623['element']);}['_createContextView'](){const _0x51ec1e=new ls(this['locale']);return _0x51ec1e['bind']('contextValue')['to'](this),_0x51ec1e;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x3ba87b,_0x1090e8,_0x25b5e1,_0x3a19b3){super(_0x3ba87b),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x1090e8,this['_localUser']=_0x25b5e1,this['_config']=_0x3a19b3,this['commentThreadHeaderView']=new Zt(_0x3ba87b,_0x1090e8),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new ts(_0x3ba87b,S(_0x3ba87b,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x3ba87b,_0x1090e8,Object['assign']({'CommentView':this['_config']['CommentView']},_0x3a19b3)),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',(_0x5600b6,_0x2037b9)=>_0x5600b6||!!_0x2037b9),this['bind']('isUnlinked')['to'](_0x1090e8,'unlinkedAt',_0x38b79f=>!!_0x38b79f),this['bind']('ariaLabel')['to'](this,'length',_0x575aeb=>{const _0x16ac24=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x575aeb,_0x16ac24]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x4154a6(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3c9324=>_0x3c9324['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x290a71(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x202825=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x478618=_0x202825['commentInputView'];return _0x202825['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x478618,'value',(_0x170bba,_0x3ea8ca,_0xa1bc3e,_0x2f8b9c,_0x599fb0)=>!!_0x599fb0||!!_0x2f8b9c&&_0xa1bc3e&&!_0x3ea8ca||_0x170bba&&_0xa1bc3e&&!_0x3ea8ca),_0x478618['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x1bce1a,_0x3922ef,_0x2a1305)=>{let _0x2f31fa;return _0x2f31fa=_0x2a1305&&_0x3922ef?'Reply\x20to\x20reopen\x20discussion...':_0x1bce1a?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x2f31fa);}),_0x478618['bind']('submitLabel')['to'](this,'length',_0x49274f=>S(this['locale'],_0x49274f?'Reply':'Comment')),_0x478618['on']('submit',(_0x3f9887,_0x644f02)=>{this['fire']('addComment',_0x644f02),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x478618['on']('cancel',()=>{this['focus']();}),_0x478618['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x478618['on']('cancel',_0xe60021=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0xe60021['stop']());}),this['on']('change:isActive',(_0x3d4dc5,_0x1d7943,_0x2816c4)=>{_0x2816c4||this['length']||_0x478618['value']||this['fire']('removeCommentThread');}),_0x202825;}}class vt extends/* #__PURE__ -- @preserve */
27
+ ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x28af48,_0x37a153,_0x3789fe,_0x8a3575){super(_0x28af48,_0x37a153,_0x3789fe,_0x8a3575),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x28af48,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x31fd48,_0x5508f9,_0x303510)=>{_0x303510||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x4f3b9b,_0x4d372b,_0x414b4e)=>{_0x414b4e&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x5db063=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x5db063['if']('isActive','ck-thread--active'),_0x5db063['if']('isUnlinked','ck-thread--unlinked'),_0x5db063['if']('isConfirm','ck-thread--remove-confirmation'),_0x5db063['to']('actionIndicator',_0xfc7fa0=>_0xfc7fa0?'ck-thread--'+_0xfc7fa0:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x5db063['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 _0x5f0ed1 of this['commentsListView']['commentViews'])_0x5f0ed1['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x4f58de}=this,_0x137518=this['commentsListView']['commentViews']['get'](0x0);_0x137518===this['_boundFirstCommentView']||_0x137518['isSystemComment']||(this['_boundFirstCommentView']=_0x137518,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x137518,'actionIndicator',_0x4eb06b=>'remove'===_0x4eb06b?'remove':null),_0x137518['placeholder']=S(_0x4f58de,'Write\x20a\x20comment...'),_0x137518['removeButton']['on']('execute',_0x27b0f7=>{_0x27b0f7['stop'](),this['showConfirm'](S(_0x4f58de,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x137518['focus']();}),_0x137518['actionBar']['add'](this['resolveButton'],0x0),_0x137518['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x3e54f6=new _0x33a297(this['locale']);return _0x3e54f6['label']=S(this['locale'],'Resolve'),_0x3e54f6['tooltip']=S(this['locale'],'Resolve'),_0x3e54f6['icon']=_0x5291e1['check'],_0x3e54f6['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x3e54f6['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x34122d=>!_0x34122d),_0x3e54f6['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x5b66ff,_0x46515d)=>_0x5b66ff&&!_0x46515d),_0x3e54f6['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x3e54f6;}['_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(_0x12df4a){super(_0x12df4a),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x435c1f,_0xb9ad99,_0x4ae21b)=>{this['element']['innerHTML']=_0x4ae21b;}),this['element']['innerHTML']=this['content'];}}class rs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x22eafc,_0x50d009,_0x26dc39){super(_0x22eafc),this['_model']=_0x50d009,this['_config']=_0x26dc39,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x50d009,'content',_0x50d009,'authoredAt',(_0x14788c,_0x5a9d02)=>S(_0x22eafc,'COMMENT_ARIA_LABEL',[_0x50d009['author']['name'],_0x26dc39['formatDateTime'](_0x5a9d02),new DOMParser()['parseFromString'](_0x14788c,'text/html')['body']['textContent'],_0x50d009['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new ts(_0x22eafc,S(_0x22eafc,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x16c208(),this['focusTracker']=new _0x4154a6(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x160ce6=>_0x160ce6['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 _0x506a4d=new hs(this['locale']);return _0x506a4d['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x321b59,_0x16c455)=>_0x16c455?_0x3a9995(_0x321b59,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x321b59),_0x506a4d;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x19b472=new os(this['locale'],this['_config']['editorConfig']);return _0x19b472['value']=this['_model']['content'],_0x19b472['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x19b472['submitLabel']=S(this['locale'],'Save'),_0x19b472['on']('submit',(_0x2d9e41,_0x2dfb90)=>{this['fire']('updateComment',this['_model']['id'],_0x2dfb90),this['switchToDisplayMode'](),this['focus']();}),_0x19b472['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x19b472['once']('editorReady',()=>{_0x19b472['focus']();}),_0x19b472['createEditor'](),_0x19b472['delegate']('editorReady')['to'](this),_0x19b472['delegate']('editorDestroyed')['to'](this),_0x19b472;}['_setupKeyboardNavigation'](){const _0x419123=this['element'];this['keystrokes']['listenTo'](_0x419123);for(const _0xa430cf of this['focusables'])this['focusTracker']['add'](_0xa430cf['element']),this['keystrokes']['listenTo'](_0xa430cf['element']);this['focusables']['on']('change',(_0x581a95,_0x960971)=>{for(const _0x51d101 of _0x960971['removed'])this['focusTracker']['remove'](_0x51d101['element']),this['keystrokes']['stopListening'](_0x51d101['element']);for(const _0x4b194c of _0x960971['added'])this['focusTracker']['add'](_0x4b194c['element']),this['keystrokes']['listenTo'](_0x4b194c['element']);}),this['keystrokes']['set']('enter',(_0x4a351b,_0x22dfb3)=>{_0x419123===_0x4a351b['target']&&(this['focusCycler']['focusFirst'](),_0x22dfb3());}),this['keystrokes']['set']('esc',(_0xf760f4,_0x54f1e8)=>{_0x419123!==_0xf760f4['target']&&(this['focus'](),_0x54f1e8());});}}class gt extends/* #__PURE__ -- @preserve */
28
+ ti(rs){['actionBar'];['userView'];constructor(_0x39ad9e,_0x4fb62c,_0x552c40){super(_0x39ad9e,_0x4fb62c,_0x552c40),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x39ad9e,'Reply...')),this['bind']('authoredAt')['to'](_0x4fb62c),this['bind']('resolvedAt')['to'](_0x4fb62c),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 _0x4135a0(_0x39ad9e,_0x4fb62c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x4fb62c,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2b4cea=this['bindTemplate'],_0x3445f8=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x2b4cea['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2b4cea['to']('authoredAt',_0x1d40b9=>this['_config']['formatDateTime'](_0x1d40b9))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x2b4cea['if']('isEditMode','ck-comment__actions--hidden'),_0x2b4cea['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']&&_0x3445f8['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x2b4cea['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x2b4cea['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x2b4cea['if']('isEditMode','ck-comment--edit'),_0x2b4cea['if']('isSystemComment','ck-comment--info'),_0x2b4cea['to']('actionIndicator',_0x3ce49e=>_0x3ce49e?'ck-comment--'+_0x3ce49e:'')],'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':_0x3445f8}]}]};}['_createEditButton'](){const _0x3c1ca9=new _0x2262e4(this['locale']);return _0x3c1ca9['label']=S(this['locale'],'Edit'),_0x3c1ca9['icon']=_0x5291e1['pencil'],_0x3c1ca9['withText']=!0x0,_0x3c1ca9['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x3c1ca9['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1360ca=>!_0x1360ca),_0x3c1ca9['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x3c1ca9['on']('execute',()=>this['switchToEditMode']()),_0x3c1ca9;}['_createRemoveButton'](){const _0x5f2ee0=new _0x2262e4(this['locale']);return _0x5f2ee0['label']=S(this['locale'],'Remove'),_0x5f2ee0['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-2025,\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',_0x5f2ee0['withText']=!0x0,_0x5f2ee0['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x5f2ee0['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x172ee6=>!_0x172ee6),_0x5f2ee0['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x5f2ee0['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x5f2ee0;}['_createDropdown'](){const _0x261fd3=_0x296238(this['locale'],_0x5557ac),_0x3aa81b=_0x261fd3['panelView']['children'],_0x8b7a0b=new _0x1c1405(this['locale']),_0x43c99e=_0x261fd3['bindTemplate'];_0x302ad5(_0x261fd3,()=>this['items']['find'](_0x437672=>_0x437672['isVisible'])),_0x261fd3['extendTemplate']({'attributes':{'class':[_0x43c99e['if']('isVisible','ck-hidden',_0x5dd3e6=>!_0x5dd3e6)]}});const _0x48bff5=(_0x5b4245,_0x93c5d6=-0x1)=>{const _0x1c883f=new _0x4393c9(this['locale']);_0x1c883f['children']['add'](_0x5b4245);const _0x120f2e=_0x93c5d6>-0x1?_0x93c5d6:_0x8b7a0b['items']['length'];_0x8b7a0b['items']['add'](_0x1c883f,_0x120f2e);const _0x13e6ac=Array['from'](this['items']);_0x261fd3['unbind']('isEnabled','isVisible'),_0x261fd3['bind']('isEnabled')['toMany'](_0x13e6ac,'isEnabled',(..._0xfc397f)=>_0xfc397f['some'](_0x5f34ab=>_0x5f34ab)),_0x261fd3['bind']('isVisible')['toMany'](_0x13e6ac,'isVisible',(..._0x3442b9)=>_0x3442b9['some'](_0x43439e=>_0x43439e));};_0x261fd3['panelPosition']='sw',_0x261fd3['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x5291e1['threeVerticalDots']});for(const _0xa6cfcc of this['items'])_0x48bff5(_0xa6cfcc);return _0x3aa81b['add'](_0x8b7a0b),_0x261fd3['listenTo'](this['items'],'add',(_0x4da70b,_0x1cd7f7,_0x1a6cb7)=>{_0x48bff5(_0x1cd7f7,_0x1a6cb7);}),_0x261fd3['listenTo'](this['items'],'remove',(_0x344eb6,_0x1cf401,_0x263e5d)=>{_0x8b7a0b['items']['remove'](_0x263e5d);}),_0x261fd3;}['_attachActions'](_0x5c3892,_0x313811){const _0x3dd5eb=_0x5c3892&&_0x5c3892['element'];_0x3dd5eb&&(this['listenTo'](_0x3dd5eb,'mouseenter',()=>this['actionIndicator']=_0x313811),this['listenTo'](_0x3dd5eb,'focus',()=>this['actionIndicator']=_0x313811),this['listenTo'](_0x3dd5eb,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x3dd5eb,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x381ba9=super['_createCommentInputView']();return _0x381ba9['bind']('placeholder')['to'](this),_0x381ba9;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0x2379c7){const _0x47e606=Dt(_0x2379c7,0x1e),_0x3ccc00=new MutationObserver(_0x1a8195=>{for(const _0x4c3258 of _0x1a8195)('attributes'==_0x4c3258['type']&&'class'==_0x4c3258['attributeName']||'childList'==_0x4c3258['type']||'characterData'==_0x4c3258['type'])&&_0x47e606();});return{'attach'(_0x425435){_0x3ccc00['observe'](_0x425435,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x3ccc00['disconnect'](),_0x47e606['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x517593,_0x59d195){super(_0x517593),this['id']=_0x25b112(),this['focusTracker']=new _0x4154a6(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x280a0a,_0x349e8f)=>this['fire']('Esc',_0x349e8f)),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'](_0x59d195),this['mainView']=_0x59d195;const _0x2643d7=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x2643d7['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 _0x1b4a60=this['element']['clientHeight'];_0x1b4a60&&(this['height']=_0x1b4a60);}}class d extends/* #__PURE__ -- @preserve */
29
+ _0x3223d5(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x44eb83,target:_0x262a11,type:_0x344078,isVisible:_0xc57269=!0x0}){super(),this['view']=_0x44eb83,this['view']['element']||this['view']['render'](),this['_type']=_0x344078,this['_target']=_0x262a11,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x390bdd([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x1e7270,_0x8a2ed)=>{this['view']['focusTracker']['add'](_0x8a2ed);}),this['focusableElements']['on']('remove',(_0x5a1429,_0x317744)=>{this['view']['focusTracker']['remove'](_0x317744);}),this['set']('isVisible',_0xc57269);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x23afac=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x23afac),_0x23afac;}get['targetRect'](){const _0x97d0f1=this['target'];if(null===_0x97d0f1)return null;if(_0x97d0f1 instanceof _0x11210f)return _0x97d0f1;const _0x28a253=_0x97d0f1['filter'](_0x482c70=>function(_0x5194bf){const _0x128e68=_0x5194bf['offsetParent'];if(_0x128e68)return!0x0;const _0x2f17cb=_0x5194bf['getClientRects']()['item'](0x0);return!!_0x2f17cb;}(_0x482c70));return 0x0===_0x28a253['length']?null:new _0x11210f(_0x28a253[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x419a2a){this['view']['isActive']=_0x419a2a,this['view']['mainView']['isActive']=_0x419a2a;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x20171a){if(!(null===_0x20171a||_0x20171a instanceof _0x11210f||Array['isArray'](_0x20171a)&&_0x20171a['every'](_0xe4b994=>ne(_0xe4b994))))throw new _0x4f8f09('annotation-invalid-target',null,{'target':_0x20171a});}['_getNormalizedTarget'](){const _0x2da509='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x2da509)?[_0x2da509]:_0x2da509;}}function ne(_0x327ce6){return null!==_0x327ce6&&'object'==typeof _0x327ce6&&'nodeType'in _0x327ce6&&0x1===_0x327ce6['nodeType'];}class x extends _0x390bdd{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x300efb=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x4154a6(),this['_focusTracker']['on']('change:isFocused',(_0x3f4859,_0x237bcf,_0x37a834)=>{_0x37a834||this['fire']('blur');});for(const _0x2127f9 of _0x300efb)this['add'](_0x2127f9);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x124fad){if(this['has'](_0x124fad))throw new _0x4f8f09('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x124fad['innerView'],_0x124fad),this['_viewToAnnotation']['set'](_0x124fad['view'],_0x124fad);for(const _0x4116c9 of _0x124fad['focusableElements'])this['_focusTracker']['add'](_0x4116c9);this['listenTo'](_0x124fad['focusableElements'],'add',(_0x5674c9,_0x296a2b)=>{this['_focusTracker']['add'](_0x296a2b);}),this['listenTo'](_0x124fad['focusableElements'],'remove',(_0x16d531,_0x7b9243)=>{this['_focusTracker']['remove'](_0x7b9243);}),this['listenTo'](_0x124fad['view']['focusTracker'],'change:isFocused',(_0x2e73e7,_0x4dddc2,_0x3c43f2)=>{_0x3c43f2&&this['fire']('focus',_0x124fad);}),_0x124fad['updateTargetRect']();const _0x61c028=this['_getOrderInContent'](_0x124fad['view']['targetRect']);return super['add'](_0x124fad,_0x61c028);}['remove'](_0x200b0e){if(!this['has'](_0x200b0e))throw new _0x4f8f09('annotationcollection-not-existing-item',null);this['stopListening'](_0x200b0e['view']['focusTracker']),this['stopListening'](_0x200b0e['focusableElements']);for(const _0x4a3418 of _0x200b0e['focusableElements'])this['_focusTracker']['remove'](_0x4a3418);return this['_viewToAnnotation']['delete'](_0x200b0e['view']),this['_innerViewToAnnotation']['delete'](_0x200b0e['innerView']),super['remove'](_0x200b0e);}['getByInnerView'](_0x4b8cdc){return this['_innerViewToAnnotation']['get'](_0x4b8cdc);}['getByView'](_0xcd1f6b){return this['_viewToAnnotation']['get'](_0xcd1f6b);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x587b97 of this)_0x587b97['updateTargetRect']();this['_sort']();}['_sort'](){const _0x40c3e3=Array['from'](this)['sort']((_0x2778e5,_0xe8fba1)=>v(_0x2778e5['view']['targetRect'],_0xe8fba1['view']['targetRect']));for(let _0x2057a1=_0x40c3e3['length']-0x1;_0x2057a1>0x0;_0x2057a1--){const _0x18a08e=_0x40c3e3[_0x2057a1];_0x2057a1!==this['getIndex'](_0x18a08e)&&(this['remove'](_0x18a08e),this['add'](_0x18a08e));}}['_getOrderInContent'](_0x1c0609){let _0x1d851e=0x0;if(!_0x1c0609)return this['length'];for(const _0xbc6a9f of this){const _0x17da51=_0xbc6a9f['view']['targetRect'];if(_0x17da51){if(v(_0x1c0609,_0x17da51)<0x0)return _0x1d851e;_0x1d851e++;}}return _0x1d851e;}}function v(_0x36ea28,_0x465f24){if(null===_0x36ea28&&null===_0x465f24)return 0x0;if(null===_0x36ea28)return-0x1;if(null===_0x465f24)return 0x1;const _0x5693c5=_0x36ea28['top']-_0x465f24['top'];return 0x0==_0x5693c5?_0x36ea28['left']-_0x465f24['left']:_0x5693c5;}class N extends _0x2c5a36{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x478ac1){if(super(_0x478ac1),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x478ac1 instanceof _0x3e9c61){const _0x310bfb=_0x478ac1['locale'];_0x478ac1['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x310bfb,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x310bfb,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x310bfb,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x310bfb,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x310bfb,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x310bfb,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x310bfb,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x2dab85){this['collection']['add'](_0x2dab85);}['remove'](_0x4ade2b){this['collection']['remove'](_0x4ade2b),_0x4ade2b['destroy']();}['refreshVisibility'](){for(const _0x14941e of this['collection'])_0x14941e['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x34b646){return this['collection']['getByInnerView'](_0x34b646);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x2de919 of this['collection'])_0x2de919['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x56fec6){this['fire']('_activateAnnotation',_0x56fec6);}['createAnnotation'](_0x589cc5){return new d(_0x589cc5);}['createAnnotationView'](_0x5a214c,_0x117518){return new T(_0x5a214c,_0x117518);}['_addActiveAnnotation'](_0x586617){const _0x2567ef=new Set(this['activeAnnotations']);_0x2567ef['add'](_0x586617),this['activeAnnotations']=_0x2567ef;}['_removeActiveAnnotation'](_0xdd5db1){const _0xd138be=new Set(this['activeAnnotations']);_0xd138be['delete'](_0xdd5db1),this['activeAnnotations']=_0xd138be;}['_bindAnnotationsToVisibleAnnotations'](){const _0x10a969=this['collection'],_0x18d502=this['_visibleAnnotations'];function _0x20bddf(_0x316ce3){const _0x2fe451=_0x316ce3['source'];_0x2fe451['isVisible']&&!_0x18d502['has'](_0x2fe451)?_0x18d502['add'](_0x2fe451):!_0x2fe451['isVisible']&&_0x18d502['has'](_0x2fe451)&&_0x18d502['remove'](_0x2fe451),_0x2fe451['view']['focusTracker']['remove'](_0x2fe451['view']['element']),_0x2fe451['view']['focusTracker']['add'](_0x2fe451['view']['element']);}this['listenTo'](_0x10a969,'add',(_0x2def16,_0x338a65)=>{_0x338a65['isVisible']&&_0x18d502['add'](_0x338a65),this['listenTo'](_0x338a65,'change:isVisible',_0x20bddf);}),this['listenTo'](_0x10a969,'remove',(_0x7f191e,_0x256973)=>{_0x18d502['has'](_0x256973)&&_0x18d502['remove'](_0x256973),this['stopListening'](_0x256973,'change:isVisible',_0x20bddf);});}['_setupEnterAnnotationKeystroke'](){const _0x92a99e=_0x40bc39=>{_0x40bc39['on']('ready',()=>{_0x40bc39['keystrokes']['set'](_0x997d2c,(_0x4d6a57,_0x3c47c7)=>{const _0x277083=_0xde018e(this['activeAnnotations']['values']());_0x277083&&(_0x277083['view']['focus'](),_0x3c47c7());});});};this['context']instanceof _0x3e9c61?_0x92a99e(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x33dc5c,_0x2fd6fb)=>{_0x92a99e(_0x2fd6fb);});}['_setupEscapeAnnotationHandling'](){const _0x5802ae=_0xfe0312=>{const _0x51955b=_0xfe0312['source'],_0x224ff2=[];let _0x4cd18b;if(Array['isArray'](_0x51955b['target'])){_0x4cd18b=_0x51955b['target'][0x0],this['context']instanceof _0x3e9c61?_0x224ff2['push'](this['context']):this['context']['editors']&&_0x224ff2['push'](...this['context']['editors']);for(const _0x23c6a6 of _0x224ff2)for(const _0x56bd77 of _0x23c6a6['editing']['view']['domRoots']['values']())if(_0x56bd77['contains'](_0x4cd18b))return void _0x23c6a6['editing']['view']['focus']();_0x4cd18b['focus']();}};this['listenTo'](this['collection'],'add',(_0x425303,_0x1b8ce4)=>{this['listenTo'](_0x1b8ce4,'escape',_0x5802ae,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x78a830,_0x421dd8)=>{this['stopListening'](_0x421dd8,'escape',_0x5802ae);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x2c5a36{['_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(_0x23096f){super(_0x23096f),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x128018=this['context']['config'];_0x128018['define']('comments.maxCommentsWhenCollapsed',0x2),_0x128018['define']('comments.maxThreadTotalWeight',0x1f4),_0x128018['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x128018['define']('comments.CommentThreadView',vt),_0x128018['define']('comments.CommentView',gt),_0x128018['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x1ba39f=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x2fcf19,_0x18b220)=>this['_addCommentThread'](_0x18b220)),this['on']('submitCommentThread',(_0x3366de,_0x442a64)=>this['_submitCommentThread'](_0x442a64)),this['on']('resolveCommentThread',(_0x244d89,_0xf3d3d7)=>this['_resolveCommentThread'](_0xf3d3d7)),this['on']('resolveCommentThread',(_0x430d31,_0x3e4371)=>this['_updateActiveAnnotation'](_0x3e4371),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x37a2af,_0x275c86)=>this['_reopenCommentThread'](_0x275c86)),this['on']('reopenCommentThread',(_0x3eaa72,_0x17aae8)=>this['_updateActiveAnnotation'](_0x17aae8),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x92a4ab,_0x1c0ecd)=>this['_removeCommentThread'](_0x1c0ecd)),this['on']('updateCommentThread',(_0x5926be,_0x52d2c3)=>this['_updateCommentThread'](_0x52d2c3)),this['on']('updateCommentThread',(_0xa31528,_0x100b04)=>this['_updateActiveAnnotation'](_0x100b04),{'priority':'lowest'}),this['on']('addComment',(_0x3dfa43,_0x51f5d5)=>this['_addComment'](_0x51f5d5)),this['on']('updateComment',(_0x6819b1,_0x241a03)=>this['_updateComment'](_0x241a03)),this['on']('removeComment',(_0x243ef1,_0x1daae7)=>this['_removeComment'](_0x1daae7)),this['on']('addComment',(_0x538098,{threadId:_0x358c55,isFromAdapter:_0x4efcb3})=>{if(_0x4efcb3)return;const _0x2c504e=this['getCommentThread'](_0x358c55),_0x4f3457=_0x2c504e&&this['_threadToController']['get'](_0x2c504e);_0x4f3457&&_0x4f3457['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x1ba39f,'change:activeAnnotations',(_0x1ed664,_0x3d8367,_0x2be3e7)=>{const _0xd6fc1c=Array['from'](_0x2be3e7)['map'](_0x32a10e=>this['_viewToController']['get'](_0x32a10e['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0xd6fc1c?_0xd6fc1c['model']:null;});}set['adapter'](_0x1bc2ad){if(this['_adapter'])throw new _0x4f8f09('commentsrepository-adapter-already-set');this['_adapter']=_0x1bc2ad;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x7b31a3=Tt,threadId:_0x561ce1=_0x25b112(),comments:_0x4a95df=[],unlinkedAt:_0x309e49=null,resolvedAt:_0x355bc2=null,resolvedBy:_0x48513a=null,target:_0x260f88=null,context:_0x470922=null,attributes:_0xd736d0={},isResolvable:_0x994fc7=!0x0,isSubmitted:_0xf590bd=!0x1,isFromAdapter:_0x4865ac=!0x1}={}){return this['fire'](bt('addCommentThread',_0x7b31a3),{'channelId':_0x7b31a3,'threadId':_0x561ce1,'comments':_0x4a95df,'unlinkedAt':_0x309e49,'resolvedAt':_0x355bc2,'resolvedBy':_0x48513a,'target':_0x260f88,'context':_0x470922,'attributes':_0xd736d0,'isFromAdapter':_0x4865ac,'isResolvable':_0x994fc7,'isSubmitted':_0xf590bd}),this['getCommentThread'](_0x561ce1);}['openNewCommentThread']({channelId:_0x14c776=Tt,threadId:_0x52df1e=_0x25b112(),target:_0x5d3b58,context:_0x927907=null,isResolvable:_0x242282=!0x0}){if(this['_readOnlyChannels']['has'](_0x14c776)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x5d3b58)throw new _0x4f8f09('commentsrepository-missing-target');const _0x1b754e=this['addCommentThread']({'channelId':_0x14c776,'threadId':_0x52df1e,'target':_0x5d3b58,'context':_0x927907,'isResolvable':_0x242282});if(!_0x1b754e)return null;const _0x49f937=this['_threadToController']['get'](_0x1b754e),_0x68196e=_0x49f937['view']['commentThreadInputView']['commentInputView'],_0x5d8196=this['context']['plugins']['get'](N),_0x3e6152=_0x5d8196['getByInnerView'](_0x49f937['view']);return _0x5d8196['activate'](_0x3e6152),_0x68196e['once']('editorReady',()=>_0x68196e['focus']()),_0x1b754e;}['hasCommentThread'](_0x5239bb){if('string'!=typeof _0x5239bb)throw new _0x4f8f09('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x5239bb);}['updateCommentThread']({channelId:_0x40d417=Tt,threadId:_0x3bc457,context:_0x1c5453,unlinkedAt:_0x97e1a8,attributes:_0x2a8a48,isFromAdapter:_0x43c0f6=!0x1}){return this['fire'](bt('updateCommentThread',_0x40d417),{'channelId':_0x40d417,'threadId':_0x3bc457,'context':_0x1c5453,'unlinkedAt':_0x97e1a8,'attributes':_0x2a8a48,'isFromAdapter':_0x43c0f6}),this['getCommentThread'](_0x3bc457);}['getCommentThread'](_0x4fb7b2){if('string'!=typeof _0x4fb7b2)throw new _0x4f8f09('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x4fb7b2);}['fetchCommentThread']({channelId:_0x28623b,threadId:_0x26a8b0}={}){const _0x273e57=this['getCommentThread'](_0x26a8b0);if(_0x273e57)return Promise['resolve'](_0x273e57);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x4f8f09('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x28623b,'threadId':_0x26a8b0})['then'](_0x5120b9=>this['hasCommentThread'](_0x26a8b0)?this['getCommentThread'](_0x26a8b0):_0x5120b9?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x28623b},_0x5120b9)):void 0x0)['catch'](_0x11f8dc=>{throw console['error'](_0x11f8dc),new _0x4f8f09('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x4d9881,skipNotAttached:_0x3fc7d4=!0x1,skipEmpty:_0x45f08d=!0x1,toJSON:_0x45dc88=!0x1}={}){const _0x3ab77f=[];for(const _0x5be0e7 of this['_threads']['values']())_0x4d9881&&_0x5be0e7['channelId']!==_0x4d9881||_0x3fc7d4&&!_0x5be0e7['isAttached']||_0x45f08d&&0x0===_0x5be0e7['length']||_0x3ab77f['push'](_0x5be0e7);return _0x45dc88?_0x3ab77f['map'](_0x57ff6f=>_0x57ff6f['toJSON']()):_0x3ab77f;}['setActiveCommentThread'](_0x56c57e){const _0x480565=this['context']['plugins']['get'](N);if(!_0x56c57e)return void(this['activeCommentThread']&&_0x480565['deactivateAll']());const _0x1c6966=this['getCommentThread'](_0x56c57e);if(!_0x1c6966)throw new _0x4f8f09('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x56c57e});if(!this['_threadToController']['has'](_0x1c6966))throw new _0x4f8f09('commentsrepository-active-not-attached',null,{'threadId':_0x56c57e});const _0x5da5cc=_0x480565['getByInnerView'](this['_threadToController']['get'](_0x1c6966)['view']);_0x480565['activate'](_0x5da5cc);}['switchReadOnly'](_0x15ae40,_0x5ccebf){_0x15ae40?this['_readOnlyChannels']['add'](_0x5ccebf):this['_readOnlyChannels']['delete'](_0x5ccebf),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0xfc1fa8){return this['_readOnlyChannels']['has'](_0xfc1fa8)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x2617e0,_0x284f93){return new Ct(_0x2617e0,_0x284f93);}['setPermissions'](_0x13fdaf,_0x5b609b=Tt){this['_permissions']['set'](_0x5b609b,_0x13fdaf),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x47a7b5=Tt){return this['_permissions']['has'](_0x47a7b5)?this['_permissions']['get'](_0x47a7b5):_t;}['_addCommentThread']({channelId:_0x2f8de9,threadId:_0x4d5239,comments:_0x43e40a,unlinkedAt:_0x170cce,resolvedAt:_0x4e2a54,resolvedBy:_0x4ed733,target:_0x4f04c9,context:_0x709da9,attributes:_0x2be9a2,isFromAdapter:_0x53f849,isResolvable:_0x2693f0,isSubmitted:_0x899ec5}){if('string'!=typeof _0x4d5239)throw new _0x4f8f09('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x4d5239});if(this['hasCommentThread'](_0x4d5239))throw new _0x4f8f09('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x4d5239});const _0x466a48=new oe(this,{'channelId':_0x2f8de9,'id':_0x4d5239,'context':_0x709da9,'attributes':_0x2be9a2,'unlinkedAt':_0x170cce,'resolvedAt':_0x4e2a54,'resolvedBy':_0x4ed733?this['context']['plugins']['get'](it)['getUser'](_0x4ed733):null,'isResolvable':_0x2693f0,'isSubmitted':_0x899ec5||_0x53f849});this['_threads']['set'](_0x4d5239,_0x466a48);for(const _0x567f0f of _0x43e40a)_0x466a48['_add'](this['_createNewComment']({'threadId':_0x4d5239,..._0x567f0f}));return _0x4f04c9&&_0x466a48['attachTo'](_0x4f04c9),_0x53f849||!_0x466a48['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x2f8de9,'threadId':_0x4d5239});}['_submitCommentThread']({channelId:_0x373561,threadId:_0x503287}){if(!this['hasCommentThread'](_0x503287))throw new _0x4f8f09('commentsrepository-missing-comment-thread',this);const _0x169d0c=this['getCommentThread'](_0x503287);if(_0x169d0c['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x5bd396,comments:_0x44b6b5,resolvedAt:_0x1336b7,resolvedBy:_0x5cc55c,context:_0x2fade2,attributes:_0x100263}=_0x169d0c,_0x52f4e1=this['context']['plugins']['get']('PendingActions'),_0x263cd1=_0x52f4e1['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x373561,'threadId':_0x5bd396,'comments':_0x44b6b5['map'](_0x443316=>_0x443316['toJSON']()),'resolvedAt':_0x1336b7,'resolvedBy':_0x5cc55c?_0x5cc55c['id']:_0x5cc55c,'context':_0x2fade2,'attributes':_0x100263})['then'](({comments:_0x45c64c})=>{_0x52f4e1['remove'](_0x263cd1);for(const _0x4adf66 of _0x45c64c)this['_updateComment']({'channelId':_0x373561,'threadId':_0x503287,'commentId':_0x4adf66['commentId'],'createdAt':_0x4adf66['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x34779a=>{throw console['error'](_0x34779a),new _0x4f8f09('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x8cd792,target:_0x481fb9}){const _0xedab7d=this['getCommentThread'](_0x8cd792);if(!_0xedab7d)throw new _0x4f8f09('commentsrepository-attach-missing-comment-thread',this);const _0xd0245a=this['context']['plugins']['get']('PendingActions'),_0xb6f82a=this['context']['plugins']['get'](N),_0x378e5b=this['_createCommentThreadView'](_0xedab7d),_0xd42356=new Ct(_0xedab7d,_0x378e5b);let _0x3368a3=null;_0x378e5b['on']('change:isDirty',(_0x35b272,_0x8a8dc5,_0x4f5639)=>{_0x4f5639?_0x3368a3=_0xd0245a['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x3368a3&&(_0xd0245a['remove'](_0x3368a3),_0x3368a3=null);}),this['_threadToController']['set'](_0xedab7d,_0xd42356),this['_viewToController']['set'](_0x378e5b,_0xd42356);const _0x231f58=new T(this['context']['locale'],_0x378e5b);_0x231f58['bind']('length')['to'](_0x378e5b),_0x231f58['bind']('isDirty')['to'](_0x378e5b,'isDirty',_0x378e5b,'length',(_0x326cc9,_0x1d6ae5)=>_0x326cc9||!_0x1d6ae5),_0x231f58['bind']('isActive')['to'](_0x378e5b),_0x231f58['type']='comment';const _0x44666e=new d({'view':_0x231f58,'target':_0x481fb9,'type':'comment','isVisible':!_0xedab7d['archivedAt']});return _0x378e5b['on']('escape',()=>{_0x44666e['fire']('escape');}),this['_bindAnnotationToEditors'](_0x378e5b,_0x44666e),_0xb6f82a['add'](_0x44666e),_0x44666e;}['_bindAnnotationToEditors'](_0xaf588f,_0x1f0302){this['listenTo'](_0xaf588f,'editorReady',(_0x583f9f,_0x5b8198)=>{const _0x1379f8=_0x5b8198['ui']['view']['body']['bodyCollectionContainer'];_0x1f0302['focusableElements']['add'](_0x1379f8),this['context']instanceof _0x3e9c61&&this['context']['ui']['focusTracker']['add'](_0x1379f8);},{'priority':'highest'}),this['listenTo'](_0xaf588f,'editorDestroyed',(_0x2a7b40,_0x3c65c7)=>{const _0x2de691=_0x3c65c7['ui']['view']['body']['bodyCollectionContainer'];_0x1f0302['focusableElements']['has'](_0x2de691)&&_0x1f0302['focusableElements']['remove'](_0x2de691),this['context']instanceof _0x3e9c61&&this['context']['ui']['focusTracker']['remove'](_0x2de691);});}['_unbindEditors'](_0x54ac5d){this['stopListening'](_0x54ac5d,'editorReady'),this['stopListening'](_0x54ac5d,'editorDestroyed');}['_createCommentThreadView'](_0x1c53ad){const _0x1fcb1d=this['context']['plugins']['get'](it),{config:_0x4c489a,locale:_0x57edf5}=this['context'],_0x160f35=lt(_0x4c489a['get']('locale'));return new(0x0,(_0x4c489a['get']('comments'))['CommentThreadView'])(_0x57edf5,_0x1c53ad,_0x1fcb1d['me'],{'editorConfig':{..._0x4c489a['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x4c489a['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x4c489a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4c489a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4c489a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x160f35,'CommentView':_0x4c489a['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x1a02d1,channelId:_0xe2e352,resolvedAt:_0x1d7b6d,resolvedBy:_0x5a544d,isFromAdapter:_0x57f76f}){if(!this['hasCommentThread'](_0x1a02d1))throw new _0x4f8f09('commentsrepository-missing-comment-thread',null,{'threadId':_0x1a02d1});const _0x5bd3ff=this['getCommentThread'](_0x1a02d1);if(_0x5bd3ff['isResolved'])throw new _0x4f8f09('commentsrepository-resolved-comment-thread',null,{'threadId':_0x1a02d1});const _0x52a4e0=this['context']['plugins']['get'](it);if(_0x5bd3ff['resolvedBy']=_0x52a4e0['getUser'](_0x5a544d),_0x5bd3ff['resolvedAt']=_0x1d7b6d,_0x57f76f||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x15857d=this['context']['plugins']['get']('PendingActions'),_0x5c2027=_0x15857d['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0xe2e352,'threadId':_0x1a02d1})['then'](({resolvedAt:_0x3ebdaa,resolvedBy:_0xfd7746})=>{_0x15857d['remove'](_0x5c2027),_0x5bd3ff['resolvedBy']['id']!==_0xfd7746&&(_0x5bd3ff['resolvedBy']=_0x52a4e0['getUser'](_0xfd7746)),_0x5bd3ff['resolvedAt']=_0x3ebdaa;})['catch'](_0x552307=>{throw console['error'](_0x552307),new _0x4f8f09('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x533dff,channelId:_0x1526a9,isFromAdapter:_0x1396ea}){if(!this['hasCommentThread'](_0x533dff))throw new _0x4f8f09('commentsrepository-missing-comment-thread',null,{'threadId':_0x533dff});const _0xee6eea=this['getCommentThread'](_0x533dff);if(!_0xee6eea['isResolved'])throw new _0x4f8f09('commentsrepository-reopen-comment-thread',null,{'threadId':_0x533dff});if(_0xee6eea['resolvedBy']=null,_0xee6eea['resolvedAt']=null,_0x1396ea||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x29265f=this['context']['plugins']['get']('PendingActions'),_0x3db3a9=_0x29265f['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x1526a9,'threadId':_0x533dff})['then'](()=>_0x29265f['remove'](_0x3db3a9))['catch'](_0x41fe25=>{throw console['error'](_0x41fe25),new _0x4f8f09('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x34e6af,isFromAdapter:_0x20163e}){const _0x3765d9=this['getCommentThread'](_0x34e6af);if(!_0x3765d9)throw new _0x4f8f09('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x34e6af),this['_threads']['delete'](_0x34e6af),!_0x3765d9['isSubmitted']||_0x20163e||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x575867=this['context']['plugins']['get']('PendingActions'),{channelId:_0x398da9}=_0x3765d9,_0x590230=_0x575867['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x398da9,'threadId':_0x34e6af})['then'](()=>_0x575867['remove'](_0x590230))['catch'](_0x212ee4=>{throw console['error'](_0x212ee4),new _0x4f8f09('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x1c1cbf,unlinkedAt:_0x51ccfc,context:_0x1f1f47,attributes:_0x975dd2,isFromAdapter:_0x240071}){if('string'!=typeof _0x1c1cbf)throw new _0x4f8f09('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x1c1cbf});if(!this['hasCommentThread'](_0x1c1cbf))throw new _0x4f8f09('commentsrepository-missing-comment-thread',null,{'threadId':_0x1c1cbf});const _0x9f4c1a=this['getCommentThread'](_0x1c1cbf);let _0x5bb672=!0x1;if(void 0x0!==_0x1f1f47&&_0x9f4c1a['context']!==_0x1f1f47&&(_0x9f4c1a['context']=_0x1f1f47,_0x5bb672=!0x0),void 0x0!==_0x51ccfc&&_0x9f4c1a['unlinkedAt']!==_0x51ccfc&&(_0x9f4c1a['unlinkedAt']=_0x51ccfc,_0x5bb672=!0x0),_0x975dd2&&!wt(_0x975dd2,_0x9f4c1a['attributes'])&&(_0x9f4c1a['attributes']=_0x975dd2,_0x5bb672=!0x0),!_0x5bb672)return Promise['resolve']();if(!_0x9f4c1a['isSubmitted']||_0x240071||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x9db352=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3d5637}=_0x9f4c1a,_0x3b758e=_0x9db352['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x3d5637,'threadId':_0x1c1cbf,'context':_0x1f1f47,'unlinkedAt':_0x51ccfc,'attributes':_0x975dd2})['then'](()=>_0x9db352['remove'](_0x3b758e))['catch'](_0x3e1d20=>{throw console['error'](_0x3e1d20),new _0x4f8f09('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x393f5b){const _0x3eba23=this['context']['plugins']['get'](N),_0x1eecd9=this['getCommentThread'](_0x393f5b);if(_0x1eecd9['_isAttached']=!0x1,this['_threadToController']['has'](_0x1eecd9)){const _0x2a209c=this['_threadToController']['get'](_0x1eecd9),_0x5ac169=_0x2a209c['view'],_0x4a6195=_0x3eba23['getByInnerView'](_0x5ac169);this['_threadToController']['delete'](_0x1eecd9),this['_viewToController']['delete'](_0x5ac169),_0x4a6195&&_0x3eba23['remove'](_0x4a6195),_0x2a209c['destroy'](),_0x5ac169['destroy']()['then'](()=>{this['_unbindEditors'](_0x5ac169);});}}['_updateActiveAnnotation']({threadId:_0xd3bae6,resolvedAt:_0x2067b5}){const _0x13481d=!!_0x2067b5,_0xd905b1=this['context']['plugins']['get'](N),_0x31bf14=this['getCommentThread'](_0xd3bae6);if(this['_threadToController']['has'](_0x31bf14)){const _0x3e5489=this['_threadToController']['get'](_0x31bf14)['view'],_0x58e0af=_0xd905b1['getByInnerView'](_0x3e5489);_0x58e0af&&(_0x13481d&&_0xd905b1['_removeActiveAnnotation'](_0x58e0af),_0x58e0af['refreshVisibility']());}}['_getExternalAuthor'](_0x27a827){const _0x308f80=this['context']['plugins']['get'](it),_0x574b2a=pt('external:'+_0x27a827),_0x4db206=_0x308f80['getUser'](_0x574b2a);return _0x4db206||_0x308f80['addUser']({'id':_0x574b2a,'name':_0x27a827});}['_createNewComment']({threadId:_0x4af980,commentId:_0x40a043=_0x25b112(),content:_0x1ab179,authorId:_0x65080f,createdAt:_0xee04d4,attributes:_0x23b500}){if('string'!=typeof _0x40a043)throw new _0x4f8f09('commentsrepository-invalid-commentid');if('string'!=typeof _0x65080f)throw new _0x4f8f09('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x1ab179||!_0x1ab179['trim']())throw new _0x4f8f09('commentsrepository-invalid-comment-content');const _0xeff1fd=this['context']['plugins']['get'](it)['getUser'](_0x65080f);if(!_0xeff1fd)throw new _0x4f8f09('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x65080f});let _0x467273=null,_0x43af38=_0xee04d4;return _0x23b500&&_0x23b500['@external']&&(_0x467273=this['_getExternalAuthor'](_0x23b500['@external']['authorName']),_0x43af38=new Date(_0x23b500['@external']['createdAt'])),new re(this,{'threadId':_0x4af980,'id':_0x40a043,'author':_0x467273||_0xeff1fd,'creator':_0xeff1fd,'content':_0x1ab179,'createdAt':_0xee04d4,'authoredAt':_0x43af38,'attributes':_0x23b500});}['_addComment'](_0x2416dd){let {threadId:_0x2b7e15,content:_0x1e3c9b,attributes:_0x3da046,isFromAdapter:_0x8571af}=_0x2416dd;const _0x5b4f71=this['getCommentThread'](_0x2416dd['threadId']);if(!_0x5b4f71)throw new _0x4f8f09('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x107f9c=this['_createNewComment'](_0x2416dd),{id:_0x1f91d9}=_0x107f9c;if(_0x5b4f71['_add'](_0x107f9c),_0x8571af||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x5b4f71['isSubmitted'])return Promise['resolve']();const _0x538521=this['context']['plugins']['get']('PendingActions'),{channelId:_0x50800b}=_0x5b4f71,_0x4dfdc2=_0x538521['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x3da046||(_0x3da046={}),this['adapter']['addComment']({'channelId':_0x50800b,'threadId':_0x2b7e15,'commentId':_0x1f91d9,'content':_0x1e3c9b,'attributes':_0x3da046})['then'](_0x34d7b0=>{_0x538521['remove'](_0x4dfdc2),_0x34d7b0&&this['_updateComment']({'channelId':_0x50800b,'threadId':_0x2b7e15,'commentId':_0x1f91d9,'createdAt':_0x34d7b0['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x2cc4b9=>{throw console['error'](_0x2cc4b9),new _0x4f8f09('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x400583,commentId:_0x682708,content:_0x1fa293,createdAt:_0x3e7d25,attributes:_0x207da1,isFromAdapter:_0xbb2a18}){if(void 0x0!==_0x1fa293&&('string'!=typeof _0x1fa293||!_0x1fa293['trim']()['length']))throw new _0x4f8f09('commentsrepository-update-comment-invalid-content');const _0x9bffae=this['getCommentThread'](_0x400583),_0x4eeff5=_0x9bffae['getComment'](_0x682708);if(!_0x4eeff5)throw new _0x4f8f09('commentsrepository-update-missing-comment',this);let _0x386a77=!0x1;if(_0x1fa293&&_0x1fa293!==_0x4eeff5['content']&&(_0x4eeff5['isEditable']||_0xbb2a18)&&(_0x4eeff5['content']=_0x1fa293,_0x386a77=!0x0),_0x3e7d25&&_0x3e7d25!==_0x4eeff5['createdAt']&&(_0x4eeff5['createdAt']=_0x3e7d25,_0x4eeff5['attributes']&&_0x4eeff5['attributes']['@external']||(_0x4eeff5['authoredAt']=_0x3e7d25),_0x386a77=!0x0),_0x207da1&&!wt(_0x207da1,_0x4eeff5['attributes'])&&(_0x4eeff5['attributes']=_0x207da1,_0x386a77=!0x0),!_0x386a77)return Promise['resolve']();if(_0x9bffae['fire']('commentUpdated'),_0xbb2a18||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x553e6a=this['context']['plugins']['get']('PendingActions'),{channelId:_0x403280}=this['getCommentThread'](_0x4eeff5['threadId']),_0x23e489=_0x553e6a['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x403280,'threadId':_0x400583,'commentId':_0x682708,'content':_0x1fa293,'attributes':_0x207da1})['then'](()=>_0x553e6a['remove'](_0x23e489))['catch'](_0x4f3070=>{throw console['error'](_0x4f3070),new _0x4f8f09('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x3d99e9,commentId:_0x512ad4,isFromAdapter:_0x21433c}){const _0x3aa2e8=this['getCommentThread'](_0x3d99e9),_0x17d2b5=_0x3aa2e8['getComment'](_0x512ad4);if(!_0x17d2b5)throw new _0x4f8f09('commentsrepository-remove-missing-comment',this);if(_0x3aa2e8['_remove'](_0x17d2b5),_0x21433c||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x6b3c09=this['context']['plugins']['get']('PendingActions'),{channelId:_0x223cf1}=_0x3aa2e8,_0x4b97ef=_0x6b3c09['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x223cf1,'threadId':_0x3d99e9,'commentId':_0x512ad4})['then'](()=>_0x6b3c09['remove'](_0x4b97ef))['catch'](_0x292120=>{throw console['error'](_0x292120),new _0x4f8f09('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
30
+ _0x3223d5(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x25c559,_0x39e795){super();const _0x315b62=_0x39e795['isResolvable'];this['channelId']=_0x39e795['channelId'],this['id']=_0x39e795['id'],this['comments']=new _0x390bdd(),this['_repository']=_0x25c559,this['_isAttached']=!0x1,this['_isSubmitted']=_0x39e795['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x25c559,'_permissions',_0x25c559,'_readOnlyChannels',()=>_0x25c559['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x25c559,'_permissions',()=>_0x25c559['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x25c559,'_permissions',()=>{const _0x493912=_0x25c559['getPermissions'](this['channelId']);return _0x493912['write']||_0x493912['admin'];}),this['bind']('isResolvable')['to'](_0x25c559,'_permissions',()=>_0x315b62&&_0x25c559['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x39e795['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0xe564ea,_0x2d2084)=>_0xe564ea?_0x2d2084?_0xe564ea<_0x2d2084?_0xe564ea:_0x2d2084:_0xe564ea:_0x2d2084),this['set']('unlinkedAt',_0x39e795['unlinkedAt']||null),this['set']('resolvedAt',_0x39e795['resolvedAt']||null),this['set']('resolvedBy',_0x39e795['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x4440ac=>!!_0x4440ac),this['set']('attributes',_0x39e795['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x46c94d,_0x2ce985)=>_0x46c94d+_0x2ce985['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x1176ee,id:_0x13c134}=this;this['_repository']['fire'](bt('submitCommentThread',_0x1176ee),{'channelId':_0x1176ee,'threadId':_0x13c134});}['setUnlinkedAt'](_0x6fb002){this['_update']({'unlinkedAt':_0x6fb002});}['resolve']({resolvedAt:_0x2ad91c=new Date(),resolvedBy:_0xa6e89b=null,isFromAdapter:_0x348714=!0x1}={}){const _0x14f89c=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x6a7a9c,id:_0x498cf9}=this;this['_repository']['fire'](bt('resolveCommentThread',_0x6a7a9c),{'channelId':_0x6a7a9c,'threadId':_0x498cf9,'resolvedAt':_0x2ad91c,'resolvedBy':_0xa6e89b||_0x14f89c['id'],'isFromAdapter':_0x348714});}['reopen']({isFromAdapter:_0x23e20a=!0x1}={}){const {channelId:_0x3ad684,id:_0x2afff6}=this;this['_repository']['fire'](bt('reopenCommentThread',_0x3ad684),{'channelId':_0x3ad684,'threadId':_0x2afff6,'isFromAdapter':_0x23e20a});}['setContext'](_0x58aa8a){this['context']||this['_update']({'context':_0x58aa8a});}['setAttribute'](_0x3bb2d5,_0x496266){const _0x1e3025=It(this['attributes']);At(_0x1e3025,_0x3bb2d5,_0x496266),this['_update']({'attributes':_0x1e3025});}['removeAttribute'](_0x20a8bf){const _0x331404=It(this['attributes']);yt(_0x331404,_0x20a8bf),this['_update']({'attributes':_0x331404});}['remove']({isFromAdapter:_0x5a407a=!0x1}={}){const {channelId:_0x1ede7d,id:_0x1cd041}=this;this['_repository']['fire'](bt('removeCommentThread',_0x1ede7d),{'channelId':_0x1ede7d,'threadId':_0x1cd041,'isFromAdapter':_0x5a407a});}['attachTo'](_0xd5bacd){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0xd5bacd});}['addComment'](_0x5db853){const {channelId:_0x58ee44,id:_0x452d63}=this;this['_repository']['fire'](bt('addComment',_0x58ee44,_0x452d63),Object['assign']({'channelId':_0x58ee44,'threadId':_0x452d63},_0x5db853));}['getComment'](_0xc5a7da){if('string'!=typeof _0xc5a7da)throw new _0x4f8f09('commentsrepository-get-comment-invalid-id',null,{'commentId':_0xc5a7da});return this['comments']['get'](_0xc5a7da);}['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'](_0x561814=>_0x561814['toJSON']()),'attributes':this['attributes']};}['_add'](_0x30818b){return this['listenTo'](_0x30818b,'change:authoredAt',()=>{const _0x5c1ea1=this['_findOptimalIndex'](_0x30818b),_0x2234f7=this['comments'];_0x5c1ea1-0x1!=_0x2234f7['getIndex'](_0x30818b)&&_0x5c1ea1+0x1!=_0x2234f7['getIndex'](_0x30818b)&&(this['_remove'](_0x30818b),this['_add'](_0x30818b));}),this['comments']['add'](_0x30818b,this['_findOptimalIndex'](_0x30818b));}['_update'](_0xedafb3){const {channelId:_0x14ffcd,id:_0x1097b2}=this;this['_repository']['fire'](bt('updateCommentThread',_0x14ffcd),{..._0xedafb3,'channelId':_0x14ffcd,'threadId':_0x1097b2});}['_remove'](_0x33f905){return this['stopListening'](_0x33f905),_0x33f905['destroy'](),this['comments']['remove'](_0x33f905);}['_findOptimalIndex'](_0x334486){const _0x5571bc=this['comments']['find'](_0x2d2fd7=>new Date(_0x2d2fd7['authoredAt'])['getTime']()>new Date(_0x334486['authoredAt'])['getTime']());return _0x5571bc?this['comments']['getIndex'](_0x5571bc):this['length'];}}class re extends/* #__PURE__ -- @preserve */
31
+ _0x3223d5(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x5a3507,_0x46b1d1){super();const _0x172721=_0x5a3507['context']['plugins']['get'](it)['me'],_0x4d4cfe=_0x5a3507['getCommentThread'](_0x46b1d1['threadId']),_0x1e9a35=0x0===_0x4d4cfe['comments']['length'],_0x4b6e08=_0x172721===_0x46b1d1['author'];this['id']=_0x46b1d1['id'],this['threadId']=_0x46b1d1['threadId'],this['author']=_0x46b1d1['author'],this['creator']=_0x46b1d1['creator'],this['isExternal']=Boolean(_0x46b1d1['attributes']&&_0x46b1d1['attributes']['@external']),this['set']('content',_0x46b1d1['content']),this['createdAt']=_0x46b1d1['createdAt']||new Date(),this['set']('authoredAt',_0x46b1d1['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x4d4cfe,'resolvedAt'),this['set']('attributes',_0x46b1d1['attributes']||{}),this['bind']('isEditable')['to'](_0x5a3507,'_permissions',()=>{const _0x288ec6=_0x5a3507['getPermissions'](_0x4d4cfe['channelId'])['write'],_0xe55d01=_0x5a3507['getPermissions'](_0x4d4cfe['channelId'])['modifyAll'];return _0x4b6e08&&_0x288ec6||!_0x4b6e08&&_0xe55d01;}),this['bind']('isRemovable')['to'](_0x4d4cfe,'isRemovable',_0x5a3507,'_permissions',_0x471563=>{const _0x4ff69c=_0x5a3507['getPermissions'](_0x4d4cfe['channelId'])['write'],_0x3223ee=_0x5a3507['getPermissions'](_0x4d4cfe['channelId'])['modifyAll'];return _0x4b6e08&&_0x4ff69c||_0x471563&&_0x1e9a35||!_0x4b6e08&&_0x3223ee&&!_0x1e9a35;}),this['bind']('isReadOnly')['to'](_0x4d4cfe,'isReadOnly'),this['_repository']=_0x5a3507;}get['weight'](){return Math['max'](function(_0x425b45){const _0x3299ec=document['createElement']('div');return _0x3299ec['innerHTML']=_0x425b45,_0x3299ec['textContent']['length'];}(this['content']),0xc8);}['update'](_0x396199){const {threadId:_0x2f7455,id:_0x7f2ca8}=this;if(!this['_repository']['hasCommentThread'](_0x2f7455))throw new _0x4f8f09('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x50fbfb}=this['_repository']['getCommentThread'](_0x2f7455);this['_repository']['fire'](bt('updateComment',_0x50fbfb,_0x2f7455),{'channelId':_0x50fbfb,'threadId':_0x2f7455,'commentId':_0x7f2ca8,..._0x396199});}['setAttribute'](_0x454bbb,_0x1d2c47){const _0x40ee5f=It(this['attributes']);At(_0x40ee5f,_0x454bbb,_0x1d2c47),this['update']({'attributes':_0x40ee5f});}['removeAttribute'](_0x3ad715){const _0x14e7bd=It(this['attributes']);yt(_0x14e7bd,_0x3ad715),this['update']({'attributes':_0x14e7bd});}['remove'](_0x30c393={}){if(!_0x30c393['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x4d2534,id:_0x37006e}=this;if(!this['_repository']['hasCommentThread'](_0x4d2534))throw new _0x4f8f09('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x298444}=this['_repository']['getCommentThread'](_0x4d2534);this['_repository']['fire'](bt('removeComment',_0x298444,_0x4d2534),{'channelId':_0x298444,'threadId':_0x4d2534,'commentId':_0x37006e,..._0x30c393});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x295eda,..._0x1668ee){for(const _0x1d69a0 of _0x1668ee)void 0x0!==_0x1d69a0&&(_0x295eda+=':'+String(_0x1d69a0));return _0x295eda;}class J extends _0x514a55{['refresh'](){const _0x5265c9=this['editor']['model']['document']['selection'];for(const _0x101797 of _0x5265c9['getRanges']())if(this['_hasContent'](_0x101797))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x467320=_0x25b112()}={}){const _0x970c83=this['editor']['model'],_0x1a1e84=[];for(const _0x4bfd2a of _0x970c83['document']['selection']['getRanges']())this['_hasContent'](_0x4bfd2a)&&_0x1a1e84['push'](this['_trimToContent'](_0x4bfd2a));_0x970c83['change'](_0x296d02=>{for(const _0x2d2b03 of _0x1a1e84){const _0x959bf2=_0x25b112()['substr'](0x1,0x5),_0x407eeb='comment:'+_0x467320+':'+_0x959bf2;_0x296d02['addMarker'](_0x407eeb,{'range':_0x2d2b03,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x56453b){for(const _0x584d2e of _0x56453b['getItems']())if(this['_itemIsContent'](_0x584d2e))return!0x0;return!0x1;}['_itemIsContent'](_0x4ae833){return _0x4ae833['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x4ae833)&&!_0x4ae833['is']('element','tableCell');}['_trimToContent'](_0x5513b1){const _0x45b85b=_0xa532fc=>!this['_itemIsContent'](_0xa532fc['item']),_0x2464fb=_0x5513b1['start']['getLastMatchingPosition'](_0x45b85b),_0x5964f1=_0x5513b1['end']['getLastMatchingPosition'](_0x45b85b,{'direction':'backward'});return this['editor']['model']['createRange'](_0x2464fb,_0x5964f1);}}class P extends _0x381c71{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4cd8ef){super(_0x4cd8ef),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x48dac2=this['editor'],_0xbf686e=_0x48dac2['model']['document']['selection'],_0x38547b=_0xfa51ca(()=>this['refreshSelectedViews'](),0xa);_0xbf686e['on']('change:range',(_0xa1f9e0,_0x5e9645)=>{_0x5e9645['directChange']&&(_0x38547b['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x48dac2['editing']['view']['document'],'change:isFocused',(_0x36d84a,_0x585119,_0x688363)=>{_0x688363&&_0x38547b();}),this['listenTo'](_0x48dac2['ui']['focusTracker'],'change:isFocused',(_0x57d557,_0x462ca6,_0x453c94)=>{_0x453c94||_0x48dac2['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x13f4cb=>this['_editorAnnotationsData']['has'](_0x13f4cb['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x1f66e6){if(this['_editorAnnotations']['has'](_0x1f66e6['view']))return;this['_editorAnnotations']['add'](_0x1f66e6['view']),this['editor']['ui']['focusTracker']['add'](_0x1f66e6['view']['element']);const _0x4e6611=this['editor']['plugins']['get'](N);this['listenTo'](_0x4e6611['collection'],'remove',(_0x2d1b1b,_0x29c371)=>{this['editor']['ui']['focusTracker']['remove'](_0x29c371['view']['element']),this['_editorAnnotations']['delete'](_0x29c371['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0xb2f617){if('function'!=typeof _0xb2f617)throw new _0x4f8f09('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0xb2f617);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x12863f,annotations:_0x31ce8c}){const _0x2f3415=[],_0x1fc85e=this['editor']['model']['document']['selection'],_0x547e46=Array['from'](_0x1fc85e['getRanges']());for(const [_0x146a03,_0x336e25]of this['_editorAnnotationsData']){const _0x217190=_0x58da3c(_0x336e25),_0x514adc=_0x31ce8c['getByInnerView'](_0x146a03);_0x217190&&_0x514adc&&_0x2f3415['push']({'annotation':_0x514adc,'range':_0x217190});}function _0x58da3c(_0x168005){for(const _0x463cfd of _0x168005)for(const _0x2e0b72 of _0x547e46)if(_0x463cfd['containsRange'](_0x2e0b72,!_0x1fc85e['isCollapsed']))return _0x463cfd;return null;}return _0x2f3415['sort']((_0x5d00ad,_0x11f8e2)=>{const _0x1b7763=_0x5d00ad['range'],_0x49ab61=_0x11f8e2['range'];if(!_0x1b7763['isEqual'](_0x49ab61)){if(_0x1b7763['containsRange'](_0x49ab61,!0x0))return 0x1;if(_0x49ab61['containsRange'](_0x1b7763,!0x0))return-0x1;}return _0x5d00ad['annotation']==_0x12863f?-0x1:_0x11f8e2['annotation']==_0x12863f?0x1:0x0;})['map'](_0x3257fa=>_0x3257fa['annotation']);}get['_editorAnnotationsData'](){const _0x4742fb=new Map();for(const _0x5effd7 of Array['from'](this['_dataCollectors']))for(const [_0x3f03d5,_0x20001d]of _0x5effd7())_0x4742fb['set'](_0x3f03d5,_0x20001d);return _0x4742fb;}}class st extends _0x381c71{['afterInit'](){const _0x5a9486=this['editor'];if(!_0x5a9486['plugins']['has']('RestrictedEditingModeEditing'))return;_0x5a9486['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x381c71{constructor(_0x18c196){super(_0x18c196),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x4b4f5b=this['editor'],_0x305833=_0x4b4f5b['commands']['get']('importWord'),_0x3e0846=_0x4b4f5b['plugins']['get'](it);_0x305833&&(_0x305833['on']('execute',(_0xcc98a3,[,_0x6c2d38])=>{_0x6c2d38['collaboration_features']={'comments':!0x0,'user_id':_0x3e0846['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x305833,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x3dff52,_0x11f1e1){const {comment_threads:_0x586437}=_0x11f1e1;_0x586437&&_0x586437['forEach'](({thread_id:_0x54ed12,comments:_0x160d2d,is_resolved:_0x2c50bb})=>{const _0x57acb7=new Date(),_0x5af04b=_0x160d2d['map'](({author:_0x2863cf,content:_0x460f13,created_at:_0x13551e})=>({'content':_0x460f13,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x57acb7,'attributes':{'@external':{'authorName':_0x2863cf,'createdAt':_0x13551e?new Date(_0x13551e):new Date(),'source':'importWord'}}})),_0x3c9947=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x3c9947,'threadId':_0x54ed12,'comments':_0x5af04b,'resolvedAt':_0x2c50bb?_0x57acb7:null});});}}class at extends _0x381c71{constructor(_0x511603){super(_0x511603),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x3aada8=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x3aada8,'contentInsertion',(_0x4ecd17,_0x3cbf58)=>this['_removeMarkersWithoutThreads'](_0x3cbf58['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x36ceef){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x36ceef;const _0x489619=this['editor']['plugins']['get']('CommentsRepository');for(const _0x24396c of _0x36ceef['keys']()){const [_0x1cff6f,_0xb692b0]=_0x24396c['split'](':');'comment'!=_0x1cff6f||_0x489619['hasCommentThread'](_0xb692b0)||_0x36ceef['delete'](_0x24396c);}return _0x36ceef;}['_registerMarkerInClipboardPipeline'](){const _0x13164f=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0xfacf1f=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0xfacf1f&&_0x13164f['_registerMarkerToCopy']('comment',_0xfacf1f);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x1caa7a){switch(_0x1caa7a){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 _0x381c71{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x3dac38,_0x3e7d3a)=>{if(!_0x3e7d3a['options']['showCommentHighlights'])return null;if(_0x3e7d3a['options']['ignoreResolvedComments']){const {id:_0x5430ad}=er(_0x3dac38['markerName']),_0x219803=this['editor']['plugins']['get'](o)['getCommentThread'](_0x5430ad);if(_0x219803&&_0x219803['isResolved']&&_0x3dac38['item'])return _0x3e7d3a['consumable']['consume'](_0x3dac38['item'],'addMarker:'+_0x3dac38['markerName']),_0x3e7d3a['consumable']['consume'](_0x3dac38['item'],'removeMarker:'+_0x3dac38['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5cf013=>{_0x5cf013['on']('addMarker:comment',(_0x3e926d,_0x431ee1,_0x2fde8a)=>{if(!_0x2fde8a['options']['showCommentHighlights'])return;const _0x21ebb4=_0x431ee1['item'];if(!_0x21ebb4)return;const _0x39141a=_0x2fde8a['mapper']['toViewElement'](_0x21ebb4);this['editor']['model']['schema']['isObject'](_0x21ebb4)&&_0x39141a&&!_0x39141a['getCustomProperty']('widget')&&_0x39141a['is']('containerElement')&&_0x1dfa36(_0x39141a,_0x2fde8a['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4028ba,{writer:_0x93498b,options:_0x3c7556})=>{if(!_0x3c7556['showCommentHighlights'])return null;const _0x5c72d3=_0x93498b['createContainerElement']('div'),_0x4a67c0=_0x93498b['createEmptyElement']('hr');return _0x93498b['addClass']('ck-horizontal-line',_0x5c72d3),_0x93498b['insert'](_0x93498b['createPositionAt'](_0x5c72d3,0x0),_0x4a67c0),_0x5c72d3;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x23a017,{writer:_0x1f0fdb,options:_0x28dc2a})=>{if(!_0x28dc2a['showCommentHighlights'])return null;const _0x4fa340=_0x1f0fdb['createContainerElement']('span'),_0x3c172e=_0x1f0fdb['createEmptyElement']('img');return _0x1f0fdb['addClass']('image-inline',_0x4fa340),_0x1f0fdb['insert'](_0x1f0fdb['createPositionAt'](_0x4fa340,0x0),_0x3c172e),_0x4fa340;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3b4242,{writer:_0x568613,options:_0x3ed878})=>{if(_0x3ed878['showCommentHighlights'])return _0x568613['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x504f91,_0x17c0e8,_0x20d45a)=>{_0x20d45a['options']['showCommentHighlights']&&_0x504f91['stop']();},{'priority':'high'});}}class r extends _0x381c71{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(_0x531435){super(_0x531435),this['set']('isThreadsLoadingPaused',!0x0),_0x531435['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x3f182e,_0x3bddec,_0x175af0,_0x55ce23)=>{const _0x4c7d2c=_0x531435['plugins']['get'](o),_0x3c83b8=_0x175af0?er(_0x175af0)['id']:null;_0x531435['model']['change'](()=>{if(_0x3c83b8){const _0x2a3a57=this['getAllMarkersForId'](_0x3c83b8);for(const _0x18af1b of _0x2a3a57)_0x531435['editing']['reconvertMarker'](_0x18af1b);}if(_0x55ce23){const {id:_0x24d24b}=er(_0x55ce23),_0x288864=_0x4c7d2c['getCommentThread'](_0x24d24b);if(_0x288864&&!_0x288864['isAttached'])return;const _0x4aea99=this['getAllMarkersForId'](_0x24d24b);for(const _0x59e8a4 of _0x4aea99)_0x531435['editing']['reconvertMarker'](_0x59e8a4);}}),_0x3c83b8&&this['scrollToThreadMarker'](_0x3c83b8);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1f8345=this['editor'],_0x51ef90=_0x1f8345['plugins']['get'](o),_0x5c5e7d=_0x1f8345['config']['get']('collaboration.channelId'),_0x46ebff=_0x51ef90['getCommentThreads']()['filter'](_0x2d99b9=>_0x2d99b9['channelId']!==_0x5c5e7d);_0x1f8345['commands']['add']('addCommentThread',new J(_0x1f8345)),this['listenTo'](_0x1f8345,'change:isReadOnly',(_0x1d2924,_0x1c7d25,_0x5e4d2b)=>{_0x51ef90['switchReadOnly'](_0x5e4d2b,_0x1f8345['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x51ef90,ft('addCommentThread',_0x5c5e7d),(_0x17e136,{threadId:_0x111a02})=>{const _0x575760=this['editor']['plugins']['get'](o)['getCommentThread'](_0x111a02);_0x575760&&_0x575760['unlinkedAt']&&this['_attachArchivedThread'](_0x111a02);}),this['listenTo'](_0x51ef90,ft('removeCommentThread',_0x5c5e7d),(_0x324a2d,{threadId:_0x29a128})=>{_0x1f8345['model']['enqueueChange']({'isUndoable':!0x1},_0x202718=>{const _0x3bd197=this['getAllMarkersForId'](_0x29a128);for(const _0x5551eb of _0x3bd197)_0x202718['removeMarker'](_0x5551eb);});}),this['listenTo'](_0x51ef90,ft('resolveCommentThread',_0x5c5e7d),(_0x15131a,{threadId:_0x271273})=>{(this['_reconvertMarkers'](_0x271273),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x271273)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x51ef90,ft('reopenCommentThread',_0x5c5e7d),(_0x37c99a,{threadId:_0x200e23})=>{this['_reconvertMarkers'](_0x200e23);},{'priority':'low'}),this['listenTo'](_0x51ef90,ft('addComment',_0x5c5e7d),(_0x102dae,{threadId:_0x4bdf77,isFromAdapter:_0x18de7c})=>{const _0x530af0=this['getAllMarkersForId'](_0x4bdf77);if(_0x18de7c||0x0==_0x530af0['length']||!_0x51ef90['hasCommentThread'](_0x4bdf77))return;0x1===_0x51ef90['getCommentThread'](_0x4bdf77)['length']&&_0x1f8345['model']['enqueueChange']({'isUndoable':!0x1},_0x1edaf6=>{for(const _0x427260 of _0x530af0)_0x1edaf6['updateMarker'](_0x427260,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x46ebff);}['afterInit'](){!async function(_0x546445){const _0x280171=_0x4683c0([0x38,0x4b,0x66,0x41,0x67,0x77,0x45,0x6c,0x71,0x74,0x34,0x32,0x56,0x4a,0x54,0x64,0x73,0x72,0x62,0x5a,0x39,0x70,0x43,0x47,0x76,0x33,0x4c,0x6e,0x51,0x6b,0x48,0x58,0x6f,0x50,0x6d,0x78,0x36,0x4d,0x37,0x59,0x31,0x6a,0x30,0x35,0x61,0x42,0x57,0x75,0x52,0x79,0x46,0x68,0x55,0x65,0x4e,0x4f,0x63,0x7a,0x44,0x49,0x69,0x53]),_0x8a1fb5=0xbe090ff,_0x9eeaf9=0xbe7ce77^_0x8a1fb5,_0x1de39c=window[_0x4683c0([0x44,0x61,0x74,0x65])][_0x4683c0([0x6e,0x6f,0x77])](),_0x3cd025=_0x546445[_0x4683c0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1aeba1=new window[(_0x4683c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1aa59b=>{_0x3cd025[_0x4683c0([0x6f,0x6e,0x63,0x65])](_0x4683c0([0x72,0x65,0x61,0x64,0x79]),_0x1aa59b);}),_0x3f7f15={[_0x4683c0([0x6b,0x74,0x79])]:_0x4683c0([0x45,0x43]),[_0x4683c0([0x75,0x73,0x65])]:_0x4683c0([0x73,0x69,0x67]),[_0x4683c0([0x63,0x72,0x76])]:_0x4683c0([0x50,0x2d,0x32,0x35,0x36]),[_0x4683c0([0x78])]:_0x4683c0([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]),[_0x4683c0([0x79])]:_0x4683c0([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]),[_0x4683c0([0x61,0x6c,0x67])]:_0x4683c0([0x45,0x53,0x32,0x35,0x36])},_0x23416a=_0x3cd025[_0x4683c0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4683c0([0x67,0x65,0x74])](_0x4683c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x40ab0f(){let _0x57b4ab,_0x340fab=null,_0x245584=null;try{if(_0x23416a==_0x4683c0([0x47,0x50,0x4c]))return _0x4683c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x57b4ab=_0x57fe83(),!_0x57b4ab)return _0x4683c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x57b4ab[_0x4683c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x245584=_0x5758dd(_0x57b4ab[_0x4683c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x57b4ab[_0x4683c0([0x6a,0x74,0x69])])),await _0x5bde27()?_0x420612()?_0x5cab66()?_0x4683c0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x185ab8()?(_0x57b4ab[_0x4683c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4683c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x340fab=_0x5555e4(_0x4683c0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x57b4ab[_0x4683c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4683c0([0x74,0x72,0x69,0x61,0x6c])&&(_0x340fab=_0x5555e4(_0x4683c0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x136482()):_0x4683c0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4683c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4683c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x38b0b7){return _0x4683c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5cab66(){const _0x4f4b14=[_0x4683c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4683c0([0x74,0x72,0x69,0x61,0x6c])][_0x4683c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57b4ab[_0x4683c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1de39c/0x3e8:0xe10*_0x9eeaf9;return _0x57b4ab[_0x4683c0([0x65,0x78,0x70])]<_0x4f4b14;}function _0x420612(){const _0xc61488=_0x57b4ab[_0x4683c0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xc61488)return!0x1;if(_0xc61488[_0x4683c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4683c0([0x2a])))return!0x0;if(_0xc61488[_0x4683c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4683c0([0x43,0x4d,0x54])))return!0x0;if(_0xc61488[_0x4683c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4683c0([0x52,0x43,0x4d,0x54]))){if(_0x3bb366())return!0x0;if(_0x5d3599()||_0x58f242())return!0x0;}return!0x1;}function _0x185ab8(){const _0x24c28e=_0x57b4ab[_0x4683c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x24c28e||0x0==_0x24c28e[_0x4683c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x34d932}=new URL(window[_0x4683c0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x24c28e[_0x4683c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34d932))return!0x0;const _0x1b3dda=_0x34d932[_0x4683c0([0x73,0x70,0x6c,0x69,0x74])](_0x4683c0([0x2e]));return _0x24c28e[_0x4683c0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1161ba=>_0x1161ba[_0x4683c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4683c0([0x2a])))[_0x4683c0([0x6d,0x61,0x70])](_0x2a3a6c=>_0x2a3a6c[_0x4683c0([0x73,0x70,0x6c,0x69,0x74])](_0x4683c0([0x2e])))[_0x4683c0([0x73,0x6f,0x6d,0x65])](_0x495a9c=>_0x1b3dda[_0x4683c0([0x65,0x76,0x65,0x72,0x79])]((_0x1ac85d,_0x31b80f)=>_0x495a9c[_0x31b80f]===_0x1ac85d||_0x495a9c[_0x31b80f]===_0x4683c0([0x2a])));}function _0x136482(){return _0x340fab&&_0x245584?new window[(_0x4683c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xadc1c,_0x38dbb7)=>{_0x340fab[_0x4683c0([0x74,0x68,0x65,0x6e])](_0xadc1c,_0x38dbb7),_0x245584[_0x4683c0([0x74,0x68,0x65,0x6e])](_0x3b77bf=>{_0x3b77bf!=_0x4683c0([0x56,0x61,0x6c,0x69,0x64])&&_0xadc1c(_0x3b77bf);},_0x38dbb7);}):_0x340fab||_0x245584||_0x4683c0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5758dd(_0x104bec,_0x471e67){return new window[(_0x4683c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b59e1=>{if(_0x356364())return _0x1b59e1(_0x4683c0([0x56,0x61,0x6c,0x69,0x64]));_0xa8e76d(),_0x3cd025[_0x4683c0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4683c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x72540c=!0x1;const _0x1f453d=_0x25b112();function _0x8bfabe(_0x5622d7){return!!_0x5622d7&&(typeof _0x5622d7===_0x4683c0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5622d7===_0x4683c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5622d7[_0x4683c0([0x74,0x68,0x65,0x6e])]===_0x4683c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5622d7[_0x4683c0([0x63,0x61,0x74,0x63,0x68])]===_0x4683c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x156b1a(_0xca6bc5){_0x2e18eb(_0xca6bc5)[_0x4683c0([0x74,0x68,0x65,0x6e])](_0x370a4c=>{if(!_0x370a4c||_0x370a4c[_0x4683c0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4683c0([0x6f,0x6b]))return _0x4683c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4f0abd(_0x47b451(_0x1f453d+_0x471e67))!=_0x370a4c[_0x4683c0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4683c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4683c0([0x56,0x61,0x6c,0x69,0x64]);})[_0x4683c0([0x74,0x68,0x65,0x6e])](_0x4e1f51=>(_0x45416b(),_0x4e1f51),()=>{const _0x475eb1=_0x2fbee5();return null==_0x475eb1?(_0x45416b(),_0x4683c0([0x56,0x61,0x6c,0x69,0x64])):_0x4683c0(_0x1de39c-_0x475eb1>(0x2fec14ff^_0x8a1fb5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4683c0([0x74,0x68,0x65,0x6e])](_0x1b59e1)[_0x4683c0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1b59e1(_0x4683c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4a55aa=0xbd67e7f^_0x8a1fb5;function _0x45416b(){const _0x186b5d=_0x4683c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x4f0abd(_0x47b451(_0x104bec)),_0x3574bb=_0x265c44(_0x4f0abd(window[_0x4683c0([0x4d,0x61,0x74,0x68])][_0x4683c0([0x63,0x65,0x69,0x6c])](_0x1de39c/_0x4a55aa)));window[_0x4683c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4683c0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x186b5d,_0x3574bb);}function _0x2fbee5(){const _0xfa90d2=_0x4683c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x4f0abd(_0x47b451(_0x104bec)),_0xd8cbad=window[_0x4683c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4683c0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xfa90d2);return _0xd8cbad?window[_0x4683c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x265c44(_0xd8cbad),0x10)*_0x4a55aa:null;}function _0x2e18eb(_0x5b4380){return new window[(_0x4683c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4617e5,_0x2e1843)=>{_0x5b4380[_0x4683c0([0x74,0x68,0x65,0x6e])](_0x4617e5,_0x2e1843),window[_0x4683c0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2e1843,0xbe1443f^_0x8a1fb5);});}}_0x3cd025[_0x4683c0([0x6f,0x6e])](_0x4683c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1565e4,_0x53bcb3)=>{if(_0x53bcb3[0x0]!=_0x104bec)return _0x1b59e1(_0x4683c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x53bcb3[0x1]={..._0x53bcb3[0x1],[_0x4683c0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1f453d};},{[_0x4683c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4683c0([0x68,0x69,0x67,0x68])}),_0x3cd025[_0x4683c0([0x6f,0x6e])](_0x4683c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1ab1ed=>{_0x8bfabe(_0x1ab1ed[_0x4683c0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x72540c=!0x0,_0x156b1a(_0x1ab1ed[_0x4683c0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4683c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4683c0([0x6c,0x6f,0x77])}),_0x1aeba1[_0x4683c0([0x74,0x68,0x65,0x6e])](()=>{_0x72540c||_0x1b59e1(_0x4683c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x356364(){return _0x3cd025[_0x4683c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4683c0([0x76,0x69,0x65,0x77])][_0x4683c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4683c0([0x61,0x75,0x74,0x6f]);}function _0xa8e76d(){_0x3cd025[_0x4683c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4683c0([0x76,0x69,0x65,0x77])][_0x4683c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4683c0([0x61,0x75,0x74,0x6f]);}}function _0x5555e4(_0x1e88ed){const _0x2fdeb0=[new window[(_0x4683c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17abd1=>setTimeout(_0x17abd1,0xbe9ae33^_0x8a1fb5)),_0x1aeba1[_0x4683c0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4683c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b9572=>{let _0x48af27=0x0;_0x3cd025[_0x4683c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x4683c0([0x6f,0x6e])](_0x4683c0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x506866,_0x663462)=>{_0x663462[0x0][_0x4683c0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x48af27++,_0x48af27==(0xbe09107^_0x8a1fb5)&&(_0x2b9572(),_0x506866[_0x4683c0([0x6f,0x66,0x66])]());});}))];return window[_0x4683c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4683c0([0x72,0x61,0x63,0x65])](_0x2fdeb0)[_0x4683c0([0x74,0x68,0x65,0x6e])](()=>_0x1e88ed);}async function _0x48f4b3(){await _0x1aeba1,_0x3cd025[_0x4683c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x4683c0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x373b08,_0x3cd025[_0x4683c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x4683c0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x373b08,_0x3cd025[_0x4683c0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4683c0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3bb366(){return _0x4639af(_0x4683c0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2e2586(_0x4683c0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4683c0([0x73,0x74,0x61,0x74,0x65])]==_0x4683c0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5d3599(){return _0x4639af(_0x4683c0([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 _0x58f242(){return _0x4639af(_0x4683c0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3a3d3e(_0x28f1aa){const _0x303cca=_0x3e23a9();_0x3cd025[_0x303cca]=_0x4683c0([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x28f1aa,_0x28f1aa!=_0x4683c0([0x56,0x61,0x6c,0x69,0x64])&&_0x48f4b3();}function _0x3e23a9(){const _0x33acaa=window[_0x4683c0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4683c0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4683c0([0x6e,0x6f,0x77])]())[_0x4683c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4683c0([0x2e]),'');let _0x53ddf5=_0x4683c0([0x4b]);for(let _0xc9e1d7=0x0;_0xc9e1d7<_0x33acaa[_0x4683c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc9e1d7+=0x2){let _0x5334cf=window[_0x4683c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33acaa[_0x4683c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc9e1d7,_0xc9e1d7+0x2));_0x5334cf>=_0x280171[_0x4683c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5334cf-=_0x280171[_0x4683c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x53ddf5+=_0x280171[_0x5334cf];}return _0x53ddf5;}function _0x57fe83(){const _0x4a918a=_0x23416a[_0x4683c0([0x73,0x70,0x6c,0x69,0x74])](_0x4683c0([0x2e]));if(0x3!=_0x4a918a[_0x4683c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5b0240(_0x4a918a[0x1]);function _0x5b0240(_0x56bafb){const _0xa628c0=_0x5644ce(_0x56bafb);return _0xa628c0&&_0x27e02c()?_0xa628c0:null;function _0x27e02c(){const _0x87388c=_0xa628c0[_0x4683c0([0x6a,0x74,0x69])],_0x18f757=window[_0x4683c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x87388c[_0x4683c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x87388c[_0x4683c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x46671b={..._0xa628c0,[_0x4683c0([0x6a,0x74,0x69])]:_0x87388c[_0x4683c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x87388c[_0x4683c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x46671b[_0x4683c0([0x76,0x63])],_0x47b451(_0x46671b)==_0x18f757;}}}async function _0x5bde27(){let _0x4dc2d4=!0x0;try{const _0x859da0=_0x23416a[_0x4683c0([0x73,0x70,0x6c,0x69,0x74])](_0x4683c0([0x2e])),[_0x2b122e,_0x47278b,_0x1abbfd]=_0x859da0;return _0x5b5899(_0x2b122e),await _0x375dc4(_0x2b122e,_0x47278b,_0x1abbfd),_0x4dc2d4;}catch(_0x10d746){return!0x1;}function _0x5b5899(_0x2e6334){const _0x70759f=_0x5644ce(_0x2e6334);_0x70759f&&_0x70759f[_0x4683c0([0x61,0x6c,0x67])]==_0x4683c0([0x45,0x53,0x32,0x35,0x36])||(_0x4dc2d4=!0x1);}async function _0x375dc4(_0x42a3ea,_0x5bd546,_0x3e3a20){const _0x414761=window[_0x4683c0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4683c0([0x66,0x72,0x6f,0x6d])](_0x15e8bc(_0x3e3a20),_0x4b9b05=>_0x4b9b05[_0x4683c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3c0aa4=new window[(_0x4683c0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4683c0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x42a3ea+_0x4683c0([0x2e])+_0x5bd546),_0xe0ae10=window[_0x4683c0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4683c0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xe0ae10)return;const _0x2c645f=await _0xe0ae10[_0x4683c0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4683c0([0x6a,0x77,0x6b]),_0x3f7f15,{[_0x4683c0([0x6e,0x61,0x6d,0x65])]:_0x4683c0([0x45,0x43,0x44,0x53,0x41]),[_0x4683c0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4683c0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4683c0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xe0ae10[_0x4683c0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4683c0([0x6e,0x61,0x6d,0x65])]:_0x4683c0([0x45,0x43,0x44,0x53,0x41]),[_0x4683c0([0x68,0x61,0x73,0x68])]:{[_0x4683c0([0x6e,0x61,0x6d,0x65])]:_0x4683c0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2c645f,_0x414761,_0x3c0aa4)||(_0x4dc2d4=!0x1);}}function _0x5644ce(_0x4e34e2){return _0x4e34e2[_0x4683c0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4683c0([0x65,0x79]))?JSON[_0x4683c0([0x70,0x61,0x72,0x73,0x65])](_0x15e8bc(_0x4e34e2)):null;}function _0x15e8bc(_0x534caf){return window[_0x4683c0([0x61,0x74,0x6f,0x62])](_0x534caf[_0x4683c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4683c0([0x2b]))[_0x4683c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4683c0([0x2f])));}function _0x47b451(_0x5a73a5){let _0x234d75=0x1505;function _0x14ee63(_0x2b547d){for(let _0x279bd5=0x0;_0x279bd5<_0x2b547d[_0x4683c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x279bd5++){const _0x1218e0=_0x2b547d[_0x4683c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x279bd5);_0x234d75=(_0x234d75<<0x5)+_0x234d75+_0x1218e0,_0x234d75&=_0x234d75;}}function _0x5dc6ed(_0x1139c9){Array[_0x4683c0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1139c9)?_0x1139c9[_0x4683c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5dc6ed):_0x1139c9&&typeof _0x1139c9==_0x4683c0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4683c0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1139c9)[_0x4683c0([0x73,0x6f,0x72,0x74])]()[_0x4683c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4dfcfb,_0x23fba1])=>{_0x14ee63(_0x4dfcfb),_0x5dc6ed(_0x23fba1);}):_0x14ee63(window[_0x4683c0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1139c9));}return _0x5dc6ed(_0x5a73a5),_0x234d75>>>0x0;}function _0x4f0abd(_0x565f00){return _0x565f00[_0x4683c0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4683c0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4683c0([0x30]));}function _0x265c44(_0x4db59c){return _0x4db59c[_0x4683c0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4683c0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4683c0([0x6a,0x6f,0x69,0x6e])]('');}function _0x4639af(_0x242a26){return _0x3cd025[_0x4683c0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4683c0([0x68,0x61,0x73])](_0x242a26);}function _0x2e2586(_0x414cce){return _0x3cd025[_0x4683c0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4683c0([0x67,0x65,0x74])](_0x414cce);}function _0x373b08(){}function _0x4683c0(_0x3cd6f0){return _0x3cd6f0['map'](_0x51117f=>String['fromCharCode'](_0x51117f))['join']('');}_0x3a3d3e(await _0x40ab0f());}(this);}['destroy'](){const _0x209ac2=this['editor']['plugins']['get'](o),_0x11bdba=this['editor']['config']['get']('collaboration.channelId');for(const _0x322ac2 of _0x209ac2['getCommentThreads']({'channelId':_0x11bdba}))_0x209ac2['_detachCommentThread'](_0x322ac2['id']),_0x209ac2['_threads']['delete'](_0x322ac2['id']);super['destroy']();}['hasMarkerForId'](_0x285de2){return this['getAllMarkersForId'](_0x285de2)['length']>0x0;}['getAllMarkersForId'](_0x2ccf4b){const _0x257f32=[];for(const _0x4197f8 of this['editor']['model']['markers'])_0x4197f8['name']['startsWith']('comment:'+_0x2ccf4b)&&_0x257f32['push'](_0x4197f8);return _0x257f32;}['scrollToThreadMarker'](_0x3f334b){const _0x189837=this['_getTargetForId'](_0x3f334b);_0x189837&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x3f334b&&rt({'target':_0x189837[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x557ad3){this['editor']['model']['change'](()=>{for(const _0x139e32 of this['getAllMarkersForId'](_0x557ad3))this['editor']['editing']['reconvertMarker'](_0x139e32);});}['_attachArchivedThread'](_0x64e0f4){const _0x4d81cd=this['editor']['plugins']['get'](o),_0x2a3d85=this['editor']['plugins']['get'](P),_0x56a37f=_0x4d81cd['getCommentThread'](_0x64e0f4);if(!_0x56a37f['isAttached']){const _0x9f7f29=_0x56a37f['attachTo'](()=>this['_getTargetForId'](_0x56a37f['id']));_0x2a3d85['registerAnnotation'](_0x9f7f29),_0x56a37f['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x2130ae=this['editor'],_0x4fc33a=_0x2130ae['plugins']['get'](it);_0x2130ae['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x321c3e,_0x379bd0)=>{const {id:_0x3d6488}=er(_0x321c3e['markerName']),_0x1f8fe8=_0x2130ae['plugins']['get'](o)['getCommentThread'](_0x3d6488),_0x4cfe39=this['activeMarker']&&er(this['activeMarker'])['id']===_0x3d6488;let _0x3564fe;if(_0x1f8fe8&&_0x1f8fe8['isResolved']&&!_0x4cfe39&&_0x321c3e['item'])return _0x379bd0['consumable']['consume'](_0x321c3e['item'],'addMarker:'+_0x321c3e['markerName']),_0x379bd0['consumable']['consume'](_0x321c3e['item'],'removeMarker:'+_0x321c3e['markerName']),null;const _0x41ba0e=['ck-comment-marker'];return _0x4cfe39&&_0x41ba0e['push']('ck-comment-marker--active'),_0x3564fe=_0x1f8fe8&&_0x1f8fe8['length']?_0x1f8fe8['comments']['first']['author']['id']:_0x4fc33a['me']['id'],{'classes':_0x41ba0e,'attributes':{'data-comment':_0x3d6488,'data-author-id':_0x3564fe}};}}),_0x2130ae['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x335755,{options:_0x3a24d8})=>{if(_0x3a24d8['showCommentHighlights'])return null;const _0x1866c2=_0x2130ae['plugins']['get'](o),_0x49f750=_0x2130ae['model']['markers']['get'](_0x335755),{id:_0x31ba2b,part:_0x5cc986}=er(_0x335755);if(_0x49f750&&!_0x49f750['affectsData'])return null;if(_0x3a24d8['ignoreResolvedComments']){const _0x35b78d=_0x1866c2['getCommentThread'](_0x31ba2b);if(_0x35b78d&&_0x35b78d['isResolved'])return null;}return{'group':'comment','name':_0x5cc986?_0x31ba2b+':'+_0x5cc986:_0x31ba2b};}}),_0x2130ae['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x2ee01d,{writer:_0x14a935})=>_0x14a935['createElement']('$marker',{'data-name':'comment:'+_0x2ee01d['getAttribute']('id')})}),_0x2130ae['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x11c52a=this['editor'],_0x388801=_0x11c52a['plugins']['get'](o),_0x4c9142=new Set(),_0x24553f=new Set();_0x11c52a['model']['document']['registerPostFixer'](_0x10715b=>{let _0x31acdb=!0x1;for(const {name:_0x1e5287,data:_0x5597b0}of _0x11c52a['model']['document']['differ']['getChangedMarkers']()){const {group:_0x359c62,id:_0x11bf85}=er(_0x1e5287);let _0x1524dd=_0x5597b0['newRange'];if('comment'!==_0x359c62||!_0x1524dd)continue;const _0x14495b='$graveyard'===_0x1524dd['root']['rootName'];_0x14495b||(_0x1524dd=dt(_0x1524dd,_0x11c52a['model']),!_0x1524dd||_0x1524dd['isCollapsed']||!_0x5597b0['newRange']||_0x1524dd['isEqual'](_0x5597b0['newRange']))?_0x11c52a['model']['hasContent'](_0x1524dd)&&!_0x14495b?this['isThreadsLoadingPaused']?_0x4c9142['add'](_0x1e5287):this['_handleThreadMarker'](_0x1e5287,_0x11bf85):(_0x24553f['add'](_0x1e5287),_0x4c9142['delete'](_0x1e5287),_0x10715b['removeMarker'](_0x1e5287),_0x31acdb=!0x0):(_0x10715b['updateMarker'](_0x1e5287,{'range':_0x1524dd}),_0x31acdb=!0x0);}return _0x31acdb;}),this['on']('change:isThreadsLoadingPaused',(_0x5b31aa,_0x19aa6f,_0x3bbc16)=>{if(!_0x3bbc16&&_0x4c9142['size'])for(const _0x1cbab9 of _0x4c9142){const {id:_0xbbfa90}=er(_0x1cbab9);_0x4c9142['delete'](_0x1cbab9),_0x11c52a['model']['markers']['get'](_0x1cbab9)&&this['_handleThreadMarker'](_0x1cbab9,_0xbbfa90);}}),this['listenTo'](_0x11c52a['model']['document'],'change',()=>{for(const {name:_0x11c229,data:{newRange:_0x2ae90c}}of _0x11c52a['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3e3712,id:_0x26a2dd}=er(_0x11c229);if('comment'!==_0x3e3712)continue;const _0x40e673=_0x388801['getCommentThread'](_0x26a2dd),_0x1a373a=this['hasMarkerForId'](_0x26a2dd);_0x40e673&&(!_0x40e673['_hasTargetInContent']&&_0x2ae90c&&_0x11c52a['editing']['view']['once']('render',()=>{const _0x3d564c=_0x11c52a['plugins']['get'](N),_0x5160bd=_0x388801['_threadToController']['get'](_0x40e673)['view'];_0x3d564c['getByInnerView'](_0x5160bd)['refreshVisibility']();},{'priority':'low'}),_0x40e673['_hasTargetInContent']=_0x1a373a||!!_0x2ae90c),_0x2ae90c||(_0x24553f['add'](_0x11c229),_0x4c9142['delete'](_0x11c229));}for(const _0x48abc4 of _0x24553f){const {id:_0x17e530}=er(_0x48abc4),_0x21a545=_0x388801['getCommentThread'](_0x17e530);if(_0x4c9142['delete'](_0x48abc4),!_0x21a545)continue;const _0x5467dc=this['hasMarkerForId'](_0x17e530);_0x5467dc||_0x21a545['isSubmitted']?_0x5467dc||_0x21a545['unlinkedAt']||_0x21a545['setUnlinkedAt'](new Date()):_0x21a545['remove']();}_0x24553f['clear']();});}['_handleInitialThreads'](_0x5b926b){_0x5b926b['forEach'](_0x36af11=>{_0x36af11['unlinkedAt']&&this['_attachArchivedThread'](_0x36af11['id']);});}['_getTargetForId'](_0x43bb2c){const _0x29f771=this['editor'],_0x23b584=this['getAllMarkersForId'](_0x43bb2c);return et(_0x29f771['editing'],_0x23b584);}['_getTextContext'](_0xcb8d9b){const _0x6c550c=this['getAllMarkersForId'](_0xcb8d9b);let _0x53b37d='',_0x2d25ce=!0x1;for(const _0x4606df of _0x6c550c){const _0x4a719c=_0x4606df['getRange']();for(const _0x515df3 of Array['from'](_0x4a719c['getItems']()))_0x515df3['is']('$textProxy')?(_0x53b37d&&_0x2d25ce&&(_0x53b37d+='\x20',_0x2d25ce=!0x1),_0x53b37d+=_0x515df3['data']):_0x2d25ce=!0x0;_0x2d25ce=!0x0;}return _0x53b37d['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x95f161,_0x2a9a66){const _0x4ca554=this['editor'],_0x3d7471=_0x4ca554['plugins']['get'](o);let _0x145df0=_0x3d7471['getCommentThread'](_0x2a9a66);const _0x16cbab=_0x4ca554['config']['get']('collaboration.channelId'),_0x25647d=_0x4ca554['plugins']['get'](P);if(_0x145df0&&(_0x145df0['unlinkedAt']&&_0x145df0['setUnlinkedAt'](null),_0x145df0['isAttached']))return _0x145df0;return!this['getAllMarkersForId'](_0x2a9a66)[0x0]['managedUsingOperations']?_0x4ca554['editing']['view']['once']('render',()=>{if(_0x3d7471['getCommentThread'](_0x2a9a66))return;const _0xc2835=_0x4ca554['plugins']['get'](N);_0x145df0=_0x3d7471['openNewCommentThread']({'channelId':_0x16cbab,'threadId':_0x2a9a66,'target':()=>this['_getTargetForId'](_0x2a9a66),'context':{'type':'text','value':this['_getTextContext'](_0x2a9a66)}});const _0x4f7a1b=_0x3d7471['_threadToController']['get'](_0x145df0)['view'],_0x2a5987=_0xc2835['getByInnerView'](_0x4f7a1b);_0x2a5987&&_0x25647d['registerAnnotation'](_0x2a5987);},{'priority':'low'}):_0x3d7471['fetchCommentThread']({'channelId':_0x16cbab,'threadId':_0x2a9a66})['then'](_0x8a1a8a=>{if('destroyed'!==_0x4ca554['state']){if(_0x145df0=_0x8a1a8a,_0x145df0&&!_0x145df0['isAttached']){const _0x59269f=_0x145df0['attachTo'](()=>this['_getTargetForId'](_0x2a9a66));_0x25647d['registerAnnotation'](_0x59269f),_0x145df0['isResolved']&&this['_reconvertMarkers'](_0x2a9a66);}else{if(!_0x145df0){const _0x21e483=this['getAllMarkersForId'](_0x2a9a66);_0x4ca554['model']['change'](_0x27a4a1=>{for(const _0x40cf73 of _0x21e483)_0x27a4a1['removeMarker'](_0x40cf73);});}}}}),_0x145df0;}['_handleThreadMarker'](_0x2e2b0c,_0x31196d){const _0x345d7d=this['_attachMarkerToThread'](_0x2e2b0c,_0x31196d);_0x345d7d&&!_0x345d7d['context']&&_0x345d7d['setContext']({'type':'text','value':this['_getTextContext'](_0x31196d)});}['_initAriaMarkerChangeAnnouncements'](){const _0x1638df=this['editor'];ot(_0x1638df['model'],({left:_0x1ea06b,entered:_0x5bc00b})=>{for(const _0x5c5ba4 of _0x1ea06b)if(mt(_0x5c5ba4)){_0x1638df['ui']['ariaLiveAnnouncer']['announce'](S(_0x1638df['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x171132 of _0x5bc00b)if(mt(_0x171132)){_0x1638df['ui']['ariaLiveAnnouncer']['announce'](S(_0x1638df['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0xfb8460)));break;}});}}function ft(_0x3d272a,_0x4b6f0c){return _0x4b6f0c?_0x3d272a+':'+_0x4b6f0c:_0x3d272a;}function er(_0xd2628){const _0x5239e5=_0xd2628['split'](':');return{'group':_0x5239e5[0x0],'id':_0x5239e5[0x1],'part':_0x5239e5[0x2]};}function dt(_0x539958,_0x335976){const _0x36c3b8=_0x335976['schema'],_0x1ae5a1=_0x335976['createRange'](_0x539958['start']);for(const _0x2869a3 of _0x539958['getWalker']()){const {type:_0x52ae7f,item:_0x18864b,nextPosition:_0x9d1d62}=_0x2869a3;if('text'===_0x52ae7f||_0x36c3b8['isObject'](_0x18864b)){const _0x495eb4=_0x335976['createPositionBefore'](_0x18864b);_0x1ae5a1['isCollapsed']&&(_0x1ae5a1['start']=_0x495eb4),_0x1ae5a1['end']=_0x9d1d62;}}return _0x1ae5a1;}function mt(_0x566538){return'comment'===er(_0x566538['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-2025,\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 _0x381c71{['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 _0x521c52=this['editor'],_0x40eb8a=_0x521c52['plugins']['get'](o),_0x1ee672=_0x521c52['plugins']['get'](r),_0x2998c3=_0x521c52['plugins']['get'](N),_0x1a7849=_0x521c52['plugins']['get'](P);_0x521c52['ui']['componentFactory']['add']('comment',()=>{const _0xcf1b40=this['_createUIButton'](_0x2262e4);return _0xcf1b40['tooltip']=!0x0,_0xcf1b40;}),_0x521c52['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x35752f)),_0x1a7849['addSourceCollector'](()=>{const _0x47a1fa=[];for(const [_0x4227a3,_0x2eb772]of _0x40eb8a['_threadToController']){const _0x57cad0=_0x1ee672['getAllMarkersForId'](_0x4227a3['id']),_0x9edf84=_0x57cad0['map'](_0x35ceca=>_0x35ceca['getRange']());_0x57cad0['length']>0x0&&_0x47a1fa['push']([_0x2eb772['view'],_0x9edf84]);}return _0x47a1fa;}),this['listenTo'](_0x2998c3,'change:activeAnnotations',(_0x26833f,_0x52c3af,_0x3449a9)=>{const _0xf8fa47=Array['from'](_0x3449a9)['map'](_0x3b0b48=>_0x3b0b48['innerView'])['find'](_0x4a720b=>_0x40eb8a['_viewToController']['has'](_0x4a720b));if(!_0xf8fa47)return void(_0x1ee672['activeMarker']=null);const _0xbdec9d=_0x40eb8a['_viewToController']['get'](_0xf8fa47)['model']['id'],_0xaedd88='comment:'+_0xbdec9d;_0xbdec9d&&_0x1ee672['hasMarkerForId'](_0xbdec9d)?_0x1ee672['activeMarker']=_0xaedd88:_0x1ee672['activeMarker']&&(_0x1ee672['activeMarker']=null);}),this['listenTo'](_0x40eb8a,'removeCommentThread',(_0x133ada,{threadId:_0x4b6bb1,isFromAdapter:_0x59595a})=>{!_0x59595a&&_0x521c52['ui']['focusTracker']['isFocused']&&_0x1ee672['hasMarkerForId'](_0x4b6bb1)&&_0x521c52['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x40eb8a,'addComment',(_0x56d48a,{threadId:_0x481a77,isFromAdapter:_0x44c325})=>{if(_0x44c325||!_0x1ee672['hasMarkerForId'](_0x481a77)||!_0x40eb8a['hasCommentThread'](_0x481a77))return;0x1===_0x40eb8a['getCommentThread'](_0x481a77)['length']&&(_0x521c52['editing']['view']['focus'](),_0x56d48a['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5db11a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x105dd0;for(const _0x2c7d83 in _0x5db11a){const _0x1aa61e=_0x2c7d83,_0x42727f=_0x5db11a[_0x1aa61e];if('commentsLicenseKeyValid'==_0x42727f||'commentsLicenseKeyInvalid'==_0x42727f||'commentsLicenseKeyExpired'==_0x42727f||'commentsLicenseKeyDomainLimit'==_0x42727f||'commentsLicenseKeyNotAllowed'==_0x42727f||'commentsLicenseKeyEvaluationLimit'==_0x42727f||'commentsLicenseKeyTrialLimit'==_0x42727f||'commentsLicenseKeyUsageLimit'==_0x42727f){delete _0x5db11a[_0x1aa61e],_0x105dd0=_0x42727f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x105dd0&&_0x5db11a['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x105dd0&&_0x5db11a['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x105dd0&&_0x5db11a['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x105dd0&&_0x5db11a['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x105dd0&&_0x5db11a['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x105dd0&&_0x5db11a['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x105dd0&&_0x5db11a['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x5a0de3){const _0x5aaedc=this['editor'],_0x52641e=new _0x5a0de3(_0x5aaedc['locale']),_0x4ac7d4=_0x5aaedc['commands']['get']('addCommentThread');return _0x52641e['set']({'label':S(_0x5aaedc['locale'],'Comment'),'icon':xt}),_0x52641e['bind']('isEnabled')['to'](_0x4ac7d4),this['listenTo'](_0x52641e,'execute',()=>{_0x5aaedc['editing']['view']['focus'](),_0x4ac7d4['execute']();}),_0x52641e;}}class s extends _0x381c71{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x152284){super(_0x152284),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x1a1528,_0x3d90c4,_0x3fcfa1)=>{_0x3fcfa1?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x240f8c,_0xb0d5ee]of this['editor']['commands'])_0xb0d5ee['affectsData']&&'addCommentThread'!==_0x240f8c&&_0xb0d5ee['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing'))&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x3f0bb4=this['editor']['editing']['view']['document'];this['listenTo'](_0x3f0bb4,'cut',_0x15e1be=>_0x15e1be['stop'](),{'priority':'highest'}),this['listenTo'](_0x3f0bb4,'clipboardInput',_0x1b51f1=>_0x1b51f1['stop'](),{'priority':'highest'}),this['listenTo'](_0x3f0bb4,'delete',_0x565d07=>_0x565d07['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x1d8f81,_0x3a66b4]of this['editor']['commands'])_0x3a66b4['affectsData']&&'addCommentThread'!==_0x1d8f81&&_0x3a66b4['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x2c5a36{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x51f426){super(_0x51f426),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x478d51=this['context']['plugins']['get'](N);this['listenTo'](_0x478d51,'_activateAnnotation',(_0x4d6dbf,_0x485bbe)=>{for(const _0x43f471 of this['activeUIs']){const _0x1cde5b=this['_uis']['get'](_0x43f471);(0x0,this['_uisData']['get'](_0x43f471)['filter'])(_0x485bbe)&&_0x1cde5b['setActiveAnnotation'](_0x485bbe);}}),this['listenTo'](_0x478d51,'_deactivateAllAnnotations',()=>{for(const _0x5a878d of this['activeUIs']){this['_uis']['get'](_0x5a878d)['setActiveAnnotation'](null);}}),this['listenTo'](_0x478d51['_visibleAnnotations'],'add',(_0x39cca4,_0x42cab6)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x42cab6);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x22e74f){return this['activeUIs']['has'](_0x22e74f);}['activate'](_0xb874c5,_0x4a68e9=()=>!0x0){const _0x291b06=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0xb874c5))throw new _0x4f8f09('annotationsuis-missing-ui',this,{'uiName':_0xb874c5});this['isActive'](_0xb874c5)&&this['deactivate'](_0xb874c5),this['activeUIs']['add'](_0xb874c5);const _0x4df066=new x();!function({source:_0xa240ba,target:_0x523b01,filter:_0xef2d8e}){for(const _0x240ce6 of _0xa240ba)_0xef2d8e(_0x240ce6)&&_0x523b01['add'](_0x240ce6);_0x523b01['listenTo'](_0xa240ba,'add',(_0x16956c,_0x397b69)=>{_0xef2d8e(_0x397b69)&&_0x523b01['add'](_0x397b69);}),_0x523b01['listenTo'](_0xa240ba,'remove',(_0x34237c,_0x258be0)=>{_0x523b01['has'](_0x258be0)&&_0x523b01['remove'](_0x258be0);});}({'source':_0x291b06['_visibleAnnotations'],'target':_0x4df066,'filter':_0x4a68e9}),this['_uisData']['set'](_0xb874c5,{'collection':_0x4df066,'filter':_0x4a68e9});const _0x29c76f=this['_uis']['get'](_0xb874c5);_0x29c76f['attach'](_0x4df066),this['listenTo'](_0x29c76f,'change:activeAnnotation',(_0x544b60,_0x482caf,_0x4afc62,_0x339ba5)=>{_0x339ba5&&_0x291b06['_removeActiveAnnotation'](_0x339ba5),_0x4afc62&&_0x291b06['_addActiveAnnotation'](_0x4afc62);});}['deactivate'](_0x447ce9){if(this['activeUIs']['delete'](_0x447ce9),!this['_uis']['has'](_0x447ce9))throw new _0x4f8f09('annotationsuis-missing-ui',this,{'uiName':_0x447ce9});const _0x293585=this['_uis']['get'](_0x447ce9);_0x293585['detach'](),this['stopListening'](_0x293585),this['_uisData']['get'](_0x447ce9)['collection']['destroy'](),this['_uisData']['delete'](_0x447ce9);}['switchTo'](_0x5dca31){if(!this['_uis']['has'](_0x5dca31))throw new _0x4f8f09('annotationsuis-missing-ui',this,{'uiName':_0x5dca31});const _0x2d8994=this['context']['plugins']['get'](N),_0x5ce84a=Array['from'](_0x2d8994['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x5dca31);const _0x322fa5=this['_uis']['get'](_0x5dca31);_0x322fa5['setActiveAnnotation'](_0x5ce84a),_0x322fa5['_setSelectedAnnotations']&&_0x5ce84a&&_0x322fa5['_setSelectedAnnotations']([_0x5ce84a]);}['deactivateAll'](){for(const _0x56365e of this['activeUIs'])this['deactivate'](_0x56365e);}['register'](_0x514bbc,_0x4739aa){if(this['_uis']['has'](_0x514bbc))throw new _0x4f8f09('annotationsuis-register-already-registered');if('function'!=typeof _0x4739aa['attach']||'function'!=typeof _0x4739aa['detach']||'function'!=typeof _0x4739aa['setActiveAnnotation'])throw new _0x4f8f09('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x514bbc,_0x4739aa);}['refilterAnnotations'](){const _0x4b4bfe=this['context']['plugins']['get'](N)['collection'],_0x38da8e=new Map(),_0x181d61=Array['from'](this['activeUIs']);for(const _0x43dc50 of this['activeUIs']){const _0x659e2a=this['_uisData']['get'](_0x43dc50)['collection'];for(const _0x4fd132 of _0x659e2a)_0x38da8e['set'](_0x4fd132,_0x43dc50);}for(const _0x4bc815 of _0x4b4bfe){const _0xa537f9=_0x38da8e['get'](_0x4bc815);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4bc815);const _0x555b0e=_0x181d61['find'](_0x4aced1=>this['_uisData']['get'](_0x4aced1)['filter'](_0x4bc815));_0xa537f9!==_0x555b0e&&(_0xa537f9&&this['_uisData']['get'](_0xa537f9)['collection']['remove'](_0x4bc815),_0x555b0e&&this['_uisData']['get'](_0x555b0e)['collection']['add'](_0x4bc815));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x205a26){const _0x59707f=[];for(const _0x3c0345 of this['activeUIs']){(0x0,this['_uisData']['get'](_0x3c0345)['filter'])(_0x205a26)&&_0x59707f['push'](_0x3c0345);}if(_0x59707f['length']>0x1)throw new _0x4f8f09('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x59707f,'annotationType':_0x205a26['type']});}}const he=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x3d7cf0){super(_0x3d7cf0);const _0x35887e=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 _0x4154a6(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x35887e['to']('class')],'style':{'minHeight':_0x35887e['to']('minHeight',_0x114e7e=>'number'==typeof _0x114e7e?he(_0x114e7e+0xa):null)},'dir':_0x3d7cf0['uiLanguageDirection'],'role':'application','aria-label':S(_0x3d7cf0,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x3d7cf0,'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',_0x154efd=>{this['_updateItemPositionInFocusables'](_0x154efd['source']);}),this['list']['forEach'](_0x11abd0=>{this['focusTracker']['add'](_0x11abd0['element']),this['_updateItemPositionInFocusables'](_0x11abd0);}),this['list']['on']('change',(_0x18de01,_0x553333)=>{for(const _0x202f7a of _0x553333['removed'])this['focusTracker']['remove'](_0x202f7a['element']),this['focusables']['remove'](_0x202f7a);for(const _0x339319 of _0x553333['added'])this['focusTracker']['add'](_0x339319['element']),this['_updateItemPositionInFocusables'](_0x339319);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0xedfedc){const _0x3c77d9=this['focusables']['getIndex'](_0xedfedc);let _0x1a83af,_0x4bb962;for(const _0x228313 of this['focusables'])if(_0xedfedc['top']<_0x228313['top']){_0x1a83af=_0x228313;break;}if(_0x4bb962=_0x1a83af?this['focusables']['getIndex'](_0x1a83af):this['focusables']['length'],-0x1!==_0x3c77d9){if(_0x3c77d9===_0x4bb962-0x1)return;this['focusables']['remove'](_0xedfedc),_0x4bb962=_0x1a83af?this['focusables']['getIndex'](_0x1a83af):this['focusables']['length'];}this['focusables']['add'](_0xedfedc,_0x4bb962);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x1376fe){super(_0x1376fe),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x2f89e5,_0x52e55f)=>_0x2f89e5+_0x52e55f),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x492aaa=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x492aaa['to']('isAnimationDisabled',_0x3d7beb=>_0x3d7beb?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x492aaa['to']('top',_0x38a154=>qt(_0x38a154))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x359156=this['element']['clientHeight'];_0x359156&&(this['height']=_0x359156);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x2c5a36{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x127ae7){super(_0x127ae7),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 _0x3d2b62=this['context']['config']['get']('sidebar.container');_0x3d2b62&&this['setContainer'](_0x3d2b62);}['setContainer'](_0x2cce07){if(!y(_0x2cce07))throw new _0x4f8f09('sidebar-setcontainer-invalid-element');this['container']=_0x2cce07;}['_attachToContainer']({viewClass:_0x45f9b6='',spaceBetweenItems:_0x2a6524=0x19}={}){if(!y(this['container']))throw new _0x4f8f09('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x45f9b6,this['_spaceBetweenItems']=_0x2a6524;}['rearrange']({removedAnnotation:_0x109837,previousAnnotation:_0x400309,nextAnnotation:_0x4d46d4}){const _0x1564f0=this['getSidebarItemView'](_0x109837);this['view']['list']['remove'](_0x1564f0),this['_destroySidebarItemView'](_0x109837),_0x400309&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x400309)),_0x4d46d4&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x4d46d4)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x370ca7,activatedAnnotation:_0x2aabf0,disableAnimationOnActivatedAnnotation:_0x197e57}){if(this['_activeAnnotation']=_0x2aabf0,_0x370ca7){_0x370ca7['isActive']=!0x1;const _0x5f4bc9=this['getSidebarItemView'](_0x370ca7);_0x5f4bc9&&_0x197e57&&(_0x5f4bc9['isAnimationDisabled']=!0x1);}if(_0x2aabf0){const _0x4d3ab3=this['getSidebarItemView'](_0x2aabf0);_0x4d3ab3&&(_0x2aabf0['isActive']=!0x0,_0x197e57&&(_0x4d3ab3['isAnimationDisabled']=!0x0,_0x4d3ab3['top']+=0x1),this['_alignToTargetRect'](_0x4d3ab3));}}['_detachFromContainer'](_0x1edb36){if(this['view']['element']['remove'](),_0x1edb36){for(const _0x1f6f52 of _0x1edb36)this['_destroySidebarItemView'](_0x1f6f52);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x318936,_0x56787d){_0x56787d||(_0x56787d=_0x318936['view']);const _0x4c5752=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x4c5752,_0x318936),this['_annotationToSidebarItemView']['set'](_0x318936,_0x4c5752),_0x4c5752['content']['add'](_0x56787d),this['listenTo'](_0x318936['view'],'change:targetRect',(_0x53a4d2,_0x9a911b,_0x1dcd22)=>{const _0x1ddf8f=this['_getTargetTop'](_0x318936,_0x1dcd22);_0x4c5752['_targetTop']!=_0x1ddf8f&&(_0x4c5752['_targetTop']=_0x1ddf8f,this['_setItemTop'](_0x4c5752,_0x1ddf8f));}),this['listenTo'](_0x4c5752,'change:top',()=>{this['_recalculate'](_0x4c5752,'top');}),this['listenTo'](_0x4c5752,'change:bottom',()=>{this['_recalculate'](_0x4c5752,'bottom');}),this['_alignToTargetRect'](_0x4c5752);const _0x3577fa=this['_getItemBefore'](_0x4c5752);if(_0x3577fa)this['_alignAfterItem'](_0x3577fa,_0x4c5752)||this['_alignToTargetRect'](_0x4c5752);else this['_alignToTargetRect'](_0x4c5752);return this['_updateLastItem'](),this['view']['list']['add'](_0x4c5752),_0x4c5752;}['_alignForTopChange'](_0x33d316){if(!_0x33d316['content']['length'])return;const _0x27d382=this['_getItemBefore'](_0x33d316);if(!_0x27d382)return;const _0x45376d=this['_sidebarItemViewToAnnotation']['get'](_0x27d382),_0x34a487=this['_activeAnnotation'];_0x34a487&&_0x34a487===_0x45376d?this['_alignAfterItem'](_0x27d382,_0x33d316):this['_alignBeforeItem'](_0x33d316,_0x27d382);}['_alignForBottomChange'](_0x7c8b37){if(!_0x7c8b37['content']['length'])return;const _0x31d6cd=this['_getItemAfter'](_0x7c8b37);if(!_0x31d6cd)return;const _0xc7f2bd=this['_sidebarItemViewToAnnotation']['get'](_0x31d6cd),_0x2cee3c=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0xa884a0=this['_activeAnnotation'];_0xa884a0&&_0xa884a0===_0xc7f2bd&&_0x2cee3c?(this['_alignBeforeItem'](_0x31d6cd,_0x7c8b37),this['_alignAfterItem'](_0x7c8b37,_0x31d6cd)):_0xa884a0&&_0xa884a0===_0xc7f2bd?this['_alignBeforeItem'](_0x31d6cd,_0x7c8b37):this['_alignAfterItem'](_0x7c8b37,_0x31d6cd);}['_recalculate'](_0x2d967d,_0x6346fe){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x2753ef,changedProp:_0x177c62}of this['_recalculateBuffer'])'top'===_0x177c62?this['_alignForTopChange'](_0x2753ef):this['_alignForBottomChange'](_0x2753ef);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x2d967d,'changedProp':_0x6346fe});}['getSidebarItemView'](_0x5676d4){return this['_annotationToSidebarItemView']['get'](_0x5676d4);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0xfb81c0){const _0x43e546=this['getSidebarItemView'](_0xfb81c0);this['stopListening'](_0x43e546),this['stopListening'](_0xfb81c0['view']),_0x43e546['destroy'](),this['_annotationToSidebarItemView']['delete'](_0xfb81c0),this['_sidebarItemViewToAnnotation']['delete'](_0x43e546);}['_createSidebarView'](){const _0x42e1af=new V(this['context']['locale']);return _0x42e1af['render'](),this['on']('change:_lastItem',(_0x33e550,_0x1abe90,_0x56057c,_0x2ed9cc)=>{_0x2ed9cc&&_0x42e1af['unbind']('minHeight'),_0x56057c?_0x42e1af['bind']('minHeight')['to'](_0x56057c,'bottom'):_0x42e1af['minHeight']=null;}),_0x42e1af;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x386fef){const _0x1024e5=this['_sidebarItemViewToAnnotation']['get'](_0x386fef),_0x3e0289=_0x1024e5&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x1024e5)-0x1);return _0x3e0289&&this['getSidebarItemView'](_0x3e0289)||null;}['_getItemAfter'](_0x55068f){const _0x12f92c=this['_sidebarItemViewToAnnotation']['get'](_0x55068f),_0x4e94a5=_0x12f92c&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x12f92c)+0x1);return _0x4e94a5&&this['getSidebarItemView'](_0x4e94a5)||null;}['_alignBeforeItem'](_0x3b9dd1,_0x2a22da){_0x3b9dd1['updateHeight']();const _0x3fa1f1=R(_0x2a22da['bottom']+this['_spaceBetweenItems'],_0x3b9dd1['top']);return!!_0x3fa1f1&&(this['_setItemTop'](_0x2a22da,_0x2a22da['top']-_0x3fa1f1),!0x0);}['_alignAfterItem'](_0x3509ba,_0x32a898){_0x3509ba['updateHeight']();const _0x148e41=R(_0x3509ba['bottom']+this['_spaceBetweenItems'],_0x32a898['top']);return!!_0x148e41&&(this['_setItemTop'](_0x32a898,_0x32a898['top']+_0x148e41,!0x1),!0x0);}['_alignToTargetRect'](_0x2bf080){const _0x541309=this['_sidebarItemViewToAnnotation']['get'](_0x2bf080);if(!_0x541309||!_0x541309['target']||!_0x541309['targetRect'])return;const _0x545a3a=this['_getTargetTop'](_0x541309,_0x541309['targetRect']);this['_setItemTop'](_0x2bf080,_0x545a3a);}['_getTargetTop'](_0x38ecb0,_0x3b5e11){if(null===_0x3b5e11)return 0x0;if(_0x38ecb0['target']instanceof _0x11210f)return _0x3b5e11['top'];{const _0x933799=new _0x11210f(this['view']['element'])['top'];return _0x3b5e11['top']-_0x933799;}}['_setItemTop'](_0x15ebef,_0x2f9d19,_0x55b53e=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x55b53e&&(_0x2f9d19=Math['max'](_0x2f9d19,this['_getMaxAvailableTop'](_0x15ebef))),_0x15ebef['top']=_0x2f9d19;}['_getMaxAvailableTop'](_0x58ae68){let _0x360822=this['_getItemBefore'](_0x58ae68),_0x70dffe=0x0;for(;_0x360822;)_0x360822['updateHeight'](),_0x70dffe+=this['_spaceBetweenItems']+_0x360822['height'],_0x360822=this['_getItemBefore'](_0x360822);return _0x70dffe;}}function R(_0x58cd21,_0x4f42be){return Math['max'](_0x58cd21-_0x4f42be,0x0);}function y(_0x5c627b){return null!==_0x5c627b&&'object'==typeof _0x5c627b&&0x1===_0x5c627b['nodeType'];}class e extends _0x2c5a36{['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(_0x340b19){super(_0x340b19),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x390bdd(),this['_refreshPositioningDebounced']=_0xfa51ca(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x4b4ac1=this['context']['plugins']['get'](M),_0x34417d=this['context']['plugins']['get'](z);_0x4b4ac1['register']('wideSidebar',this),_0x34417d['container']&&_0x4b4ac1['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x2d88a3){if(_0x2d88a3===this['activeAnnotation'])return;const _0x5a73f9=this['context']['plugins']['get'](z);_0x5a73f9['_activeAnnotation']=_0x2d88a3;const _0x3cc5f2=this['activeAnnotation'];_0x5a73f9['refresh']({'blurredAnnotation':_0x3cc5f2,'activatedAnnotation':_0x2d88a3}),this['activeAnnotation']=_0x2d88a3;}['attach'](_0x92f63b){this['annotations']=_0x92f63b;const _0x6b8eb4=this['context']['plugins']['get'](z);if(_0x6b8eb4['_annotations']=_0x92f63b,this['isAttached'])throw new _0x4f8f09('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x6b8eb4,'set:container',()=>{this['detach'](),this['listenTo'](_0x6b8eb4,'change:container',_0xf5f1ba=>{_0xf5f1ba['off'](),this['attach'](_0x92f63b);});}),_0x6b8eb4['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x3627fb=_0x44e2f7=>{_0x44e2f7['updateTargetRect'](),_0x6b8eb4['addAnnotation'](_0x44e2f7);};for(const _0x204ad2 of _0x92f63b)_0x3627fb(_0x204ad2);this['listenTo'](_0x92f63b,'add',(_0x2b3512,_0x3df74a)=>{_0x3627fb(_0x3df74a);}),this['listenTo'](_0x92f63b,'remove',(_0x54b640,_0x2018ba,_0x527cbc)=>{_0x6b8eb4['rearrange']({'removedAnnotation':_0x2018ba,'previousAnnotation':_0x92f63b['get'](_0x527cbc-0x1),'nextAnnotation':_0x92f63b['get'](_0x527cbc+0x1)}),_0x2018ba===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x92f63b,'focus',(_0x44c3c8,_0x5b036b)=>{this['setActiveAnnotation'](_0x5b036b);}),this['listenTo'](_0x92f63b,'blur',()=>{this['setActiveAnnotation'](null);});const _0x164629=this['context']instanceof _0x2fd299?this['context']['editors']:new _0x390bdd([this['context']]);for(const _0x167f18 of _0x164629)this['_integrateWithEditorAnnotations'](_0x167f18);this['listenTo'](_0x164629,'add',(_0x12ed1e,_0x28456f)=>{this['listenTo'](_0x28456f,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x28456f);});}),this['listenTo'](_0x164629,'remove',(_0x279ba1,_0x41dfd2)=>{_0x41dfd2['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x41dfd2['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x4f8f09('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x4def57=this['context']['plugins']['get'](z);_0x4def57['_detachFromContainer'](this['annotations']),this['stopListening'](_0x4def57),this['stopListening'](this['annotations']),this['context']instanceof _0x2fd299&&this['stopListening'](this['context']['editors']);for(const _0x22e930 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x22e930);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x1d02ba){if(!_0x1d02ba['plugins']['has']('EditorAnnotations'))return;const _0x8ae131=_0x1d02ba['plugins']['get']('EditorAnnotations'),_0x59af3f=()=>{const _0x371b8d=_0x8ae131['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x371b8d[0x0]||null);};this['listenTo'](_0x8ae131,'refresh',_0x59af3f),this['listenTo'](_0x8ae131,'blur',(_0x268685,{isAnnotationTracked:_0x86ab33})=>{this['activeAnnotation']&&_0x86ab33(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x8ae131,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x58e124=>{_0x8ae131['hasDomSelection']()&&(_0x59af3f(),_0x58e124['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x8ae131);}['_destroyEditorAnnotationsIntegration'](_0x3fbfc3){this['stopListening'](_0x3fbfc3),this['_editorAnnotations']['remove'](_0x3fbfc3);}}class D extends _0x2262e4{['counterView'];constructor(_0x124a13){super(_0x124a13);const _0x14cc99=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x3ea83e,_0x3c121b)=>_0x3ea83e?'...':_0x3c121b['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',_0x14cc99['to']('annotationType',_0x4ad501=>'ck-annotation-counter__badge--'+_0x4ad501),_0x14cc99['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x14cc99['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x2c5a36{['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(_0x4a7f0a){super(_0x4a7f0a),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x54d38d),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x390bdd(),this['_refreshPositioningDebounced']=_0xfa51ca(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x51a437(this['context']['locale']),this['balloonPanelView']=new _0x196f9b(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x387f98){this['annotations']=_0x387f98;const _0x4c9007=this['context']['plugins']['get'](z),_0x158d1e=this['balloonPanelView'];if(_0x4c9007['_annotations']=_0x387f98,this['isAttached'])throw new _0x4f8f09('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x4c9007,'set:container',()=>{this['detach'](),this['listenTo'](_0x4c9007,'change:container',_0x9f30c0=>{_0x9f30c0['off'](),this['attach'](_0x387f98);});}),_0x4c9007['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x4649dd=_0x18662f=>{const _0x4cce3a=new D(this['context']['locale']);_0x4c9007['addAnnotation'](_0x18662f,_0x4cce3a),this['_annotationToNarrowView']['set'](_0x18662f,_0x4cce3a),_0x4cce3a['bind']('isDirty','annotationType','number')['to'](_0x18662f['view'],'isDirty','type','length'),_0x4cce3a['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x158d1e['content']['first']!==_0x18662f['view']?(this['_showBalloon'](_0x18662f),_0x18662f['view']['element']['focus'](),this['setActiveAnnotation'](_0x18662f)):this['setActiveAnnotation'](null);});};for(const _0x8e9958 of _0x387f98)_0x4649dd(_0x8e9958);this['listenTo'](_0x387f98,'add',(_0x2e2d5a,_0xa31853)=>{_0x4649dd(_0xa31853);}),this['listenTo'](_0x387f98,'remove',(_0x3b4dfb,_0x43a9e5,_0x231e7c)=>{this['_annotationToNarrowView']['get'](_0x43a9e5)['destroy'](),this['_annotationToNarrowView']['delete'](_0x43a9e5),_0x4c9007['rearrange']({'removedAnnotation':_0x43a9e5,'previousAnnotation':_0x387f98['get'](_0x231e7c-0x1),'nextAnnotation':_0x387f98['get'](_0x231e7c+0x1)}),_0x43a9e5===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x387f98,'focus',(_0x50e50e,_0x4c1fb3)=>{this['setActiveAnnotation'](_0x4c1fb3);}),this['listenTo'](_0x387f98,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x394ba5,_0x2e607c)=>{_0x2e607c['keyCode']===_0xa8769c['esc']&&_0x158d1e['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x158d1e['content']['first']),this['_hideBalloon'](),_0x2e607c['stopPropagation'](),_0x2e607c['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x34947b,_0x34de58)=>{const _0x30708c=_0x34de58['target'];_0x158d1e['isVisible']&&_0x158d1e['element']['contains'](_0x30708c)||_0x4c9007['view']['element']['contains'](_0x30708c)||_0x34947b['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x27ae66=>_0x27ae66['contains'](_0x30708c))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x1cd707=this['context']instanceof _0x2fd299?this['context']['editors']:new _0x390bdd([this['context']]);for(const _0x15cb10 of _0x1cd707)this['_integrateWithEditorAnnotations'](_0x15cb10);this['listenTo'](_0x1cd707,'add',(_0x2907cd,_0x555816)=>{this['listenTo'](_0x555816,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x555816);});}),this['listenTo'](_0x1cd707,'remove',(_0x1d2929,_0x3a5512)=>{_0x3a5512['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x3a5512['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x4d9357){if(_0x4d9357===this['activeAnnotation'])return;const _0x2cf2ad=this['context']['plugins']['get'](z);if(_0x2cf2ad['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x4d9357,'disableAnimationOnActivatedAnnotation':!0x0}),_0x4d9357)_0x2cf2ad['getSidebarItemView'](_0x4d9357)?this['_showBalloon'](_0x4d9357):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x4d9357;}['detach'](){if(!this['isAttached'])throw new _0x4f8f09('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x48cfd6=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x4cb585=>_0x4cb585['destroy']()),this['_annotationToNarrowView']['clear'](),_0x48cfd6['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x2fd299&&this['stopListening'](this['context']['editors']);for(const _0x4de7f5 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x4de7f5);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'](_0x514796){if(!_0x514796['plugins']['has']('EditorAnnotations'))return;const _0x3fe773=_0x514796['plugins']['get']('EditorAnnotations'),_0x267c0a=this['context']['plugins']['get'](z),_0xabef90=this['annotations'],_0x549ab6=this['balloonPanelView'],_0x908ad1=()=>{const _0x3767ee=_0x3fe773['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x3767ee),this['setActiveAnnotation'](_0x3767ee[0x0]||null);};this['listenTo'](_0x3fe773,'refresh',_0x908ad1),this['listenTo'](_0x3fe773,'blur',(_0x1e848f,{isAnnotationTracked:_0x4e1d0f})=>{this['activeAnnotation']&&_0x4e1d0f(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x3fe773,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0xabef90,'blur',_0x102a2e=>{_0x3fe773['hasDomSelection']()&&_0x102a2e['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x53b2f9,_0x3bf2af)=>{const _0x3d56d0=_0x3bf2af['target'];_0x549ab6['isVisible']&&_0x549ab6['element']['contains'](_0x3d56d0)||_0x267c0a['view']['element']['contains'](_0x3d56d0)||this['activeAnnotation']&&_0x3fe773['hasDomSelection']()&&(_0x908ad1(),_0x53b2f9['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x3fe773);}['_destroyEditorAnnotationsIntegration'](_0x594c3a){_0x594c3a&&(this['stopListening'](_0x594c3a),this['_editorAnnotations']['remove'](_0x594c3a));}['_setSelectedAnnotations'](_0x225b1f){for(const _0x1a0a5b of this['_selectedAnnotations'])_0x225b1f['includes'](_0x1a0a5b)||this['_manuallyClosedAnnotationViews']['delete'](_0x1a0a5b['view']);this['_selectedAnnotations']=_0x225b1f;}['_refreshPositioning'](){const _0x209594=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x209594['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x5c5b75){if(this['_manuallyClosedAnnotationViews']['has'](_0x5c5b75['view']))return;const _0x3f9f67=this['balloonPanelView']['content']['first'];_0x3f9f67!==_0x5c5b75['view']?(_0x3f9f67&&this['_detachListeners'](_0x3f9f67),this['_attachListeners'](_0x5c5b75['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x5c5b75['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x2f0f4b=this['balloonPanelView']['content']['first'],_0x2d545b=_0x2f0f4b&&this['annotations']['getByView'](_0x2f0f4b);if(!_0x2d545b||!this['_annotationToNarrowView']['has'](_0x2d545b))return;const _0x594ee3=this['_annotationToNarrowView']['get'](_0x2d545b)['element'],_0x7d0426=(function(){const _0x3cb6ca=_0x196f9b['defaultPositions'];return[_0x3cb6ca['southArrowNorthEast'],_0x3cb6ca['northArrowSouthEast'],_0x3cb6ca['southArrowNorth'],_0x3cb6ca['northArrowSouth'],_0x3cb6ca['southArrowNorthWest'],_0x3cb6ca['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x594ee3,'positions':_0x7d0426});}['_hideBalloon'](){const _0x1784e2=this['balloonPanelView'],_0xc21d95=_0x1784e2['content']['first'];_0xc21d95&&(this['_detachListeners'](_0xc21d95),_0x1784e2['unpin'](),_0x1784e2['content']['clear']());}['_attachListeners'](_0x196d1a){this['listenTo'](_0x196d1a,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x196d1a,'Esc',(_0x3ef8a7,_0x1e7a4d)=>{this['_manuallyClosedAnnotationViews']['add'](_0x196d1a),this['_hideBalloon'](),_0x1e7a4d();});}['_detachListeners'](_0x14c145){this['stopListening'](_0x14c145);}}class c extends _0x381c71{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x38f3d8,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x267731){super(_0x267731),_0x267731['editing']['view']['addObserver'](_0x266776),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x267731['plugins']['get'](_0x38f3d8),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x5df738=this['editor']['plugins']['get'](M);_0x5df738['context']===this['editor']&&(_0x5df738['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x4db828,_0x4c571e)=>{const _0x494643=this['_balloon'];if(this['isAttached']&&_0x494643['visibleView']){const _0x360e61=this['annotations']['getByView'](_0x494643['visibleView']);_0x360e61&&this['_closeAnnotation'](_0x360e61),_0x4c571e();}}));}['afterInit'](){const _0x43066e=this['editor']['plugins']['get'](M);_0x43066e['context']===this['editor']&&(_0x43066e['hasActive']()||_0x43066e['switchTo']('inline'));}['setActiveAnnotation'](_0x1c0513){_0x1c0513!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x1c0513&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x1c0513)&&this['_addAnnotationToBalloon'](_0x1c0513,!0x0),_0x1c0513['isActive']=!0x0),_0x1c0513||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x1c0513);}['attach'](_0x3650d9){this['annotations']=_0x3650d9;const _0x346108=this['editor']['plugins']['get'](M),_0xea50ec=this['_balloon'];if(this['isAttached'])throw new _0x4f8f09('inlineannotations-attach-already-attached',this);if(_0x346108['context']!==this['editor'])throw new _0x4f8f09('inlineannotations-not-allowed-with-context',this);const _0x5ab153=this['editor']['plugins']['get'](P);this['listenTo'](_0x5ab153,'refresh',()=>{const _0x294135=_0x5ab153['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0xf20fb5,_0x1a55e8;!this['_forceRefresh']&&(_0xf20fb5=_0x294135,_0x1a55e8=this['_selectedAnnotations'],_0xf20fb5['length']===_0x1a55e8['length']&&_0xf20fb5['every'](_0x5d18ff=>_0x1a55e8['includes'](_0x5d18ff)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x294135),this['setActiveAnnotation'](_0x294135[0x0]||null));}),this['listenTo'](_0x5ab153,'blur',(_0x34d40d,{isAnnotationTracked:_0x2900aa})=>{this['activeAnnotation']&&_0x2900aa(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x2b900d,_0x49b410,_0x992908)=>{_0x992908||this['setActiveAnnotation'](null);}),this['listenTo'](_0x3650d9,'remove',(_0x3c76e8,_0x2ccab7)=>{this['_removeAnnotationFromBalloon'](_0x2ccab7),_0x2ccab7===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0xea50ec,'change:visibleView',(_0xc99986,_0x3c8367,_0xf9d94e,_0x25cc2c)=>{_0x25cc2c&&this['stopListening'](_0x25cc2c);const _0xe3d599=_0x3650d9['getByView'](_0xf9d94e);_0xf9d94e&&_0xe3d599&&(this['listenTo'](_0xf9d94e,'change:height',()=>{_0xea50ec['updatePosition']();}),this['listenTo'](_0xf9d94e,'Esc',()=>{this['_closeAnnotation'](_0xe3d599),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0xe3d599&&this['setActiveAnnotation'](_0xe3d599));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0xea50ec['visibleView']&&(_0x3650d9['getByView'](_0xea50ec['visibleView'])&&_0xea50ec['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 _0x4f8f09('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x200879 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x200879);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0xb83707){for(const _0x5e07cb of this['_selectedAnnotations'])_0xb83707['includes'](_0x5e07cb)||this['_manuallyClosed']['delete'](_0x5e07cb);for(const _0x57c3bc of this['annotations'])_0xb83707['includes'](_0x57c3bc)||this['_removeAnnotationFromBalloon'](_0x57c3bc);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x297860 of _0xb83707)this['_addAnnotationToBalloon'](_0x297860);}this['_selectedAnnotations']=_0xb83707;}['_addAnnotationToBalloon'](_0x28ed06,_0x3fdb82=!0x1){this['_manuallyClosed']['has'](_0x28ed06)||(this['_addedAnnotations']['has'](_0x28ed06)||this['_balloon']['hasView'](_0x28ed06['view'])||(this['_addedAnnotations']['add'](_0x28ed06),this['_balloon']['add']({'stackId':_0x28ed06['view']['id'],'view':_0x28ed06['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x28ed06)}})),_0x3fdb82&&this['_balloon']['showStack'](_0x28ed06['view']['id']));}['_getBalloonTargetForAnnotation'](_0x3173cd){const _0x4cfadb=_0x3173cd['target'],_0x389131=this['editor']['editing']['view'],_0x41a8d6=_0x389131['document']['selection']['getFirstRange'](),_0x2236fd=_0x389131['domConverter']['viewRangeToDom'](_0x41a8d6);if(_0x2236fd['collapse'](!0x0),_0x4cfadb){if(_0x4cfadb instanceof _0x11210f)return _0x4cfadb;let _0x4e9c52=[];for(const _0x14fdf9 of _0x4cfadb)_0x4e9c52['push'](...(_0x309ebf=_0x14fdf9['getClientRects'](),Array['from'](_0x309ebf)['map'](DOMRect['fromRect'])));_0x4e9c52=function(_0x2f78a2){const _0x8f5071=[];let _0x3e4b85=_0x2f78a2[0x0];for(let _0x508da0=0x1;_0x508da0<_0x2f78a2['length'];_0x508da0++)b(_0x3e4b85,_0x2f78a2[_0x508da0])?_0x3e4b85['width']+=_0x2f78a2[_0x508da0]['width']:(_0x8f5071['push'](_0x3e4b85),_0x3e4b85=_0x2f78a2[_0x508da0]);return _0x8f5071['push'](_0x3e4b85),_0x8f5071;}(_0x4e9c52);const _0x1ef8fe=_0x2236fd['getBoundingClientRect']();return _0x4e9c52['find'](_0x43d3ac=>_0x43d3ac['top']<=_0x1ef8fe['top']&&_0x43d3ac['bottom']>=_0x1ef8fe['bottom']&&_0x43d3ac['left']<=_0x1ef8fe['left']&&_0x43d3ac['right']>=_0x1ef8fe['right'])||_0x4e9c52[0x0];}var _0x309ebf;return _0x3173cd['targetRect']||_0x2236fd;}['_removeAnnotationFromBalloon'](_0x76416e){this['_addedAnnotations']['has'](_0x76416e)&&this['_balloon']['hasView'](_0x76416e['view'])&&(this['_addedAnnotations']['delete'](_0x76416e),this['_balloon']['remove'](_0x76416e['view']));}['_closeAnnotation'](_0x2a1cd4){this['_manuallyClosed']['add'](_0x2a1cd4),this['_removeAnnotationFromBalloon'](_0x2a1cd4);}}function b(_0x53b2b3,_0x4b3ab4){return _0x53b2b3['top']===_0x4b3ab4['top']&&_0x53b2b3['bottom']===_0x4b3ab4['bottom']&&_0x53b2b3['right']===_0x4b3ab4['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-2025,\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(_0x3b671b,_0x5be4ae){super(_0x3b671b),this['set']('isEmpty',!_0x5be4ae['length']),this['focusTracker']=new _0x4154a6(),this['_annotationViews']=_0x5be4ae,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x5be4ae,'focusTracker':this['focusTracker']}),this['listenTo'](_0x5be4ae,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x5be4ae,'remove',(_0x4351e2,_0x5261e8)=>{_0x5261e8['isActive']&&this['focus'](),_0x5be4ae['length']||(this['isEmpty']=!0x0);});const _0x14de7d=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x3b671b,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x5be4ae},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x14de7d['if']('isEmpty','ck-hidden',_0x3948c8=>!_0x3948c8)]},'children':[{'text':S(_0x3b671b,'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 _0x52d405 of this['_annotationViews'])this['focusTracker']['add'](_0x52d405['element']);this['_annotationViews']['on']('change',(_0x5a8512,{added:_0x23006d,removed:_0x36f700})=>{for(const _0x17d125 of _0x23006d)this['focusTracker']['add'](_0x17d125['element']);for(const _0x3fd6c1 of _0x36f700)this['focusTracker']['remove'](_0x3fd6c1['element']);});}}class f extends _0x2c5a36{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x25c4e4){super(_0x25c4e4),this['archivedThreads']=new _0x390bdd();}['init'](){const _0x14dfba=this['context'],_0x455459=_0x14dfba['plugins']['get'](o),_0x10f816=_0x14dfba['plugins']['get'](N);this['listenTo'](_0x455459,'addCommentThread',(_0xd18b99,{threadId:_0x325bc1})=>{const _0x523089=_0x455459['getCommentThread'](_0x325bc1);_0x523089['archivedAt']&&this['archivedThreads']['add'](_0x523089,this['_calculatePosition'](_0x523089['archivedAt'])),this['listenTo'](_0x523089,'change:archivedAt',(_0x1ccd58,_0x15dad1,_0x588691)=>{_0x588691?this['archivedThreads']['has'](_0x523089)||this['archivedThreads']['add'](_0x523089,this['_calculatePosition'](_0x523089['archivedAt'])):this['archivedThreads']['has'](_0x523089)&&this['archivedThreads']['remove'](_0x523089);});}),this['listenTo'](_0x455459,'removeCommentThread',(_0x55526c,{threadId:_0xe5cd37})=>{const _0x15a7dc=_0x455459['getCommentThread'](_0xe5cd37);this['stopListening'](_0x15a7dc),this['archivedThreads']['has'](_0x15a7dc)&&this['archivedThreads']['remove'](_0x15a7dc);},{'priority':'highest'}),this['listenTo'](_0x10f816['collection'],'focus',(_0x39adef,_0x445c5a)=>{_0x445c5a['isVisible']||(_0x445c5a['isActive']=!0x0,_0x10f816['activate'](_0x445c5a));});}['_calculatePosition'](_0x2c3298){const _0x2239c0=[...this['archivedThreads']]['findIndex'](_0x228a11=>_0x228a11['archivedAt']<_0x2c3298);return _0x2239c0>-0x1?_0x2239c0:this['archivedThreads']['length'];}}class a extends _0x381c71{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0xfa6a72];}constructor(_0x10799d){super(_0x10799d),this['annotationViews']=new _0x16c208(),this['_pendingThreads']=[];}['init'](){const _0x509781=this['editor'],_0x578c11=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x509781['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x2262e4,!0x0)),_0x509781['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x44c963=this['_createCommentsArchiveButton'](_0x35752f);return _0x44c963['set']({'role':'menuitemcheckbox'}),_0x44c963;});const _0x94a04f=_0x509781['plugins']['get'](f),_0x35f8b3=_0x509781['plugins']['get']('Annotations'),_0x4f9b9d=_0x509781['plugins']['get']('CommentsRepository');_0x94a04f['archivedThreads']['forEach'](_0x3acba2=>{this['_handleNewThread'](_0x3acba2);}),this['listenTo'](_0x94a04f['archivedThreads'],'add',(_0x64673b,_0x31745a)=>{this['_handleNewThread'](_0x31745a);}),this['listenTo'](_0x35f8b3['collection'],'add',(_0x22f260,_0x226430)=>{const _0xee3c7d=this['_pendingThreads']['find'](_0x302294=>{const _0x571a77=_0x4f9b9d['_threadToController']['get'](_0x302294);return _0x571a77&&_0x226430['innerView']===_0x571a77['view'];});if(_0xee3c7d){const _0x3bf773=this['_calculatePosition'](_0xee3c7d['archivedAt']);this['annotationViews']['add'](_0x226430['view'],_0x3bf773),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0xee3c7d),0x1);}}),this['listenTo'](_0x94a04f['archivedThreads'],'remove',(_0x4b1f5f,_0x2c7888)=>{const _0xc5d807=_0x509781['config']['get']('collaboration.channelId');if(!_0xc5d807||_0x2c7888['channelId']===_0xc5d807){const _0x10b33a=_0x4f9b9d['_threadToController']['get'](_0x2c7888),_0x3d9f19=_0x35f8b3['getByInnerView'](_0x10b33a['view']);this['annotationViews']['remove'](_0x3d9f19['view']),this['stopListening'](_0x3d9f19['focusableElements']);}}),this['listenTo'](_0x35f8b3['collection'],'add',(_0x2bf3ca,_0x530e2d)=>{this['listenTo'](_0x530e2d,'escape',_0x578c11);}),this['listenTo'](_0x35f8b3['collection'],'remove',(_0x530591,_0x28f096)=>{this['stopListening'](_0x28f096,'escape',_0x578c11);});}['_handleNewThread'](_0x2946d3){const _0x26b62d=this['editor']['plugins']['get']('CommentsRepository'),_0x254a74=this['editor']['plugins']['get']('Annotations'),_0xff7147=this['editor']['config']['get']('collaboration.channelId');if(!_0xff7147||_0x2946d3['channelId']===_0xff7147){const _0x9f5b=_0x26b62d['_threadToController']['get'](_0x2946d3);if(!_0x9f5b)return void this['_pendingThreads']['push'](_0x2946d3);const _0x48fa15=this['_calculatePosition'](_0x2946d3['archivedAt']),_0x5b1834=_0x254a74['getByInnerView'](_0x9f5b['view']);_0x5b1834['isVisible']&&_0x254a74['_visibleAnnotations']['remove'](_0x5b1834),this['annotationViews']['add'](_0x5b1834['view'],_0x48fa15);}}['_calculatePosition'](_0x56dff3){const _0x3f21c8=this['editor']['config']['get']('collaboration.channelId'),_0x43c8f1=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x1d37a5=>_0x1d37a5['channelId']===_0x3f21c8)['findIndex'](_0x54a4f5=>_0x54a4f5['archivedAt']<_0x56dff3);return _0x43c8f1<0x0||_0x43c8f1>this['annotationViews']['length']?this['annotationViews']['length']:_0x43c8f1-0x1;}['_toggleDialog'](){const _0xeabf1=this['editor'],_0x3b507c=_0xeabf1['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0xeabf1['locale'],this['annotationViews'])),'commentsArchive'===_0x3b507c['id']?_0x3b507c['hide']():_0x3b507c['show']({'id':'commentsArchive','title':S(_0xeabf1['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x4ee589['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x5f3650,_0x5e2da8=!0x1){const _0xa5e48=this['editor']['locale'],_0x1dcfa0=this['editor']['plugins']['get']('Dialog'),_0x464af4=new _0x5f3650(_0xa5e48);return _0x464af4['bind']('isEnabled')['to'](this,'isEnabled'),_0x464af4['bind']('isOn')['to'](_0x1dcfa0,'id',_0x5a6848=>'commentsArchive'===_0x5a6848),_0x464af4['set']({'label':S(_0xa5e48,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x5e2da8&&(_0x464af4['tooltip']=!0x0),this['listenTo'](_0x464af4,'execute',()=>this['_toggleDialog']()),_0x464af4;}['_hideDialogOnAnnotationEscape']=_0x4612de=>{const _0x1f34f1=_0x4612de['source'];if(!this['annotationViews']['has'](_0x1f34f1['view']))return;const _0x1e798b=this['editor']['plugins']['get']('Dialog');_0x1e798b['isOpen']&&'commentsArchive'===_0x1e798b['id']&&(_0x1e798b['hide'](),_0x4612de['stop']());};}class p extends _0x381c71{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};