@ckeditor/ckeditor5-comments 44.0.0-alpha.1 → 44.0.0-alpha.3

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 (190) 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 +15 -15
  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/ui/commenteditor/commenteditor.js +2 -2
  171. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  172. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  173. package/src/comments/ui/commentthreadcontroller.js +2 -2
  174. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  175. package/src/comments/ui/view/basecommentview.js +1 -1
  176. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  177. package/src/comments/ui/view/commentcontentview.js +1 -1
  178. package/src/comments/ui/view/commentinputview.js +1 -1
  179. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  180. package/src/comments/ui/view/commentslistview.js +1 -1
  181. package/src/comments/ui/view/commentthreadheadercontextview.js +1 -1
  182. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  183. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  184. package/src/comments/ui/view/commentthreadview.js +2 -2
  185. package/src/comments/ui/view/commentview.js +2 -2
  186. package/src/comments.js +1 -1
  187. package/src/commentsonly.js +1 -1
  188. package/src/index.js +1 -1
  189. package/src/utils/common-translations.js +1 -1
  190. 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 _0x40857b,icons as _0x2e4242,ContextPlugin as _0x13541d,PendingActions as ht,Command as _0x13a902,Plugin as _0x407575,Context as _0x578923}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x2ae98f,uid as _0x19322d,KeystrokeHandler as jt,FocusTracker as _0x3d5a2c,diff as _0x51bb09,Collection as _0x42f184,Rect as _0x2c8594,CKEditorError as _0x59aed7,first as _0x47e92c,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0xd7308b,keyCodes as _0x91a8de}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x5eabfd,AriaDescriptionView as Zt,setupThreadKeyboardNavigation as ts,ConfirmMixin as ti,LateFocusButtonView as _0x422a78,trimHtml as _0x52825e,LateFocusDropdownButtonView as _0x45b310,Users as it,getDateTimeFormatter as mt,hashObject as lt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x5db1f7}from'ckeditor5-collaboration/dist/index.js';import{throttle as bt,isEqual as It,cloneDeep as pt,set as wt,unset as At,debounce as _0x31e186}from'lodash-es';import{EditorUIView as Xt,InlineEditableUIView as $t,EditorUI as Ut,View as kt,FocusCycler as Ft,ButtonView as _0x50e81f,ViewCollection as _0x184ae2,createDropdown as _0x46a9e6,ListView as _0x2a68f8,focusChildOnDropdownOpen as _0x5a460e,ListItemView as _0xb7565b,MenuBarMenuListItemButtonView as _0x23f078,BodyCollection as _0x89f2ad,BalloonPanelView as _0x4ead26,ContextualBalloon as _0x11b9fc,Dialog as _0x59526a,DialogViewPosition as _0x30b3b0}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x35a9d6}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 Lt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Nt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x59d34a}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class yt extends/* #__PURE__ -- @preserve */
24
- _0x2ae98f(){['model'];['view'];constructor(_0x137aac,_0x6434b2){super(),this['model']=_0x137aac,this['model']['_isAttached']=!0x0,this['view']=_0x6434b2,this['listenTo'](_0x6434b2,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x6434b2,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x6434b2,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x6434b2,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x6434b2,'addComment',(_0xbaccdc,_0x587c3c)=>this['addComment'](_0x587c3c)),this['listenTo'](_0x6434b2,'updateComment',(_0x4644d9,_0x524fbf,_0x5b1cb9)=>this['updateComment'](_0x524fbf,_0x5b1cb9)),this['listenTo'](_0x6434b2,'removeComment',(_0x3876e7,_0x21d942)=>this['removeComment'](_0x21d942));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x280619){this['model']['addComment']({'content':_0x280619,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x17623c,_0x1673dd){this['model']['getComment'](_0x17623c)['update']({'content':_0x1673dd});}['removeComment'](_0x526635){this['model']['getComment'](_0x526635)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x201b4c,_0x2cd92e,_0x2b9db9){const t=_0x201b4c['t'];switch(_0x2cd92e){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'},_0x2b9db9);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'},_0x2b9db9);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'},_0x2b9db9);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'},_0x2b9db9);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x2b9db9);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'},_0x2b9db9);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'},_0x2b9db9);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'},_0x2b9db9);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Vt extends Xt{['main'];['editable'];constructor(_0x23aa14,_0x3cf86a){super(_0x23aa14);const _0x506081=_0x19322d();this['main']=this['createCollection'](),this['editable']=new $t(_0x23aa14,_0x3cf86a,void 0x0,{'label':()=>S(_0x23aa14,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x23aa14['uiLanguageDirection'],'lang':_0x23aa14['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x506081},'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 Ut{['view'];constructor(_0x424ca7){super(_0x424ca7),this['view']=new Vt(_0x424ca7['locale'],_0x424ca7['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x2f76ef=this['editor']['editing']['view'],_0xdffd2c=this['view']['editable'],_0xb9095c=_0x2f76ef['document']['getRoot']();_0xdffd2c['name']=_0xb9095c['rootName'],this['view']['render']();const _0x5542cd=_0xdffd2c['element'];this['setEditableElement'](_0xdffd2c['name'],_0x5542cd),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2f76ef['attachDomRoot'](_0x5542cd),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[Bt,Et,Gt,Jt,Kt,Lt,Nt];class Rt extends/* #__PURE__ -- @preserve */
25
- _0x2ae98f(_0x40857b){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Qt)());constructor(_0x2664f5={}){function _0x463973(_0x5cfa91){return _0x5cfa91['map'](_0x409a8a=>String['fromCharCode'](_0x409a8a))['join']('');}(_0x2664f5=Object['assign']({},_0x2664f5))['plugins']||(_0x2664f5['plugins']=Rt['defaultPlugins']),super(_0x2664f5),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[_0x463973([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x463973([0x76,0x69,0x65,0x77])][_0x463973([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x463973([0x61,0x75,0x74,0x6f]),this[_0x463973([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x463973([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x463973([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x463973([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x463973([0x6f,0x6b])});}['create'](){const _0x18f8e8=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x18f8e8))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x39d963=>{const _0x5d2af9=this['model']['document']['getRoot'](),_0x3b5b23=_0x5d2af9&&_0x5d2af9['getChild'](_0x5d2af9['childCount']-0x1);_0x39d963['setSelection'](_0x3b5b23,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x3a55a5=this['editing']['view'],_0xb0f3fc=_0x3a55a5['document']['getRoot'](),_0xfb1c1=_0xb0f3fc['getChild'](0x0);_0xb0f3fc['childCount']>0x1||!_0xfb1c1||'p'!=_0xfb1c1['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x3a55a5,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0xfb1c1['placeholder']=this['placeholder']),St({'view':_0x3a55a5,'element':_0xfb1c1,'keepOnFocus':!0x0}),this['placeholderElement']=_0xfb1c1);}}class hs extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x9ec24f,_0x5bda7c={}){super(_0x9ec24f),this['editor']=null,this['_editorConfig']=_0x5bda7c,this['set']('value',_0x5bda7c['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x9ec24f,'Reply...')),this['set']('submitLabel',S(_0x9ec24f,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x3d5a2c(),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',(_0x3e363f,_0x17c920)=>{this['cancelButtonView']['fire']('execute'),_0x17c920();}),this['keystrokes']['set']('Ctrl+Enter',(_0x38f7e9,_0x3f6af9)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x3f6af9());}),this['on']('submit',(_0xccf48a,_0x475fbb)=>{_0x475fbb['length']>0xfde8?(alert(S(_0x9ec24f,'TOO_LONG_COMMENT_ALERT',[_0x475fbb['length'],0xfde8])),_0xccf48a['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Rt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x1f0318=this['editor'];this['element']['insertBefore'](_0x1f0318['ui']['element'],this['element']['firstChild']),_0x1f0318['model']['document']['on']('change',()=>this['value']=_0x1f0318['getData']()),_0x1f0318['bind']('placeholder')['to'](this),this['focusables']['add'](_0x1f0318['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x2d5b5e){-0x1===_0x2d5b5e?(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:_0x1c0cfb}=this,_0x41da21=new _0x50e81f(_0x1c0cfb);return _0x41da21['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x41da21['withText']=!0x0,_0x41da21['bind']('label')['to'](this,'submitLabel'),_0x41da21['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x41da21['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x1b358c,_0x569df0)=>!_0x569df0&&!!_0x1b358c['trim']()),_0x41da21;}['_createCancelButton'](){const {locale:_0x5cac22}=this,_0x104fc6=new _0x50e81f(_0x5cac22);return _0x104fc6['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x104fc6['label']=S(_0x5cac22,'Cancel'),_0x104fc6['withText']=!0x0,_0x104fc6['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x104fc6;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x4f6ccf=>{this['focusTracker']['add'](_0x4f6ccf['element']);}),this['focusables']['on']('change',(_0x4e4a45,_0x33b999)=>{for(const _0x87474e of Array['from'](_0x33b999['added'])['reverse']())this['focusTracker']['add'](_0x87474e['element']);});}}class ie extends kt{constructor(_0x50e0f2,_0x1be498,_0x3ebeea){super(_0x50e0f2),this['commentInputView']=new hs(_0x50e0f2,_0x3ebeea),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x22c657,_0x53b40b)=>_0x22c657||!!_0x53b40b),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 _0x5eabfd(_0x50e0f2,_0x1be498),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'](_0xf441b3){this['commentInputView']['focus'](_0xf441b3);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x37a1f6,_0x195673)=>{const {submitButtonView:_0x17f744,cancelButtonView:_0x1349e6,editor:_0x2d9bad}=this['commentInputView'];[_0x17f744['element'],_0x1349e6['element'],_0x2d9bad?_0x2d9bad['editing']['view']['getDomRoot']():null]['filter'](_0x2d7520=>_0x2d7520)['some'](_0x5a2d6c=>_0x5a2d6c['contains'](_0x195673['target']))||(this['focus'](),_0x195673['preventDefault']());});}}class cs extends kt{constructor(_0x3e5fd1){super(_0x3e5fd1);const _0x195678=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x195678['to']('count',_0x4b8979=>S(_0x3e5fd1,'NUMBER_OF_COMMENTS',_0x4b8979))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x2b5bfe,_0x7c86e8,_0x484238){super(_0x2b5bfe);const _0x4b4306=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x7c86e8['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x7c86e8,this['_config']=_0x484238,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x3d5a2c(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x44e8aa=>this['commentViews']['map'](_0x256c3d=>_0x256c3d['element'])['includes'](_0x44e8aa['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x2b5bfe),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0xb5468a=>_0xb5468a-this['_config']['maxCommentsWhenCollapsed']);for(const _0x3260b8 of _0x7c86e8['comments'])this['_handleNewCommentModel'](_0x3260b8);this['_handleInfoComment'](),this['listenTo'](_0x7c86e8['comments'],'add',(_0x359ab9,_0xee5254)=>{const _0x2e053a=this['_calculatePosition'](_0xee5254);this['length']++,this['_handleNewCommentModel'](_0xee5254,_0x2e053a),this['refreshVisibleViews']();}),this['listenTo'](_0x7c86e8['comments'],'remove',(_0x4a0012,_0x36346e)=>{this['length']--,this['_handleRemoveCommentModel'](_0x36346e),this['refreshVisibleViews']();}),this['listenTo'](_0x7c86e8,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x7c86e8,'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',_0x4b4306['if']('length','ck-hidden',_0x2cc6df=>!_0x2cc6df)],'aria-label':S(_0x2b5bfe,'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'](_0x5a96c1){-0x1===_0x5a96c1?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x3f68b4 of this['commentViews'])_0x3f68b4['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x53e852,_0x2476b4){const _0x2b2ab8=new this['_config']['CommentView'](this['locale'],_0x53e852,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x2b2ab8['viewUid']=_0x53e852['id'],_0x2b2ab8['delegate']('removeComment')['to'](this),_0x2b2ab8['delegate']('updateComment')['to'](this),_0x2b2ab8['delegate']('resolveCommentThread')['to'](this),_0x2b2ab8['delegate']('editorReady')['to'](this),_0x2b2ab8['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x2b2ab8,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x2b2ab8,_0x2476b4);}['_calculatePosition'](_0x2acbd8){const _0x54b431=this['_model']['_findOptimalIndex'](_0x2acbd8);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x2acbd8['authoredAt']?_0x54b431-0x1:_0x54b431:_0x54b431-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x981bf3={'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'],_0x981bf3,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x981bf3));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x3d1536){const _0x25e0ea=this['commentViews']['remove'](_0x3d1536['id']);this['stopListening'](_0x25e0ea),_0x25e0ea['isEditMode']&&this['_updateHasDirtyComment'](),_0x25e0ea['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x21fbf2=>_0x21fbf2['isEditMode']);}['_rearrangeCollapse'](){const _0x7f7a06=function(_0xaf045d){const _0x2b8805=new _0x42f184();for(const _0x1514de of _0xaf045d)_0x2b8805['add'](_0x1514de);return _0x2b8805;}(this['commentViews']),_0x4540c0=this['_collapsedCommentsView']['count'];for(let _0x46ee02=0x1;_0x46ee02<=_0x4540c0;_0x46ee02++)_0x7f7a06['remove'](0x1);for(const _0x1fa7c8 of _0x7f7a06)_0x1fa7c8['collapse']();_0x4540c0>0x0&&_0x7f7a06['add'](this['_collapsedCommentsView'],0x1),ns(_0x51bb09(Array['from'](this['visibleViews']),Array['from'](_0x7f7a06)),this['visibleViews'],_0x7f7a06);}['_rearrangeExpand'](){ns(_0x51bb09(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x489404 of this['visibleViews'])_0x489404['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x3ba00d=>{this['focusTracker']['add'](_0x3ba00d['element']),this['keystrokes']['listenTo'](_0x3ba00d['element']);}),this['commentViews']['on']('change',(_0x521bbd,_0x51a13a)=>{for(const _0x98e74 of _0x51a13a['removed'])this['focusTracker']['remove'](_0x98e74['element']),this['keystrokes']['stopListening'](_0x98e74['element']);for(const _0x28679d of Array['from'](_0x51a13a['added'])['reverse']())this['focusTracker']['add'](_0x28679d['element']),this['keystrokes']['listenTo'](_0x28679d['element']);});}}function ns(_0x2d45e6,_0x3d8315,_0x218877){let _0x39a19c=0x0;for(const _0x46ce40 of _0x2d45e6)switch(_0x46ce40){case'insert':_0x3d8315['add'](_0x218877['get'](_0x39a19c),_0x39a19c),_0x39a19c++;break;case'delete':_0x3d8315['remove'](_0x39a19c);break;case'equal':_0x39a19c++;}}class as extends kt{constructor(_0x2519ff){super(_0x2519ff);const _0x32d602=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x32d602['to']('contextValue',_0x3da441=>S(_0x2519ff,'THREAD_CONTEXT_LABEL',_0x3da441)),'tabindex':-0x1},'children':[{'text':_0x32d602['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x3f2111,_0x10d40d){super(_0x3f2111);const _0x5abd8f=this['bindTemplate'];this['_model']=_0x10d40d,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x3d5a2c(),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',_0x2448f1=>!!_0x2448f1),this['bind']('contextValue')['to'](this['_model'],'context',_0x6aadac=>_0x6aadac&&_0x6aadac['value']?this['_trimContextValue'](_0x6aadac['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',_0x5abd8f['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 _0x11d0cb=new _0x50e81f(this['locale']);return _0x11d0cb['label']=S(this['locale'],'Reopen'),_0x11d0cb['tooltip']=S(this['locale'],'Reopen'),_0x11d0cb['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>',_0x11d0cb['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x54922c=>!_0x54922c),_0x11d0cb['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x19355c,_0x133c91)=>_0x19355c&&_0x133c91),_0x11d0cb['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x11d0cb;}['_trimContextValue'](_0x17166c){if(_0x17166c['length']<0x96)return _0x17166c;const _0x2c4448=_0x17166c['lastIndexOf']('\x20',0x93);return _0x17166c['substring'](0x0,_0x2c4448>-0x1?_0x2c4448:0x93)+'...';}['_attachContextActions'](){const _0x571de5=this['element']['querySelector']('.ck-context'),_0x470351=_0x571de5['querySelector']('.ck-context__value');this['listenTo'](_0x571de5,'mouseenter',()=>{_0x470351['offsetWidth']<_0x470351['scrollWidth']&&_0x571de5['classList']['add']('overlay');}),this['listenTo'](_0x571de5,'mouseleave',()=>{_0x571de5['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x494cb2 of this['focusables'])this['focusTracker']['add'](_0x494cb2['element']),this['keystrokes']['listenTo'](_0x494cb2['element']);}['_createContextView'](){const _0x44a316=new as(this['locale']);return _0x44a316['bind']('contextValue')['to'](this),_0x44a316;}}class ss extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x21d503,_0x53d1da,_0x26d9d2,_0x1123e0){super(_0x21d503),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x53d1da,this['_localUser']=_0x26d9d2,this['_config']=_0x1123e0,this['commentThreadHeaderView']=new Yt(_0x21d503,_0x53d1da),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0x21d503,S(_0x21d503,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x21d503,_0x53d1da,Object['assign']({'CommentView':this['_config']['CommentView']},_0x1123e0)),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',(_0x508542,_0x398290)=>_0x508542||!!_0x398290),this['bind']('isUnlinked')['to'](_0x53d1da,'unlinkedAt',_0x2b02a5=>!!_0x2b02a5),this['bind']('ariaLabel')['to'](this,'length',_0x3fb5c0=>{const _0x1afe68=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x3fb5c0,_0x1afe68]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x3d5a2c(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3efcb2=>_0x3efcb2['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),ts(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x223a7e=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x253273=_0x223a7e['commentInputView'];return _0x223a7e['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x253273,'value',(_0x490cd6,_0x43e953,_0x13f509,_0x54aa30,_0xaafb7b)=>!!_0xaafb7b||!!_0x54aa30&&_0x13f509&&!_0x43e953||_0x490cd6&&_0x13f509&&!_0x43e953),_0x253273['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4bebae,_0x45090a,_0x461c64)=>{let _0x3ae104;return _0x3ae104=_0x461c64&&_0x45090a?'Reply\x20to\x20reopen\x20discussion...':_0x4bebae?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x3ae104);}),_0x253273['bind']('submitLabel')['to'](this,'length',_0x3dcfae=>S(this['locale'],_0x3dcfae?'Reply':'Comment')),_0x253273['on']('submit',(_0x22410b,_0x11dca4)=>{this['fire']('addComment',_0x11dca4),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x253273['on']('cancel',()=>{this['focus']();}),_0x253273['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x253273['on']('cancel',_0x475ff4=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x475ff4['stop']());}),this['on']('change:isActive',(_0x47fb66,_0x219c11,_0x14c5b2)=>{_0x14c5b2||this['length']||_0x253273['value']||this['fire']('removeCommentThread');}),_0x223a7e;}}class Ct extends/* #__PURE__ -- @preserve */
27
- ti(ss){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x4380af,_0xffc815,_0x84ed86,_0x35fe15){super(_0x4380af,_0xffc815,_0x84ed86,_0x35fe15),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x4380af,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x45c00a,_0x31da03,_0x301fdd)=>{_0x301fdd||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x1ddba6,_0x283f28,_0x3a8d89)=>{_0x3a8d89&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x2e729c=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x2e729c['if']('isActive','ck-thread--active'),_0x2e729c['if']('isUnlinked','ck-thread--unlinked'),_0x2e729c['if']('isConfirm','ck-thread--remove-confirmation'),_0x2e729c['to']('actionIndicator',_0x52a06b=>_0x52a06b?'ck-thread--'+_0x52a06b:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x2e729c['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 _0x2ef4c2 of this['commentsListView']['commentViews'])_0x2ef4c2['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x612f09}=this,_0x110ae5=this['commentsListView']['commentViews']['get'](0x0);_0x110ae5===this['_boundFirstCommentView']||_0x110ae5['isSystemComment']||(this['_boundFirstCommentView']=_0x110ae5,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x110ae5,'actionIndicator',_0xbe5cf4=>'remove'===_0xbe5cf4?'remove':null),_0x110ae5['placeholder']=S(_0x612f09,'Write\x20a\x20comment...'),_0x110ae5['removeButton']['on']('execute',_0x51d068=>{_0x51d068['stop'](),this['showConfirm'](S(_0x612f09,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x110ae5['focus']();}),_0x110ae5['actionBar']['add'](this['resolveButton'],0x0),_0x110ae5['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x1dc949=new _0x422a78(this['locale']);return _0x1dc949['label']=S(this['locale'],'Resolve'),_0x1dc949['tooltip']=S(this['locale'],'Resolve'),_0x1dc949['icon']=_0x2e4242['check'],_0x1dc949['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x1dc949['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x106fe7=>!_0x106fe7),_0x1dc949['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4e2723,_0x3322fd)=>_0x4e2723&&!_0x3322fd),_0x1dc949['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x1dc949;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class es extends kt{constructor(_0x321335){super(_0x321335),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x65d8c7,_0x25774f,_0x1d0b12)=>{this['element']['innerHTML']=_0x1d0b12;}),this['element']['innerHTML']=this['content'];}}class os extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x57278e,_0x6fdc19,_0x2082a6){super(_0x57278e),this['_model']=_0x6fdc19,this['_config']=_0x2082a6,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x6fdc19,'content',_0x6fdc19,'authoredAt',(_0x10d874,_0x56ff9b)=>S(_0x57278e,'COMMENT_ARIA_LABEL',[_0x6fdc19['author']['name'],_0x2082a6['formatDateTime'](_0x56ff9b),new DOMParser()['parseFromString'](_0x10d874,'text/html')['body']['textContent'],_0x6fdc19['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Zt(_0x57278e,S(_0x57278e,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x184ae2(),this['focusTracker']=new _0x3d5a2c(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x180e04=>_0x180e04['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 _0x1f7245=new es(this['locale']);return _0x1f7245['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x178779,_0x3178b4)=>_0x3178b4?_0x52825e(_0x178779,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x178779),_0x1f7245;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x5d2b23=new hs(this['locale'],this['_config']['editorConfig']);return _0x5d2b23['value']=this['_model']['content'],_0x5d2b23['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x5d2b23['submitLabel']=S(this['locale'],'Save'),_0x5d2b23['on']('submit',(_0x1c7458,_0x2bfb23)=>{this['fire']('updateComment',this['_model']['id'],_0x2bfb23),this['switchToDisplayMode'](),this['focus']();}),_0x5d2b23['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x5d2b23['once']('editorReady',()=>{_0x5d2b23['focus']();}),_0x5d2b23['createEditor'](),_0x5d2b23['delegate']('editorReady')['to'](this),_0x5d2b23['delegate']('editorDestroyed')['to'](this),_0x5d2b23;}['_setupKeyboardNavigation'](){const _0xb06d0b=this['element'];this['keystrokes']['listenTo'](_0xb06d0b);for(const _0x4aab04 of this['focusables'])this['focusTracker']['add'](_0x4aab04['element']),this['keystrokes']['listenTo'](_0x4aab04['element']);this['focusables']['on']('change',(_0x5a01bd,_0x1199e3)=>{for(const _0x2ebc75 of _0x1199e3['removed'])this['focusTracker']['remove'](_0x2ebc75['element']),this['keystrokes']['stopListening'](_0x2ebc75['element']);for(const _0x432497 of _0x1199e3['added'])this['focusTracker']['add'](_0x432497['element']),this['keystrokes']['listenTo'](_0x432497['element']);}),this['keystrokes']['set']('enter',(_0x3cb5ea,_0x57bd8d)=>{_0xb06d0b===_0x3cb5ea['target']&&(this['focusCycler']['focusFirst'](),_0x57bd8d());}),this['keystrokes']['set']('esc',(_0x2b94ea,_0x155a00)=>{_0xb06d0b!==_0x2b94ea['target']&&(this['focus'](),_0x155a00());});}}class vt extends/* #__PURE__ -- @preserve */
28
- ti(os){['actionBar'];['userView'];constructor(_0x398c12,_0x4d12b7,_0xd0b81f){super(_0x398c12,_0x4d12b7,_0xd0b81f),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x398c12,'Reply...')),this['bind']('authoredAt')['to'](_0x4d12b7),this['bind']('resolvedAt')['to'](_0x4d12b7),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 _0x5eabfd(_0x398c12,_0x4d12b7['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x4d12b7,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5c7a18=this['bindTemplate'],_0x10521b=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x5c7a18['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5c7a18['to']('authoredAt',_0x25ff3c=>this['_config']['formatDateTime'](_0x25ff3c))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x5c7a18['if']('isEditMode','ck-comment__actions--hidden'),_0x5c7a18['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']&&_0x10521b['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x5c7a18['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x5c7a18['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x5c7a18['if']('isEditMode','ck-comment--edit'),_0x5c7a18['if']('isSystemComment','ck-comment--info'),_0x5c7a18['to']('actionIndicator',_0x4e7800=>_0x4e7800?'ck-comment--'+_0x4e7800:'')],'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':_0x10521b}]}]};}['_createEditButton'](){const _0x4fbffc=new _0x50e81f(this['locale']);return _0x4fbffc['label']=S(this['locale'],'Edit'),_0x4fbffc['icon']=_0x2e4242['pencil'],_0x4fbffc['withText']=!0x0,_0x4fbffc['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x4fbffc['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1ddc0d=>!_0x1ddc0d),_0x4fbffc['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x4fbffc['on']('execute',()=>this['switchToEditMode']()),_0x4fbffc;}['_createRemoveButton'](){const _0x37d768=new _0x50e81f(this['locale']);return _0x37d768['label']=S(this['locale'],'Remove'),_0x37d768['icon']='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M5.2\x207h9.2c.6\x200\x201\x20.4\x201\x201v9.9c0\x20.5-.4\x201-1\x201H5.2a1\x201\x200\x200\x201-1-1V8c0-.6.4-1\x201-1zm1\x201.5c-.3\x200-.5.2-.5.5v8c0\x20.3.2.5.5.5h.5c.2\x200\x20.5-.2.5-.5V9c0-.3-.3-.5-.5-.5h-.5zm3.2\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.4zm3.5\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.5zm-1.4-7.1H8.3L6.5\x203.6H3.8c-.5\x200-.7.3-.7.8s.2.7.7.7h12c.6\x200\x20.9-.2.9-.7\x200-.5-.3-.8-1-.8h-2.4l-1.8-2.2z\x22/></svg>\x0a',_0x37d768['withText']=!0x0,_0x37d768['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x37d768['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4df167=>!_0x4df167),_0x37d768['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x37d768['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x37d768;}['_createDropdown'](){const _0x440dc0=_0x46a9e6(this['locale'],_0x45b310),_0x247ba7=_0x440dc0['panelView']['children'],_0x30c32b=new _0x2a68f8(this['locale']),_0x3cf0a6=_0x440dc0['bindTemplate'];_0x5a460e(_0x440dc0,()=>this['items']['find'](_0x3bf9d0=>_0x3bf9d0['isVisible'])),_0x440dc0['extendTemplate']({'attributes':{'class':[_0x3cf0a6['if']('isVisible','ck-hidden',_0xc12e74=>!_0xc12e74)]}});const _0x9e3ecb=(_0x2fa31e,_0x577ef0=-0x1)=>{const _0xc4ae91=new _0xb7565b(this['locale']);_0xc4ae91['children']['add'](_0x2fa31e);const _0x48d7ab=_0x577ef0>-0x1?_0x577ef0:_0x30c32b['items']['length'];_0x30c32b['items']['add'](_0xc4ae91,_0x48d7ab);const _0x3abdf5=Array['from'](this['items']);_0x440dc0['unbind']('isEnabled','isVisible'),_0x440dc0['bind']('isEnabled')['toMany'](_0x3abdf5,'isEnabled',(..._0x3a987f)=>_0x3a987f['some'](_0x2a4c5b=>_0x2a4c5b)),_0x440dc0['bind']('isVisible')['toMany'](_0x3abdf5,'isVisible',(..._0x10146b)=>_0x10146b['some'](_0xd3ea37=>_0xd3ea37));};_0x440dc0['panelPosition']='sw',_0x440dc0['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x2e4242['threeVerticalDots']});for(const _0x5bf78e of this['items'])_0x9e3ecb(_0x5bf78e);return _0x247ba7['add'](_0x30c32b),_0x440dc0['listenTo'](this['items'],'add',(_0x24d9a7,_0x4b844e,_0x475c12)=>{_0x9e3ecb(_0x4b844e,_0x475c12);}),_0x440dc0['listenTo'](this['items'],'remove',(_0x2f00f8,_0x394c84,_0x3cb918)=>{_0x30c32b['items']['remove'](_0x3cb918);}),_0x440dc0;}['_attachActions'](_0x2b8107,_0x3f6377){const _0x31e52c=_0x2b8107&&_0x2b8107['element'];_0x31e52c&&(this['listenTo'](_0x31e52c,'mouseenter',()=>this['actionIndicator']=_0x3f6377),this['listenTo'](_0x31e52c,'focus',()=>this['actionIndicator']=_0x3f6377),this['listenTo'](_0x31e52c,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x31e52c,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x4bd3d3=super['_createCommentInputView']();return _0x4bd3d3['bind']('placeholder')['to'](this),_0x4bd3d3;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Dt(_0x42d9d8){const _0xbeaed9=bt(_0x42d9d8,0x1e),_0x2a75f2=new MutationObserver(_0x5cef1c=>{for(const _0x31f3e1 of _0x5cef1c)('attributes'==_0x31f3e1['type']&&'class'==_0x31f3e1['attributeName']||'childList'==_0x31f3e1['type']||'characterData'==_0x31f3e1['type'])&&_0xbeaed9();});return{'attach'(_0x3c9150){_0x2a75f2['observe'](_0x3c9150,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x2a75f2['disconnect'](),_0xbeaed9['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x196210,_0x4c2e01){super(_0x196210),this['id']=_0x19322d(),this['focusTracker']=new _0x3d5a2c(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x11f688,_0x18bebd)=>this['fire']('Esc',_0x18bebd)),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']=Dt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x4c2e01),this['mainView']=_0x4c2e01;const _0x29cf90=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x29cf90['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 _0x1f83df=this['element']['clientHeight'];_0x1f83df&&(this['height']=_0x1f83df);}}class d extends/* #__PURE__ -- @preserve */
29
- _0x2ae98f(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x91859f,target:_0x3f2165,type:_0x9a5fa2,isVisible:_0x10c948=!0x0}){super(),this['view']=_0x91859f,this['view']['element']||this['view']['render'](),this['_type']=_0x9a5fa2,this['_target']=_0x3f2165,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x42f184([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x391207,_0x216e0f)=>{this['view']['focusTracker']['add'](_0x216e0f);}),this['focusableElements']['on']('remove',(_0xf8f5a,_0x9f8b23)=>{this['view']['focusTracker']['remove'](_0x9f8b23);}),this['set']('isVisible',_0x10c948);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x16c2e8=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x16c2e8),_0x16c2e8;}get['targetRect'](){const _0xd83158=this['target'];if(null===_0xd83158)return null;if(_0xd83158 instanceof _0x2c8594)return _0xd83158;const _0x3885b6=_0xd83158['filter'](_0x1389d8=>function(_0x2daf27){const _0x3a0a71=_0x2daf27['offsetParent'];if(_0x3a0a71)return!0x0;const _0x2239e6=_0x2daf27['getClientRects']()['item'](0x0);return!!_0x2239e6;}(_0x1389d8));return 0x0===_0x3885b6['length']?null:new _0x2c8594(_0x3885b6[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0xd676e){this['view']['isActive']=_0xd676e,this['view']['mainView']['isActive']=_0xd676e;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x27aa8a){if(!(null===_0x27aa8a||_0x27aa8a instanceof _0x2c8594||Array['isArray'](_0x27aa8a)&&_0x27aa8a['every'](_0x349259=>ne(_0x349259))))throw new _0x59aed7('annotation-invalid-target',null,{'target':_0x27aa8a});}['_getNormalizedTarget'](){const _0x4ac841='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x4ac841)?[_0x4ac841]:_0x4ac841;}}function ne(_0xa0f324){return null!==_0xa0f324&&'object'==typeof _0xa0f324&&'nodeType'in _0xa0f324&&0x1===_0xa0f324['nodeType'];}class x extends _0x42f184{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x9e39e3=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x3d5a2c(),this['_focusTracker']['on']('change:isFocused',(_0x54290c,_0xe7d469,_0x45833b)=>{_0x45833b||this['fire']('blur');});for(const _0x35dd81 of _0x9e39e3)this['add'](_0x35dd81);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x156fe3){if(this['has'](_0x156fe3))throw new _0x59aed7('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x156fe3['innerView'],_0x156fe3),this['_viewToAnnotation']['set'](_0x156fe3['view'],_0x156fe3);for(const _0x1123d9 of _0x156fe3['focusableElements'])this['_focusTracker']['add'](_0x1123d9);this['listenTo'](_0x156fe3['focusableElements'],'add',(_0x1f55d1,_0x42e694)=>{this['_focusTracker']['add'](_0x42e694);}),this['listenTo'](_0x156fe3['focusableElements'],'remove',(_0x3aeccf,_0x29a3a6)=>{this['_focusTracker']['remove'](_0x29a3a6);}),this['listenTo'](_0x156fe3['view']['focusTracker'],'change:isFocused',(_0x34c38b,_0x16b017,_0x2ee641)=>{_0x2ee641&&this['fire']('focus',_0x156fe3);}),_0x156fe3['updateTargetRect']();const _0x4669ef=this['_getOrderInContent'](_0x156fe3['view']['targetRect']);return super['add'](_0x156fe3,_0x4669ef);}['remove'](_0x2e46ff){if(!this['has'](_0x2e46ff))throw new _0x59aed7('annotationcollection-not-existing-item',null);this['stopListening'](_0x2e46ff['view']['focusTracker']),this['stopListening'](_0x2e46ff['focusableElements']);for(const _0x95e664 of _0x2e46ff['focusableElements'])this['_focusTracker']['remove'](_0x95e664);return this['_viewToAnnotation']['delete'](_0x2e46ff['view']),this['_innerViewToAnnotation']['delete'](_0x2e46ff['innerView']),super['remove'](_0x2e46ff);}['getByInnerView'](_0x503433){return this['_innerViewToAnnotation']['get'](_0x503433);}['getByView'](_0x581e93){return this['_viewToAnnotation']['get'](_0x581e93);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x37dd0e of this)_0x37dd0e['updateTargetRect']();this['_sort']();}['_sort'](){const _0x1a9419=Array['from'](this)['sort']((_0x4fe05a,_0x3748cb)=>v(_0x4fe05a['view']['targetRect'],_0x3748cb['view']['targetRect']));for(let _0x5bcf32=_0x1a9419['length']-0x1;_0x5bcf32>0x0;_0x5bcf32--){const _0x4b5a4e=_0x1a9419[_0x5bcf32];_0x5bcf32!==this['getIndex'](_0x4b5a4e)&&(this['remove'](_0x4b5a4e),this['add'](_0x4b5a4e));}}['_getOrderInContent'](_0x5d3a0a){let _0x557026=0x0;if(!_0x5d3a0a)return this['length'];for(const _0x487bd1 of this){const _0x31a7a3=_0x487bd1['view']['targetRect'];if(_0x31a7a3){if(v(_0x5d3a0a,_0x31a7a3)<0x0)return _0x557026;_0x557026++;}}return _0x557026;}}function v(_0x56451e,_0x3813f0){if(null===_0x56451e&&null===_0x3813f0)return 0x0;if(null===_0x56451e)return-0x1;if(null===_0x3813f0)return 0x1;const _0x2bbf01=_0x56451e['top']-_0x3813f0['top'];return 0x0==_0x2bbf01?_0x56451e['left']-_0x3813f0['left']:_0x2bbf01;}class N extends _0x13541d{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x338bb1){if(super(_0x338bb1),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x338bb1 instanceof _0x40857b){const _0x136b70=_0x338bb1['locale'];_0x338bb1['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x136b70,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x136b70,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x136b70,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x136b70,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x136b70,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x136b70,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x136b70,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x332eeb){this['collection']['add'](_0x332eeb);}['remove'](_0x6ae3aa){this['collection']['remove'](_0x6ae3aa),_0x6ae3aa['destroy']();}['refreshVisibility'](){for(const _0x27ac2f of this['collection'])_0x27ac2f['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x2ca156){return this['collection']['getByInnerView'](_0x2ca156);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x1628c7 of this['collection'])_0x1628c7['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x4c4802){this['fire']('_activateAnnotation',_0x4c4802);}['createAnnotation'](_0x472aba){return new d(_0x472aba);}['createAnnotationView'](_0x3c6661,_0x48fdc3){return new T(_0x3c6661,_0x48fdc3);}['_addActiveAnnotation'](_0x3954fd){const _0x5682da=new Set(this['activeAnnotations']);_0x5682da['add'](_0x3954fd),this['activeAnnotations']=_0x5682da;}['_removeActiveAnnotation'](_0x5e5bf3){const _0x57e3aa=new Set(this['activeAnnotations']);_0x57e3aa['delete'](_0x5e5bf3),this['activeAnnotations']=_0x57e3aa;}['_bindAnnotationsToVisibleAnnotations'](){const _0x2f4c6b=this['collection'],_0x3bb33c=this['_visibleAnnotations'];function _0x479873(_0x19c29a){const _0x2d241d=_0x19c29a['source'];_0x2d241d['isVisible']&&!_0x3bb33c['has'](_0x2d241d)?_0x3bb33c['add'](_0x2d241d):!_0x2d241d['isVisible']&&_0x3bb33c['has'](_0x2d241d)&&_0x3bb33c['remove'](_0x2d241d),_0x2d241d['view']['focusTracker']['remove'](_0x2d241d['view']['element']),_0x2d241d['view']['focusTracker']['add'](_0x2d241d['view']['element']);}this['listenTo'](_0x2f4c6b,'add',(_0xbdc8ce,_0x282cf3)=>{_0x282cf3['isVisible']&&_0x3bb33c['add'](_0x282cf3),this['listenTo'](_0x282cf3,'change:isVisible',_0x479873);}),this['listenTo'](_0x2f4c6b,'remove',(_0x2f5749,_0xda9a0d)=>{_0x3bb33c['has'](_0xda9a0d)&&_0x3bb33c['remove'](_0xda9a0d),this['stopListening'](_0xda9a0d,'change:isVisible',_0x479873);});}['_setupEnterAnnotationKeystroke'](){const _0x18968e=_0x5064e7=>{_0x5064e7['on']('ready',()=>{_0x5064e7['keystrokes']['set'](_0x59d34a,(_0x67ee44,_0x7e4506)=>{const _0x4e4f5e=_0x47e92c(this['activeAnnotations']['values']());_0x4e4f5e&&(_0x4e4f5e['view']['focus'](),_0x7e4506());});});};this['context']instanceof _0x40857b?_0x18968e(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x4cb86c,_0x5c9a35)=>{_0x18968e(_0x5c9a35);});}['_setupEscapeAnnotationHandling'](){const _0x546a0c=_0x347086=>{const _0x2a2fee=_0x347086['source'],_0x3963c6=[];let _0x2cdb90;if(Array['isArray'](_0x2a2fee['target'])){_0x2cdb90=_0x2a2fee['target'][0x0],this['context']instanceof _0x40857b?_0x3963c6['push'](this['context']):this['context']['editors']&&_0x3963c6['push'](...this['context']['editors']);for(const _0x24071d of _0x3963c6)for(const _0x1f8b18 of _0x24071d['editing']['view']['domRoots']['values']())if(_0x1f8b18['contains'](_0x2cdb90))return void _0x24071d['editing']['view']['focus']();_0x2cdb90['focus']();}};this['listenTo'](this['collection'],'add',(_0x1d2e73,_0x55deb6)=>{this['listenTo'](_0x55deb6,'escape',_0x546a0c,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x130d31,_0x4a6fe8)=>{this['stopListening'](_0x4a6fe8,'escape',_0x546a0c);});}}const gt=Symbol('noChannel'),Tt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x13541d{['_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(_0x1e8a29){super(_0x1e8a29),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x2682b2=this['context']['config'];_0x2682b2['define']('comments.maxCommentsWhenCollapsed',0x2),_0x2682b2['define']('comments.maxThreadTotalWeight',0x1f4),_0x2682b2['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x2682b2['define']('comments.CommentThreadView',Ct),_0x2682b2['define']('comments.CommentView',vt),_0x2682b2['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0xd3ae76=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x3ee1c2,_0x17a0a0)=>this['_addCommentThread'](_0x17a0a0)),this['on']('submitCommentThread',(_0x3ed872,_0x342e3a)=>this['_submitCommentThread'](_0x342e3a)),this['on']('resolveCommentThread',(_0x1916bf,_0x4a297c)=>this['_resolveCommentThread'](_0x4a297c)),this['on']('resolveCommentThread',(_0x464252,_0x155b32)=>this['_updateActiveAnnotation'](_0x155b32),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x1f93cb,_0x11fccb)=>this['_reopenCommentThread'](_0x11fccb)),this['on']('reopenCommentThread',(_0x375307,_0x34759c)=>this['_updateActiveAnnotation'](_0x34759c),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x6083c7,_0x1c3093)=>this['_removeCommentThread'](_0x1c3093)),this['on']('updateCommentThread',(_0x2c4763,_0x5395d8)=>this['_updateCommentThread'](_0x5395d8)),this['on']('updateCommentThread',(_0x432c4b,_0x3a1adf)=>this['_updateActiveAnnotation'](_0x3a1adf),{'priority':'lowest'}),this['on']('addComment',(_0x3e6905,_0x4ffcd5)=>this['_addComment'](_0x4ffcd5)),this['on']('updateComment',(_0x377d3e,_0x453692)=>this['_updateComment'](_0x453692)),this['on']('removeComment',(_0x4da326,_0x810ec8)=>this['_removeComment'](_0x810ec8)),this['on']('addComment',(_0x29ff4f,{threadId:_0x192106,isFromAdapter:_0x283ab0})=>{if(_0x283ab0)return;const _0x185b47=this['getCommentThread'](_0x192106),_0x43a820=_0x185b47&&this['_threadToController']['get'](_0x185b47);_0x43a820&&_0x43a820['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0xd3ae76,'change:activeAnnotations',(_0x27d7d7,_0x2a23db,_0x531d26)=>{const _0x3d19d1=Array['from'](_0x531d26)['map'](_0xfa81af=>this['_viewToController']['get'](_0xfa81af['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x3d19d1?_0x3d19d1['model']:null;});}set['adapter'](_0x4c1709){if(this['_adapter'])throw new _0x59aed7('commentsrepository-adapter-already-set');this['_adapter']=_0x4c1709;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x58fce8=gt,threadId:_0xb1ac3f=_0x19322d(),comments:_0x1bc3d9=[],unlinkedAt:_0x4527d7=null,resolvedAt:_0x15ce27=null,resolvedBy:_0x13ce52=null,target:_0x3c146f=null,context:_0x545fba=null,attributes:_0x5cc3fc={},isResolvable:_0x166cd0=!0x0,isSubmitted:_0x47ec8c=!0x1,isFromAdapter:_0xa00155=!0x1}={}){return this['fire'](_t('addCommentThread',_0x58fce8),{'channelId':_0x58fce8,'threadId':_0xb1ac3f,'comments':_0x1bc3d9,'unlinkedAt':_0x4527d7,'resolvedAt':_0x15ce27,'resolvedBy':_0x13ce52,'target':_0x3c146f,'context':_0x545fba,'attributes':_0x5cc3fc,'isFromAdapter':_0xa00155,'isResolvable':_0x166cd0,'isSubmitted':_0x47ec8c}),this['getCommentThread'](_0xb1ac3f);}['openNewCommentThread']({channelId:_0x275bcb=gt,threadId:_0x12669b=_0x19322d(),target:_0x2be61f,context:_0x5f26fc=null,isResolvable:_0x24b51b=!0x0}){if(this['_readOnlyChannels']['has'](_0x275bcb)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x2be61f)throw new _0x59aed7('commentsrepository-missing-target');const _0x3f225c=this['addCommentThread']({'channelId':_0x275bcb,'threadId':_0x12669b,'target':_0x2be61f,'context':_0x5f26fc,'isResolvable':_0x24b51b});if(!_0x3f225c)return null;const _0x1b84c1=this['_threadToController']['get'](_0x3f225c),_0x16992e=_0x1b84c1['view']['commentThreadInputView']['commentInputView'],_0x22d80a=this['context']['plugins']['get'](N),_0x5d67a9=_0x22d80a['getByInnerView'](_0x1b84c1['view']);return _0x22d80a['activate'](_0x5d67a9),_0x16992e['once']('editorReady',()=>_0x16992e['focus']()),_0x3f225c;}['hasCommentThread'](_0x575c19){if('string'!=typeof _0x575c19)throw new _0x59aed7('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x575c19);}['updateCommentThread']({channelId:_0x16de1d=gt,threadId:_0x289de8,context:_0x3cac4d,unlinkedAt:_0x27db7c,attributes:_0x51226d,isFromAdapter:_0x572753=!0x1}){return this['fire'](_t('updateCommentThread',_0x16de1d),{'channelId':_0x16de1d,'threadId':_0x289de8,'context':_0x3cac4d,'unlinkedAt':_0x27db7c,'attributes':_0x51226d,'isFromAdapter':_0x572753}),this['getCommentThread'](_0x289de8);}['getCommentThread'](_0xa1640b){if('string'!=typeof _0xa1640b)throw new _0x59aed7('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0xa1640b);}['fetchCommentThread']({channelId:_0x2d5ed2,threadId:_0x2d1ee1}={}){const _0x3ae758=this['getCommentThread'](_0x2d1ee1);if(_0x3ae758)return Promise['resolve'](_0x3ae758);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x59aed7('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x2d5ed2,'threadId':_0x2d1ee1})['then'](_0x101705=>this['hasCommentThread'](_0x2d1ee1)?this['getCommentThread'](_0x2d1ee1):_0x101705?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x2d5ed2},_0x101705)):void 0x0)['catch'](_0x2f2ad8=>{throw console['error'](_0x2f2ad8),new _0x59aed7('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x2700e7,skipNotAttached:_0x2275fe=!0x1,skipEmpty:_0x45b767=!0x1,toJSON:_0x5d07ea=!0x1}={}){const _0x48aa90=[];for(const _0x4d1ac4 of this['_threads']['values']())_0x2700e7&&_0x4d1ac4['channelId']!==_0x2700e7||_0x2275fe&&!_0x4d1ac4['isAttached']||_0x45b767&&0x0===_0x4d1ac4['length']||_0x48aa90['push'](_0x4d1ac4);return _0x5d07ea?_0x48aa90['map'](_0x1decc5=>_0x1decc5['toJSON']()):_0x48aa90;}['setActiveCommentThread'](_0x54942a){const _0xd1b7f=this['context']['plugins']['get'](N);if(!_0x54942a)return void(this['activeCommentThread']&&_0xd1b7f['deactivateAll']());const _0x178282=this['getCommentThread'](_0x54942a);if(!_0x178282)throw new _0x59aed7('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x54942a});if(!this['_threadToController']['has'](_0x178282))throw new _0x59aed7('commentsrepository-active-not-attached',null,{'threadId':_0x54942a});const _0x2d5601=_0xd1b7f['getByInnerView'](this['_threadToController']['get'](_0x178282)['view']);_0xd1b7f['activate'](_0x2d5601);}['switchReadOnly'](_0x12c3f7,_0x52c065){_0x12c3f7?this['_readOnlyChannels']['add'](_0x52c065):this['_readOnlyChannels']['delete'](_0x52c065),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x31b37e){return this['_readOnlyChannels']['has'](_0x31b37e)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x21d86a,_0x121d92){return new yt(_0x21d86a,_0x121d92);}['setPermissions'](_0x43e0a5,_0x2af454=gt){this['_permissions']['set'](_0x2af454,_0x43e0a5),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x1eb230=gt){return this['_permissions']['has'](_0x1eb230)?this['_permissions']['get'](_0x1eb230):Tt;}['_addCommentThread']({channelId:_0x4d85cb,threadId:_0x24e882,comments:_0x3924d1,unlinkedAt:_0x14e8c0,resolvedAt:_0x1c1287,resolvedBy:_0x545e03,target:_0x586791,context:_0x2bf92a,attributes:_0x305d50,isFromAdapter:_0x646987,isResolvable:_0x17a263,isSubmitted:_0x146025}){if('string'!=typeof _0x24e882)throw new _0x59aed7('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x24e882});if(this['hasCommentThread'](_0x24e882))throw new _0x59aed7('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x24e882});const _0x2764f5=new oe(this,{'channelId':_0x4d85cb,'id':_0x24e882,'context':_0x2bf92a,'attributes':_0x305d50,'unlinkedAt':_0x14e8c0,'resolvedAt':_0x1c1287,'resolvedBy':_0x545e03?this['context']['plugins']['get'](it)['getUser'](_0x545e03):null,'isResolvable':_0x17a263,'isSubmitted':_0x146025||_0x646987});this['_threads']['set'](_0x24e882,_0x2764f5);for(const _0x37fce7 of _0x3924d1)_0x2764f5['_add'](this['_createNewComment']({'threadId':_0x24e882,..._0x37fce7}));return _0x586791&&_0x2764f5['attachTo'](_0x586791),_0x646987||!_0x2764f5['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x4d85cb,'threadId':_0x24e882});}['_submitCommentThread']({channelId:_0x157501,threadId:_0x11b9a5}){if(!this['hasCommentThread'](_0x11b9a5))throw new _0x59aed7('commentsrepository-missing-comment-thread',this);const _0x50ba51=this['getCommentThread'](_0x11b9a5);if(_0x50ba51['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x400be7,comments:_0x339439,resolvedAt:_0xbe841c,resolvedBy:_0x1bcff2,context:_0x157c94,attributes:_0x5aa51e}=_0x50ba51,_0x4756d7=this['context']['plugins']['get']('PendingActions'),_0x119af1=_0x4756d7['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x157501,'threadId':_0x400be7,'comments':_0x339439['map'](_0x95563b=>_0x95563b['toJSON']()),'resolvedAt':_0xbe841c,'resolvedBy':_0x1bcff2?_0x1bcff2['id']:_0x1bcff2,'context':_0x157c94,'attributes':_0x5aa51e})['then'](({comments:_0x3d33e7})=>{_0x4756d7['remove'](_0x119af1);for(const _0x5361f7 of _0x3d33e7)this['_updateComment']({'channelId':_0x157501,'threadId':_0x11b9a5,'commentId':_0x5361f7['commentId'],'createdAt':_0x5361f7['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x35b2a2=>{throw console['error'](_0x35b2a2),new _0x59aed7('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x4cca7e,target:_0x2914f0}){const _0x5d41c3=this['getCommentThread'](_0x4cca7e);if(!_0x5d41c3)throw new _0x59aed7('commentsrepository-attach-missing-comment-thread',this);const _0xea2440=this['context']['plugins']['get']('PendingActions'),_0x19f35c=this['context']['plugins']['get'](N),_0x5e42e5=this['_createCommentThreadView'](_0x5d41c3),_0xac5f91=new yt(_0x5d41c3,_0x5e42e5);let _0x3f7f0d=null;_0x5e42e5['on']('change:isDirty',(_0x307484,_0x2ecb47,_0x981473)=>{_0x981473?_0x3f7f0d=_0xea2440['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x3f7f0d&&(_0xea2440['remove'](_0x3f7f0d),_0x3f7f0d=null);}),this['_threadToController']['set'](_0x5d41c3,_0xac5f91),this['_viewToController']['set'](_0x5e42e5,_0xac5f91);const _0x201ddc=new T(this['context']['locale'],_0x5e42e5);_0x201ddc['bind']('length')['to'](_0x5e42e5),_0x201ddc['bind']('isDirty')['to'](_0x5e42e5,'isDirty',_0x5e42e5,'length',(_0x52d532,_0x36764d)=>_0x52d532||!_0x36764d),_0x201ddc['bind']('isActive')['to'](_0x5e42e5),_0x201ddc['type']='comment';const _0x2277e6=new d({'view':_0x201ddc,'target':_0x2914f0,'type':'comment','isVisible':!_0x5d41c3['isResolved']});return _0x5e42e5['on']('escape',()=>{_0x2277e6['fire']('escape');}),this['_bindAnnotationToEditors'](_0x5e42e5,_0x2277e6),_0x19f35c['add'](_0x2277e6),_0x2277e6;}['_bindAnnotationToEditors'](_0x3c4a26,_0x1ce7bb){this['listenTo'](_0x3c4a26,'editorReady',(_0x380161,_0x2c58c1)=>{const _0x214ecd=_0x2c58c1['ui']['view']['body']['bodyCollectionContainer'];_0x1ce7bb['focusableElements']['add'](_0x214ecd),this['context']instanceof _0x40857b&&this['context']['ui']['focusTracker']['add'](_0x214ecd);},{'priority':'highest'}),this['listenTo'](_0x3c4a26,'editorDestroyed',(_0x2839ee,_0x30ef17)=>{const _0xc377bf=_0x30ef17['ui']['view']['body']['bodyCollectionContainer'];_0x1ce7bb['focusableElements']['has'](_0xc377bf)&&_0x1ce7bb['focusableElements']['remove'](_0xc377bf),this['context']instanceof _0x40857b&&this['context']['ui']['focusTracker']['remove'](_0xc377bf);});}['_unbindEditors'](_0x1993d1){this['stopListening'](_0x1993d1,'editorReady'),this['stopListening'](_0x1993d1,'editorDestroyed');}['_createCommentThreadView'](_0x1f62ce){const _0x4171be=this['context']['plugins']['get'](it),{config:_0x1fb25f,locale:_0x4e1c19}=this['context'],_0x137cdc=mt(_0x1fb25f['get']('locale'));return new(0x0,(_0x1fb25f['get']('comments'))['CommentThreadView'])(_0x4e1c19,_0x1f62ce,_0x4171be['me'],{'editorConfig':{..._0x1fb25f['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x1fb25f['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x1fb25f['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1fb25f['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1fb25f['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x137cdc,'CommentView':_0x1fb25f['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x293519,channelId:_0x136a97,resolvedAt:_0x12318d,resolvedBy:_0x110c19,isFromAdapter:_0x3b5304}){if(!this['hasCommentThread'](_0x293519))throw new _0x59aed7('commentsrepository-missing-comment-thread',null,{'threadId':_0x293519});const _0x394beb=this['getCommentThread'](_0x293519);if(_0x394beb['isResolved'])throw new _0x59aed7('commentsrepository-resolved-comment-thread',null,{'threadId':_0x293519});const _0x55ec59=this['context']['plugins']['get'](it);if(_0x394beb['resolvedBy']=_0x55ec59['getUser'](_0x110c19),_0x394beb['resolvedAt']=_0x12318d,_0x3b5304||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x398a97=this['context']['plugins']['get']('PendingActions'),_0x3f5623=_0x398a97['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x136a97,'threadId':_0x293519})['then'](({resolvedAt:_0x1a63b9,resolvedBy:_0x2c0d03})=>{_0x398a97['remove'](_0x3f5623),_0x394beb['resolvedBy']['id']!==_0x2c0d03&&(_0x394beb['resolvedBy']=_0x55ec59['getUser'](_0x2c0d03)),_0x394beb['resolvedAt']=_0x1a63b9;})['catch'](_0x13daac=>{throw console['error'](_0x13daac),new _0x59aed7('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x1c848c,channelId:_0x3f5729,isFromAdapter:_0x2bb020}){if(!this['hasCommentThread'](_0x1c848c))throw new _0x59aed7('commentsrepository-missing-comment-thread',null,{'threadId':_0x1c848c});const _0x59b706=this['getCommentThread'](_0x1c848c);if(!_0x59b706['isResolved'])throw new _0x59aed7('commentsrepository-reopen-comment-thread',null,{'threadId':_0x1c848c});if(_0x59b706['resolvedBy']=null,_0x59b706['resolvedAt']=null,_0x2bb020||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x5edc4a=this['context']['plugins']['get']('PendingActions'),_0x2d3331=_0x5edc4a['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x3f5729,'threadId':_0x1c848c})['then'](()=>_0x5edc4a['remove'](_0x2d3331))['catch'](_0x5260cd=>{throw console['error'](_0x5260cd),new _0x59aed7('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x271179,isFromAdapter:_0x47bf81}){const _0x25656a=this['getCommentThread'](_0x271179);if(!_0x25656a)throw new _0x59aed7('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x271179),this['_threads']['delete'](_0x271179),!_0x25656a['isSubmitted']||_0x47bf81||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x153f6=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3645ef}=_0x25656a,_0x11ca50=_0x153f6['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x3645ef,'threadId':_0x271179})['then'](()=>_0x153f6['remove'](_0x11ca50))['catch'](_0x2f51d3=>{throw console['error'](_0x2f51d3),new _0x59aed7('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x3a7f7d,unlinkedAt:_0x78c967,context:_0x3b6039,attributes:_0x83ab18,isFromAdapter:_0x58a09f}){if('string'!=typeof _0x3a7f7d)throw new _0x59aed7('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x3a7f7d});if(!this['hasCommentThread'](_0x3a7f7d))throw new _0x59aed7('commentsrepository-missing-comment-thread',null,{'threadId':_0x3a7f7d});const _0x2c6e9f=this['getCommentThread'](_0x3a7f7d);let _0xf25170=!0x1;if(void 0x0!==_0x3b6039&&_0x2c6e9f['context']!==_0x3b6039&&(_0x2c6e9f['context']=_0x3b6039,_0xf25170=!0x0),void 0x0!==_0x78c967&&_0x2c6e9f['unlinkedAt']!==_0x78c967&&(_0x2c6e9f['unlinkedAt']=_0x78c967,_0xf25170=!0x0),_0x83ab18&&!It(_0x83ab18,_0x2c6e9f['attributes'])&&(_0x2c6e9f['attributes']=_0x83ab18,_0xf25170=!0x0),!_0xf25170)return Promise['resolve']();if(!_0x2c6e9f['isSubmitted']||_0x58a09f||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x107376=this['context']['plugins']['get']('PendingActions'),{channelId:_0x27fe55}=_0x2c6e9f,_0x53d1a6=_0x107376['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x27fe55,'threadId':_0x3a7f7d,'context':_0x3b6039,'unlinkedAt':_0x78c967,'attributes':_0x83ab18})['then'](()=>_0x107376['remove'](_0x53d1a6))['catch'](_0x34136b=>{throw console['error'](_0x34136b),new _0x59aed7('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x1e8ab6){const _0x3b98ab=this['context']['plugins']['get'](N),_0x298dd5=this['getCommentThread'](_0x1e8ab6);if(this['_threadToController']['has'](_0x298dd5)){const _0x1d94bf=this['_threadToController']['get'](_0x298dd5),_0x5263b2=_0x1d94bf['view'],_0x2d984f=_0x3b98ab['getByInnerView'](_0x5263b2);this['_threadToController']['delete'](_0x298dd5),this['_viewToController']['delete'](_0x5263b2),_0x2d984f&&_0x3b98ab['remove'](_0x2d984f),_0x1d94bf['destroy'](),_0x5263b2['destroy']()['then'](()=>{this['_unbindEditors'](_0x5263b2);});}}['_updateActiveAnnotation']({threadId:_0x465b48,resolvedAt:_0x3c34b0}){const _0x549950=!!_0x3c34b0,_0xfb509d=this['context']['plugins']['get'](N),_0x1a0a9b=this['getCommentThread'](_0x465b48);if(this['_threadToController']['has'](_0x1a0a9b)){const _0x4c54d9=this['_threadToController']['get'](_0x1a0a9b)['view'],_0x49cad4=_0xfb509d['getByInnerView'](_0x4c54d9);_0x49cad4&&(_0x549950&&_0xfb509d['_removeActiveAnnotation'](_0x49cad4),_0x49cad4['refreshVisibility']());}}['_getExternalAuthor'](_0x4271e1){const _0x3394ed=this['context']['plugins']['get'](it),_0x58f237=lt('external:'+_0x4271e1),_0xbe197d=_0x3394ed['getUser'](_0x58f237);return _0xbe197d||_0x3394ed['addUser']({'id':_0x58f237,'name':_0x4271e1});}['_createNewComment']({threadId:_0x32d244,commentId:_0x2b8dd9=_0x19322d(),content:_0x2883d8,authorId:_0x273822,createdAt:_0x2cfb0a,attributes:_0x5e2dd0}){if('string'!=typeof _0x2b8dd9)throw new _0x59aed7('commentsrepository-invalid-commentid');if('string'!=typeof _0x273822)throw new _0x59aed7('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x2883d8||!_0x2883d8['trim']())throw new _0x59aed7('commentsrepository-invalid-comment-content');const _0x43c159=this['context']['plugins']['get'](it)['getUser'](_0x273822);if(!_0x43c159)throw new _0x59aed7('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x273822});let _0x266024=null,_0x363f20=_0x2cfb0a;return _0x5e2dd0&&_0x5e2dd0['@external']&&(_0x266024=this['_getExternalAuthor'](_0x5e2dd0['@external']['authorName']),_0x363f20=new Date(_0x5e2dd0['@external']['createdAt'])),new re(this,{'threadId':_0x32d244,'id':_0x2b8dd9,'author':_0x266024||_0x43c159,'creator':_0x43c159,'content':_0x2883d8,'createdAt':_0x2cfb0a,'authoredAt':_0x363f20,'attributes':_0x5e2dd0});}['_addComment'](_0x16f096){let {threadId:_0xd488ab,content:_0x125959,attributes:_0xe3ae05,isFromAdapter:_0x547d25}=_0x16f096;const _0x424c8e=this['getCommentThread'](_0x16f096['threadId']);if(!_0x424c8e)throw new _0x59aed7('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x496147=this['_createNewComment'](_0x16f096),{id:_0x57b6d7}=_0x496147;if(_0x424c8e['_add'](_0x496147),_0x547d25||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x424c8e['isSubmitted'])return Promise['resolve']();const _0x49af12=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5159c7}=_0x424c8e,_0x2afeff=_0x49af12['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0xe3ae05||(_0xe3ae05={}),this['adapter']['addComment']({'channelId':_0x5159c7,'threadId':_0xd488ab,'commentId':_0x57b6d7,'content':_0x125959,'attributes':_0xe3ae05})['then'](_0x2c3510=>{_0x49af12['remove'](_0x2afeff),_0x2c3510&&this['_updateComment']({'channelId':_0x5159c7,'threadId':_0xd488ab,'commentId':_0x57b6d7,'createdAt':_0x2c3510['createdAt'],'isFromAdapter':!0x0});})['catch'](_0xe33783=>{throw console['error'](_0xe33783),new _0x59aed7('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x2dab1e,commentId:_0x1a75e8,content:_0x16582a,createdAt:_0x483b14,attributes:_0x3e133d,isFromAdapter:_0x45ed2c}){if(void 0x0!==_0x16582a&&('string'!=typeof _0x16582a||!_0x16582a['trim']()['length']))throw new _0x59aed7('commentsrepository-update-comment-invalid-content');const _0xa1cea=this['getCommentThread'](_0x2dab1e),_0x219387=_0xa1cea['getComment'](_0x1a75e8);if(!_0x219387)throw new _0x59aed7('commentsrepository-update-missing-comment',this);let _0x225490=!0x1;if(_0x16582a&&_0x16582a!==_0x219387['content']&&(_0x219387['isEditable']||_0x45ed2c)&&(_0x219387['content']=_0x16582a,_0x225490=!0x0),_0x483b14&&_0x483b14!==_0x219387['createdAt']&&(_0x219387['createdAt']=_0x483b14,_0x219387['attributes']&&_0x219387['attributes']['@external']||(_0x219387['authoredAt']=_0x483b14),_0x225490=!0x0),_0x3e133d&&!It(_0x3e133d,_0x219387['attributes'])&&(_0x219387['attributes']=_0x3e133d,_0x225490=!0x0),!_0x225490)return Promise['resolve']();if(_0xa1cea['fire']('commentUpdated'),_0x45ed2c||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0xaed472=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5ca3ac}=this['getCommentThread'](_0x219387['threadId']),_0x45ee63=_0xaed472['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x5ca3ac,'threadId':_0x2dab1e,'commentId':_0x1a75e8,'content':_0x16582a,'attributes':_0x3e133d})['then'](()=>_0xaed472['remove'](_0x45ee63))['catch'](_0x52e706=>{throw console['error'](_0x52e706),new _0x59aed7('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x9658f2,commentId:_0x26942c,isFromAdapter:_0x44ec42}){const _0x8307c4=this['getCommentThread'](_0x9658f2),_0x4d1a93=_0x8307c4['getComment'](_0x26942c);if(!_0x4d1a93)throw new _0x59aed7('commentsrepository-remove-missing-comment',this);if(_0x8307c4['_remove'](_0x4d1a93),_0x44ec42||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x59bf4c=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1a5b7b}=_0x8307c4,_0x28eaf3=_0x59bf4c['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x1a5b7b,'threadId':_0x9658f2,'commentId':_0x26942c})['then'](()=>_0x59bf4c['remove'](_0x28eaf3))['catch'](_0x3bc301=>{throw console['error'](_0x3bc301),new _0x59aed7('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
30
- _0x2ae98f(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x37c09d,_0x54f2ba){super();const _0x6ae15b=_0x54f2ba['isResolvable'];this['channelId']=_0x54f2ba['channelId'],this['id']=_0x54f2ba['id'],this['comments']=new _0x42f184(),this['_repository']=_0x37c09d,this['_isAttached']=!0x1,this['_isSubmitted']=_0x54f2ba['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x37c09d,'_permissions',_0x37c09d,'_readOnlyChannels',()=>_0x37c09d['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x37c09d,'_permissions',()=>_0x37c09d['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x37c09d,'_permissions',()=>{const _0x186526=_0x37c09d['getPermissions'](this['channelId']);return _0x186526['write']||_0x186526['admin'];}),this['bind']('isResolvable')['to'](_0x37c09d,'_permissions',()=>_0x6ae15b&&_0x37c09d['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x54f2ba['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x444de4,_0x4e5b65)=>_0x444de4?_0x4e5b65?_0x444de4<_0x4e5b65?_0x444de4:_0x4e5b65:_0x444de4:_0x4e5b65),this['set']('unlinkedAt',_0x54f2ba['unlinkedAt']||null),this['set']('resolvedAt',_0x54f2ba['resolvedAt']||null),this['set']('resolvedBy',_0x54f2ba['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x24a7f8=>!!_0x24a7f8),this['set']('attributes',_0x54f2ba['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x46064c,_0x49c226)=>_0x46064c+_0x49c226['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x4ba87b,id:_0x3ff419}=this;this['_repository']['fire'](_t('submitCommentThread',_0x4ba87b),{'channelId':_0x4ba87b,'threadId':_0x3ff419});}['setUnlinkedAt'](_0x4d9895){this['_update']({'unlinkedAt':_0x4d9895});}['resolve']({resolvedAt:_0x599794=new Date(),resolvedBy:_0x1aedaf=null,isFromAdapter:_0x48c416=!0x1}={}){const _0x2c5209=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x561768,id:_0x476dc6}=this;this['_repository']['fire'](_t('resolveCommentThread',_0x561768),{'channelId':_0x561768,'threadId':_0x476dc6,'resolvedAt':_0x599794,'resolvedBy':_0x1aedaf||_0x2c5209['id'],'isFromAdapter':_0x48c416});}['reopen']({isFromAdapter:_0x4d0a03=!0x1}={}){const {channelId:_0x1036c1,id:_0x5cdddb}=this;this['_repository']['fire'](_t('reopenCommentThread',_0x1036c1),{'channelId':_0x1036c1,'threadId':_0x5cdddb,'isFromAdapter':_0x4d0a03});}['setContext'](_0x95e204){this['context']||this['_update']({'context':_0x95e204});}['setAttribute'](_0x5d6af5,_0x3c3666){const _0x272a8c=pt(this['attributes']);wt(_0x272a8c,_0x5d6af5,_0x3c3666),this['_update']({'attributes':_0x272a8c});}['removeAttribute'](_0x5b2522){const _0x4c1811=pt(this['attributes']);At(_0x4c1811,_0x5b2522),this['_update']({'attributes':_0x4c1811});}['remove']({isFromAdapter:_0xa8f839=!0x1}={}){const {channelId:_0x2495e7,id:_0x466ba8}=this;this['_repository']['fire'](_t('removeCommentThread',_0x2495e7),{'channelId':_0x2495e7,'threadId':_0x466ba8,'isFromAdapter':_0xa8f839});}['attachTo'](_0x2d2858){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x2d2858});}['addComment'](_0xd5d938){const {channelId:_0x43ea6e,id:_0x2b1062}=this;this['_repository']['fire'](_t('addComment',_0x43ea6e,_0x2b1062),Object['assign']({'channelId':_0x43ea6e,'threadId':_0x2b1062},_0xd5d938));}['getComment'](_0x3dcf35){if('string'!=typeof _0x3dcf35)throw new _0x59aed7('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x3dcf35});return this['comments']['get'](_0x3dcf35);}['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'](_0x416969=>_0x416969['toJSON']()),'attributes':this['attributes']};}['_add'](_0x269d36){return this['listenTo'](_0x269d36,'change:authoredAt',()=>{const _0x1f8b21=this['_findOptimalIndex'](_0x269d36),_0xe8ef0d=this['comments'];_0x1f8b21-0x1!=_0xe8ef0d['getIndex'](_0x269d36)&&_0x1f8b21+0x1!=_0xe8ef0d['getIndex'](_0x269d36)&&(this['_remove'](_0x269d36),this['_add'](_0x269d36));}),this['comments']['add'](_0x269d36,this['_findOptimalIndex'](_0x269d36));}['_update'](_0x5ae49d){const {channelId:_0x4ad2ac,id:_0x138790}=this;this['_repository']['fire'](_t('updateCommentThread',_0x4ad2ac),{..._0x5ae49d,'channelId':_0x4ad2ac,'threadId':_0x138790});}['_remove'](_0x5ce0d2){return this['stopListening'](_0x5ce0d2),_0x5ce0d2['destroy'](),this['comments']['remove'](_0x5ce0d2);}['_findOptimalIndex'](_0x1de495){const _0x135c39=this['comments']['find'](_0x48c3e3=>new Date(_0x48c3e3['authoredAt'])['getTime']()>new Date(_0x1de495['authoredAt'])['getTime']());return _0x135c39?this['comments']['getIndex'](_0x135c39):this['length'];}}class re extends/* #__PURE__ -- @preserve */
31
- _0x2ae98f(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x37251d,_0x482bf1){super();const _0x4cd6b1=_0x37251d['context']['plugins']['get'](it)['me'],_0x1187d8=_0x37251d['getCommentThread'](_0x482bf1['threadId']),_0x2eee72=0x0===_0x1187d8['comments']['length'],_0x477294=_0x4cd6b1===_0x482bf1['author'];this['id']=_0x482bf1['id'],this['threadId']=_0x482bf1['threadId'],this['author']=_0x482bf1['author'],this['creator']=_0x482bf1['creator'],this['isExternal']=Boolean(_0x482bf1['attributes']&&_0x482bf1['attributes']['@external']),this['set']('content',_0x482bf1['content']),this['createdAt']=_0x482bf1['createdAt']||new Date(),this['set']('authoredAt',_0x482bf1['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x1187d8,'resolvedAt'),this['set']('attributes',_0x482bf1['attributes']||{}),this['bind']('isEditable')['to'](_0x37251d,'_permissions',()=>{const _0x554828=_0x37251d['getPermissions'](_0x1187d8['channelId'])['write'],_0x5a5b4f=_0x37251d['getPermissions'](_0x1187d8['channelId'])['modifyAll'];return _0x477294&&_0x554828||!_0x477294&&_0x5a5b4f;}),this['bind']('isRemovable')['to'](_0x1187d8,'isRemovable',_0x37251d,'_permissions',_0x215e49=>{const _0x1bfe11=_0x37251d['getPermissions'](_0x1187d8['channelId'])['write'],_0x34d5f5=_0x37251d['getPermissions'](_0x1187d8['channelId'])['modifyAll'];return _0x477294&&_0x1bfe11||_0x215e49&&_0x2eee72||!_0x477294&&_0x34d5f5&&!_0x2eee72;}),this['bind']('isReadOnly')['to'](_0x1187d8,'isReadOnly'),this['_repository']=_0x37251d;}get['weight'](){return Math['max'](function(_0x31fd36){const _0x3701fc=document['createElement']('div');return _0x3701fc['innerHTML']=_0x31fd36,_0x3701fc['textContent']['length'];}(this['content']),0xc8);}['update'](_0x167472){const {threadId:_0x14cd99,id:_0x21b342}=this;if(!this['_repository']['hasCommentThread'](_0x14cd99))throw new _0x59aed7('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x572b46}=this['_repository']['getCommentThread'](_0x14cd99);this['_repository']['fire'](_t('updateComment',_0x572b46,_0x14cd99),{'channelId':_0x572b46,'threadId':_0x14cd99,'commentId':_0x21b342,..._0x167472});}['setAttribute'](_0x2455c4,_0x1f197d){const _0x1e3b48=pt(this['attributes']);wt(_0x1e3b48,_0x2455c4,_0x1f197d),this['update']({'attributes':_0x1e3b48});}['removeAttribute'](_0x6dfdb9){const _0x32e774=pt(this['attributes']);At(_0x32e774,_0x6dfdb9),this['update']({'attributes':_0x32e774});}['remove'](_0x2d2c1b={}){if(!_0x2d2c1b['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x36f545,id:_0x5c52f7}=this;if(!this['_repository']['hasCommentThread'](_0x36f545))throw new _0x59aed7('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x1a944c}=this['_repository']['getCommentThread'](_0x36f545);this['_repository']['fire'](_t('removeComment',_0x1a944c,_0x36f545),{'channelId':_0x1a944c,'threadId':_0x36f545,'commentId':_0x5c52f7,..._0x2d2c1b});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function _t(_0x223058,..._0x468fe7){for(const _0x702b21 of _0x468fe7)void 0x0!==_0x702b21&&(_0x223058+=':'+String(_0x702b21));return _0x223058;}class J extends _0x13a902{['refresh'](){const _0x3f9d47=this['editor']['model']['document']['selection'];for(const _0x28534d of _0x3f9d47['getRanges']())if(this['_hasContent'](_0x28534d))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x3b8132=_0x19322d()}={}){const _0x479e2b=this['editor']['model'],_0x52ca68=[];for(const _0x459a32 of _0x479e2b['document']['selection']['getRanges']())this['_hasContent'](_0x459a32)&&_0x52ca68['push'](this['_trimToContent'](_0x459a32));_0x479e2b['change'](_0x166eb5=>{for(const _0x2c8abb of _0x52ca68){const _0x27cb71=_0x19322d()['substr'](0x1,0x5),_0x152bce='comment:'+_0x3b8132+':'+_0x27cb71;_0x166eb5['addMarker'](_0x152bce,{'range':_0x2c8abb,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x3ab145){for(const _0x5efb38 of _0x3ab145['getItems']())if(this['_itemIsContent'](_0x5efb38))return!0x0;return!0x1;}['_itemIsContent'](_0x3d1223){return _0x3d1223['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x3d1223)&&!_0x3d1223['is']('element','tableCell');}['_trimToContent'](_0x232cc7){const _0x5cbfed=_0x44eb6e=>!this['_itemIsContent'](_0x44eb6e['item']),_0x823b9f=_0x232cc7['start']['getLastMatchingPosition'](_0x5cbfed),_0x2a3274=_0x232cc7['end']['getLastMatchingPosition'](_0x5cbfed,{'direction':'backward'});return this['editor']['model']['createRange'](_0x823b9f,_0x2a3274);}}class P extends _0x407575{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3bcce0){super(_0x3bcce0),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x225b3d=this['editor'],_0x261322=_0x225b3d['model']['document']['selection'],_0x1826e5=_0x31e186(()=>this['refreshSelectedViews'](),0xa);_0x261322['on']('change:range',(_0x411dae,_0x274d63)=>{_0x274d63['directChange']&&(_0x1826e5['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x225b3d['editing']['view']['document'],'change:isFocused',(_0x4fe2f6,_0x4a2672,_0x4a3635)=>{_0x4a3635&&_0x1826e5();}),this['listenTo'](_0x225b3d['ui']['focusTracker'],'change:isFocused',(_0x5a41f3,_0x5dd931,_0x4e2f79)=>{_0x4e2f79||_0x225b3d['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x20e8b7=>this['_editorAnnotationsData']['has'](_0x20e8b7['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x47a58a){if(this['_editorAnnotations']['has'](_0x47a58a['view']))return;this['_editorAnnotations']['add'](_0x47a58a['view']),this['editor']['ui']['focusTracker']['add'](_0x47a58a['view']['element']);const _0x1b9ae4=this['editor']['plugins']['get'](N);this['listenTo'](_0x1b9ae4['collection'],'remove',(_0x53b933,_0x3eb1b6)=>{this['editor']['ui']['focusTracker']['remove'](_0x3eb1b6['view']['element']),this['_editorAnnotations']['delete'](_0x3eb1b6['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x22e3ed){if('function'!=typeof _0x22e3ed)throw new _0x59aed7('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x22e3ed);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x1974be,annotations:_0x42308e}){const _0x43da9c=[],_0x4a10e5=this['editor']['model']['document']['selection'],_0x181872=Array['from'](_0x4a10e5['getRanges']());for(const [_0x369d09,_0x55b1c2]of this['_editorAnnotationsData']){const _0x5903df=_0x1524e5(_0x55b1c2),_0x5d0400=_0x42308e['getByInnerView'](_0x369d09);_0x5903df&&_0x5d0400&&_0x43da9c['push']({'annotation':_0x5d0400,'range':_0x5903df});}function _0x1524e5(_0x18062b){for(const _0x17b778 of _0x18062b)for(const _0x49254b of _0x181872)if(_0x17b778['containsRange'](_0x49254b,!_0x4a10e5['isCollapsed']))return _0x17b778;return null;}return _0x43da9c['sort']((_0x1e5e72,_0x4a596c)=>{const _0x4e1a22=_0x1e5e72['range'],_0x349aaf=_0x4a596c['range'];if(!_0x4e1a22['isEqual'](_0x349aaf)){if(_0x4e1a22['containsRange'](_0x349aaf,!0x0))return 0x1;if(_0x349aaf['containsRange'](_0x4e1a22,!0x0))return-0x1;}return _0x1e5e72['annotation']==_0x1974be?-0x1:_0x4a596c['annotation']==_0x1974be?0x1:0x0;})['map'](_0x1fdddb=>_0x1fdddb['annotation']);}get['_editorAnnotationsData'](){const _0x2afc25=new Map();for(const _0x308ddb of Array['from'](this['_dataCollectors']))for(const [_0x44ff8e,_0x5ab6b6]of _0x308ddb())_0x2afc25['set'](_0x44ff8e,_0x5ab6b6);return _0x2afc25;}}class st extends _0x407575{['afterInit'](){const _0x3a9dc3=this['editor'];if(!_0x3a9dc3['plugins']['has']('RestrictedEditingModeEditing'))return;_0x3a9dc3['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x407575{constructor(_0x52bb86){super(_0x52bb86),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x575e78=this['editor'],_0x8ed508=_0x575e78['commands']['get']('importWord'),_0x188273=_0x575e78['plugins']['get'](it);_0x8ed508&&(_0x8ed508['on']('execute',(_0x20405e,[,_0x548632])=>{_0x548632['collaboration_features']={'comments':!0x0,'user_id':_0x188273['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x8ed508,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x291f11,_0x726f9d){const {comment_threads:_0x31e05e}=_0x726f9d;_0x31e05e&&_0x31e05e['forEach'](({thread_id:_0x598403,comments:_0x3970bd,is_resolved:_0x463fe8})=>{const _0x26cdb3=new Date(),_0x4fd9ef=_0x3970bd['map'](({author:_0x5b1e6a,content:_0x313ecc,created_at:_0x29abe9})=>({'content':_0x313ecc,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x26cdb3,'attributes':{'@external':{'authorName':_0x5b1e6a,'createdAt':_0x29abe9?new Date(_0x29abe9):new Date(),'source':'importWord'}}})),_0x450e0=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x450e0,'threadId':_0x598403,'comments':_0x4fd9ef,'resolvedAt':_0x463fe8?_0x26cdb3:null});});}}class at extends _0x407575{constructor(_0x20d9dd){super(_0x20d9dd),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x7c1248=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x7c1248,'contentInsertion',(_0x1d9f11,_0x33c034)=>this['_removeMarkersWithoutThreads'](_0x33c034['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x30d3b2){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x30d3b2;const _0x16fd75=this['editor']['plugins']['get']('CommentsRepository');for(const _0x140032 of _0x30d3b2['keys']()){const [_0x4ee664,_0x5d955d]=_0x140032['split'](':');'comment'!=_0x4ee664||_0x16fd75['hasCommentThread'](_0x5d955d)||_0x30d3b2['delete'](_0x140032);}return _0x30d3b2;}['_registerMarkerInClipboardPipeline'](){const _0x43e4e5=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x36a39a=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x36a39a&&_0x43e4e5['_registerMarkerToCopy']('comment',_0x36a39a);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x1420d9){switch(_0x1420d9){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class r extends _0x407575{static get['requires'](){return[o,P,it,st,ct,at];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x276e57){super(_0x276e57),this['set']('isThreadsLoadingPaused',!0x0),_0x276e57['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x67d778,_0x26d530,_0x132e13,_0x35ca8a)=>{const _0x9644c0=_0x132e13?he(_0x132e13)['id']:null;if(_0x276e57['model']['change'](()=>{if(_0x9644c0){const _0x29c0ca=this['getAllMarkersForId'](_0x9644c0);for(const _0x5b4752 of _0x29c0ca)_0x276e57['editing']['reconvertMarker'](_0x5b4752);}if(_0x35ca8a){const {id:_0xca8f4b}=he(_0x35ca8a),_0x3d60df=this['getAllMarkersForId'](_0xca8f4b);for(const _0x58f1d8 of _0x3d60df)_0x276e57['editing']['reconvertMarker'](_0x58f1d8);}}),_0x9644c0){const _0x11ea9b=_0x276e57['plugins']['get'](o)['getCommentThread'](_0x9644c0);_0x11ea9b&&_0x11ea9b['isResolved']&&this['scrollToThreadMarker'](_0x9644c0);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x20c87c=this['editor'],_0x5216a9=_0x20c87c['plugins']['get'](o),_0x574b53=_0x20c87c['config']['get']('collaboration.channelId');_0x20c87c['commands']['add']('addCommentThread',new J(_0x20c87c)),this['listenTo'](_0x20c87c,'change:isReadOnly',(_0x448010,_0x2e4245,_0x1f7aa2)=>{_0x5216a9['switchReadOnly'](_0x1f7aa2,_0x20c87c['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x5216a9,ut('addCommentThread',_0x574b53),(_0x523ec6,{threadId:_0x301adf})=>{const _0x187899=this['editor']['plugins']['get'](o)['getCommentThread'](_0x301adf);_0x187899&&_0x187899['unlinkedAt']&&this['_attachArchivedThread'](_0x301adf);}),this['listenTo'](_0x5216a9,ut('removeCommentThread',_0x574b53),(_0x3ace54,{threadId:_0x3621b9})=>{_0x20c87c['model']['enqueueChange']({'isUndoable':!0x1},_0x1f70c2=>{const _0xce7dbc=this['getAllMarkersForId'](_0x3621b9);for(const _0x5ea367 of _0xce7dbc)_0x1f70c2['removeMarker'](_0x5ea367);});}),this['listenTo'](_0x5216a9,ut('resolveCommentThread',_0x574b53),(_0x47f603,{threadId:_0x16861e})=>{(this['_reconvertMarkers'](_0x16861e),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x16861e)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x5216a9,ut('reopenCommentThread',_0x574b53),(_0x423741,{threadId:_0x2cbcfa})=>{this['_reconvertMarkers'](_0x2cbcfa);},{'priority':'low'}),this['listenTo'](_0x5216a9,ut('addComment',_0x574b53),(_0x40f694,{threadId:_0x246146,isFromAdapter:_0x5ddde3})=>{const _0x5c3509=this['getAllMarkersForId'](_0x246146);if(_0x5ddde3||0x0==_0x5c3509['length']||!_0x5216a9['hasCommentThread'](_0x246146))return;0x1===_0x5216a9['getCommentThread'](_0x246146)['length']&&_0x20c87c['model']['enqueueChange']({'isUndoable':!0x1},_0x15f263=>{for(const _0x261ff4 of _0x5c3509)_0x15f263['updateMarker'](_0x261ff4,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['afterInit'](){!async function(_0x4f53a6){const _0x52a8f3=_0x457822([0x52,0x48,0x32,0x58,0x49,0x54,0x30,0x55,0x6e,0x4d,0x33,0x70,0x76,0x53,0x50,0x68,0x6a,0x39,0x37,0x71,0x66,0x45,0x47,0x63,0x6f,0x69,0x64,0x4c,0x38,0x77,0x5a,0x51,0x34,0x46,0x73,0x75,0x78,0x74,0x65,0x7a,0x4f,0x31,0x35,0x6c,0x57,0x67,0x42,0x61,0x44,0x6b,0x43,0x41,0x4a,0x72,0x62,0x4e,0x36,0x79,0x56,0x59,0x4b,0x6d]),_0x4cdee6=0x60301e76,_0x40da07=0x603749f6^_0x4cdee6,_0x47cc94=window[_0x457822([0x44,0x61,0x74,0x65])][_0x457822([0x6e,0x6f,0x77])](),_0x300952=_0x4f53a6[_0x457822([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47b341=new window[(_0x457822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14c32b=>{_0x300952[_0x457822([0x6f,0x6e,0x63,0x65])](_0x457822([0x72,0x65,0x61,0x64,0x79]),_0x14c32b);}),_0x15d4b7={[_0x457822([0x6b,0x74,0x79])]:_0x457822([0x45,0x43]),[_0x457822([0x75,0x73,0x65])]:_0x457822([0x73,0x69,0x67]),[_0x457822([0x63,0x72,0x76])]:_0x457822([0x50,0x2d,0x32,0x35,0x36]),[_0x457822([0x78])]:_0x457822([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]),[_0x457822([0x79])]:_0x457822([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]),[_0x457822([0x61,0x6c,0x67])]:_0x457822([0x45,0x53,0x32,0x35,0x36])},_0x4c7e51=_0x300952[_0x457822([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x457822([0x67,0x65,0x74])](_0x457822([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x57fb08(){let _0x3ec5a7,_0x128345=null,_0x55def6=null;try{if(_0x4c7e51==_0x457822([0x47,0x50,0x4c]))return _0x457822([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3ec5a7=_0x3c329c(),!_0x3ec5a7)return _0x457822([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3ec5a7[_0x457822([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x55def6=_0x5a3026(_0x3ec5a7[_0x457822([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3ec5a7[_0x457822([0x6a,0x74,0x69])])),await _0x383a52()?_0x5a9067()?_0x28ee44()?_0x457822([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x23a5db()?(_0x3ec5a7[_0x457822([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x457822([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x128345=_0x4b7419(_0x457822([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3ec5a7[_0x457822([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x457822([0x74,0x72,0x69,0x61,0x6c])&&(_0x128345=_0x4b7419(_0x457822([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x3ec5a7[_0x457822([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x457822([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x128345=_0x4b7419(_0x457822([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x16de8c()):_0x457822([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x457822([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x457822([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3c6a87){return _0x457822([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x28ee44(){const _0x53b174=[_0x457822([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x457822([0x74,0x72,0x69,0x61,0x6c])][_0x457822([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ec5a7[_0x457822([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x47cc94/0x3e8:0xe10*_0x40da07;return _0x3ec5a7[_0x457822([0x65,0x78,0x70])]<_0x53b174;}function _0x5a9067(){const _0x2ef36d=_0x3ec5a7[_0x457822([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2ef36d&&(!!_0x2ef36d[_0x457822([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x457822([0x2a]))||(!!_0x2ef36d[_0x457822([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x457822([0x43,0x4d,0x54]))||!(!_0x2ef36d[_0x457822([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x457822([0x52,0x43,0x4d,0x54]))||!_0x16508c())));}function _0x23a5db(){const _0x1e7492=_0x3ec5a7[_0x457822([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1e7492||0x0==_0x1e7492[_0x457822([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x41ea05}=new URL(window[_0x457822([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1e7492[_0x457822([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41ea05))return!0x0;const _0x4e6ad1=_0x41ea05[_0x457822([0x73,0x70,0x6c,0x69,0x74])](_0x457822([0x2e]));return _0x1e7492[_0x457822([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1541f1=>_0x1541f1[_0x457822([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x457822([0x2a])))[_0x457822([0x6d,0x61,0x70])](_0x5be107=>_0x5be107[_0x457822([0x73,0x70,0x6c,0x69,0x74])](_0x457822([0x2e])))[_0x457822([0x73,0x6f,0x6d,0x65])](_0x14284c=>_0x4e6ad1[_0x457822([0x65,0x76,0x65,0x72,0x79])]((_0x35d9d2,_0x54fd0b)=>_0x14284c[_0x54fd0b]===_0x35d9d2||_0x14284c[_0x54fd0b]===_0x457822([0x2a])));}function _0x16de8c(){return _0x128345&&_0x55def6?new window[(_0x457822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4fd64f,_0x2abc21)=>{_0x128345[_0x457822([0x74,0x68,0x65,0x6e])](_0x4fd64f,_0x2abc21),_0x55def6[_0x457822([0x74,0x68,0x65,0x6e])](_0xfe44c2=>{_0xfe44c2!=_0x457822([0x56,0x61,0x6c,0x69,0x64])&&_0x4fd64f(_0xfe44c2);},_0x2abc21);}):_0x128345||_0x55def6||_0x457822([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a3026(_0x129e19,_0x5c5840){return new window[(_0x457822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x329245=>{if(_0x189206())return _0x329245(_0x457822([0x56,0x61,0x6c,0x69,0x64]));_0xe7aa6e(),_0x300952[_0x457822([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x457822([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x81d626=!0x1;const _0x2f2f7c=_0x19322d();function _0x316e57(_0x48983c){return!!_0x48983c&&(typeof _0x48983c===_0x457822([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x48983c===_0x457822([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x48983c[_0x457822([0x74,0x68,0x65,0x6e])]===_0x457822([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x48983c[_0x457822([0x63,0x61,0x74,0x63,0x68])]===_0x457822([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x24a527(_0xd6482d){_0x835fe8(_0xd6482d)[_0x457822([0x74,0x68,0x65,0x6e])](_0x180e1e=>{if(!_0x180e1e||_0x180e1e[_0x457822([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x457822([0x6f,0x6b]))return _0x457822([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x478fb5(_0x1c894d(_0x2f2f7c+_0x5c5840))!=_0x180e1e[_0x457822([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x457822([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x457822([0x56,0x61,0x6c,0x69,0x64]);})[_0x457822([0x74,0x68,0x65,0x6e])](_0x2fc578=>(_0x37e35b(),_0x2fc578),()=>{const _0x53c2db=_0x4198d4();return null==_0x53c2db?(_0x37e35b(),_0x457822([0x56,0x61,0x6c,0x69,0x64])):_0x457822(_0x47cc94-_0x53c2db>(0x443c9a76^_0x4cdee6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x457822([0x74,0x68,0x65,0x6e])](_0x329245)[_0x457822([0x63,0x61,0x74,0x63,0x68])](()=>{_0x329245(_0x457822([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3804c1=0x6006f0f6^_0x4cdee6;function _0x37e35b(){const _0x2634c4=_0x457822([0x6c,0x6c,0x63,0x74,0x2d])+_0x478fb5(_0x1c894d(_0x129e19)),_0x361862=_0x1f3264(_0x478fb5(window[_0x457822([0x4d,0x61,0x74,0x68])][_0x457822([0x63,0x65,0x69,0x6c])](_0x47cc94/_0x3804c1)));window[_0x457822([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x457822([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2634c4,_0x361862);}function _0x4198d4(){const _0x3be082=_0x457822([0x6c,0x6c,0x63,0x74,0x2d])+_0x478fb5(_0x1c894d(_0x129e19)),_0x179543=window[_0x457822([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x457822([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3be082);return _0x179543?window[_0x457822([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f3264(_0x179543),0x10)*_0x3804c1:null;}function _0x835fe8(_0x19142b){return new window[(_0x457822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x348fb8,_0x2871bd)=>{_0x19142b[_0x457822([0x74,0x68,0x65,0x6e])](_0x348fb8,_0x2871bd),window[_0x457822([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2871bd,0x6031cab6^_0x4cdee6);});}}_0x300952[_0x457822([0x6f,0x6e])](_0x457822([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3e20f3,_0x293b20)=>{if(_0x293b20[0x0]!=_0x129e19)return _0x329245(_0x457822([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x293b20[0x1]={..._0x293b20[0x1],[_0x457822([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f2f7c};},{[_0x457822([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x457822([0x68,0x69,0x67,0x68])}),_0x300952[_0x457822([0x6f,0x6e])](_0x457822([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x26b7df=>{_0x316e57(_0x26b7df[_0x457822([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x81d626=!0x0,_0x24a527(_0x26b7df[_0x457822([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x457822([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x457822([0x6c,0x6f,0x77])}),_0x47b341[_0x457822([0x74,0x68,0x65,0x6e])](()=>{_0x81d626||_0x329245(_0x457822([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x189206(){return _0x300952[_0x457822([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x457822([0x76,0x69,0x65,0x77])][_0x457822([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x457822([0x61,0x75,0x74,0x6f]);}function _0xe7aa6e(){_0x300952[_0x457822([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x457822([0x76,0x69,0x65,0x77])][_0x457822([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x457822([0x61,0x75,0x74,0x6f]);}}function _0x4b7419(_0xf9b1ef){const _0x1ab9e5=[new window[(_0x457822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e03a7=>setTimeout(_0x5e03a7,0x603920ba^_0x4cdee6)),_0x47b341[_0x457822([0x74,0x68,0x65,0x6e])](()=>new window[(_0x457822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13a265=>{let _0x418701=0x0;_0x300952[_0x457822([0x6d,0x6f,0x64,0x65,0x6c])][_0x457822([0x6f,0x6e])](_0x457822([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x37c0e4,_0x3761aa)=>{_0x3761aa[0x0][_0x457822([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x418701++,_0x418701==(0x60301f8e^_0x4cdee6)&&(_0x13a265(),_0x37c0e4[_0x457822([0x6f,0x66,0x66])]());});}))];return window[_0x457822([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x457822([0x72,0x61,0x63,0x65])](_0x1ab9e5)[_0x457822([0x74,0x68,0x65,0x6e])](()=>_0xf9b1ef);}async function _0x451e8c(){await _0x47b341,_0x300952[_0x457822([0x6d,0x6f,0x64,0x65,0x6c])][_0x457822([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x17474a,_0x300952[_0x457822([0x6d,0x6f,0x64,0x65,0x6c])][_0x457822([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x17474a,_0x300952[_0x457822([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x457822([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x16508c(){return _0x28fbfc(_0x457822([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x176f6c(_0x457822([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x457822([0x73,0x74,0x61,0x74,0x65])]==_0x457822([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x43bfd9(_0x27dce6){const _0x1eed03=_0x621e60();_0x300952[_0x1eed03]=_0x457822([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x27dce6,_0x27dce6!=_0x457822([0x56,0x61,0x6c,0x69,0x64])&&_0x451e8c();}function _0x621e60(){const _0x2f2c12=window[_0x457822([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x457822([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x457822([0x6e,0x6f,0x77])]())[_0x457822([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x457822([0x2e]),'');let _0x1001cc=_0x457822([0x52]);for(let _0x15c2a4=0x0;_0x15c2a4<_0x2f2c12[_0x457822([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15c2a4+=0x2){let _0xe77553=window[_0x457822([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f2c12[_0x457822([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15c2a4,_0x15c2a4+0x2));_0xe77553>=_0x52a8f3[_0x457822([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe77553-=_0x52a8f3[_0x457822([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1001cc+=_0x52a8f3[_0xe77553];}return _0x1001cc;}function _0x3c329c(){const _0x1d3871=_0x4c7e51[_0x457822([0x73,0x70,0x6c,0x69,0x74])](_0x457822([0x2e]));if(0x3!=_0x1d3871[_0x457822([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x514c45(_0x1d3871[0x1]);function _0x514c45(_0x1352c6){const _0x15e301=_0x5e3f80(_0x1352c6);return _0x15e301&&_0x4c5504()?_0x15e301:null;function _0x4c5504(){const _0xd1e6e6=_0x15e301[_0x457822([0x6a,0x74,0x69])],_0x367ebb=window[_0x457822([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd1e6e6[_0x457822([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd1e6e6[_0x457822([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x77fbac={..._0x15e301,[_0x457822([0x6a,0x74,0x69])]:_0xd1e6e6[_0x457822([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xd1e6e6[_0x457822([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x77fbac[_0x457822([0x76,0x63])],_0x1c894d(_0x77fbac)==_0x367ebb;}}}async function _0x383a52(){let _0x32f4a8=!0x0;try{const _0x2f671a=_0x4c7e51[_0x457822([0x73,0x70,0x6c,0x69,0x74])](_0x457822([0x2e])),[_0x43b40b,_0x156e51,_0x4814e5]=_0x2f671a;return _0x260d95(_0x43b40b),await _0x5cbfbd(_0x43b40b,_0x156e51,_0x4814e5),_0x32f4a8;}catch(_0x309e00){return!0x1;}function _0x260d95(_0x43b5ff){const _0x4f8e8b=_0x5e3f80(_0x43b5ff);_0x4f8e8b&&_0x4f8e8b[_0x457822([0x61,0x6c,0x67])]==_0x457822([0x45,0x53,0x32,0x35,0x36])||(_0x32f4a8=!0x1);}async function _0x5cbfbd(_0x121c88,_0x40b400,_0x13184f){const _0x9463ef=window[_0x457822([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x457822([0x66,0x72,0x6f,0x6d])](_0x3c874d(_0x13184f),_0xcdc212=>_0xcdc212[_0x457822([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x331ef8=new window[(_0x457822([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x457822([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x121c88+_0x457822([0x2e])+_0x40b400),_0x2d62fc=window[_0x457822([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x457822([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2d62fc)return;const _0x1871e8=await _0x2d62fc[_0x457822([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x457822([0x6a,0x77,0x6b]),_0x15d4b7,{[_0x457822([0x6e,0x61,0x6d,0x65])]:_0x457822([0x45,0x43,0x44,0x53,0x41]),[_0x457822([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x457822([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x457822([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2d62fc[_0x457822([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x457822([0x6e,0x61,0x6d,0x65])]:_0x457822([0x45,0x43,0x44,0x53,0x41]),[_0x457822([0x68,0x61,0x73,0x68])]:{[_0x457822([0x6e,0x61,0x6d,0x65])]:_0x457822([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1871e8,_0x9463ef,_0x331ef8)||(_0x32f4a8=!0x1);}}function _0x5e3f80(_0x186b88){return _0x186b88[_0x457822([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x457822([0x65,0x79]))?JSON[_0x457822([0x70,0x61,0x72,0x73,0x65])](_0x3c874d(_0x186b88)):null;}function _0x3c874d(_0x4c7254){return window[_0x457822([0x61,0x74,0x6f,0x62])](_0x4c7254[_0x457822([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x457822([0x2b]))[_0x457822([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x457822([0x2f])));}function _0x1c894d(_0x20d73d){let _0x325041=0x1505;function _0x4da875(_0xa0029a){for(let _0x3c1a4a=0x0;_0x3c1a4a<_0xa0029a[_0x457822([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c1a4a++){const _0xbcef46=_0xa0029a[_0x457822([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3c1a4a);_0x325041=(_0x325041<<0x5)+_0x325041+_0xbcef46,_0x325041&=_0x325041;}}function _0x140eb6(_0x9d93ba){Array[_0x457822([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x9d93ba)?_0x9d93ba[_0x457822([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x140eb6):_0x9d93ba&&typeof _0x9d93ba==_0x457822([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x457822([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x9d93ba)[_0x457822([0x73,0x6f,0x72,0x74])]()[_0x457822([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2f3225,_0x3ee0cf])=>{_0x4da875(_0x2f3225),_0x140eb6(_0x3ee0cf);}):_0x4da875(window[_0x457822([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x9d93ba));}return _0x140eb6(_0x20d73d),_0x325041>>>0x0;}function _0x478fb5(_0x301d7c){return _0x301d7c[_0x457822([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x457822([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x457822([0x30]));}function _0x1f3264(_0xb0e291){return _0xb0e291[_0x457822([0x73,0x70,0x6c,0x69,0x74])]('')[_0x457822([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x457822([0x6a,0x6f,0x69,0x6e])]('');}function _0x28fbfc(_0x18c127){return _0x300952[_0x457822([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x457822([0x68,0x61,0x73])](_0x18c127);}function _0x176f6c(_0x1618fb){return _0x300952[_0x457822([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x457822([0x67,0x65,0x74])](_0x1618fb);}function _0x17474a(){}function _0x457822(_0x4efe6c){return _0x4efe6c['map'](_0x3d8bca=>String['fromCharCode'](_0x3d8bca))['join']('');}_0x43bfd9(await _0x57fb08());}(this);}['destroy'](){const _0xe87869=this['editor']['plugins']['get'](o),_0x3a1643=this['editor']['config']['get']('collaboration.channelId');for(const _0x124f30 of _0xe87869['getCommentThreads']({'channelId':_0x3a1643}))_0xe87869['_detachCommentThread'](_0x124f30['id']),_0xe87869['_threads']['delete'](_0x124f30['id']);super['destroy']();}['hasMarkerForId'](_0x2afb47){return this['getAllMarkersForId'](_0x2afb47)['length']>0x0;}['getAllMarkersForId'](_0x5f3d38){const _0x5b4ce4=[];for(const _0x5a21c3 of this['editor']['model']['markers'])_0x5a21c3['name']['startsWith']('comment:'+_0x5f3d38)&&_0x5b4ce4['push'](_0x5a21c3);return _0x5b4ce4;}['scrollToThreadMarker'](_0x142ed2){const _0x5d2a62=this['_getTargetForId'](_0x142ed2);_0x5d2a62&&setTimeout(()=>{this['activeMarker']&&he(this['activeMarker'])['id']===_0x142ed2&&rt({'target':_0x5d2a62[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x315645){this['editor']['model']['change'](()=>{for(const _0x538498 of this['getAllMarkersForId'](_0x315645))this['editor']['editing']['reconvertMarker'](_0x538498);});}['_attachArchivedThread'](_0xb7fadc){const _0xe79496=this['editor']['plugins']['get'](o),_0x239e9d=this['editor']['plugins']['get'](P),_0x4fd1b5=_0xe79496['getCommentThread'](_0xb7fadc);if(!_0x4fd1b5['isAttached']){const _0x443446=_0x4fd1b5['attachTo'](()=>this['_getTargetForId'](_0x4fd1b5['id']));_0x239e9d['registerAnnotation'](_0x443446),_0x4fd1b5['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x26952a=this['editor'],_0x22d7c7=_0x26952a['plugins']['get'](it);_0x26952a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x2eebe6,_0x512c08)=>{const {id:_0x1d2dba}=he(_0x2eebe6['markerName']),_0x412b0c=_0x26952a['plugins']['get'](o)['getCommentThread'](_0x1d2dba),_0xb7c876=this['activeMarker']&&he(this['activeMarker'])['id']===_0x1d2dba;let _0x1c0afa;if(_0x412b0c&&_0x412b0c['isResolved']&&!_0xb7c876&&_0x2eebe6['item'])return _0x512c08['consumable']['consume'](_0x2eebe6['item'],'addMarker:'+_0x2eebe6['markerName']),_0x512c08['consumable']['consume'](_0x2eebe6['item'],'removeMarker:'+_0x2eebe6['markerName']),null;const _0x203cbf=['ck-comment-marker'];return _0xb7c876&&_0x203cbf['push']('ck-comment-marker--active'),_0x1c0afa=_0x412b0c&&_0x412b0c['length']?_0x412b0c['comments']['first']['author']['id']:_0x22d7c7['me']['id'],{'classes':_0x203cbf,'attributes':{'data-comment':_0x1d2dba,'data-author-id':_0x1c0afa}};}}),_0x26952a['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x1dcad9,{options:_0x123449})=>{const _0x38cce3=_0x26952a['plugins']['get'](o),_0x149814=_0x26952a['model']['markers']['get'](_0x1dcad9),{id:_0x43db64,part:_0x352fc1}=he(_0x1dcad9);if(_0x149814&&!_0x149814['affectsData'])return null;if(_0x123449['ignoreResolvedComments']){const _0xfab7a4=_0x38cce3['getCommentThread'](_0x43db64);if(_0xfab7a4&&_0xfab7a4['isResolved'])return null;}return{'group':'comment','name':_0x352fc1?_0x43db64+':'+_0x352fc1:_0x43db64};}}),_0x26952a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0xa2f306,{writer:_0x37925b})=>_0x37925b['createElement']('$marker',{'data-name':'comment:'+_0xa2f306['getAttribute']('id')})}),_0x26952a['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x3a6126=this['editor'],_0x1fa192=_0x3a6126['plugins']['get'](o),_0x4d2b77=new Set(),_0x300f7f=new Set();_0x3a6126['model']['document']['registerPostFixer'](_0x30cbc7=>{let _0x3cf593=!0x1;for(const {name:_0xf9fd3c,data:_0x501aa8}of _0x3a6126['model']['document']['differ']['getChangedMarkers']()){const {group:_0x36dd6f,id:_0x57ac9a}=he(_0xf9fd3c);let _0x381c60=_0x501aa8['newRange'];if('comment'!==_0x36dd6f||!_0x381c60)continue;const _0x2901d2='$graveyard'===_0x381c60['root']['rootName'];_0x2901d2||(_0x381c60=ft(_0x381c60,_0x3a6126['model']),!_0x381c60||_0x381c60['isCollapsed']||!_0x501aa8['newRange']||_0x381c60['isEqual'](_0x501aa8['newRange']))?_0x3a6126['model']['hasContent'](_0x381c60)&&!_0x2901d2?this['isThreadsLoadingPaused']?_0x4d2b77['add'](_0xf9fd3c):this['_handleThreadMarker'](_0xf9fd3c,_0x57ac9a):(_0x300f7f['add'](_0xf9fd3c),_0x4d2b77['delete'](_0xf9fd3c),_0x30cbc7['removeMarker'](_0xf9fd3c),_0x3cf593=!0x0):(_0x30cbc7['updateMarker'](_0xf9fd3c,{'range':_0x381c60}),_0x3cf593=!0x0);}return _0x3cf593;}),this['on']('change:isThreadsLoadingPaused',(_0x1f44f2,_0x5d0d4f,_0x4106f9)=>{if(!_0x4106f9&&_0x4d2b77['size'])for(const _0x527671 of _0x4d2b77){const {id:_0x4e7766}=he(_0x527671);_0x4d2b77['delete'](_0x527671),_0x3a6126['model']['markers']['get'](_0x527671)&&this['_handleThreadMarker'](_0x527671,_0x4e7766);}}),this['listenTo'](_0x3a6126['model']['document'],'change',(_0xb17c87,_0x243c08)=>{for(const {name:_0x4eb84e,data:{newRange:_0x499523}}of _0x3a6126['model']['document']['differ']['getChangedMarkers']()){const {group:_0x101473,id:_0x53953a}=he(_0x4eb84e);if('comment'!==_0x101473)continue;const _0x44f704=_0x1fa192['getCommentThread'](_0x53953a),_0x2e5adf=this['hasMarkerForId'](_0x53953a);_0x44f704&&(!_0x44f704['_hasTargetInContent']&&_0x499523&&_0x3a6126['editing']['view']['once']('render',()=>{const _0x2f7843=_0x3a6126['plugins']['get'](N),_0x1f2739=_0x1fa192['_threadToController']['get'](_0x44f704)['view'];_0x2f7843['getByInnerView'](_0x1f2739)['refreshVisibility']();},{'priority':'low'}),_0x44f704['_hasTargetInContent']=_0x2e5adf||!!_0x499523),_0x499523||(_0x300f7f['add'](_0x4eb84e),_0x4d2b77['delete'](_0x4eb84e));}if(_0x243c08['isLocal'])for(const _0x141cb4 of _0x300f7f){const {id:_0x37eb29}=he(_0x141cb4),_0x59d51c=_0x1fa192['getCommentThread'](_0x37eb29),_0x1e9781=this['hasMarkerForId'](_0x37eb29);_0x4d2b77['delete'](_0x141cb4),!_0x59d51c||_0x1e9781||_0x59d51c['unlinkedAt']||_0x59d51c['setUnlinkedAt'](new Date());}_0x300f7f['clear']();});}['_getTargetForId'](_0x2c46cd){const _0x4fd902=this['editor'],_0x3493c8=this['getAllMarkersForId'](_0x2c46cd);return et(_0x4fd902['editing'],_0x3493c8);}['_getTextContext'](_0x36a1d2){const _0x407afb=this['getAllMarkersForId'](_0x36a1d2);let _0x46f7a5='',_0x1f1f94=!0x1;for(const _0x3bdf67 of _0x407afb){const _0x13df51=_0x3bdf67['getRange']();for(const _0x485994 of Array['from'](_0x13df51['getItems']()))_0x485994['is']('$textProxy')?(_0x46f7a5&&_0x1f1f94&&(_0x46f7a5+='\x20',_0x1f1f94=!0x1),_0x46f7a5+=_0x485994['data']):_0x1f1f94=!0x0;_0x1f1f94=!0x0;}return _0x46f7a5['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x4550c7,_0x1f3119){const _0x2238a2=this['editor'],_0x5cd06c=_0x2238a2['plugins']['get'](o);let _0x4aeac2=_0x5cd06c['getCommentThread'](_0x1f3119);const _0x4bee41=_0x2238a2['config']['get']('collaboration.channelId'),_0x44d095=_0x2238a2['plugins']['get'](P);if(_0x4aeac2&&(_0x4aeac2['unlinkedAt']&&_0x4aeac2['setUnlinkedAt'](null),_0x4aeac2['isAttached']))return _0x4aeac2;return!this['getAllMarkersForId'](_0x1f3119)[0x0]['managedUsingOperations']?_0x2238a2['editing']['view']['once']('render',()=>{if(_0x5cd06c['getCommentThread'](_0x1f3119))return;const _0x154e10=_0x2238a2['plugins']['get'](N);_0x4aeac2=_0x5cd06c['openNewCommentThread']({'channelId':_0x4bee41,'threadId':_0x1f3119,'target':()=>this['_getTargetForId'](_0x1f3119),'context':{'type':'text','value':this['_getTextContext'](_0x1f3119)}});const _0x5162a3=_0x5cd06c['_threadToController']['get'](_0x4aeac2)['view'],_0x83a483=_0x154e10['getByInnerView'](_0x5162a3);_0x83a483&&_0x44d095['registerAnnotation'](_0x83a483);},{'priority':'low'}):_0x5cd06c['fetchCommentThread']({'channelId':_0x4bee41,'threadId':_0x1f3119})['then'](_0x32d435=>{if('destroyed'!==_0x2238a2['state']){if(_0x4aeac2=_0x32d435,_0x4aeac2&&!_0x4aeac2['isAttached']){const _0x5a0468=_0x4aeac2['attachTo'](()=>this['_getTargetForId'](_0x1f3119));_0x44d095['registerAnnotation'](_0x5a0468),_0x4aeac2['isResolved']&&this['_reconvertMarkers'](_0x1f3119);}else{if(!_0x4aeac2){const _0x15678a=this['getAllMarkersForId'](_0x1f3119);_0x2238a2['model']['change'](_0x3983d5=>{for(const _0x17a75d of _0x15678a)_0x3983d5['removeMarker'](_0x17a75d);});}}}}),_0x4aeac2;}['_handleThreadMarker'](_0x3fb0bc,_0x37b8cc){const _0x548ae2=this['_attachMarkerToThread'](_0x3fb0bc,_0x37b8cc);_0x548ae2&&!_0x548ae2['context']&&_0x548ae2['setContext']({'type':'text','value':this['_getTextContext'](_0x37b8cc)});}['_initAriaMarkerChangeAnnouncements'](){const _0x4aaede=this['editor'];ot(_0x4aaede['model'],({left:_0x2c1a54,entered:_0x4e543a})=>{for(const _0x3523e6 of _0x2c1a54)if(dt(_0x3523e6)){_0x4aaede['ui']['ariaLiveAnnouncer']['announce'](S(_0x4aaede['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x19451f of _0x4e543a)if(dt(_0x19451f)){_0x4aaede['ui']['ariaLiveAnnouncer']['announce'](S(_0x4aaede['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x5db1f7)));break;}});}}function ut(_0x1c479a,_0x3294c5){return _0x3294c5?_0x1c479a+':'+_0x3294c5:_0x1c479a;}function he(_0x381851){const _0x2534eb=_0x381851['split'](':');return{'group':_0x2534eb[0x0],'id':_0x2534eb[0x1],'part':_0x2534eb[0x2]};}function ft(_0x2c2e5c,_0x533245){const _0x2fa055=_0x533245['schema'],_0x513643=_0x533245['createRange'](_0x2c2e5c['start']);for(const _0x3ae6f4 of _0x2c2e5c['getWalker']()){const {type:_0x34602b,item:_0x40f863,nextPosition:_0x285f91}=_0x3ae6f4;if('text'===_0x34602b||_0x2fa055['isObject'](_0x40f863)){const _0x37bdb5=_0x533245['createPositionBefore'](_0x40f863);_0x513643['isCollapsed']&&(_0x513643['start']=_0x37bdb5),_0x513643['end']=_0x285f91;}}return _0x513643;}function dt(_0x1bf83e){return'comment'===he(_0x1bf83e['name'])['group'];}var xt='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M4\x201.5h12A3.5\x203.5\x200\x200\x201\x2019.5\x205v8l-.005.192a3.5\x203.5\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.371-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.271-2.63l-.062-.07H4A3.5\x203.5\x200\x200\x201\x20.5\x2013V5A3.5\x203.5\x200\x200\x201\x204\x201.5ZM4\x203a2\x202\x200\x200\x200-2\x202v8a2\x202\x200\x200\x200\x202\x202h6.924a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L14.962\x2015H16a2\x202\x200\x200\x200\x202-2V5a2\x202\x200\x200\x200-2-2H4Z\x22/><path\x20d=\x22M9.75\x205a.75.75\x200\x200\x200-.75.75v2.5H6.5a.75.75\x200\x200\x200\x200\x201.5H9v2.5a.75.75\x200\x200\x200\x201.5\x200v-2.5H13a.75.75\x200\x200\x200\x200-1.5h-2.5v-2.5A.75.75\x200\x200\x200\x209.75\x205Z\x22/></svg>\x0a';class i extends _0x407575{['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 _0x39a143=this['editor'],_0x9d9bf5=_0x39a143['plugins']['get'](o),_0x3a48a3=_0x39a143['plugins']['get'](r),_0x3edfb3=_0x39a143['plugins']['get'](N),_0x4df97b=_0x39a143['plugins']['get'](P);_0x39a143['ui']['componentFactory']['add']('comment',()=>{const _0x422f08=this['_createUIButton'](_0x50e81f);return _0x422f08['tooltip']=!0x0,_0x422f08;}),_0x39a143['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x23f078)),_0x4df97b['addSourceCollector'](()=>{const _0x32d552=[];for(const [_0x3e9ff0,_0x291828]of _0x9d9bf5['_threadToController']){const _0x44bd47=_0x3a48a3['getAllMarkersForId'](_0x3e9ff0['id']),_0x225828=_0x44bd47['map'](_0x10296d=>_0x10296d['getRange']());_0x44bd47['length']>0x0&&_0x32d552['push']([_0x291828['view'],_0x225828]);}return _0x32d552;}),this['listenTo'](_0x3edfb3,'change:activeAnnotations',(_0x14917f,_0x3b2c6f,_0x476881)=>{const _0x5d943c=Array['from'](_0x476881)['map'](_0x6f7c0f=>_0x6f7c0f['innerView'])['find'](_0x2f4167=>_0x9d9bf5['_viewToController']['has'](_0x2f4167));if(!_0x5d943c)return void(_0x3a48a3['activeMarker']=null);const _0x50dfb4=_0x9d9bf5['_viewToController']['get'](_0x5d943c)['model']['id'],_0x96db2e='comment:'+_0x50dfb4;_0x50dfb4&&_0x3a48a3['hasMarkerForId'](_0x50dfb4)?_0x3a48a3['activeMarker']=_0x96db2e:_0x3a48a3['activeMarker']&&(_0x3a48a3['activeMarker']=null);}),this['listenTo'](_0x9d9bf5,'removeCommentThread',(_0x404a6c,{threadId:_0x5d4d11,isFromAdapter:_0x552ee2})=>{!_0x552ee2&&_0x39a143['ui']['focusTracker']['isFocused']&&_0x3a48a3['hasMarkerForId'](_0x5d4d11)&&_0x39a143['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x9d9bf5,'addComment',(_0x3b04c5,{threadId:_0x21f242,isFromAdapter:_0x39de0a})=>{if(_0x39de0a||!_0x3a48a3['hasMarkerForId'](_0x21f242)||!_0x9d9bf5['hasCommentThread'](_0x21f242))return;0x1===_0x9d9bf5['getCommentThread'](_0x21f242)['length']&&(_0x39a143['editing']['view']['focus'](),_0x3b04c5['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4f0701=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3db0d5;for(const _0xcca4ca in _0x4f0701){const _0x24fc35=_0xcca4ca,_0x2d1bd0=_0x4f0701[_0x24fc35];if('commentsLicenseKeyValid'==_0x2d1bd0||'commentsLicenseKeyInvalid'==_0x2d1bd0||'commentsLicenseKeyExpired'==_0x2d1bd0||'commentsLicenseKeyDomainLimit'==_0x2d1bd0||'commentsLicenseKeyNotAllowed'==_0x2d1bd0||'commentsLicenseKeyEvaluationLimit'==_0x2d1bd0||'commentsLicenseKeyTrialLimit'==_0x2d1bd0||'commentsLicenseKeyDevelopmentLimit'==_0x2d1bd0||'commentsLicenseKeyUsageLimit'==_0x2d1bd0){delete _0x4f0701[_0x24fc35],_0x3db0d5=_0x2d1bd0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x3db0d5&&_0x4f0701['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x3db0d5&&_0x4f0701['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x3db0d5&&_0x4f0701['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x3db0d5&&_0x4f0701['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x3db0d5&&_0x4f0701['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x3db0d5&&_0x4f0701['_showLicenseError']('trialLimit'),'commentsLicenseKeyDevelopmentLimit'==_0x3db0d5&&_0x4f0701['_showLicenseError']('developmentLimit'),'commentsLicenseKeyUsageLimit'==_0x3db0d5&&_0x4f0701['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x2d15c5){const _0x2eef95=this['editor'],_0xb54776=new _0x2d15c5(_0x2eef95['locale']),_0x372084=_0x2eef95['commands']['get']('addCommentThread');return _0xb54776['set']({'label':S(_0x2eef95['locale'],'Comment'),'icon':xt}),_0xb54776['bind']('isEnabled')['to'](_0x372084),this['listenTo'](_0xb54776,'execute',()=>_0x372084['execute']()),_0xb54776;}}class s extends _0x407575{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x3bb804){super(_0x3bb804),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x3dc419,_0x4626e0,_0x5ab38c)=>{_0x5ab38c?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x272d75,_0x486818]of this['editor']['commands'])_0x486818['affectsData']&&'addCommentThread'!==_0x272d75&&_0x486818['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0x5e424a=this['editor']['editing']['view']['document'];this['listenTo'](_0x5e424a,'cut',_0xc50827=>_0xc50827['stop'](),{'priority':'highest'}),this['listenTo'](_0x5e424a,'clipboardInput',_0x5c7d24=>_0x5c7d24['stop'](),{'priority':'highest'}),this['listenTo'](_0x5e424a,'delete',_0x26c3fd=>_0x26c3fd['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x24d637,_0x12caf5]of this['editor']['commands'])_0x12caf5['affectsData']&&'addCommentThread'!==_0x24d637&&_0x12caf5['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x13541d{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x478373){super(_0x478373),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x369563=this['context']['plugins']['get'](N);this['listenTo'](_0x369563,'_activateAnnotation',(_0x4a7b6a,_0x7e2409)=>{for(const _0x193bcd of this['activeUIs']){const _0x265a16=this['_uis']['get'](_0x193bcd);(0x0,this['_uisData']['get'](_0x193bcd)['filter'])(_0x7e2409)&&_0x265a16['setActiveAnnotation'](_0x7e2409);}}),this['listenTo'](_0x369563,'_deactivateAllAnnotations',()=>{for(const _0x292b99 of this['activeUIs']){this['_uis']['get'](_0x292b99)['setActiveAnnotation'](null);}}),this['listenTo'](_0x369563['_visibleAnnotations'],'add',(_0x54a47a,_0x38d905)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x38d905);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x3a5e23){return this['activeUIs']['has'](_0x3a5e23);}['activate'](_0x505bfa,_0x463401=()=>!0x0){const _0x5a5505=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x505bfa))throw new _0x59aed7('annotationsuis-missing-ui',this,{'uiName':_0x505bfa});this['isActive'](_0x505bfa)&&this['deactivate'](_0x505bfa),this['activeUIs']['add'](_0x505bfa);const _0x4336a5=new x();!function({source:_0x4412a6,target:_0x99ab6c,filter:_0x357719}){for(const _0x59e6c6 of _0x4412a6)_0x357719(_0x59e6c6)&&_0x99ab6c['add'](_0x59e6c6);_0x99ab6c['listenTo'](_0x4412a6,'add',(_0x26fa23,_0x50b4df)=>{_0x357719(_0x50b4df)&&_0x99ab6c['add'](_0x50b4df);}),_0x99ab6c['listenTo'](_0x4412a6,'remove',(_0x1fe413,_0x2f74f6)=>{_0x99ab6c['has'](_0x2f74f6)&&_0x99ab6c['remove'](_0x2f74f6);});}({'source':_0x5a5505['_visibleAnnotations'],'target':_0x4336a5,'filter':_0x463401}),this['_uisData']['set'](_0x505bfa,{'collection':_0x4336a5,'filter':_0x463401});const _0x55b733=this['_uis']['get'](_0x505bfa);_0x55b733['attach'](_0x4336a5),this['listenTo'](_0x55b733,'change:activeAnnotation',(_0x28ef7f,_0x88db25,_0x2397b0,_0x1868b0)=>{_0x1868b0&&_0x5a5505['_removeActiveAnnotation'](_0x1868b0),_0x2397b0&&_0x5a5505['_addActiveAnnotation'](_0x2397b0);});}['deactivate'](_0x57474d){if(this['activeUIs']['delete'](_0x57474d),!this['_uis']['has'](_0x57474d))throw new _0x59aed7('annotationsuis-missing-ui',this,{'uiName':_0x57474d});const _0x33fb03=this['_uis']['get'](_0x57474d);_0x33fb03['detach'](),this['stopListening'](_0x33fb03),this['_uisData']['get'](_0x57474d)['collection']['destroy'](),this['_uisData']['delete'](_0x57474d);}['switchTo'](_0x273436){if(!this['_uis']['has'](_0x273436))throw new _0x59aed7('annotationsuis-missing-ui',this,{'uiName':_0x273436});const _0x311a20=this['context']['plugins']['get'](N),_0x515f5b=Array['from'](_0x311a20['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x273436);const _0x47f234=this['_uis']['get'](_0x273436);_0x47f234['setActiveAnnotation'](_0x515f5b),_0x47f234['_setSelectedAnnotations']&&_0x515f5b&&_0x47f234['_setSelectedAnnotations']([_0x515f5b]);}['deactivateAll'](){for(const _0xff1d46 of this['activeUIs'])this['deactivate'](_0xff1d46);}['register'](_0x164e35,_0x33913c){if(this['_uis']['has'](_0x164e35))throw new _0x59aed7('annotationsuis-register-already-registered');if('function'!=typeof _0x33913c['attach']||'function'!=typeof _0x33913c['detach']||'function'!=typeof _0x33913c['setActiveAnnotation'])throw new _0x59aed7('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x164e35,_0x33913c);}['refilterAnnotations'](){const _0x3e13a5=this['context']['plugins']['get'](N)['collection'],_0xe984ff=new Map(),_0x4ab9d6=Array['from'](this['activeUIs']);for(const _0x398234 of this['activeUIs']){const _0x14a974=this['_uisData']['get'](_0x398234)['collection'];for(const _0x287814 of _0x14a974)_0xe984ff['set'](_0x287814,_0x398234);}for(const _0x5f28ee of _0x3e13a5){const _0x5cf288=_0xe984ff['get'](_0x5f28ee);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5f28ee);const _0x12456f=_0x4ab9d6['find'](_0x2d5b0d=>this['_uisData']['get'](_0x2d5b0d)['filter'](_0x5f28ee));_0x5cf288!==_0x12456f&&(_0x5cf288&&this['_uisData']['get'](_0x5cf288)['collection']['remove'](_0x5f28ee),_0x12456f&&this['_uisData']['get'](_0x12456f)['collection']['add'](_0x5f28ee));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4602f7){const _0x50e509=[];for(const _0x154a3b of this['activeUIs']){(0x0,this['_uisData']['get'](_0x154a3b)['filter'])(_0x4602f7)&&_0x50e509['push'](_0x154a3b);}if(_0x50e509['length']>0x1)throw new _0x59aed7('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x50e509,'annotationType':_0x4602f7['type']});}}const ae=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x1d650f){super(_0x1d650f);const _0x524366=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 _0x3d5a2c(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x524366['to']('class')],'style':{'minHeight':_0x524366['to']('minHeight',_0x262e32=>'number'==typeof _0x262e32?ae(_0x262e32+0xa):null)},'dir':_0x1d650f['uiLanguageDirection'],'role':'application','aria-label':S(_0x1d650f,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x1d650f,'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',_0x37518a=>{this['_updateItemPositionInFocusables'](_0x37518a['source']);}),this['list']['forEach'](_0x3dae94=>{this['focusTracker']['add'](_0x3dae94['element']),this['_updateItemPositionInFocusables'](_0x3dae94);}),this['list']['on']('change',(_0x376de1,_0x19f4d8)=>{for(const _0x112531 of _0x19f4d8['removed'])this['focusTracker']['remove'](_0x112531['element']),this['focusables']['remove'](_0x112531);for(const _0x5322c6 of _0x19f4d8['added'])this['focusTracker']['add'](_0x5322c6['element']),this['_updateItemPositionInFocusables'](_0x5322c6);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x4a048d){const _0x3bd575=this['focusables']['getIndex'](_0x4a048d);let _0x5f1c9a,_0x3a4154;for(const _0x25a3ab of this['focusables'])if(_0x4a048d['top']<_0x25a3ab['top']){_0x5f1c9a=_0x25a3ab;break;}if(_0x3a4154=_0x5f1c9a?this['focusables']['getIndex'](_0x5f1c9a):this['focusables']['length'],-0x1!==_0x3bd575){if(_0x3bd575===_0x3a4154-0x1)return;this['focusables']['remove'](_0x4a048d),_0x3a4154=_0x5f1c9a?this['focusables']['getIndex'](_0x5f1c9a):this['focusables']['length'];}this['focusables']['add'](_0x4a048d,_0x3a4154);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x2d4901){super(_0x2d4901),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x475d41,_0x214b3a)=>_0x475d41+_0x214b3a),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Dt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x51a48b=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x51a48b['to']('isAnimationDisabled',_0x466268=>_0x466268?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x51a48b['to']('top',_0x5ea6ca=>qt(_0x5ea6ca))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x2ea484=this['element']['clientHeight'];_0x2ea484&&(this['height']=_0x2ea484);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x13541d{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5da9eb){super(_0x5da9eb),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 _0x47f431=this['context']['config']['get']('sidebar.container');_0x47f431&&this['setContainer'](_0x47f431);}['setContainer'](_0x4a878e){if(!y(_0x4a878e))throw new _0x59aed7('sidebar-setcontainer-invalid-element');this['container']=_0x4a878e;}['_attachToContainer']({viewClass:_0x546445='',spaceBetweenItems:_0x48fce6=0x19}={}){if(!y(this['container']))throw new _0x59aed7('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x546445,this['_spaceBetweenItems']=_0x48fce6;}['rearrange']({removedAnnotation:_0x1bd9d0,previousAnnotation:_0x1096ba,nextAnnotation:_0x194c99}){const _0x9b9f24=this['getSidebarItemView'](_0x1bd9d0);this['view']['list']['remove'](_0x9b9f24),this['_destroySidebarItemView'](_0x1bd9d0),_0x1096ba&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x1096ba)),_0x194c99&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x194c99)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x43fee3,activatedAnnotation:_0x41c555,disableAnimationOnActivatedAnnotation:_0x39516c}){if(this['_activeAnnotation']=_0x41c555,_0x43fee3){_0x43fee3['isActive']=!0x1;const _0xc5684f=this['getSidebarItemView'](_0x43fee3);_0xc5684f&&_0x39516c&&(_0xc5684f['isAnimationDisabled']=!0x1);}if(_0x41c555){const _0x360321=this['getSidebarItemView'](_0x41c555);_0x360321&&(_0x41c555['isActive']=!0x0,_0x39516c&&(_0x360321['isAnimationDisabled']=!0x0,_0x360321['top']+=0x1),this['_alignToTargetRect'](_0x360321));}}['_detachFromContainer'](_0x5ad807){if(this['view']['element']['remove'](),_0x5ad807){for(const _0x223865 of _0x5ad807)this['_destroySidebarItemView'](_0x223865);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x82c26b,_0x56307e){_0x56307e||(_0x56307e=_0x82c26b['view']);const _0x34d60a=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x34d60a,_0x82c26b),this['_annotationToSidebarItemView']['set'](_0x82c26b,_0x34d60a),_0x34d60a['content']['add'](_0x56307e),this['listenTo'](_0x82c26b['view'],'change:targetRect',(_0x4cc0a6,_0x1047ef,_0x427127)=>{const _0x2247c9=this['_getTargetTop'](_0x82c26b,_0x427127);_0x34d60a['_targetTop']!=_0x2247c9&&(_0x34d60a['_targetTop']=_0x2247c9,this['_setItemTop'](_0x34d60a,_0x2247c9));}),this['listenTo'](_0x34d60a,'change:top',()=>{this['_recalculate'](_0x34d60a,'top');}),this['listenTo'](_0x34d60a,'change:bottom',()=>{this['_recalculate'](_0x34d60a,'bottom');}),this['_alignToTargetRect'](_0x34d60a);const _0x2c4179=this['_getItemBefore'](_0x34d60a);if(_0x2c4179)this['_alignAfterItem'](_0x2c4179,_0x34d60a)||this['_alignToTargetRect'](_0x34d60a);else this['_alignToTargetRect'](_0x34d60a);return this['_updateLastItem'](),this['view']['list']['add'](_0x34d60a),_0x34d60a;}['_alignForTopChange'](_0x162741){if(!_0x162741['content']['length'])return;const _0x123fa4=this['_getItemBefore'](_0x162741);if(!_0x123fa4)return;const _0x5b4c65=this['_sidebarItemViewToAnnotation']['get'](_0x123fa4),_0x16c77e=this['_activeAnnotation'];_0x16c77e&&_0x16c77e===_0x5b4c65?this['_alignAfterItem'](_0x123fa4,_0x162741):this['_alignBeforeItem'](_0x162741,_0x123fa4);}['_alignForBottomChange'](_0x561343){if(!_0x561343['content']['length'])return;const _0x33413d=this['_getItemAfter'](_0x561343);if(!_0x33413d)return;const _0x4d9634=this['_sidebarItemViewToAnnotation']['get'](_0x33413d),_0xfa71bf=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x1e4e60=this['_activeAnnotation'];_0x1e4e60&&_0x1e4e60===_0x4d9634&&_0xfa71bf?(this['_alignBeforeItem'](_0x33413d,_0x561343),this['_alignAfterItem'](_0x561343,_0x33413d)):_0x1e4e60&&_0x1e4e60===_0x4d9634?this['_alignBeforeItem'](_0x33413d,_0x561343):this['_alignAfterItem'](_0x561343,_0x33413d);}['_recalculate'](_0x307d6f,_0x39709e){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x634ff7,changedProp:_0x1f6d3d}of this['_recalculateBuffer'])'top'===_0x1f6d3d?this['_alignForTopChange'](_0x634ff7):this['_alignForBottomChange'](_0x634ff7);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x307d6f,'changedProp':_0x39709e});}['getSidebarItemView'](_0x9c8157){return this['_annotationToSidebarItemView']['get'](_0x9c8157);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x5051f8){const _0x442a3f=this['getSidebarItemView'](_0x5051f8);this['stopListening'](_0x442a3f),this['stopListening'](_0x5051f8['view']),_0x442a3f['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x5051f8),this['_sidebarItemViewToAnnotation']['delete'](_0x442a3f);}['_createSidebarView'](){const _0x36a217=new V(this['context']['locale']);return _0x36a217['render'](),this['on']('change:_lastItem',(_0x26dda2,_0x20c004,_0x2de70f,_0x1927f8)=>{_0x1927f8&&_0x36a217['unbind']('minHeight'),_0x2de70f?_0x36a217['bind']('minHeight')['to'](_0x2de70f,'bottom'):_0x36a217['minHeight']=null;}),_0x36a217;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x2eb64d){const _0x2dba83=this['_sidebarItemViewToAnnotation']['get'](_0x2eb64d),_0x32b922=_0x2dba83&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x2dba83)-0x1);return _0x32b922&&this['getSidebarItemView'](_0x32b922)||null;}['_getItemAfter'](_0x1beb4c){const _0x2529b5=this['_sidebarItemViewToAnnotation']['get'](_0x1beb4c),_0x360b85=_0x2529b5&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x2529b5)+0x1);return _0x360b85&&this['getSidebarItemView'](_0x360b85)||null;}['_alignBeforeItem'](_0x7a778c,_0x18c068){_0x7a778c['updateHeight']();const _0x2066a1=R(_0x18c068['bottom']+this['_spaceBetweenItems'],_0x7a778c['top']);return!!_0x2066a1&&(this['_setItemTop'](_0x18c068,_0x18c068['top']-_0x2066a1),!0x0);}['_alignAfterItem'](_0x38e8e6,_0x4b0c1e){_0x38e8e6['updateHeight']();const _0x3ef605=R(_0x38e8e6['bottom']+this['_spaceBetweenItems'],_0x4b0c1e['top']);return!!_0x3ef605&&(this['_setItemTop'](_0x4b0c1e,_0x4b0c1e['top']+_0x3ef605,!0x1),!0x0);}['_alignToTargetRect'](_0x1c3e68){const _0x2030a0=this['_sidebarItemViewToAnnotation']['get'](_0x1c3e68);if(!_0x2030a0||!_0x2030a0['target']||!_0x2030a0['targetRect'])return;const _0x3ac824=this['_getTargetTop'](_0x2030a0,_0x2030a0['targetRect']);this['_setItemTop'](_0x1c3e68,_0x3ac824);}['_getTargetTop'](_0x47b2e6,_0x244405){if(null===_0x244405)return 0x0;if(_0x47b2e6['target']instanceof _0x2c8594)return _0x244405['top'];{const _0x14fb82=new _0x2c8594(this['view']['element'])['top'];return _0x244405['top']-_0x14fb82;}}['_setItemTop'](_0x47437b,_0x4f29c8,_0x4b9b92=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x4b9b92&&(_0x4f29c8=Math['max'](_0x4f29c8,this['_getMaxAvailableTop'](_0x47437b))),_0x47437b['top']=_0x4f29c8;}['_getMaxAvailableTop'](_0xd72853){let _0x3d9d73=this['_getItemBefore'](_0xd72853),_0x297fbc=0x0;for(;_0x3d9d73;)_0x3d9d73['updateHeight'](),_0x297fbc+=this['_spaceBetweenItems']+_0x3d9d73['height'],_0x3d9d73=this['_getItemBefore'](_0x3d9d73);return _0x297fbc;}}function R(_0x1552b8,_0x2a083d){return Math['max'](_0x1552b8-_0x2a083d,0x0);}function y(_0x3b94fc){return null!==_0x3b94fc&&'object'==typeof _0x3b94fc&&0x1===_0x3b94fc['nodeType'];}class e extends _0x13541d{['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(_0x44f44a){super(_0x44f44a),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x42f184(),this['_refreshPositioningDebounced']=_0x31e186(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x2b09a6=this['context']['plugins']['get'](M),_0x3fdefc=this['context']['plugins']['get'](z);_0x2b09a6['register']('wideSidebar',this),_0x3fdefc['container']&&_0x2b09a6['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x4cc959){if(_0x4cc959===this['activeAnnotation'])return;const _0x579412=this['context']['plugins']['get'](z);_0x579412['_activeAnnotation']=_0x4cc959;const _0x5082d7=this['activeAnnotation'];this['activeAnnotation']=_0x4cc959,_0x579412['refresh']({'blurredAnnotation':_0x5082d7,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x23116e){this['annotations']=_0x23116e;const _0x39f666=this['context']['plugins']['get'](z);if(_0x39f666['_annotations']=_0x23116e,this['isAttached'])throw new _0x59aed7('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x39f666,'set:container',()=>{this['detach'](),this['listenTo'](_0x39f666,'change:container',_0x4523bb=>{_0x4523bb['off'](),this['attach'](_0x23116e);});}),_0x39f666['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x2caa55=_0x1d2701=>{_0x1d2701['updateTargetRect'](),_0x39f666['addAnnotation'](_0x1d2701);};for(const _0x5346e8 of _0x23116e)_0x2caa55(_0x5346e8);this['listenTo'](_0x23116e,'add',(_0x4fefac,_0x349ac4)=>{_0x2caa55(_0x349ac4);}),this['listenTo'](_0x23116e,'remove',(_0x457096,_0x5b931e,_0x14e38f)=>{_0x39f666['rearrange']({'removedAnnotation':_0x5b931e,'previousAnnotation':_0x23116e['get'](_0x14e38f-0x1),'nextAnnotation':_0x23116e['get'](_0x14e38f+0x1)}),_0x5b931e===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x23116e,'focus',(_0x24f00c,_0x316a54)=>{this['setActiveAnnotation'](_0x316a54);}),this['listenTo'](_0x23116e,'blur',()=>{this['setActiveAnnotation'](null);});const _0x349bc4=this['context']instanceof _0x578923?this['context']['editors']:new _0x42f184([this['context']]);for(const _0x5d5e1d of _0x349bc4)this['_integrateWithEditorAnnotations'](_0x5d5e1d);this['listenTo'](_0x349bc4,'add',(_0x42aabd,_0xc4ac55)=>{this['listenTo'](_0xc4ac55,'ready',()=>{this['_integrateWithEditorAnnotations'](_0xc4ac55);});}),this['listenTo'](_0x349bc4,'remove',(_0x199a23,_0x56629c)=>{_0x56629c['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x56629c['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x59aed7('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x2cbb3d=this['context']['plugins']['get'](z);_0x2cbb3d['_detachFromContainer'](this['annotations']),this['stopListening'](_0x2cbb3d),this['stopListening'](this['annotations']),this['context']instanceof _0x578923&&this['stopListening'](this['context']['editors']);for(const _0x618d78 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x618d78);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x218f08){if(!_0x218f08['plugins']['has']('EditorAnnotations'))return;const _0x587f01=_0x218f08['plugins']['get']('EditorAnnotations'),_0x5a7c86=()=>{const _0x47433d=_0x587f01['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x47433d[0x0]||null);};this['listenTo'](_0x587f01,'refresh',_0x5a7c86),this['listenTo'](_0x587f01,'blur',(_0x49f02f,{isAnnotationTracked:_0x56ca0b})=>{this['activeAnnotation']&&_0x56ca0b(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x587f01,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x561344=>{_0x587f01['hasDomSelection']()&&(_0x5a7c86(),_0x561344['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x587f01);}['_destroyEditorAnnotationsIntegration'](_0xa5db9c){this['stopListening'](_0xa5db9c),this['_editorAnnotations']['remove'](_0xa5db9c);}}class D extends _0x50e81f{['counterView'];constructor(_0x32c093){super(_0x32c093);const _0x1668ae=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x389b97,_0x30f46a)=>_0x389b97?'...':_0x30f46a['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',_0x1668ae['to']('annotationType',_0x1ea28a=>'ck-annotation-counter__badge--'+_0x1ea28a),_0x1668ae['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x1668ae['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x13541d{['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(_0x5c988f){super(_0x5c988f),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0xd7308b),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x42f184(),this['_refreshPositioningDebounced']=_0x31e186(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x89f2ad(this['context']['locale']),this['balloonPanelView']=new _0x4ead26(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x2676e7){this['annotations']=_0x2676e7;const _0x462b3d=this['context']['plugins']['get'](z),_0x577679=this['balloonPanelView'];if(_0x462b3d['_annotations']=_0x2676e7,this['isAttached'])throw new _0x59aed7('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x462b3d,'set:container',()=>{this['detach'](),this['listenTo'](_0x462b3d,'change:container',_0x624f71=>{_0x624f71['off'](),this['attach'](_0x2676e7);});}),_0x462b3d['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x273829=_0x3455ff=>{const _0x3d800a=new D(this['context']['locale']);_0x462b3d['addAnnotation'](_0x3455ff,_0x3d800a),this['_annotationToNarrowView']['set'](_0x3455ff,_0x3d800a),_0x3d800a['bind']('isDirty','annotationType','number')['to'](_0x3455ff['view'],'isDirty','type','length'),_0x3d800a['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x577679['content']['first']!==_0x3455ff['view']?(this['_showBalloon'](_0x3455ff),_0x3455ff['view']['element']['focus'](),this['setActiveAnnotation'](_0x3455ff)):this['setActiveAnnotation'](null);});};for(const _0x146f1d of _0x2676e7)_0x273829(_0x146f1d);this['listenTo'](_0x2676e7,'add',(_0x2fc2ba,_0x430156)=>{_0x273829(_0x430156);}),this['listenTo'](_0x2676e7,'remove',(_0x3cfa84,_0x72aea0,_0x5644b2)=>{this['_annotationToNarrowView']['get'](_0x72aea0)['destroy'](),this['_annotationToNarrowView']['delete'](_0x72aea0),_0x462b3d['rearrange']({'removedAnnotation':_0x72aea0,'previousAnnotation':_0x2676e7['get'](_0x5644b2-0x1),'nextAnnotation':_0x2676e7['get'](_0x5644b2+0x1)}),_0x72aea0===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x2676e7,'focus',(_0x2c5691,_0x16add9)=>{this['setActiveAnnotation'](_0x16add9);}),this['listenTo'](_0x2676e7,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x1d2b44,_0x41f6c8)=>{_0x41f6c8['keyCode']===_0x91a8de['esc']&&_0x577679['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x577679['content']['first']),this['_hideBalloon'](),_0x41f6c8['stopPropagation'](),_0x41f6c8['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x26f485,_0x427545)=>{const _0x2b4b27=_0x427545['target'];_0x577679['isVisible']&&_0x577679['element']['contains'](_0x2b4b27)||_0x462b3d['view']['element']['contains'](_0x2b4b27)||_0x26f485['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x3544d8=>_0x3544d8['contains'](_0x2b4b27))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x1ac150=this['context']instanceof _0x578923?this['context']['editors']:new _0x42f184([this['context']]);for(const _0x50de3f of _0x1ac150)this['_integrateWithEditorAnnotations'](_0x50de3f);this['listenTo'](_0x1ac150,'add',(_0x4deb64,_0x164c22)=>{this['listenTo'](_0x164c22,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x164c22);});}),this['listenTo'](_0x1ac150,'remove',(_0x19b54e,_0x852810)=>{_0x852810['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x852810['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x557d10){if(_0x557d10===this['activeAnnotation'])return;const _0x48664a=this['context']['plugins']['get'](z);if(_0x48664a['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x557d10,'disableAnimationOnActivatedAnnotation':!0x0}),_0x557d10)_0x48664a['getSidebarItemView'](_0x557d10)?this['_showBalloon'](_0x557d10):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x557d10;}['detach'](){if(!this['isAttached'])throw new _0x59aed7('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x255bfd=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x456274=>_0x456274['destroy']()),this['_annotationToNarrowView']['clear'](),_0x255bfd['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x578923&&this['stopListening'](this['context']['editors']);for(const _0x5f3814 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x5f3814);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'](_0x236fe1){if(!_0x236fe1['plugins']['has']('EditorAnnotations'))return;const _0xdd4a8a=_0x236fe1['plugins']['get']('EditorAnnotations'),_0xb768f3=this['context']['plugins']['get'](z),_0x4edb05=this['annotations'],_0x4a2322=this['balloonPanelView'],_0x56d11a=()=>{const _0x598d78=_0xdd4a8a['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x598d78),this['setActiveAnnotation'](_0x598d78[0x0]||null);};this['listenTo'](_0xdd4a8a,'refresh',_0x56d11a),this['listenTo'](_0xdd4a8a,'blur',(_0x1e72c6,{isAnnotationTracked:_0x2aa4b8})=>{this['activeAnnotation']&&_0x2aa4b8(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0xdd4a8a,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x4edb05,'blur',_0x19be88=>{_0xdd4a8a['hasDomSelection']()&&_0x19be88['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x576cb6,_0x145b4b)=>{const _0x198631=_0x145b4b['target'];_0x4a2322['isVisible']&&_0x4a2322['element']['contains'](_0x198631)||_0xb768f3['view']['element']['contains'](_0x198631)||this['activeAnnotation']&&_0xdd4a8a['hasDomSelection']()&&(_0x56d11a(),_0x576cb6['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0xdd4a8a);}['_destroyEditorAnnotationsIntegration'](_0x50f543){_0x50f543&&(this['stopListening'](_0x50f543),this['_editorAnnotations']['remove'](_0x50f543));}['_setSelectedAnnotations'](_0x557659){for(const _0x477ae0 of this['_selectedAnnotations'])_0x557659['includes'](_0x477ae0)||this['_manuallyClosedAnnotationViews']['delete'](_0x477ae0['view']);this['_selectedAnnotations']=_0x557659;}['_refreshPositioning'](){const _0x289ee3=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x289ee3['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x598475){if(this['_manuallyClosedAnnotationViews']['has'](_0x598475['view']))return;const _0x1dbeaa=this['balloonPanelView']['content']['first'];_0x1dbeaa!==_0x598475['view']?(_0x1dbeaa&&this['_detachListeners'](_0x1dbeaa),this['_attachListeners'](_0x598475['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x598475['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x473c44=this['balloonPanelView']['content']['first'],_0x23e08e=_0x473c44&&this['annotations']['getByView'](_0x473c44);if(!_0x23e08e||!this['_annotationToNarrowView']['has'](_0x23e08e))return;const _0x59e869=this['_annotationToNarrowView']['get'](_0x23e08e)['element'],_0x13b58c=(function(){const _0x24f605=_0x4ead26['defaultPositions'];return[_0x24f605['southArrowNorthEast'],_0x24f605['northArrowSouthEast'],_0x24f605['southArrowNorth'],_0x24f605['northArrowSouth'],_0x24f605['southArrowNorthWest'],_0x24f605['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x59e869,'positions':_0x13b58c});}['_hideBalloon'](){const _0x5f65ca=this['balloonPanelView'],_0x5bf5e2=_0x5f65ca['content']['first'];_0x5bf5e2&&(this['_detachListeners'](_0x5bf5e2),_0x5f65ca['unpin'](),_0x5f65ca['content']['clear']());}['_attachListeners'](_0x2a5ef0){this['listenTo'](_0x2a5ef0,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x2a5ef0,'Esc',(_0x467b1c,_0x15104a)=>{this['_manuallyClosedAnnotationViews']['add'](_0x2a5ef0),this['_hideBalloon'](),_0x15104a();});}['_detachListeners'](_0x59ba49){this['stopListening'](_0x59ba49);}}class c extends _0x407575{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x11b9fc,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a0689){super(_0x4a0689),_0x4a0689['editing']['view']['addObserver'](_0x35a9d6),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x4a0689['plugins']['get'](_0x11b9fc),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x59025e=this['editor']['plugins']['get'](M);_0x59025e['context']===this['editor']&&(_0x59025e['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x49b2f4,_0x409c71)=>{const _0x148923=this['_balloon'];if(this['isAttached']&&_0x148923['visibleView']){const _0x291160=this['annotations']['getByView'](_0x148923['visibleView']);_0x291160&&this['_closeAnnotation'](_0x291160),_0x409c71();}}));}['afterInit'](){const _0x586b96=this['editor']['plugins']['get'](M);_0x586b96['context']===this['editor']&&(_0x586b96['hasActive']()||_0x586b96['switchTo']('inline'));}['setActiveAnnotation'](_0x4c7cbe){_0x4c7cbe!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x4c7cbe&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x4c7cbe)&&this['_addAnnotationToBalloon'](_0x4c7cbe,!0x0),_0x4c7cbe['isActive']=!0x0),_0x4c7cbe||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x4c7cbe);}['attach'](_0x9a4477){this['annotations']=_0x9a4477;const _0x1d5d5c=this['editor']['plugins']['get'](M),_0x4c28af=this['_balloon'];if(this['isAttached'])throw new _0x59aed7('inlineannotations-attach-already-attached',this);if(_0x1d5d5c['context']!==this['editor'])throw new _0x59aed7('inlineannotations-not-allowed-with-context',this);const _0x2c7468=this['editor']['plugins']['get'](P);this['listenTo'](_0x2c7468,'refresh',()=>{const _0x28f640=_0x2c7468['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x54175f,_0x42a177;!this['_forceRefresh']&&(_0x54175f=_0x28f640,_0x42a177=this['_selectedAnnotations'],_0x54175f['length']===_0x42a177['length']&&_0x54175f['every'](_0x340d0d=>_0x42a177['includes'](_0x340d0d)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x28f640),this['setActiveAnnotation'](_0x28f640[0x0]||null));}),this['listenTo'](_0x2c7468,'blur',(_0x591f73,{isAnnotationTracked:_0x1189b5})=>{this['activeAnnotation']&&_0x1189b5(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x22955d,_0x2aaa5d,_0x515144)=>{_0x515144||this['setActiveAnnotation'](null);}),this['listenTo'](_0x9a4477,'remove',(_0x2496c9,_0x57f0b8)=>{this['_removeAnnotationFromBalloon'](_0x57f0b8),_0x57f0b8===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x4c28af,'change:visibleView',(_0x4a2ac2,_0x57eecb,_0x2a9648,_0x5187e9)=>{_0x5187e9&&this['stopListening'](_0x5187e9);const _0x1c3380=_0x9a4477['getByView'](_0x2a9648);_0x2a9648&&_0x1c3380&&(this['listenTo'](_0x2a9648,'change:height',()=>{_0x4c28af['updatePosition']();}),this['listenTo'](_0x2a9648,'Esc',()=>{this['_closeAnnotation'](_0x1c3380),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x1c3380&&this['setActiveAnnotation'](_0x1c3380));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x4c28af['visibleView']&&(_0x9a4477['getByView'](_0x4c28af['visibleView'])&&_0x4c28af['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 _0x59aed7('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x392798 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x392798);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x32e67c){for(const _0x4655d6 of this['_selectedAnnotations'])_0x32e67c['includes'](_0x4655d6)||this['_manuallyClosed']['delete'](_0x4655d6);for(const _0xa1e834 of this['annotations'])_0x32e67c['includes'](_0xa1e834)||this['_removeAnnotationFromBalloon'](_0xa1e834);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x253287 of _0x32e67c)this['_addAnnotationToBalloon'](_0x253287);}this['_selectedAnnotations']=_0x32e67c;}['_addAnnotationToBalloon'](_0x27c468,_0x381e7a=!0x1){this['_manuallyClosed']['has'](_0x27c468)||(this['_addedAnnotations']['has'](_0x27c468)||this['_balloon']['hasView'](_0x27c468['view'])||(this['_addedAnnotations']['add'](_0x27c468),this['_balloon']['add']({'stackId':_0x27c468['view']['id'],'view':_0x27c468['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x27c468)}})),_0x381e7a&&this['_balloon']['showStack'](_0x27c468['view']['id']));}['_getBalloonTargetForAnnotation'](_0x5fe276){const _0x2ee4e3=_0x5fe276['target'],_0x6af60e=this['editor']['editing']['view'],_0x2bb6a5=_0x6af60e['document']['selection']['getFirstRange'](),_0x52e864=_0x6af60e['domConverter']['viewRangeToDom'](_0x2bb6a5);if(_0x52e864['collapse'](!0x0),_0x2ee4e3){if(_0x2ee4e3 instanceof _0x2c8594)return _0x2ee4e3;let _0x680a5=[];for(const _0x23de15 of _0x2ee4e3)_0x680a5['push'](...(_0x353a0f=_0x23de15['getClientRects'](),Array['from'](_0x353a0f)['map'](DOMRect['fromRect'])));_0x680a5=function(_0x4f0389){const _0x4bd095=[];let _0x27b5c5=_0x4f0389[0x0];for(let _0x1913d0=0x1;_0x1913d0<_0x4f0389['length'];_0x1913d0++)b(_0x27b5c5,_0x4f0389[_0x1913d0])?_0x27b5c5['width']+=_0x4f0389[_0x1913d0]['width']:(_0x4bd095['push'](_0x27b5c5),_0x27b5c5=_0x4f0389[_0x1913d0]);return _0x4bd095['push'](_0x27b5c5),_0x4bd095;}(_0x680a5);const _0x34e2c4=_0x52e864['getBoundingClientRect']();return _0x680a5['find'](_0x5edeac=>_0x5edeac['top']<=_0x34e2c4['top']&&_0x5edeac['bottom']>=_0x34e2c4['bottom']&&_0x5edeac['left']<=_0x34e2c4['left']&&_0x5edeac['right']>=_0x34e2c4['right'])||_0x680a5[0x0];}var _0x353a0f;return _0x5fe276['targetRect']||_0x52e864;}['_removeAnnotationFromBalloon'](_0x774d03){this['_addedAnnotations']['has'](_0x774d03)&&this['_balloon']['hasView'](_0x774d03['view'])&&(this['_addedAnnotations']['delete'](_0x774d03),this['_balloon']['remove'](_0x774d03['view']));}['_closeAnnotation'](_0x4ac76b){this['_manuallyClosed']['add'](_0x4ac76b),this['_removeAnnotationFromBalloon'](_0x4ac76b);}}function b(_0x4cee02,_0x2c9dcc){return _0x4cee02['top']===_0x2c9dcc['top']&&_0x4cee02['bottom']===_0x2c9dcc['bottom']&&_0x4cee02['right']===_0x2c9dcc['left'];}var Z='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M14\x203.5A3.5\x203.5\x200\x200\x201\x2017.5\x207v6l-.005.192a3.501\x203.501\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.37-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.272-2.63l-.062-.07-4.729-.046a3.5\x203.5\x200\x200\x201-3.5-3.5v-6a3.5\x203.5\x200\x200\x201\x203.5-3.5L14\x203.5ZM3.5\x204.954a2\x202\x200\x200\x200-2\x202v6a2\x202\x200\x200\x200\x202\x202L8.924\x2015a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L12.962\x2015H14a2\x202\x200\x200\x200\x202-2V7a2\x202\x200\x200\x200-2-2L3.5\x204.954Z\x22/><path\x20d=\x22M16.5.5h-10a3.5\x203.5\x200\x200\x200-3.162\x202h1.84A2\x202\x200\x200\x201\x206.5\x202h10a2\x202\x200\x200\x201\x202\x202v8.873a3.502\x203.502\x200\x200\x200\x201.495-2.681L20\x2010V4A3.5\x203.5\x200\x200\x200\x2016.5.5Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M12.013\x207.453a.75.75\x200\x200\x201\x20.034\x201.06l-3.75\x204a.75.75\x200\x200\x201-1.045.048l-2.25-2a.75.75\x200\x200\x201\x20.996-1.122l1.704\x201.515\x203.25-3.467a.75.75\x200\x200\x201\x201.061-.034Z\x22/></svg>\x0a';class tt extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x3833f5,_0x25092d){super(_0x3833f5),this['set']('isEmpty',!_0x25092d['length']),this['focusTracker']=new _0x3d5a2c(),this['_annotationViews']=_0x25092d,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x25092d,'focusTracker':this['focusTracker']}),this['listenTo'](_0x25092d,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x25092d,'remove',(_0xd6f4e8,_0x4f9985)=>{_0x4f9985['isActive']&&this['focus'](),_0x25092d['length']||(this['isEmpty']=!0x0);});const _0x247a30=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x3833f5,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x25092d},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x247a30['if']('isEmpty','ck-hidden',_0x59e1f8=>!_0x59e1f8)]},'children':[{'text':S(_0x3833f5,'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 _0xcc1d47 of this['_annotationViews'])this['focusTracker']['add'](_0xcc1d47['element']);this['_annotationViews']['on']('change',(_0x4b5521,{added:_0x11d317,removed:_0x1ab351})=>{for(const _0x525db2 of _0x11d317)this['focusTracker']['add'](_0x525db2['element']);for(const _0x111063 of _0x1ab351)this['focusTracker']['remove'](_0x111063['element']);});}}class f extends _0x13541d{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x394314){super(_0x394314),this['archivedThreads']=new _0x42f184();}['init'](){const _0x3c5db0=this['context'],_0x46c15f=_0x3c5db0['plugins']['get'](o),_0x539fa6=_0x3c5db0['plugins']['get'](N);this['listenTo'](_0x46c15f,'addCommentThread',(_0x59354b,{threadId:_0x44321b})=>{const _0x122841=_0x46c15f['getCommentThread'](_0x44321b);_0x122841['archivedAt']&&this['archivedThreads']['add'](_0x122841,this['_calculatePosition'](_0x122841['archivedAt'])),this['listenTo'](_0x122841,'change:archivedAt',(_0x42b943,_0x3070ea,_0x414406)=>{_0x414406?this['archivedThreads']['has'](_0x122841)||this['archivedThreads']['add'](_0x122841,this['_calculatePosition'](_0x122841['archivedAt'])):this['archivedThreads']['has'](_0x122841)&&this['archivedThreads']['remove'](_0x122841);});}),this['listenTo'](_0x46c15f,'removeCommentThread',(_0x42edaf,{threadId:_0x46f1d1})=>{const _0xeb236b=_0x46c15f['getCommentThread'](_0x46f1d1);this['stopListening'](_0xeb236b),this['archivedThreads']['has'](_0xeb236b)&&this['archivedThreads']['remove'](_0xeb236b);},{'priority':'highest'}),this['listenTo'](_0x539fa6['collection'],'focus',(_0x293663,_0x46f21b)=>{_0x46f21b['isVisible']||(_0x46f21b['isActive']=!0x0,_0x539fa6['activate'](_0x46f21b));});}['_calculatePosition'](_0x57833a){const _0x79968c=[...this['archivedThreads']]['findIndex'](_0x478299=>_0x478299['archivedAt']<_0x57833a);return _0x79968c>-0x1?_0x79968c:this['archivedThreads']['length'];}}class a extends _0x407575{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x59526a];}constructor(_0x2e5a45){super(_0x2e5a45),this['annotationViews']=new _0x184ae2(),this['_pendingThreads']=[];}['init'](){const _0x192a85=this['editor'],_0x227f04=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x192a85['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x50e81f,!0x0)),_0x192a85['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x491da1=this['_createCommentsArchiveButton'](_0x23f078);return _0x491da1['set']({'role':'menuitemcheckbox'}),_0x491da1;});const _0x389ce2=_0x192a85['plugins']['get'](f),_0x2fcd47=_0x192a85['plugins']['get']('Annotations'),_0x5ed112=_0x192a85['plugins']['get']('CommentsRepository');this['listenTo'](_0x389ce2['archivedThreads'],'add',(_0x58145c,_0x367def)=>{const _0x325df7=_0x192a85['config']['get']('collaboration.channelId');if(!_0x325df7||_0x367def['channelId']===_0x325df7){const _0x243510=_0x5ed112['_threadToController']['get'](_0x367def);if(!_0x243510)return void this['_pendingThreads']['push'](_0x367def);const _0x67e811=this['_calculatePosition'](_0x367def['archivedAt']),_0x4f7f25=_0x2fcd47['getByInnerView'](_0x243510['view']);_0x4f7f25['isVisible']&&_0x2fcd47['_visibleAnnotations']['remove'](_0x4f7f25),this['annotationViews']['add'](_0x4f7f25['view'],_0x67e811);}}),this['listenTo'](_0x2fcd47['collection'],'add',(_0xb5017c,_0x1cdf58)=>{const _0x49b89e=this['_pendingThreads']['find'](_0x388e09=>{const _0xf084a4=_0x5ed112['_threadToController']['get'](_0x388e09);return _0xf084a4&&_0x1cdf58['innerView']===_0xf084a4['view'];});if(_0x49b89e){const _0x3dc036=this['_calculatePosition'](_0x49b89e['archivedAt']);this['annotationViews']['add'](_0x1cdf58['view'],_0x3dc036),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x49b89e),0x1);}}),this['listenTo'](_0x389ce2['archivedThreads'],'remove',(_0x3c8f01,_0x31083c)=>{const _0x1efe44=_0x192a85['config']['get']('collaboration.channelId');if(!_0x1efe44||_0x31083c['channelId']===_0x1efe44){const _0x1a7d10=_0x5ed112['_threadToController']['get'](_0x31083c),_0x421254=_0x2fcd47['getByInnerView'](_0x1a7d10['view']);this['annotationViews']['remove'](_0x421254['view']),this['stopListening'](_0x421254['focusableElements']);}}),this['listenTo'](_0x2fcd47['collection'],'add',(_0x41ab8d,_0x3ace02)=>{this['listenTo'](_0x3ace02,'escape',_0x227f04);}),this['listenTo'](_0x2fcd47['collection'],'remove',(_0x528f0a,_0x4be068)=>{this['stopListening'](_0x4be068,'escape',_0x227f04);});}['_calculatePosition'](_0x971b55){const _0x17eae3=this['editor']['config']['get']('collaboration.channelId'),_0x51c2b=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x39f5fb=>_0x39f5fb['channelId']===_0x17eae3)['findIndex'](_0x56a37e=>_0x56a37e['archivedAt']<_0x971b55);return _0x51c2b<0x0||_0x51c2b>this['annotationViews']['length']?this['annotationViews']['length']:_0x51c2b-0x1;}['_toggleDialog'](){const _0x137506=this['editor'],_0x4546c1=_0x137506['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x137506['locale'],this['annotationViews'])),'commentsArchive'===_0x4546c1['id']?_0x4546c1['hide']():_0x4546c1['show']({'id':'commentsArchive','title':S(_0x137506['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x30b3b0['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x518b15,_0x8f8aa2=!0x1){const _0x3bc5d8=this['editor']['locale'],_0x3575bc=this['editor']['plugins']['get']('Dialog'),_0x395416=new _0x518b15(_0x3bc5d8);return _0x395416['bind']('isEnabled')['to'](this,'isEnabled'),_0x395416['bind']('isOn')['to'](_0x3575bc,'id',_0x14bef7=>'commentsArchive'===_0x14bef7),_0x395416['set']({'label':S(_0x3bc5d8,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x8f8aa2&&(_0x395416['tooltip']=!0x0),this['listenTo'](_0x395416,'execute',()=>this['_toggleDialog']()),_0x395416;}['_hideDialogOnAnnotationEscape']=_0x47a93d=>{const _0x3e8762=_0x47a93d['source'];if(!this['annotationViews']['has'](_0x3e8762['view']))return;const _0xf27ed1=this['editor']['plugins']['get']('Dialog');_0xf27ed1['isOpen']&&'commentsArchive'===_0xf27ed1['id']&&(_0xf27ed1['hide'](),_0x47a93d['stop']());};}class p extends _0x407575{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,ss as BaseCommentThreadView,os as BaseCommentView,re as Comment,oe as CommentThread,yt as CommentThreadController,ie as CommentThreadInputView,Ct as CommentThreadView,vt 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 _0x2e1330,icons as _0xfdf0a4,ContextPlugin as _0x529673,PendingActions as ht,Command as _0x324c72,Plugin as _0x5a85ea,Context as _0x15790e}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x13a315,uid as _0xa3844f,KeystrokeHandler as jt,FocusTracker as _0x424f41,diff as _0x1f30c1,Collection as _0x4fd75f,Rect as _0x44fba6,CKEditorError as _0x59ce32,first as _0x1f6fa1,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0x3e18d9,keyCodes as _0x5ad4b8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x27b058,AriaDescriptionView as Zt,setupThreadKeyboardNavigation as ts,ConfirmMixin as ti,LateFocusButtonView as _0x424fc3,trimHtml as _0x5d0f96,LateFocusDropdownButtonView as _0x582bca,Users as it,getDateTimeFormatter as mt,hashObject as lt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x36a9ce}from'ckeditor5-collaboration/dist/index.js';import{throttle as bt,isEqual as It,cloneDeep as pt,set as wt,unset as At,debounce as _0x58a7c2}from'lodash-es';import{EditorUIView as Xt,InlineEditableUIView as $t,EditorUI as Ut,View as kt,FocusCycler as Ft,ButtonView as _0x57b97b,ViewCollection as _0x17461a,createDropdown as _0x218ee0,ListView as _0x5b8d5f,focusChildOnDropdownOpen as _0x37cdcd,ListItemView as _0x220ec1,MenuBarMenuListItemButtonView as _0x9c1b58,BodyCollection as _0x558ff7,BalloonPanelView as _0xf453e3,ContextualBalloon as _0x1a348e,Dialog as _0x48623b,DialogViewPosition as _0xe69b5f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x4bab8c}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 Lt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Nt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x38fb47}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class yt extends/* #__PURE__ -- @preserve */
24
+ _0x13a315(){['model'];['view'];constructor(_0x44dc42,_0x5c6a1f){super(),this['model']=_0x44dc42,this['model']['_isAttached']=!0x0,this['view']=_0x5c6a1f,this['listenTo'](_0x5c6a1f,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x5c6a1f,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x5c6a1f,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x5c6a1f,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x5c6a1f,'addComment',(_0x417ce1,_0x495602)=>this['addComment'](_0x495602)),this['listenTo'](_0x5c6a1f,'updateComment',(_0xd9bc81,_0x410065,_0x452015)=>this['updateComment'](_0x410065,_0x452015)),this['listenTo'](_0x5c6a1f,'removeComment',(_0x36937c,_0x145a75)=>this['removeComment'](_0x145a75));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0xa0f7ec){this['model']['addComment']({'content':_0xa0f7ec,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x5ccee9,_0x15fce3){this['model']['getComment'](_0x5ccee9)['update']({'content':_0x15fce3});}['removeComment'](_0x6c6ca2){this['model']['getComment'](_0x6c6ca2)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x4cad0c,_0x57434d,_0x3f16d5){const t=_0x4cad0c['t'];switch(_0x57434d){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'},_0x3f16d5);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'},_0x3f16d5);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'},_0x3f16d5);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'},_0x3f16d5);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x3f16d5);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'},_0x3f16d5);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'},_0x3f16d5);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'},_0x3f16d5);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Vt extends Xt{['main'];['editable'];constructor(_0x2f754e,_0x37c1d5){super(_0x2f754e);const _0x1efc29=_0xa3844f();this['main']=this['createCollection'](),this['editable']=new $t(_0x2f754e,_0x37c1d5,void 0x0,{'label':()=>S(_0x2f754e,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x2f754e['uiLanguageDirection'],'lang':_0x2f754e['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x1efc29},'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 Ut{['view'];constructor(_0x3a16be){super(_0x3a16be),this['view']=new Vt(_0x3a16be['locale'],_0x3a16be['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x2f52b9=this['editor']['editing']['view'],_0x361f12=this['view']['editable'],_0x205d30=_0x2f52b9['document']['getRoot']();_0x361f12['name']=_0x205d30['rootName'],this['view']['render']();const _0x52f03b=_0x361f12['element'];this['setEditableElement'](_0x361f12['name'],_0x52f03b),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2f52b9['attachDomRoot'](_0x52f03b),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[Bt,Et,Gt,Jt,Kt,Lt,Nt];class Rt extends/* #__PURE__ -- @preserve */
25
+ _0x13a315(_0x2e1330){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Qt)());constructor(_0x171ba9={}){function _0x33b0b7(_0x589b6d){return _0x589b6d['map'](_0x37d88d=>String['fromCharCode'](_0x37d88d))['join']('');}(_0x171ba9=Object['assign']({},_0x171ba9))['plugins']||(_0x171ba9['plugins']=Rt['defaultPlugins']),super(_0x171ba9),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[_0x33b0b7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x33b0b7([0x76,0x69,0x65,0x77])][_0x33b0b7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x33b0b7([0x61,0x75,0x74,0x6f]),this[_0x33b0b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x33b0b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x33b0b7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x33b0b7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x33b0b7([0x6f,0x6b])});}['create'](){const _0x14b874=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x14b874))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x3c9fd2=>{const _0x312377=this['model']['document']['getRoot'](),_0xd9ed2e=_0x312377&&_0x312377['getChild'](_0x312377['childCount']-0x1);_0x3c9fd2['setSelection'](_0xd9ed2e,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x14ec01=this['editing']['view'],_0x472383=_0x14ec01['document']['getRoot'](),_0x8f035d=_0x472383['getChild'](0x0);_0x472383['childCount']>0x1||!_0x8f035d||'p'!=_0x8f035d['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x14ec01,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x8f035d['placeholder']=this['placeholder']),St({'view':_0x14ec01,'element':_0x8f035d,'keepOnFocus':!0x0}),this['placeholderElement']=_0x8f035d);}}class hs extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x4fe4b4,_0x24627f={}){super(_0x4fe4b4),this['editor']=null,this['_editorConfig']=_0x24627f,this['set']('value',_0x24627f['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x4fe4b4,'Reply...')),this['set']('submitLabel',S(_0x4fe4b4,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x424f41(),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',(_0x37d56c,_0x4bc0de)=>{this['cancelButtonView']['fire']('execute'),_0x4bc0de();}),this['keystrokes']['set']('Ctrl+Enter',(_0x1760d7,_0x5a0e74)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x5a0e74());}),this['on']('submit',(_0x3fddaf,_0x2e9b22)=>{_0x2e9b22['length']>0xfde8?(alert(S(_0x4fe4b4,'TOO_LONG_COMMENT_ALERT',[_0x2e9b22['length'],0xfde8])),_0x3fddaf['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Rt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x397829=this['editor'];this['element']['insertBefore'](_0x397829['ui']['element'],this['element']['firstChild']),_0x397829['model']['document']['on']('change',()=>this['value']=_0x397829['getData']()),_0x397829['bind']('placeholder')['to'](this),this['focusables']['add'](_0x397829['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0xa1b8ad){-0x1===_0xa1b8ad?(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:_0x507155}=this,_0x173617=new _0x57b97b(_0x507155);return _0x173617['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x173617['withText']=!0x0,_0x173617['bind']('label')['to'](this,'submitLabel'),_0x173617['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x173617['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x361b72,_0x334589)=>!_0x334589&&!!_0x361b72['trim']()),_0x173617;}['_createCancelButton'](){const {locale:_0x247bd8}=this,_0x418ed8=new _0x57b97b(_0x247bd8);return _0x418ed8['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x418ed8['label']=S(_0x247bd8,'Cancel'),_0x418ed8['withText']=!0x0,_0x418ed8['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x418ed8;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x5e514c=>{this['focusTracker']['add'](_0x5e514c['element']);}),this['focusables']['on']('change',(_0x5d26ca,_0x55dfad)=>{for(const _0x119952 of Array['from'](_0x55dfad['added'])['reverse']())this['focusTracker']['add'](_0x119952['element']);});}}class ie extends kt{constructor(_0x121568,_0xef0d54,_0x1f5461){super(_0x121568),this['commentInputView']=new hs(_0x121568,_0x1f5461),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x21d528,_0x55877a)=>_0x21d528||!!_0x55877a),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 _0x27b058(_0x121568,_0xef0d54),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'](_0x440896){this['commentInputView']['focus'](_0x440896);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x503bcf,_0x4e196b)=>{const {submitButtonView:_0x2aa1c3,cancelButtonView:_0x4f2843,editor:_0x46b373}=this['commentInputView'];[_0x2aa1c3['element'],_0x4f2843['element'],_0x46b373?_0x46b373['editing']['view']['getDomRoot']():null]['filter'](_0x23c88e=>_0x23c88e)['some'](_0x151308=>_0x151308['contains'](_0x4e196b['target']))||(this['focus'](),_0x4e196b['preventDefault']());});}}class cs extends kt{constructor(_0x32a77e){super(_0x32a77e);const _0x1e3c34=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x1e3c34['to']('count',_0x43bd20=>S(_0x32a77e,'NUMBER_OF_COMMENTS',_0x43bd20))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x5077a4,_0x18f2d2,_0x370c02){super(_0x5077a4);const _0x411bc1=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x18f2d2['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x18f2d2,this['_config']=_0x370c02,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x424f41(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x35e451=>this['commentViews']['map'](_0x512f8d=>_0x512f8d['element'])['includes'](_0x35e451['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x5077a4),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x3d40d3=>_0x3d40d3-this['_config']['maxCommentsWhenCollapsed']);for(const _0x58369c of _0x18f2d2['comments'])this['_handleNewCommentModel'](_0x58369c);this['_handleInfoComment'](),this['listenTo'](_0x18f2d2['comments'],'add',(_0x221057,_0x455c44)=>{const _0x5dcbf0=this['_calculatePosition'](_0x455c44);this['length']++,this['_handleNewCommentModel'](_0x455c44,_0x5dcbf0),this['refreshVisibleViews']();}),this['listenTo'](_0x18f2d2['comments'],'remove',(_0x118c4b,_0x598c91)=>{this['length']--,this['_handleRemoveCommentModel'](_0x598c91),this['refreshVisibleViews']();}),this['listenTo'](_0x18f2d2,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x18f2d2,'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',_0x411bc1['if']('length','ck-hidden',_0x4ed09f=>!_0x4ed09f)],'aria-label':S(_0x5077a4,'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'](_0x59956f){-0x1===_0x59956f?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0xd5d6e3 of this['commentViews'])_0xd5d6e3['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x561460,_0x3f7771){const _0x3baa02=new this['_config']['CommentView'](this['locale'],_0x561460,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x3baa02['viewUid']=_0x561460['id'],_0x3baa02['delegate']('removeComment')['to'](this),_0x3baa02['delegate']('updateComment')['to'](this),_0x3baa02['delegate']('resolveCommentThread')['to'](this),_0x3baa02['delegate']('editorReady')['to'](this),_0x3baa02['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x3baa02,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x3baa02,_0x3f7771);}['_calculatePosition'](_0x375c4e){const _0x3da4bb=this['_model']['_findOptimalIndex'](_0x375c4e);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x375c4e['authoredAt']?_0x3da4bb-0x1:_0x3da4bb:_0x3da4bb-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x4d0f80={'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'],_0x4d0f80,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x4d0f80));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x2cea96){const _0x461601=this['commentViews']['remove'](_0x2cea96['id']);this['stopListening'](_0x461601),_0x461601['isEditMode']&&this['_updateHasDirtyComment'](),_0x461601['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x561b73=>_0x561b73['isEditMode']);}['_rearrangeCollapse'](){const _0x14da2c=function(_0x1e09e6){const _0x3984e0=new _0x4fd75f();for(const _0x5918b9 of _0x1e09e6)_0x3984e0['add'](_0x5918b9);return _0x3984e0;}(this['commentViews']),_0x47917b=this['_collapsedCommentsView']['count'];for(let _0x421026=0x1;_0x421026<=_0x47917b;_0x421026++)_0x14da2c['remove'](0x1);for(const _0x55f774 of _0x14da2c)_0x55f774['collapse']();_0x47917b>0x0&&_0x14da2c['add'](this['_collapsedCommentsView'],0x1),ns(_0x1f30c1(Array['from'](this['visibleViews']),Array['from'](_0x14da2c)),this['visibleViews'],_0x14da2c);}['_rearrangeExpand'](){ns(_0x1f30c1(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x59a69d of this['visibleViews'])_0x59a69d['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x439f37=>{this['focusTracker']['add'](_0x439f37['element']),this['keystrokes']['listenTo'](_0x439f37['element']);}),this['commentViews']['on']('change',(_0x374b12,_0x3c2a4a)=>{for(const _0x380580 of _0x3c2a4a['removed'])this['focusTracker']['remove'](_0x380580['element']),this['keystrokes']['stopListening'](_0x380580['element']);for(const _0x553b7e of Array['from'](_0x3c2a4a['added'])['reverse']())this['focusTracker']['add'](_0x553b7e['element']),this['keystrokes']['listenTo'](_0x553b7e['element']);});}}function ns(_0x2f15a6,_0x3ce50f,_0x15fee3){let _0x5483ab=0x0;for(const _0x54923b of _0x2f15a6)switch(_0x54923b){case'insert':_0x3ce50f['add'](_0x15fee3['get'](_0x5483ab),_0x5483ab),_0x5483ab++;break;case'delete':_0x3ce50f['remove'](_0x5483ab);break;case'equal':_0x5483ab++;}}class as extends kt{constructor(_0x45cb0b){super(_0x45cb0b);const _0x19f943=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x19f943['to']('contextValue',_0x58ab70=>S(_0x45cb0b,'THREAD_CONTEXT_LABEL',_0x58ab70)),'tabindex':-0x1},'children':[{'text':_0x19f943['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x301fc5,_0x22a8c7){super(_0x301fc5);const _0x5d4662=this['bindTemplate'];this['_model']=_0x22a8c7,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x424f41(),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',_0x2934aa=>!!_0x2934aa),this['bind']('contextValue')['to'](this['_model'],'context',_0x55b696=>_0x55b696&&_0x55b696['value']?this['_trimContextValue'](_0x55b696['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',_0x5d4662['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 _0x960e0=new _0x57b97b(this['locale']);return _0x960e0['label']=S(this['locale'],'Reopen'),_0x960e0['tooltip']=S(this['locale'],'Reopen'),_0x960e0['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>',_0x960e0['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x27ad5c=>!_0x27ad5c),_0x960e0['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3c4492,_0x3b5a3b)=>_0x3c4492&&_0x3b5a3b),_0x960e0['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x960e0;}['_trimContextValue'](_0x2b7da3){if(_0x2b7da3['length']<0x96)return _0x2b7da3;const _0x44a8e2=_0x2b7da3['lastIndexOf']('\x20',0x93);return _0x2b7da3['substring'](0x0,_0x44a8e2>-0x1?_0x44a8e2:0x93)+'...';}['_attachContextActions'](){const _0x5cf42d=this['element']['querySelector']('.ck-context'),_0x2a3694=_0x5cf42d['querySelector']('.ck-context__value');this['listenTo'](_0x5cf42d,'mouseenter',()=>{_0x2a3694['offsetWidth']<_0x2a3694['scrollWidth']&&_0x5cf42d['classList']['add']('overlay');}),this['listenTo'](_0x5cf42d,'mouseleave',()=>{_0x5cf42d['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x2e4071 of this['focusables'])this['focusTracker']['add'](_0x2e4071['element']),this['keystrokes']['listenTo'](_0x2e4071['element']);}['_createContextView'](){const _0x58b1d9=new as(this['locale']);return _0x58b1d9['bind']('contextValue')['to'](this),_0x58b1d9;}}class ss extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x1a15ed,_0x46d274,_0xf1a24c,_0x4a4962){super(_0x1a15ed),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x46d274,this['_localUser']=_0xf1a24c,this['_config']=_0x4a4962,this['commentThreadHeaderView']=new Yt(_0x1a15ed,_0x46d274),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0x1a15ed,S(_0x1a15ed,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x1a15ed,_0x46d274,Object['assign']({'CommentView':this['_config']['CommentView']},_0x4a4962)),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',(_0x4047db,_0x5a562c)=>_0x4047db||!!_0x5a562c),this['bind']('isUnlinked')['to'](_0x46d274,'unlinkedAt',_0x19ff10=>!!_0x19ff10),this['bind']('ariaLabel')['to'](this,'length',_0x861375=>{const _0x44239f=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x861375,_0x44239f]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x424f41(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3cd305=>_0x3cd305['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),ts(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x4e958e=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xb727bb=_0x4e958e['commentInputView'];return _0x4e958e['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0xb727bb,'value',(_0x251a5b,_0x5a7f1b,_0x1a8082,_0x4fd5bd,_0x1ae194)=>!!_0x1ae194||!!_0x4fd5bd&&_0x1a8082&&!_0x5a7f1b||_0x251a5b&&_0x1a8082&&!_0x5a7f1b),_0xb727bb['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4a1897,_0x4cf1d0,_0x4f74a3)=>{let _0x4f3fcd;return _0x4f3fcd=_0x4f74a3&&_0x4cf1d0?'Reply\x20to\x20reopen\x20discussion...':_0x4a1897?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x4f3fcd);}),_0xb727bb['bind']('submitLabel')['to'](this,'length',_0x5e34ea=>S(this['locale'],_0x5e34ea?'Reply':'Comment')),_0xb727bb['on']('submit',(_0x3b02d0,_0xdce29)=>{this['fire']('addComment',_0xdce29),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0xb727bb['on']('cancel',()=>{this['focus']();}),_0xb727bb['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0xb727bb['on']('cancel',_0x57d64b=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x57d64b['stop']());}),this['on']('change:isActive',(_0x1ada75,_0x660b71,_0x5cbbf4)=>{_0x5cbbf4||this['length']||_0xb727bb['value']||this['fire']('removeCommentThread');}),_0x4e958e;}}class Ct extends/* #__PURE__ -- @preserve */
27
+ ti(ss){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x283ab0,_0x40c93e,_0x3ff114,_0x151798){super(_0x283ab0,_0x40c93e,_0x3ff114,_0x151798),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x283ab0,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x28dec8,_0x242f7d,_0x146911)=>{_0x146911||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x1fa5be,_0x125a5f,_0x37b713)=>{_0x37b713&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x2ca166=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x2ca166['if']('isActive','ck-thread--active'),_0x2ca166['if']('isUnlinked','ck-thread--unlinked'),_0x2ca166['if']('isConfirm','ck-thread--remove-confirmation'),_0x2ca166['to']('actionIndicator',_0x333f74=>_0x333f74?'ck-thread--'+_0x333f74:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x2ca166['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 _0x24bcbd of this['commentsListView']['commentViews'])_0x24bcbd['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x3a9ee9}=this,_0x4042dd=this['commentsListView']['commentViews']['get'](0x0);_0x4042dd===this['_boundFirstCommentView']||_0x4042dd['isSystemComment']||(this['_boundFirstCommentView']=_0x4042dd,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x4042dd,'actionIndicator',_0x1a6d17=>'remove'===_0x1a6d17?'remove':null),_0x4042dd['placeholder']=S(_0x3a9ee9,'Write\x20a\x20comment...'),_0x4042dd['removeButton']['on']('execute',_0x50aa97=>{_0x50aa97['stop'](),this['showConfirm'](S(_0x3a9ee9,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x4042dd['focus']();}),_0x4042dd['actionBar']['add'](this['resolveButton'],0x0),_0x4042dd['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x3526bb=new _0x424fc3(this['locale']);return _0x3526bb['label']=S(this['locale'],'Resolve'),_0x3526bb['tooltip']=S(this['locale'],'Resolve'),_0x3526bb['icon']=_0xfdf0a4['check'],_0x3526bb['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x3526bb['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1c1319=>!_0x1c1319),_0x3526bb['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3b36f8,_0x10b30c)=>_0x3b36f8&&!_0x10b30c),_0x3526bb['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x3526bb;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class es extends kt{constructor(_0x28ecb1){super(_0x28ecb1),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x12abe5,_0x2b064e,_0x48efa5)=>{this['element']['innerHTML']=_0x48efa5;}),this['element']['innerHTML']=this['content'];}}class os extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x223920,_0x1d8ae1,_0x2d1bed){super(_0x223920),this['_model']=_0x1d8ae1,this['_config']=_0x2d1bed,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x1d8ae1,'content',_0x1d8ae1,'authoredAt',(_0x80cc40,_0x2bfc87)=>S(_0x223920,'COMMENT_ARIA_LABEL',[_0x1d8ae1['author']['name'],_0x2d1bed['formatDateTime'](_0x2bfc87),new DOMParser()['parseFromString'](_0x80cc40,'text/html')['body']['textContent'],_0x1d8ae1['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Zt(_0x223920,S(_0x223920,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x17461a(),this['focusTracker']=new _0x424f41(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x29f309=>_0x29f309['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 _0x5a9ae7=new es(this['locale']);return _0x5a9ae7['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x88fa8,_0x36b9c0)=>_0x36b9c0?_0x5d0f96(_0x88fa8,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x88fa8),_0x5a9ae7;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x45ebea=new hs(this['locale'],this['_config']['editorConfig']);return _0x45ebea['value']=this['_model']['content'],_0x45ebea['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x45ebea['submitLabel']=S(this['locale'],'Save'),_0x45ebea['on']('submit',(_0x248a03,_0x4cd5d8)=>{this['fire']('updateComment',this['_model']['id'],_0x4cd5d8),this['switchToDisplayMode'](),this['focus']();}),_0x45ebea['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x45ebea['once']('editorReady',()=>{_0x45ebea['focus']();}),_0x45ebea['createEditor'](),_0x45ebea['delegate']('editorReady')['to'](this),_0x45ebea['delegate']('editorDestroyed')['to'](this),_0x45ebea;}['_setupKeyboardNavigation'](){const _0x5c1c29=this['element'];this['keystrokes']['listenTo'](_0x5c1c29);for(const _0x1489f3 of this['focusables'])this['focusTracker']['add'](_0x1489f3['element']),this['keystrokes']['listenTo'](_0x1489f3['element']);this['focusables']['on']('change',(_0x2aeac0,_0x1224f3)=>{for(const _0x4f65de of _0x1224f3['removed'])this['focusTracker']['remove'](_0x4f65de['element']),this['keystrokes']['stopListening'](_0x4f65de['element']);for(const _0x5a8a41 of _0x1224f3['added'])this['focusTracker']['add'](_0x5a8a41['element']),this['keystrokes']['listenTo'](_0x5a8a41['element']);}),this['keystrokes']['set']('enter',(_0x245a83,_0x48e1ce)=>{_0x5c1c29===_0x245a83['target']&&(this['focusCycler']['focusFirst'](),_0x48e1ce());}),this['keystrokes']['set']('esc',(_0x1e221e,_0x37c660)=>{_0x5c1c29!==_0x1e221e['target']&&(this['focus'](),_0x37c660());});}}class vt extends/* #__PURE__ -- @preserve */
28
+ ti(os){['actionBar'];['userView'];constructor(_0x6ccffd,_0x40dd51,_0x54ec99){super(_0x6ccffd,_0x40dd51,_0x54ec99),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x6ccffd,'Reply...')),this['bind']('authoredAt')['to'](_0x40dd51),this['bind']('resolvedAt')['to'](_0x40dd51),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 _0x27b058(_0x6ccffd,_0x40dd51['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x40dd51,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x306567=this['bindTemplate'],_0x481be1=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x306567['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x306567['to']('authoredAt',_0x1879d8=>this['_config']['formatDateTime'](_0x1879d8))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x306567['if']('isEditMode','ck-comment__actions--hidden'),_0x306567['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']&&_0x481be1['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x306567['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x306567['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x306567['if']('isEditMode','ck-comment--edit'),_0x306567['if']('isSystemComment','ck-comment--info'),_0x306567['to']('actionIndicator',_0x29f3ac=>_0x29f3ac?'ck-comment--'+_0x29f3ac:'')],'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':_0x481be1}]}]};}['_createEditButton'](){const _0x5226da=new _0x57b97b(this['locale']);return _0x5226da['label']=S(this['locale'],'Edit'),_0x5226da['icon']=_0xfdf0a4['pencil'],_0x5226da['withText']=!0x0,_0x5226da['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x5226da['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4f1878=>!_0x4f1878),_0x5226da['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x5226da['on']('execute',()=>this['switchToEditMode']()),_0x5226da;}['_createRemoveButton'](){const _0x5100da=new _0x57b97b(this['locale']);return _0x5100da['label']=S(this['locale'],'Remove'),_0x5100da['icon']='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M5.2\x207h9.2c.6\x200\x201\x20.4\x201\x201v9.9c0\x20.5-.4\x201-1\x201H5.2a1\x201\x200\x200\x201-1-1V8c0-.6.4-1\x201-1zm1\x201.5c-.3\x200-.5.2-.5.5v8c0\x20.3.2.5.5.5h.5c.2\x200\x20.5-.2.5-.5V9c0-.3-.3-.5-.5-.5h-.5zm3.2\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.4zm3.5\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.5zm-1.4-7.1H8.3L6.5\x203.6H3.8c-.5\x200-.7.3-.7.8s.2.7.7.7h12c.6\x200\x20.9-.2.9-.7\x200-.5-.3-.8-1-.8h-2.4l-1.8-2.2z\x22/></svg>\x0a',_0x5100da['withText']=!0x0,_0x5100da['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x5100da['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x38022b=>!_0x38022b),_0x5100da['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x5100da['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x5100da;}['_createDropdown'](){const _0x1df9a3=_0x218ee0(this['locale'],_0x582bca),_0x15ea28=_0x1df9a3['panelView']['children'],_0x53fb65=new _0x5b8d5f(this['locale']),_0x43bccc=_0x1df9a3['bindTemplate'];_0x37cdcd(_0x1df9a3,()=>this['items']['find'](_0x50fce0=>_0x50fce0['isVisible'])),_0x1df9a3['extendTemplate']({'attributes':{'class':[_0x43bccc['if']('isVisible','ck-hidden',_0x3ddc66=>!_0x3ddc66)]}});const _0x50d37f=(_0x56ac78,_0x4c5fe3=-0x1)=>{const _0x3f052f=new _0x220ec1(this['locale']);_0x3f052f['children']['add'](_0x56ac78);const _0xe1e086=_0x4c5fe3>-0x1?_0x4c5fe3:_0x53fb65['items']['length'];_0x53fb65['items']['add'](_0x3f052f,_0xe1e086);const _0x5bbedd=Array['from'](this['items']);_0x1df9a3['unbind']('isEnabled','isVisible'),_0x1df9a3['bind']('isEnabled')['toMany'](_0x5bbedd,'isEnabled',(..._0x136d78)=>_0x136d78['some'](_0x352d63=>_0x352d63)),_0x1df9a3['bind']('isVisible')['toMany'](_0x5bbedd,'isVisible',(..._0x3e7729)=>_0x3e7729['some'](_0x5cce2f=>_0x5cce2f));};_0x1df9a3['panelPosition']='sw',_0x1df9a3['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0xfdf0a4['threeVerticalDots']});for(const _0x1c20af of this['items'])_0x50d37f(_0x1c20af);return _0x15ea28['add'](_0x53fb65),_0x1df9a3['listenTo'](this['items'],'add',(_0x1fb7b6,_0x5bf58f,_0xe3dc60)=>{_0x50d37f(_0x5bf58f,_0xe3dc60);}),_0x1df9a3['listenTo'](this['items'],'remove',(_0x63a48f,_0x27a946,_0x6c71d6)=>{_0x53fb65['items']['remove'](_0x6c71d6);}),_0x1df9a3;}['_attachActions'](_0x1f44a6,_0x356758){const _0x258cd8=_0x1f44a6&&_0x1f44a6['element'];_0x258cd8&&(this['listenTo'](_0x258cd8,'mouseenter',()=>this['actionIndicator']=_0x356758),this['listenTo'](_0x258cd8,'focus',()=>this['actionIndicator']=_0x356758),this['listenTo'](_0x258cd8,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x258cd8,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x10df55=super['_createCommentInputView']();return _0x10df55['bind']('placeholder')['to'](this),_0x10df55;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Dt(_0x5ee850){const _0x529e5e=bt(_0x5ee850,0x1e),_0x25839a=new MutationObserver(_0x18b60d=>{for(const _0x4baf82 of _0x18b60d)('attributes'==_0x4baf82['type']&&'class'==_0x4baf82['attributeName']||'childList'==_0x4baf82['type']||'characterData'==_0x4baf82['type'])&&_0x529e5e();});return{'attach'(_0xa4005b){_0x25839a['observe'](_0xa4005b,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x25839a['disconnect'](),_0x529e5e['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x46cb5d,_0x5ebf35){super(_0x46cb5d),this['id']=_0xa3844f(),this['focusTracker']=new _0x424f41(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x311b1f,_0x3247cc)=>this['fire']('Esc',_0x3247cc)),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']=Dt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x5ebf35),this['mainView']=_0x5ebf35;const _0x1ff94f=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x1ff94f['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 _0x555184=this['element']['clientHeight'];_0x555184&&(this['height']=_0x555184);}}class d extends/* #__PURE__ -- @preserve */
29
+ _0x13a315(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x361f7c,target:_0x37bda1,type:_0x495bcd,isVisible:_0x21edcb=!0x0}){super(),this['view']=_0x361f7c,this['view']['element']||this['view']['render'](),this['_type']=_0x495bcd,this['_target']=_0x37bda1,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x4fd75f([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x4f5c0c,_0x2d8b6b)=>{this['view']['focusTracker']['add'](_0x2d8b6b);}),this['focusableElements']['on']('remove',(_0x58082c,_0x43beb7)=>{this['view']['focusTracker']['remove'](_0x43beb7);}),this['set']('isVisible',_0x21edcb);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x352e25=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x352e25),_0x352e25;}get['targetRect'](){const _0x424fd7=this['target'];if(null===_0x424fd7)return null;if(_0x424fd7 instanceof _0x44fba6)return _0x424fd7;const _0x373765=_0x424fd7['filter'](_0x23d786=>function(_0x1481a0){const _0x566edf=_0x1481a0['offsetParent'];if(_0x566edf)return!0x0;const _0x466120=_0x1481a0['getClientRects']()['item'](0x0);return!!_0x466120;}(_0x23d786));return 0x0===_0x373765['length']?null:new _0x44fba6(_0x373765[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x4c0ccb){this['view']['isActive']=_0x4c0ccb,this['view']['mainView']['isActive']=_0x4c0ccb;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x5210de){if(!(null===_0x5210de||_0x5210de instanceof _0x44fba6||Array['isArray'](_0x5210de)&&_0x5210de['every'](_0x8255fe=>ne(_0x8255fe))))throw new _0x59ce32('annotation-invalid-target',null,{'target':_0x5210de});}['_getNormalizedTarget'](){const _0x46a3a4='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x46a3a4)?[_0x46a3a4]:_0x46a3a4;}}function ne(_0xb22586){return null!==_0xb22586&&'object'==typeof _0xb22586&&'nodeType'in _0xb22586&&0x1===_0xb22586['nodeType'];}class x extends _0x4fd75f{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x3cff97=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x424f41(),this['_focusTracker']['on']('change:isFocused',(_0x550f08,_0x541c50,_0x5535a4)=>{_0x5535a4||this['fire']('blur');});for(const _0x4af03d of _0x3cff97)this['add'](_0x4af03d);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x3111cb){if(this['has'](_0x3111cb))throw new _0x59ce32('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x3111cb['innerView'],_0x3111cb),this['_viewToAnnotation']['set'](_0x3111cb['view'],_0x3111cb);for(const _0x50cbd1 of _0x3111cb['focusableElements'])this['_focusTracker']['add'](_0x50cbd1);this['listenTo'](_0x3111cb['focusableElements'],'add',(_0x26a185,_0x9adb65)=>{this['_focusTracker']['add'](_0x9adb65);}),this['listenTo'](_0x3111cb['focusableElements'],'remove',(_0x41c0b7,_0x590466)=>{this['_focusTracker']['remove'](_0x590466);}),this['listenTo'](_0x3111cb['view']['focusTracker'],'change:isFocused',(_0x346f59,_0xb32a78,_0x14c231)=>{_0x14c231&&this['fire']('focus',_0x3111cb);}),_0x3111cb['updateTargetRect']();const _0x562b81=this['_getOrderInContent'](_0x3111cb['view']['targetRect']);return super['add'](_0x3111cb,_0x562b81);}['remove'](_0x2256f2){if(!this['has'](_0x2256f2))throw new _0x59ce32('annotationcollection-not-existing-item',null);this['stopListening'](_0x2256f2['view']['focusTracker']),this['stopListening'](_0x2256f2['focusableElements']);for(const _0x2a3dde of _0x2256f2['focusableElements'])this['_focusTracker']['remove'](_0x2a3dde);return this['_viewToAnnotation']['delete'](_0x2256f2['view']),this['_innerViewToAnnotation']['delete'](_0x2256f2['innerView']),super['remove'](_0x2256f2);}['getByInnerView'](_0x4342a6){return this['_innerViewToAnnotation']['get'](_0x4342a6);}['getByView'](_0xf63f69){return this['_viewToAnnotation']['get'](_0xf63f69);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x3e1361 of this)_0x3e1361['updateTargetRect']();this['_sort']();}['_sort'](){const _0x109482=Array['from'](this)['sort']((_0x9fadb4,_0x52577a)=>v(_0x9fadb4['view']['targetRect'],_0x52577a['view']['targetRect']));for(let _0x3446d2=_0x109482['length']-0x1;_0x3446d2>0x0;_0x3446d2--){const _0x30178c=_0x109482[_0x3446d2];_0x3446d2!==this['getIndex'](_0x30178c)&&(this['remove'](_0x30178c),this['add'](_0x30178c));}}['_getOrderInContent'](_0x2276c9){let _0x1ed96c=0x0;if(!_0x2276c9)return this['length'];for(const _0x44f569 of this){const _0x1aaa5f=_0x44f569['view']['targetRect'];if(_0x1aaa5f){if(v(_0x2276c9,_0x1aaa5f)<0x0)return _0x1ed96c;_0x1ed96c++;}}return _0x1ed96c;}}function v(_0x4cb0ad,_0x3db833){if(null===_0x4cb0ad&&null===_0x3db833)return 0x0;if(null===_0x4cb0ad)return-0x1;if(null===_0x3db833)return 0x1;const _0x323d7e=_0x4cb0ad['top']-_0x3db833['top'];return 0x0==_0x323d7e?_0x4cb0ad['left']-_0x3db833['left']:_0x323d7e;}class N extends _0x529673{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d0e67){if(super(_0x4d0e67),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x4d0e67 instanceof _0x2e1330){const _0x5db016=_0x4d0e67['locale'];_0x4d0e67['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x5db016,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x5db016,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x5db016,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x5db016,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x5db016,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x5db016,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x5db016,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x194840){this['collection']['add'](_0x194840);}['remove'](_0xa988ac){this['collection']['remove'](_0xa988ac),_0xa988ac['destroy']();}['refreshVisibility'](){for(const _0x47bf34 of this['collection'])_0x47bf34['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x11a5ea){return this['collection']['getByInnerView'](_0x11a5ea);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x2a14c1 of this['collection'])_0x2a14c1['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x479090){this['fire']('_activateAnnotation',_0x479090);}['createAnnotation'](_0xf92782){return new d(_0xf92782);}['createAnnotationView'](_0x3110de,_0x2034a1){return new T(_0x3110de,_0x2034a1);}['_addActiveAnnotation'](_0x3076f4){const _0x504b43=new Set(this['activeAnnotations']);_0x504b43['add'](_0x3076f4),this['activeAnnotations']=_0x504b43;}['_removeActiveAnnotation'](_0x55b3a7){const _0x7166d1=new Set(this['activeAnnotations']);_0x7166d1['delete'](_0x55b3a7),this['activeAnnotations']=_0x7166d1;}['_bindAnnotationsToVisibleAnnotations'](){const _0x5e231c=this['collection'],_0x5b01f7=this['_visibleAnnotations'];function _0x180c72(_0x24405d){const _0x11df1c=_0x24405d['source'];_0x11df1c['isVisible']&&!_0x5b01f7['has'](_0x11df1c)?_0x5b01f7['add'](_0x11df1c):!_0x11df1c['isVisible']&&_0x5b01f7['has'](_0x11df1c)&&_0x5b01f7['remove'](_0x11df1c),_0x11df1c['view']['focusTracker']['remove'](_0x11df1c['view']['element']),_0x11df1c['view']['focusTracker']['add'](_0x11df1c['view']['element']);}this['listenTo'](_0x5e231c,'add',(_0x4155b3,_0x6b2d78)=>{_0x6b2d78['isVisible']&&_0x5b01f7['add'](_0x6b2d78),this['listenTo'](_0x6b2d78,'change:isVisible',_0x180c72);}),this['listenTo'](_0x5e231c,'remove',(_0x47309b,_0x36563d)=>{_0x5b01f7['has'](_0x36563d)&&_0x5b01f7['remove'](_0x36563d),this['stopListening'](_0x36563d,'change:isVisible',_0x180c72);});}['_setupEnterAnnotationKeystroke'](){const _0x3c71c0=_0x5aa21b=>{_0x5aa21b['on']('ready',()=>{_0x5aa21b['keystrokes']['set'](_0x38fb47,(_0x2c3cda,_0x3a0548)=>{const _0x3c6c99=_0x1f6fa1(this['activeAnnotations']['values']());_0x3c6c99&&(_0x3c6c99['view']['focus'](),_0x3a0548());});});};this['context']instanceof _0x2e1330?_0x3c71c0(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x3a5296,_0x3d2b72)=>{_0x3c71c0(_0x3d2b72);});}['_setupEscapeAnnotationHandling'](){const _0x26fe42=_0x50ecea=>{const _0xdd9d94=_0x50ecea['source'],_0x296746=[];let _0x1fa263;if(Array['isArray'](_0xdd9d94['target'])){_0x1fa263=_0xdd9d94['target'][0x0],this['context']instanceof _0x2e1330?_0x296746['push'](this['context']):this['context']['editors']&&_0x296746['push'](...this['context']['editors']);for(const _0x21af5b of _0x296746)for(const _0x44d68a of _0x21af5b['editing']['view']['domRoots']['values']())if(_0x44d68a['contains'](_0x1fa263))return void _0x21af5b['editing']['view']['focus']();_0x1fa263['focus']();}};this['listenTo'](this['collection'],'add',(_0xc0a311,_0x3c565f)=>{this['listenTo'](_0x3c565f,'escape',_0x26fe42,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x9e5a86,_0x1b556b)=>{this['stopListening'](_0x1b556b,'escape',_0x26fe42);});}}const gt=Symbol('noChannel'),Tt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x529673{['_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(_0xf2f3dd){super(_0xf2f3dd),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x460c2e=this['context']['config'];_0x460c2e['define']('comments.maxCommentsWhenCollapsed',0x2),_0x460c2e['define']('comments.maxThreadTotalWeight',0x1f4),_0x460c2e['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x460c2e['define']('comments.CommentThreadView',Ct),_0x460c2e['define']('comments.CommentView',vt),_0x460c2e['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x3488d8=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x47f071,_0x5c36f5)=>this['_addCommentThread'](_0x5c36f5)),this['on']('submitCommentThread',(_0x34aed6,_0x49488e)=>this['_submitCommentThread'](_0x49488e)),this['on']('resolveCommentThread',(_0x124032,_0x10ad91)=>this['_resolveCommentThread'](_0x10ad91)),this['on']('resolveCommentThread',(_0x39ede4,_0x5294f8)=>this['_updateActiveAnnotation'](_0x5294f8),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x5445ab,_0x27fcb2)=>this['_reopenCommentThread'](_0x27fcb2)),this['on']('reopenCommentThread',(_0x312252,_0x46a0b3)=>this['_updateActiveAnnotation'](_0x46a0b3),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x19e87b,_0x4471a7)=>this['_removeCommentThread'](_0x4471a7)),this['on']('updateCommentThread',(_0xf62f0,_0x26bf94)=>this['_updateCommentThread'](_0x26bf94)),this['on']('updateCommentThread',(_0x54f23b,_0x23cbde)=>this['_updateActiveAnnotation'](_0x23cbde),{'priority':'lowest'}),this['on']('addComment',(_0xaff96e,_0x2e82de)=>this['_addComment'](_0x2e82de)),this['on']('updateComment',(_0xf5dfc8,_0x36e0b6)=>this['_updateComment'](_0x36e0b6)),this['on']('removeComment',(_0x4d60ff,_0x5d5b78)=>this['_removeComment'](_0x5d5b78)),this['on']('addComment',(_0x400848,{threadId:_0x30a11b,isFromAdapter:_0x277e91})=>{if(_0x277e91)return;const _0xef7224=this['getCommentThread'](_0x30a11b),_0x36665b=_0xef7224&&this['_threadToController']['get'](_0xef7224);_0x36665b&&_0x36665b['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x3488d8,'change:activeAnnotations',(_0x1ce5df,_0x16622d,_0x39c21c)=>{const _0x5e687d=Array['from'](_0x39c21c)['map'](_0x392ac1=>this['_viewToController']['get'](_0x392ac1['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x5e687d?_0x5e687d['model']:null;});}set['adapter'](_0x5271e2){if(this['_adapter'])throw new _0x59ce32('commentsrepository-adapter-already-set');this['_adapter']=_0x5271e2;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x148487=gt,threadId:_0x1b7ab7=_0xa3844f(),comments:_0x3d763a=[],unlinkedAt:_0x4c4e98=null,resolvedAt:_0x2f9ef0=null,resolvedBy:_0x33fc98=null,target:_0x5be366=null,context:_0x2ba9b6=null,attributes:_0x1d1f4d={},isResolvable:_0x3de7ae=!0x0,isSubmitted:_0x1deb78=!0x1,isFromAdapter:_0x2a789e=!0x1}={}){return this['fire'](_t('addCommentThread',_0x148487),{'channelId':_0x148487,'threadId':_0x1b7ab7,'comments':_0x3d763a,'unlinkedAt':_0x4c4e98,'resolvedAt':_0x2f9ef0,'resolvedBy':_0x33fc98,'target':_0x5be366,'context':_0x2ba9b6,'attributes':_0x1d1f4d,'isFromAdapter':_0x2a789e,'isResolvable':_0x3de7ae,'isSubmitted':_0x1deb78}),this['getCommentThread'](_0x1b7ab7);}['openNewCommentThread']({channelId:_0x126ed8=gt,threadId:_0x337e43=_0xa3844f(),target:_0x586b4a,context:_0x4fd46e=null,isResolvable:_0x39e16d=!0x0}){if(this['_readOnlyChannels']['has'](_0x126ed8)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x586b4a)throw new _0x59ce32('commentsrepository-missing-target');const _0x900db3=this['addCommentThread']({'channelId':_0x126ed8,'threadId':_0x337e43,'target':_0x586b4a,'context':_0x4fd46e,'isResolvable':_0x39e16d});if(!_0x900db3)return null;const _0x52552d=this['_threadToController']['get'](_0x900db3),_0x4f12d2=_0x52552d['view']['commentThreadInputView']['commentInputView'],_0x428257=this['context']['plugins']['get'](N),_0x211ef0=_0x428257['getByInnerView'](_0x52552d['view']);return _0x428257['activate'](_0x211ef0),_0x4f12d2['once']('editorReady',()=>_0x4f12d2['focus']()),_0x900db3;}['hasCommentThread'](_0xb44c73){if('string'!=typeof _0xb44c73)throw new _0x59ce32('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0xb44c73);}['updateCommentThread']({channelId:_0x4b3bb8=gt,threadId:_0x3fd373,context:_0x3952f4,unlinkedAt:_0x39dda4,attributes:_0x93f012,isFromAdapter:_0x5d2d3b=!0x1}){return this['fire'](_t('updateCommentThread',_0x4b3bb8),{'channelId':_0x4b3bb8,'threadId':_0x3fd373,'context':_0x3952f4,'unlinkedAt':_0x39dda4,'attributes':_0x93f012,'isFromAdapter':_0x5d2d3b}),this['getCommentThread'](_0x3fd373);}['getCommentThread'](_0x2e0bea){if('string'!=typeof _0x2e0bea)throw new _0x59ce32('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x2e0bea);}['fetchCommentThread']({channelId:_0x5a156f,threadId:_0x13d56b}={}){const _0x5118c5=this['getCommentThread'](_0x13d56b);if(_0x5118c5)return Promise['resolve'](_0x5118c5);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x59ce32('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x5a156f,'threadId':_0x13d56b})['then'](_0x4a9335=>this['hasCommentThread'](_0x13d56b)?this['getCommentThread'](_0x13d56b):_0x4a9335?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x5a156f},_0x4a9335)):void 0x0)['catch'](_0x354605=>{throw console['error'](_0x354605),new _0x59ce32('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x139412,skipNotAttached:_0x15188e=!0x1,skipEmpty:_0x20822f=!0x1,toJSON:_0x51da3c=!0x1}={}){const _0x200082=[];for(const _0x3bc955 of this['_threads']['values']())_0x139412&&_0x3bc955['channelId']!==_0x139412||_0x15188e&&!_0x3bc955['isAttached']||_0x20822f&&0x0===_0x3bc955['length']||_0x200082['push'](_0x3bc955);return _0x51da3c?_0x200082['map'](_0x2431a5=>_0x2431a5['toJSON']()):_0x200082;}['setActiveCommentThread'](_0x280c8f){const _0x226536=this['context']['plugins']['get'](N);if(!_0x280c8f)return void(this['activeCommentThread']&&_0x226536['deactivateAll']());const _0xf76bf6=this['getCommentThread'](_0x280c8f);if(!_0xf76bf6)throw new _0x59ce32('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x280c8f});if(!this['_threadToController']['has'](_0xf76bf6))throw new _0x59ce32('commentsrepository-active-not-attached',null,{'threadId':_0x280c8f});const _0x2ff35c=_0x226536['getByInnerView'](this['_threadToController']['get'](_0xf76bf6)['view']);_0x226536['activate'](_0x2ff35c);}['switchReadOnly'](_0x118ae1,_0x2ba0b9){_0x118ae1?this['_readOnlyChannels']['add'](_0x2ba0b9):this['_readOnlyChannels']['delete'](_0x2ba0b9),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x32ae67){return this['_readOnlyChannels']['has'](_0x32ae67)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x34328d,_0x4b09c9){return new yt(_0x34328d,_0x4b09c9);}['setPermissions'](_0x475772,_0x37193d=gt){this['_permissions']['set'](_0x37193d,_0x475772),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x379c31=gt){return this['_permissions']['has'](_0x379c31)?this['_permissions']['get'](_0x379c31):Tt;}['_addCommentThread']({channelId:_0x526b33,threadId:_0x154d57,comments:_0x14cc4c,unlinkedAt:_0x51229b,resolvedAt:_0x33b753,resolvedBy:_0x22adf6,target:_0x1679e0,context:_0x415032,attributes:_0xcd2cfe,isFromAdapter:_0x31d7ec,isResolvable:_0x3b3fd7,isSubmitted:_0x1b588c}){if('string'!=typeof _0x154d57)throw new _0x59ce32('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x154d57});if(this['hasCommentThread'](_0x154d57))throw new _0x59ce32('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x154d57});const _0x166282=new oe(this,{'channelId':_0x526b33,'id':_0x154d57,'context':_0x415032,'attributes':_0xcd2cfe,'unlinkedAt':_0x51229b,'resolvedAt':_0x33b753,'resolvedBy':_0x22adf6?this['context']['plugins']['get'](it)['getUser'](_0x22adf6):null,'isResolvable':_0x3b3fd7,'isSubmitted':_0x1b588c||_0x31d7ec});this['_threads']['set'](_0x154d57,_0x166282);for(const _0x2ee50a of _0x14cc4c)_0x166282['_add'](this['_createNewComment']({'threadId':_0x154d57,..._0x2ee50a}));return _0x1679e0&&_0x166282['attachTo'](_0x1679e0),_0x31d7ec||!_0x166282['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x526b33,'threadId':_0x154d57});}['_submitCommentThread']({channelId:_0x1afeb8,threadId:_0x1697e8}){if(!this['hasCommentThread'](_0x1697e8))throw new _0x59ce32('commentsrepository-missing-comment-thread',this);const _0x1043ea=this['getCommentThread'](_0x1697e8);if(_0x1043ea['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x12480d,comments:_0x345789,resolvedAt:_0x5844e3,resolvedBy:_0x97c414,context:_0x7c2170,attributes:_0x39adbe}=_0x1043ea,_0x5280b3=this['context']['plugins']['get']('PendingActions'),_0x4d2d63=_0x5280b3['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x1afeb8,'threadId':_0x12480d,'comments':_0x345789['map'](_0xf7c88b=>_0xf7c88b['toJSON']()),'resolvedAt':_0x5844e3,'resolvedBy':_0x97c414?_0x97c414['id']:_0x97c414,'context':_0x7c2170,'attributes':_0x39adbe})['then'](({comments:_0x14c039})=>{_0x5280b3['remove'](_0x4d2d63);for(const _0x54bbbd of _0x14c039)this['_updateComment']({'channelId':_0x1afeb8,'threadId':_0x1697e8,'commentId':_0x54bbbd['commentId'],'createdAt':_0x54bbbd['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x3b9232=>{throw console['error'](_0x3b9232),new _0x59ce32('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x2c7773,target:_0x5a5720}){const _0x57a10a=this['getCommentThread'](_0x2c7773);if(!_0x57a10a)throw new _0x59ce32('commentsrepository-attach-missing-comment-thread',this);const _0xac9410=this['context']['plugins']['get']('PendingActions'),_0x4db9dc=this['context']['plugins']['get'](N),_0x37d1a7=this['_createCommentThreadView'](_0x57a10a),_0xbaf4ab=new yt(_0x57a10a,_0x37d1a7);let _0x114acf=null;_0x37d1a7['on']('change:isDirty',(_0x14a1b7,_0x11344c,_0x2551b7)=>{_0x2551b7?_0x114acf=_0xac9410['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x114acf&&(_0xac9410['remove'](_0x114acf),_0x114acf=null);}),this['_threadToController']['set'](_0x57a10a,_0xbaf4ab),this['_viewToController']['set'](_0x37d1a7,_0xbaf4ab);const _0x20aea6=new T(this['context']['locale'],_0x37d1a7);_0x20aea6['bind']('length')['to'](_0x37d1a7),_0x20aea6['bind']('isDirty')['to'](_0x37d1a7,'isDirty',_0x37d1a7,'length',(_0x3ff682,_0x2671cb)=>_0x3ff682||!_0x2671cb),_0x20aea6['bind']('isActive')['to'](_0x37d1a7),_0x20aea6['type']='comment';const _0xecc39d=new d({'view':_0x20aea6,'target':_0x5a5720,'type':'comment','isVisible':!_0x57a10a['isResolved']});return _0x37d1a7['on']('escape',()=>{_0xecc39d['fire']('escape');}),this['_bindAnnotationToEditors'](_0x37d1a7,_0xecc39d),_0x4db9dc['add'](_0xecc39d),_0xecc39d;}['_bindAnnotationToEditors'](_0x2d50ea,_0x4d5af3){this['listenTo'](_0x2d50ea,'editorReady',(_0x25f92c,_0x48bbfd)=>{const _0x3a95c6=_0x48bbfd['ui']['view']['body']['bodyCollectionContainer'];_0x4d5af3['focusableElements']['add'](_0x3a95c6),this['context']instanceof _0x2e1330&&this['context']['ui']['focusTracker']['add'](_0x3a95c6);},{'priority':'highest'}),this['listenTo'](_0x2d50ea,'editorDestroyed',(_0x2134d7,_0x44273d)=>{const _0x483dcd=_0x44273d['ui']['view']['body']['bodyCollectionContainer'];_0x4d5af3['focusableElements']['has'](_0x483dcd)&&_0x4d5af3['focusableElements']['remove'](_0x483dcd),this['context']instanceof _0x2e1330&&this['context']['ui']['focusTracker']['remove'](_0x483dcd);});}['_unbindEditors'](_0x41a668){this['stopListening'](_0x41a668,'editorReady'),this['stopListening'](_0x41a668,'editorDestroyed');}['_createCommentThreadView'](_0x5885f1){const _0x18d740=this['context']['plugins']['get'](it),{config:_0x13021e,locale:_0x174e42}=this['context'],_0xe55c97=mt(_0x13021e['get']('locale'));return new(0x0,(_0x13021e['get']('comments'))['CommentThreadView'])(_0x174e42,_0x5885f1,_0x18d740['me'],{'editorConfig':{..._0x13021e['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x13021e['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x13021e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x13021e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x13021e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xe55c97,'CommentView':_0x13021e['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x205b54,channelId:_0x2745d4,resolvedAt:_0x2adc76,resolvedBy:_0x237f5f,isFromAdapter:_0x1e3022}){if(!this['hasCommentThread'](_0x205b54))throw new _0x59ce32('commentsrepository-missing-comment-thread',null,{'threadId':_0x205b54});const _0x2699de=this['getCommentThread'](_0x205b54);if(_0x2699de['isResolved'])throw new _0x59ce32('commentsrepository-resolved-comment-thread',null,{'threadId':_0x205b54});const _0x5a9ed3=this['context']['plugins']['get'](it);if(_0x2699de['resolvedBy']=_0x5a9ed3['getUser'](_0x237f5f),_0x2699de['resolvedAt']=_0x2adc76,_0x1e3022||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x48d213=this['context']['plugins']['get']('PendingActions'),_0x33bb2a=_0x48d213['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x2745d4,'threadId':_0x205b54})['then'](({resolvedAt:_0x1d29be,resolvedBy:_0x2473ec})=>{_0x48d213['remove'](_0x33bb2a),_0x2699de['resolvedBy']['id']!==_0x2473ec&&(_0x2699de['resolvedBy']=_0x5a9ed3['getUser'](_0x2473ec)),_0x2699de['resolvedAt']=_0x1d29be;})['catch'](_0xbc1ce7=>{throw console['error'](_0xbc1ce7),new _0x59ce32('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x2bed3b,channelId:_0x26de09,isFromAdapter:_0x5d48be}){if(!this['hasCommentThread'](_0x2bed3b))throw new _0x59ce32('commentsrepository-missing-comment-thread',null,{'threadId':_0x2bed3b});const _0x5d2739=this['getCommentThread'](_0x2bed3b);if(!_0x5d2739['isResolved'])throw new _0x59ce32('commentsrepository-reopen-comment-thread',null,{'threadId':_0x2bed3b});if(_0x5d2739['resolvedBy']=null,_0x5d2739['resolvedAt']=null,_0x5d48be||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x1d27da=this['context']['plugins']['get']('PendingActions'),_0x51d278=_0x1d27da['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x26de09,'threadId':_0x2bed3b})['then'](()=>_0x1d27da['remove'](_0x51d278))['catch'](_0x59b2f1=>{throw console['error'](_0x59b2f1),new _0x59ce32('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0xc65efc,isFromAdapter:_0x18d587}){const _0x2299b1=this['getCommentThread'](_0xc65efc);if(!_0x2299b1)throw new _0x59ce32('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0xc65efc),this['_threads']['delete'](_0xc65efc),!_0x2299b1['isSubmitted']||_0x18d587||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x1484ac=this['context']['plugins']['get']('PendingActions'),{channelId:_0x56cd61}=_0x2299b1,_0x3ca91d=_0x1484ac['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x56cd61,'threadId':_0xc65efc})['then'](()=>_0x1484ac['remove'](_0x3ca91d))['catch'](_0x2ed107=>{throw console['error'](_0x2ed107),new _0x59ce32('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x5b0a23,unlinkedAt:_0x2de72d,context:_0x444792,attributes:_0xa79d2d,isFromAdapter:_0x5d1a4f}){if('string'!=typeof _0x5b0a23)throw new _0x59ce32('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x5b0a23});if(!this['hasCommentThread'](_0x5b0a23))throw new _0x59ce32('commentsrepository-missing-comment-thread',null,{'threadId':_0x5b0a23});const _0x766fd1=this['getCommentThread'](_0x5b0a23);let _0x2b7ed4=!0x1;if(void 0x0!==_0x444792&&_0x766fd1['context']!==_0x444792&&(_0x766fd1['context']=_0x444792,_0x2b7ed4=!0x0),void 0x0!==_0x2de72d&&_0x766fd1['unlinkedAt']!==_0x2de72d&&(_0x766fd1['unlinkedAt']=_0x2de72d,_0x2b7ed4=!0x0),_0xa79d2d&&!It(_0xa79d2d,_0x766fd1['attributes'])&&(_0x766fd1['attributes']=_0xa79d2d,_0x2b7ed4=!0x0),!_0x2b7ed4)return Promise['resolve']();if(!_0x766fd1['isSubmitted']||_0x5d1a4f||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x261844=this['context']['plugins']['get']('PendingActions'),{channelId:_0x371f6d}=_0x766fd1,_0x37c301=_0x261844['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x371f6d,'threadId':_0x5b0a23,'context':_0x444792,'unlinkedAt':_0x2de72d,'attributes':_0xa79d2d})['then'](()=>_0x261844['remove'](_0x37c301))['catch'](_0x3f333f=>{throw console['error'](_0x3f333f),new _0x59ce32('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x3fe9a3){const _0x4c0e8f=this['context']['plugins']['get'](N),_0x4baa71=this['getCommentThread'](_0x3fe9a3);if(this['_threadToController']['has'](_0x4baa71)){const _0xe29ef9=this['_threadToController']['get'](_0x4baa71),_0x5ec60a=_0xe29ef9['view'],_0x312909=_0x4c0e8f['getByInnerView'](_0x5ec60a);this['_threadToController']['delete'](_0x4baa71),this['_viewToController']['delete'](_0x5ec60a),_0x312909&&_0x4c0e8f['remove'](_0x312909),_0xe29ef9['destroy'](),_0x5ec60a['destroy']()['then'](()=>{this['_unbindEditors'](_0x5ec60a);});}}['_updateActiveAnnotation']({threadId:_0x324eda,resolvedAt:_0x17e247}){const _0x2692d3=!!_0x17e247,_0xa4ce63=this['context']['plugins']['get'](N),_0xf124b7=this['getCommentThread'](_0x324eda);if(this['_threadToController']['has'](_0xf124b7)){const _0x5bcbeb=this['_threadToController']['get'](_0xf124b7)['view'],_0x3a78da=_0xa4ce63['getByInnerView'](_0x5bcbeb);_0x3a78da&&(_0x2692d3&&_0xa4ce63['_removeActiveAnnotation'](_0x3a78da),_0x3a78da['refreshVisibility']());}}['_getExternalAuthor'](_0x4f5e2f){const _0x1ec059=this['context']['plugins']['get'](it),_0x143c28=lt('external:'+_0x4f5e2f),_0xd260a0=_0x1ec059['getUser'](_0x143c28);return _0xd260a0||_0x1ec059['addUser']({'id':_0x143c28,'name':_0x4f5e2f});}['_createNewComment']({threadId:_0x3cfad1,commentId:_0x1e6c78=_0xa3844f(),content:_0x1cd48a,authorId:_0x57de5b,createdAt:_0x3c0c5c,attributes:_0x431d6a}){if('string'!=typeof _0x1e6c78)throw new _0x59ce32('commentsrepository-invalid-commentid');if('string'!=typeof _0x57de5b)throw new _0x59ce32('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x1cd48a||!_0x1cd48a['trim']())throw new _0x59ce32('commentsrepository-invalid-comment-content');const _0xb625d6=this['context']['plugins']['get'](it)['getUser'](_0x57de5b);if(!_0xb625d6)throw new _0x59ce32('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x57de5b});let _0x216b6c=null,_0x394b42=_0x3c0c5c;return _0x431d6a&&_0x431d6a['@external']&&(_0x216b6c=this['_getExternalAuthor'](_0x431d6a['@external']['authorName']),_0x394b42=new Date(_0x431d6a['@external']['createdAt'])),new re(this,{'threadId':_0x3cfad1,'id':_0x1e6c78,'author':_0x216b6c||_0xb625d6,'creator':_0xb625d6,'content':_0x1cd48a,'createdAt':_0x3c0c5c,'authoredAt':_0x394b42,'attributes':_0x431d6a});}['_addComment'](_0x299944){let {threadId:_0x1645f7,content:_0x864c1a,attributes:_0x3e68a7,isFromAdapter:_0x13beef}=_0x299944;const _0xf2fb30=this['getCommentThread'](_0x299944['threadId']);if(!_0xf2fb30)throw new _0x59ce32('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x524f40=this['_createNewComment'](_0x299944),{id:_0x5403d3}=_0x524f40;if(_0xf2fb30['_add'](_0x524f40),_0x13beef||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0xf2fb30['isSubmitted'])return Promise['resolve']();const _0x3e4c12=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2df261}=_0xf2fb30,_0x5080e8=_0x3e4c12['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x3e68a7||(_0x3e68a7={}),this['adapter']['addComment']({'channelId':_0x2df261,'threadId':_0x1645f7,'commentId':_0x5403d3,'content':_0x864c1a,'attributes':_0x3e68a7})['then'](_0x3e19ae=>{_0x3e4c12['remove'](_0x5080e8),_0x3e19ae&&this['_updateComment']({'channelId':_0x2df261,'threadId':_0x1645f7,'commentId':_0x5403d3,'createdAt':_0x3e19ae['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x4218f9=>{throw console['error'](_0x4218f9),new _0x59ce32('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x40ee64,commentId:_0xe7a398,content:_0x4ab564,createdAt:_0x5c00ac,attributes:_0x7f7a90,isFromAdapter:_0x18d118}){if(void 0x0!==_0x4ab564&&('string'!=typeof _0x4ab564||!_0x4ab564['trim']()['length']))throw new _0x59ce32('commentsrepository-update-comment-invalid-content');const _0x16130d=this['getCommentThread'](_0x40ee64),_0x1451d4=_0x16130d['getComment'](_0xe7a398);if(!_0x1451d4)throw new _0x59ce32('commentsrepository-update-missing-comment',this);let _0x51e520=!0x1;if(_0x4ab564&&_0x4ab564!==_0x1451d4['content']&&(_0x1451d4['isEditable']||_0x18d118)&&(_0x1451d4['content']=_0x4ab564,_0x51e520=!0x0),_0x5c00ac&&_0x5c00ac!==_0x1451d4['createdAt']&&(_0x1451d4['createdAt']=_0x5c00ac,_0x1451d4['attributes']&&_0x1451d4['attributes']['@external']||(_0x1451d4['authoredAt']=_0x5c00ac),_0x51e520=!0x0),_0x7f7a90&&!It(_0x7f7a90,_0x1451d4['attributes'])&&(_0x1451d4['attributes']=_0x7f7a90,_0x51e520=!0x0),!_0x51e520)return Promise['resolve']();if(_0x16130d['fire']('commentUpdated'),_0x18d118||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x18f448=this['context']['plugins']['get']('PendingActions'),{channelId:_0x19ecae}=this['getCommentThread'](_0x1451d4['threadId']),_0x56b343=_0x18f448['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x19ecae,'threadId':_0x40ee64,'commentId':_0xe7a398,'content':_0x4ab564,'attributes':_0x7f7a90})['then'](()=>_0x18f448['remove'](_0x56b343))['catch'](_0x4361d3=>{throw console['error'](_0x4361d3),new _0x59ce32('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0xad6941,commentId:_0xba9261,isFromAdapter:_0x102b34}){const _0x396657=this['getCommentThread'](_0xad6941),_0x290516=_0x396657['getComment'](_0xba9261);if(!_0x290516)throw new _0x59ce32('commentsrepository-remove-missing-comment',this);if(_0x396657['_remove'](_0x290516),_0x102b34||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x8bc850=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1ddfdb}=_0x396657,_0x108d54=_0x8bc850['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x1ddfdb,'threadId':_0xad6941,'commentId':_0xba9261})['then'](()=>_0x8bc850['remove'](_0x108d54))['catch'](_0xa4def4=>{throw console['error'](_0xa4def4),new _0x59ce32('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
30
+ _0x13a315(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x4b628f,_0x584ba5){super();const _0x138e90=_0x584ba5['isResolvable'];this['channelId']=_0x584ba5['channelId'],this['id']=_0x584ba5['id'],this['comments']=new _0x4fd75f(),this['_repository']=_0x4b628f,this['_isAttached']=!0x1,this['_isSubmitted']=_0x584ba5['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x4b628f,'_permissions',_0x4b628f,'_readOnlyChannels',()=>_0x4b628f['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x4b628f,'_permissions',()=>_0x4b628f['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x4b628f,'_permissions',()=>{const _0x551003=_0x4b628f['getPermissions'](this['channelId']);return _0x551003['write']||_0x551003['admin'];}),this['bind']('isResolvable')['to'](_0x4b628f,'_permissions',()=>_0x138e90&&_0x4b628f['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x584ba5['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x2351a0,_0x24efa3)=>_0x2351a0?_0x24efa3?_0x2351a0<_0x24efa3?_0x2351a0:_0x24efa3:_0x2351a0:_0x24efa3),this['set']('unlinkedAt',_0x584ba5['unlinkedAt']||null),this['set']('resolvedAt',_0x584ba5['resolvedAt']||null),this['set']('resolvedBy',_0x584ba5['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x14e1dd=>!!_0x14e1dd),this['set']('attributes',_0x584ba5['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x40885f,_0x27afde)=>_0x40885f+_0x27afde['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x9ecdcc,id:_0x462770}=this;this['_repository']['fire'](_t('submitCommentThread',_0x9ecdcc),{'channelId':_0x9ecdcc,'threadId':_0x462770});}['setUnlinkedAt'](_0x456e34){this['_update']({'unlinkedAt':_0x456e34});}['resolve']({resolvedAt:_0xd8cc4b=new Date(),resolvedBy:_0x7b84dd=null,isFromAdapter:_0x4a9b43=!0x1}={}){const _0x89b5bc=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x23cbfb,id:_0x42c1ac}=this;this['_repository']['fire'](_t('resolveCommentThread',_0x23cbfb),{'channelId':_0x23cbfb,'threadId':_0x42c1ac,'resolvedAt':_0xd8cc4b,'resolvedBy':_0x7b84dd||_0x89b5bc['id'],'isFromAdapter':_0x4a9b43});}['reopen']({isFromAdapter:_0x223225=!0x1}={}){const {channelId:_0x48acdd,id:_0x1c17bf}=this;this['_repository']['fire'](_t('reopenCommentThread',_0x48acdd),{'channelId':_0x48acdd,'threadId':_0x1c17bf,'isFromAdapter':_0x223225});}['setContext'](_0x120e0a){this['context']||this['_update']({'context':_0x120e0a});}['setAttribute'](_0x3ab58d,_0x532224){const _0x6ba914=pt(this['attributes']);wt(_0x6ba914,_0x3ab58d,_0x532224),this['_update']({'attributes':_0x6ba914});}['removeAttribute'](_0x27617a){const _0x1acadd=pt(this['attributes']);At(_0x1acadd,_0x27617a),this['_update']({'attributes':_0x1acadd});}['remove']({isFromAdapter:_0x563d5c=!0x1}={}){const {channelId:_0x5e1d4d,id:_0x273c64}=this;this['_repository']['fire'](_t('removeCommentThread',_0x5e1d4d),{'channelId':_0x5e1d4d,'threadId':_0x273c64,'isFromAdapter':_0x563d5c});}['attachTo'](_0x12a1f6){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x12a1f6});}['addComment'](_0x420c29){const {channelId:_0x56b53b,id:_0x54dae4}=this;this['_repository']['fire'](_t('addComment',_0x56b53b,_0x54dae4),Object['assign']({'channelId':_0x56b53b,'threadId':_0x54dae4},_0x420c29));}['getComment'](_0xc4a7fc){if('string'!=typeof _0xc4a7fc)throw new _0x59ce32('commentsrepository-get-comment-invalid-id',null,{'commentId':_0xc4a7fc});return this['comments']['get'](_0xc4a7fc);}['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'](_0x46e4c6=>_0x46e4c6['toJSON']()),'attributes':this['attributes']};}['_add'](_0x3f8543){return this['listenTo'](_0x3f8543,'change:authoredAt',()=>{const _0x56e9ef=this['_findOptimalIndex'](_0x3f8543),_0x41f966=this['comments'];_0x56e9ef-0x1!=_0x41f966['getIndex'](_0x3f8543)&&_0x56e9ef+0x1!=_0x41f966['getIndex'](_0x3f8543)&&(this['_remove'](_0x3f8543),this['_add'](_0x3f8543));}),this['comments']['add'](_0x3f8543,this['_findOptimalIndex'](_0x3f8543));}['_update'](_0xc60452){const {channelId:_0x2c8d1d,id:_0x582b0e}=this;this['_repository']['fire'](_t('updateCommentThread',_0x2c8d1d),{..._0xc60452,'channelId':_0x2c8d1d,'threadId':_0x582b0e});}['_remove'](_0xc08ba4){return this['stopListening'](_0xc08ba4),_0xc08ba4['destroy'](),this['comments']['remove'](_0xc08ba4);}['_findOptimalIndex'](_0x1e4e57){const _0x2d2a32=this['comments']['find'](_0x33bd75=>new Date(_0x33bd75['authoredAt'])['getTime']()>new Date(_0x1e4e57['authoredAt'])['getTime']());return _0x2d2a32?this['comments']['getIndex'](_0x2d2a32):this['length'];}}class re extends/* #__PURE__ -- @preserve */
31
+ _0x13a315(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x112f79,_0x4d6d42){super();const _0x10890a=_0x112f79['context']['plugins']['get'](it)['me'],_0x5dc0d8=_0x112f79['getCommentThread'](_0x4d6d42['threadId']),_0x2f7285=0x0===_0x5dc0d8['comments']['length'],_0x2417f4=_0x10890a===_0x4d6d42['author'];this['id']=_0x4d6d42['id'],this['threadId']=_0x4d6d42['threadId'],this['author']=_0x4d6d42['author'],this['creator']=_0x4d6d42['creator'],this['isExternal']=Boolean(_0x4d6d42['attributes']&&_0x4d6d42['attributes']['@external']),this['set']('content',_0x4d6d42['content']),this['createdAt']=_0x4d6d42['createdAt']||new Date(),this['set']('authoredAt',_0x4d6d42['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x5dc0d8,'resolvedAt'),this['set']('attributes',_0x4d6d42['attributes']||{}),this['bind']('isEditable')['to'](_0x112f79,'_permissions',()=>{const _0x35e17c=_0x112f79['getPermissions'](_0x5dc0d8['channelId'])['write'],_0x4e1c00=_0x112f79['getPermissions'](_0x5dc0d8['channelId'])['modifyAll'];return _0x2417f4&&_0x35e17c||!_0x2417f4&&_0x4e1c00;}),this['bind']('isRemovable')['to'](_0x5dc0d8,'isRemovable',_0x112f79,'_permissions',_0x5b36c1=>{const _0x52a4a4=_0x112f79['getPermissions'](_0x5dc0d8['channelId'])['write'],_0x3c04d7=_0x112f79['getPermissions'](_0x5dc0d8['channelId'])['modifyAll'];return _0x2417f4&&_0x52a4a4||_0x5b36c1&&_0x2f7285||!_0x2417f4&&_0x3c04d7&&!_0x2f7285;}),this['bind']('isReadOnly')['to'](_0x5dc0d8,'isReadOnly'),this['_repository']=_0x112f79;}get['weight'](){return Math['max'](function(_0x37786){const _0x56a275=document['createElement']('div');return _0x56a275['innerHTML']=_0x37786,_0x56a275['textContent']['length'];}(this['content']),0xc8);}['update'](_0x14165f){const {threadId:_0x213236,id:_0x2c2259}=this;if(!this['_repository']['hasCommentThread'](_0x213236))throw new _0x59ce32('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x44763c}=this['_repository']['getCommentThread'](_0x213236);this['_repository']['fire'](_t('updateComment',_0x44763c,_0x213236),{'channelId':_0x44763c,'threadId':_0x213236,'commentId':_0x2c2259,..._0x14165f});}['setAttribute'](_0x53fb5f,_0x25d66e){const _0x192169=pt(this['attributes']);wt(_0x192169,_0x53fb5f,_0x25d66e),this['update']({'attributes':_0x192169});}['removeAttribute'](_0x8a8930){const _0x20403b=pt(this['attributes']);At(_0x20403b,_0x8a8930),this['update']({'attributes':_0x20403b});}['remove'](_0x3539ad={}){if(!_0x3539ad['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x5e93b7,id:_0x1a874f}=this;if(!this['_repository']['hasCommentThread'](_0x5e93b7))throw new _0x59ce32('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x22c0f4}=this['_repository']['getCommentThread'](_0x5e93b7);this['_repository']['fire'](_t('removeComment',_0x22c0f4,_0x5e93b7),{'channelId':_0x22c0f4,'threadId':_0x5e93b7,'commentId':_0x1a874f,..._0x3539ad});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function _t(_0x26f452,..._0x5f4b69){for(const _0x7b0b78 of _0x5f4b69)void 0x0!==_0x7b0b78&&(_0x26f452+=':'+String(_0x7b0b78));return _0x26f452;}class J extends _0x324c72{['refresh'](){const _0x3f693c=this['editor']['model']['document']['selection'];for(const _0x273ae4 of _0x3f693c['getRanges']())if(this['_hasContent'](_0x273ae4))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x3ef2ca=_0xa3844f()}={}){const _0x3f27b6=this['editor']['model'],_0x131a07=[];for(const _0x107581 of _0x3f27b6['document']['selection']['getRanges']())this['_hasContent'](_0x107581)&&_0x131a07['push'](this['_trimToContent'](_0x107581));_0x3f27b6['change'](_0xb24d76=>{for(const _0xabaa58 of _0x131a07){const _0x739951=_0xa3844f()['substr'](0x1,0x5),_0x331855='comment:'+_0x3ef2ca+':'+_0x739951;_0xb24d76['addMarker'](_0x331855,{'range':_0xabaa58,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x539992){for(const _0x5b1988 of _0x539992['getItems']())if(this['_itemIsContent'](_0x5b1988))return!0x0;return!0x1;}['_itemIsContent'](_0x3f220a){return _0x3f220a['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x3f220a)&&!_0x3f220a['is']('element','tableCell');}['_trimToContent'](_0x5c63e9){const _0x5af134=_0xd4e7c8=>!this['_itemIsContent'](_0xd4e7c8['item']),_0x1585e0=_0x5c63e9['start']['getLastMatchingPosition'](_0x5af134),_0x757914=_0x5c63e9['end']['getLastMatchingPosition'](_0x5af134,{'direction':'backward'});return this['editor']['model']['createRange'](_0x1585e0,_0x757914);}}class P extends _0x5a85ea{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3a80f8){super(_0x3a80f8),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x13646b=this['editor'],_0x2c3017=_0x13646b['model']['document']['selection'],_0x2f0c5e=_0x58a7c2(()=>this['refreshSelectedViews'](),0xa);_0x2c3017['on']('change:range',(_0x3a0bd9,_0x5bf5fe)=>{_0x5bf5fe['directChange']&&(_0x2f0c5e['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x13646b['editing']['view']['document'],'change:isFocused',(_0x678d63,_0x1ee3e4,_0x3d4cd2)=>{_0x3d4cd2&&_0x2f0c5e();}),this['listenTo'](_0x13646b['ui']['focusTracker'],'change:isFocused',(_0xb87857,_0x245fb7,_0x2baeb1)=>{_0x2baeb1||_0x13646b['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x4831c2=>this['_editorAnnotationsData']['has'](_0x4831c2['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x400dd4){if(this['_editorAnnotations']['has'](_0x400dd4['view']))return;this['_editorAnnotations']['add'](_0x400dd4['view']),this['editor']['ui']['focusTracker']['add'](_0x400dd4['view']['element']);const _0x4e74fd=this['editor']['plugins']['get'](N);this['listenTo'](_0x4e74fd['collection'],'remove',(_0x56d5bb,_0x131c42)=>{this['editor']['ui']['focusTracker']['remove'](_0x131c42['view']['element']),this['_editorAnnotations']['delete'](_0x131c42['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x8d5c89){if('function'!=typeof _0x8d5c89)throw new _0x59ce32('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x8d5c89);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x410826,annotations:_0x3b6eb9}){const _0x322d49=[],_0x182edb=this['editor']['model']['document']['selection'],_0xa96da6=Array['from'](_0x182edb['getRanges']());for(const [_0x607f92,_0x570a8e]of this['_editorAnnotationsData']){const _0x514580=_0x44c6f4(_0x570a8e),_0x1492b8=_0x3b6eb9['getByInnerView'](_0x607f92);_0x514580&&_0x1492b8&&_0x322d49['push']({'annotation':_0x1492b8,'range':_0x514580});}function _0x44c6f4(_0x2bf330){for(const _0x26c30f of _0x2bf330)for(const _0x12100f of _0xa96da6)if(_0x26c30f['containsRange'](_0x12100f,!_0x182edb['isCollapsed']))return _0x26c30f;return null;}return _0x322d49['sort']((_0x1de607,_0x3322ea)=>{const _0x2bb788=_0x1de607['range'],_0x5ecf65=_0x3322ea['range'];if(!_0x2bb788['isEqual'](_0x5ecf65)){if(_0x2bb788['containsRange'](_0x5ecf65,!0x0))return 0x1;if(_0x5ecf65['containsRange'](_0x2bb788,!0x0))return-0x1;}return _0x1de607['annotation']==_0x410826?-0x1:_0x3322ea['annotation']==_0x410826?0x1:0x0;})['map'](_0x1925f6=>_0x1925f6['annotation']);}get['_editorAnnotationsData'](){const _0x1901eb=new Map();for(const _0x17a796 of Array['from'](this['_dataCollectors']))for(const [_0x2da105,_0x314cac]of _0x17a796())_0x1901eb['set'](_0x2da105,_0x314cac);return _0x1901eb;}}class st extends _0x5a85ea{['afterInit'](){const _0x194fb4=this['editor'];if(!_0x194fb4['plugins']['has']('RestrictedEditingModeEditing'))return;_0x194fb4['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x5a85ea{constructor(_0x71c272){super(_0x71c272),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x575e30=this['editor'],_0x3c97ae=_0x575e30['commands']['get']('importWord'),_0x4b34b3=_0x575e30['plugins']['get'](it);_0x3c97ae&&(_0x3c97ae['on']('execute',(_0x5e1b23,[,_0x30670b])=>{_0x30670b['collaboration_features']={'comments':!0x0,'user_id':_0x4b34b3['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x3c97ae,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x47d3b8,_0x483b36){const {comment_threads:_0x55c10f}=_0x483b36;_0x55c10f&&_0x55c10f['forEach'](({thread_id:_0x223b8b,comments:_0x1d03f1,is_resolved:_0x51bc23})=>{const _0x290a99=new Date(),_0x328ece=_0x1d03f1['map'](({author:_0x70aef5,content:_0x446304,created_at:_0x3f9504})=>({'content':_0x446304,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x290a99,'attributes':{'@external':{'authorName':_0x70aef5,'createdAt':_0x3f9504?new Date(_0x3f9504):new Date(),'source':'importWord'}}})),_0x471c9d=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x471c9d,'threadId':_0x223b8b,'comments':_0x328ece,'resolvedAt':_0x51bc23?_0x290a99:null});});}}class at extends _0x5a85ea{constructor(_0x5126be){super(_0x5126be),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x2b31b1=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x2b31b1,'contentInsertion',(_0x54c39d,_0x5b1afc)=>this['_removeMarkersWithoutThreads'](_0x5b1afc['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x2cc56a){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x2cc56a;const _0x20010a=this['editor']['plugins']['get']('CommentsRepository');for(const _0x19feba of _0x2cc56a['keys']()){const [_0x2fc51b,_0x7af4b7]=_0x19feba['split'](':');'comment'!=_0x2fc51b||_0x20010a['hasCommentThread'](_0x7af4b7)||_0x2cc56a['delete'](_0x19feba);}return _0x2cc56a;}['_registerMarkerInClipboardPipeline'](){const _0x10a69d=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x28e4e9=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x28e4e9&&_0x10a69d['_registerMarkerToCopy']('comment',_0x28e4e9);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x3a42ad){switch(_0x3a42ad){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class r extends _0x5a85ea{static get['requires'](){return[o,P,it,st,ct,at];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3479e0){super(_0x3479e0),this['set']('isThreadsLoadingPaused',!0x0),_0x3479e0['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x63a8d3,_0x36ed82,_0x4d17bf,_0x45186e)=>{const _0x2f1e61=_0x4d17bf?he(_0x4d17bf)['id']:null;if(_0x3479e0['model']['change'](()=>{if(_0x2f1e61){const _0x26342e=this['getAllMarkersForId'](_0x2f1e61);for(const _0x31f24d of _0x26342e)_0x3479e0['editing']['reconvertMarker'](_0x31f24d);}if(_0x45186e){const {id:_0x587d8d}=he(_0x45186e),_0x112a02=this['getAllMarkersForId'](_0x587d8d);for(const _0x23d68b of _0x112a02)_0x3479e0['editing']['reconvertMarker'](_0x23d68b);}}),_0x2f1e61){const _0x52cdee=_0x3479e0['plugins']['get'](o)['getCommentThread'](_0x2f1e61);_0x52cdee&&_0x52cdee['isResolved']&&this['scrollToThreadMarker'](_0x2f1e61);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3c6bfa=this['editor'],_0x5cb012=_0x3c6bfa['plugins']['get'](o),_0x1a76e1=_0x3c6bfa['config']['get']('collaboration.channelId');_0x3c6bfa['commands']['add']('addCommentThread',new J(_0x3c6bfa)),this['listenTo'](_0x3c6bfa,'change:isReadOnly',(_0x454dfb,_0x328461,_0x57b9d3)=>{_0x5cb012['switchReadOnly'](_0x57b9d3,_0x3c6bfa['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x5cb012,ut('addCommentThread',_0x1a76e1),(_0x55cfef,{threadId:_0x5aa0da})=>{const _0x273c3e=this['editor']['plugins']['get'](o)['getCommentThread'](_0x5aa0da);_0x273c3e&&_0x273c3e['unlinkedAt']&&this['_attachArchivedThread'](_0x5aa0da);}),this['listenTo'](_0x5cb012,ut('removeCommentThread',_0x1a76e1),(_0xbf2224,{threadId:_0x402458})=>{_0x3c6bfa['model']['enqueueChange']({'isUndoable':!0x1},_0x276773=>{const _0x5d9e20=this['getAllMarkersForId'](_0x402458);for(const _0x4eec99 of _0x5d9e20)_0x276773['removeMarker'](_0x4eec99);});}),this['listenTo'](_0x5cb012,ut('resolveCommentThread',_0x1a76e1),(_0x1f18e2,{threadId:_0x361080})=>{(this['_reconvertMarkers'](_0x361080),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x361080)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x5cb012,ut('reopenCommentThread',_0x1a76e1),(_0x575e0f,{threadId:_0x4e01a4})=>{this['_reconvertMarkers'](_0x4e01a4);},{'priority':'low'}),this['listenTo'](_0x5cb012,ut('addComment',_0x1a76e1),(_0x36792d,{threadId:_0x119b60,isFromAdapter:_0x22bde7})=>{const _0x1df4e4=this['getAllMarkersForId'](_0x119b60);if(_0x22bde7||0x0==_0x1df4e4['length']||!_0x5cb012['hasCommentThread'](_0x119b60))return;0x1===_0x5cb012['getCommentThread'](_0x119b60)['length']&&_0x3c6bfa['model']['enqueueChange']({'isUndoable':!0x1},_0x13ad23=>{for(const _0x2b4c85 of _0x1df4e4)_0x13ad23['updateMarker'](_0x2b4c85,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['afterInit'](){!async function(_0x363409){const _0x40c19b=_0x46cc79([0x52,0x44,0x5a,0x78,0x37,0x6b,0x58,0x53,0x42,0x65,0x41,0x4d,0x55,0x51,0x4b,0x69,0x31,0x6c,0x4e,0x6d,0x61,0x64,0x70,0x35,0x68,0x46,0x76,0x4a,0x54,0x4f,0x39,0x50,0x34,0x45,0x6a,0x38,0x33,0x48,0x72,0x75,0x57,0x4c,0x56,0x74,0x59,0x77,0x47,0x32,0x67,0x63,0x6e,0x71,0x62,0x79,0x49,0x7a,0x73,0x66,0x36,0x43,0x6f,0x30]),_0xe11ba9=0x2420b81d,_0x548369=0x2427efad^_0xe11ba9,_0x27b6f7=window[_0x46cc79([0x44,0x61,0x74,0x65])][_0x46cc79([0x6e,0x6f,0x77])](),_0x93ebdf=_0x363409[_0x46cc79([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x10f132=new window[(_0x46cc79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30222c=>{_0x93ebdf[_0x46cc79([0x6f,0x6e,0x63,0x65])](_0x46cc79([0x72,0x65,0x61,0x64,0x79]),_0x30222c);}),_0x19464c={[_0x46cc79([0x6b,0x74,0x79])]:_0x46cc79([0x45,0x43]),[_0x46cc79([0x75,0x73,0x65])]:_0x46cc79([0x73,0x69,0x67]),[_0x46cc79([0x63,0x72,0x76])]:_0x46cc79([0x50,0x2d,0x32,0x35,0x36]),[_0x46cc79([0x78])]:_0x46cc79([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]),[_0x46cc79([0x79])]:_0x46cc79([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]),[_0x46cc79([0x61,0x6c,0x67])]:_0x46cc79([0x45,0x53,0x32,0x35,0x36])},_0x12bc25=_0x93ebdf[_0x46cc79([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x46cc79([0x67,0x65,0x74])](_0x46cc79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x565055(){let _0x16757d,_0x351d03=null,_0x257eff=null;try{if(_0x12bc25==_0x46cc79([0x47,0x50,0x4c]))return _0x46cc79([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x16757d=_0x3f19fc(),!_0x16757d)return _0x46cc79([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x16757d[_0x46cc79([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x257eff=_0x24864a(_0x16757d[_0x46cc79([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x16757d[_0x46cc79([0x6a,0x74,0x69])])),await _0x52161b()?_0x226a24()?_0x5f13a4()?_0x46cc79([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x38ecd3()?(_0x16757d[_0x46cc79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46cc79([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x351d03=_0x1ddd7e(_0x46cc79([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x16757d[_0x46cc79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46cc79([0x74,0x72,0x69,0x61,0x6c])&&(_0x351d03=_0x1ddd7e(_0x46cc79([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x16757d[_0x46cc79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46cc79([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x351d03=_0x1ddd7e(_0x46cc79([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4399b2()):_0x46cc79([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x46cc79([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x46cc79([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4c5cb3){return _0x46cc79([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5f13a4(){const _0x53cfb9=[_0x46cc79([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x46cc79([0x74,0x72,0x69,0x61,0x6c])][_0x46cc79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16757d[_0x46cc79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x27b6f7/0x3e8:0xe10*_0x548369;return _0x16757d[_0x46cc79([0x65,0x78,0x70])]<_0x53cfb9;}function _0x226a24(){const _0xbea261=_0x16757d[_0x46cc79([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xbea261&&(!!_0xbea261[_0x46cc79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46cc79([0x2a]))||(!!_0xbea261[_0x46cc79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46cc79([0x43,0x4d,0x54]))||!(!_0xbea261[_0x46cc79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46cc79([0x52,0x43,0x4d,0x54]))||!_0x43c7d7())));}function _0x38ecd3(){const _0x37ff53=_0x16757d[_0x46cc79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x37ff53||0x0==_0x37ff53[_0x46cc79([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xafd193}=new URL(window[_0x46cc79([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x37ff53[_0x46cc79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xafd193))return!0x0;const _0x147069=_0xafd193[_0x46cc79([0x73,0x70,0x6c,0x69,0x74])](_0x46cc79([0x2e]));return _0x37ff53[_0x46cc79([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5941de=>_0x5941de[_0x46cc79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46cc79([0x2a])))[_0x46cc79([0x6d,0x61,0x70])](_0x3de973=>_0x3de973[_0x46cc79([0x73,0x70,0x6c,0x69,0x74])](_0x46cc79([0x2e])))[_0x46cc79([0x73,0x6f,0x6d,0x65])](_0x1a834f=>_0x147069[_0x46cc79([0x65,0x76,0x65,0x72,0x79])]((_0x95c913,_0x971965)=>_0x1a834f[_0x971965]===_0x95c913||_0x1a834f[_0x971965]===_0x46cc79([0x2a])));}function _0x4399b2(){return _0x351d03&&_0x257eff?new window[(_0x46cc79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d81de,_0x357282)=>{_0x351d03[_0x46cc79([0x74,0x68,0x65,0x6e])](_0x2d81de,_0x357282),_0x257eff[_0x46cc79([0x74,0x68,0x65,0x6e])](_0x46aa05=>{_0x46aa05!=_0x46cc79([0x56,0x61,0x6c,0x69,0x64])&&_0x2d81de(_0x46aa05);},_0x357282);}):_0x351d03||_0x257eff||_0x46cc79([0x56,0x61,0x6c,0x69,0x64]);}}function _0x24864a(_0x17935f,_0xc0ffc7){return new window[(_0x46cc79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x68d4fc=>{if(_0x24bd3e())return _0x68d4fc(_0x46cc79([0x56,0x61,0x6c,0x69,0x64]));_0x12ba3d(),_0x93ebdf[_0x46cc79([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x46cc79([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x13b5ed=!0x1;const _0x1d0929=_0xa3844f();function _0x116cf7(_0x339a47){return!!_0x339a47&&(typeof _0x339a47===_0x46cc79([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x339a47===_0x46cc79([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x339a47[_0x46cc79([0x74,0x68,0x65,0x6e])]===_0x46cc79([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x339a47[_0x46cc79([0x63,0x61,0x74,0x63,0x68])]===_0x46cc79([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4eea0e(_0x59cd1b){_0x1c1aa4(_0x59cd1b)[_0x46cc79([0x74,0x68,0x65,0x6e])](_0x4e723c=>{if(!_0x4e723c||_0x4e723c[_0x46cc79([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x46cc79([0x6f,0x6b]))return _0x46cc79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3f9954(_0x243639(_0x1d0929+_0xc0ffc7))!=_0x4e723c[_0x46cc79([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x46cc79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x46cc79([0x56,0x61,0x6c,0x69,0x64]);})[_0x46cc79([0x74,0x68,0x65,0x6e])](_0x3024ff=>(_0x424e37(),_0x3024ff),()=>{const _0x190458=_0xf8e87a();return null==_0x190458?(_0x424e37(),_0x46cc79([0x56,0x61,0x6c,0x69,0x64])):_0x46cc79(_0x27b6f7-_0x190458>(0x2c3c1d^_0xe11ba9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x46cc79([0x74,0x68,0x65,0x6e])](_0x68d4fc)[_0x46cc79([0x63,0x61,0x74,0x63,0x68])](()=>{_0x68d4fc(_0x46cc79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2191b7=0x2416569d^_0xe11ba9;function _0x424e37(){const _0x2a701a=_0x46cc79([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f9954(_0x243639(_0x17935f)),_0x3b8e70=_0x1233e1(_0x3f9954(window[_0x46cc79([0x4d,0x61,0x74,0x68])][_0x46cc79([0x63,0x65,0x69,0x6c])](_0x27b6f7/_0x2191b7)));window[_0x46cc79([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46cc79([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a701a,_0x3b8e70);}function _0xf8e87a(){const _0x258820=_0x46cc79([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f9954(_0x243639(_0x17935f)),_0xf3534f=window[_0x46cc79([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46cc79([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x258820);return _0xf3534f?window[_0x46cc79([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1233e1(_0xf3534f),0x10)*_0x2191b7:null;}function _0x1c1aa4(_0x46ebb4){return new window[(_0x46cc79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f4e3d,_0x2d42a4)=>{_0x46ebb4[_0x46cc79([0x74,0x68,0x65,0x6e])](_0x2f4e3d,_0x2d42a4),window[_0x46cc79([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d42a4,0x24216cdd^_0xe11ba9);});}}_0x93ebdf[_0x46cc79([0x6f,0x6e])](_0x46cc79([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5012a2,_0x1c8e67)=>{if(_0x1c8e67[0x0]!=_0x17935f)return _0x68d4fc(_0x46cc79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1c8e67[0x1]={..._0x1c8e67[0x1],[_0x46cc79([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1d0929};},{[_0x46cc79([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46cc79([0x68,0x69,0x67,0x68])}),_0x93ebdf[_0x46cc79([0x6f,0x6e])](_0x46cc79([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4bb611=>{_0x116cf7(_0x4bb611[_0x46cc79([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x13b5ed=!0x0,_0x4eea0e(_0x4bb611[_0x46cc79([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x46cc79([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46cc79([0x6c,0x6f,0x77])}),_0x10f132[_0x46cc79([0x74,0x68,0x65,0x6e])](()=>{_0x13b5ed||_0x68d4fc(_0x46cc79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x24bd3e(){return _0x93ebdf[_0x46cc79([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46cc79([0x76,0x69,0x65,0x77])][_0x46cc79([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x46cc79([0x61,0x75,0x74,0x6f]);}function _0x12ba3d(){_0x93ebdf[_0x46cc79([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46cc79([0x76,0x69,0x65,0x77])][_0x46cc79([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x46cc79([0x61,0x75,0x74,0x6f]);}}function _0x1ddd7e(_0x1c85d3){const _0x5d9f53=[new window[(_0x46cc79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f18ca=>setTimeout(_0x3f18ca,0x242986d1^_0xe11ba9)),_0x10f132[_0x46cc79([0x74,0x68,0x65,0x6e])](()=>new window[(_0x46cc79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d1756=>{let _0x1141e8=0x0;_0x93ebdf[_0x46cc79([0x6d,0x6f,0x64,0x65,0x6c])][_0x46cc79([0x6f,0x6e])](_0x46cc79([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5099c9,_0x181335)=>{_0x181335[0x0][_0x46cc79([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1141e8++,_0x1141e8==(0x2420b9e5^_0xe11ba9)&&(_0x1d1756(),_0x5099c9[_0x46cc79([0x6f,0x66,0x66])]());});}))];return window[_0x46cc79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x46cc79([0x72,0x61,0x63,0x65])](_0x5d9f53)[_0x46cc79([0x74,0x68,0x65,0x6e])](()=>_0x1c85d3);}async function _0x365782(){await _0x10f132,_0x93ebdf[_0x46cc79([0x6d,0x6f,0x64,0x65,0x6c])][_0x46cc79([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5c432c,_0x93ebdf[_0x46cc79([0x6d,0x6f,0x64,0x65,0x6c])][_0x46cc79([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5c432c,_0x93ebdf[_0x46cc79([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x46cc79([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x43c7d7(){return _0x2d7b50(_0x46cc79([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x444bfd(_0x46cc79([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x46cc79([0x73,0x74,0x61,0x74,0x65])]==_0x46cc79([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x21e127(_0x54f547){const _0x5ce997=_0x398dc8();_0x93ebdf[_0x5ce997]=_0x46cc79([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x54f547,_0x54f547!=_0x46cc79([0x56,0x61,0x6c,0x69,0x64])&&_0x365782();}function _0x398dc8(){const _0x48e7eb=window[_0x46cc79([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x46cc79([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x46cc79([0x6e,0x6f,0x77])]())[_0x46cc79([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x46cc79([0x2e]),'');let _0x2f644d=_0x46cc79([0x52]);for(let _0x583ed4=0x0;_0x583ed4<_0x48e7eb[_0x46cc79([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x583ed4+=0x2){let _0x5246d2=window[_0x46cc79([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48e7eb[_0x46cc79([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x583ed4,_0x583ed4+0x2));_0x5246d2>=_0x40c19b[_0x46cc79([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5246d2-=_0x40c19b[_0x46cc79([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2f644d+=_0x40c19b[_0x5246d2];}return _0x2f644d;}function _0x3f19fc(){const _0x20518e=_0x12bc25[_0x46cc79([0x73,0x70,0x6c,0x69,0x74])](_0x46cc79([0x2e]));if(0x3!=_0x20518e[_0x46cc79([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x369037(_0x20518e[0x1]);function _0x369037(_0x3df452){const _0x40c7ce=_0x1bd07c(_0x3df452);return _0x40c7ce&&_0x4da2df()?_0x40c7ce:null;function _0x4da2df(){const _0x348116=_0x40c7ce[_0x46cc79([0x6a,0x74,0x69])],_0x1e5297=window[_0x46cc79([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x348116[_0x46cc79([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x348116[_0x46cc79([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x56286e={..._0x40c7ce,[_0x46cc79([0x6a,0x74,0x69])]:_0x348116[_0x46cc79([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x348116[_0x46cc79([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x56286e[_0x46cc79([0x76,0x63])],_0x243639(_0x56286e)==_0x1e5297;}}}async function _0x52161b(){let _0x1ba3f6=!0x0;try{const _0x5791d2=_0x12bc25[_0x46cc79([0x73,0x70,0x6c,0x69,0x74])](_0x46cc79([0x2e])),[_0x4005f6,_0x5d4993,_0x338a9a]=_0x5791d2;return _0x4bd681(_0x4005f6),await _0x3132b0(_0x4005f6,_0x5d4993,_0x338a9a),_0x1ba3f6;}catch(_0x9b5620){return!0x1;}function _0x4bd681(_0x285f89){const _0xab85a3=_0x1bd07c(_0x285f89);_0xab85a3&&_0xab85a3[_0x46cc79([0x61,0x6c,0x67])]==_0x46cc79([0x45,0x53,0x32,0x35,0x36])||(_0x1ba3f6=!0x1);}async function _0x3132b0(_0x223496,_0x36a5de,_0x5412c9){const _0x2a3309=window[_0x46cc79([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x46cc79([0x66,0x72,0x6f,0x6d])](_0x59bd12(_0x5412c9),_0x40e7b0=>_0x40e7b0[_0x46cc79([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x510d98=new window[(_0x46cc79([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x46cc79([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x223496+_0x46cc79([0x2e])+_0x36a5de),_0x236521=window[_0x46cc79([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x46cc79([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x236521)return;const _0xd10069=await _0x236521[_0x46cc79([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x46cc79([0x6a,0x77,0x6b]),_0x19464c,{[_0x46cc79([0x6e,0x61,0x6d,0x65])]:_0x46cc79([0x45,0x43,0x44,0x53,0x41]),[_0x46cc79([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x46cc79([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x46cc79([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x236521[_0x46cc79([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x46cc79([0x6e,0x61,0x6d,0x65])]:_0x46cc79([0x45,0x43,0x44,0x53,0x41]),[_0x46cc79([0x68,0x61,0x73,0x68])]:{[_0x46cc79([0x6e,0x61,0x6d,0x65])]:_0x46cc79([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd10069,_0x2a3309,_0x510d98)||(_0x1ba3f6=!0x1);}}function _0x1bd07c(_0x4ef68f){return _0x4ef68f[_0x46cc79([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x46cc79([0x65,0x79]))?JSON[_0x46cc79([0x70,0x61,0x72,0x73,0x65])](_0x59bd12(_0x4ef68f)):null;}function _0x59bd12(_0x3643bb){return window[_0x46cc79([0x61,0x74,0x6f,0x62])](_0x3643bb[_0x46cc79([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x46cc79([0x2b]))[_0x46cc79([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x46cc79([0x2f])));}function _0x243639(_0x49f381){let _0x5642ef=0x1505;function _0x1f32a1(_0x26d5d6){for(let _0x1cc6f6=0x0;_0x1cc6f6<_0x26d5d6[_0x46cc79([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1cc6f6++){const _0x429176=_0x26d5d6[_0x46cc79([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1cc6f6);_0x5642ef=(_0x5642ef<<0x5)+_0x5642ef+_0x429176,_0x5642ef&=_0x5642ef;}}function _0x305edd(_0x39a80d){Array[_0x46cc79([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x39a80d)?_0x39a80d[_0x46cc79([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x305edd):_0x39a80d&&typeof _0x39a80d==_0x46cc79([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x46cc79([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x39a80d)[_0x46cc79([0x73,0x6f,0x72,0x74])]()[_0x46cc79([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2e7513,_0x2e1eba])=>{_0x1f32a1(_0x2e7513),_0x305edd(_0x2e1eba);}):_0x1f32a1(window[_0x46cc79([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x39a80d));}return _0x305edd(_0x49f381),_0x5642ef>>>0x0;}function _0x3f9954(_0x4db49e){return _0x4db49e[_0x46cc79([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x46cc79([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x46cc79([0x30]));}function _0x1233e1(_0x2823b1){return _0x2823b1[_0x46cc79([0x73,0x70,0x6c,0x69,0x74])]('')[_0x46cc79([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x46cc79([0x6a,0x6f,0x69,0x6e])]('');}function _0x2d7b50(_0x58dc75){return _0x93ebdf[_0x46cc79([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x46cc79([0x68,0x61,0x73])](_0x58dc75);}function _0x444bfd(_0x2a7fbb){return _0x93ebdf[_0x46cc79([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x46cc79([0x67,0x65,0x74])](_0x2a7fbb);}function _0x5c432c(){}function _0x46cc79(_0x55acc3){return _0x55acc3['map'](_0x8c9cd4=>String['fromCharCode'](_0x8c9cd4))['join']('');}_0x21e127(await _0x565055());}(this);}['destroy'](){const _0x4d5e55=this['editor']['plugins']['get'](o),_0x36a125=this['editor']['config']['get']('collaboration.channelId');for(const _0xa0eb59 of _0x4d5e55['getCommentThreads']({'channelId':_0x36a125}))_0x4d5e55['_detachCommentThread'](_0xa0eb59['id']),_0x4d5e55['_threads']['delete'](_0xa0eb59['id']);super['destroy']();}['hasMarkerForId'](_0x33bb47){return this['getAllMarkersForId'](_0x33bb47)['length']>0x0;}['getAllMarkersForId'](_0x4a101d){const _0x2400f7=[];for(const _0x5e6d1f of this['editor']['model']['markers'])_0x5e6d1f['name']['startsWith']('comment:'+_0x4a101d)&&_0x2400f7['push'](_0x5e6d1f);return _0x2400f7;}['scrollToThreadMarker'](_0x4094c5){const _0x409de4=this['_getTargetForId'](_0x4094c5);_0x409de4&&setTimeout(()=>{this['activeMarker']&&he(this['activeMarker'])['id']===_0x4094c5&&rt({'target':_0x409de4[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x20032c){this['editor']['model']['change'](()=>{for(const _0x15e16f of this['getAllMarkersForId'](_0x20032c))this['editor']['editing']['reconvertMarker'](_0x15e16f);});}['_attachArchivedThread'](_0x295eba){const _0x5cbefb=this['editor']['plugins']['get'](o),_0x3a929c=this['editor']['plugins']['get'](P),_0x1b1635=_0x5cbefb['getCommentThread'](_0x295eba);if(!_0x1b1635['isAttached']){const _0x486e3b=_0x1b1635['attachTo'](()=>this['_getTargetForId'](_0x1b1635['id']));_0x3a929c['registerAnnotation'](_0x486e3b),_0x1b1635['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x5b13e8=this['editor'],_0x5228ce=_0x5b13e8['plugins']['get'](it);_0x5b13e8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x51e9ed,_0x109d58)=>{const {id:_0x10ec19}=he(_0x51e9ed['markerName']),_0x5a6826=_0x5b13e8['plugins']['get'](o)['getCommentThread'](_0x10ec19),_0x1f2954=this['activeMarker']&&he(this['activeMarker'])['id']===_0x10ec19;let _0xd9a287;if(_0x5a6826&&_0x5a6826['isResolved']&&!_0x1f2954&&_0x51e9ed['item'])return _0x109d58['consumable']['consume'](_0x51e9ed['item'],'addMarker:'+_0x51e9ed['markerName']),_0x109d58['consumable']['consume'](_0x51e9ed['item'],'removeMarker:'+_0x51e9ed['markerName']),null;const _0x250575=['ck-comment-marker'];return _0x1f2954&&_0x250575['push']('ck-comment-marker--active'),_0xd9a287=_0x5a6826&&_0x5a6826['length']?_0x5a6826['comments']['first']['author']['id']:_0x5228ce['me']['id'],{'classes':_0x250575,'attributes':{'data-comment':_0x10ec19,'data-author-id':_0xd9a287}};}}),_0x5b13e8['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x3ed982,{options:_0xe3dcc1})=>{const _0x406a91=_0x5b13e8['plugins']['get'](o),_0x484c15=_0x5b13e8['model']['markers']['get'](_0x3ed982),{id:_0x444d1a,part:_0x3240ed}=he(_0x3ed982);if(_0x484c15&&!_0x484c15['affectsData'])return null;if(_0xe3dcc1['ignoreResolvedComments']){const _0xcc1b48=_0x406a91['getCommentThread'](_0x444d1a);if(_0xcc1b48&&_0xcc1b48['isResolved'])return null;}return{'group':'comment','name':_0x3240ed?_0x444d1a+':'+_0x3240ed:_0x444d1a};}}),_0x5b13e8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x45c5c1,{writer:_0x57813d})=>_0x57813d['createElement']('$marker',{'data-name':'comment:'+_0x45c5c1['getAttribute']('id')})}),_0x5b13e8['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x2ae4fb=this['editor'],_0x5d1f5c=_0x2ae4fb['plugins']['get'](o),_0x4f852a=new Set(),_0x1f8b12=new Set();_0x2ae4fb['model']['document']['registerPostFixer'](_0x25ab17=>{let _0x1ae12d=!0x1;for(const {name:_0x767c53,data:_0x29e794}of _0x2ae4fb['model']['document']['differ']['getChangedMarkers']()){const {group:_0x44b45b,id:_0xa5785e}=he(_0x767c53);let _0x4ccd67=_0x29e794['newRange'];if('comment'!==_0x44b45b||!_0x4ccd67)continue;const _0x5e6d2e='$graveyard'===_0x4ccd67['root']['rootName'];_0x5e6d2e||(_0x4ccd67=ft(_0x4ccd67,_0x2ae4fb['model']),!_0x4ccd67||_0x4ccd67['isCollapsed']||!_0x29e794['newRange']||_0x4ccd67['isEqual'](_0x29e794['newRange']))?_0x2ae4fb['model']['hasContent'](_0x4ccd67)&&!_0x5e6d2e?this['isThreadsLoadingPaused']?_0x4f852a['add'](_0x767c53):this['_handleThreadMarker'](_0x767c53,_0xa5785e):(_0x1f8b12['add'](_0x767c53),_0x4f852a['delete'](_0x767c53),_0x25ab17['removeMarker'](_0x767c53),_0x1ae12d=!0x0):(_0x25ab17['updateMarker'](_0x767c53,{'range':_0x4ccd67}),_0x1ae12d=!0x0);}return _0x1ae12d;}),this['on']('change:isThreadsLoadingPaused',(_0x5d9d64,_0x8f8849,_0x488ac5)=>{if(!_0x488ac5&&_0x4f852a['size'])for(const _0x345664 of _0x4f852a){const {id:_0x5b4278}=he(_0x345664);_0x4f852a['delete'](_0x345664),_0x2ae4fb['model']['markers']['get'](_0x345664)&&this['_handleThreadMarker'](_0x345664,_0x5b4278);}}),this['listenTo'](_0x2ae4fb['model']['document'],'change',(_0x518bdb,_0x21741a)=>{for(const {name:_0x1f8bda,data:{newRange:_0x2b68de}}of _0x2ae4fb['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3a2c94,id:_0x37d1b1}=he(_0x1f8bda);if('comment'!==_0x3a2c94)continue;const _0x14b569=_0x5d1f5c['getCommentThread'](_0x37d1b1),_0x31c5eb=this['hasMarkerForId'](_0x37d1b1);_0x14b569&&(!_0x14b569['_hasTargetInContent']&&_0x2b68de&&_0x2ae4fb['editing']['view']['once']('render',()=>{const _0x596e30=_0x2ae4fb['plugins']['get'](N),_0x4ede58=_0x5d1f5c['_threadToController']['get'](_0x14b569)['view'];_0x596e30['getByInnerView'](_0x4ede58)['refreshVisibility']();},{'priority':'low'}),_0x14b569['_hasTargetInContent']=_0x31c5eb||!!_0x2b68de),_0x2b68de||(_0x1f8b12['add'](_0x1f8bda),_0x4f852a['delete'](_0x1f8bda));}if(_0x21741a['isLocal'])for(const _0x4ad88c of _0x1f8b12){const {id:_0x7c9d2b}=he(_0x4ad88c),_0x327c03=_0x5d1f5c['getCommentThread'](_0x7c9d2b),_0x1938a9=this['hasMarkerForId'](_0x7c9d2b);_0x4f852a['delete'](_0x4ad88c),!_0x327c03||_0x1938a9||_0x327c03['unlinkedAt']||_0x327c03['setUnlinkedAt'](new Date());}_0x1f8b12['clear']();});}['_getTargetForId'](_0xb02909){const _0x392021=this['editor'],_0x2353dc=this['getAllMarkersForId'](_0xb02909);return et(_0x392021['editing'],_0x2353dc);}['_getTextContext'](_0x365005){const _0x3922b9=this['getAllMarkersForId'](_0x365005);let _0x5b66b7='',_0xf7fbb=!0x1;for(const _0x7c5b85 of _0x3922b9){const _0x168416=_0x7c5b85['getRange']();for(const _0xab953c of Array['from'](_0x168416['getItems']()))_0xab953c['is']('$textProxy')?(_0x5b66b7&&_0xf7fbb&&(_0x5b66b7+='\x20',_0xf7fbb=!0x1),_0x5b66b7+=_0xab953c['data']):_0xf7fbb=!0x0;_0xf7fbb=!0x0;}return _0x5b66b7['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x3f60cb,_0x41d9a1){const _0x4e96be=this['editor'],_0x499484=_0x4e96be['plugins']['get'](o);let _0x388fcc=_0x499484['getCommentThread'](_0x41d9a1);const _0xeb3e7d=_0x4e96be['config']['get']('collaboration.channelId'),_0x542c7f=_0x4e96be['plugins']['get'](P);if(_0x388fcc&&(_0x388fcc['unlinkedAt']&&_0x388fcc['setUnlinkedAt'](null),_0x388fcc['isAttached']))return _0x388fcc;return!this['getAllMarkersForId'](_0x41d9a1)[0x0]['managedUsingOperations']?_0x4e96be['editing']['view']['once']('render',()=>{if(_0x499484['getCommentThread'](_0x41d9a1))return;const _0xe4e087=_0x4e96be['plugins']['get'](N);_0x388fcc=_0x499484['openNewCommentThread']({'channelId':_0xeb3e7d,'threadId':_0x41d9a1,'target':()=>this['_getTargetForId'](_0x41d9a1),'context':{'type':'text','value':this['_getTextContext'](_0x41d9a1)}});const _0x1cc2fa=_0x499484['_threadToController']['get'](_0x388fcc)['view'],_0x53316a=_0xe4e087['getByInnerView'](_0x1cc2fa);_0x53316a&&_0x542c7f['registerAnnotation'](_0x53316a);},{'priority':'low'}):_0x499484['fetchCommentThread']({'channelId':_0xeb3e7d,'threadId':_0x41d9a1})['then'](_0x3997ac=>{if('destroyed'!==_0x4e96be['state']){if(_0x388fcc=_0x3997ac,_0x388fcc&&!_0x388fcc['isAttached']){const _0xb51890=_0x388fcc['attachTo'](()=>this['_getTargetForId'](_0x41d9a1));_0x542c7f['registerAnnotation'](_0xb51890),_0x388fcc['isResolved']&&this['_reconvertMarkers'](_0x41d9a1);}else{if(!_0x388fcc){const _0x5ac16b=this['getAllMarkersForId'](_0x41d9a1);_0x4e96be['model']['change'](_0x5795a1=>{for(const _0x586c2b of _0x5ac16b)_0x5795a1['removeMarker'](_0x586c2b);});}}}}),_0x388fcc;}['_handleThreadMarker'](_0x1fa655,_0x2c9fce){const _0x26cd5c=this['_attachMarkerToThread'](_0x1fa655,_0x2c9fce);_0x26cd5c&&!_0x26cd5c['context']&&_0x26cd5c['setContext']({'type':'text','value':this['_getTextContext'](_0x2c9fce)});}['_initAriaMarkerChangeAnnouncements'](){const _0x36661f=this['editor'];ot(_0x36661f['model'],({left:_0x1b3be6,entered:_0x1187ee})=>{for(const _0x5236fe of _0x1b3be6)if(dt(_0x5236fe)){_0x36661f['ui']['ariaLiveAnnouncer']['announce'](S(_0x36661f['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x45ac5e of _0x1187ee)if(dt(_0x45ac5e)){_0x36661f['ui']['ariaLiveAnnouncer']['announce'](S(_0x36661f['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x36a9ce)));break;}});}}function ut(_0x237d8c,_0x4b7661){return _0x4b7661?_0x237d8c+':'+_0x4b7661:_0x237d8c;}function he(_0x23a8bc){const _0x33e100=_0x23a8bc['split'](':');return{'group':_0x33e100[0x0],'id':_0x33e100[0x1],'part':_0x33e100[0x2]};}function ft(_0xc14c3a,_0x246115){const _0x32ee50=_0x246115['schema'],_0x20e64f=_0x246115['createRange'](_0xc14c3a['start']);for(const _0x2b0faa of _0xc14c3a['getWalker']()){const {type:_0x9257fa,item:_0x46445b,nextPosition:_0x523da3}=_0x2b0faa;if('text'===_0x9257fa||_0x32ee50['isObject'](_0x46445b)){const _0x2407e6=_0x246115['createPositionBefore'](_0x46445b);_0x20e64f['isCollapsed']&&(_0x20e64f['start']=_0x2407e6),_0x20e64f['end']=_0x523da3;}}return _0x20e64f;}function dt(_0x392b15){return'comment'===he(_0x392b15['name'])['group'];}var xt='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M4\x201.5h12A3.5\x203.5\x200\x200\x201\x2019.5\x205v8l-.005.192a3.5\x203.5\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.371-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.271-2.63l-.062-.07H4A3.5\x203.5\x200\x200\x201\x20.5\x2013V5A3.5\x203.5\x200\x200\x201\x204\x201.5ZM4\x203a2\x202\x200\x200\x200-2\x202v8a2\x202\x200\x200\x200\x202\x202h6.924a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L14.962\x2015H16a2\x202\x200\x200\x200\x202-2V5a2\x202\x200\x200\x200-2-2H4Z\x22/><path\x20d=\x22M9.75\x205a.75.75\x200\x200\x200-.75.75v2.5H6.5a.75.75\x200\x200\x200\x200\x201.5H9v2.5a.75.75\x200\x200\x200\x201.5\x200v-2.5H13a.75.75\x200\x200\x200\x200-1.5h-2.5v-2.5A.75.75\x200\x200\x200\x209.75\x205Z\x22/></svg>\x0a';class i extends _0x5a85ea{['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 _0x189476=this['editor'],_0x39c201=_0x189476['plugins']['get'](o),_0x31be0b=_0x189476['plugins']['get'](r),_0x2c8fcb=_0x189476['plugins']['get'](N),_0x265ff7=_0x189476['plugins']['get'](P);_0x189476['ui']['componentFactory']['add']('comment',()=>{const _0x2cd8e3=this['_createUIButton'](_0x57b97b);return _0x2cd8e3['tooltip']=!0x0,_0x2cd8e3;}),_0x189476['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x9c1b58)),_0x265ff7['addSourceCollector'](()=>{const _0x542e92=[];for(const [_0x47dc5b,_0x5cd5d2]of _0x39c201['_threadToController']){const _0x39c81f=_0x31be0b['getAllMarkersForId'](_0x47dc5b['id']),_0x2d2980=_0x39c81f['map'](_0x229ac1=>_0x229ac1['getRange']());_0x39c81f['length']>0x0&&_0x542e92['push']([_0x5cd5d2['view'],_0x2d2980]);}return _0x542e92;}),this['listenTo'](_0x2c8fcb,'change:activeAnnotations',(_0x2eb083,_0x18497d,_0xe0a22c)=>{const _0x439100=Array['from'](_0xe0a22c)['map'](_0x340fd1=>_0x340fd1['innerView'])['find'](_0x116c00=>_0x39c201['_viewToController']['has'](_0x116c00));if(!_0x439100)return void(_0x31be0b['activeMarker']=null);const _0x2ec894=_0x39c201['_viewToController']['get'](_0x439100)['model']['id'],_0x346f2c='comment:'+_0x2ec894;_0x2ec894&&_0x31be0b['hasMarkerForId'](_0x2ec894)?_0x31be0b['activeMarker']=_0x346f2c:_0x31be0b['activeMarker']&&(_0x31be0b['activeMarker']=null);}),this['listenTo'](_0x39c201,'removeCommentThread',(_0x105283,{threadId:_0x29e047,isFromAdapter:_0x203a27})=>{!_0x203a27&&_0x189476['ui']['focusTracker']['isFocused']&&_0x31be0b['hasMarkerForId'](_0x29e047)&&_0x189476['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x39c201,'addComment',(_0x3032f2,{threadId:_0x1f2fd1,isFromAdapter:_0x6cd9ed})=>{if(_0x6cd9ed||!_0x31be0b['hasMarkerForId'](_0x1f2fd1)||!_0x39c201['hasCommentThread'](_0x1f2fd1))return;0x1===_0x39c201['getCommentThread'](_0x1f2fd1)['length']&&(_0x189476['editing']['view']['focus'](),_0x3032f2['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x58eb4a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3bf537;for(const _0xf19dce in _0x58eb4a){const _0x4cd925=_0xf19dce,_0x446456=_0x58eb4a[_0x4cd925];if('commentsLicenseKeyValid'==_0x446456||'commentsLicenseKeyInvalid'==_0x446456||'commentsLicenseKeyExpired'==_0x446456||'commentsLicenseKeyDomainLimit'==_0x446456||'commentsLicenseKeyNotAllowed'==_0x446456||'commentsLicenseKeyEvaluationLimit'==_0x446456||'commentsLicenseKeyTrialLimit'==_0x446456||'commentsLicenseKeyDevelopmentLimit'==_0x446456||'commentsLicenseKeyUsageLimit'==_0x446456){delete _0x58eb4a[_0x4cd925],_0x3bf537=_0x446456,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x3bf537&&_0x58eb4a['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x3bf537&&_0x58eb4a['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x3bf537&&_0x58eb4a['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x3bf537&&_0x58eb4a['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x3bf537&&_0x58eb4a['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x3bf537&&_0x58eb4a['_showLicenseError']('trialLimit'),'commentsLicenseKeyDevelopmentLimit'==_0x3bf537&&_0x58eb4a['_showLicenseError']('developmentLimit'),'commentsLicenseKeyUsageLimit'==_0x3bf537&&_0x58eb4a['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0xe2f1d0){const _0x469c82=this['editor'],_0x2985f1=new _0xe2f1d0(_0x469c82['locale']),_0x28ffe6=_0x469c82['commands']['get']('addCommentThread');return _0x2985f1['set']({'label':S(_0x469c82['locale'],'Comment'),'icon':xt}),_0x2985f1['bind']('isEnabled')['to'](_0x28ffe6),this['listenTo'](_0x2985f1,'execute',()=>_0x28ffe6['execute']()),_0x2985f1;}}class s extends _0x5a85ea{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x329306){super(_0x329306),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x1c4452,_0x32e890,_0x541f97)=>{_0x541f97?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x5c47de,_0x133d50]of this['editor']['commands'])_0x133d50['affectsData']&&'addCommentThread'!==_0x5c47de&&_0x133d50['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0x45b9cc=this['editor']['editing']['view']['document'];this['listenTo'](_0x45b9cc,'cut',_0x5dce89=>_0x5dce89['stop'](),{'priority':'highest'}),this['listenTo'](_0x45b9cc,'clipboardInput',_0x5bed11=>_0x5bed11['stop'](),{'priority':'highest'}),this['listenTo'](_0x45b9cc,'delete',_0x1e54fa=>_0x1e54fa['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x5634f7,_0x5535dc]of this['editor']['commands'])_0x5535dc['affectsData']&&'addCommentThread'!==_0x5634f7&&_0x5535dc['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x529673{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b136b){super(_0x5b136b),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x4a63f2=this['context']['plugins']['get'](N);this['listenTo'](_0x4a63f2,'_activateAnnotation',(_0x418292,_0x338e82)=>{for(const _0x25a990 of this['activeUIs']){const _0x422aec=this['_uis']['get'](_0x25a990);(0x0,this['_uisData']['get'](_0x25a990)['filter'])(_0x338e82)&&_0x422aec['setActiveAnnotation'](_0x338e82);}}),this['listenTo'](_0x4a63f2,'_deactivateAllAnnotations',()=>{for(const _0x40a48a of this['activeUIs']){this['_uis']['get'](_0x40a48a)['setActiveAnnotation'](null);}}),this['listenTo'](_0x4a63f2['_visibleAnnotations'],'add',(_0x3c73ce,_0x40009f)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x40009f);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x5de610){return this['activeUIs']['has'](_0x5de610);}['activate'](_0x53d8c4,_0x1498c0=()=>!0x0){const _0x1aa840=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x53d8c4))throw new _0x59ce32('annotationsuis-missing-ui',this,{'uiName':_0x53d8c4});this['isActive'](_0x53d8c4)&&this['deactivate'](_0x53d8c4),this['activeUIs']['add'](_0x53d8c4);const _0x1ad298=new x();!function({source:_0x316ce1,target:_0x3d414a,filter:_0x361662}){for(const _0x25f485 of _0x316ce1)_0x361662(_0x25f485)&&_0x3d414a['add'](_0x25f485);_0x3d414a['listenTo'](_0x316ce1,'add',(_0x2d16c4,_0x1c038e)=>{_0x361662(_0x1c038e)&&_0x3d414a['add'](_0x1c038e);}),_0x3d414a['listenTo'](_0x316ce1,'remove',(_0x3b98ee,_0x379f34)=>{_0x3d414a['has'](_0x379f34)&&_0x3d414a['remove'](_0x379f34);});}({'source':_0x1aa840['_visibleAnnotations'],'target':_0x1ad298,'filter':_0x1498c0}),this['_uisData']['set'](_0x53d8c4,{'collection':_0x1ad298,'filter':_0x1498c0});const _0x5d5430=this['_uis']['get'](_0x53d8c4);_0x5d5430['attach'](_0x1ad298),this['listenTo'](_0x5d5430,'change:activeAnnotation',(_0x5f4fc7,_0x532f9a,_0xd93e92,_0x3f17f9)=>{_0x3f17f9&&_0x1aa840['_removeActiveAnnotation'](_0x3f17f9),_0xd93e92&&_0x1aa840['_addActiveAnnotation'](_0xd93e92);});}['deactivate'](_0x2c90b1){if(this['activeUIs']['delete'](_0x2c90b1),!this['_uis']['has'](_0x2c90b1))throw new _0x59ce32('annotationsuis-missing-ui',this,{'uiName':_0x2c90b1});const _0x11783f=this['_uis']['get'](_0x2c90b1);_0x11783f['detach'](),this['stopListening'](_0x11783f),this['_uisData']['get'](_0x2c90b1)['collection']['destroy'](),this['_uisData']['delete'](_0x2c90b1);}['switchTo'](_0xbbd887){if(!this['_uis']['has'](_0xbbd887))throw new _0x59ce32('annotationsuis-missing-ui',this,{'uiName':_0xbbd887});const _0x4a53fc=this['context']['plugins']['get'](N),_0x2832e2=Array['from'](_0x4a53fc['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0xbbd887);const _0x3faf80=this['_uis']['get'](_0xbbd887);_0x3faf80['setActiveAnnotation'](_0x2832e2),_0x3faf80['_setSelectedAnnotations']&&_0x2832e2&&_0x3faf80['_setSelectedAnnotations']([_0x2832e2]);}['deactivateAll'](){for(const _0x2742ca of this['activeUIs'])this['deactivate'](_0x2742ca);}['register'](_0x2c4597,_0x5904fd){if(this['_uis']['has'](_0x2c4597))throw new _0x59ce32('annotationsuis-register-already-registered');if('function'!=typeof _0x5904fd['attach']||'function'!=typeof _0x5904fd['detach']||'function'!=typeof _0x5904fd['setActiveAnnotation'])throw new _0x59ce32('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x2c4597,_0x5904fd);}['refilterAnnotations'](){const _0x5baf65=this['context']['plugins']['get'](N)['collection'],_0x283308=new Map(),_0x39a424=Array['from'](this['activeUIs']);for(const _0x5b8884 of this['activeUIs']){const _0x1764dd=this['_uisData']['get'](_0x5b8884)['collection'];for(const _0x5dae72 of _0x1764dd)_0x283308['set'](_0x5dae72,_0x5b8884);}for(const _0x33dacc of _0x5baf65){const _0x53df2f=_0x283308['get'](_0x33dacc);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x33dacc);const _0x1e757a=_0x39a424['find'](_0x1c8af3=>this['_uisData']['get'](_0x1c8af3)['filter'](_0x33dacc));_0x53df2f!==_0x1e757a&&(_0x53df2f&&this['_uisData']['get'](_0x53df2f)['collection']['remove'](_0x33dacc),_0x1e757a&&this['_uisData']['get'](_0x1e757a)['collection']['add'](_0x33dacc));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x57631e){const _0x441b55=[];for(const _0x22418d of this['activeUIs']){(0x0,this['_uisData']['get'](_0x22418d)['filter'])(_0x57631e)&&_0x441b55['push'](_0x22418d);}if(_0x441b55['length']>0x1)throw new _0x59ce32('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x441b55,'annotationType':_0x57631e['type']});}}const ae=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x1383cf){super(_0x1383cf);const _0x4ca4a6=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 _0x424f41(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x4ca4a6['to']('class')],'style':{'minHeight':_0x4ca4a6['to']('minHeight',_0x58c0ce=>'number'==typeof _0x58c0ce?ae(_0x58c0ce+0xa):null)},'dir':_0x1383cf['uiLanguageDirection'],'role':'application','aria-label':S(_0x1383cf,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x1383cf,'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',_0x524f96=>{this['_updateItemPositionInFocusables'](_0x524f96['source']);}),this['list']['forEach'](_0x26f60d=>{this['focusTracker']['add'](_0x26f60d['element']),this['_updateItemPositionInFocusables'](_0x26f60d);}),this['list']['on']('change',(_0x35a92e,_0x22ef9d)=>{for(const _0x244169 of _0x22ef9d['removed'])this['focusTracker']['remove'](_0x244169['element']),this['focusables']['remove'](_0x244169);for(const _0x3873b1 of _0x22ef9d['added'])this['focusTracker']['add'](_0x3873b1['element']),this['_updateItemPositionInFocusables'](_0x3873b1);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x244ebf){const _0x1e5ee8=this['focusables']['getIndex'](_0x244ebf);let _0x141a2f,_0x7e16a6;for(const _0x1408c6 of this['focusables'])if(_0x244ebf['top']<_0x1408c6['top']){_0x141a2f=_0x1408c6;break;}if(_0x7e16a6=_0x141a2f?this['focusables']['getIndex'](_0x141a2f):this['focusables']['length'],-0x1!==_0x1e5ee8){if(_0x1e5ee8===_0x7e16a6-0x1)return;this['focusables']['remove'](_0x244ebf),_0x7e16a6=_0x141a2f?this['focusables']['getIndex'](_0x141a2f):this['focusables']['length'];}this['focusables']['add'](_0x244ebf,_0x7e16a6);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x18c515){super(_0x18c515),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0xe686d4,_0x456ed9)=>_0xe686d4+_0x456ed9),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Dt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x57ce68=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x57ce68['to']('isAnimationDisabled',_0x428ae0=>_0x428ae0?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x57ce68['to']('top',_0x592ee7=>qt(_0x592ee7))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x5d0066=this['element']['clientHeight'];_0x5d0066&&(this['height']=_0x5d0066);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x529673{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f62e5){super(_0x1f62e5),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 _0x557380=this['context']['config']['get']('sidebar.container');_0x557380&&this['setContainer'](_0x557380);}['setContainer'](_0x3ab333){if(!y(_0x3ab333))throw new _0x59ce32('sidebar-setcontainer-invalid-element');this['container']=_0x3ab333;}['_attachToContainer']({viewClass:_0x3bfa22='',spaceBetweenItems:_0x1ef4dc=0x19}={}){if(!y(this['container']))throw new _0x59ce32('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x3bfa22,this['_spaceBetweenItems']=_0x1ef4dc;}['rearrange']({removedAnnotation:_0x3480c6,previousAnnotation:_0x260b73,nextAnnotation:_0x8d82a0}){const _0x1a61b0=this['getSidebarItemView'](_0x3480c6);this['view']['list']['remove'](_0x1a61b0),this['_destroySidebarItemView'](_0x3480c6),_0x260b73&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x260b73)),_0x8d82a0&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x8d82a0)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x18e8ec,activatedAnnotation:_0x148b3a,disableAnimationOnActivatedAnnotation:_0x4cabda}){if(this['_activeAnnotation']=_0x148b3a,_0x18e8ec){_0x18e8ec['isActive']=!0x1;const _0x426b09=this['getSidebarItemView'](_0x18e8ec);_0x426b09&&_0x4cabda&&(_0x426b09['isAnimationDisabled']=!0x1);}if(_0x148b3a){const _0xc03924=this['getSidebarItemView'](_0x148b3a);_0xc03924&&(_0x148b3a['isActive']=!0x0,_0x4cabda&&(_0xc03924['isAnimationDisabled']=!0x0,_0xc03924['top']+=0x1),this['_alignToTargetRect'](_0xc03924));}}['_detachFromContainer'](_0x1bbb60){if(this['view']['element']['remove'](),_0x1bbb60){for(const _0x3b8672 of _0x1bbb60)this['_destroySidebarItemView'](_0x3b8672);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x3c3338,_0x1ea22f){_0x1ea22f||(_0x1ea22f=_0x3c3338['view']);const _0x42fe7c=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x42fe7c,_0x3c3338),this['_annotationToSidebarItemView']['set'](_0x3c3338,_0x42fe7c),_0x42fe7c['content']['add'](_0x1ea22f),this['listenTo'](_0x3c3338['view'],'change:targetRect',(_0x269294,_0x1ce9b6,_0x527684)=>{const _0x399166=this['_getTargetTop'](_0x3c3338,_0x527684);_0x42fe7c['_targetTop']!=_0x399166&&(_0x42fe7c['_targetTop']=_0x399166,this['_setItemTop'](_0x42fe7c,_0x399166));}),this['listenTo'](_0x42fe7c,'change:top',()=>{this['_recalculate'](_0x42fe7c,'top');}),this['listenTo'](_0x42fe7c,'change:bottom',()=>{this['_recalculate'](_0x42fe7c,'bottom');}),this['_alignToTargetRect'](_0x42fe7c);const _0x5a0f16=this['_getItemBefore'](_0x42fe7c);if(_0x5a0f16)this['_alignAfterItem'](_0x5a0f16,_0x42fe7c)||this['_alignToTargetRect'](_0x42fe7c);else this['_alignToTargetRect'](_0x42fe7c);return this['_updateLastItem'](),this['view']['list']['add'](_0x42fe7c),_0x42fe7c;}['_alignForTopChange'](_0x4dec00){if(!_0x4dec00['content']['length'])return;const _0x3b2781=this['_getItemBefore'](_0x4dec00);if(!_0x3b2781)return;const _0x55d19b=this['_sidebarItemViewToAnnotation']['get'](_0x3b2781),_0x4a8472=this['_activeAnnotation'];_0x4a8472&&_0x4a8472===_0x55d19b?this['_alignAfterItem'](_0x3b2781,_0x4dec00):this['_alignBeforeItem'](_0x4dec00,_0x3b2781);}['_alignForBottomChange'](_0x3257ea){if(!_0x3257ea['content']['length'])return;const _0x23ab2a=this['_getItemAfter'](_0x3257ea);if(!_0x23ab2a)return;const _0x45ec3a=this['_sidebarItemViewToAnnotation']['get'](_0x23ab2a),_0x2a7561=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x17c8d0=this['_activeAnnotation'];_0x17c8d0&&_0x17c8d0===_0x45ec3a&&_0x2a7561?(this['_alignBeforeItem'](_0x23ab2a,_0x3257ea),this['_alignAfterItem'](_0x3257ea,_0x23ab2a)):_0x17c8d0&&_0x17c8d0===_0x45ec3a?this['_alignBeforeItem'](_0x23ab2a,_0x3257ea):this['_alignAfterItem'](_0x3257ea,_0x23ab2a);}['_recalculate'](_0x148640,_0x12c5de){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0xae416a,changedProp:_0xb7bf61}of this['_recalculateBuffer'])'top'===_0xb7bf61?this['_alignForTopChange'](_0xae416a):this['_alignForBottomChange'](_0xae416a);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x148640,'changedProp':_0x12c5de});}['getSidebarItemView'](_0xf9fefa){return this['_annotationToSidebarItemView']['get'](_0xf9fefa);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x4c966e){const _0x4422aa=this['getSidebarItemView'](_0x4c966e);this['stopListening'](_0x4422aa),this['stopListening'](_0x4c966e['view']),_0x4422aa['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x4c966e),this['_sidebarItemViewToAnnotation']['delete'](_0x4422aa);}['_createSidebarView'](){const _0x26c2b9=new V(this['context']['locale']);return _0x26c2b9['render'](),this['on']('change:_lastItem',(_0x451bbd,_0x447963,_0x19f4de,_0x17b25a)=>{_0x17b25a&&_0x26c2b9['unbind']('minHeight'),_0x19f4de?_0x26c2b9['bind']('minHeight')['to'](_0x19f4de,'bottom'):_0x26c2b9['minHeight']=null;}),_0x26c2b9;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x3eb56e){const _0xfd051e=this['_sidebarItemViewToAnnotation']['get'](_0x3eb56e),_0x42d005=_0xfd051e&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0xfd051e)-0x1);return _0x42d005&&this['getSidebarItemView'](_0x42d005)||null;}['_getItemAfter'](_0x2b123b){const _0x9c2d92=this['_sidebarItemViewToAnnotation']['get'](_0x2b123b),_0x20d4c8=_0x9c2d92&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x9c2d92)+0x1);return _0x20d4c8&&this['getSidebarItemView'](_0x20d4c8)||null;}['_alignBeforeItem'](_0x27540b,_0x49d44f){_0x27540b['updateHeight']();const _0x33dbd6=R(_0x49d44f['bottom']+this['_spaceBetweenItems'],_0x27540b['top']);return!!_0x33dbd6&&(this['_setItemTop'](_0x49d44f,_0x49d44f['top']-_0x33dbd6),!0x0);}['_alignAfterItem'](_0x4a9500,_0x19073a){_0x4a9500['updateHeight']();const _0x3d8770=R(_0x4a9500['bottom']+this['_spaceBetweenItems'],_0x19073a['top']);return!!_0x3d8770&&(this['_setItemTop'](_0x19073a,_0x19073a['top']+_0x3d8770,!0x1),!0x0);}['_alignToTargetRect'](_0x4eddb9){const _0x53c8b5=this['_sidebarItemViewToAnnotation']['get'](_0x4eddb9);if(!_0x53c8b5||!_0x53c8b5['target']||!_0x53c8b5['targetRect'])return;const _0x1a640d=this['_getTargetTop'](_0x53c8b5,_0x53c8b5['targetRect']);this['_setItemTop'](_0x4eddb9,_0x1a640d);}['_getTargetTop'](_0x1bd6f2,_0x25c79f){if(null===_0x25c79f)return 0x0;if(_0x1bd6f2['target']instanceof _0x44fba6)return _0x25c79f['top'];{const _0x352493=new _0x44fba6(this['view']['element'])['top'];return _0x25c79f['top']-_0x352493;}}['_setItemTop'](_0x452f0d,_0x14cc95,_0x3a0c48=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x3a0c48&&(_0x14cc95=Math['max'](_0x14cc95,this['_getMaxAvailableTop'](_0x452f0d))),_0x452f0d['top']=_0x14cc95;}['_getMaxAvailableTop'](_0xbb10be){let _0x5a550c=this['_getItemBefore'](_0xbb10be),_0x59ad26=0x0;for(;_0x5a550c;)_0x5a550c['updateHeight'](),_0x59ad26+=this['_spaceBetweenItems']+_0x5a550c['height'],_0x5a550c=this['_getItemBefore'](_0x5a550c);return _0x59ad26;}}function R(_0x8b3216,_0x3cf6eb){return Math['max'](_0x8b3216-_0x3cf6eb,0x0);}function y(_0x2060b5){return null!==_0x2060b5&&'object'==typeof _0x2060b5&&0x1===_0x2060b5['nodeType'];}class e extends _0x529673{['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(_0x206b51){super(_0x206b51),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x4fd75f(),this['_refreshPositioningDebounced']=_0x58a7c2(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x5b9cd3=this['context']['plugins']['get'](M),_0x2a0f5e=this['context']['plugins']['get'](z);_0x5b9cd3['register']('wideSidebar',this),_0x2a0f5e['container']&&_0x5b9cd3['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x3708b7){if(_0x3708b7===this['activeAnnotation'])return;const _0x492bd8=this['context']['plugins']['get'](z);_0x492bd8['_activeAnnotation']=_0x3708b7;const _0x73236a=this['activeAnnotation'];this['activeAnnotation']=_0x3708b7,_0x492bd8['refresh']({'blurredAnnotation':_0x73236a,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x16b57b){this['annotations']=_0x16b57b;const _0x3dbdc6=this['context']['plugins']['get'](z);if(_0x3dbdc6['_annotations']=_0x16b57b,this['isAttached'])throw new _0x59ce32('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x3dbdc6,'set:container',()=>{this['detach'](),this['listenTo'](_0x3dbdc6,'change:container',_0x5076c4=>{_0x5076c4['off'](),this['attach'](_0x16b57b);});}),_0x3dbdc6['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x27a529=_0x24eebf=>{_0x24eebf['updateTargetRect'](),_0x3dbdc6['addAnnotation'](_0x24eebf);};for(const _0x9ab2f3 of _0x16b57b)_0x27a529(_0x9ab2f3);this['listenTo'](_0x16b57b,'add',(_0x32f080,_0x536094)=>{_0x27a529(_0x536094);}),this['listenTo'](_0x16b57b,'remove',(_0x21f34a,_0x545227,_0x44cb27)=>{_0x3dbdc6['rearrange']({'removedAnnotation':_0x545227,'previousAnnotation':_0x16b57b['get'](_0x44cb27-0x1),'nextAnnotation':_0x16b57b['get'](_0x44cb27+0x1)}),_0x545227===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x16b57b,'focus',(_0x392b5d,_0x277e95)=>{this['setActiveAnnotation'](_0x277e95);}),this['listenTo'](_0x16b57b,'blur',()=>{this['setActiveAnnotation'](null);});const _0xa6072c=this['context']instanceof _0x15790e?this['context']['editors']:new _0x4fd75f([this['context']]);for(const _0x7e754b of _0xa6072c)this['_integrateWithEditorAnnotations'](_0x7e754b);this['listenTo'](_0xa6072c,'add',(_0x1a67c4,_0xb298e3)=>{this['listenTo'](_0xb298e3,'ready',()=>{this['_integrateWithEditorAnnotations'](_0xb298e3);});}),this['listenTo'](_0xa6072c,'remove',(_0x95e573,_0x18deff)=>{_0x18deff['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x18deff['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x59ce32('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0xf2c42c=this['context']['plugins']['get'](z);_0xf2c42c['_detachFromContainer'](this['annotations']),this['stopListening'](_0xf2c42c),this['stopListening'](this['annotations']),this['context']instanceof _0x15790e&&this['stopListening'](this['context']['editors']);for(const _0x106c6e of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x106c6e);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0xb9bacd){if(!_0xb9bacd['plugins']['has']('EditorAnnotations'))return;const _0xcada75=_0xb9bacd['plugins']['get']('EditorAnnotations'),_0x4747f8=()=>{const _0x1d1db4=_0xcada75['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x1d1db4[0x0]||null);};this['listenTo'](_0xcada75,'refresh',_0x4747f8),this['listenTo'](_0xcada75,'blur',(_0x22027c,{isAnnotationTracked:_0x470b14})=>{this['activeAnnotation']&&_0x470b14(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0xcada75,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x16fc35=>{_0xcada75['hasDomSelection']()&&(_0x4747f8(),_0x16fc35['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0xcada75);}['_destroyEditorAnnotationsIntegration'](_0x225d9c){this['stopListening'](_0x225d9c),this['_editorAnnotations']['remove'](_0x225d9c);}}class D extends _0x57b97b{['counterView'];constructor(_0x559d3c){super(_0x559d3c);const _0x4c03f2=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x45b912,_0x3a8dab)=>_0x45b912?'...':_0x3a8dab['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',_0x4c03f2['to']('annotationType',_0x36a91f=>'ck-annotation-counter__badge--'+_0x36a91f),_0x4c03f2['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x4c03f2['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x529673{['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(_0x14b629){super(_0x14b629),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x3e18d9),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x4fd75f(),this['_refreshPositioningDebounced']=_0x58a7c2(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x558ff7(this['context']['locale']),this['balloonPanelView']=new _0xf453e3(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0xb1f697){this['annotations']=_0xb1f697;const _0x43b1bf=this['context']['plugins']['get'](z),_0x277a8b=this['balloonPanelView'];if(_0x43b1bf['_annotations']=_0xb1f697,this['isAttached'])throw new _0x59ce32('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x43b1bf,'set:container',()=>{this['detach'](),this['listenTo'](_0x43b1bf,'change:container',_0x3eed66=>{_0x3eed66['off'](),this['attach'](_0xb1f697);});}),_0x43b1bf['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x1b0e32=_0x437a0d=>{const _0x28a947=new D(this['context']['locale']);_0x43b1bf['addAnnotation'](_0x437a0d,_0x28a947),this['_annotationToNarrowView']['set'](_0x437a0d,_0x28a947),_0x28a947['bind']('isDirty','annotationType','number')['to'](_0x437a0d['view'],'isDirty','type','length'),_0x28a947['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x277a8b['content']['first']!==_0x437a0d['view']?(this['_showBalloon'](_0x437a0d),_0x437a0d['view']['element']['focus'](),this['setActiveAnnotation'](_0x437a0d)):this['setActiveAnnotation'](null);});};for(const _0x2da08b of _0xb1f697)_0x1b0e32(_0x2da08b);this['listenTo'](_0xb1f697,'add',(_0x45fa35,_0x2926b8)=>{_0x1b0e32(_0x2926b8);}),this['listenTo'](_0xb1f697,'remove',(_0x2dbb9b,_0x1430be,_0xe33b0f)=>{this['_annotationToNarrowView']['get'](_0x1430be)['destroy'](),this['_annotationToNarrowView']['delete'](_0x1430be),_0x43b1bf['rearrange']({'removedAnnotation':_0x1430be,'previousAnnotation':_0xb1f697['get'](_0xe33b0f-0x1),'nextAnnotation':_0xb1f697['get'](_0xe33b0f+0x1)}),_0x1430be===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0xb1f697,'focus',(_0x353d8e,_0x22e978)=>{this['setActiveAnnotation'](_0x22e978);}),this['listenTo'](_0xb1f697,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0xfec27a,_0x260a11)=>{_0x260a11['keyCode']===_0x5ad4b8['esc']&&_0x277a8b['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x277a8b['content']['first']),this['_hideBalloon'](),_0x260a11['stopPropagation'](),_0x260a11['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x48e979,_0xe23c75)=>{const _0xc6fbdf=_0xe23c75['target'];_0x277a8b['isVisible']&&_0x277a8b['element']['contains'](_0xc6fbdf)||_0x43b1bf['view']['element']['contains'](_0xc6fbdf)||_0x48e979['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x433df4=>_0x433df4['contains'](_0xc6fbdf))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0xfaf337=this['context']instanceof _0x15790e?this['context']['editors']:new _0x4fd75f([this['context']]);for(const _0x19920a of _0xfaf337)this['_integrateWithEditorAnnotations'](_0x19920a);this['listenTo'](_0xfaf337,'add',(_0x210917,_0x29d2a3)=>{this['listenTo'](_0x29d2a3,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x29d2a3);});}),this['listenTo'](_0xfaf337,'remove',(_0x52dac6,_0xfd5af2)=>{_0xfd5af2['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0xfd5af2['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0xd55000){if(_0xd55000===this['activeAnnotation'])return;const _0x23fb07=this['context']['plugins']['get'](z);if(_0x23fb07['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0xd55000,'disableAnimationOnActivatedAnnotation':!0x0}),_0xd55000)_0x23fb07['getSidebarItemView'](_0xd55000)?this['_showBalloon'](_0xd55000):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0xd55000;}['detach'](){if(!this['isAttached'])throw new _0x59ce32('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x3435de=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x3bca82=>_0x3bca82['destroy']()),this['_annotationToNarrowView']['clear'](),_0x3435de['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x15790e&&this['stopListening'](this['context']['editors']);for(const _0x3f4501 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x3f4501);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'](_0x50b02d){if(!_0x50b02d['plugins']['has']('EditorAnnotations'))return;const _0x53691e=_0x50b02d['plugins']['get']('EditorAnnotations'),_0x411727=this['context']['plugins']['get'](z),_0x51800c=this['annotations'],_0x3574b4=this['balloonPanelView'],_0x1729fc=()=>{const _0x552e40=_0x53691e['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x552e40),this['setActiveAnnotation'](_0x552e40[0x0]||null);};this['listenTo'](_0x53691e,'refresh',_0x1729fc),this['listenTo'](_0x53691e,'blur',(_0x39bc73,{isAnnotationTracked:_0x11ba54})=>{this['activeAnnotation']&&_0x11ba54(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x53691e,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x51800c,'blur',_0x362311=>{_0x53691e['hasDomSelection']()&&_0x362311['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x4e5d11,_0x410503)=>{const _0x533201=_0x410503['target'];_0x3574b4['isVisible']&&_0x3574b4['element']['contains'](_0x533201)||_0x411727['view']['element']['contains'](_0x533201)||this['activeAnnotation']&&_0x53691e['hasDomSelection']()&&(_0x1729fc(),_0x4e5d11['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x53691e);}['_destroyEditorAnnotationsIntegration'](_0x1bb131){_0x1bb131&&(this['stopListening'](_0x1bb131),this['_editorAnnotations']['remove'](_0x1bb131));}['_setSelectedAnnotations'](_0x35c067){for(const _0x138ccd of this['_selectedAnnotations'])_0x35c067['includes'](_0x138ccd)||this['_manuallyClosedAnnotationViews']['delete'](_0x138ccd['view']);this['_selectedAnnotations']=_0x35c067;}['_refreshPositioning'](){const _0x57f124=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x57f124['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x355f5f){if(this['_manuallyClosedAnnotationViews']['has'](_0x355f5f['view']))return;const _0x596372=this['balloonPanelView']['content']['first'];_0x596372!==_0x355f5f['view']?(_0x596372&&this['_detachListeners'](_0x596372),this['_attachListeners'](_0x355f5f['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x355f5f['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x56498c=this['balloonPanelView']['content']['first'],_0x3a7c16=_0x56498c&&this['annotations']['getByView'](_0x56498c);if(!_0x3a7c16||!this['_annotationToNarrowView']['has'](_0x3a7c16))return;const _0xca5337=this['_annotationToNarrowView']['get'](_0x3a7c16)['element'],_0x1096b9=(function(){const _0x5c73bd=_0xf453e3['defaultPositions'];return[_0x5c73bd['southArrowNorthEast'],_0x5c73bd['northArrowSouthEast'],_0x5c73bd['southArrowNorth'],_0x5c73bd['northArrowSouth'],_0x5c73bd['southArrowNorthWest'],_0x5c73bd['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0xca5337,'positions':_0x1096b9});}['_hideBalloon'](){const _0x1db0d1=this['balloonPanelView'],_0x5e8a17=_0x1db0d1['content']['first'];_0x5e8a17&&(this['_detachListeners'](_0x5e8a17),_0x1db0d1['unpin'](),_0x1db0d1['content']['clear']());}['_attachListeners'](_0x27a77b){this['listenTo'](_0x27a77b,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x27a77b,'Esc',(_0x50c83b,_0x484014)=>{this['_manuallyClosedAnnotationViews']['add'](_0x27a77b),this['_hideBalloon'](),_0x484014();});}['_detachListeners'](_0x2cba9f){this['stopListening'](_0x2cba9f);}}class c extends _0x5a85ea{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x1a348e,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x381079){super(_0x381079),_0x381079['editing']['view']['addObserver'](_0x4bab8c),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x381079['plugins']['get'](_0x1a348e),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x481e05=this['editor']['plugins']['get'](M);_0x481e05['context']===this['editor']&&(_0x481e05['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x3539c4,_0x86df35)=>{const _0x7e144e=this['_balloon'];if(this['isAttached']&&_0x7e144e['visibleView']){const _0xb47f51=this['annotations']['getByView'](_0x7e144e['visibleView']);_0xb47f51&&this['_closeAnnotation'](_0xb47f51),_0x86df35();}}));}['afterInit'](){const _0xd673f=this['editor']['plugins']['get'](M);_0xd673f['context']===this['editor']&&(_0xd673f['hasActive']()||_0xd673f['switchTo']('inline'));}['setActiveAnnotation'](_0x281f25){_0x281f25!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x281f25&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x281f25)&&this['_addAnnotationToBalloon'](_0x281f25,!0x0),_0x281f25['isActive']=!0x0),_0x281f25||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x281f25);}['attach'](_0x3dabdd){this['annotations']=_0x3dabdd;const _0x486d0c=this['editor']['plugins']['get'](M),_0x6fc5ee=this['_balloon'];if(this['isAttached'])throw new _0x59ce32('inlineannotations-attach-already-attached',this);if(_0x486d0c['context']!==this['editor'])throw new _0x59ce32('inlineannotations-not-allowed-with-context',this);const _0x15d6c8=this['editor']['plugins']['get'](P);this['listenTo'](_0x15d6c8,'refresh',()=>{const _0x4a41f3=_0x15d6c8['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x1eec2b,_0x40f756;!this['_forceRefresh']&&(_0x1eec2b=_0x4a41f3,_0x40f756=this['_selectedAnnotations'],_0x1eec2b['length']===_0x40f756['length']&&_0x1eec2b['every'](_0x113065=>_0x40f756['includes'](_0x113065)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x4a41f3),this['setActiveAnnotation'](_0x4a41f3[0x0]||null));}),this['listenTo'](_0x15d6c8,'blur',(_0xcb1fec,{isAnnotationTracked:_0x9b4f07})=>{this['activeAnnotation']&&_0x9b4f07(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x3d602b,_0x19d261,_0x7126d4)=>{_0x7126d4||this['setActiveAnnotation'](null);}),this['listenTo'](_0x3dabdd,'remove',(_0x47b88f,_0x5be1c9)=>{this['_removeAnnotationFromBalloon'](_0x5be1c9),_0x5be1c9===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x6fc5ee,'change:visibleView',(_0x1ea944,_0xa74b6,_0x398fa6,_0x3641e3)=>{_0x3641e3&&this['stopListening'](_0x3641e3);const _0x1e827b=_0x3dabdd['getByView'](_0x398fa6);_0x398fa6&&_0x1e827b&&(this['listenTo'](_0x398fa6,'change:height',()=>{_0x6fc5ee['updatePosition']();}),this['listenTo'](_0x398fa6,'Esc',()=>{this['_closeAnnotation'](_0x1e827b),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x1e827b&&this['setActiveAnnotation'](_0x1e827b));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x6fc5ee['visibleView']&&(_0x3dabdd['getByView'](_0x6fc5ee['visibleView'])&&_0x6fc5ee['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 _0x59ce32('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x33d664 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x33d664);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x53c230){for(const _0x202a77 of this['_selectedAnnotations'])_0x53c230['includes'](_0x202a77)||this['_manuallyClosed']['delete'](_0x202a77);for(const _0x4d04c2 of this['annotations'])_0x53c230['includes'](_0x4d04c2)||this['_removeAnnotationFromBalloon'](_0x4d04c2);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x38219c of _0x53c230)this['_addAnnotationToBalloon'](_0x38219c);}this['_selectedAnnotations']=_0x53c230;}['_addAnnotationToBalloon'](_0x2375d2,_0x498db2=!0x1){this['_manuallyClosed']['has'](_0x2375d2)||(this['_addedAnnotations']['has'](_0x2375d2)||this['_balloon']['hasView'](_0x2375d2['view'])||(this['_addedAnnotations']['add'](_0x2375d2),this['_balloon']['add']({'stackId':_0x2375d2['view']['id'],'view':_0x2375d2['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x2375d2)}})),_0x498db2&&this['_balloon']['showStack'](_0x2375d2['view']['id']));}['_getBalloonTargetForAnnotation'](_0x3a2369){const _0x2de242=_0x3a2369['target'],_0x4b7992=this['editor']['editing']['view'],_0x2e8c26=_0x4b7992['document']['selection']['getFirstRange'](),_0x56a20d=_0x4b7992['domConverter']['viewRangeToDom'](_0x2e8c26);if(_0x56a20d['collapse'](!0x0),_0x2de242){if(_0x2de242 instanceof _0x44fba6)return _0x2de242;let _0x233824=[];for(const _0x2c66d9 of _0x2de242)_0x233824['push'](...(_0x4fda02=_0x2c66d9['getClientRects'](),Array['from'](_0x4fda02)['map'](DOMRect['fromRect'])));_0x233824=function(_0x2ad494){const _0x43dee0=[];let _0x20aa89=_0x2ad494[0x0];for(let _0x2cdd2f=0x1;_0x2cdd2f<_0x2ad494['length'];_0x2cdd2f++)b(_0x20aa89,_0x2ad494[_0x2cdd2f])?_0x20aa89['width']+=_0x2ad494[_0x2cdd2f]['width']:(_0x43dee0['push'](_0x20aa89),_0x20aa89=_0x2ad494[_0x2cdd2f]);return _0x43dee0['push'](_0x20aa89),_0x43dee0;}(_0x233824);const _0x58f3fa=_0x56a20d['getBoundingClientRect']();return _0x233824['find'](_0x59c4d4=>_0x59c4d4['top']<=_0x58f3fa['top']&&_0x59c4d4['bottom']>=_0x58f3fa['bottom']&&_0x59c4d4['left']<=_0x58f3fa['left']&&_0x59c4d4['right']>=_0x58f3fa['right'])||_0x233824[0x0];}var _0x4fda02;return _0x3a2369['targetRect']||_0x56a20d;}['_removeAnnotationFromBalloon'](_0x4e2391){this['_addedAnnotations']['has'](_0x4e2391)&&this['_balloon']['hasView'](_0x4e2391['view'])&&(this['_addedAnnotations']['delete'](_0x4e2391),this['_balloon']['remove'](_0x4e2391['view']));}['_closeAnnotation'](_0x35413f){this['_manuallyClosed']['add'](_0x35413f),this['_removeAnnotationFromBalloon'](_0x35413f);}}function b(_0x4278ca,_0x975916){return _0x4278ca['top']===_0x975916['top']&&_0x4278ca['bottom']===_0x975916['bottom']&&_0x4278ca['right']===_0x975916['left'];}var Z='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M14\x203.5A3.5\x203.5\x200\x200\x201\x2017.5\x207v6l-.005.192a3.501\x203.501\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.37-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.272-2.63l-.062-.07-4.729-.046a3.5\x203.5\x200\x200\x201-3.5-3.5v-6a3.5\x203.5\x200\x200\x201\x203.5-3.5L14\x203.5ZM3.5\x204.954a2\x202\x200\x200\x200-2\x202v6a2\x202\x200\x200\x200\x202\x202L8.924\x2015a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L12.962\x2015H14a2\x202\x200\x200\x200\x202-2V7a2\x202\x200\x200\x200-2-2L3.5\x204.954Z\x22/><path\x20d=\x22M16.5.5h-10a3.5\x203.5\x200\x200\x200-3.162\x202h1.84A2\x202\x200\x200\x201\x206.5\x202h10a2\x202\x200\x200\x201\x202\x202v8.873a3.502\x203.502\x200\x200\x200\x201.495-2.681L20\x2010V4A3.5\x203.5\x200\x200\x200\x2016.5.5Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M12.013\x207.453a.75.75\x200\x200\x201\x20.034\x201.06l-3.75\x204a.75.75\x200\x200\x201-1.045.048l-2.25-2a.75.75\x200\x200\x201\x20.996-1.122l1.704\x201.515\x203.25-3.467a.75.75\x200\x200\x201\x201.061-.034Z\x22/></svg>\x0a';class tt extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x3bc702,_0x35b13d){super(_0x3bc702),this['set']('isEmpty',!_0x35b13d['length']),this['focusTracker']=new _0x424f41(),this['_annotationViews']=_0x35b13d,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x35b13d,'focusTracker':this['focusTracker']}),this['listenTo'](_0x35b13d,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x35b13d,'remove',(_0x58372,_0x511d69)=>{_0x511d69['isActive']&&this['focus'](),_0x35b13d['length']||(this['isEmpty']=!0x0);});const _0x4755e4=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x3bc702,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x35b13d},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x4755e4['if']('isEmpty','ck-hidden',_0x435c11=>!_0x435c11)]},'children':[{'text':S(_0x3bc702,'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 _0x33690b of this['_annotationViews'])this['focusTracker']['add'](_0x33690b['element']);this['_annotationViews']['on']('change',(_0x5c0427,{added:_0x2b9f22,removed:_0x2fb71e})=>{for(const _0x3b4437 of _0x2b9f22)this['focusTracker']['add'](_0x3b4437['element']);for(const _0x571fcd of _0x2fb71e)this['focusTracker']['remove'](_0x571fcd['element']);});}}class f extends _0x529673{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x2b623f){super(_0x2b623f),this['archivedThreads']=new _0x4fd75f();}['init'](){const _0x5eb7a6=this['context'],_0x3ee311=_0x5eb7a6['plugins']['get'](o),_0x348282=_0x5eb7a6['plugins']['get'](N);this['listenTo'](_0x3ee311,'addCommentThread',(_0x57a76a,{threadId:_0x45eefc})=>{const _0x1c22fa=_0x3ee311['getCommentThread'](_0x45eefc);_0x1c22fa['archivedAt']&&this['archivedThreads']['add'](_0x1c22fa,this['_calculatePosition'](_0x1c22fa['archivedAt'])),this['listenTo'](_0x1c22fa,'change:archivedAt',(_0x75c924,_0x59d6e4,_0x285285)=>{_0x285285?this['archivedThreads']['has'](_0x1c22fa)||this['archivedThreads']['add'](_0x1c22fa,this['_calculatePosition'](_0x1c22fa['archivedAt'])):this['archivedThreads']['has'](_0x1c22fa)&&this['archivedThreads']['remove'](_0x1c22fa);});}),this['listenTo'](_0x3ee311,'removeCommentThread',(_0x463c53,{threadId:_0x411d21})=>{const _0x4eeef8=_0x3ee311['getCommentThread'](_0x411d21);this['stopListening'](_0x4eeef8),this['archivedThreads']['has'](_0x4eeef8)&&this['archivedThreads']['remove'](_0x4eeef8);},{'priority':'highest'}),this['listenTo'](_0x348282['collection'],'focus',(_0x59a0d1,_0x4c3687)=>{_0x4c3687['isVisible']||(_0x4c3687['isActive']=!0x0,_0x348282['activate'](_0x4c3687));});}['_calculatePosition'](_0x1b3dcf){const _0x3ee6b8=[...this['archivedThreads']]['findIndex'](_0x13e170=>_0x13e170['archivedAt']<_0x1b3dcf);return _0x3ee6b8>-0x1?_0x3ee6b8:this['archivedThreads']['length'];}}class a extends _0x5a85ea{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x48623b];}constructor(_0x129b16){super(_0x129b16),this['annotationViews']=new _0x17461a(),this['_pendingThreads']=[];}['init'](){const _0x296566=this['editor'],_0x525d98=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x296566['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x57b97b,!0x0)),_0x296566['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x51ce57=this['_createCommentsArchiveButton'](_0x9c1b58);return _0x51ce57['set']({'role':'menuitemcheckbox'}),_0x51ce57;});const _0x2a8cd5=_0x296566['plugins']['get'](f),_0x12c7c1=_0x296566['plugins']['get']('Annotations'),_0x39f08e=_0x296566['plugins']['get']('CommentsRepository');this['listenTo'](_0x2a8cd5['archivedThreads'],'add',(_0x1d6389,_0x188044)=>{const _0x4225c1=_0x296566['config']['get']('collaboration.channelId');if(!_0x4225c1||_0x188044['channelId']===_0x4225c1){const _0x2a66db=_0x39f08e['_threadToController']['get'](_0x188044);if(!_0x2a66db)return void this['_pendingThreads']['push'](_0x188044);const _0x183461=this['_calculatePosition'](_0x188044['archivedAt']),_0x4e7af8=_0x12c7c1['getByInnerView'](_0x2a66db['view']);_0x4e7af8['isVisible']&&_0x12c7c1['_visibleAnnotations']['remove'](_0x4e7af8),this['annotationViews']['add'](_0x4e7af8['view'],_0x183461);}}),this['listenTo'](_0x12c7c1['collection'],'add',(_0x50576c,_0x314d88)=>{const _0x3d7cb1=this['_pendingThreads']['find'](_0xd89d05=>{const _0x3cf9b4=_0x39f08e['_threadToController']['get'](_0xd89d05);return _0x3cf9b4&&_0x314d88['innerView']===_0x3cf9b4['view'];});if(_0x3d7cb1){const _0x31ad86=this['_calculatePosition'](_0x3d7cb1['archivedAt']);this['annotationViews']['add'](_0x314d88['view'],_0x31ad86),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x3d7cb1),0x1);}}),this['listenTo'](_0x2a8cd5['archivedThreads'],'remove',(_0x1aec5c,_0x58ea45)=>{const _0x19b3aa=_0x296566['config']['get']('collaboration.channelId');if(!_0x19b3aa||_0x58ea45['channelId']===_0x19b3aa){const _0x374f95=_0x39f08e['_threadToController']['get'](_0x58ea45),_0x54125c=_0x12c7c1['getByInnerView'](_0x374f95['view']);this['annotationViews']['remove'](_0x54125c['view']),this['stopListening'](_0x54125c['focusableElements']);}}),this['listenTo'](_0x12c7c1['collection'],'add',(_0x20dbf6,_0x3b2b09)=>{this['listenTo'](_0x3b2b09,'escape',_0x525d98);}),this['listenTo'](_0x12c7c1['collection'],'remove',(_0x314329,_0x1bc489)=>{this['stopListening'](_0x1bc489,'escape',_0x525d98);});}['_calculatePosition'](_0xf77080){const _0x5618eb=this['editor']['config']['get']('collaboration.channelId'),_0x5f5933=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x1dd3f4=>_0x1dd3f4['channelId']===_0x5618eb)['findIndex'](_0x2473b9=>_0x2473b9['archivedAt']<_0xf77080);return _0x5f5933<0x0||_0x5f5933>this['annotationViews']['length']?this['annotationViews']['length']:_0x5f5933-0x1;}['_toggleDialog'](){const _0x3207ef=this['editor'],_0x9f6135=_0x3207ef['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x3207ef['locale'],this['annotationViews'])),'commentsArchive'===_0x9f6135['id']?_0x9f6135['hide']():_0x9f6135['show']({'id':'commentsArchive','title':S(_0x3207ef['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0xe69b5f['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x34c7c5,_0xc98889=!0x1){const _0x549994=this['editor']['locale'],_0x33cba9=this['editor']['plugins']['get']('Dialog'),_0x50f768=new _0x34c7c5(_0x549994);return _0x50f768['bind']('isEnabled')['to'](this,'isEnabled'),_0x50f768['bind']('isOn')['to'](_0x33cba9,'id',_0x5dd5b7=>'commentsArchive'===_0x5dd5b7),_0x50f768['set']({'label':S(_0x549994,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0xc98889&&(_0x50f768['tooltip']=!0x0),this['listenTo'](_0x50f768,'execute',()=>this['_toggleDialog']()),_0x50f768;}['_hideDialogOnAnnotationEscape']=_0x25f055=>{const _0x48778f=_0x25f055['source'];if(!this['annotationViews']['has'](_0x48778f['view']))return;const _0x2de759=this['editor']['plugins']['get']('Dialog');_0x2de759['isOpen']&&'commentsArchive'===_0x2de759['id']&&(_0x2de759['hide'](),_0x25f055['stop']());};}class p extends _0x5a85ea{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,ss as BaseCommentThreadView,os as BaseCommentView,re as Comment,oe as CommentThread,yt as CommentThreadController,ie as CommentThreadInputView,Ct as CommentThreadView,vt 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};