@ckeditor/ckeditor5-comments 48.0.0 → 48.0.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/dist/index.js +11 -11
  2. package/dist/translations/af.js +1 -1
  3. package/dist/translations/af.umd.js +1 -1
  4. package/dist/translations/ar.js +1 -1
  5. package/dist/translations/ar.umd.js +1 -1
  6. package/dist/translations/ast.js +1 -1
  7. package/dist/translations/ast.umd.js +1 -1
  8. package/dist/translations/az.js +1 -1
  9. package/dist/translations/az.umd.js +1 -1
  10. package/dist/translations/be.js +1 -1
  11. package/dist/translations/be.umd.js +1 -1
  12. package/dist/translations/bg.js +1 -1
  13. package/dist/translations/bg.umd.js +1 -1
  14. package/dist/translations/bn.js +1 -1
  15. package/dist/translations/bn.umd.js +1 -1
  16. package/dist/translations/bs.js +1 -1
  17. package/dist/translations/bs.umd.js +1 -1
  18. package/dist/translations/ca.js +1 -1
  19. package/dist/translations/ca.umd.js +1 -1
  20. package/dist/translations/cs.js +1 -1
  21. package/dist/translations/cs.umd.js +1 -1
  22. package/dist/translations/da.js +1 -1
  23. package/dist/translations/da.umd.js +1 -1
  24. package/dist/translations/de-ch.js +1 -1
  25. package/dist/translations/de-ch.umd.js +1 -1
  26. package/dist/translations/de.js +1 -1
  27. package/dist/translations/de.umd.js +1 -1
  28. package/dist/translations/el.js +1 -1
  29. package/dist/translations/el.umd.js +1 -1
  30. package/dist/translations/en-au.js +1 -1
  31. package/dist/translations/en-au.umd.js +1 -1
  32. package/dist/translations/en-gb.js +1 -1
  33. package/dist/translations/en-gb.umd.js +1 -1
  34. package/dist/translations/en.js +1 -1
  35. package/dist/translations/en.umd.js +1 -1
  36. package/dist/translations/eo.js +1 -1
  37. package/dist/translations/eo.umd.js +1 -1
  38. package/dist/translations/es-co.js +1 -1
  39. package/dist/translations/es-co.umd.js +1 -1
  40. package/dist/translations/es.js +1 -1
  41. package/dist/translations/es.umd.js +1 -1
  42. package/dist/translations/et.js +1 -1
  43. package/dist/translations/et.umd.js +1 -1
  44. package/dist/translations/eu.js +1 -1
  45. package/dist/translations/eu.umd.js +1 -1
  46. package/dist/translations/fa.js +1 -1
  47. package/dist/translations/fa.umd.js +1 -1
  48. package/dist/translations/fi.js +1 -1
  49. package/dist/translations/fi.umd.js +1 -1
  50. package/dist/translations/fr.js +1 -1
  51. package/dist/translations/fr.umd.js +1 -1
  52. package/dist/translations/gl.js +1 -1
  53. package/dist/translations/gl.umd.js +1 -1
  54. package/dist/translations/gu.js +1 -1
  55. package/dist/translations/gu.umd.js +1 -1
  56. package/dist/translations/he.js +1 -1
  57. package/dist/translations/he.umd.js +1 -1
  58. package/dist/translations/hi.js +1 -1
  59. package/dist/translations/hi.umd.js +1 -1
  60. package/dist/translations/hr.js +1 -1
  61. package/dist/translations/hr.umd.js +1 -1
  62. package/dist/translations/hu.js +1 -1
  63. package/dist/translations/hu.umd.js +1 -1
  64. package/dist/translations/hy.js +1 -1
  65. package/dist/translations/hy.umd.js +1 -1
  66. package/dist/translations/id.js +1 -1
  67. package/dist/translations/id.umd.js +1 -1
  68. package/dist/translations/it.js +1 -1
  69. package/dist/translations/it.umd.js +1 -1
  70. package/dist/translations/ja.js +1 -1
  71. package/dist/translations/ja.umd.js +1 -1
  72. package/dist/translations/jv.js +1 -1
  73. package/dist/translations/jv.umd.js +1 -1
  74. package/dist/translations/kk.js +1 -1
  75. package/dist/translations/kk.umd.js +1 -1
  76. package/dist/translations/km.js +1 -1
  77. package/dist/translations/km.umd.js +1 -1
  78. package/dist/translations/kn.js +1 -1
  79. package/dist/translations/kn.umd.js +1 -1
  80. package/dist/translations/ko.js +1 -1
  81. package/dist/translations/ko.umd.js +1 -1
  82. package/dist/translations/ku.js +1 -1
  83. package/dist/translations/ku.umd.js +1 -1
  84. package/dist/translations/lt.js +1 -1
  85. package/dist/translations/lt.umd.js +1 -1
  86. package/dist/translations/lv.js +1 -1
  87. package/dist/translations/lv.umd.js +1 -1
  88. package/dist/translations/ms.js +1 -1
  89. package/dist/translations/ms.umd.js +1 -1
  90. package/dist/translations/nb.js +1 -1
  91. package/dist/translations/nb.umd.js +1 -1
  92. package/dist/translations/ne.js +1 -1
  93. package/dist/translations/ne.umd.js +1 -1
  94. package/dist/translations/nl.js +1 -1
  95. package/dist/translations/nl.umd.js +1 -1
  96. package/dist/translations/no.js +1 -1
  97. package/dist/translations/no.umd.js +1 -1
  98. package/dist/translations/oc.js +1 -1
  99. package/dist/translations/oc.umd.js +1 -1
  100. package/dist/translations/pl.js +1 -1
  101. package/dist/translations/pl.umd.js +1 -1
  102. package/dist/translations/pt-br.js +1 -1
  103. package/dist/translations/pt-br.umd.js +1 -1
  104. package/dist/translations/pt.js +1 -1
  105. package/dist/translations/pt.umd.js +1 -1
  106. package/dist/translations/ro.js +1 -1
  107. package/dist/translations/ro.umd.js +1 -1
  108. package/dist/translations/ru.js +1 -1
  109. package/dist/translations/ru.umd.js +1 -1
  110. package/dist/translations/si.js +1 -1
  111. package/dist/translations/si.umd.js +1 -1
  112. package/dist/translations/sk.js +1 -1
  113. package/dist/translations/sk.umd.js +1 -1
  114. package/dist/translations/sl.js +1 -1
  115. package/dist/translations/sl.umd.js +1 -1
  116. package/dist/translations/sq.js +1 -1
  117. package/dist/translations/sq.umd.js +1 -1
  118. package/dist/translations/sr-latn.js +1 -1
  119. package/dist/translations/sr-latn.umd.js +1 -1
  120. package/dist/translations/sr.js +1 -1
  121. package/dist/translations/sr.umd.js +1 -1
  122. package/dist/translations/sv.js +1 -1
  123. package/dist/translations/sv.umd.js +1 -1
  124. package/dist/translations/th.js +1 -1
  125. package/dist/translations/th.umd.js +1 -1
  126. package/dist/translations/ti.js +1 -1
  127. package/dist/translations/ti.umd.js +1 -1
  128. package/dist/translations/tk.js +1 -1
  129. package/dist/translations/tk.umd.js +1 -1
  130. package/dist/translations/tr.js +1 -1
  131. package/dist/translations/tr.umd.js +1 -1
  132. package/dist/translations/tt.js +1 -1
  133. package/dist/translations/tt.umd.js +1 -1
  134. package/dist/translations/ug.js +1 -1
  135. package/dist/translations/ug.umd.js +1 -1
  136. package/dist/translations/uk.js +1 -1
  137. package/dist/translations/uk.umd.js +1 -1
  138. package/dist/translations/ur.js +1 -1
  139. package/dist/translations/ur.umd.js +1 -1
  140. package/dist/translations/uz.js +1 -1
  141. package/dist/translations/uz.umd.js +1 -1
  142. package/dist/translations/vi.js +1 -1
  143. package/dist/translations/vi.umd.js +1 -1
  144. package/dist/translations/zh-cn.js +1 -1
  145. package/dist/translations/zh-cn.umd.js +1 -1
  146. package/dist/translations/zh.js +1 -1
  147. package/dist/translations/zh.umd.js +1 -1
  148. package/package.json +16 -16
package/dist/index.js CHANGED
@@ -20,14 +20,14 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Editor as _0x1ce3e3,ContextPlugin as _0x705974,PendingActions as _0x2103da,Command as _0x2d9320,Plugin as _0x1bba21,Context as _0x49a0fd}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x3ae0df,uid as _0x4a1458,KeystrokeHandler as _0x5db9cd,FocusTracker as _0x52043f,diff as _0x3ea5f4,Collection as _0x350ad3,Rect as _0x3d315a,CKEditorError as _0x54e163,first as _0x2e7456,priorities as _0x361b9e,scrollViewportToShowTarget as _0xd70440,getEnvKeystrokeText as _0x1e8685,toUnit as _0x111cfa,DomEmitterMixin as _0x505e30,keyCodes as _0x1d5bdd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0xbd51f4,AriaDescriptionView as _0xde2dbc,setupThreadKeyboardNavigation as _0x24b54f,ConfirmMixin as _0x11786b,LateFocusButtonView as _0x5b437c,trimHtml as _0x5da163,LateFocusDropdownButtonView as _0x28ad1b,FOCUS_ANNOTATION_KEYSTROKE as _0x5251c2,Users as _0x2bc2d0,getDateTimeFormatter as _0x1ac6df,hashObject as _0x10af31,getAllMarkersDomElementsSorted as _0x205a24,surroundingMarkersDetector as _0x45d2fa}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{throttle as _0x2e8a8b,cloneDeep as _0x266fa7,set as _0x12e26b,unset as _0x5aa127,isEqual as _0x417820,debounce as _0x492a64}from'es-toolkit/compat';import{IconUndo as _0x5e84a9,IconCheck as _0x1fd70c,IconPencil as _0x1562f3,IconRemoveComment as _0x42cdd4,IconThreeVerticalDots as _0x57c8ba,IconAddComment as _0x6b0926,IconCommentsArchive as _0x232163}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as _0x12f47b,InlineEditableUIView as _0x356fcf,EditorUI as _0x3df786,View as _0x3c50cd,FocusCycler as _0x16c35f,ButtonView as _0x260967,ViewCollection as tt,createDropdown as it,ListView as et,focusChildOnDropdownOpen as st,ListItemView as nt,MenuBarMenuListItemButtonView as ot,BodyCollection as rt,BalloonPanelView as ht,ContextualBalloon as at,Dialog as ct,DialogViewPosition as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as lt,enableViewPlaceholder as ut,MouseObserver as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as ft,ClipboardMarkersUtils as pt,ClipboardPipeline as wt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as _t,ShiftEnter as gt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as At}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Tt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as vt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as yt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{toWidget as Ct}from'@ckeditor/ckeditor5-widget/dist/index.js';class It extends/* #__PURE__ -- @preserve */
24
- _0x3ae0df(){['model'];['view'];constructor(_0x4c5fbf,_0x5c99fb){super(),this['model']=_0x4c5fbf,this['model']['_isAttached']=!0x0,this['view']=_0x5c99fb,this['listenTo'](_0x5c99fb,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x5c99fb,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x5c99fb,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x5c99fb,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x5c99fb,'addComment',(_0x4a690d,_0x4c37e2)=>this['addComment'](_0x4c37e2)),this['listenTo'](_0x5c99fb,'updateComment',(_0x31e878,_0x25ec24,_0x226b1f)=>this['updateComment'](_0x25ec24,_0x226b1f)),this['listenTo'](_0x5c99fb,'removeComment',(_0x57b6b3,_0x27b99f)=>this['removeComment'](_0x27b99f));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x31f7bd){this['model']['addComment']({'content':_0x31f7bd,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x3aba51,_0x3db678){this['model']['getComment'](_0x3aba51)['update']({'content':_0x3db678});}['removeComment'](_0x51298d){this['model']['getComment'](_0x51298d)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function bt(_0x5cef6c,_0x58b69a,_0x10095a){const t=_0x5cef6c['t'];switch(_0x58b69a){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'},_0x10095a);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'},_0x10095a);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'},_0x10095a);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'},_0x10095a);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x10095a);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'},_0x10095a);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'},_0x10095a);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'},_0x10095a);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 Et extends _0x12f47b{['main'];['editable'];constructor(_0x31307c,_0x3bdad5){super(_0x31307c);const _0x13f0ee=_0x4a1458();this['main']=this['createCollection'](),this['editable']=new _0x356fcf(_0x31307c,_0x3bdad5,void 0x0,{'label':()=>bt(_0x31307c,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x31307c['uiLanguageDirection'],'lang':_0x31307c['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x13f0ee},'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 Nt extends _0x3df786{['view'];constructor(_0x1f5e15){super(_0x1f5e15),this['view']=new Et(_0x1f5e15['locale'],_0x1f5e15['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x2c4999=this['editor']['editing']['view'],_0x42bfbf=this['view']['editable'],_0x55b7ec=_0x2c4999['document']['getRoot']();_0x42bfbf['name']=_0x55b7ec['rootName'],this['view']['render']();const _0x1a4c80=_0x42bfbf['element'];this['setEditableElement'](_0x42bfbf['name'],_0x1a4c80),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2c4999['attachDomRoot'](_0x1a4c80),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const kt=[ft,_t,gt,At,Tt,vt,yt];class Ot extends/* #__PURE__ -- @preserve */
25
- _0x3ae0df(_0x1ce3e3){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>kt)());constructor(_0x16017d={}){function _0x30987d(_0x4dd39a){return _0x4dd39a['map'](_0x26bd8a=>String['fromCharCode'](_0x26bd8a))['join']('');}(_0x16017d=Object['assign']({},_0x16017d))['plugins']||(_0x16017d['plugins']=Ot['defaultPlugins']),super(_0x16017d),this['ui']=new Nt(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x30987d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30987d([0x76,0x69,0x65,0x77])][_0x30987d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x30987d([0x61,0x75,0x74,0x6f]),this[_0x30987d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x30987d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x30987d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x30987d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x30987d([0x6f,0x6b])});}['create'](){const _0x59e5a7=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x59e5a7))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x2eeb46=>{const _0x36762d=this['model']['document']['getRoot'](),_0x16c051=_0x36762d&&_0x36762d['getChild'](_0x36762d['childCount']-0x1);_0x2eeb46['setSelection'](_0x16c051,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x4bff70=this['editing']['view'],_0x450728=_0x4bff70['document']['getRoot'](),_0x29c9cb=_0x450728['getChild'](0x0);_0x450728['childCount']>0x1||!_0x29c9cb||'p'!=_0x29c9cb['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(lt(_0x4bff70,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x29c9cb['placeholder']=this['placeholder']),ut({'view':_0x4bff70,'element':_0x29c9cb,'keepOnFocus':!0x0}),this['placeholderElement']=_0x29c9cb);}}class Mt extends _0x3c50cd{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x3f90e2,_0x18e04e={}){super(_0x3f90e2),this['editor']=null,this['_editorConfig']=_0x18e04e,this['set']('value',_0x18e04e['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',bt(_0x3f90e2,'Reply...')),this['set']('submitLabel',bt(_0x3f90e2,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new _0x5db9cd(),this['focusTracker']=new _0x52043f(),this['focusCycler']=new _0x16c35f({'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',(_0x1ef38a,_0x3fa3b9)=>{this['cancelButtonView']['fire']('execute'),_0x3fa3b9();}),this['keystrokes']['set']('Ctrl+Enter',(_0x50ccda,_0x19fac6)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x19fac6());}),this['on']('submit',(_0xf9cade,_0x229adc)=>{_0x229adc['length']>0xfde8?(alert(bt(_0x3f90e2,'TOO_LONG_COMMENT_ALERT',[_0x229adc['length'],0xfde8])),_0xf9cade['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Ot(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0xcab955=this['editor'];this['element']['insertBefore'](_0xcab955['ui']['element'],this['element']['firstChild']),_0xcab955['model']['document']['on']('change',()=>this['value']=_0xcab955['getData']()),_0xcab955['bind']('placeholder')['to'](this),this['focusables']['add'](_0xcab955['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x115553){-0x1===_0x115553?(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:_0xbc32f1}=this,_0x3a1155=new _0x260967(_0xbc32f1);return _0x3a1155['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x3a1155['withText']=!0x0,_0x3a1155['bind']('label')['to'](this,'submitLabel'),_0x3a1155['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x3a1155['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x14b475,_0x5ce549)=>!_0x5ce549&&!!_0x14b475['trim']()),_0x3a1155;}['_createCancelButton'](){const {locale:_0x551f0c}=this,_0x60b0dc=new _0x260967(_0x551f0c);return _0x60b0dc['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x60b0dc['label']=bt(_0x551f0c,'Cancel'),_0x60b0dc['withText']=!0x0,_0x60b0dc['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x60b0dc;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x2599e4=>{this['focusTracker']['add'](_0x2599e4['element']);}),this['focusables']['on']('change',(_0x312842,_0x5c4745)=>{for(const _0x547c49 of Array['from'](_0x5c4745['added'])['reverse']())this['focusTracker']['add'](_0x547c49['element']);});}}class Rt extends _0x3c50cd{constructor(_0x5527cf,_0x1353aa,_0x10ca5b){super(_0x5527cf),this['commentInputView']=new Mt(_0x5527cf,_0x10ca5b),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x389796,_0x52b428)=>_0x389796||!!_0x52b428),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 _0xbd51f4(_0x5527cf,_0x1353aa),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'](_0x13966f){this['commentInputView']['focus'](_0x13966f);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x3eafcc,_0x169d64)=>{const {submitButtonView:_0x97648d,cancelButtonView:_0x195cdd,editor:_0x146377}=this['commentInputView'];[_0x97648d['element'],_0x195cdd['element'],_0x146377?_0x146377['editing']['view']['getDomRoot']():null]['filter'](_0x5e9b4c=>_0x5e9b4c)['some'](_0x4c3b93=>_0x4c3b93['contains'](_0x169d64['target']))||(this['focus'](),_0x169d64['preventDefault']());});}}class xt extends _0x3c50cd{constructor(_0xf08224){super(_0xf08224);const _0x463aec=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x463aec['to']('count',_0x277550=>bt(_0xf08224,'NUMBER_OF_COMMENTS',_0x277550))}]});}}class St extends _0x3c50cd{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x6e90ff,_0x2fcfbd,_0x2f96d7){super(_0x6e90ff);const _0x2be7a9=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x2fcfbd['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x2fcfbd,this['_config']=_0x2f96d7,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x52043f(),this['keystrokes']=new _0x5db9cd(),this['focusCycler']=new _0x16c35f({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x26521e=>this['commentViews']['map'](_0x2d1d59=>_0x2d1d59['element'])['includes'](_0x26521e['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new xt(_0x6e90ff),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x2f67f8=>_0x2f67f8-this['_config']['maxCommentsWhenCollapsed']);for(const _0x22b5de of _0x2fcfbd['comments'])this['_handleNewCommentModel'](_0x22b5de);this['_handleInfoComment'](),this['listenTo'](_0x2fcfbd['comments'],'add',(_0x380181,_0x2f77c9)=>{const _0x44bef2=this['_calculatePosition'](_0x2f77c9);this['length']++,this['_handleNewCommentModel'](_0x2f77c9,_0x44bef2),this['refreshVisibleViews']();}),this['listenTo'](_0x2fcfbd['comments'],'remove',(_0xea998a,_0x4c313c)=>{this['length']--,this['_handleRemoveCommentModel'](_0x4c313c),this['refreshVisibleViews']();}),this['listenTo'](_0x2fcfbd,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x2fcfbd,'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',_0x2be7a9['if']('length','ck-hidden',_0x53b6d4=>!_0x53b6d4)],'aria-label':bt(_0x6e90ff,'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'](_0x1c600c){-0x1===_0x1c600c?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x516a2d of this['commentViews'])_0x516a2d['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x320963,_0x3d990b){const _0x38923a=new this['_config']['CommentView'](this['locale'],_0x320963,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x38923a['viewUid']=_0x320963['id'],_0x38923a['delegate']('removeComment')['to'](this),_0x38923a['delegate']('updateComment')['to'](this),_0x38923a['delegate']('resolveCommentThread')['to'](this),_0x38923a['delegate']('editorReady')['to'](this),_0x38923a['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x38923a,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x38923a,_0x3d990b);}['_calculatePosition'](_0x16baea){const _0x4c732f=this['_model']['_findOptimalIndex'](_0x16baea);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x16baea['authoredAt']?_0x4c732f-0x1:_0x4c732f:_0x4c732f-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x29f2b8={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':bt(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x29f2b8,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x29f2b8));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x30b442){const _0x3fb3c6=this['commentViews']['remove'](_0x30b442['id']);this['stopListening'](_0x3fb3c6),_0x3fb3c6['isEditMode']&&this['_updateHasDirtyComment'](),_0x3fb3c6['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x542674=>_0x542674['isEditMode']);}['_rearrangeCollapse'](){const _0x4acbe6=function(_0x5cf808){const _0x5f3081=new _0x350ad3();for(const _0x462fc1 of _0x5cf808)_0x5f3081['add'](_0x462fc1);return _0x5f3081;}(this['commentViews']),_0x15977c=this['_collapsedCommentsView']['count'];for(let _0x3250a4=0x1;_0x3250a4<=_0x15977c;_0x3250a4++)_0x4acbe6['remove'](0x1);for(const _0xe2761d of _0x4acbe6)_0xe2761d['collapse']();_0x15977c>0x0&&_0x4acbe6['add'](this['_collapsedCommentsView'],0x1),Pt(_0x3ea5f4(Array['from'](this['visibleViews']),Array['from'](_0x4acbe6)),this['visibleViews'],_0x4acbe6);}['_rearrangeExpand'](){Pt(_0x3ea5f4(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x1e9f6d of this['visibleViews'])_0x1e9f6d['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0xa73316=>{this['focusTracker']['add'](_0xa73316['element']),this['keystrokes']['listenTo'](_0xa73316['element']);}),this['commentViews']['on']('change',(_0x1b8e56,_0x507298)=>{for(const _0x4b7df5 of _0x507298['removed'])this['focusTracker']['remove'](_0x4b7df5['element']),this['keystrokes']['stopListening'](_0x4b7df5['element']);for(const _0x2a19fd of Array['from'](_0x507298['added'])['reverse']())this['focusTracker']['add'](_0x2a19fd['element']),this['keystrokes']['listenTo'](_0x2a19fd['element']);});}}function Pt(_0x19898d,_0x12cd64,_0x18ca18){let _0x3a5fc7=0x0;for(const _0x2bcc07 of _0x19898d)switch(_0x2bcc07){case'insert':_0x12cd64['add'](_0x18ca18['get'](_0x3a5fc7),_0x3a5fc7),_0x3a5fc7++;break;case'delete':_0x12cd64['remove'](_0x3a5fc7);break;case'equal':_0x3a5fc7++;}}class Lt extends _0x3c50cd{constructor(_0x3e4188){super(_0x3e4188);const _0x222fb1=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x222fb1['to']('contextValue',_0x1747ba=>bt(_0x3e4188,'THREAD_CONTEXT_LABEL',_0x1747ba)),'tabindex':-0x1},'children':[{'text':_0x222fb1['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Dt extends _0x3c50cd{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x30637c,_0x503980){super(_0x30637c);const _0x675b33=this['bindTemplate'];this['_model']=_0x503980,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x52043f(),this['keystrokes']=new _0x5db9cd(),this['focusCycler']=new _0x16c35f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x1ad7ab=>!!_0x1ad7ab),this['bind']('contextValue')['to'](this['_model'],'context',_0x1735d6=>_0x1735d6&&_0x1735d6['value']?this['_trimContextValue'](_0x1735d6['value']):bt(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',_0x675b33['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 _0x35f72c=new _0x260967(this['locale']);return _0x35f72c['label']=bt(this['locale'],'Reopen'),_0x35f72c['tooltip']=bt(this['locale'],'Reopen'),_0x35f72c['icon']=_0x5e84a9,_0x35f72c['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x52dc0a=>!_0x52dc0a),_0x35f72c['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x32ad0d,_0x234b4e)=>_0x32ad0d&&_0x234b4e),_0x35f72c['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x35f72c;}['_trimContextValue'](_0xcb8ab8){if(_0xcb8ab8['length']<0x96)return _0xcb8ab8;const _0x128465=_0xcb8ab8['lastIndexOf']('\x20',0x93);return _0xcb8ab8['substring'](0x0,_0x128465>-0x1?_0x128465:0x93)+'...';}['_attachContextActions'](){const _0x2c3b40=this['element']['querySelector']('.ck-context'),_0x4d24c3=_0x2c3b40['querySelector']('.ck-context__value');this['listenTo'](_0x2c3b40,'mouseenter',()=>{_0x4d24c3['offsetWidth']<_0x4d24c3['scrollWidth']&&_0x2c3b40['classList']['add']('overlay');}),this['listenTo'](_0x2c3b40,'mouseleave',()=>{_0x2c3b40['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0xcc6bc7 of this['focusables'])this['focusTracker']['add'](_0xcc6bc7['element']),this['keystrokes']['listenTo'](_0xcc6bc7['element']);}['_createContextView'](){const _0x3b4f44=new Lt(this['locale']);return _0x3b4f44['bind']('contextValue')['to'](this),_0x3b4f44;}}class Vt extends _0x3c50cd{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x466b1b,_0x53bb93,_0x5e2235,_0x449a11){super(_0x466b1b),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x53bb93,this['_localUser']=_0x5e2235,this['_config']=_0x449a11,this['commentThreadHeaderView']=new Dt(_0x466b1b,_0x53bb93),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new _0xde2dbc(_0x466b1b,bt(_0x466b1b,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new St(_0x466b1b,_0x53bb93,Object['assign']({'CommentView':this['_config']['CommentView']},_0x449a11)),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',(_0x3337ea,_0x560465)=>_0x3337ea||!!_0x560465),this['bind']('isUnlinked')['to'](_0x53bb93,'unlinkedAt',_0x35dd46=>!!_0x35dd46),this['bind']('ariaLabel')['to'](this,'length',_0xaa6c80=>{const _0x2ee00e=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return bt(this['locale'],'COMMENT_THREAD_LABEL',[_0xaa6c80,_0x2ee00e]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x52043f(),this['keystrokes']=new _0x5db9cd(),this['focusCycler']=new _0x16c35f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3860ac=>_0x3860ac['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x24b54f(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x339935=new Rt(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x13a805=_0x339935['commentInputView'];return _0x339935['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x13a805,'value',(_0x8f1c82,_0x15a341,_0x516fd8,_0x166cc0,_0x4f8391)=>!!_0x4f8391||!!_0x166cc0&&_0x516fd8&&!_0x15a341||_0x8f1c82&&_0x516fd8&&!_0x15a341),_0x13a805['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x254a27,_0x268d2b,_0x287f59)=>{let _0x5ae327;return _0x5ae327=_0x287f59&&_0x268d2b?'Reply\x20to\x20reopen\x20discussion...':_0x254a27?'Reply...':'Write\x20a\x20comment...',bt(this['locale'],_0x5ae327);}),_0x13a805['bind']('submitLabel')['to'](this,'length',_0x4d5346=>bt(this['locale'],_0x4d5346?'Reply':'Comment')),_0x13a805['on']('submit',(_0x498c8b,_0x3940be)=>{this['fire']('addComment',_0x3940be),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x13a805['on']('cancel',()=>{this['focus']();}),_0x13a805['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x13a805['on']('cancel',_0x93627=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x93627['stop']());}),this['on']('change:isActive',(_0xe15715,_0x4a1d1b,_0x3c2dbb)=>{_0x3c2dbb||this['length']||_0x13a805['value']||this['fire']('removeCommentThread');}),_0x339935;}}class Bt extends/* #__PURE__ -- @preserve */
27
- _0x11786b(Vt){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x144714,_0x355dcd,_0x3728f6,_0x460b9e){super(_0x144714,_0x355dcd,_0x3728f6,_0x460b9e),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x144714,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x503e82,_0x21efe7,_0x2f898b)=>{_0x2f898b||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x137c84,_0x1b140c,_0x4d6cdf)=>{_0x4d6cdf&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x19ca67=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x19ca67['if']('isActive','ck-thread--active'),_0x19ca67['if']('isUnlinked','ck-thread--unlinked'),_0x19ca67['to']('actionIndicator',_0x140bbf=>_0x140bbf?'ck-thread--'+_0x140bbf:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x19ca67['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 _0x485689 of this['commentsListView']['commentViews'])_0x485689['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x448e9d}=this,_0x48bfef=this['commentsListView']['commentViews']['get'](0x0);_0x48bfef===this['_boundFirstCommentView']||_0x48bfef['isSystemComment']||(this['_boundFirstCommentView']=_0x48bfef,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x48bfef,'actionIndicator',_0x27bc10=>'remove'===_0x27bc10?'remove':null),_0x48bfef['placeholder']=bt(_0x448e9d,'Write\x20a\x20comment...'),_0x48bfef['removeButton']['on']('execute',_0x4f6da6=>{_0x4f6da6['stop'](),this['showConfirm'](bt(_0x448e9d,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x48bfef['focus']();}),_0x48bfef['actionBar']['add'](this['resolveButton'],0x0),_0x48bfef['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x278358=new _0x5b437c(this['locale']);return _0x278358['label']=bt(this['locale'],'Resolve'),_0x278358['tooltip']=bt(this['locale'],'Resolve'),_0x278358['icon']=_0x1fd70c,_0x278358['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x278358['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x20e7e8=>!_0x20e7e8),_0x278358['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3de119,_0x2a6ed9)=>_0x3de119&&!_0x2a6ed9),_0x278358['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x278358;}['_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 Ht extends _0x3c50cd{constructor(_0x5cbd68){super(_0x5cbd68),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x49b244,_0x5ea2ed,_0x107608)=>{this['element']['innerHTML']=_0x107608;}),this['element']['innerHTML']=this['content'];}}class Ft extends _0x3c50cd{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x55572d,_0x3d960c,_0x4548b5){super(_0x55572d),this['_model']=_0x3d960c,this['_config']=_0x4548b5,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x3d960c,'content',_0x3d960c,'authoredAt',(_0xa80ea,_0x512750)=>bt(_0x55572d,'COMMENT_ARIA_LABEL',[_0x3d960c['author']['name'],_0x4548b5['formatDateTime'](_0x512750),new DOMParser()['parseFromString'](_0xa80ea,'text/html')['body']['textContent'],_0x3d960c['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new _0xde2dbc(_0x55572d,bt(_0x55572d,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new tt(),this['focusTracker']=new _0x52043f(),this['keystrokes']=new _0x5db9cd(),this['focusCycler']=new _0x16c35f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1d7ffb=>_0x1d7ffb['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']?bt(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):bt(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?bt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):bt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x5d171e=new Ht(this['locale']);return _0x5d171e['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x21d696,_0x40181a)=>_0x40181a?_0x5da163(_0x21d696,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x21d696),_0x5d171e;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x59473e=new Mt(this['locale'],this['_config']['editorConfig']);return _0x59473e['value']=this['_model']['content'],_0x59473e['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x59473e['submitLabel']=bt(this['locale'],'Save'),_0x59473e['on']('submit',(_0x32013e,_0x15b94d)=>{this['fire']('updateComment',this['_model']['id'],_0x15b94d),this['switchToDisplayMode'](),this['focus']();}),_0x59473e['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x59473e['once']('editorReady',()=>{_0x59473e['focus']();}),_0x59473e['createEditor'](),_0x59473e['delegate']('editorReady')['to'](this),_0x59473e['delegate']('editorDestroyed')['to'](this),_0x59473e;}['_setupKeyboardNavigation'](){const _0x395fce=this['element'];this['keystrokes']['listenTo'](_0x395fce);for(const _0x543238 of this['focusables'])this['focusTracker']['add'](_0x543238['element']),this['keystrokes']['listenTo'](_0x543238['element']);this['focusables']['on']('change',(_0xf61cbd,_0x5d4a50)=>{for(const _0x489fd0 of _0x5d4a50['removed'])this['focusTracker']['remove'](_0x489fd0['element']),this['keystrokes']['stopListening'](_0x489fd0['element']);for(const _0x258abd of _0x5d4a50['added'])this['focusTracker']['add'](_0x258abd['element']),this['keystrokes']['listenTo'](_0x258abd['element']);}),this['keystrokes']['set']('enter',(_0x24edf1,_0x2a0703)=>{_0x395fce===_0x24edf1['target']&&(this['focusCycler']['focusFirst'](),_0x2a0703());}),this['keystrokes']['set']('esc',(_0xe702e4,_0x384729)=>{_0x395fce!==_0xe702e4['target']&&(this['focus'](),_0x384729());});}}class Ut extends/* #__PURE__ -- @preserve */
28
- _0x11786b(Ft){['actionBar'];['userView'];constructor(_0x261feb,_0x402286,_0x5898d0){super(_0x261feb,_0x402286,_0x5898d0),this['set']('actionIndicator',null),this['set']('placeholder',bt(_0x261feb,'Reply...')),this['bind']('authoredAt')['to'](_0x402286),this['bind']('resolvedAt')['to'](_0x402286),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 _0xbd51f4(_0x261feb,_0x402286['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x402286,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x9aee25=this['bindTemplate'],_0xfd3dc5=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x9aee25['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x9aee25['to']('authoredAt',_0x5b008f=>this['_config']['formatDateTime'](_0x5b008f))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x9aee25['if']('isEditMode','ck-comment__actions--hidden'),_0x9aee25['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']&&_0xfd3dc5['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x9aee25['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x9aee25['if']('isEditMode','ck-comment--edit'),_0x9aee25['if']('isSystemComment','ck-comment--info'),_0x9aee25['to']('actionIndicator',_0xb426b5=>_0xb426b5?'ck-comment--'+_0xb426b5:'')],'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':_0xfd3dc5}]}]};}['_createEditButton'](){const _0x1a2f93=new _0x260967(this['locale']);return _0x1a2f93['label']=bt(this['locale'],'Edit'),_0x1a2f93['icon']=_0x1562f3,_0x1a2f93['withText']=!0x0,_0x1a2f93['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x1a2f93['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x19a9a3=>!_0x19a9a3),_0x1a2f93['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x1a2f93['on']('execute',()=>this['switchToEditMode']()),_0x1a2f93;}['_createRemoveButton'](){const _0x3594e2=new _0x260967(this['locale']);return _0x3594e2['label']=bt(this['locale'],'Remove'),_0x3594e2['icon']=_0x42cdd4,_0x3594e2['withText']=!0x0,_0x3594e2['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x3594e2['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x39e0ce=>!_0x39e0ce),_0x3594e2['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x3594e2['on']('execute',()=>{this['showConfirm'](bt(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x3594e2;}['_createDropdown'](){const _0x20be1a=it(this['locale'],_0x28ad1b),_0xaed44e=_0x20be1a['panelView']['children'],_0x306074=new et(this['locale']),_0x372fc0=_0x20be1a['bindTemplate'];st(_0x20be1a,()=>this['items']['find'](_0x2f6063=>_0x2f6063['isVisible'])),_0x20be1a['extendTemplate']({'attributes':{'class':[_0x372fc0['if']('isVisible','ck-hidden',_0x2a27a3=>!_0x2a27a3)]}});const _0x260d83=(_0x4de745,_0x1793f3=-0x1)=>{const _0x48fb5e=new nt(this['locale']);_0x48fb5e['children']['add'](_0x4de745);const _0x479b6d=_0x1793f3>-0x1?_0x1793f3:_0x306074['items']['length'];_0x306074['items']['add'](_0x48fb5e,_0x479b6d);const _0x38f254=Array['from'](this['items']);_0x20be1a['unbind']('isEnabled','isVisible'),_0x20be1a['bind']('isEnabled')['toMany'](_0x38f254,'isEnabled',(..._0x1ed2af)=>_0x1ed2af['some'](_0xc3e257=>_0xc3e257)),_0x20be1a['bind']('isVisible')['toMany'](_0x38f254,'isVisible',(..._0x58caf4)=>_0x58caf4['some'](_0x22521f=>_0x22521f));};_0x20be1a['panelPosition']='sw',_0x20be1a['buttonView']['set']({'label':bt(this['locale'],'Show\x20more\x20items'),'icon':_0x57c8ba});for(const _0x1d5f77 of this['items'])_0x260d83(_0x1d5f77);return _0xaed44e['add'](_0x306074),_0x20be1a['listenTo'](this['items'],'add',(_0x232268,_0xd805fa,_0x49ce3a)=>{_0x260d83(_0xd805fa,_0x49ce3a);}),_0x20be1a['listenTo'](this['items'],'remove',(_0x2118e0,_0x5419a1,_0x532029)=>{_0x306074['items']['remove'](_0x532029);}),_0x20be1a;}['_attachActions'](_0x39e40e,_0xdd2a18){const _0x73f191=_0x39e40e&&_0x39e40e['element'];_0x73f191&&(this['listenTo'](_0x73f191,'mouseenter',()=>this['actionIndicator']=_0xdd2a18),this['listenTo'](_0x73f191,'focus',()=>this['actionIndicator']=_0xdd2a18),this['listenTo'](_0x73f191,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x73f191,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x5362c7=super['_createCommentInputView']();return _0x5362c7['bind']('placeholder')['to'](this),_0x5362c7;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Wt(_0x3bbffe){const _0x456d5f=_0x2e8a8b(_0x3bbffe,0x1e),_0x29b908=new MutationObserver(_0xa7015e=>{for(const _0x473a4c of _0xa7015e)('attributes'==_0x473a4c['type']&&'class'==_0x473a4c['attributeName']||'childList'==_0x473a4c['type']||'characterData'==_0x473a4c['type'])&&_0x456d5f();});return{'attach'(_0x50c051){_0x29b908['observe'](_0x50c051,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x29b908['disconnect'](),_0x456d5f['cancel']();}};}class Kt extends _0x3c50cd{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x465cc3,_0x2f6c8b){super(_0x465cc3),this['id']=_0x4a1458(),this['focusTracker']=new _0x52043f(),this['keystrokes']=new _0x5db9cd(),this['keystrokes']['set']('Esc',(_0x3e2eeb,_0x26c0ca)=>this['fire']('Esc',_0x26c0ca)),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']=Wt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x2f6c8b),this['mainView']=_0x2f6c8b;const _0xf2908f=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0xf2908f['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 _0x2ecf28=this['element']['clientHeight'];_0x2ecf28&&(this['height']=_0x2ecf28);}}class Yt extends/* #__PURE__ -- @preserve */
29
- _0x3ae0df(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x82278f,target:_0x28d157,type:_0x499c71,isVisible:_0x244ec4=!0x0}){super(),this['view']=_0x82278f,this['view']['element']||this['view']['render'](),this['_type']=_0x499c71,this['_target']=_0x28d157,Yt['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x350ad3([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x590d8c,_0xad247a)=>{this['view']['focusTracker']['add'](_0xad247a);}),this['focusableElements']['on']('remove',(_0xd3683f,_0x369573)=>{this['view']['focusTracker']['remove'](_0x369573);}),this['set']('isVisible',_0x244ec4);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x433158=this['_getNormalizedTarget']();return Yt['_assertCorrectTarget'](_0x433158),_0x433158;}get['targetRect'](){const _0x2a4929=this['target'];if(null===_0x2a4929)return null;if(_0x2a4929 instanceof _0x3d315a)return _0x2a4929;const _0x2fe7a9=_0x2a4929['filter'](_0x11b450=>function(_0x405475){const _0x17ade0=_0x405475['offsetParent'];if(_0x17ade0)return!0x0;const _0x5bf7b5=_0x405475['getClientRects']()['item'](0x0);return!!_0x5bf7b5;}(_0x11b450));return 0x0===_0x2fe7a9['length']?null:_0x3d315a['getDomElementRects'](_0x2fe7a9[0x0])[0x0];}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x46c040){this['view']['isActive']=_0x46c040,this['view']['mainView']['isActive']=_0x46c040;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x197ff4){if(!(null===_0x197ff4||_0x197ff4 instanceof _0x3d315a||Array['isArray'](_0x197ff4)&&_0x197ff4['every'](_0x5f4e7d=>Gt(_0x5f4e7d))))throw new _0x54e163('annotation-invalid-target',null,{'target':_0x197ff4});}['_getNormalizedTarget'](){const _0x46d711='function'==typeof this['_target']?this['_target']():this['_target'];return Gt(_0x46d711)?[_0x46d711]:_0x46d711;}}function Gt(_0x29c732){return null!==_0x29c732&&'object'==typeof _0x29c732&&'nodeType'in _0x29c732&&0x1===_0x29c732['nodeType'];}class jt extends _0x350ad3{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x106241=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x52043f(),this['_focusTracker']['on']('change:isFocused',(_0x4f9a19,_0x3e33d3,_0x548b80)=>{_0x548b80||this['fire']('blur');});for(const _0x3f3eeb of _0x106241)this['add'](_0x3f3eeb);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x457a01){if(this['has'](_0x457a01))throw new _0x54e163('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x457a01['innerView'],_0x457a01),this['_viewToAnnotation']['set'](_0x457a01['view'],_0x457a01);for(const _0x15166a of _0x457a01['focusableElements'])this['_focusTracker']['add'](_0x15166a);this['listenTo'](_0x457a01['focusableElements'],'add',(_0x445d12,_0xb3dd88)=>{this['_focusTracker']['add'](_0xb3dd88);}),this['listenTo'](_0x457a01['focusableElements'],'remove',(_0x3d6824,_0x519d31)=>{this['_focusTracker']['remove'](_0x519d31);}),this['listenTo'](_0x457a01['view']['focusTracker'],'change:isFocused',(_0xec9053,_0x59a596,_0x2c1fa6)=>{_0x2c1fa6&&this['fire']('focus',_0x457a01);}),_0x457a01['updateTargetRect']();const _0x4d26ac=this['_getOrderInContent'](_0x457a01['view']['targetRect']);return super['add'](_0x457a01,_0x4d26ac);}['remove'](_0x42ea0d){if(!this['has'](_0x42ea0d))throw new _0x54e163('annotationcollection-not-existing-item',null);this['stopListening'](_0x42ea0d['view']['focusTracker']),this['stopListening'](_0x42ea0d['focusableElements']);for(const _0x68309c of _0x42ea0d['focusableElements'])this['_focusTracker']['remove'](_0x68309c);return this['_viewToAnnotation']['delete'](_0x42ea0d['view']),this['_innerViewToAnnotation']['delete'](_0x42ea0d['innerView']),super['remove'](_0x42ea0d);}['getByInnerView'](_0x4ac28e){return this['_innerViewToAnnotation']['get'](_0x4ac28e);}['getByView'](_0x25772c){return this['_viewToAnnotation']['get'](_0x25772c);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x469773 of this)_0x469773['updateTargetRect']();this['_sort']();}['_sort'](){const _0x502c64=Array['from'](this)['sort']((_0x5f3263,_0x28d627)=>qt(_0x5f3263['view']['targetRect'],_0x28d627['view']['targetRect']));for(let _0x181712=_0x502c64['length']-0x1;_0x181712>0x0;_0x181712--){const _0xc186a9=_0x502c64[_0x181712];_0x181712!==this['getIndex'](_0xc186a9)&&(this['remove'](_0xc186a9),this['add'](_0xc186a9));}}['_getOrderInContent'](_0x1af727){let _0xcb46fb=0x0;if(!_0x1af727)return this['length'];for(const _0xfaa172 of this){const _0x5ed968=_0xfaa172['view']['targetRect'];if(_0x5ed968){if(qt(_0x1af727,_0x5ed968)<0x0)return _0xcb46fb;_0xcb46fb++;}}return _0xcb46fb;}}function Xt({source:_0x2c5569,target:_0x303e7f,filter:_0x971530}){for(const _0x3bc142 of _0x2c5569)_0x971530(_0x3bc142)&&_0x303e7f['add'](_0x3bc142);_0x303e7f['listenTo'](_0x2c5569,'add',(_0x137015,_0x2b1128)=>{_0x971530(_0x2b1128)&&_0x303e7f['add'](_0x2b1128);}),_0x303e7f['listenTo'](_0x2c5569,'remove',(_0x2c0031,_0x54d803)=>{_0x303e7f['has'](_0x54d803)&&_0x303e7f['remove'](_0x54d803);});}function qt(_0xf035fc,_0x330794){if(null===_0xf035fc&&null===_0x330794)return 0x0;if(null===_0xf035fc)return-0x1;if(null===_0x330794)return 0x1;const _0x3a96e5=_0xf035fc['top']-_0x330794['top'];return 0x0==_0x3a96e5?_0xf035fc['left']-_0x330794['left']:_0x3a96e5;}class $t extends _0x705974{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x421c27){if(super(_0x421c27),this['collection']=new jt(),this['_visibleAnnotations']=new jt(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x421c27 instanceof _0x1ce3e3){const _0x635935=_0x421c27['locale'];_0x421c27['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':bt(_0x635935,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':bt(_0x635935,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':bt(_0x635935,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':bt(_0x635935,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':bt(_0x635935,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':bt(_0x635935,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':bt(_0x635935,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x110476){this['collection']['add'](_0x110476);}['remove'](_0x4e2de4){this['collection']['remove'](_0x4e2de4),_0x4e2de4['destroy']();}['refreshVisibility'](){for(const _0x3be781 of this['collection'])_0x3be781['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x93109f){return this['collection']['getByInnerView'](_0x93109f);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x2e3f86 of this['collection'])_0x2e3f86['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x593cd1){this['fire']('_activateAnnotation',_0x593cd1);}['createAnnotation'](_0x28a57c){return new Yt(_0x28a57c);}['createAnnotationView'](_0x269f81,_0x27ab50){return new Kt(_0x269f81,_0x27ab50);}['_addActiveAnnotation'](_0x1c5c02){const _0x5a3ced=new Set(this['activeAnnotations']);_0x5a3ced['add'](_0x1c5c02),this['activeAnnotations']=_0x5a3ced;}['_removeActiveAnnotation'](_0x23b95e){const _0x504ae9=new Set(this['activeAnnotations']);_0x504ae9['delete'](_0x23b95e),this['activeAnnotations']=_0x504ae9;}['_bindAnnotationsToVisibleAnnotations'](){const _0x2b6986=this['collection'],_0x4af244=this['_visibleAnnotations'];function _0x1571c9(_0x3b3897){const _0x44ea20=_0x3b3897['source'];_0x44ea20['isVisible']&&!_0x4af244['has'](_0x44ea20)?_0x4af244['add'](_0x44ea20):!_0x44ea20['isVisible']&&_0x4af244['has'](_0x44ea20)&&_0x4af244['remove'](_0x44ea20),_0x44ea20['view']['focusTracker']['remove'](_0x44ea20['view']['element']),_0x44ea20['view']['focusTracker']['add'](_0x44ea20['view']['element']);}this['listenTo'](_0x2b6986,'add',(_0x5769b1,_0x350b46)=>{_0x350b46['isVisible']&&_0x4af244['add'](_0x350b46),this['listenTo'](_0x350b46,'change:isVisible',_0x1571c9);}),this['listenTo'](_0x2b6986,'remove',(_0x50dafc,_0x3e20c6)=>{_0x4af244['has'](_0x3e20c6)&&_0x4af244['remove'](_0x3e20c6),this['stopListening'](_0x3e20c6,'change:isVisible',_0x1571c9);});}['_setupEnterAnnotationKeystroke'](){const _0x168369=_0x507450=>{_0x507450['on']('ready',()=>{_0x507450['keystrokes']['set'](_0x5251c2,(_0x54c810,_0x122de0)=>{const _0x419237=_0x2e7456(this['activeAnnotations']['values']());_0x419237&&(_0x419237['view']['focus'](),_0x122de0());});});};this['context']instanceof _0x1ce3e3?_0x168369(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x262b6d,_0x4b3b01)=>{_0x168369(_0x4b3b01);});}['_setupEscapeAnnotationHandling'](){const _0x48ab19=_0x6aa511=>{const _0x3a146e=_0x6aa511['source'],_0x29d617=[];let _0x243f9f;if(Array['isArray'](_0x3a146e['target'])){_0x243f9f=_0x3a146e['target'][0x0],this['context']instanceof _0x1ce3e3?_0x29d617['push'](this['context']):this['context']['editors']&&_0x29d617['push'](...this['context']['editors']);for(const _0x1a1f25 of _0x29d617)for(const _0x57e72b of _0x1a1f25['editing']['view']['domRoots']['values']())if(_0x57e72b['contains'](_0x243f9f))return void _0x1a1f25['editing']['view']['focus']();_0x243f9f['focus']();}};this['listenTo'](this['collection'],'add',(_0xe4e163,_0x1444ba)=>{this['listenTo'](_0x1444ba,'escape',_0x48ab19,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x485c70,_0x5b5379)=>{this['stopListening'](_0x5b5379,'escape',_0x48ab19);});}}const zt=Symbol('noChannel'),Jt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class Qt extends _0x705974{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[$t,_0x2103da,_0x2bc2d0];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x14bdc7){super(_0x14bdc7),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x55c70b=this['context']['config'];_0x55c70b['define']('comments.maxCommentsWhenCollapsed',0x2),_0x55c70b['define']('comments.maxThreadTotalWeight',0x1f4),_0x55c70b['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x55c70b['define']('comments.CommentThreadView',Bt),_0x55c70b['define']('comments.CommentView',Ut),_0x55c70b['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x560ac5=this['context']['plugins']['get']($t);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x157e22,_0x5f615f)=>this['_addCommentThread'](_0x5f615f)),this['on']('submitCommentThread',(_0x50ca87,_0x52dc9f)=>this['_submitCommentThread'](_0x52dc9f)),this['on']('resolveCommentThread',(_0x28720e,_0x3d2a3c)=>this['_resolveCommentThread'](_0x3d2a3c)),this['on']('resolveCommentThread',(_0x1ecf23,_0x56b2d5)=>this['_updateActiveAnnotation'](_0x56b2d5),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x10e6fe,_0x1ee1fe)=>this['_reopenCommentThread'](_0x1ee1fe)),this['on']('reopenCommentThread',(_0x398d55,_0xe98a82)=>this['_updateActiveAnnotation'](_0xe98a82),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x15b362,_0x5737f4)=>this['_removeCommentThread'](_0x5737f4)),this['on']('updateCommentThread',(_0x146c86,_0xaf0131)=>this['_updateCommentThread'](_0xaf0131)),this['on']('updateCommentThread',(_0x20e211,_0x143301)=>this['_updateActiveAnnotation'](_0x143301),{'priority':'lowest'}),this['on']('addComment',(_0x2c19df,_0x505b9c)=>this['_addComment'](_0x505b9c)),this['on']('updateComment',(_0x3a772a,_0xec00e6)=>this['_updateComment'](_0xec00e6)),this['on']('removeComment',(_0x4fdb0d,_0x330a2f)=>this['_removeComment'](_0x330a2f)),this['on']('addComment',(_0x416bcb,{threadId:_0x1caf20,isFromAdapter:_0xa4aff4})=>{if(_0xa4aff4)return;const _0x144098=this['getCommentThread'](_0x1caf20),_0x4b6736=_0x144098&&this['_threadToController']['get'](_0x144098);_0x4b6736&&_0x4b6736['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x560ac5,'change:activeAnnotations',(_0x1cb357,_0x17cfba,_0x4c3aaa)=>{const _0x528729=Array['from'](_0x4c3aaa)['map'](_0x47997d=>this['_viewToController']['get'](_0x47997d['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x528729?_0x528729['model']:null;});}set['adapter'](_0x4a05f6){if(this['_adapter'])throw new _0x54e163('commentsrepository-adapter-already-set');this['_adapter']=_0x4a05f6;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x2066b9=zt,threadId:_0x28b575=_0x4a1458(),comments:_0x5adf30=[],unlinkedAt:_0x4c4e97=null,resolvedAt:_0x33a52c=null,resolvedBy:_0xc6055e=null,target:_0xa7127a=null,context:_0x5015d1=null,attributes:_0x554770={},isResolvable:_0xed4011=!0x0,isSubmitted:_0x54e66b=!0x1,isFromAdapter:_0x4b0331=!0x1}={}){return this['fire'](ii('addCommentThread',_0x2066b9),{'channelId':_0x2066b9,'threadId':_0x28b575,'comments':_0x5adf30,'unlinkedAt':_0x4c4e97,'resolvedAt':_0x33a52c,'resolvedBy':_0xc6055e,'target':_0xa7127a,'context':_0x5015d1,'attributes':_0x554770,'isFromAdapter':_0x4b0331,'isResolvable':_0xed4011,'isSubmitted':_0x54e66b}),this['getCommentThread'](_0x28b575);}['openNewCommentThread']({channelId:_0x4e5e2e=zt,threadId:_0x156dcf=_0x4a1458(),target:_0x2e56d3,context:_0x1676a9=null,isResolvable:_0x1c9521=!0x0}){if(this['_readOnlyChannels']['has'](_0x4e5e2e)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x2e56d3)throw new _0x54e163('commentsrepository-missing-target');const _0x301b8f=this['addCommentThread']({'channelId':_0x4e5e2e,'threadId':_0x156dcf,'target':_0x2e56d3,'context':_0x1676a9,'isResolvable':_0x1c9521});if(!_0x301b8f)return null;const _0x774ec6=this['_threadToController']['get'](_0x301b8f),_0x3c2040=_0x774ec6['view']['commentThreadInputView']['commentInputView'],_0x420236=this['context']['plugins']['get']($t),_0x21b8fd=_0x420236['getByInnerView'](_0x774ec6['view']);return _0x420236['activate'](_0x21b8fd),_0x3c2040['once']('editorReady',()=>_0x3c2040['focus']()),_0x301b8f;}['hasCommentThread'](_0x321744){if('string'!=typeof _0x321744)throw new _0x54e163('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x321744);}['updateCommentThread']({channelId:_0x597727=zt,threadId:_0x4b5c59,context:_0x22dee5,unlinkedAt:_0x46ce97,attributes:_0x2f213f,isFromAdapter:_0x489384=!0x1}){return this['fire'](ii('updateCommentThread',_0x597727),{'channelId':_0x597727,'threadId':_0x4b5c59,'context':_0x22dee5,'unlinkedAt':_0x46ce97,'attributes':_0x2f213f,'isFromAdapter':_0x489384}),this['getCommentThread'](_0x4b5c59);}['getCommentThread'](_0x13eb99){if('string'!=typeof _0x13eb99)throw new _0x54e163('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x13eb99);}['fetchCommentThread']({channelId:_0x4620d4,threadId:_0x3f28b1}={}){const _0x3d026f=this['getCommentThread'](_0x3f28b1);if(_0x3d026f)return Promise['resolve'](_0x3d026f);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x54e163('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x4620d4,'threadId':_0x3f28b1})['then'](_0x4dc894=>this['hasCommentThread'](_0x3f28b1)?this['getCommentThread'](_0x3f28b1):_0x4dc894?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x4620d4},_0x4dc894)):void 0x0)['catch'](_0x39093b=>{throw console['error'](_0x39093b),new _0x54e163('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x466757,skipNotAttached:_0x1ddc88=!0x1,skipEmpty:_0x2f430b=!0x1,toJSON:_0x4095dd=!0x1}={}){const _0x5ba7d3=[];for(const _0x45e73d of this['_threads']['values']())_0x466757&&_0x45e73d['channelId']!==_0x466757||_0x1ddc88&&!_0x45e73d['isAttached']||_0x2f430b&&0x0===_0x45e73d['length']||_0x5ba7d3['push'](_0x45e73d);return _0x4095dd?_0x5ba7d3['map'](_0x11e1fd=>_0x11e1fd['toJSON']()):_0x5ba7d3;}['getAnnotationForCommentThread'](_0x7e1fbf){const _0x393ddc=this['_threadToController']['get'](_0x7e1fbf);if(!_0x393ddc)return null;return this['context']['plugins']['get']($t)['getByInnerView'](_0x393ddc['view'])||null;}['getCommentThreadForAnnotation'](_0x2b31d9){const _0x3066c1=this['_viewToController']['get'](_0x2b31d9['innerView']);return _0x3066c1?_0x3066c1['model']:null;}['setActiveCommentThread'](_0xdf6b50){const _0x4e1fab=this['context']['plugins']['get']($t);if(!_0xdf6b50)return void(this['activeCommentThread']&&_0x4e1fab['deactivateAll']());const _0xa23328=this['getCommentThread'](_0xdf6b50);if(!_0xa23328)throw new _0x54e163('commentsrepository-active-missing-comment-thread',null,{'threadId':_0xdf6b50});if(!this['_threadToController']['has'](_0xa23328))throw new _0x54e163('commentsrepository-active-not-attached',null,{'threadId':_0xdf6b50});const _0x6200ce=_0x4e1fab['getByInnerView'](this['_threadToController']['get'](_0xa23328)['view']);_0x4e1fab['activate'](_0x6200ce);}['switchReadOnly'](_0x2ee13d,_0x2576b2){_0x2ee13d?this['_readOnlyChannels']['add'](_0x2576b2):this['_readOnlyChannels']['delete'](_0x2576b2),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x3bc6bd){return this['_readOnlyChannels']['has'](_0x3bc6bd)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0xe082d3,_0x4a7803){return new It(_0xe082d3,_0x4a7803);}['setPermissions'](_0x2bd8db,_0x2e1024=zt){this['_permissions']['set'](_0x2e1024,_0x2bd8db),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x32e064=zt){return this['_permissions']['has'](_0x32e064)?this['_permissions']['get'](_0x32e064):Jt;}['_addCommentThread']({channelId:_0xf4c121,threadId:_0x4a5636,comments:_0x2f56e6,unlinkedAt:_0x51c6d5,resolvedAt:_0x1c8c9f,resolvedBy:_0x2aeb2b,target:_0x121f82,context:_0x4c3074,attributes:_0x781225,isFromAdapter:_0x2fa836,isResolvable:_0x5a4720,isSubmitted:_0x21fd2b}){if('string'!=typeof _0x4a5636)throw new _0x54e163('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x4a5636});if(this['hasCommentThread'](_0x4a5636))throw new _0x54e163('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x4a5636});const _0x37a93c=new Zt(this,{'channelId':_0xf4c121,'id':_0x4a5636,'context':_0x4c3074,'attributes':_0x781225,'unlinkedAt':_0x51c6d5,'resolvedAt':_0x1c8c9f,'resolvedBy':_0x2aeb2b?this['context']['plugins']['get'](_0x2bc2d0)['getUser'](_0x2aeb2b):null,'isResolvable':_0x5a4720,'isSubmitted':_0x21fd2b||_0x2fa836});this['_threads']['set'](_0x4a5636,_0x37a93c);for(const _0x479dc9 of _0x2f56e6)_0x37a93c['_add'](this['_createNewComment']({'threadId':_0x4a5636,..._0x479dc9}));return _0x121f82&&_0x37a93c['attachTo'](_0x121f82),_0x2fa836||!_0x37a93c['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0xf4c121,'threadId':_0x4a5636});}['_submitCommentThread']({channelId:_0x49bc,threadId:_0xb78204}){if(!this['hasCommentThread'](_0xb78204))throw new _0x54e163('commentsrepository-missing-comment-thread',this);const _0x3d6bd2=this['getCommentThread'](_0xb78204);if(_0x3d6bd2['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x15f0e2,comments:_0x946b83,resolvedAt:_0x4aaf4d,resolvedBy:_0x32e164,context:_0x8cdd17,attributes:_0x4d3be3}=_0x3d6bd2,_0x340a05=this['context']['plugins']['get']('PendingActions'),_0x585607=_0x340a05['add'](bt(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x49bc,'threadId':_0x15f0e2,'comments':_0x946b83['map'](_0x43dd40=>_0x43dd40['toJSON']()),'resolvedAt':_0x4aaf4d,'resolvedBy':_0x32e164?_0x32e164['id']:_0x32e164,'context':_0x8cdd17,'attributes':_0x4d3be3})['then'](({comments:_0x4c1b19})=>{_0x340a05['remove'](_0x585607);for(const _0x6f1f6f of _0x4c1b19)this['_updateComment']({'channelId':_0x49bc,'threadId':_0xb78204,'commentId':_0x6f1f6f['commentId'],'createdAt':_0x6f1f6f['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x304aab=>{throw console['error'](_0x304aab),new _0x54e163('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x18e699,target:_0x134629}){const _0x3b4416=this['getCommentThread'](_0x18e699);if(!_0x3b4416)throw new _0x54e163('commentsrepository-attach-missing-comment-thread',this);const _0x3e56be=this['context']['plugins']['get']('PendingActions'),_0x3ff14f=this['context']['plugins']['get']($t),_0x3dbbe2=this['_createCommentThreadView'](_0x3b4416),_0x35bb79=new It(_0x3b4416,_0x3dbbe2);let _0x213cef=null;_0x3dbbe2['on']('change:isDirty',(_0x2ccbc2,_0x5f0e5e,_0x3f6097)=>{_0x3f6097?_0x213cef=_0x3e56be['add'](bt(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x213cef&&(_0x3e56be['remove'](_0x213cef),_0x213cef=null);}),this['_threadToController']['set'](_0x3b4416,_0x35bb79),this['_viewToController']['set'](_0x3dbbe2,_0x35bb79);const _0x2554ce=new Kt(this['context']['locale'],_0x3dbbe2);_0x2554ce['bind']('length')['to'](_0x3dbbe2),_0x2554ce['bind']('isDirty')['to'](_0x3dbbe2,'isDirty',_0x3dbbe2,'length',(_0x3cf167,_0x444ed4)=>_0x3cf167||!_0x444ed4),_0x2554ce['bind']('isActive')['to'](_0x3dbbe2),_0x2554ce['type']='comment';const _0x13694f=new Yt({'view':_0x2554ce,'target':_0x134629,'type':'comment','isVisible':!_0x3b4416['archivedAt']&&!!('function'==typeof _0x134629?_0x134629():_0x134629)});return _0x3dbbe2['on']('escape',()=>{_0x13694f['fire']('escape');}),this['_bindAnnotationToEditors'](_0x3dbbe2,_0x13694f),_0x3ff14f['add'](_0x13694f),_0x13694f;}['_bindAnnotationToEditors'](_0x1d2d4d,_0x3fb506){this['listenTo'](_0x1d2d4d,'editorReady',(_0xb90c69,_0x377fc9)=>{const _0x277b90=_0x377fc9['ui']['view']['body']['bodyCollectionContainer'];_0x3fb506['focusableElements']['add'](_0x277b90),this['context']instanceof _0x1ce3e3&&this['context']['ui']['focusTracker']['add'](_0x277b90);},{'priority':'highest'}),this['listenTo'](_0x1d2d4d,'editorDestroyed',(_0x24a4ef,_0x51d7f8)=>{const _0x2f0edd=_0x51d7f8['ui']['view']['body']['bodyCollectionContainer'];_0x3fb506['focusableElements']['has'](_0x2f0edd)&&_0x3fb506['focusableElements']['remove'](_0x2f0edd),this['context']instanceof _0x1ce3e3&&this['context']['ui']['focusTracker']['remove'](_0x2f0edd);});}['_unbindEditors'](_0x5418f8){this['stopListening'](_0x5418f8,'editorReady'),this['stopListening'](_0x5418f8,'editorDestroyed');}['_createCommentThreadView'](_0x3659ee){const _0x2be971=this['context']['plugins']['get'](_0x2bc2d0),{config:_0x4f44c8,locale:_0x3136af}=this['context'],_0x3f6ebe=_0x1ac6df(_0x4f44c8['get']('locale'),_0x3136af);return new(0x0,(_0x4f44c8['get']('comments'))['CommentThreadView'])(_0x3136af,_0x3659ee,_0x2be971['me'],{'editorConfig':{..._0x4f44c8['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x4f44c8['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x4f44c8['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4f44c8['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4f44c8['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3f6ebe,'CommentView':_0x4f44c8['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x25cdb7,channelId:_0x2629eb,resolvedAt:_0x2c5d01,resolvedBy:_0x295ab7,isFromAdapter:_0xd36f07}){if(!this['hasCommentThread'](_0x25cdb7))throw new _0x54e163('commentsrepository-missing-comment-thread',null,{'threadId':_0x25cdb7});const _0x402e56=this['getCommentThread'](_0x25cdb7);if(_0x402e56['isResolved'])throw new _0x54e163('commentsrepository-resolved-comment-thread',null,{'threadId':_0x25cdb7});const _0x47941e=this['context']['plugins']['get'](_0x2bc2d0);if(_0x402e56['resolvedBy']=_0x47941e['getUser'](_0x295ab7),_0x402e56['resolvedAt']=_0x2c5d01,_0xd36f07||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x1a152c=this['context']['plugins']['get']('PendingActions'),_0x1e96f4=_0x1a152c['add'](bt(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x2629eb,'threadId':_0x25cdb7})['then'](({resolvedAt:_0x507702,resolvedBy:_0x1a6982})=>{_0x1a152c['remove'](_0x1e96f4),_0x402e56['resolvedBy']['id']!==_0x1a6982&&(_0x402e56['resolvedBy']=_0x47941e['getUser'](_0x1a6982)),_0x402e56['resolvedAt']=_0x507702;})['catch'](_0x24c31c=>{throw console['error'](_0x24c31c),new _0x54e163('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x41d902,channelId:_0x5d6a25,isFromAdapter:_0x56abb4}){if(!this['hasCommentThread'](_0x41d902))throw new _0x54e163('commentsrepository-missing-comment-thread',null,{'threadId':_0x41d902});const _0x20e82c=this['getCommentThread'](_0x41d902);if(!_0x20e82c['isResolved'])throw new _0x54e163('commentsrepository-reopen-comment-thread',null,{'threadId':_0x41d902});if(_0x20e82c['resolvedBy']=null,_0x20e82c['resolvedAt']=null,_0x56abb4||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x513f9f=this['context']['plugins']['get']('PendingActions'),_0x594d21=_0x513f9f['add'](bt(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x5d6a25,'threadId':_0x41d902})['then'](()=>_0x513f9f['remove'](_0x594d21))['catch'](_0x2f61b9=>{throw console['error'](_0x2f61b9),new _0x54e163('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x390059,isFromAdapter:_0x104edc}){const _0x211002=this['getCommentThread'](_0x390059);if(!_0x211002)throw new _0x54e163('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x390059),this['_threads']['delete'](_0x390059),!_0x211002['isSubmitted']||_0x104edc||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x2d1076=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3c5b72}=_0x211002,_0x5082c9=_0x2d1076['add'](bt(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x3c5b72,'threadId':_0x390059})['then'](()=>_0x2d1076['remove'](_0x5082c9))['catch'](_0x43090e=>{throw console['error'](_0x43090e),new _0x54e163('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x5aeefb,unlinkedAt:_0x41ae45,context:_0x350c33,attributes:_0x208119,isFromAdapter:_0x5d1c1c}){if('string'!=typeof _0x5aeefb)throw new _0x54e163('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x5aeefb});if(!this['hasCommentThread'](_0x5aeefb))throw new _0x54e163('commentsrepository-missing-comment-thread',null,{'threadId':_0x5aeefb});const _0x640af6=this['getCommentThread'](_0x5aeefb);let _0x1158c4=!0x1;if(void 0x0!==_0x350c33&&_0x640af6['context']!==_0x350c33&&(_0x640af6['context']=_0x350c33,_0x1158c4=!0x0),void 0x0!==_0x41ae45&&_0x640af6['unlinkedAt']!==_0x41ae45&&(_0x640af6['unlinkedAt']=_0x41ae45,_0x1158c4=!0x0),_0x208119&&!_0x417820(_0x208119,_0x640af6['attributes'])&&(_0x640af6['attributes']=_0x208119,_0x1158c4=!0x0),!_0x1158c4)return Promise['resolve']();if(!_0x640af6['isSubmitted']||_0x5d1c1c||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x91d769=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1d1031}=_0x640af6,_0x2d0791=_0x91d769['add'](bt(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x1d1031,'threadId':_0x5aeefb,'context':_0x350c33,'unlinkedAt':_0x41ae45,'attributes':_0x208119})['then'](()=>_0x91d769['remove'](_0x2d0791))['catch'](_0x1f0a6c=>{throw console['error'](_0x1f0a6c),new _0x54e163('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x52bd93){const _0x3dca9e=this['context']['plugins']['get']($t),_0x3e7532=this['getCommentThread'](_0x52bd93);if(_0x3e7532['_isAttached']=!0x1,this['_threadToController']['has'](_0x3e7532)){const _0x58eb33=this['_threadToController']['get'](_0x3e7532),_0x282413=_0x58eb33['view'],_0x4f2ff7=_0x3dca9e['getByInnerView'](_0x282413);this['_threadToController']['delete'](_0x3e7532),this['_viewToController']['delete'](_0x282413),_0x4f2ff7&&_0x3dca9e['remove'](_0x4f2ff7),_0x58eb33['destroy'](),_0x282413['destroy']()['then'](()=>{this['_unbindEditors'](_0x282413);});}}['_updateActiveAnnotation']({threadId:_0x951a31,resolvedAt:_0xfb094c,unlinkedAt:_0x4e96e8}){const _0x330773=!!_0xfb094c,_0x2a40b9=this['context']['plugins']['get']($t),_0x15b03a=this['getCommentThread'](_0x951a31);if(this['_threadToController']['has'](_0x15b03a)){const _0xd8f2df=this['_threadToController']['get'](_0x15b03a)['view'],_0x25f8b6=_0x2a40b9['getByInnerView'](_0xd8f2df);_0x25f8b6&&(_0x330773&&_0x2a40b9['_removeActiveAnnotation'](_0x25f8b6),_0x4e96e8?_0x25f8b6['isVisible']=!0x1:_0x25f8b6['refreshVisibility']());}}['_getExternalAuthor'](_0x3d77f6){const _0x89916a=this['context']['plugins']['get'](_0x2bc2d0),_0x2cc8c0=_0x10af31('external:'+_0x3d77f6),_0x1f5658=_0x89916a['getUser'](_0x2cc8c0);return _0x1f5658||_0x89916a['addUser']({'id':_0x2cc8c0,'name':_0x3d77f6});}['_createNewComment']({threadId:_0x48b74e,commentId:_0x1654e7=_0x4a1458(),content:_0x3842ea,authorId:_0x44bb2d,createdAt:_0x1faf9e,attributes:_0x318874}){if('string'!=typeof _0x1654e7)throw new _0x54e163('commentsrepository-invalid-commentid');if('string'!=typeof _0x44bb2d)throw new _0x54e163('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x3842ea||!_0x3842ea['trim']())throw new _0x54e163('commentsrepository-invalid-comment-content');const _0x1f96c7=this['context']['plugins']['get'](_0x2bc2d0)['getUser'](_0x44bb2d);if(!_0x1f96c7)throw new _0x54e163('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x44bb2d});let _0x302a38=null,_0x5b71e4=_0x1faf9e;return _0x318874?.['@external']&&(_0x302a38=this['_getExternalAuthor'](_0x318874['@external']['authorName']),_0x5b71e4=new Date(_0x318874['@external']['createdAt'])),new ti(this,{'threadId':_0x48b74e,'id':_0x1654e7,'author':_0x302a38||_0x1f96c7,'creator':_0x1f96c7,'content':_0x3842ea,'createdAt':_0x1faf9e,'authoredAt':_0x5b71e4,'attributes':_0x318874});}['_addComment'](_0x11dd15){let {threadId:_0x3e3b8e,content:_0x139f10,attributes:_0x477579,isFromAdapter:_0x44d7dd}=_0x11dd15;const _0xdce811=this['getCommentThread'](_0x11dd15['threadId']);if(!_0xdce811)throw new _0x54e163('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x57dbb6=this['_createNewComment'](_0x11dd15),{id:_0x296885}=_0x57dbb6;if(_0xdce811['_add'](_0x57dbb6),_0x44d7dd||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0xdce811['isSubmitted'])return Promise['resolve']();const _0x302a1f=this['context']['plugins']['get']('PendingActions'),{channelId:_0x343a31}=_0xdce811,_0x2a6488=_0x302a1f['add'](bt(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x477579||(_0x477579={}),this['adapter']['addComment']({'channelId':_0x343a31,'threadId':_0x3e3b8e,'commentId':_0x296885,'content':_0x139f10,'attributes':_0x477579})['then'](_0x51e8f6=>{_0x302a1f['remove'](_0x2a6488),_0x51e8f6&&this['_updateComment']({'channelId':_0x343a31,'threadId':_0x3e3b8e,'commentId':_0x296885,'createdAt':_0x51e8f6['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x3612a1=>{throw console['error'](_0x3612a1),new _0x54e163('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0xc6a577,commentId:_0x50ff34,content:_0x452231,createdAt:_0x567ddc,attributes:_0x556eab,isFromAdapter:_0x20f338}){if(void 0x0!==_0x452231&&('string'!=typeof _0x452231||!_0x452231['trim']()['length']))throw new _0x54e163('commentsrepository-update-comment-invalid-content');const _0x2a98e2=this['getCommentThread'](_0xc6a577),_0x2185f2=_0x2a98e2['getComment'](_0x50ff34);if(!_0x2185f2)throw new _0x54e163('commentsrepository-update-missing-comment',this);let _0x56cb80=!0x1;if(_0x452231&&_0x452231!==_0x2185f2['content']&&(_0x2185f2['isEditable']||_0x20f338)&&(_0x2185f2['content']=_0x452231,_0x56cb80=!0x0),_0x567ddc&&_0x567ddc!==_0x2185f2['createdAt']&&(_0x2185f2['createdAt']=_0x567ddc,_0x2185f2['attributes']&&_0x2185f2['attributes']['@external']||(_0x2185f2['authoredAt']=_0x567ddc),_0x56cb80=!0x0),_0x556eab&&!_0x417820(_0x556eab,_0x2185f2['attributes'])&&(_0x2185f2['attributes']=_0x556eab,_0x56cb80=!0x0),!_0x56cb80)return Promise['resolve']();if(_0x2a98e2['fire']('commentUpdated'),_0x20f338||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x314d21=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3ba332}=this['getCommentThread'](_0x2185f2['threadId']),_0x373a5b=_0x314d21['add'](bt(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x3ba332,'threadId':_0xc6a577,'commentId':_0x50ff34,'content':_0x452231,'attributes':_0x556eab})['then'](()=>_0x314d21['remove'](_0x373a5b))['catch'](_0x6d7f6e=>{throw console['error'](_0x6d7f6e),new _0x54e163('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x5068f8,commentId:_0x5a5b5d,isFromAdapter:_0x1db80b}){const _0x24d0a2=this['getCommentThread'](_0x5068f8),_0xbc6c59=_0x24d0a2['getComment'](_0x5a5b5d);if(!_0xbc6c59)throw new _0x54e163('commentsrepository-remove-missing-comment',this);if(_0x24d0a2['_remove'](_0xbc6c59),_0x1db80b||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x36e551=this['context']['plugins']['get']('PendingActions'),{channelId:_0x324f7a}=_0x24d0a2,_0x5e1b36=_0x36e551['add'](bt(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x324f7a,'threadId':_0x5068f8,'commentId':_0x5a5b5d})['then'](()=>_0x36e551['remove'](_0x5e1b36))['catch'](_0x1e007e=>{throw console['error'](_0x1e007e),new _0x54e163('commentsrepository-remove-comment-internal-error',this);});}}class Zt extends/* #__PURE__ -- @preserve */
30
- _0x3ae0df(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x29b3ad,_0x24088c){super();const _0x22b8c4=_0x24088c['isResolvable'];this['channelId']=_0x24088c['channelId'],this['id']=_0x24088c['id'],this['comments']=new _0x350ad3(),this['_repository']=_0x29b3ad,this['_isAttached']=!0x1,this['_isSubmitted']=_0x24088c['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x29b3ad,'_permissions',_0x29b3ad,'_readOnlyChannels',()=>_0x29b3ad['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x29b3ad,'_permissions',()=>_0x29b3ad['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x29b3ad,'_permissions',()=>{const _0x304c3d=_0x29b3ad['getPermissions'](this['channelId']);return _0x304c3d['write']||_0x304c3d['admin'];}),this['bind']('isResolvable')['to'](_0x29b3ad,'_permissions',()=>_0x22b8c4&&_0x29b3ad['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x24088c['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x578760,_0x3a5b98)=>_0x578760?_0x3a5b98?_0x578760<_0x3a5b98?_0x578760:_0x3a5b98:_0x578760:_0x3a5b98),this['set']('unlinkedAt',_0x24088c['unlinkedAt']||null),this['set']('resolvedAt',_0x24088c['resolvedAt']||null),this['set']('resolvedBy',_0x24088c['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x565a17=>!!_0x565a17),this['set']('attributes',_0x24088c['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x134bb4,_0x4c0832)=>_0x134bb4+_0x4c0832['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x368175,id:_0x1eb57d}=this;this['_repository']['fire'](ii('submitCommentThread',_0x368175),{'channelId':_0x368175,'threadId':_0x1eb57d});}['setUnlinkedAt'](_0x4cb0b7){this['_update']({'unlinkedAt':_0x4cb0b7});}['resolve']({resolvedAt:_0x13043e=new Date(),resolvedBy:_0xecea32='',isFromAdapter:_0x43cde0=!0x1}={}){const _0x1473a7=this['_repository']['context']['plugins']['get'](_0x2bc2d0)['me'],{channelId:_0x5778be,id:_0x498062}=this;this['_repository']['fire'](ii('resolveCommentThread',_0x5778be),{'channelId':_0x5778be,'threadId':_0x498062,'resolvedAt':_0x13043e,'resolvedBy':_0xecea32||_0x1473a7['id'],'isFromAdapter':_0x43cde0});}['reopen']({isFromAdapter:_0x441ddb=!0x1}={}){const {channelId:_0x5d0729,id:_0x2f874d}=this;this['_repository']['fire'](ii('reopenCommentThread',_0x5d0729),{'channelId':_0x5d0729,'threadId':_0x2f874d,'isFromAdapter':_0x441ddb});}['setContext'](_0x565de3){this['context']||this['_update']({'context':_0x565de3});}['setAttribute'](_0x108f65,_0x2bf715){const _0x54989c=_0x266fa7(this['attributes']);_0x12e26b(_0x54989c,_0x108f65,_0x2bf715),this['_update']({'attributes':_0x54989c});}['removeAttribute'](_0x3346dd){const _0x12230e=_0x266fa7(this['attributes']);_0x5aa127(_0x12230e,_0x3346dd),this['_update']({'attributes':_0x12230e});}['remove']({isFromAdapter:_0x4d8143=!0x1}={}){const {channelId:_0x5e1b13,id:_0x2f49b9}=this;this['_repository']['fire'](ii('removeCommentThread',_0x5e1b13),{'channelId':_0x5e1b13,'threadId':_0x2f49b9,'isFromAdapter':_0x4d8143});}['attachTo'](_0x1dfff8){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x1dfff8});}['addComment'](_0x263da6){const {channelId:_0x4d196a,id:_0x2c65bf}=this;this['_repository']['fire'](ii('addComment',_0x4d196a,_0x2c65bf),Object['assign']({'channelId':_0x4d196a,'threadId':_0x2c65bf},_0x263da6));}['getComment'](_0x390272){if('string'!=typeof _0x390272)throw new _0x54e163('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x390272});return this['comments']['get'](_0x390272);}['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'](_0x5d84e2=>_0x5d84e2['toJSON']()),'attributes':this['attributes']};}['_add'](_0x100604){return this['listenTo'](_0x100604,'change:authoredAt',()=>{const _0x47c95e=this['_findOptimalIndex'](_0x100604),_0x208487=this['comments'];_0x47c95e-0x1!=_0x208487['getIndex'](_0x100604)&&_0x47c95e+0x1!=_0x208487['getIndex'](_0x100604)&&(this['_remove'](_0x100604),this['_add'](_0x100604));}),this['comments']['add'](_0x100604,this['_findOptimalIndex'](_0x100604));}['_update'](_0xff493e){const {channelId:_0x31e29e,id:_0x3b44ac}=this;this['_repository']['fire'](ii('updateCommentThread',_0x31e29e),{..._0xff493e,'channelId':_0x31e29e,'threadId':_0x3b44ac});}['_remove'](_0x57ff8d){return this['stopListening'](_0x57ff8d),_0x57ff8d['destroy'](),this['comments']['remove'](_0x57ff8d);}['_findOptimalIndex'](_0x4bdb28){const _0x3cf96d=this['comments']['find'](_0x27b1f3=>new Date(_0x27b1f3['authoredAt'])['getTime']()>new Date(_0x4bdb28['authoredAt'])['getTime']());return _0x3cf96d?this['comments']['getIndex'](_0x3cf96d):this['length'];}}class ti extends/* #__PURE__ -- @preserve */
31
- _0x3ae0df(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x3f3837,_0x573746){super();const _0x3fed25=_0x3f3837['context']['plugins']['get'](_0x2bc2d0)['me'],_0x38a095=_0x3f3837['getCommentThread'](_0x573746['threadId']),_0x4ad22c=0x0===_0x38a095['comments']['length'],_0x45a204=_0x3fed25===_0x573746['author'];this['id']=_0x573746['id'],this['threadId']=_0x573746['threadId'],this['author']=_0x573746['author'],this['creator']=_0x573746['creator'],this['isExternal']=Boolean(_0x573746['attributes']&&_0x573746['attributes']['@external']),this['set']('content',_0x573746['content']),this['createdAt']=_0x573746['createdAt']||new Date(),this['set']('authoredAt',_0x573746['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x38a095,'resolvedAt'),this['set']('attributes',_0x573746['attributes']||{}),this['bind']('isEditable')['to'](_0x3f3837,'_permissions',()=>{const _0x1cf621=_0x3f3837['getPermissions'](_0x38a095['channelId'])['write'],_0x277ccc=_0x3f3837['getPermissions'](_0x38a095['channelId'])['modifyAll'];return _0x45a204&&_0x1cf621||!_0x45a204&&_0x277ccc;}),this['bind']('isRemovable')['to'](_0x38a095,'isRemovable',_0x3f3837,'_permissions',_0x4a0388=>{const _0x3ad672=_0x3f3837['getPermissions'](_0x38a095['channelId'])['write'],_0x430ec1=_0x3f3837['getPermissions'](_0x38a095['channelId'])['modifyAll'];return _0x45a204&&_0x3ad672||_0x4a0388&&_0x4ad22c||!_0x45a204&&_0x430ec1&&!_0x4ad22c;}),this['bind']('isReadOnly')['to'](_0x38a095,'isReadOnly'),this['_repository']=_0x3f3837;}get['weight'](){return Math['max'](function(_0x3852c2){const _0x4034fb=document['createElement']('div');return _0x4034fb['innerHTML']=_0x3852c2,_0x4034fb['textContent']['length'];}(this['content']),0xc8);}['update'](_0x1651ed){const {threadId:_0x27d775,id:_0x1e422b}=this;if(!this['_repository']['hasCommentThread'](_0x27d775))throw new _0x54e163('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x2015a1}=this['_repository']['getCommentThread'](_0x27d775);this['_repository']['fire'](ii('updateComment',_0x2015a1,_0x27d775),{'channelId':_0x2015a1,'threadId':_0x27d775,'commentId':_0x1e422b,..._0x1651ed});}['setAttribute'](_0x2996b8,_0x13beaa){const _0x331ea5=_0x266fa7(this['attributes']);_0x12e26b(_0x331ea5,_0x2996b8,_0x13beaa),this['update']({'attributes':_0x331ea5});}['removeAttribute'](_0x1b95fc){const _0xd5a5b5=_0x266fa7(this['attributes']);_0x5aa127(_0xd5a5b5,_0x1b95fc),this['update']({'attributes':_0xd5a5b5});}['remove'](_0x531e66={}){if(!_0x531e66['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x167b53,id:_0x2e4bfd}=this;if(!this['_repository']['hasCommentThread'](_0x167b53))throw new _0x54e163('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x4f2bfd}=this['_repository']['getCommentThread'](_0x167b53);this['_repository']['fire'](ii('removeComment',_0x4f2bfd,_0x167b53),{'channelId':_0x4f2bfd,'threadId':_0x167b53,'commentId':_0x2e4bfd,..._0x531e66});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function ii(_0x2b8324,..._0x3a46af){for(const _0x143f1e of _0x3a46af)void 0x0!==_0x143f1e&&(_0x2b8324+=':'+String(_0x143f1e));return _0x2b8324;}class ei extends _0x2d9320{constructor(_0x272e2d){super(_0x272e2d),this['set']('hasContent',!0x1);}['refresh'](){const _0x4c4f55=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x20c91a of _0x4c4f55['getRanges']())if(this['_hasContent'](_0x20c91a))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x20edc5=_0x4a1458(),ranges:_0x474cf6,comment:_0x3e1586}={}){const _0x5267a1=this['editor']['model'],_0x48e255=_0x474cf6??Array['from'](_0x5267a1['document']['selection']['getRanges']()),_0x4e4f2a=[];for(const _0x3bb03d of _0x48e255)this['_hasContent'](_0x3bb03d)&&_0x4e4f2a['push'](this['_trimToContent'](_0x3bb03d));if(!_0x4e4f2a['length'])throw new _0x54e163('addcommentthreadcommand-incorrect-ranges',null);_0x3e1586&&this['_createCommentThread'](_0x20edc5,_0x3e1586),this['_createMarkersFromRanges'](_0x20edc5,_0x4e4f2a,!!_0x3e1586);}['_createMarkersFromRanges'](_0x4f4734,_0x1048dd,_0x130fc3){this['editor']['model']['change'](_0x113b70=>{for(const _0xde00eb of _0x1048dd){const _0x3e6646=_0x4a1458()['substr'](0x1,0x5),_0x290c36='comment:'+_0x4f4734+':'+_0x3e6646;_0x113b70['addMarker'](_0x290c36,{'range':_0xde00eb,'usingOperation':_0x130fc3,'affectsData':_0x130fc3});}});}['_createCommentThread'](_0x272243,_0x4fa2b1){const _0x1829b9=this['editor']['plugins']['get']('CommentsRepository'),_0x1d8c08=this['editor']['config']['get']('collaboration.channelId'),_0x3614dd=this['editor']['plugins']['get']('Users')['me'];if(!_0x3614dd)throw new _0x54e163('addcommentthreadcommand-user-not-found',null);_0x1829b9['addCommentThread']({'threadId':_0x272243,'channelId':_0x1d8c08,'comments':[{'authorId':_0x3614dd['id'],'content':_0x4fa2b1,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0xc22876){for(const _0x2530bf of _0xc22876['getItems']())if(this['_itemIsContent'](_0x2530bf))return!0x0;return!0x1;}['_itemIsContent'](_0x57009e){return _0x57009e['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x57009e)&&!_0x57009e['is']('element','tableCell');}['_trimToContent'](_0x5a56a1){const _0x32779e=_0x27ee17=>!this['_itemIsContent'](_0x27ee17['item']),_0x250a91=_0x5a56a1['start']['getLastMatchingPosition'](_0x32779e),_0x365693=_0x5a56a1['end']['getLastMatchingPosition'](_0x32779e,{'direction':'backward'});return this['editor']['model']['createRange'](_0x250a91,_0x365693);}}class si extends _0x1bba21{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[$t];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x54767a){super(_0x54767a),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x147ad6=this['editor'],_0xacae93=_0x147ad6['model']['document']['selection'],_0x1cd0eb=_0x492a64(()=>this['refreshSelectedViews'](),0xa);_0xacae93['on']('change:range',(_0x11a5fd,_0x517d98)=>{_0x517d98['directChange']&&(_0x1cd0eb['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x147ad6['editing']['view']['document'],'change:isFocused',(_0x39ce0c,_0x3bd88d,_0x171da9)=>{_0x171da9&&_0x1cd0eb();}),this['listenTo'](_0x147ad6['ui']['focusTracker'],'change:isFocused',(_0x53f3c2,_0x187fc8,_0x1897c0)=>{_0x1897c0||this['fire']('blur',{'isAnnotationTracked':_0x2af336=>this['_editorAnnotationsData']['has'](_0x2af336['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x21ea91){if(this['_editorAnnotations']['has'](_0x21ea91['view']))return;this['_editorAnnotations']['add'](_0x21ea91['view']),this['editor']['ui']['focusTracker']['add'](_0x21ea91['view']['element']);const _0x18a7c2=this['editor']['plugins']['get']($t);this['listenTo'](_0x18a7c2['collection'],'remove',(_0x17e442,_0x3817c8)=>{this['editor']['ui']['focusTracker']['remove'](_0x3817c8['view']['element']),this['_editorAnnotations']['delete'](_0x3817c8['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x15ce82){if('function'!=typeof _0x15ce82)throw new _0x54e163('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x15ce82);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x5e8de6,annotations:_0x65ab96}){const _0x5a53b7=[],_0x1dc99b=this['editor']['model']['document']['selection'],_0x35b15f=Array['from'](_0x1dc99b['getRanges']());for(const [_0x79ba02,_0x984c69]of this['_editorAnnotationsData']){const _0x303c3b=_0x30eb6d(_0x984c69),_0x3b6c1d=_0x65ab96['getByInnerView'](_0x79ba02);_0x303c3b&&_0x3b6c1d&&_0x5a53b7['push']({'annotation':_0x3b6c1d,'range':_0x303c3b});}function _0x30eb6d(_0xac35b4){for(const _0x12dbc0 of _0xac35b4)for(const _0x4d40a1 of _0x35b15f)if(_0x12dbc0['containsRange'](_0x4d40a1,!_0x1dc99b['isCollapsed']))return _0x12dbc0;return null;}return _0x5a53b7['sort']((_0x384a74,_0x3b324b)=>{const _0x4c4f67=_0x384a74['range'],_0x476edf=_0x3b324b['range'];if(!_0x4c4f67['isEqual'](_0x476edf)){if(_0x4c4f67['containsRange'](_0x476edf,!0x0))return 0x1;if(_0x476edf['containsRange'](_0x4c4f67,!0x0))return-0x1;}return _0x384a74['annotation']==_0x5e8de6?-0x1:_0x3b324b['annotation']==_0x5e8de6?0x1:0x0;})['map'](_0x24c70b=>_0x24c70b['annotation']);}get['_editorAnnotationsData'](){const _0x3a8b4c=new Map();for(const _0x228187 of Array['from'](this['_dataCollectors']))for(const [_0x1389d1,_0x190572]of _0x228187())_0x3a8b4c['set'](_0x1389d1,_0x190572);return _0x3a8b4c;}}class ni extends _0x1bba21{['afterInit'](){const _0x5df87d=this['editor'];if(!_0x5df87d['plugins']['has']('RestrictedEditingModeEditing'))return;_0x5df87d['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class oi extends _0x1bba21{constructor(_0x1616be){super(_0x1616be),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x13288f=this['editor'],_0x258959=_0x13288f['commands']['get']('importWord'),_0xe91555=_0x13288f['plugins']['get'](_0x2bc2d0);_0x258959&&(_0x258959['on']('execute',(_0x4df96f,[,_0x3b6428])=>{_0x3b6428['collaboration_features']={'comments':!0x0,'user_id':_0xe91555['me']['id']};},{'priority':_0x361b9e['high']+0xa}),this['listenTo'](_0x258959,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x5245f2,_0x4a67a6){const {comment_threads:_0x29047e}=_0x4a67a6;_0x29047e&&_0x29047e['forEach'](({thread_id:_0x379df1,comments:_0x1298fc,is_resolved:_0x325961})=>{const _0x46982e=new Date(),_0x20db06=_0x1298fc['map'](({author:_0x30843d,content:_0x37f195,created_at:_0x221b8f})=>({'content':_0x37f195,'authorId':this['editor']['plugins']['get'](_0x2bc2d0)['me']['id'],'createdAt':_0x46982e,'attributes':{'@external':{'authorName':_0x30843d,'createdAt':_0x221b8f?new Date(_0x221b8f):new Date(),'source':'importWord'}}})),_0x3b9120=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](Qt)['addCommentThread']({'channelId':_0x3b9120,'threadId':_0x379df1,'comments':_0x20db06,'resolvedAt':_0x325961?_0x46982e:null});});}}class ri extends _0x1bba21{constructor(_0x2adc0c){super(_0x2adc0c),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[pt,wt];}['afterInit'](){const _0x1b2e57=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x1b2e57,'contentInsertion',(_0x20ac8a,_0x1f9292)=>this['_removeMarkersWithoutThreads'](_0x1f9292['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x3a023b){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x3a023b;const _0x5a1590=this['editor']['plugins']['get']('CommentsRepository');for(const _0x1c53eb of _0x3a023b['keys']()){const [_0x46c29f,_0x4a7fff]=_0x1c53eb['split'](':');'comment'!=_0x46c29f||_0x5a1590['hasCommentThread'](_0x4a7fff)||_0x3a023b['delete'](_0x1c53eb);}return _0x3a023b;}['_registerMarkerInClipboardPipeline'](){const _0x2f9d27=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x5e3535=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x5e3535&&_0x2f9d27['_registerMarkerToCopy']('comment',_0x5e3535);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x2165ea){switch(_0x2165ea){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function hi(_0x2794a4){const _0x579db0=_0x2794a4['split'](':');return{'group':_0x579db0[0x0],'id':_0x579db0[0x1],'part':_0x579db0[0x2]};}class ai extends _0x1bba21{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x5ed865,_0x112ac7)=>{if(!_0x112ac7['options']['showCommentHighlights'])return null;if(_0x112ac7['options']['ignoreResolvedComments']){const {id:_0x2f20ab}=hi(_0x5ed865['markerName']),_0x5891da=this['editor']['plugins']['get'](Qt);if(_0x5891da['getCommentThread'](_0x2f20ab)?.['isResolved']&&_0x5ed865['item'])return _0x112ac7['consumable']['consume'](_0x5ed865['item'],'addMarker:'+_0x5ed865['markerName']),_0x112ac7['consumable']['consume'](_0x5ed865['item'],'removeMarker:'+_0x5ed865['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2c4ff8=>{_0x2c4ff8['on']('addMarker:comment',(_0x1494ac,_0x131ed1,_0x1233fa)=>{if(!_0x1233fa['options']['showCommentHighlights'])return;const _0x2019d6=_0x131ed1['item'];if(!_0x2019d6)return;const _0x228dfb=_0x1233fa['mapper']['toViewElement'](_0x2019d6);this['editor']['model']['schema']['isObject'](_0x2019d6)&&_0x228dfb&&!_0x228dfb['getCustomProperty']('widget')&&_0x228dfb['is']('containerElement')&&Ct(_0x228dfb,_0x1233fa['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4e757f,{writer:_0x268935,options:_0x4685e9})=>{if(!_0x4685e9['showCommentHighlights'])return null;const _0x64671e=_0x268935['createContainerElement']('div'),_0x528663=_0x268935['createEmptyElement']('hr');return _0x268935['addClass']('ck-horizontal-line',_0x64671e),_0x268935['insert'](_0x268935['createPositionAt'](_0x64671e,0x0),_0x528663),_0x64671e;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x43e85d,{writer:_0x5e41a0,options:_0x1556c2})=>{if(!_0x1556c2['showCommentHighlights'])return null;const _0x3b4943=_0x5e41a0['createContainerElement']('span'),_0x422b0a=_0x5e41a0['createEmptyElement']('img');return _0x5e41a0['addClass']('image-inline',_0x3b4943),_0x5e41a0['insert'](_0x5e41a0['createPositionAt'](_0x3b4943,0x0),_0x422b0a),_0x3b4943;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4814ec,{writer:_0x10d177,options:_0x349781})=>{if(_0x349781['showCommentHighlights'])return _0x10d177['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x267a41,_0x207407,_0x45c1e0)=>{_0x45c1e0['options']['showCommentHighlights']&&_0x267a41['stop']();},{'priority':'high'});}}class ci extends _0x1bba21{static get['requires'](){return[Qt,si,_0x2bc2d0,ni,oi,ri,ai];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5ab431){super(_0x5ab431),this['set']('isThreadsLoadingPaused',!0x0),_0x5ab431['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x43748b,_0x3f2605,_0x3d648a,_0x7ac159)=>{const _0x1baa2d=_0x5ab431['plugins']['get'](Qt),_0x31acc8=_0x3d648a?hi(_0x3d648a)['id']:null;_0x5ab431['model']['change'](()=>{if(_0x31acc8){const _0x3a04ac=this['getAllMarkersForId'](_0x31acc8);for(const _0x1d0798 of _0x3a04ac)_0x5ab431['editing']['reconvertMarker'](_0x1d0798);}if(_0x7ac159){const {id:_0xb886ad}=hi(_0x7ac159),_0x334196=_0x1baa2d['getCommentThread'](_0xb886ad);if(_0x334196&&_0x334196['unlinkedAt'])return;if(_0x334196&&!_0x334196['isAttached'])return;const _0x3d0c77=this['getAllMarkersForId'](_0xb886ad);for(const _0x279d3f of _0x3d0c77)_0x5ab431['editing']['reconvertMarker'](_0x279d3f);}}),_0x31acc8&&this['scrollToThreadMarker'](_0x31acc8);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x571855=this['editor'],_0x5ecb99=_0x571855['plugins']['get'](Qt),_0x2b462d=_0x571855['config']['get']('collaboration.channelId'),_0x4114d2=_0x5ecb99['getCommentThreads']()['filter'](_0x588c7a=>_0x588c7a['channelId']!==_0x2b462d);_0x571855['commands']['add']('addCommentThread',new ei(_0x571855)),this['listenTo'](_0x571855,'change:isReadOnly',(_0x490db5,_0x1584dd,_0x5c926e)=>{_0x5ecb99['switchReadOnly'](_0x5c926e,_0x571855['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x5ecb99,di('addCommentThread',_0x2b462d),(_0x4f516b,{threadId:_0x435cd3})=>{const _0x3ff13d=this['editor']['plugins']['get'](Qt)['getCommentThread'](_0x435cd3);_0x3ff13d?.['unlinkedAt']&&this['_attachArchivedThread'](_0x435cd3);}),this['listenTo'](_0x5ecb99,di('removeCommentThread',_0x2b462d),(_0x27bde5,{threadId:_0x143848})=>{_0x571855['model']['enqueueChange']({'isUndoable':!0x1},_0x62923d=>{const _0x32baf7=this['getAllMarkersForId'](_0x143848);for(const _0x1d9ee4 of _0x32baf7)_0x62923d['removeMarker'](_0x1d9ee4);});}),this['listenTo'](_0x5ecb99,di('resolveCommentThread',_0x2b462d),(_0x460987,{threadId:_0x5e3aa6})=>{(this['_reconvertMarkers'](_0x5e3aa6),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](Qt)['getCommentThread'](_0x5e3aa6)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x5ecb99,di('reopenCommentThread',_0x2b462d),(_0x6a5251,{threadId:_0xd202ec})=>{this['_reconvertMarkers'](_0xd202ec);},{'priority':'low'}),this['listenTo'](_0x5ecb99,di('addComment',_0x2b462d),(_0x11a9c1,{threadId:_0x5901b0,isFromAdapter:_0x57fd75})=>{const _0x4fb871=this['getAllMarkersForId'](_0x5901b0);if(_0x57fd75||0x0==_0x4fb871['length']||!_0x5ecb99['hasCommentThread'](_0x5901b0))return;0x1===_0x5ecb99['getCommentThread'](_0x5901b0)['length']&&_0x571855['model']['enqueueChange']({'isUndoable':!0x1},_0x1dbb0a=>{for(const _0xd16fe3 of _0x4fb871)_0x1dbb0a['updateMarker'](_0xd16fe3,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x4114d2);}['afterInit'](){!async function(_0x405d7f){const _0x2aa068=_0x5c359f([0x4b,0x70,0x4f,0x42,0x4a,0x47,0x4e,0x53,0x45,0x67,0x71,0x43,0x79,0x66,0x56,0x46,0x31,0x6b,0x5a,0x38,0x6c,0x62,0x6e,0x52,0x6a,0x4d,0x37,0x65,0x49,0x7a,0x41,0x73,0x44,0x51,0x48,0x77,0x39,0x61,0x54,0x68,0x75,0x36,0x72,0x63,0x59,0x69,0x30,0x35,0x55,0x6d,0x50,0x4c,0x34,0x64,0x33,0x58,0x32,0x57,0x6f,0x74,0x76,0x78]),_0x28ec1f=0x73460ab3,_0x26d484=0x73418f5b^_0x28ec1f,_0x90756e=window[_0x5c359f([0x44,0x61,0x74,0x65])][_0x5c359f([0x6e,0x6f,0x77])](),_0x3ef8b1=_0x405d7f[_0x5c359f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x59df60=new window[(_0x5c359f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18c874=>{_0x3ef8b1[_0x5c359f([0x6f,0x6e,0x63,0x65])](_0x5c359f([0x72,0x65,0x61,0x64,0x79]),_0x18c874);}),_0x5e0c2e={[_0x5c359f([0x6b,0x74,0x79])]:_0x5c359f([0x45,0x43]),[_0x5c359f([0x75,0x73,0x65])]:_0x5c359f([0x73,0x69,0x67]),[_0x5c359f([0x63,0x72,0x76])]:_0x5c359f([0x50,0x2d,0x32,0x35,0x36]),[_0x5c359f([0x78])]:_0x5c359f([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]),[_0x5c359f([0x79])]:_0x5c359f([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]),[_0x5c359f([0x61,0x6c,0x67])]:_0x5c359f([0x45,0x53,0x32,0x35,0x36])},_0x13cbb1=_0x3ef8b1[_0x5c359f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5c359f([0x67,0x65,0x74])](_0x5c359f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x35a7fe(){let _0x38553e,_0x21b8bb=null,_0x2e3de9=null;try{if(_0x13cbb1==_0x5c359f([0x47,0x50,0x4c]))return _0x5c359f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x38553e=_0x46c8f3(),!_0x38553e)return _0x5c359f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x38553e[_0x5c359f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e3de9=_0xd64649(_0x38553e[_0x5c359f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x38553e[_0x5c359f([0x6a,0x74,0x69])])),await _0x3abb03()?_0x251b12()?_0xfc4ddd()?_0x5c359f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2fc93d()?(_0x38553e[_0x5c359f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c359f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x21b8bb=_0x432503(_0x5c359f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x53baae()):_0x5c359f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5c359f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5c359f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5c359f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xfc4ddd(){const _0x20a50b=[_0x5c359f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5c359f([0x74,0x72,0x69,0x61,0x6c])][_0x5c359f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38553e[_0x5c359f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x90756e/0x3e8:0xe10*_0x26d484;return _0x38553e[_0x5c359f([0x65,0x78,0x70])]<_0x20a50b;}function _0x251b12(){const _0x4dbce1=_0x38553e[_0x5c359f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4dbce1)return!0x1;if(_0x4dbce1[_0x5c359f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c359f([0x2a])))return!0x0;if(_0x4dbce1[_0x5c359f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c359f([0x43,0x4d,0x54])))return!0x0;if(_0x4dbce1[_0x5c359f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c359f([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x44f5a6())return!0x0;if(_0x4dbce1[_0x5c359f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c359f([0x52,0x43,0x4d,0x54]))){if(_0x1d9eef())return!0x0;if(_0x2243b4()||_0x12f49f())return!0x0;}return!0x1;}function _0x2fc93d(){const _0x2c8ac8=_0x38553e[_0x5c359f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2c8ac8||0x0==_0x2c8ac8[_0x5c359f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x195d79}=new URL(window[_0x5c359f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2c8ac8[_0x5c359f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x195d79))return!0x0;const _0x21f30f=_0x195d79[_0x5c359f([0x73,0x70,0x6c,0x69,0x74])](_0x5c359f([0x2e]));return _0x2c8ac8[_0x5c359f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3eddc2=>_0x3eddc2[_0x5c359f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c359f([0x2a])))[_0x5c359f([0x6d,0x61,0x70])](_0x234f1e=>_0x234f1e[_0x5c359f([0x73,0x70,0x6c,0x69,0x74])](_0x5c359f([0x2e])))[_0x5c359f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x971a93=>_0x971a93[_0x5c359f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x21f30f[_0x5c359f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5c359f([0x6d,0x61,0x70])](_0x34cb4b=>Array(_0x21f30f[_0x5c359f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x34cb4b[_0x5c359f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5c359f([0x66,0x69,0x6c,0x6c])](_0x34cb4b[0x0]===_0x5c359f([0x2a])?_0x5c359f([0x2a]):'')[_0x5c359f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x34cb4b))[_0x5c359f([0x73,0x6f,0x6d,0x65])](_0x5a4275=>_0x21f30f[_0x5c359f([0x65,0x76,0x65,0x72,0x79])]((_0x2e4e0a,_0x2bcabc)=>_0x5a4275[_0x2bcabc]===_0x2e4e0a||_0x5a4275[_0x2bcabc]===_0x5c359f([0x2a])));}function _0x53baae(){return _0x21b8bb&&_0x2e3de9?new window[(_0x5c359f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39278a,_0x2cb9fd)=>{_0x21b8bb[_0x5c359f([0x74,0x68,0x65,0x6e])](_0x39278a,_0x2cb9fd),_0x2e3de9[_0x5c359f([0x74,0x68,0x65,0x6e])](_0x315438=>{_0x315438!=_0x5c359f([0x56,0x61,0x6c,0x69,0x64])&&_0x39278a(_0x315438);},_0x2cb9fd);}):_0x21b8bb||_0x2e3de9||_0x5c359f([0x56,0x61,0x6c,0x69,0x64]);}}function _0xd64649(_0x48aeb7,_0x4666e8){return new window[(_0x5c359f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58ba1c=>{if(_0xe3f276())return _0x58ba1c(_0x5c359f([0x56,0x61,0x6c,0x69,0x64]));_0x22da29(),_0x3ef8b1[_0x5c359f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5c359f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x196799=!0x1;const _0x28eec3=_0x4a1458();function _0x1bcc6e(_0x383611){return!!_0x383611&&(typeof _0x383611===_0x5c359f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x383611===_0x5c359f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x383611[_0x5c359f([0x74,0x68,0x65,0x6e])]===_0x5c359f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x383611[_0x5c359f([0x63,0x61,0x74,0x63,0x68])]===_0x5c359f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x16903b(_0x1b2ba9){_0x7ed611(_0x1b2ba9)[_0x5c359f([0x74,0x68,0x65,0x6e])](_0x3defef=>{if(!_0x3defef||_0x3defef[_0x5c359f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5c359f([0x6f,0x6b]))return _0x5c359f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3acac4(_0x1b0fc6(_0x28eec3+_0x4666e8))!=_0x3defef[_0x5c359f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5c359f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5c359f([0x56,0x61,0x6c,0x69,0x64]);})[_0x5c359f([0x74,0x68,0x65,0x6e])](_0xc8de79=>(_0x2b0cfb(),_0xc8de79),()=>{const _0x4dc4f6=_0x434f01();return null==_0x4dc4f6?(_0x2b0cfb(),_0x5c359f([0x56,0x61,0x6c,0x69,0x64])):_0x5c359f(_0x90756e-_0x4dc4f6>(0x574a8eb3^_0x28ec1f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5c359f([0x74,0x68,0x65,0x6e])](_0x58ba1c)[_0x5c359f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x58ba1c(_0x5c359f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x15a48a=0x7370e433^_0x28ec1f;function _0x2b0cfb(){const _0x1ed1cd=_0x5c359f([0x6c,0x6c,0x63,0x74,0x2d])+_0x3acac4(_0x1b0fc6(_0x48aeb7)),_0x29f7ed=_0x1746ca(_0x3acac4(window[_0x5c359f([0x4d,0x61,0x74,0x68])][_0x5c359f([0x63,0x65,0x69,0x6c])](_0x90756e/_0x15a48a)));window[_0x5c359f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c359f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ed1cd,_0x29f7ed);}function _0x434f01(){const _0x2200ae=_0x5c359f([0x6c,0x6c,0x63,0x74,0x2d])+_0x3acac4(_0x1b0fc6(_0x48aeb7)),_0x1d8f57=window[_0x5c359f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c359f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2200ae);return _0x1d8f57?window[_0x5c359f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1746ca(_0x1d8f57),0x10)*_0x15a48a:null;}function _0x7ed611(_0x1bf9c9){return new window[(_0x5c359f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d1a43,_0x547be1)=>{_0x1bf9c9[_0x5c359f([0x74,0x68,0x65,0x6e])](_0x3d1a43,_0x547be1),window[_0x5c359f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x547be1,0x7347de73^_0x28ec1f);});}}_0x3ef8b1[_0x5c359f([0x6f,0x6e])](_0x5c359f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5ba456,_0x45282d)=>{if(_0x45282d[0x0]!=_0x48aeb7)return _0x58ba1c(_0x5c359f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x45282d[0x1]={..._0x45282d[0x1],[_0x5c359f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x28eec3};},{[_0x5c359f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c359f([0x68,0x69,0x67,0x68])}),_0x3ef8b1[_0x5c359f([0x6f,0x6e])](_0x5c359f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x34ff2d=>{_0x1bcc6e(_0x34ff2d[_0x5c359f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x196799=!0x0,_0x16903b(_0x34ff2d[_0x5c359f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5c359f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c359f([0x6c,0x6f,0x77])}),_0x59df60[_0x5c359f([0x74,0x68,0x65,0x6e])](()=>{_0x196799||_0x58ba1c(_0x5c359f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xe3f276(){return _0x3ef8b1[_0x5c359f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c359f([0x76,0x69,0x65,0x77])][_0x5c359f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5c359f([0x61,0x75,0x74,0x6f]);}function _0x22da29(){_0x3ef8b1[_0x5c359f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c359f([0x76,0x69,0x65,0x77])][_0x5c359f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5c359f([0x61,0x75,0x74,0x6f]);}}function _0x432503(_0x169d60){const _0x20fd6f=[new window[(_0x5c359f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x567362=>setTimeout(_0x567362,0x734f347f^_0x28ec1f)),_0x59df60[_0x5c359f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5c359f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf46f7a=>{let _0x1e3dcc=0x0;_0x3ef8b1[_0x5c359f([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c359f([0x6f,0x6e])](_0x5c359f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x10fd30,_0x3e32f7)=>{_0x3e32f7[0x0][_0x5c359f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1e3dcc++,_0x1e3dcc==(0x73460f5b^_0x28ec1f)&&(_0xf46f7a(),_0x10fd30[_0x5c359f([0x6f,0x66,0x66])]());});}))];return window[_0x5c359f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5c359f([0x72,0x61,0x63,0x65])](_0x20fd6f)[_0x5c359f([0x74,0x68,0x65,0x6e])](()=>_0x169d60);}async function _0x1444d3(){await _0x59df60,_0x3ef8b1[_0x5c359f([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c359f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x57fdbd,_0x3ef8b1[_0x5c359f([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c359f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x57fdbd,_0x3ef8b1[_0x5c359f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5c359f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x44f5a6(){return window[_0x5c359f([0x67,0x6c,0x6f,0x62])]&&window[_0x5c359f([0x67,0x6c,0x6f,0x62])][_0x5c359f([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x1d9eef(){return _0x377b86(_0x5c359f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x52c302(_0x5c359f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5c359f([0x73,0x74,0x61,0x74,0x65])]==_0x5c359f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2243b4(){return _0x377b86(_0x5c359f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x12f49f(){return _0x377b86(_0x5c359f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2c756c(_0x1c1cdf){const _0x55da08=_0x353ed6();_0x3ef8b1[_0x55da08]=_0x5c359f([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1c1cdf,_0x1c1cdf!=_0x5c359f([0x56,0x61,0x6c,0x69,0x64])&&_0x1444d3();}function _0x353ed6(){const _0x95d9b9=window[_0x5c359f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5c359f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5c359f([0x6e,0x6f,0x77])]())[_0x5c359f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5c359f([0x2e]),'');let _0x792deb=_0x5c359f([0x4b]);for(let _0x830e87=0x0;_0x830e87<_0x95d9b9[_0x5c359f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x830e87+=0x2){let _0x391f20=window[_0x5c359f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x95d9b9[_0x5c359f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x830e87,_0x830e87+0x2));_0x391f20>=_0x2aa068[_0x5c359f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x391f20-=_0x2aa068[_0x5c359f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x792deb+=_0x2aa068[_0x391f20];}return _0x792deb;}function _0x46c8f3(){const _0x11063d=_0x13cbb1[_0x5c359f([0x73,0x70,0x6c,0x69,0x74])](_0x5c359f([0x2e]));if(0x3!=_0x11063d[_0x5c359f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x299fe3(_0x11063d[0x1]);function _0x299fe3(_0x56e2cb){const _0x346d93=_0x27756a(_0x56e2cb);return _0x346d93&&_0x4d63f7()?_0x346d93:null;function _0x4d63f7(){const _0x29fc19=_0x346d93[_0x5c359f([0x6a,0x74,0x69])],_0x1dd3b5=window[_0x5c359f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29fc19[_0x5c359f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29fc19[_0x5c359f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x323ae8={..._0x346d93,[_0x5c359f([0x6a,0x74,0x69])]:_0x29fc19[_0x5c359f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x29fc19[_0x5c359f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x323ae8[_0x5c359f([0x76,0x63])],_0x1b0fc6(_0x323ae8)==_0x1dd3b5;}}}async function _0x3abb03(){let _0x3a5e49=!0x0;try{const _0x34f657=_0x13cbb1[_0x5c359f([0x73,0x70,0x6c,0x69,0x74])](_0x5c359f([0x2e])),[_0x2a3d1d,_0x170285,_0xecae4]=_0x34f657;return _0x6f47ef(_0x2a3d1d),await _0x2e1e3e(_0x2a3d1d,_0x170285,_0xecae4),_0x3a5e49;}catch{return!0x1;}function _0x6f47ef(_0x283471){const _0x41deed=_0x27756a(_0x283471);_0x41deed&&_0x41deed[_0x5c359f([0x61,0x6c,0x67])]==_0x5c359f([0x45,0x53,0x32,0x35,0x36])||(_0x3a5e49=!0x1);}async function _0x2e1e3e(_0x54384d,_0x246bfa,_0x204028){const _0xd64905=window[_0x5c359f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5c359f([0x66,0x72,0x6f,0x6d])](_0x27548a(_0x204028),_0x1fe5a7=>_0x1fe5a7[_0x5c359f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4f9890=new window[(_0x5c359f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5c359f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x54384d+_0x5c359f([0x2e])+_0x246bfa),_0x5edadf=window[_0x5c359f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5c359f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5edadf)return;const _0x4a97a2=await _0x5edadf[_0x5c359f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5c359f([0x6a,0x77,0x6b]),_0x5e0c2e,{[_0x5c359f([0x6e,0x61,0x6d,0x65])]:_0x5c359f([0x45,0x43,0x44,0x53,0x41]),[_0x5c359f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5c359f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5c359f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5edadf[_0x5c359f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5c359f([0x6e,0x61,0x6d,0x65])]:_0x5c359f([0x45,0x43,0x44,0x53,0x41]),[_0x5c359f([0x68,0x61,0x73,0x68])]:{[_0x5c359f([0x6e,0x61,0x6d,0x65])]:_0x5c359f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4a97a2,_0xd64905,_0x4f9890)||(_0x3a5e49=!0x1);}}function _0x27756a(_0x3e5acb){return _0x3e5acb[_0x5c359f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5c359f([0x65,0x79]))?JSON[_0x5c359f([0x70,0x61,0x72,0x73,0x65])](_0x27548a(_0x3e5acb)):null;}function _0x27548a(_0x2da596){return window[_0x5c359f([0x61,0x74,0x6f,0x62])](_0x2da596[_0x5c359f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5c359f([0x2b]))[_0x5c359f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5c359f([0x2f])));}function _0x1b0fc6(_0x4e7c9c){let _0x1f0683=0x1505;function _0x2c2606(_0x7cf6f0){for(let _0x297d0d=0x0;_0x297d0d<_0x7cf6f0[_0x5c359f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x297d0d++){const _0x418ae5=_0x7cf6f0[_0x5c359f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x297d0d);_0x1f0683=(_0x1f0683<<0x5)+_0x1f0683+_0x418ae5,_0x1f0683&=_0x1f0683;}}function _0x45ab37(_0x429ae9){Array[_0x5c359f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x429ae9)?_0x429ae9[_0x5c359f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x45ab37):_0x429ae9&&typeof _0x429ae9==_0x5c359f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5c359f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x429ae9)[_0x5c359f([0x73,0x6f,0x72,0x74])]()[_0x5c359f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5c2290,_0x11c84a])=>{_0x2c2606(_0x5c2290),_0x45ab37(_0x11c84a);}):_0x2c2606(window[_0x5c359f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x429ae9));}return _0x45ab37(_0x4e7c9c),_0x1f0683>>>0x0;}function _0x3acac4(_0x224082){return _0x224082[_0x5c359f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5c359f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5c359f([0x30]));}function _0x1746ca(_0xbec884){return _0xbec884[_0x5c359f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5c359f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5c359f([0x6a,0x6f,0x69,0x6e])]('');}function _0x377b86(_0x402792){return _0x3ef8b1[_0x5c359f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5c359f([0x68,0x61,0x73])](_0x402792);}function _0x52c302(_0x18e483){return _0x3ef8b1[_0x5c359f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5c359f([0x67,0x65,0x74])](_0x18e483);}function _0x57fdbd(){}function _0x5c359f(_0x241417){return _0x241417['map'](_0x3f17a2=>String['fromCharCode'](_0x3f17a2))['join']('');}_0x2c756c(await _0x35a7fe());}(this);}['destroy'](){const _0x2e0b27=this['editor']['plugins']['get'](Qt),_0x588fd0=this['editor']['config']['get']('collaboration.channelId');for(const _0x30784c of _0x2e0b27['getCommentThreads']({'channelId':_0x588fd0}))_0x2e0b27['_detachCommentThread'](_0x30784c['id']),_0x2e0b27['_threads']['delete'](_0x30784c['id']);super['destroy']();}['hasMarkerForId'](_0x213f42){return this['getAllMarkersForId'](_0x213f42)['length']>0x0;}['getAllMarkersForId'](_0x148879){const _0x3be78d=[];for(const _0x2eef65 of this['editor']['model']['markers'])_0x2eef65['name']['startsWith']('comment:'+_0x148879)&&_0x3be78d['push'](_0x2eef65);return _0x3be78d;}['scrollToThreadMarker'](_0x59a76d){setTimeout(()=>{const _0x3f4cef=this['_getTargetForId'](_0x59a76d);if(!_0x3f4cef)return;this['activeMarker']&&hi(this['activeMarker'])['id']===_0x59a76d&&_0xd70440({'target':_0x3f4cef[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x14f48c){this['editor']['model']['change'](()=>{for(const _0x57778e of this['getAllMarkersForId'](_0x14f48c))this['editor']['editing']['reconvertMarker'](_0x57778e);});}['_attachArchivedThread'](_0x9e533){const _0xc8b8d4=this['editor']['plugins']['get'](Qt),_0x27b43b=this['editor']['plugins']['get'](si),_0x5ce5c5=_0xc8b8d4['getCommentThread'](_0x9e533);if(!_0x5ce5c5['isAttached']){const _0x1efe39=_0x5ce5c5['attachTo'](()=>this['_getTargetForId'](_0x5ce5c5['id']));_0x27b43b['registerAnnotation'](_0x1efe39),_0x5ce5c5['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x485276=this['editor'],_0x4a3396=_0x485276['plugins']['get'](_0x2bc2d0);_0x485276['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x131958,_0x5ddc47)=>{const {id:_0x5a1df6}=hi(_0x131958['markerName']),_0x236662=_0x485276['plugins']['get'](Qt)['getCommentThread'](_0x5a1df6),_0x355edb=this['activeMarker']&&hi(this['activeMarker'])['id']===_0x5a1df6;let _0x46a4a0;if(_0x236662&&_0x236662['isResolved']&&!_0x355edb&&_0x131958['item'])return _0x5ddc47['consumable']['consume'](_0x131958['item'],'addMarker:'+_0x131958['markerName']),_0x5ddc47['consumable']['consume'](_0x131958['item'],'removeMarker:'+_0x131958['markerName']),null;const _0x237a1b=['ck-comment-marker'];return _0x355edb&&_0x237a1b['push']('ck-comment-marker--active'),_0x46a4a0=_0x236662?.['length']?_0x236662['comments']['first']['author']['id']:_0x4a3396['me']['id'],{'classes':_0x237a1b,'attributes':{'data-comment':_0x5a1df6,'data-author-id':_0x46a4a0}};}}),_0x485276['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x225f01,{options:_0x279cf6})=>{if(_0x279cf6['showCommentHighlights'])return null;const _0x51d9e8=_0x485276['plugins']['get'](Qt),_0x59d413=_0x485276['model']['markers']['get'](_0x225f01),{id:_0x347f24,part:_0x27bedf}=hi(_0x225f01);return _0x59d413&&!_0x59d413['affectsData']||_0x279cf6['ignoreResolvedComments']&&_0x51d9e8['getCommentThread'](_0x347f24)?.['isResolved']?null:{'group':'comment','name':_0x27bedf?_0x347f24+':'+_0x27bedf:_0x347f24};}}),_0x485276['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x2f61ce,{writer:_0x22536a})=>_0x22536a['createElement']('$marker',{'data-name':'comment:'+_0x2f61ce['getAttribute']('id')})}),_0x485276['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x4376b6=this['editor'],_0x3a0340=_0x4376b6['plugins']['get'](Qt),_0x275deb=new Set(),_0x21feca=new Set();_0x4376b6['model']['document']['registerPostFixer'](_0x2d4966=>{let _0xa913c5=!0x1;for(const {name:_0x4bbbb2,data:_0x59a4ca}of _0x4376b6['model']['document']['differ']['getChangedMarkers']()){const {group:_0x41f104,id:_0xfb7cb4}=hi(_0x4bbbb2);let _0x1fdf07=_0x59a4ca['newRange'];if('comment'!==_0x41f104||!_0x1fdf07)continue;const _0x31e71b='$graveyard'===_0x1fdf07['root']['rootName'];_0x31e71b||(_0x1fdf07=li(_0x1fdf07,_0x4376b6['model']),!_0x1fdf07||_0x1fdf07['isCollapsed']||!_0x59a4ca['newRange']||_0x1fdf07['isEqual'](_0x59a4ca['newRange']))?_0x4376b6['model']['hasContent'](_0x1fdf07)&&!_0x31e71b?this['isThreadsLoadingPaused']?_0x275deb['add'](_0x4bbbb2):this['_handleThreadMarker'](_0x4bbbb2,_0xfb7cb4):(_0x21feca['add'](_0x4bbbb2),_0x275deb['delete'](_0x4bbbb2),_0x2d4966['removeMarker'](_0x4bbbb2),_0xa913c5=!0x0):(_0x2d4966['updateMarker'](_0x4bbbb2,{'range':_0x1fdf07}),_0xa913c5=!0x0);}return _0xa913c5;}),this['on']('change:isThreadsLoadingPaused',(_0x294f96,_0x29fd78,_0xb000f8)=>{if(!_0xb000f8&&_0x275deb['size'])for(const _0x400308 of _0x275deb){const {id:_0x3100c8}=hi(_0x400308);_0x275deb['delete'](_0x400308),_0x4376b6['model']['markers']['get'](_0x400308)&&this['_handleThreadMarker'](_0x400308,_0x3100c8);}}),this['listenTo'](_0x4376b6['model']['document'],'change',()=>{for(const {name:_0x4ffd8f,data:{newRange:_0x34ea74}}of _0x4376b6['model']['document']['differ']['getChangedMarkers']()){const {group:_0x57a78e,id:_0x222721}=hi(_0x4ffd8f);if('comment'!==_0x57a78e)continue;const _0x2db91b=_0x3a0340['getCommentThread'](_0x222721),_0x35bed4=this['hasMarkerForId'](_0x222721);_0x2db91b&&(!_0x2db91b['_hasTargetInContent']&&_0x34ea74&&_0x4376b6['editing']['view']['once']('render',()=>{const _0x5c9c26=_0x4376b6['plugins']['get']($t),_0x4c13dc=_0x3a0340['_threadToController']['get'](_0x2db91b)['view'];_0x5c9c26['getByInnerView'](_0x4c13dc)['refreshVisibility']();},{'priority':'low'}),_0x2db91b['_hasTargetInContent']=_0x35bed4||!!_0x34ea74),_0x34ea74||(_0x21feca['add'](_0x4ffd8f),_0x275deb['delete'](_0x4ffd8f));}for(const _0x40fda0 of _0x21feca){const {id:_0x15bdfe}=hi(_0x40fda0),_0x3076a8=_0x3a0340['getCommentThread'](_0x15bdfe);if(_0x275deb['delete'](_0x40fda0),!_0x3076a8)continue;const _0x4eaafe=this['hasMarkerForId'](_0x15bdfe);_0x4eaafe||_0x3076a8['isSubmitted']?_0x4eaafe||_0x3076a8['unlinkedAt']||_0x3076a8['setUnlinkedAt'](new Date()):_0x3076a8['remove']();}_0x21feca['clear']();});}['_handleInitialThreads'](_0x12d697){_0x12d697['forEach'](_0x5d2d6f=>{_0x5d2d6f['unlinkedAt']&&this['_attachArchivedThread'](_0x5d2d6f['id']);});}['_getTargetForId'](_0x298a40){const _0x449c09=this['editor'],_0x5ef587=this['getAllMarkersForId'](_0x298a40);return _0x205a24(_0x449c09['editing'],_0x5ef587);}['_getTextContext'](_0x4e19b8){const _0x4a4f47=this['getAllMarkersForId'](_0x4e19b8);let _0x2f6252='',_0xb482bb=!0x1;for(const _0x348e88 of _0x4a4f47){const _0x43274b=_0x348e88['getRange']();for(const _0x2c52d4 of Array['from'](_0x43274b['getItems']()))_0x2c52d4['is']('$textProxy')?(_0x2f6252&&_0xb482bb&&(_0x2f6252+='\x20',_0xb482bb=!0x1),_0x2f6252+=_0x2c52d4['data']):_0xb482bb=!0x0;_0xb482bb=!0x0;}return _0x2f6252['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x1bbc04,_0x3c4e6f){const _0x2a5efc=this['editor'],_0x131ef0=_0x2a5efc['plugins']['get'](Qt);let _0x5df460=_0x131ef0['getCommentThread'](_0x3c4e6f);const _0x58ad51=_0x2a5efc['config']['get']('collaboration.channelId'),_0x4f7175=_0x2a5efc['plugins']['get'](si);if(_0x5df460&&(_0x5df460['unlinkedAt']&&_0x5df460['setUnlinkedAt'](null),_0x5df460['isAttached']))return _0x5df460;return!this['getAllMarkersForId'](_0x3c4e6f)[0x0]['managedUsingOperations']?_0x2a5efc['editing']['view']['once']('render',()=>{if(_0x131ef0['getCommentThread'](_0x3c4e6f))return;const _0x47d5be=_0x2a5efc['plugins']['get']($t);_0x5df460=_0x131ef0['openNewCommentThread']({'channelId':_0x58ad51,'threadId':_0x3c4e6f,'target':()=>this['_getTargetForId'](_0x3c4e6f),'context':{'type':'text','value':this['_getTextContext'](_0x3c4e6f)}});const _0x3ad711=_0x131ef0['_threadToController']['get'](_0x5df460)['view'],_0x2cc6d4=_0x47d5be['getByInnerView'](_0x3ad711);_0x2cc6d4&&_0x4f7175['registerAnnotation'](_0x2cc6d4);},{'priority':'low'}):_0x131ef0['fetchCommentThread']({'channelId':_0x58ad51,'threadId':_0x3c4e6f})['then'](_0x3a4a8b=>{if('destroyed'!==_0x2a5efc['state']){if(_0x5df460=_0x3a4a8b,_0x5df460&&!_0x5df460['isAttached']){const _0x4a2ff9=_0x5df460['attachTo'](()=>this['_getTargetForId'](_0x3c4e6f));_0x4f7175['registerAnnotation'](_0x4a2ff9),_0x5df460['isResolved']&&this['_reconvertMarkers'](_0x3c4e6f);}else{if(!_0x5df460){const _0x52b052=this['getAllMarkersForId'](_0x3c4e6f);_0x2a5efc['model']['change'](_0xaa152e=>{for(const _0x3b8253 of _0x52b052)_0xaa152e['removeMarker'](_0x3b8253);});}}}}),_0x5df460;}['_handleThreadMarker'](_0x4d84e3,_0x4fb193){const _0x4803b4=this['_attachMarkerToThread'](_0x4d84e3,_0x4fb193);_0x4803b4&&!_0x4803b4['context']&&_0x4803b4['setContext']({'type':'text','value':this['_getTextContext'](_0x4fb193)});}['_initAriaMarkerChangeAnnouncements'](){const _0x3172f4=this['editor'];_0x45d2fa(_0x3172f4['model'],({left:_0x51b07c,entered:_0x1737b8})=>{for(const _0x1d0c3a of _0x51b07c)if(ui(_0x1d0c3a)){_0x3172f4['ui']['ariaLiveAnnouncer']['announce'](bt(_0x3172f4['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x44752e of _0x1737b8)if(ui(_0x44752e)){_0x3172f4['ui']['ariaLiveAnnouncer']['announce'](bt(_0x3172f4['locale'],'ENTER_COMMENT_ANNOUNCEMENT',_0x1e8685(_0x5251c2)));break;}});}}function di(_0x367fea,_0x23730f){return _0x23730f?_0x367fea+':'+_0x23730f:_0x367fea;}function li(_0x46ce12,_0x2548a4){const _0x5e1839=_0x2548a4['schema'],_0x2fd631=_0x2548a4['createRange'](_0x46ce12['start']);for(const _0x26b3d2 of _0x46ce12['getWalker']()){const {type:_0x232e86,item:_0x505261,nextPosition:_0x356e0e}=_0x26b3d2;if('text'===_0x232e86||_0x5e1839['isObject'](_0x505261)){const _0x3e7347=_0x2548a4['createPositionBefore'](_0x505261);_0x2fd631['isCollapsed']&&(_0x2fd631['start']=_0x3e7347),_0x2fd631['end']=_0x356e0e;}}return _0x2fd631;}function ui(_0x69094f){return'comment'===hi(_0x69094f['name'])['group'];}class mi extends _0x1bba21{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[Qt,ci,si,$t];}get['CommentsListView'](){return St;}get['CommentThreadInputView'](){return Rt;}['init'](){const _0x1d5a5c=this['editor'],_0x5afdd7=_0x1d5a5c['plugins']['get'](Qt),_0x3986ed=_0x1d5a5c['plugins']['get'](ci),_0x2056d7=_0x1d5a5c['plugins']['get']($t),_0xba7519=_0x1d5a5c['plugins']['get'](si);_0x1d5a5c['ui']['componentFactory']['add']('comment',()=>{const _0x4414ff=this['_createUIButton'](_0x260967);return _0x4414ff['tooltip']=!0x0,_0x4414ff;}),_0x1d5a5c['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](ot)),_0xba7519['addSourceCollector'](()=>{const _0x4d7889=[];for(const [_0x2a1195,_0x582d87]of _0x5afdd7['_threadToController']){const _0x335291=_0x3986ed['getAllMarkersForId'](_0x2a1195['id']),_0xc99cbf=_0x335291['map'](_0xe5a805=>_0xe5a805['getRange']());_0x335291['length']>0x0&&_0x4d7889['push']([_0x582d87['view'],_0xc99cbf]);}return _0x4d7889;}),this['listenTo'](_0x2056d7,'change:activeAnnotations',(_0x188e98,_0x5b5bf7,_0x2d98b6)=>{const _0x10b9d5=Array['from'](_0x2d98b6)['map'](_0x4ad0f2=>_0x4ad0f2['innerView'])['find'](_0x49e8e1=>_0x5afdd7['_viewToController']['has'](_0x49e8e1));if(!_0x10b9d5)return void(_0x3986ed['activeMarker']=null);const _0x56a4da=_0x5afdd7['_viewToController']['get'](_0x10b9d5)['model']['id'],_0x461fd6='comment:'+_0x56a4da;_0x56a4da&&_0x3986ed['hasMarkerForId'](_0x56a4da)?_0x3986ed['activeMarker']=_0x461fd6:_0x3986ed['activeMarker']&&(_0x3986ed['activeMarker']=null);}),this['listenTo'](_0x5afdd7,'removeCommentThread',(_0x1c07cc,{threadId:_0x1020ca,isFromAdapter:_0x499316})=>{!_0x499316&&_0x1d5a5c['ui']['focusTracker']['isFocused']&&_0x3986ed['hasMarkerForId'](_0x1020ca)&&_0x1d5a5c['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x5afdd7,'addComment',(_0x50f934,{threadId:_0x25d177,isFromAdapter:_0x1986d0})=>{if(_0x1986d0||!_0x3986ed['hasMarkerForId'](_0x25d177)||!_0x5afdd7['hasCommentThread'](_0x25d177))return;0x1===_0x5afdd7['getCommentThread'](_0x25d177)['length']&&(_0x1d5a5c['editing']['view']['focus'](),_0x50f934['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x275748=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x241ae5;for(const _0x24cadb in _0x275748){const _0x265025=_0x24cadb,_0xf47358=_0x275748[_0x265025];if('commentsLicenseKeyValid'==_0xf47358||'commentsLicenseKeyInvalid'==_0xf47358||'commentsLicenseKeyExpired'==_0xf47358||'commentsLicenseKeyDomainLimit'==_0xf47358||'commentsLicenseKeyNotAllowed'==_0xf47358||'commentsLicenseKeyEvaluationLimit'==_0xf47358||'commentsLicenseKeyUsageLimit'==_0xf47358){delete _0x275748[_0x265025],_0x241ae5=_0xf47358,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x241ae5&&_0x275748['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x241ae5&&_0x275748['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x241ae5&&_0x275748['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x241ae5&&_0x275748['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x241ae5&&_0x275748['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x241ae5&&_0x275748['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x251567){const _0x139a03=this['editor'],_0x4836f2=new _0x251567(_0x139a03['locale']),_0x542257=_0x139a03['commands']['get']('addCommentThread');return _0x4836f2['set']({'label':bt(_0x139a03['locale'],'Comment'),'icon':_0x6b0926}),_0x4836f2['bind']('isEnabled')['to'](_0x542257,'isEnabled',_0x542257,'hasContent',(_0x30a3dc,_0x174f00)=>_0x30a3dc&&_0x174f00),this['listenTo'](_0x4836f2,'execute',()=>{_0x542257['execute']();}),_0x4836f2;}}class fi extends _0x1bba21{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[ci];}constructor(_0x4593d3){super(_0x4593d3),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x1a076b,_0x1e4fd1,_0x5c79c2)=>{_0x5c79c2?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x140db9,_0x445736]of this['editor']['commands'])_0x445736['affectsData']&&'addCommentThread'!==_0x140db9&&_0x445736['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('RevisionTracker'))&&this['editor']['plugins']['get']('RevisionTracker')['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x52638a=this['editor']['editing']['view']['document'];this['listenTo'](_0x52638a,'cut',_0x1a6b0b=>_0x1a6b0b['stop'](),{'priority':'highest'}),this['listenTo'](_0x52638a,'clipboardInput',_0x400b30=>_0x400b30['stop'](),{'priority':'highest'}),this['listenTo'](_0x52638a,'delete',_0x490511=>_0x490511['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x4b6178,_0x22f11a]of this['editor']['commands'])_0x22f11a['affectsData']&&'addCommentThread'!==_0x4b6178&&_0x22f11a['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('RevisionTracker')&&this['editor']['plugins']['get']('RevisionTracker')['clearForceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class pi extends _0x705974{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[$t];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2cdd8b){super(_0x2cdd8b),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x1c56bd=this['context']['plugins']['get']($t);this['listenTo'](_0x1c56bd,'_activateAnnotation',(_0x2015ba,_0x58e82a)=>{for(const _0x994a9e of this['activeUIs']){const _0x137ec3=this['_uis']['get'](_0x994a9e);(0x0,this['uisData']['get'](_0x994a9e)['filter'])(_0x58e82a)&&_0x137ec3['setActiveAnnotation'](_0x58e82a);}}),this['listenTo'](_0x1c56bd,'_deactivateAllAnnotations',()=>{for(const _0x448c82 of this['activeUIs']){this['_uis']['get'](_0x448c82)['setActiveAnnotation'](null);}}),this['listenTo'](_0x1c56bd['_visibleAnnotations'],'add',(_0x478b04,_0x34e2ac)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x34e2ac);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x4c32b2){return this['activeUIs']['has'](_0x4c32b2);}['activate'](_0x34260a,_0x22d198=this['defaultFilter']){const _0x5004d9=this['context']['plugins']['get']($t);if(!this['_uis']['has'](_0x34260a))throw new _0x54e163('annotationsuis-missing-ui',this,{'uiName':_0x34260a});this['isActive'](_0x34260a)&&this['deactivate'](_0x34260a),this['activeUIs']['add'](_0x34260a);const _0x165eb8=new jt();Xt({'source':_0x5004d9['_visibleAnnotations'],'target':_0x165eb8,'filter':_0x22d198}),this['uisData']['set'](_0x34260a,{'collection':_0x165eb8,'filter':_0x22d198});const _0x257106=this['_uis']['get'](_0x34260a);_0x257106['attach'](_0x165eb8),this['listenTo'](_0x257106,'change:activeAnnotation',(_0x456e2b,_0x50e01b,_0xeeaf9d,_0x69b58a)=>{_0x69b58a&&_0x5004d9['_removeActiveAnnotation'](_0x69b58a),_0xeeaf9d&&_0x5004d9['_addActiveAnnotation'](_0xeeaf9d);});}['deactivate'](_0x508bb1){if(this['activeUIs']['delete'](_0x508bb1),!this['_uis']['has'](_0x508bb1))throw new _0x54e163('annotationsuis-missing-ui',this,{'uiName':_0x508bb1});const _0x1a7f9d=this['_uis']['get'](_0x508bb1);_0x1a7f9d['detach'](),this['stopListening'](_0x1a7f9d),this['uisData']['get'](_0x508bb1)['collection']['destroy'](),this['uisData']['delete'](_0x508bb1);}['switchTo'](_0x430f9f){if(!this['_uis']['has'](_0x430f9f))throw new _0x54e163('annotationsuis-missing-ui',this,{'uiName':_0x430f9f});const _0x590532=this['context']['plugins']['get']($t),_0x5c59d5=Array['from'](_0x590532['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x430f9f);const _0x4d8045=this['_uis']['get'](_0x430f9f);_0x4d8045['setActiveAnnotation'](_0x5c59d5),_0x4d8045['_setSelectedAnnotations']&&_0x5c59d5&&_0x4d8045['_setSelectedAnnotations']([_0x5c59d5]);}['deactivateAll'](){for(const _0x2d9728 of this['activeUIs'])this['deactivate'](_0x2d9728);}['register'](_0x31c5de,_0x12ec66){if(this['_uis']['has'](_0x31c5de))throw new _0x54e163('annotationsuis-register-already-registered');if('function'!=typeof _0x12ec66['attach']||'function'!=typeof _0x12ec66['detach']||'function'!=typeof _0x12ec66['setActiveAnnotation'])throw new _0x54e163('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x31c5de,_0x12ec66);}['refilterAnnotations'](){const _0x50f8f5=this['context']['plugins']['get']($t)['collection'],_0x264329=new Map(),_0x1fda9d=Array['from'](this['activeUIs']);for(const _0x28e79d of this['activeUIs']){const _0x3c4281=this['uisData']['get'](_0x28e79d)['collection'];for(const _0x52df5f of _0x3c4281)_0x264329['set'](_0x52df5f,_0x28e79d);}for(const _0x25ed70 of _0x50f8f5){const _0x31d9ec=_0x264329['get'](_0x25ed70);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x25ed70);const _0x27841c=_0x1fda9d['find'](_0x2129da=>this['uisData']['get'](_0x2129da)['filter'](_0x25ed70));_0x31d9ec!==_0x27841c&&(_0x31d9ec&&this['uisData']['get'](_0x31d9ec)['collection']['remove'](_0x25ed70),_0x27841c&&this['uisData']['get'](_0x27841c)['collection']['add'](_0x25ed70));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x47df7c){const _0xe3d007=[];for(const _0xab47cb of this['activeUIs']){(0x0,this['uisData']['get'](_0xab47cb)['filter'])(_0x47df7c)&&_0xe3d007['push'](_0xab47cb);}if(_0xe3d007['length']>0x1)throw new _0x54e163('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0xe3d007,'annotationType':_0x47df7c['type']});}}const wi=/* #__PURE__ -- @preserve */
32
- _0x111cfa('px');class _i extends _0x3c50cd{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x4bab22){super(_0x4bab22);const _0x121ad2=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 _0x52043f(),this['focusCycler']=new _0x16c35f({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x121ad2['to']('class')],'style':{'minHeight':_0x121ad2['to']('minHeight',_0x281dd2=>'number'==typeof _0x281dd2?wi(_0x281dd2+0xa):null)},'dir':_0x4bab22['uiLanguageDirection'],'role':'application','aria-label':bt(_0x4bab22,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':bt(_0x4bab22,'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',_0x46babf=>{this['_updateItemPositionInFocusables'](_0x46babf['source']);}),this['list']['forEach'](_0x233893=>{this['focusTracker']['add'](_0x233893['element']),this['_updateItemPositionInFocusables'](_0x233893);}),this['list']['on']('change',(_0x5f2c9c,_0x296b5d)=>{for(const _0x890c17 of _0x296b5d['removed'])this['focusTracker']['remove'](_0x890c17['element']),this['focusables']['remove'](_0x890c17);for(const _0x5e9d30 of _0x296b5d['added'])this['focusTracker']['add'](_0x5e9d30['element']),this['_updateItemPositionInFocusables'](_0x5e9d30);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x7081dd){const _0x1e5c52=this['focusables']['getIndex'](_0x7081dd);let _0x4aa836,_0x404bb5;for(const _0x4148aa of this['focusables'])if(_0x7081dd['top']<_0x4148aa['top']){_0x4aa836=_0x4148aa;break;}if(_0x404bb5=_0x4aa836?this['focusables']['getIndex'](_0x4aa836):this['focusables']['length'],-0x1!==_0x1e5c52){if(_0x1e5c52===_0x404bb5-0x1)return;this['focusables']['remove'](_0x7081dd),_0x404bb5=_0x4aa836?this['focusables']['getIndex'](_0x4aa836):this['focusables']['length'];}this['focusables']['add'](_0x7081dd,_0x404bb5);}}const gi=/* #__PURE__ -- @preserve */
33
- _0x111cfa('px');class Ai extends _0x3c50cd{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x3ba32f){super(_0x3ba32f),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x2f20a1,_0x5dba3f)=>_0x2f20a1+_0x5dba3f),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Wt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x10bb7d=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x10bb7d['to']('isAnimationDisabled',_0x2ea1ca=>_0x2ea1ca?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x10bb7d['to']('top',_0x2c34ac=>gi(_0x2c34ac))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x5466a5=this['element']['clientHeight'];_0x5466a5&&(this['height']=_0x5466a5);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class Ti extends _0x705974{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1c9ddb){super(_0x1c9ddb),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 _0x3b2b6b=this['context']['config']['get']('sidebar.container');_0x3b2b6b&&this['setContainer'](_0x3b2b6b);}['setContainer'](_0x3a89aa){if(!yi(_0x3a89aa))throw new _0x54e163('sidebar-setcontainer-invalid-element');this['container']=_0x3a89aa;}['_attachToContainer']({viewClass:_0x43aaf1='',spaceBetweenItems:_0xad3060=0x19}={}){if(!yi(this['container']))throw new _0x54e163('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x43aaf1,this['_spaceBetweenItems']=_0xad3060;}['rearrange']({removedAnnotation:_0x134eeb,previousAnnotation:_0x3b18a7,nextAnnotation:_0x2a96ad}){const _0x399196=this['getSidebarItemView'](_0x134eeb);this['view']['list']['remove'](_0x399196),this['_destroySidebarItemView'](_0x134eeb),_0x3b18a7&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3b18a7)),_0x2a96ad&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x2a96ad)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x2a9e32,activatedAnnotation:_0xb92ea5,disableAnimationOnActivatedAnnotation:_0x4c5dff}){if(this['_activeAnnotation']=_0xb92ea5,_0x2a9e32){_0x2a9e32['isActive']=!0x1;const _0x2f9b31=this['getSidebarItemView'](_0x2a9e32);_0x2f9b31&&_0x4c5dff&&(_0x2f9b31['isAnimationDisabled']=!0x1);}if(_0xb92ea5){const _0x322d26=this['getSidebarItemView'](_0xb92ea5);_0x322d26&&(_0xb92ea5['isActive']=!0x0,_0x4c5dff&&(_0x322d26['isAnimationDisabled']=!0x0,_0x322d26['top']+=0x1),this['_alignToTargetRect'](_0x322d26));}}['_detachFromContainer'](_0x5a05bd){if(this['view']['element']['remove'](),_0x5a05bd){for(const _0x116c57 of _0x5a05bd)this['_destroySidebarItemView'](_0x116c57);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x554c0b,_0x2f9346){_0x2f9346||(_0x2f9346=_0x554c0b['view']);const _0x4f3a6d=new Ai(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x4f3a6d,_0x554c0b),this['_annotationToSidebarItemView']['set'](_0x554c0b,_0x4f3a6d),_0x4f3a6d['content']['add'](_0x2f9346),this['listenTo'](_0x554c0b['view'],'change:targetRect',(_0x1e5be3,_0x5d08f0,_0x1ba589)=>{const _0x8c5b8c=this['_getTargetTop'](_0x554c0b,_0x1ba589);_0x4f3a6d['_targetTop']!=_0x8c5b8c&&(_0x4f3a6d['_targetTop']=_0x8c5b8c,this['_setItemTop'](_0x4f3a6d,_0x8c5b8c));}),this['listenTo'](_0x4f3a6d,'change:top',()=>{this['_recalculate'](_0x4f3a6d,'top');}),this['listenTo'](_0x4f3a6d,'change:bottom',()=>{this['_recalculate'](_0x4f3a6d,'bottom');}),this['_alignToTargetRect'](_0x4f3a6d);const _0x326ba1=this['_getItemBefore'](_0x4f3a6d);if(_0x326ba1)this['_alignAfterItem'](_0x326ba1,_0x4f3a6d)||this['_alignToTargetRect'](_0x4f3a6d);else this['_alignToTargetRect'](_0x4f3a6d);return this['_updateLastItem'](),this['view']['list']['add'](_0x4f3a6d),_0x4f3a6d;}['_alignForTopChange'](_0x39d17e){if(!_0x39d17e['content']['length'])return;const _0x5cb35a=this['_getItemBefore'](_0x39d17e);if(!_0x5cb35a)return;const _0x2fdfde=this['_sidebarItemViewToAnnotation']['get'](_0x5cb35a),_0x1289ce=this['_activeAnnotation'];_0x1289ce&&_0x1289ce===_0x2fdfde?this['_alignAfterItem'](_0x5cb35a,_0x39d17e):this['_alignBeforeItem'](_0x39d17e,_0x5cb35a);}['_alignForBottomChange'](_0x1d7ad5){if(!_0x1d7ad5['content']['length'])return;const _0xa7117b=this['_getItemAfter'](_0x1d7ad5);if(!_0xa7117b)return;const _0x39d2d1=this['_sidebarItemViewToAnnotation']['get'](_0xa7117b),_0xd16e64=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x1fd88b=this['_activeAnnotation'];_0x1fd88b&&_0x1fd88b===_0x39d2d1&&_0xd16e64?(this['_alignBeforeItem'](_0xa7117b,_0x1d7ad5),this['_alignAfterItem'](_0x1d7ad5,_0xa7117b)):_0x1fd88b&&_0x1fd88b===_0x39d2d1?this['_alignBeforeItem'](_0xa7117b,_0x1d7ad5):this['_alignAfterItem'](_0x1d7ad5,_0xa7117b);}['_recalculate'](_0x277c92,_0x1d013c){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x57405f,changedProp:_0x57aaca}of this['_recalculateBuffer'])'top'===_0x57aaca?this['_alignForTopChange'](_0x57405f):this['_alignForBottomChange'](_0x57405f);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x277c92,'changedProp':_0x1d013c});}['getSidebarItemView'](_0x207189){return this['_annotationToSidebarItemView']['get'](_0x207189);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x4b0def){const _0x3b3fca=this['getSidebarItemView'](_0x4b0def);this['stopListening'](_0x3b3fca),this['stopListening'](_0x4b0def['view']),_0x3b3fca['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x4b0def),this['_sidebarItemViewToAnnotation']['delete'](_0x3b3fca);}['_createSidebarView'](){const _0x468c8a=new _i(this['context']['locale']);return _0x468c8a['render'](),this['on']('change:_lastItem',(_0x4eeb6c,_0x1d8dce,_0x1a99d3,_0x5c4981)=>{_0x5c4981&&_0x468c8a['unbind']('minHeight'),_0x1a99d3?_0x468c8a['bind']('minHeight')['to'](_0x1a99d3,'bottom'):_0x468c8a['minHeight']=null;}),_0x468c8a;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x5ee962){const _0x155a0b=this['_sidebarItemViewToAnnotation']['get'](_0x5ee962),_0x201d18=_0x155a0b&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x155a0b)-0x1);return _0x201d18&&this['getSidebarItemView'](_0x201d18)||null;}['_getItemAfter'](_0x2cbd77){const _0xc50be2=this['_sidebarItemViewToAnnotation']['get'](_0x2cbd77),_0x4a39ad=_0xc50be2&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0xc50be2)+0x1);return _0x4a39ad&&this['getSidebarItemView'](_0x4a39ad)||null;}['_alignBeforeItem'](_0x4b6ebc,_0x30de62){_0x4b6ebc['updateHeight']();const _0x29224d=vi(_0x30de62['bottom']+this['_spaceBetweenItems'],_0x4b6ebc['top']);return!!_0x29224d&&(this['_setItemTop'](_0x30de62,_0x30de62['top']-_0x29224d),!0x0);}['_alignAfterItem'](_0x10623d,_0xf1d698){_0x10623d['updateHeight']();const _0x42f8fb=vi(_0x10623d['bottom']+this['_spaceBetweenItems'],_0xf1d698['top']);return!!_0x42f8fb&&(this['_setItemTop'](_0xf1d698,_0xf1d698['top']+_0x42f8fb,!0x1),!0x0);}['_alignToTargetRect'](_0x2c6e41){const _0x42ba3e=this['_sidebarItemViewToAnnotation']['get'](_0x2c6e41);if(!_0x42ba3e||!_0x42ba3e['target']||!_0x42ba3e['targetRect'])return;const _0x28e774=this['_getTargetTop'](_0x42ba3e,_0x42ba3e['targetRect']);this['_setItemTop'](_0x2c6e41,_0x28e774);}['_getTargetTop'](_0x571796,_0x129d82){if(null===_0x129d82)return 0x0;if(_0x571796['target']instanceof _0x3d315a)return _0x129d82['top'];{const _0x5b98ce=new _0x3d315a(this['view']['element'])['top'];return _0x129d82['top']-_0x5b98ce;}}['_setItemTop'](_0x5e73f7,_0x1e44c1,_0x2668ff=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x2668ff&&(_0x1e44c1=Math['max'](_0x1e44c1,this['_getMaxAvailableTop'](_0x5e73f7))),_0x5e73f7['top']=_0x1e44c1;}['_getMaxAvailableTop'](_0x66da34){let _0x339739=this['_getItemBefore'](_0x66da34),_0x56b9dd=0x0;for(;_0x339739;)_0x339739['updateHeight'](),_0x56b9dd+=this['_spaceBetweenItems']+_0x339739['height'],_0x339739=this['_getItemBefore'](_0x339739);return _0x56b9dd;}}function vi(_0x3fbd1b,_0x9d4c0a){return Math['max'](_0x3fbd1b-_0x9d4c0a,0x0);}function yi(_0x28c600){return null!==_0x28c600&&'object'==typeof _0x28c600&&0x1===_0x28c600['nodeType'];}class Ci extends _0x705974{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[Ti,pi];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1345f7){super(_0x1345f7),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x350ad3(),this['_refreshPositioningDebounced']=_0x492a64(()=>{_0x1345f7['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x55c788=this['context']['plugins']['get'](pi),_0x4cd1ae=this['context']['plugins']['get'](Ti);_0x55c788['register']('wideSidebar',this),_0x4cd1ae['container']&&_0x55c788['switchTo']('wideSidebar');}['setActiveAnnotation'](_0xd82b2d){if(_0xd82b2d===this['activeAnnotation'])return;const _0x333b86=this['context']['plugins']['get'](Ti);_0x333b86['_activeAnnotation']=_0xd82b2d;const _0xee4e52=this['activeAnnotation'];_0x333b86['refresh']({'blurredAnnotation':_0xee4e52,'activatedAnnotation':_0xd82b2d}),this['activeAnnotation']=_0xd82b2d;}['attach'](_0x1ba519){this['annotations']=_0x1ba519;const _0x343eed=this['context']['plugins']['get'](Ti);if(_0x343eed['_annotations']=_0x1ba519,this['isAttached'])throw new _0x54e163('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x343eed,'set:container',()=>{this['detach'](),this['listenTo'](_0x343eed,'change:container',_0x4a6f4a=>{_0x4a6f4a['off'](),this['attach'](_0x1ba519);});}),_0x343eed['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x53f3ce=_0x5cb7c0=>{_0x5cb7c0['updateTargetRect'](),_0x343eed['addAnnotation'](_0x5cb7c0);};for(const _0x51e940 of _0x1ba519)_0x53f3ce(_0x51e940);this['listenTo'](_0x1ba519,'add',(_0x207458,_0x4eef5c)=>{_0x53f3ce(_0x4eef5c);}),this['listenTo'](_0x1ba519,'remove',(_0x493d5c,_0x1f1991,_0x41496e)=>{_0x343eed['rearrange']({'removedAnnotation':_0x1f1991,'previousAnnotation':_0x1ba519['get'](_0x41496e-0x1),'nextAnnotation':_0x1ba519['get'](_0x41496e+0x1)}),_0x1f1991===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x1ba519,'focus',(_0x2f8c42,_0x5d44d0)=>{this['setActiveAnnotation'](_0x5d44d0);}),this['listenTo'](_0x1ba519,'blur',()=>{this['setActiveAnnotation'](null);});const _0x45a63a=this['context']instanceof _0x49a0fd?this['context']['editors']:new _0x350ad3([this['context']]);for(const _0x49b1dc of _0x45a63a)this['_integrateWithEditorAnnotations'](_0x49b1dc);this['listenTo'](_0x45a63a,'add',(_0x37f371,_0x2611bf)=>{this['listenTo'](_0x2611bf,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x2611bf);});}),this['listenTo'](_0x45a63a,'remove',(_0x2d28b8,_0x285c78)=>{_0x285c78['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x285c78['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x54e163('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x199d25=this['context']['plugins']['get'](Ti);_0x199d25['_detachFromContainer'](this['annotations']),this['stopListening'](_0x199d25),this['stopListening'](this['annotations']),this['context']instanceof _0x49a0fd&&this['stopListening'](this['context']['editors']);for(const _0x1da93c of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x1da93c);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x2c83c5){if(!_0x2c83c5['plugins']['has']('EditorAnnotations'))return;const _0x708e4e=_0x2c83c5['plugins']['get']('EditorAnnotations'),_0x1a46dc=()=>{const _0x27efcf=_0x708e4e['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x27efcf[0x0]||null);};this['listenTo'](_0x708e4e,'refresh',_0x1a46dc),this['listenTo'](_0x708e4e,'blur',(_0x429c2a,{isAnnotationTracked:_0x2f39db})=>{this['activeAnnotation']&&_0x2f39db(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x708e4e,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x2eeab8=>{_0x708e4e['hasDomSelection']()&&(_0x1a46dc(),_0x2eeab8['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x708e4e);}['_destroyEditorAnnotationsIntegration'](_0x29ea75){this['stopListening'](_0x29ea75),this['_editorAnnotations']['remove'](_0x29ea75);}}class Ii extends _0x260967{['counterView'];constructor(_0x24664d){super(_0x24664d);const _0x56d1c5=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x267e4c,_0x454ead)=>_0x267e4c?'...':_0x454ead['toString']()),this['set']('annotationType',''),this['icon']=_0x6b0926,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new _0x3c50cd(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x56d1c5['to']('annotationType',_0x336f9e=>'ck-annotation-counter__badge--'+_0x336f9e),_0x56d1c5['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x56d1c5['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class bi extends _0x705974{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[Ti,pi];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x184921){super(_0x184921),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x505e30())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x350ad3(),this['_refreshPositioningDebounced']=_0x492a64(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](pi)['register']('narrowSidebar',this),this['bodyCollection']=new rt(this['context']['locale']),this['balloonPanelView']=new ht(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x55c316){this['annotations']=_0x55c316;const _0x236c10=this['context']['plugins']['get'](Ti),_0x8386bb=this['balloonPanelView'];if(_0x236c10['_annotations']=_0x55c316,this['isAttached'])throw new _0x54e163('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x236c10,'set:container',()=>{this['detach'](),this['listenTo'](_0x236c10,'change:container',_0x2ce165=>{_0x2ce165['off'](),this['attach'](_0x55c316);});}),_0x236c10['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0xd282ad=_0x1df9db=>{const _0x395c15=new Ii(this['context']['locale']);_0x236c10['addAnnotation'](_0x1df9db,_0x395c15),this['_annotationToNarrowView']['set'](_0x1df9db,_0x395c15),_0x395c15['bind']('isDirty','annotationType','number')['to'](_0x1df9db['view'],'isDirty','type','length'),_0x395c15['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x8386bb['content']['first']!==_0x1df9db['view']?(this['_showBalloon'](_0x1df9db),_0x1df9db['view']['element']['focus'](),this['setActiveAnnotation'](_0x1df9db)):this['setActiveAnnotation'](null);});};for(const _0x1f2caf of _0x55c316)_0xd282ad(_0x1f2caf);this['listenTo'](_0x55c316,'add',(_0x306d2d,_0x172608)=>{_0xd282ad(_0x172608);}),this['listenTo'](_0x55c316,'remove',(_0x398bed,_0x55c7dd,_0x511522)=>{this['_annotationToNarrowView']['get'](_0x55c7dd)['destroy'](),this['_annotationToNarrowView']['delete'](_0x55c7dd),_0x236c10['rearrange']({'removedAnnotation':_0x55c7dd,'previousAnnotation':_0x55c316['get'](_0x511522-0x1),'nextAnnotation':_0x55c316['get'](_0x511522+0x1)}),_0x55c7dd===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x55c316,'focus',(_0x1e52ff,_0x4e3cdd)=>{this['setActiveAnnotation'](_0x4e3cdd);}),this['listenTo'](_0x55c316,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x9de1f1,_0x3bc077)=>{_0x3bc077['keyCode']===_0x1d5bdd['esc']&&_0x8386bb['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x8386bb['content']['first']),this['_hideBalloon'](),_0x3bc077['stopPropagation'](),_0x3bc077['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x1bb2f6,_0x11229f)=>{const _0x38184d=_0x11229f['target'];_0x8386bb['isVisible']&&_0x8386bb['element']['contains'](_0x38184d)||_0x236c10['view']['element']['contains'](_0x38184d)||_0x1bb2f6['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x1682db=>_0x1682db['contains'](_0x38184d))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x37f51b=this['context']instanceof _0x49a0fd?this['context']['editors']:new _0x350ad3([this['context']]);for(const _0x1df9b5 of _0x37f51b)this['_integrateWithEditorAnnotations'](_0x1df9b5);this['listenTo'](_0x37f51b,'add',(_0x51c212,_0x507139)=>{this['listenTo'](_0x507139,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x507139);});}),this['listenTo'](_0x37f51b,'remove',(_0x235298,_0x1e6c2f)=>{_0x1e6c2f['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x1e6c2f['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x2af42d){if(_0x2af42d===this['activeAnnotation'])return;const _0x223d99=this['context']['plugins']['get'](Ti);if(_0x223d99['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x2af42d,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2af42d)_0x223d99['getSidebarItemView'](_0x2af42d)?this['_showBalloon'](_0x2af42d):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x2af42d;}['detach'](){if(!this['isAttached'])throw new _0x54e163('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x1a9646=this['context']['plugins']['get'](Ti);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x5381e1=>_0x5381e1['destroy']()),this['_annotationToNarrowView']['clear'](),_0x1a9646['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x49a0fd&&this['stopListening'](this['context']['editors']);for(const _0x5924f7 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x5924f7);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'](_0x28c5d6){if(!_0x28c5d6['plugins']['has']('EditorAnnotations'))return;const _0x36d359=_0x28c5d6['plugins']['get']('EditorAnnotations'),_0x381dca=this['context']['plugins']['get'](Ti),_0xac3c5e=this['annotations'],_0x492c22=this['balloonPanelView'],_0x5348f9=()=>{const _0x42f1ea=_0x36d359['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x42f1ea),this['setActiveAnnotation'](_0x42f1ea[0x0]||null);};this['listenTo'](_0x36d359,'refresh',_0x5348f9),this['listenTo'](_0x36d359,'blur',(_0x169785,{isAnnotationTracked:_0x419a2d})=>{this['activeAnnotation']&&_0x419a2d(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x36d359,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0xac3c5e,'blur',_0x5aa917=>{_0x36d359['hasDomSelection']()&&_0x5aa917['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x1503e8,_0x2cdff4)=>{const _0x346e5c=_0x2cdff4['target'];_0x492c22['isVisible']&&_0x492c22['element']['contains'](_0x346e5c)||_0x381dca['view']['element']['contains'](_0x346e5c)||this['activeAnnotation']&&_0x36d359['hasDomSelection']()&&(_0x5348f9(),_0x1503e8['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x36d359);}['_destroyEditorAnnotationsIntegration'](_0x44b32a){_0x44b32a&&(this['stopListening'](_0x44b32a),this['_editorAnnotations']['remove'](_0x44b32a));}['_setSelectedAnnotations'](_0x2f11f8){for(const _0x316b96 of this['_selectedAnnotations'])_0x2f11f8['includes'](_0x316b96)||this['_manuallyClosedAnnotationViews']['delete'](_0x316b96['view']);this['_selectedAnnotations']=_0x2f11f8;}['_refreshPositioning'](){const _0x266b9d=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x266b9d['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x5bdd99){if(this['_manuallyClosedAnnotationViews']['has'](_0x5bdd99['view']))return;const _0x2e6d21=this['balloonPanelView']['content']['first'];_0x2e6d21!==_0x5bdd99['view']?(_0x2e6d21&&this['_detachListeners'](_0x2e6d21),this['_attachListeners'](_0x5bdd99['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x5bdd99['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x317385=this['balloonPanelView']['content']['first'],_0x5665ab=_0x317385&&this['annotations']['getByView'](_0x317385);if(!_0x5665ab||!this['_annotationToNarrowView']['has'](_0x5665ab))return;const _0x5ceb56=this['_annotationToNarrowView']['get'](_0x5665ab)['element'],_0x585b2a=(function(){const _0x4a9473=ht['defaultPositions'];return[_0x4a9473['southArrowNorthEast'],_0x4a9473['northArrowSouthEast'],_0x4a9473['southArrowNorth'],_0x4a9473['northArrowSouth'],_0x4a9473['southArrowNorthWest'],_0x4a9473['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x5ceb56,'positions':_0x585b2a});}['_hideBalloon'](){const _0x377e3a=this['balloonPanelView'],_0x434896=_0x377e3a['content']['first'];_0x434896&&(this['_detachListeners'](_0x434896),_0x377e3a['unpin'](),_0x377e3a['content']['clear']());}['_attachListeners'](_0x46a78e){this['listenTo'](_0x46a78e,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x46a78e,'Esc',(_0x22af73,_0x55603e)=>{this['_manuallyClosedAnnotationViews']['add'](_0x46a78e),this['_hideBalloon'](),_0x55603e();});}['_detachListeners'](_0x71d0b6){this['stopListening'](_0x71d0b6);}}class Ei extends _0x1bba21{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];['_refreshVisibilityDebounced'];static get['requires'](){return[si,at,pi];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x8222d){super(_0x8222d),_0x8222d['editing']['view']['addObserver'](mt),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x8222d['plugins']['get'](at),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1,this['_refreshVisibilityDebounced']=_0x492a64(()=>{this['editor']['plugins']['get']('Annotations')['refreshVisibility']();},0xfa,{'leading':!0x1});}['init'](){const _0x16b04a=this['editor']['plugins']['get'](pi);_0x16b04a['context']===this['editor']&&(_0x16b04a['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x48b380,_0x28dc71)=>{const _0x35a250=this['_balloon'];if(this['isAttached']&&_0x35a250['visibleView']){const _0x37d840=this['annotations']['getByView'](_0x35a250['visibleView']);_0x37d840&&this['_closeAnnotation'](_0x37d840),_0x28dc71();}}));}['afterInit'](){const _0x2c79aa=this['editor']['plugins']['get'](pi);_0x2c79aa['context']===this['editor']&&(_0x2c79aa['hasActive']()||_0x2c79aa['switchTo']('inline'));}['setActiveAnnotation'](_0x222372){_0x222372!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x222372&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x222372)&&this['_addAnnotationToBalloon'](_0x222372,!0x0),_0x222372['isActive']=!0x0),_0x222372||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x222372);}['attach'](_0x17275f){this['annotations']=_0x17275f;const _0x151777=this['editor']['plugins']['get'](pi),_0x131db1=this['_balloon'];if(this['isAttached'])throw new _0x54e163('inlineannotations-attach-already-attached',this);if(_0x151777['context']!==this['editor'])throw new _0x54e163('inlineannotations-not-allowed-with-context',this);const _0x2daa19=this['editor']['plugins']['get'](si);this['listenTo'](_0x2daa19,'refresh',()=>{const _0x1e4648=_0x2daa19['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x538291,_0x1dba9a;!this['_forceRefresh']&&(_0x538291=_0x1e4648,_0x1dba9a=this['_selectedAnnotations'],_0x538291['length']===_0x1dba9a['length']&&_0x538291['every'](_0x4c75a4=>_0x1dba9a['includes'](_0x4c75a4)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x1e4648),this['setActiveAnnotation'](_0x1e4648[0x0]||null));}),this['listenTo'](_0x2daa19,'blur',(_0x70be82,{isAnnotationTracked:_0x43e926})=>{this['activeAnnotation']&&_0x43e926(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x2daa19,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x3fd002,_0x8ed125,_0x450a1f)=>{_0x450a1f||this['setActiveAnnotation'](null);}),this['listenTo'](_0x17275f,'remove',(_0x47a8e3,_0x59a006)=>{this['_removeAnnotationFromBalloon'](_0x59a006),_0x59a006===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x131db1,'change:visibleView',(_0xe92ade,_0x17c387,_0xb549c3,_0x2d6ef9)=>{_0x2d6ef9&&this['stopListening'](_0x2d6ef9);const _0x92f220=_0x17275f['getByView'](_0xb549c3);_0xb549c3&&_0x92f220&&(this['listenTo'](_0xb549c3,'change:height',()=>{_0x131db1['updatePosition']();}),this['listenTo'](_0xb549c3,'Esc',()=>{this['_closeAnnotation'](_0x92f220),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x92f220&&this['setActiveAnnotation'](_0x92f220));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x131db1['visibleView']&&(_0x17275f['getByView'](_0x131db1['visibleView'])&&_0x131db1['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 _0x54e163('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x3ec876 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x3ec876);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x20d3bb){for(const _0x28fb62 of this['_selectedAnnotations'])_0x20d3bb['includes'](_0x28fb62)||this['_manuallyClosed']['delete'](_0x28fb62);for(const _0x55f52b of this['annotations'])_0x20d3bb['includes'](_0x55f52b)||this['_removeAnnotationFromBalloon'](_0x55f52b);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x5ba634 of _0x20d3bb)this['_addAnnotationToBalloon'](_0x5ba634);}this['_selectedAnnotations']=_0x20d3bb;}['_addAnnotationToBalloon'](_0x1b6324,_0x8b2d95=!0x1){this['_manuallyClosed']['has'](_0x1b6324)||(this['_addedAnnotations']['has'](_0x1b6324)||this['_balloon']['hasView'](_0x1b6324['view'])||(this['_addedAnnotations']['add'](_0x1b6324),this['_balloon']['add']({'stackId':_0x1b6324['view']['id'],'view':_0x1b6324['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x1b6324)}})),_0x8b2d95&&this['_balloon']['showStack'](_0x1b6324['view']['id']));}['_getBalloonTargetForAnnotation'](_0x52bc34){const _0x5ec69d=_0x52bc34['target'],_0x30df1d=this['editor']['editing']['view'],_0x16681d=_0x30df1d['document']['selection']['getFirstRange'](),_0x1c6c3c=_0x30df1d['domConverter']['viewRangeToDom'](_0x16681d);if(_0x1c6c3c['collapse'](!0x0),_0x5ec69d){if(_0x5ec69d instanceof _0x3d315a)return _0x5ec69d;let _0x874ca=[];for(const _0x29eb90 of _0x5ec69d)_0x874ca['push'](..._0x3d315a['getDomElementRects'](_0x29eb90));_0x874ca=function(_0x16eefc){const _0xe31148=[];let _0x281667=_0x16eefc[0x0];for(let _0x27bfd0=0x1;_0x27bfd0<_0x16eefc['length'];_0x27bfd0++)if(Ni(_0x281667,_0x16eefc[_0x27bfd0])){const _0x424343=_0x16eefc[_0x27bfd0]['width'];_0x281667['width']+=_0x424343,_0x281667['right']+=_0x424343;}else _0xe31148['push'](_0x281667),_0x281667=_0x16eefc[_0x27bfd0];return _0xe31148['push'](_0x281667),_0xe31148;}(_0x874ca);const _0x5b7c75=_0x1c6c3c['getBoundingClientRect']();return _0x874ca['find'](_0x1c658c=>_0x1c658c['top']<=_0x5b7c75['top']&&_0x1c658c['bottom']>=_0x5b7c75['bottom']&&_0x1c658c['left']<=_0x5b7c75['left']&&_0x1c658c['right']>=_0x5b7c75['right'])||_0x874ca[0x0];}return _0x52bc34['targetRect']||_0x1c6c3c;}['_removeAnnotationFromBalloon'](_0x501eee){this['_addedAnnotations']['has'](_0x501eee)&&this['_balloon']['hasView'](_0x501eee['view'])&&(this['_addedAnnotations']['delete'](_0x501eee),this['_balloon']['remove'](_0x501eee['view']));}['_closeAnnotation'](_0x270855){this['_manuallyClosed']['add'](_0x270855),this['_removeAnnotationFromBalloon'](_0x270855);}}function Ni(_0x4fac59,_0x342106){return _0x4fac59['top']===_0x342106['top']&&_0x4fac59['bottom']===_0x342106['bottom']&&_0x4fac59['right']===_0x342106['left'];}class ki extends _0x3c50cd{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x1e4bc3,_0x24d8af){super(_0x1e4bc3),this['set']('isEmpty',!_0x24d8af['length']),this['focusTracker']=new _0x52043f(),this['_annotationViews']=_0x24d8af,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x16c35f({'focusables':_0x24d8af,'focusTracker':this['focusTracker']}),this['listenTo'](_0x24d8af,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x24d8af,'remove',(_0x11391f,_0x45e332)=>{_0x45e332['isActive']&&this['focus'](),_0x24d8af['length']||(this['isEmpty']=!0x0);});const _0x56cd97=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':bt(_0x1e4bc3,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x24d8af},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x56cd97['if']('isEmpty','ck-hidden',_0x13f51d=>!_0x13f51d)]},'children':[{'text':bt(_0x1e4bc3,'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 _0x2d5dc4 of this['_annotationViews'])this['focusTracker']['add'](_0x2d5dc4['element']);this['_annotationViews']['on']('change',(_0x49687f,{added:_0x4a7ad0,removed:_0x37c4f7})=>{for(const _0x313943 of _0x4a7ad0)this['focusTracker']['add'](_0x313943['element']);for(const _0x215e0a of _0x37c4f7)this['focusTracker']['remove'](_0x215e0a['element']);});}}class Oi extends _0x705974{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[Qt,$t];}constructor(_0x5258d2){super(_0x5258d2),this['archivedThreads']=new _0x350ad3();}['init'](){const _0x3c9142=this['context'],_0x6db509=_0x3c9142['plugins']['get'](Qt),_0x242d6a=_0x3c9142['plugins']['get']($t);this['listenTo'](_0x6db509,'addCommentThread',(_0x247348,{threadId:_0x1b0586})=>{const _0x28b723=_0x6db509['getCommentThread'](_0x1b0586);_0x28b723['archivedAt']&&this['archivedThreads']['add'](_0x28b723,this['_calculatePosition'](_0x28b723['archivedAt'])),this['listenTo'](_0x28b723,'change:archivedAt',(_0x255e25,_0x57dbbb,_0x3c08d7)=>{_0x3c08d7?this['archivedThreads']['has'](_0x28b723)||this['archivedThreads']['add'](_0x28b723,this['_calculatePosition'](_0x28b723['archivedAt'])):this['archivedThreads']['has'](_0x28b723)&&this['archivedThreads']['remove'](_0x28b723);});}),this['listenTo'](_0x6db509,'removeCommentThread',(_0x56759c,{threadId:_0x164392})=>{const _0x77c011=_0x6db509['getCommentThread'](_0x164392);this['stopListening'](_0x77c011),this['archivedThreads']['has'](_0x77c011)&&this['archivedThreads']['remove'](_0x77c011);},{'priority':'highest'}),this['listenTo'](_0x242d6a['collection'],'focus',(_0x3598b2,_0x50d396)=>{_0x50d396['isVisible']||(_0x50d396['isActive']=!0x0,_0x242d6a['activate'](_0x50d396));});}['_calculatePosition'](_0x13a602){const _0x3ac35e=[...this['archivedThreads']]['findIndex'](_0x4e7229=>_0x4e7229['archivedAt']<_0x13a602);return _0x3ac35e>-0x1?_0x3ac35e:this['archivedThreads']['length'];}}class Mi extends _0x1bba21{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[Oi,ct];}constructor(_0x434507){super(_0x434507),this['annotationViews']=new tt(),this['_pendingThreads']=[];}['init'](){const _0x4e108e=this['editor'],_0x24beba=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x4e108e['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x260967,!0x0)),_0x4e108e['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x5d8720=this['_createCommentsArchiveButton'](ot);return _0x5d8720['set']({'role':'menuitemcheckbox'}),_0x5d8720;});const _0x4e773a=_0x4e108e['plugins']['get'](Oi),_0x1d0d7b=_0x4e108e['plugins']['get']('Annotations'),_0x2fc390=_0x4e108e['plugins']['get']('CommentsRepository');_0x4e773a['archivedThreads']['forEach'](_0x405594=>{this['_handleNewThread'](_0x405594);}),this['listenTo'](_0x4e773a['archivedThreads'],'add',(_0x3fe9e8,_0x40ec63)=>{this['_handleNewThread'](_0x40ec63);}),this['listenTo'](_0x1d0d7b['collection'],'add',(_0x597614,_0x539524)=>{const _0xda469d=this['_pendingThreads']['find'](_0x1c3bfa=>{const _0x3bdb91=_0x2fc390['_threadToController']['get'](_0x1c3bfa);return _0x3bdb91&&_0x539524['innerView']===_0x3bdb91['view'];});if(_0xda469d){const _0x4cde24=this['_calculatePosition'](_0xda469d['archivedAt']);this['_addAnnotationToArchive'](_0x539524,_0x4cde24),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0xda469d),0x1);}}),this['listenTo'](_0x4e773a['archivedThreads'],'remove',(_0x37b413,_0xf2fbed)=>{const _0x431028=_0x4e108e['config']['get']('collaboration.channelId');if(!_0x431028||_0xf2fbed['channelId']===_0x431028){if(this['_pendingThreads']['includes'](_0xf2fbed))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0xf2fbed),0x1);else{const _0x365c8a=_0x2fc390['_threadToController']['get'](_0xf2fbed),_0x535f31=_0x1d0d7b['getByInnerView'](_0x365c8a['view']);this['annotationViews']['remove'](_0x535f31['view']),this['stopListening'](_0x535f31),this['stopListening'](_0x535f31['focusableElements']);}}}),this['listenTo'](_0x1d0d7b['collection'],'add',(_0x3c17c0,_0x4727b9)=>{this['listenTo'](_0x4727b9,'escape',_0x24beba);}),this['listenTo'](_0x1d0d7b['collection'],'remove',(_0x42992a,_0x54f4b8)=>{this['stopListening'](_0x54f4b8,'escape',_0x24beba);});}['_addAnnotationToArchive'](_0x5a2680,_0x1e5b45){this['listenTo'](_0x5a2680,'set:isVisible',_0x5500fa=>{_0x5500fa['return']=!0x1,_0x5500fa['stop']();}),this['annotationViews']['add'](_0x5a2680['view'],_0x1e5b45);}['_handleNewThread'](_0x4394d1){const _0x148c63=this['editor']['plugins']['get']('CommentsRepository'),_0x2d747a=this['editor']['plugins']['get']('Annotations'),_0x1729ec=this['editor']['config']['get']('collaboration.channelId');if(!_0x1729ec||_0x4394d1['channelId']===_0x1729ec){const _0x14acd7=_0x148c63['_threadToController']['get'](_0x4394d1);if(!_0x14acd7)return void this['_pendingThreads']['push'](_0x4394d1);const _0x409e52=this['_calculatePosition'](_0x4394d1['archivedAt']),_0xac7966=_0x2d747a['getByInnerView'](_0x14acd7['view']);_0xac7966['isVisible']&&_0x2d747a['_visibleAnnotations']['remove'](_0xac7966),this['_addAnnotationToArchive'](_0xac7966,_0x409e52);}}['_calculatePosition'](_0x4ff84b){const _0x2177d0=this['editor']['config']['get']('collaboration.channelId'),_0x2ab48c=[...this['editor']['plugins']['get'](Oi)['archivedThreads']]['filter'](_0x5f4ccc=>_0x5f4ccc['channelId']===_0x2177d0)['findIndex'](_0x1350b4=>_0x1350b4['archivedAt']<_0x4ff84b);return _0x2ab48c<0x0||_0x2ab48c>this['annotationViews']['length']?this['annotationViews']['length']:_0x2ab48c-0x1;}['_toggleDialog'](){const _0xe4f0eb=this['editor'],_0x1a17be=_0xe4f0eb['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new ki(_0xe4f0eb['locale'],this['annotationViews'])),'commentsArchive'===_0x1a17be['id']?_0x1a17be['hide']():_0x1a17be['show']({'id':'commentsArchive','title':bt(_0xe4f0eb['locale'],'COMMENTS_ARCHIVE'),'icon':_0x232163,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':dt['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x44537c,_0x4e87f2=!0x1){const _0x1f5a9c=this['editor']['locale'],_0x446955=this['editor']['plugins']['get']('Dialog'),_0x2bf79c=new _0x44537c(_0x1f5a9c);return _0x2bf79c['bind']('isEnabled')['to'](this,'isEnabled'),_0x2bf79c['bind']('isOn')['to'](_0x446955,'id',_0x25b401=>'commentsArchive'===_0x25b401),_0x2bf79c['set']({'label':bt(_0x1f5a9c,'COMMENTS_ARCHIVE'),'icon':_0x232163,'isToggleable':!0x0}),_0x4e87f2&&(_0x2bf79c['tooltip']=!0x0),this['listenTo'](_0x2bf79c,'execute',()=>this['_toggleDialog']()),_0x2bf79c;}['_hideDialogOnAnnotationEscape']=_0x3e1f50=>{const _0x14b927=_0x3e1f50['source'];if(!this['annotationViews']['has'](_0x14b927['view']))return;const _0x488e65=this['editor']['plugins']['get']('Dialog');_0x488e65['isOpen']&&'commentsArchive'===_0x488e65['id']&&(_0x488e65['hide'](),_0x3e1f50['stop']());};}class Ri extends _0x1bba21{static get['requires'](){return[Qt,ci,mi,Oi,Mi,fi,Ci,bi,Ei];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{ei as AddCommentThreadCommand,Yt as Annotation,jt as AnnotationCollection,Ii as AnnotationCounterButtonView,Kt as AnnotationView,$t as Annotations,Ai as AnnotationsSidebarItemView,_i as AnnotationsSidebarView,pi as AnnotationsUIs,Vt as BaseCommentThreadView,Ft as BaseCommentView,ti as Comment,Zt as CommentThread,It as CommentThreadController,Rt as CommentThreadInputView,Bt as CommentThreadView,Ut as CommentView,Ri as Comments,Oi as CommentsArchive,Mi as CommentsArchiveUI,ci as CommentsEditing,St as CommentsListView,fi as CommentsOnly,Qt as CommentsRepository,mi as CommentsUI,si as EditorAnnotations,Ei as InlineAnnotations,bi as NarrowSidebar,Ti as Sidebar,Ci as WideSidebar,Xt as bindAnnotationCollections};
23
+ import{Editor as _0x57726a,ContextPlugin as _0x4d5b57,PendingActions as _0x18ca69,Command as _0x5583eb,Plugin as _0x801ec5,Context as _0x258154}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x42988b,uid as _0x31c322,KeystrokeHandler as _0x2ed91d,FocusTracker as _0x420295,diff as _0x1bd15e,Collection as _0x33b63a,Rect as _0x36753e,CKEditorError as _0x3bea1e,first as _0x459cc4,priorities as _0x22038f,scrollViewportToShowTarget as _0x27ab9e,getEnvKeystrokeText as _0x222009,toUnit as _0x1228ab,DomEmitterMixin as _0x540581,keyCodes as _0x1032dc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x4a96c9,AriaDescriptionView as _0x524c95,setupThreadKeyboardNavigation as _0x2f67fc,ConfirmMixin as _0x17b422,LateFocusButtonView as _0x33523d,trimHtml as _0x554b81,LateFocusDropdownButtonView as _0x59dc1b,FOCUS_ANNOTATION_KEYSTROKE as _0x27a185,Users as _0x2d9be6,getDateTimeFormatter as _0x512d77,hashObject as _0x4e69f,getAllMarkersDomElementsSorted as _0xc01965,surroundingMarkersDetector as _0x593340}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{throttle as _0x509b0c,cloneDeep as _0x46f210,set as _0x3442a5,unset as _0x3867e8,isEqual as _0x45517a,debounce as _0x5c43ed}from'es-toolkit/compat';import{IconUndo as _0x133b59,IconCheck as _0x405b5c,IconPencil as _0x25143b,IconRemoveComment as _0x1f4fda,IconThreeVerticalDots as _0x52173e,IconAddComment as _0x2a3eab,IconCommentsArchive as _0x3d6f82}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as _0x11e07f,InlineEditableUIView as _0x48cc3e,EditorUI as _0x5f393a,View as _0x31aaeb,FocusCycler as _0x24a5b3,ButtonView as _0x407247,ViewCollection as tt,createDropdown as it,ListView as et,focusChildOnDropdownOpen as st,ListItemView as nt,MenuBarMenuListItemButtonView as ot,BodyCollection as rt,BalloonPanelView as ht,ContextualBalloon as at,Dialog as ct,DialogViewPosition as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as lt,enableViewPlaceholder as ut,MouseObserver as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as ft,ClipboardMarkersUtils as pt,ClipboardPipeline as wt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as _t,ShiftEnter as gt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as At}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Tt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as vt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as yt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{toWidget as Ct}from'@ckeditor/ckeditor5-widget/dist/index.js';class It extends/* #__PURE__ -- @preserve */
24
+ _0x42988b(){['model'];['view'];constructor(_0x5449af,_0x2d2091){super(),this['model']=_0x5449af,this['model']['_isAttached']=!0x0,this['view']=_0x2d2091,this['listenTo'](_0x2d2091,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x2d2091,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x2d2091,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x2d2091,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x2d2091,'addComment',(_0x579bfc,_0x3fa128)=>this['addComment'](_0x3fa128)),this['listenTo'](_0x2d2091,'updateComment',(_0x23f409,_0x37e55e,_0x56a24c)=>this['updateComment'](_0x37e55e,_0x56a24c)),this['listenTo'](_0x2d2091,'removeComment',(_0x55e7c4,_0x43e116)=>this['removeComment'](_0x43e116));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x3e290a){this['model']['addComment']({'content':_0x3e290a,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x3df6af,_0x4293bd){this['model']['getComment'](_0x3df6af)['update']({'content':_0x4293bd});}['removeComment'](_0x1a7b3f){this['model']['getComment'](_0x1a7b3f)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function bt(_0xd083ab,_0x7e04f1,_0xe97276){const t=_0xd083ab['t'];switch(_0x7e04f1){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'},_0xe97276);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'},_0xe97276);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'},_0xe97276);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'},_0xe97276);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0xe97276);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'},_0xe97276);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'},_0xe97276);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'},_0xe97276);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 Et extends _0x11e07f{['main'];['editable'];constructor(_0x279ae3,_0x6c7bc1){super(_0x279ae3);const _0x538804=_0x31c322();this['main']=this['createCollection'](),this['editable']=new _0x48cc3e(_0x279ae3,_0x6c7bc1,void 0x0,{'label':()=>bt(_0x279ae3,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x279ae3['uiLanguageDirection'],'lang':_0x279ae3['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x538804},'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 Nt extends _0x5f393a{['view'];constructor(_0x4432f7){super(_0x4432f7),this['view']=new Et(_0x4432f7['locale'],_0x4432f7['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x1b0600=this['editor']['editing']['view'],_0xc5cd32=this['view']['editable'],_0x37506b=_0x1b0600['document']['getRoot']();_0xc5cd32['name']=_0x37506b['rootName'],this['view']['render']();const _0x88cc99=_0xc5cd32['element'];this['setEditableElement'](_0xc5cd32['name'],_0x88cc99),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1b0600['attachDomRoot'](_0x88cc99),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const kt=[ft,_t,gt,At,Tt,vt,yt];class Ot extends/* #__PURE__ -- @preserve */
25
+ _0x42988b(_0x57726a){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>kt)());constructor(_0x59a07c={}){function _0x135a44(_0x39e83e){return _0x39e83e['map'](_0x18535=>String['fromCharCode'](_0x18535))['join']('');}(_0x59a07c=Object['assign']({},_0x59a07c))['plugins']||(_0x59a07c['plugins']=Ot['defaultPlugins']),super(_0x59a07c),this['ui']=new Nt(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x135a44([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x135a44([0x76,0x69,0x65,0x77])][_0x135a44([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x135a44([0x61,0x75,0x74,0x6f]),this[_0x135a44([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x135a44([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x135a44([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x135a44([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x135a44([0x6f,0x6b])});}['create'](){const _0x5d3353=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x5d3353))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x4cc3fb=>{const _0x50c9d6=this['model']['document']['getRoot'](),_0x297759=_0x50c9d6&&_0x50c9d6['getChild'](_0x50c9d6['childCount']-0x1);_0x4cc3fb['setSelection'](_0x297759,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x30c9d4=this['editing']['view'],_0x5cc916=_0x30c9d4['document']['getRoot'](),_0x20c645=_0x5cc916['getChild'](0x0);_0x5cc916['childCount']>0x1||!_0x20c645||'p'!=_0x20c645['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(lt(_0x30c9d4,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x20c645['placeholder']=this['placeholder']),ut({'view':_0x30c9d4,'element':_0x20c645,'keepOnFocus':!0x0}),this['placeholderElement']=_0x20c645);}}class Mt extends _0x31aaeb{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x22736f,_0x505a46={}){super(_0x22736f),this['editor']=null,this['_editorConfig']=_0x505a46,this['set']('value',_0x505a46['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',bt(_0x22736f,'Reply...')),this['set']('submitLabel',bt(_0x22736f,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new _0x2ed91d(),this['focusTracker']=new _0x420295(),this['focusCycler']=new _0x24a5b3({'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',(_0x5f4525,_0x71bab8)=>{this['cancelButtonView']['fire']('execute'),_0x71bab8();}),this['keystrokes']['set']('Ctrl+Enter',(_0x2d2007,_0x108b0c)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x108b0c());}),this['on']('submit',(_0x5b7269,_0x228771)=>{_0x228771['length']>0xfde8?(alert(bt(_0x22736f,'TOO_LONG_COMMENT_ALERT',[_0x228771['length'],0xfde8])),_0x5b7269['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Ot(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x55e397=this['editor'];this['element']['insertBefore'](_0x55e397['ui']['element'],this['element']['firstChild']),_0x55e397['model']['document']['on']('change',()=>this['value']=_0x55e397['getData']()),_0x55e397['bind']('placeholder')['to'](this),this['focusables']['add'](_0x55e397['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x86f835){-0x1===_0x86f835?(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:_0x417889}=this,_0x5095d6=new _0x407247(_0x417889);return _0x5095d6['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x5095d6['withText']=!0x0,_0x5095d6['bind']('label')['to'](this,'submitLabel'),_0x5095d6['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x5095d6['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x2c0029,_0x250259)=>!_0x250259&&!!_0x2c0029['trim']()),_0x5095d6;}['_createCancelButton'](){const {locale:_0x37d42b}=this,_0x249444=new _0x407247(_0x37d42b);return _0x249444['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x249444['label']=bt(_0x37d42b,'Cancel'),_0x249444['withText']=!0x0,_0x249444['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x249444;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x15e11d=>{this['focusTracker']['add'](_0x15e11d['element']);}),this['focusables']['on']('change',(_0x2a7397,_0x25e3d8)=>{for(const _0x157eb9 of Array['from'](_0x25e3d8['added'])['reverse']())this['focusTracker']['add'](_0x157eb9['element']);});}}class Rt extends _0x31aaeb{constructor(_0x6c5739,_0x115bb2,_0x175c45){super(_0x6c5739),this['commentInputView']=new Mt(_0x6c5739,_0x175c45),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0xf73a6d,_0x2342c1)=>_0xf73a6d||!!_0x2342c1),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 _0x4a96c9(_0x6c5739,_0x115bb2),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'](_0x233ba8){this['commentInputView']['focus'](_0x233ba8);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x2db33f,_0x4b761e)=>{const {submitButtonView:_0x2f0bd6,cancelButtonView:_0x28ac3a,editor:_0x39914f}=this['commentInputView'];[_0x2f0bd6['element'],_0x28ac3a['element'],_0x39914f?_0x39914f['editing']['view']['getDomRoot']():null]['filter'](_0x130368=>_0x130368)['some'](_0x1cf0cc=>_0x1cf0cc['contains'](_0x4b761e['target']))||(this['focus'](),_0x4b761e['preventDefault']());});}}class xt extends _0x31aaeb{constructor(_0x15da0f){super(_0x15da0f);const _0x3a9684=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x3a9684['to']('count',_0x3ed4c5=>bt(_0x15da0f,'NUMBER_OF_COMMENTS',_0x3ed4c5))}]});}}class St extends _0x31aaeb{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x10a160,_0x2acb16,_0x4aeaa6){super(_0x10a160);const _0x20b84a=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x2acb16['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x2acb16,this['_config']=_0x4aeaa6,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x420295(),this['keystrokes']=new _0x2ed91d(),this['focusCycler']=new _0x24a5b3({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x438432=>this['commentViews']['map'](_0x3f70f6=>_0x3f70f6['element'])['includes'](_0x438432['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new xt(_0x10a160),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x21bc31=>_0x21bc31-this['_config']['maxCommentsWhenCollapsed']);for(const _0x3d7cec of _0x2acb16['comments'])this['_handleNewCommentModel'](_0x3d7cec);this['_handleInfoComment'](),this['listenTo'](_0x2acb16['comments'],'add',(_0x1fa38f,_0x46bb5a)=>{const _0x46a8c2=this['_calculatePosition'](_0x46bb5a);this['length']++,this['_handleNewCommentModel'](_0x46bb5a,_0x46a8c2),this['refreshVisibleViews']();}),this['listenTo'](_0x2acb16['comments'],'remove',(_0x2dce27,_0x4f4b88)=>{this['length']--,this['_handleRemoveCommentModel'](_0x4f4b88),this['refreshVisibleViews']();}),this['listenTo'](_0x2acb16,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x2acb16,'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',_0x20b84a['if']('length','ck-hidden',_0x36933c=>!_0x36933c)],'aria-label':bt(_0x10a160,'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'](_0x5d3902){-0x1===_0x5d3902?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x20de50 of this['commentViews'])_0x20de50['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x4e7bfa,_0x1ddef5){const _0x47d580=new this['_config']['CommentView'](this['locale'],_0x4e7bfa,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x47d580['viewUid']=_0x4e7bfa['id'],_0x47d580['delegate']('removeComment')['to'](this),_0x47d580['delegate']('updateComment')['to'](this),_0x47d580['delegate']('resolveCommentThread')['to'](this),_0x47d580['delegate']('editorReady')['to'](this),_0x47d580['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x47d580,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x47d580,_0x1ddef5);}['_calculatePosition'](_0x53c9ad){const _0x4974f1=this['_model']['_findOptimalIndex'](_0x53c9ad);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x53c9ad['authoredAt']?_0x4974f1-0x1:_0x4974f1:_0x4974f1-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x552e2d={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':bt(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x552e2d,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x552e2d));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x211d34){const _0x1bf487=this['commentViews']['remove'](_0x211d34['id']);this['stopListening'](_0x1bf487),_0x1bf487['isEditMode']&&this['_updateHasDirtyComment'](),_0x1bf487['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x14442a=>_0x14442a['isEditMode']);}['_rearrangeCollapse'](){const _0x3d90a7=function(_0x591a41){const _0xaa60ee=new _0x33b63a();for(const _0xf62c0d of _0x591a41)_0xaa60ee['add'](_0xf62c0d);return _0xaa60ee;}(this['commentViews']),_0x135813=this['_collapsedCommentsView']['count'];for(let _0x4f8512=0x1;_0x4f8512<=_0x135813;_0x4f8512++)_0x3d90a7['remove'](0x1);for(const _0x4967ab of _0x3d90a7)_0x4967ab['collapse']();_0x135813>0x0&&_0x3d90a7['add'](this['_collapsedCommentsView'],0x1),Pt(_0x1bd15e(Array['from'](this['visibleViews']),Array['from'](_0x3d90a7)),this['visibleViews'],_0x3d90a7);}['_rearrangeExpand'](){Pt(_0x1bd15e(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x5f3d7a of this['visibleViews'])_0x5f3d7a['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x2d691f=>{this['focusTracker']['add'](_0x2d691f['element']),this['keystrokes']['listenTo'](_0x2d691f['element']);}),this['commentViews']['on']('change',(_0x8ba832,_0x5acde8)=>{for(const _0x41ed99 of _0x5acde8['removed'])this['focusTracker']['remove'](_0x41ed99['element']),this['keystrokes']['stopListening'](_0x41ed99['element']);for(const _0x4e6ae3 of Array['from'](_0x5acde8['added'])['reverse']())this['focusTracker']['add'](_0x4e6ae3['element']),this['keystrokes']['listenTo'](_0x4e6ae3['element']);});}}function Pt(_0x189d6f,_0x5447e6,_0x4429c7){let _0x4ccff0=0x0;for(const _0x221e59 of _0x189d6f)switch(_0x221e59){case'insert':_0x5447e6['add'](_0x4429c7['get'](_0x4ccff0),_0x4ccff0),_0x4ccff0++;break;case'delete':_0x5447e6['remove'](_0x4ccff0);break;case'equal':_0x4ccff0++;}}class Lt extends _0x31aaeb{constructor(_0x160120){super(_0x160120);const _0x5e8c66=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x5e8c66['to']('contextValue',_0x5e1105=>bt(_0x160120,'THREAD_CONTEXT_LABEL',_0x5e1105)),'tabindex':-0x1},'children':[{'text':_0x5e8c66['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Dt extends _0x31aaeb{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x92b5c0,_0xac9431){super(_0x92b5c0);const _0x26db47=this['bindTemplate'];this['_model']=_0xac9431,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x420295(),this['keystrokes']=new _0x2ed91d(),this['focusCycler']=new _0x24a5b3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x3c8cc2=>!!_0x3c8cc2),this['bind']('contextValue')['to'](this['_model'],'context',_0x1fc3a4=>_0x1fc3a4&&_0x1fc3a4['value']?this['_trimContextValue'](_0x1fc3a4['value']):bt(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',_0x26db47['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 _0x38a7be=new _0x407247(this['locale']);return _0x38a7be['label']=bt(this['locale'],'Reopen'),_0x38a7be['tooltip']=bt(this['locale'],'Reopen'),_0x38a7be['icon']=_0x133b59,_0x38a7be['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x23e7ef=>!_0x23e7ef),_0x38a7be['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3bf501,_0xa07cbb)=>_0x3bf501&&_0xa07cbb),_0x38a7be['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x38a7be;}['_trimContextValue'](_0x361ef2){if(_0x361ef2['length']<0x96)return _0x361ef2;const _0x4f5956=_0x361ef2['lastIndexOf']('\x20',0x93);return _0x361ef2['substring'](0x0,_0x4f5956>-0x1?_0x4f5956:0x93)+'...';}['_attachContextActions'](){const _0x17ff24=this['element']['querySelector']('.ck-context'),_0x3d4307=_0x17ff24['querySelector']('.ck-context__value');this['listenTo'](_0x17ff24,'mouseenter',()=>{_0x3d4307['offsetWidth']<_0x3d4307['scrollWidth']&&_0x17ff24['classList']['add']('overlay');}),this['listenTo'](_0x17ff24,'mouseleave',()=>{_0x17ff24['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x570877 of this['focusables'])this['focusTracker']['add'](_0x570877['element']),this['keystrokes']['listenTo'](_0x570877['element']);}['_createContextView'](){const _0x2ff85e=new Lt(this['locale']);return _0x2ff85e['bind']('contextValue')['to'](this),_0x2ff85e;}}class Vt extends _0x31aaeb{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x391b6a,_0xca1d80,_0x3bfbc5,_0x3044ef){super(_0x391b6a),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0xca1d80,this['_localUser']=_0x3bfbc5,this['_config']=_0x3044ef,this['commentThreadHeaderView']=new Dt(_0x391b6a,_0xca1d80),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new _0x524c95(_0x391b6a,bt(_0x391b6a,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new St(_0x391b6a,_0xca1d80,Object['assign']({'CommentView':this['_config']['CommentView']},_0x3044ef)),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',(_0x2c4383,_0x4b9e59)=>_0x2c4383||!!_0x4b9e59),this['bind']('isUnlinked')['to'](_0xca1d80,'unlinkedAt',_0x388d15=>!!_0x388d15),this['bind']('ariaLabel')['to'](this,'length',_0x30d4f4=>{const _0x4c9d9f=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return bt(this['locale'],'COMMENT_THREAD_LABEL',[_0x30d4f4,_0x4c9d9f]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x420295(),this['keystrokes']=new _0x2ed91d(),this['focusCycler']=new _0x24a5b3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2fd8e3=>_0x2fd8e3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x2f67fc(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x1260be=new Rt(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2be422=_0x1260be['commentInputView'];return _0x1260be['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x2be422,'value',(_0x596946,_0x21a1dd,_0x37bd41,_0x433680,_0x5bcf26)=>!!_0x5bcf26||!!_0x433680&&_0x37bd41&&!_0x21a1dd||_0x596946&&_0x37bd41&&!_0x21a1dd),_0x2be422['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x549db2,_0x53ca29,_0x2f3caa)=>{let _0x2c960a;return _0x2c960a=_0x2f3caa&&_0x53ca29?'Reply\x20to\x20reopen\x20discussion...':_0x549db2?'Reply...':'Write\x20a\x20comment...',bt(this['locale'],_0x2c960a);}),_0x2be422['bind']('submitLabel')['to'](this,'length',_0x171ca9=>bt(this['locale'],_0x171ca9?'Reply':'Comment')),_0x2be422['on']('submit',(_0x2c741b,_0xe6c0af)=>{this['fire']('addComment',_0xe6c0af),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x2be422['on']('cancel',()=>{this['focus']();}),_0x2be422['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x2be422['on']('cancel',_0xb68418=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0xb68418['stop']());}),this['on']('change:isActive',(_0x20b724,_0x1efdff,_0xbb969b)=>{_0xbb969b||this['length']||_0x2be422['value']||this['fire']('removeCommentThread');}),_0x1260be;}}class Bt extends/* #__PURE__ -- @preserve */
27
+ _0x17b422(Vt){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x4fc95b,_0x17f18a,_0x2349e2,_0x34b040){super(_0x4fc95b,_0x17f18a,_0x2349e2,_0x34b040),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x4fc95b,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x45798a,_0x23d04c,_0x5a3419)=>{_0x5a3419||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x492c68,_0x20c3fb,_0x458b99)=>{_0x458b99&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x5509ea=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x5509ea['if']('isActive','ck-thread--active'),_0x5509ea['if']('isUnlinked','ck-thread--unlinked'),_0x5509ea['to']('actionIndicator',_0x5db6fc=>_0x5db6fc?'ck-thread--'+_0x5db6fc:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x5509ea['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 _0x306f73 of this['commentsListView']['commentViews'])_0x306f73['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x25597a}=this,_0x2c327f=this['commentsListView']['commentViews']['get'](0x0);_0x2c327f===this['_boundFirstCommentView']||_0x2c327f['isSystemComment']||(this['_boundFirstCommentView']=_0x2c327f,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x2c327f,'actionIndicator',_0x3a487d=>'remove'===_0x3a487d?'remove':null),_0x2c327f['placeholder']=bt(_0x25597a,'Write\x20a\x20comment...'),_0x2c327f['removeButton']['on']('execute',_0x922018=>{_0x922018['stop'](),this['showConfirm'](bt(_0x25597a,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x2c327f['focus']();}),_0x2c327f['actionBar']['add'](this['resolveButton'],0x0),_0x2c327f['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x116388=new _0x33523d(this['locale']);return _0x116388['label']=bt(this['locale'],'Resolve'),_0x116388['tooltip']=bt(this['locale'],'Resolve'),_0x116388['icon']=_0x405b5c,_0x116388['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x116388['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2327f2=>!_0x2327f2),_0x116388['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x289d5a,_0x47229d)=>_0x289d5a&&!_0x47229d),_0x116388['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x116388;}['_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 Ht extends _0x31aaeb{constructor(_0x25b7e4){super(_0x25b7e4),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x4b4cb1,_0x2a6ba0,_0xed0960)=>{this['element']['innerHTML']=_0xed0960;}),this['element']['innerHTML']=this['content'];}}class Ft extends _0x31aaeb{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4f2a20,_0x39f45d,_0x114a13){super(_0x4f2a20),this['_model']=_0x39f45d,this['_config']=_0x114a13,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x39f45d,'content',_0x39f45d,'authoredAt',(_0x57add8,_0x37b625)=>bt(_0x4f2a20,'COMMENT_ARIA_LABEL',[_0x39f45d['author']['name'],_0x114a13['formatDateTime'](_0x37b625),new DOMParser()['parseFromString'](_0x57add8,'text/html')['body']['textContent'],_0x39f45d['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new _0x524c95(_0x4f2a20,bt(_0x4f2a20,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new tt(),this['focusTracker']=new _0x420295(),this['keystrokes']=new _0x2ed91d(),this['focusCycler']=new _0x24a5b3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5d2a2a=>_0x5d2a2a['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']?bt(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):bt(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?bt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):bt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x6c8563=new Ht(this['locale']);return _0x6c8563['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x18180f,_0x282bb0)=>_0x282bb0?_0x554b81(_0x18180f,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x18180f),_0x6c8563;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x54c751=new Mt(this['locale'],this['_config']['editorConfig']);return _0x54c751['value']=this['_model']['content'],_0x54c751['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x54c751['submitLabel']=bt(this['locale'],'Save'),_0x54c751['on']('submit',(_0x444112,_0x1bf938)=>{this['fire']('updateComment',this['_model']['id'],_0x1bf938),this['switchToDisplayMode'](),this['focus']();}),_0x54c751['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x54c751['once']('editorReady',()=>{_0x54c751['focus']();}),_0x54c751['createEditor'](),_0x54c751['delegate']('editorReady')['to'](this),_0x54c751['delegate']('editorDestroyed')['to'](this),_0x54c751;}['_setupKeyboardNavigation'](){const _0x1a4840=this['element'];this['keystrokes']['listenTo'](_0x1a4840);for(const _0x325b90 of this['focusables'])this['focusTracker']['add'](_0x325b90['element']),this['keystrokes']['listenTo'](_0x325b90['element']);this['focusables']['on']('change',(_0x41f512,_0x45c5b8)=>{for(const _0x311f80 of _0x45c5b8['removed'])this['focusTracker']['remove'](_0x311f80['element']),this['keystrokes']['stopListening'](_0x311f80['element']);for(const _0x115abd of _0x45c5b8['added'])this['focusTracker']['add'](_0x115abd['element']),this['keystrokes']['listenTo'](_0x115abd['element']);}),this['keystrokes']['set']('enter',(_0x41c99e,_0x2f783f)=>{_0x1a4840===_0x41c99e['target']&&(this['focusCycler']['focusFirst'](),_0x2f783f());}),this['keystrokes']['set']('esc',(_0x489c68,_0x63ee9)=>{_0x1a4840!==_0x489c68['target']&&(this['focus'](),_0x63ee9());});}}class Ut extends/* #__PURE__ -- @preserve */
28
+ _0x17b422(Ft){['actionBar'];['userView'];constructor(_0x4c113c,_0xfbd0b5,_0x407129){super(_0x4c113c,_0xfbd0b5,_0x407129),this['set']('actionIndicator',null),this['set']('placeholder',bt(_0x4c113c,'Reply...')),this['bind']('authoredAt')['to'](_0xfbd0b5),this['bind']('resolvedAt')['to'](_0xfbd0b5),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 _0x4a96c9(_0x4c113c,_0xfbd0b5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0xfbd0b5,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2e9b02=this['bindTemplate'],_0xdaecb8=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x2e9b02['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2e9b02['to']('authoredAt',_0x925735=>this['_config']['formatDateTime'](_0x925735))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x2e9b02['if']('isEditMode','ck-comment__actions--hidden'),_0x2e9b02['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']&&_0xdaecb8['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x2e9b02['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x2e9b02['if']('isEditMode','ck-comment--edit'),_0x2e9b02['if']('isSystemComment','ck-comment--info'),_0x2e9b02['to']('actionIndicator',_0x3e1fc2=>_0x3e1fc2?'ck-comment--'+_0x3e1fc2:'')],'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':_0xdaecb8}]}]};}['_createEditButton'](){const _0x36a74a=new _0x407247(this['locale']);return _0x36a74a['label']=bt(this['locale'],'Edit'),_0x36a74a['icon']=_0x25143b,_0x36a74a['withText']=!0x0,_0x36a74a['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x36a74a['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x5c6173=>!_0x5c6173),_0x36a74a['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x36a74a['on']('execute',()=>this['switchToEditMode']()),_0x36a74a;}['_createRemoveButton'](){const _0x44c3cc=new _0x407247(this['locale']);return _0x44c3cc['label']=bt(this['locale'],'Remove'),_0x44c3cc['icon']=_0x1f4fda,_0x44c3cc['withText']=!0x0,_0x44c3cc['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x44c3cc['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x16e5db=>!_0x16e5db),_0x44c3cc['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x44c3cc['on']('execute',()=>{this['showConfirm'](bt(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x44c3cc;}['_createDropdown'](){const _0x1fa936=it(this['locale'],_0x59dc1b),_0x388aae=_0x1fa936['panelView']['children'],_0x330fcb=new et(this['locale']),_0x764e81=_0x1fa936['bindTemplate'];st(_0x1fa936,()=>this['items']['find'](_0x23e39d=>_0x23e39d['isVisible'])),_0x1fa936['extendTemplate']({'attributes':{'class':[_0x764e81['if']('isVisible','ck-hidden',_0xcf930f=>!_0xcf930f)]}});const _0x25cff3=(_0x1e6403,_0x24cd2d=-0x1)=>{const _0x3affbe=new nt(this['locale']);_0x3affbe['children']['add'](_0x1e6403);const _0x32e082=_0x24cd2d>-0x1?_0x24cd2d:_0x330fcb['items']['length'];_0x330fcb['items']['add'](_0x3affbe,_0x32e082);const _0x3f81c9=Array['from'](this['items']);_0x1fa936['unbind']('isEnabled','isVisible'),_0x1fa936['bind']('isEnabled')['toMany'](_0x3f81c9,'isEnabled',(..._0xf2dfa6)=>_0xf2dfa6['some'](_0x505ea6=>_0x505ea6)),_0x1fa936['bind']('isVisible')['toMany'](_0x3f81c9,'isVisible',(..._0x1501db)=>_0x1501db['some'](_0x13bb7a=>_0x13bb7a));};_0x1fa936['panelPosition']='sw',_0x1fa936['buttonView']['set']({'label':bt(this['locale'],'Show\x20more\x20items'),'icon':_0x52173e});for(const _0x18b731 of this['items'])_0x25cff3(_0x18b731);return _0x388aae['add'](_0x330fcb),_0x1fa936['listenTo'](this['items'],'add',(_0x158eab,_0x36d713,_0x33fb86)=>{_0x25cff3(_0x36d713,_0x33fb86);}),_0x1fa936['listenTo'](this['items'],'remove',(_0x2daaf5,_0x2eaee8,_0x95f936)=>{_0x330fcb['items']['remove'](_0x95f936);}),_0x1fa936;}['_attachActions'](_0x4b3511,_0x40794a){const _0x335cd9=_0x4b3511&&_0x4b3511['element'];_0x335cd9&&(this['listenTo'](_0x335cd9,'mouseenter',()=>this['actionIndicator']=_0x40794a),this['listenTo'](_0x335cd9,'focus',()=>this['actionIndicator']=_0x40794a),this['listenTo'](_0x335cd9,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x335cd9,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x3dd510=super['_createCommentInputView']();return _0x3dd510['bind']('placeholder')['to'](this),_0x3dd510;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Wt(_0x3664df){const _0x58adfa=_0x509b0c(_0x3664df,0x1e),_0x40cb73=new MutationObserver(_0x43351f=>{for(const _0x4c18ba of _0x43351f)('attributes'==_0x4c18ba['type']&&'class'==_0x4c18ba['attributeName']||'childList'==_0x4c18ba['type']||'characterData'==_0x4c18ba['type'])&&_0x58adfa();});return{'attach'(_0x3afcb7){_0x40cb73['observe'](_0x3afcb7,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x40cb73['disconnect'](),_0x58adfa['cancel']();}};}class Kt extends _0x31aaeb{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x35f475,_0x5bcfa2){super(_0x35f475),this['id']=_0x31c322(),this['focusTracker']=new _0x420295(),this['keystrokes']=new _0x2ed91d(),this['keystrokes']['set']('Esc',(_0x2d3862,_0x2674c7)=>this['fire']('Esc',_0x2674c7)),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']=Wt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x5bcfa2),this['mainView']=_0x5bcfa2;const _0xeb6ece=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0xeb6ece['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 _0x1823fc=this['element']['clientHeight'];_0x1823fc&&(this['height']=_0x1823fc);}}class Yt extends/* #__PURE__ -- @preserve */
29
+ _0x42988b(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x27968a,target:_0x1a1ebe,type:_0x4b61a0,isVisible:_0x26686b=!0x0}){super(),this['view']=_0x27968a,this['view']['element']||this['view']['render'](),this['_type']=_0x4b61a0,this['_target']=_0x1a1ebe,Yt['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x33b63a([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x218711,_0x2bf11f)=>{this['view']['focusTracker']['add'](_0x2bf11f);}),this['focusableElements']['on']('remove',(_0x31ff95,_0x3d205f)=>{this['view']['focusTracker']['remove'](_0x3d205f);}),this['set']('isVisible',_0x26686b);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x48d4d5=this['_getNormalizedTarget']();return Yt['_assertCorrectTarget'](_0x48d4d5),_0x48d4d5;}get['targetRect'](){const _0x65922b=this['target'];if(null===_0x65922b)return null;if(_0x65922b instanceof _0x36753e)return _0x65922b;const _0x575305=_0x65922b['filter'](_0x16a86a=>function(_0x4f7b6b){const _0x56004e=_0x4f7b6b['offsetParent'];if(_0x56004e)return!0x0;const _0x32d3b3=_0x4f7b6b['getClientRects']()['item'](0x0);return!!_0x32d3b3;}(_0x16a86a));return 0x0===_0x575305['length']?null:_0x36753e['getDomElementRects'](_0x575305[0x0])[0x0];}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x3f77eb){this['view']['isActive']=_0x3f77eb,this['view']['mainView']['isActive']=_0x3f77eb;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x20f096){if(!(null===_0x20f096||_0x20f096 instanceof _0x36753e||Array['isArray'](_0x20f096)&&_0x20f096['every'](_0x36d0fb=>Gt(_0x36d0fb))))throw new _0x3bea1e('annotation-invalid-target',null,{'target':_0x20f096});}['_getNormalizedTarget'](){const _0x47bce9='function'==typeof this['_target']?this['_target']():this['_target'];return Gt(_0x47bce9)?[_0x47bce9]:_0x47bce9;}}function Gt(_0x1fbe36){return null!==_0x1fbe36&&'object'==typeof _0x1fbe36&&'nodeType'in _0x1fbe36&&0x1===_0x1fbe36['nodeType'];}class jt extends _0x33b63a{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x10e3dc=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x420295(),this['_focusTracker']['on']('change:isFocused',(_0x3ffb6e,_0x46dd76,_0x1d5009)=>{_0x1d5009||this['fire']('blur');});for(const _0x5fcb29 of _0x10e3dc)this['add'](_0x5fcb29);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x238f9f){if(this['has'](_0x238f9f))throw new _0x3bea1e('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x238f9f['innerView'],_0x238f9f),this['_viewToAnnotation']['set'](_0x238f9f['view'],_0x238f9f);for(const _0x3f9b5a of _0x238f9f['focusableElements'])this['_focusTracker']['add'](_0x3f9b5a);this['listenTo'](_0x238f9f['focusableElements'],'add',(_0x2d8342,_0x32a94a)=>{this['_focusTracker']['add'](_0x32a94a);}),this['listenTo'](_0x238f9f['focusableElements'],'remove',(_0x5e758e,_0x401de1)=>{this['_focusTracker']['remove'](_0x401de1);}),this['listenTo'](_0x238f9f['view']['focusTracker'],'change:isFocused',(_0x5933f7,_0x373f9f,_0x4039a0)=>{_0x4039a0&&this['fire']('focus',_0x238f9f);}),_0x238f9f['updateTargetRect']();const _0x5106a7=this['_getOrderInContent'](_0x238f9f['view']['targetRect']);return super['add'](_0x238f9f,_0x5106a7);}['remove'](_0x3ea8a1){if(!this['has'](_0x3ea8a1))throw new _0x3bea1e('annotationcollection-not-existing-item',null);this['stopListening'](_0x3ea8a1['view']['focusTracker']),this['stopListening'](_0x3ea8a1['focusableElements']);for(const _0x4fed27 of _0x3ea8a1['focusableElements'])this['_focusTracker']['remove'](_0x4fed27);return this['_viewToAnnotation']['delete'](_0x3ea8a1['view']),this['_innerViewToAnnotation']['delete'](_0x3ea8a1['innerView']),super['remove'](_0x3ea8a1);}['getByInnerView'](_0x10c8f5){return this['_innerViewToAnnotation']['get'](_0x10c8f5);}['getByView'](_0x1e6eb9){return this['_viewToAnnotation']['get'](_0x1e6eb9);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x2af389 of this)_0x2af389['updateTargetRect']();this['_sort']();}['_sort'](){const _0x33ca40=Array['from'](this)['sort']((_0x2b604b,_0x1645fb)=>qt(_0x2b604b['view']['targetRect'],_0x1645fb['view']['targetRect']));for(let _0xb7c10d=_0x33ca40['length']-0x1;_0xb7c10d>0x0;_0xb7c10d--){const _0x24c447=_0x33ca40[_0xb7c10d];_0xb7c10d!==this['getIndex'](_0x24c447)&&(this['remove'](_0x24c447),this['add'](_0x24c447));}}['_getOrderInContent'](_0x29d9ae){let _0x105bf2=0x0;if(!_0x29d9ae)return this['length'];for(const _0x565e60 of this){const _0x5f215b=_0x565e60['view']['targetRect'];if(_0x5f215b){if(qt(_0x29d9ae,_0x5f215b)<0x0)return _0x105bf2;_0x105bf2++;}}return _0x105bf2;}}function Xt({source:_0x39e9af,target:_0x584798,filter:_0x5bf251}){for(const _0x580e2f of _0x39e9af)_0x5bf251(_0x580e2f)&&_0x584798['add'](_0x580e2f);_0x584798['listenTo'](_0x39e9af,'add',(_0x1cf4de,_0xa3dbaa)=>{_0x5bf251(_0xa3dbaa)&&_0x584798['add'](_0xa3dbaa);}),_0x584798['listenTo'](_0x39e9af,'remove',(_0x408ed7,_0x19554c)=>{_0x584798['has'](_0x19554c)&&_0x584798['remove'](_0x19554c);});}function qt(_0x360f4e,_0xdc74dc){if(null===_0x360f4e&&null===_0xdc74dc)return 0x0;if(null===_0x360f4e)return-0x1;if(null===_0xdc74dc)return 0x1;const _0x9df743=_0x360f4e['top']-_0xdc74dc['top'];return 0x0==_0x9df743?_0x360f4e['left']-_0xdc74dc['left']:_0x9df743;}class $t extends _0x4d5b57{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b29d){if(super(_0x4b29d),this['collection']=new jt(),this['_visibleAnnotations']=new jt(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x4b29d instanceof _0x57726a){const _0x1bf8c7=_0x4b29d['locale'];_0x4b29d['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':bt(_0x1bf8c7,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':bt(_0x1bf8c7,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':bt(_0x1bf8c7,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':bt(_0x1bf8c7,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':bt(_0x1bf8c7,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':bt(_0x1bf8c7,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':bt(_0x1bf8c7,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x24949b){this['collection']['add'](_0x24949b);}['remove'](_0x4eaf83){this['collection']['remove'](_0x4eaf83),_0x4eaf83['destroy']();}['refreshVisibility'](){for(const _0x26a757 of this['collection'])_0x26a757['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x281122){return this['collection']['getByInnerView'](_0x281122);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x465047 of this['collection'])_0x465047['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x8a9e9){this['fire']('_activateAnnotation',_0x8a9e9);}['createAnnotation'](_0x122bb4){return new Yt(_0x122bb4);}['createAnnotationView'](_0x563e9c,_0x17ebb0){return new Kt(_0x563e9c,_0x17ebb0);}['_addActiveAnnotation'](_0xce31d7){const _0x4fb68f=new Set(this['activeAnnotations']);_0x4fb68f['add'](_0xce31d7),this['activeAnnotations']=_0x4fb68f;}['_removeActiveAnnotation'](_0x1657b7){const _0x4a10c3=new Set(this['activeAnnotations']);_0x4a10c3['delete'](_0x1657b7),this['activeAnnotations']=_0x4a10c3;}['_bindAnnotationsToVisibleAnnotations'](){const _0x1c070e=this['collection'],_0x2a3712=this['_visibleAnnotations'];function _0x4ead7f(_0x508635){const _0x62241d=_0x508635['source'];_0x62241d['isVisible']&&!_0x2a3712['has'](_0x62241d)?_0x2a3712['add'](_0x62241d):!_0x62241d['isVisible']&&_0x2a3712['has'](_0x62241d)&&_0x2a3712['remove'](_0x62241d),_0x62241d['view']['focusTracker']['remove'](_0x62241d['view']['element']),_0x62241d['view']['focusTracker']['add'](_0x62241d['view']['element']);}this['listenTo'](_0x1c070e,'add',(_0x4edb79,_0x483072)=>{_0x483072['isVisible']&&_0x2a3712['add'](_0x483072),this['listenTo'](_0x483072,'change:isVisible',_0x4ead7f);}),this['listenTo'](_0x1c070e,'remove',(_0x4fb3af,_0x1e8ebf)=>{_0x2a3712['has'](_0x1e8ebf)&&_0x2a3712['remove'](_0x1e8ebf),this['stopListening'](_0x1e8ebf,'change:isVisible',_0x4ead7f);});}['_setupEnterAnnotationKeystroke'](){const _0x4e5653=_0x2154a3=>{_0x2154a3['on']('ready',()=>{_0x2154a3['keystrokes']['set'](_0x27a185,(_0x1bd614,_0x41b81f)=>{const _0x40cc19=_0x459cc4(this['activeAnnotations']['values']());_0x40cc19&&(_0x40cc19['view']['focus'](),_0x41b81f());});});};this['context']instanceof _0x57726a?_0x4e5653(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x47164f,_0x131431)=>{_0x4e5653(_0x131431);});}['_setupEscapeAnnotationHandling'](){const _0x3212aa=_0x40ea0b=>{const _0xcdc498=_0x40ea0b['source'],_0x3c01e1=[];let _0x25e10a;if(Array['isArray'](_0xcdc498['target'])){_0x25e10a=_0xcdc498['target'][0x0],this['context']instanceof _0x57726a?_0x3c01e1['push'](this['context']):this['context']['editors']&&_0x3c01e1['push'](...this['context']['editors']);for(const _0x1f75d6 of _0x3c01e1)for(const _0x11a0c1 of _0x1f75d6['editing']['view']['domRoots']['values']())if(_0x11a0c1['contains'](_0x25e10a))return void _0x1f75d6['editing']['view']['focus']();_0x25e10a['focus']();}};this['listenTo'](this['collection'],'add',(_0x3a1344,_0x2e5f3f)=>{this['listenTo'](_0x2e5f3f,'escape',_0x3212aa,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x499e0a,_0x350e64)=>{this['stopListening'](_0x350e64,'escape',_0x3212aa);});}}const zt=Symbol('noChannel'),Jt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class Qt extends _0x4d5b57{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[$t,_0x18ca69,_0x2d9be6];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f92a6){super(_0x4f92a6),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x1e4aae=this['context']['config'];_0x1e4aae['define']('comments.maxCommentsWhenCollapsed',0x2),_0x1e4aae['define']('comments.maxThreadTotalWeight',0x1f4),_0x1e4aae['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x1e4aae['define']('comments.CommentThreadView',Bt),_0x1e4aae['define']('comments.CommentView',Ut),_0x1e4aae['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x4eb5ba=this['context']['plugins']['get']($t);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x253eb6,_0x1d912a)=>this['_addCommentThread'](_0x1d912a)),this['on']('submitCommentThread',(_0x5766de,_0x2d3e12)=>this['_submitCommentThread'](_0x2d3e12)),this['on']('resolveCommentThread',(_0x556f6e,_0x41f955)=>this['_resolveCommentThread'](_0x41f955)),this['on']('resolveCommentThread',(_0x2ee191,_0x2d029e)=>this['_updateActiveAnnotation'](_0x2d029e),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0xa5de2b,_0x575ff2)=>this['_reopenCommentThread'](_0x575ff2)),this['on']('reopenCommentThread',(_0xa67d7b,_0x397623)=>this['_updateActiveAnnotation'](_0x397623),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x6f72d4,_0x40f612)=>this['_removeCommentThread'](_0x40f612)),this['on']('updateCommentThread',(_0x4a271d,_0x4c5730)=>this['_updateCommentThread'](_0x4c5730)),this['on']('updateCommentThread',(_0x480653,_0x496242)=>this['_updateActiveAnnotation'](_0x496242),{'priority':'lowest'}),this['on']('addComment',(_0x1a342b,_0x1e1289)=>this['_addComment'](_0x1e1289)),this['on']('updateComment',(_0x7d5704,_0x4cd05c)=>this['_updateComment'](_0x4cd05c)),this['on']('removeComment',(_0x917b7e,_0x5dbb32)=>this['_removeComment'](_0x5dbb32)),this['on']('addComment',(_0x261ef5,{threadId:_0x2641e0,isFromAdapter:_0x32b414})=>{if(_0x32b414)return;const _0x2967d5=this['getCommentThread'](_0x2641e0),_0x57a958=_0x2967d5&&this['_threadToController']['get'](_0x2967d5);_0x57a958&&_0x57a958['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x4eb5ba,'change:activeAnnotations',(_0x2a1dbe,_0x40de21,_0x523e1e)=>{const _0x139618=Array['from'](_0x523e1e)['map'](_0x2f8838=>this['_viewToController']['get'](_0x2f8838['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x139618?_0x139618['model']:null;});}set['adapter'](_0x1fa04f){if(this['_adapter'])throw new _0x3bea1e('commentsrepository-adapter-already-set');this['_adapter']=_0x1fa04f;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0xa246f2=zt,threadId:_0xcbc4df=_0x31c322(),comments:_0x14b225=[],unlinkedAt:_0x4d12cd=null,resolvedAt:_0x479c5a=null,resolvedBy:_0x461460=null,target:_0x4e4b62=null,context:_0x632e03=null,attributes:_0x1ae2f2={},isResolvable:_0x4256d4=!0x0,isSubmitted:_0x1e7aaa=!0x1,isFromAdapter:_0x4c239b=!0x1}={}){return this['fire'](ii('addCommentThread',_0xa246f2),{'channelId':_0xa246f2,'threadId':_0xcbc4df,'comments':_0x14b225,'unlinkedAt':_0x4d12cd,'resolvedAt':_0x479c5a,'resolvedBy':_0x461460,'target':_0x4e4b62,'context':_0x632e03,'attributes':_0x1ae2f2,'isFromAdapter':_0x4c239b,'isResolvable':_0x4256d4,'isSubmitted':_0x1e7aaa}),this['getCommentThread'](_0xcbc4df);}['openNewCommentThread']({channelId:_0x53c127=zt,threadId:_0x102d66=_0x31c322(),target:_0x58a0f1,context:_0x49c473=null,isResolvable:_0x14e30c=!0x0}){if(this['_readOnlyChannels']['has'](_0x53c127)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x58a0f1)throw new _0x3bea1e('commentsrepository-missing-target');const _0x21d54e=this['addCommentThread']({'channelId':_0x53c127,'threadId':_0x102d66,'target':_0x58a0f1,'context':_0x49c473,'isResolvable':_0x14e30c});if(!_0x21d54e)return null;const _0x5c39dd=this['_threadToController']['get'](_0x21d54e),_0x544222=_0x5c39dd['view']['commentThreadInputView']['commentInputView'],_0x526575=this['context']['plugins']['get']($t),_0x7bbc53=_0x526575['getByInnerView'](_0x5c39dd['view']);return _0x526575['activate'](_0x7bbc53),_0x544222['once']('editorReady',()=>_0x544222['focus']()),_0x21d54e;}['hasCommentThread'](_0x4a1a38){if('string'!=typeof _0x4a1a38)throw new _0x3bea1e('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x4a1a38);}['updateCommentThread']({channelId:_0x5d46d8=zt,threadId:_0x1e0d3d,context:_0x5b05e6,unlinkedAt:_0x4a1207,attributes:_0x2c4cef,isFromAdapter:_0x53306b=!0x1}){return this['fire'](ii('updateCommentThread',_0x5d46d8),{'channelId':_0x5d46d8,'threadId':_0x1e0d3d,'context':_0x5b05e6,'unlinkedAt':_0x4a1207,'attributes':_0x2c4cef,'isFromAdapter':_0x53306b}),this['getCommentThread'](_0x1e0d3d);}['getCommentThread'](_0x37f958){if('string'!=typeof _0x37f958)throw new _0x3bea1e('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x37f958);}['fetchCommentThread']({channelId:_0x34c246,threadId:_0x24d55b}={}){const _0x346f46=this['getCommentThread'](_0x24d55b);if(_0x346f46)return Promise['resolve'](_0x346f46);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x3bea1e('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x34c246,'threadId':_0x24d55b})['then'](_0x10c3de=>this['hasCommentThread'](_0x24d55b)?this['getCommentThread'](_0x24d55b):_0x10c3de?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x34c246},_0x10c3de)):void 0x0)['catch'](_0x55658b=>{throw console['error'](_0x55658b),new _0x3bea1e('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x3c1d70,skipNotAttached:_0x89b461=!0x1,skipEmpty:_0x439489=!0x1,toJSON:_0x1c38f4=!0x1}={}){const _0x29aa32=[];for(const _0x4aa60f of this['_threads']['values']())_0x3c1d70&&_0x4aa60f['channelId']!==_0x3c1d70||_0x89b461&&!_0x4aa60f['isAttached']||_0x439489&&0x0===_0x4aa60f['length']||_0x29aa32['push'](_0x4aa60f);return _0x1c38f4?_0x29aa32['map'](_0x59622e=>_0x59622e['toJSON']()):_0x29aa32;}['getAnnotationForCommentThread'](_0x276002){const _0x214b71=this['_threadToController']['get'](_0x276002);if(!_0x214b71)return null;return this['context']['plugins']['get']($t)['getByInnerView'](_0x214b71['view'])||null;}['getCommentThreadForAnnotation'](_0x5ad667){const _0x425b1a=this['_viewToController']['get'](_0x5ad667['innerView']);return _0x425b1a?_0x425b1a['model']:null;}['setActiveCommentThread'](_0x64de7){const _0x4803a7=this['context']['plugins']['get']($t);if(!_0x64de7)return void(this['activeCommentThread']&&_0x4803a7['deactivateAll']());const _0x30ee55=this['getCommentThread'](_0x64de7);if(!_0x30ee55)throw new _0x3bea1e('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x64de7});if(!this['_threadToController']['has'](_0x30ee55))throw new _0x3bea1e('commentsrepository-active-not-attached',null,{'threadId':_0x64de7});const _0x2f5585=_0x4803a7['getByInnerView'](this['_threadToController']['get'](_0x30ee55)['view']);_0x4803a7['activate'](_0x2f5585);}['switchReadOnly'](_0x485ecb,_0x569787){_0x485ecb?this['_readOnlyChannels']['add'](_0x569787):this['_readOnlyChannels']['delete'](_0x569787),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x115b71){return this['_readOnlyChannels']['has'](_0x115b71)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x1f6f6e,_0x36aec6){return new It(_0x1f6f6e,_0x36aec6);}['setPermissions'](_0x3fdc9e,_0x1f4603=zt){this['_permissions']['set'](_0x1f4603,_0x3fdc9e),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x49ca62=zt){return this['_permissions']['has'](_0x49ca62)?this['_permissions']['get'](_0x49ca62):Jt;}['_addCommentThread']({channelId:_0x3cb65f,threadId:_0x25dbb8,comments:_0x379dd7,unlinkedAt:_0x1a11a7,resolvedAt:_0x1eeae9,resolvedBy:_0x59429d,target:_0x52438b,context:_0x31b2de,attributes:_0x479866,isFromAdapter:_0x534416,isResolvable:_0x46cfa8,isSubmitted:_0x3b98db}){if('string'!=typeof _0x25dbb8)throw new _0x3bea1e('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x25dbb8});if(this['hasCommentThread'](_0x25dbb8))throw new _0x3bea1e('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x25dbb8});const _0xef1501=new Zt(this,{'channelId':_0x3cb65f,'id':_0x25dbb8,'context':_0x31b2de,'attributes':_0x479866,'unlinkedAt':_0x1a11a7,'resolvedAt':_0x1eeae9,'resolvedBy':_0x59429d?this['context']['plugins']['get'](_0x2d9be6)['getUser'](_0x59429d):null,'isResolvable':_0x46cfa8,'isSubmitted':_0x3b98db||_0x534416});this['_threads']['set'](_0x25dbb8,_0xef1501);for(const _0x313cbb of _0x379dd7)_0xef1501['_add'](this['_createNewComment']({'threadId':_0x25dbb8,..._0x313cbb}));return _0x52438b&&_0xef1501['attachTo'](_0x52438b),_0x534416||!_0xef1501['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x3cb65f,'threadId':_0x25dbb8});}['_submitCommentThread']({channelId:_0x5c1f8b,threadId:_0x78b2f2}){if(!this['hasCommentThread'](_0x78b2f2))throw new _0x3bea1e('commentsrepository-missing-comment-thread',this);const _0x28beeb=this['getCommentThread'](_0x78b2f2);if(_0x28beeb['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x273d0d,comments:_0x20ac8,resolvedAt:_0x551495,resolvedBy:_0x8b0559,context:_0x1f4a52,attributes:_0x3fd661}=_0x28beeb,_0x4fdb61=this['context']['plugins']['get']('PendingActions'),_0x3b7e33=_0x4fdb61['add'](bt(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x5c1f8b,'threadId':_0x273d0d,'comments':_0x20ac8['map'](_0x5eb81a=>_0x5eb81a['toJSON']()),'resolvedAt':_0x551495,'resolvedBy':_0x8b0559?_0x8b0559['id']:_0x8b0559,'context':_0x1f4a52,'attributes':_0x3fd661})['then'](({comments:_0x1a465a})=>{_0x4fdb61['remove'](_0x3b7e33);for(const _0x2f4e30 of _0x1a465a)this['_updateComment']({'channelId':_0x5c1f8b,'threadId':_0x78b2f2,'commentId':_0x2f4e30['commentId'],'createdAt':_0x2f4e30['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x255938=>{throw console['error'](_0x255938),new _0x3bea1e('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x2016bf,target:_0x14aa63}){const _0x27388f=this['getCommentThread'](_0x2016bf);if(!_0x27388f)throw new _0x3bea1e('commentsrepository-attach-missing-comment-thread',this);const _0x77ac41=this['context']['plugins']['get']('PendingActions'),_0x23c769=this['context']['plugins']['get']($t),_0x9a377e=this['_createCommentThreadView'](_0x27388f),_0x1b6253=new It(_0x27388f,_0x9a377e);let _0x1d7c82=null;_0x9a377e['on']('change:isDirty',(_0x2a4126,_0x1f9f2a,_0x6c17ef)=>{_0x6c17ef?_0x1d7c82=_0x77ac41['add'](bt(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x1d7c82&&(_0x77ac41['remove'](_0x1d7c82),_0x1d7c82=null);}),this['_threadToController']['set'](_0x27388f,_0x1b6253),this['_viewToController']['set'](_0x9a377e,_0x1b6253);const _0x377b94=new Kt(this['context']['locale'],_0x9a377e);_0x377b94['bind']('length')['to'](_0x9a377e),_0x377b94['bind']('isDirty')['to'](_0x9a377e,'isDirty',_0x9a377e,'length',(_0x249804,_0x477d2d)=>_0x249804||!_0x477d2d),_0x377b94['bind']('isActive')['to'](_0x9a377e),_0x377b94['type']='comment';const _0x4e2aec=new Yt({'view':_0x377b94,'target':_0x14aa63,'type':'comment','isVisible':!_0x27388f['archivedAt']&&!!('function'==typeof _0x14aa63?_0x14aa63():_0x14aa63)});return _0x9a377e['on']('escape',()=>{_0x4e2aec['fire']('escape');}),this['_bindAnnotationToEditors'](_0x9a377e,_0x4e2aec),_0x23c769['add'](_0x4e2aec),_0x4e2aec;}['_bindAnnotationToEditors'](_0x3a65cb,_0x127b86){this['listenTo'](_0x3a65cb,'editorReady',(_0x4043ba,_0x7988ab)=>{const _0x8d4381=_0x7988ab['ui']['view']['body']['bodyCollectionContainer'];_0x127b86['focusableElements']['add'](_0x8d4381),this['context']instanceof _0x57726a&&this['context']['ui']['focusTracker']['add'](_0x8d4381);},{'priority':'highest'}),this['listenTo'](_0x3a65cb,'editorDestroyed',(_0x1da8bb,_0x1c8019)=>{const _0x4b8db6=_0x1c8019['ui']['view']['body']['bodyCollectionContainer'];_0x127b86['focusableElements']['has'](_0x4b8db6)&&_0x127b86['focusableElements']['remove'](_0x4b8db6),this['context']instanceof _0x57726a&&this['context']['ui']['focusTracker']['remove'](_0x4b8db6);});}['_unbindEditors'](_0x237d70){this['stopListening'](_0x237d70,'editorReady'),this['stopListening'](_0x237d70,'editorDestroyed');}['_createCommentThreadView'](_0x15d506){const _0x455090=this['context']['plugins']['get'](_0x2d9be6),{config:_0x3739e5,locale:_0xd5299c}=this['context'],_0x20c9d5=_0x512d77(_0x3739e5['get']('locale'),_0xd5299c);return new(0x0,(_0x3739e5['get']('comments'))['CommentThreadView'])(_0xd5299c,_0x15d506,_0x455090['me'],{'editorConfig':{..._0x3739e5['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x3739e5['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x3739e5['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3739e5['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3739e5['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x20c9d5,'CommentView':_0x3739e5['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x3bab41,channelId:_0x3f31c4,resolvedAt:_0xc17c18,resolvedBy:_0x378097,isFromAdapter:_0x46b671}){if(!this['hasCommentThread'](_0x3bab41))throw new _0x3bea1e('commentsrepository-missing-comment-thread',null,{'threadId':_0x3bab41});const _0x5c7399=this['getCommentThread'](_0x3bab41);if(_0x5c7399['isResolved'])throw new _0x3bea1e('commentsrepository-resolved-comment-thread',null,{'threadId':_0x3bab41});const _0x589597=this['context']['plugins']['get'](_0x2d9be6);if(_0x5c7399['resolvedBy']=_0x589597['getUser'](_0x378097),_0x5c7399['resolvedAt']=_0xc17c18,_0x46b671||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x3e12c0=this['context']['plugins']['get']('PendingActions'),_0x482ff7=_0x3e12c0['add'](bt(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x3f31c4,'threadId':_0x3bab41})['then'](({resolvedAt:_0x1b65b0,resolvedBy:_0x3bc21c})=>{_0x3e12c0['remove'](_0x482ff7),_0x5c7399['resolvedBy']['id']!==_0x3bc21c&&(_0x5c7399['resolvedBy']=_0x589597['getUser'](_0x3bc21c)),_0x5c7399['resolvedAt']=_0x1b65b0;})['catch'](_0x5a4331=>{throw console['error'](_0x5a4331),new _0x3bea1e('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x5a9b0b,channelId:_0x791b49,isFromAdapter:_0x5318dd}){if(!this['hasCommentThread'](_0x5a9b0b))throw new _0x3bea1e('commentsrepository-missing-comment-thread',null,{'threadId':_0x5a9b0b});const _0x69a536=this['getCommentThread'](_0x5a9b0b);if(!_0x69a536['isResolved'])throw new _0x3bea1e('commentsrepository-reopen-comment-thread',null,{'threadId':_0x5a9b0b});if(_0x69a536['resolvedBy']=null,_0x69a536['resolvedAt']=null,_0x5318dd||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x2e4952=this['context']['plugins']['get']('PendingActions'),_0x13a3ca=_0x2e4952['add'](bt(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x791b49,'threadId':_0x5a9b0b})['then'](()=>_0x2e4952['remove'](_0x13a3ca))['catch'](_0x1f4a5c=>{throw console['error'](_0x1f4a5c),new _0x3bea1e('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x56b8aa,isFromAdapter:_0x42376b}){const _0x26882a=this['getCommentThread'](_0x56b8aa);if(!_0x26882a)throw new _0x3bea1e('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x56b8aa),this['_threads']['delete'](_0x56b8aa),!_0x26882a['isSubmitted']||_0x42376b||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x3b3edc=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4afadb}=_0x26882a,_0x78a21a=_0x3b3edc['add'](bt(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x4afadb,'threadId':_0x56b8aa})['then'](()=>_0x3b3edc['remove'](_0x78a21a))['catch'](_0x25ca1c=>{throw console['error'](_0x25ca1c),new _0x3bea1e('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x25d5de,unlinkedAt:_0x1b6c0a,context:_0x315e06,attributes:_0x23e94c,isFromAdapter:_0x2d2abd}){if('string'!=typeof _0x25d5de)throw new _0x3bea1e('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x25d5de});if(!this['hasCommentThread'](_0x25d5de))throw new _0x3bea1e('commentsrepository-missing-comment-thread',null,{'threadId':_0x25d5de});const _0x1f0348=this['getCommentThread'](_0x25d5de);let _0x56a098=!0x1;if(void 0x0!==_0x315e06&&_0x1f0348['context']!==_0x315e06&&(_0x1f0348['context']=_0x315e06,_0x56a098=!0x0),void 0x0!==_0x1b6c0a&&_0x1f0348['unlinkedAt']!==_0x1b6c0a&&(_0x1f0348['unlinkedAt']=_0x1b6c0a,_0x56a098=!0x0),_0x23e94c&&!_0x45517a(_0x23e94c,_0x1f0348['attributes'])&&(_0x1f0348['attributes']=_0x23e94c,_0x56a098=!0x0),!_0x56a098)return Promise['resolve']();if(!_0x1f0348['isSubmitted']||_0x2d2abd||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x30bcaf=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1e70b1}=_0x1f0348,_0x2e8149=_0x30bcaf['add'](bt(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x1e70b1,'threadId':_0x25d5de,'context':_0x315e06,'unlinkedAt':_0x1b6c0a,'attributes':_0x23e94c})['then'](()=>_0x30bcaf['remove'](_0x2e8149))['catch'](_0x3ca5ad=>{throw console['error'](_0x3ca5ad),new _0x3bea1e('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x4ff817){const _0x597d5e=this['context']['plugins']['get']($t),_0x598adb=this['getCommentThread'](_0x4ff817);if(_0x598adb['_isAttached']=!0x1,this['_threadToController']['has'](_0x598adb)){const _0xcf328=this['_threadToController']['get'](_0x598adb),_0x59d8c6=_0xcf328['view'],_0x5e92f2=_0x597d5e['getByInnerView'](_0x59d8c6);this['_threadToController']['delete'](_0x598adb),this['_viewToController']['delete'](_0x59d8c6),_0x5e92f2&&_0x597d5e['remove'](_0x5e92f2),_0xcf328['destroy'](),_0x59d8c6['destroy']()['then'](()=>{this['_unbindEditors'](_0x59d8c6);});}}['_updateActiveAnnotation']({threadId:_0x4c22d7,resolvedAt:_0x4269b4,unlinkedAt:_0x4acf1d}){const _0x183083=!!_0x4269b4,_0x322f14=this['context']['plugins']['get']($t),_0x58f131=this['getCommentThread'](_0x4c22d7);if(this['_threadToController']['has'](_0x58f131)){const _0x17408c=this['_threadToController']['get'](_0x58f131)['view'],_0xf5d10b=_0x322f14['getByInnerView'](_0x17408c);_0xf5d10b&&(_0x183083&&_0x322f14['_removeActiveAnnotation'](_0xf5d10b),_0x4acf1d?_0xf5d10b['isVisible']=!0x1:_0xf5d10b['refreshVisibility']());}}['_getExternalAuthor'](_0x4ef878){const _0x262fc5=this['context']['plugins']['get'](_0x2d9be6),_0x3bb8d0=_0x4e69f('external:'+_0x4ef878),_0x430764=_0x262fc5['getUser'](_0x3bb8d0);return _0x430764||_0x262fc5['addUser']({'id':_0x3bb8d0,'name':_0x4ef878});}['_createNewComment']({threadId:_0x9870e9,commentId:_0x128473=_0x31c322(),content:_0x1a6ea2,authorId:_0x1d811c,createdAt:_0x25459e,attributes:_0x5554a9}){if('string'!=typeof _0x128473)throw new _0x3bea1e('commentsrepository-invalid-commentid');if('string'!=typeof _0x1d811c)throw new _0x3bea1e('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x1a6ea2||!_0x1a6ea2['trim']())throw new _0x3bea1e('commentsrepository-invalid-comment-content');const _0x465c00=this['context']['plugins']['get'](_0x2d9be6)['getUser'](_0x1d811c);if(!_0x465c00)throw new _0x3bea1e('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x1d811c});let _0x27707e=null,_0x5b1fc3=_0x25459e;return _0x5554a9?.['@external']&&(_0x27707e=this['_getExternalAuthor'](_0x5554a9['@external']['authorName']),_0x5b1fc3=new Date(_0x5554a9['@external']['createdAt'])),new ti(this,{'threadId':_0x9870e9,'id':_0x128473,'author':_0x27707e||_0x465c00,'creator':_0x465c00,'content':_0x1a6ea2,'createdAt':_0x25459e,'authoredAt':_0x5b1fc3,'attributes':_0x5554a9});}['_addComment'](_0x1d25e){let {threadId:_0x142c84,content:_0x2a31bc,attributes:_0x29a13f,isFromAdapter:_0x335eba}=_0x1d25e;const _0x3d5be2=this['getCommentThread'](_0x1d25e['threadId']);if(!_0x3d5be2)throw new _0x3bea1e('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x24bb0f=this['_createNewComment'](_0x1d25e),{id:_0x59fd89}=_0x24bb0f;if(_0x3d5be2['_add'](_0x24bb0f),_0x335eba||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x3d5be2['isSubmitted'])return Promise['resolve']();const _0x54d113=this['context']['plugins']['get']('PendingActions'),{channelId:_0x283ce1}=_0x3d5be2,_0x1083e5=_0x54d113['add'](bt(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x29a13f||(_0x29a13f={}),this['adapter']['addComment']({'channelId':_0x283ce1,'threadId':_0x142c84,'commentId':_0x59fd89,'content':_0x2a31bc,'attributes':_0x29a13f})['then'](_0x5effe9=>{_0x54d113['remove'](_0x1083e5),_0x5effe9&&this['_updateComment']({'channelId':_0x283ce1,'threadId':_0x142c84,'commentId':_0x59fd89,'createdAt':_0x5effe9['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x553122=>{throw console['error'](_0x553122),new _0x3bea1e('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x38d9fb,commentId:_0x5a8c72,content:_0xe23a0e,createdAt:_0x21da4f,attributes:_0x4d3028,isFromAdapter:_0x4b3f7e}){if(void 0x0!==_0xe23a0e&&('string'!=typeof _0xe23a0e||!_0xe23a0e['trim']()['length']))throw new _0x3bea1e('commentsrepository-update-comment-invalid-content');const _0xd0899a=this['getCommentThread'](_0x38d9fb),_0x390da9=_0xd0899a['getComment'](_0x5a8c72);if(!_0x390da9)throw new _0x3bea1e('commentsrepository-update-missing-comment',this);let _0x2f211f=!0x1;if(_0xe23a0e&&_0xe23a0e!==_0x390da9['content']&&(_0x390da9['isEditable']||_0x4b3f7e)&&(_0x390da9['content']=_0xe23a0e,_0x2f211f=!0x0),_0x21da4f&&_0x21da4f!==_0x390da9['createdAt']&&(_0x390da9['createdAt']=_0x21da4f,_0x390da9['attributes']&&_0x390da9['attributes']['@external']||(_0x390da9['authoredAt']=_0x21da4f),_0x2f211f=!0x0),_0x4d3028&&!_0x45517a(_0x4d3028,_0x390da9['attributes'])&&(_0x390da9['attributes']=_0x4d3028,_0x2f211f=!0x0),!_0x2f211f)return Promise['resolve']();if(_0xd0899a['fire']('commentUpdated'),_0x4b3f7e||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x82bddb=this['context']['plugins']['get']('PendingActions'),{channelId:_0x467b7b}=this['getCommentThread'](_0x390da9['threadId']),_0x456ed5=_0x82bddb['add'](bt(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x467b7b,'threadId':_0x38d9fb,'commentId':_0x5a8c72,'content':_0xe23a0e,'attributes':_0x4d3028})['then'](()=>_0x82bddb['remove'](_0x456ed5))['catch'](_0x9af9b0=>{throw console['error'](_0x9af9b0),new _0x3bea1e('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x24f51c,commentId:_0x353173,isFromAdapter:_0x660d79}){const _0x522aa4=this['getCommentThread'](_0x24f51c),_0x5e31ea=_0x522aa4['getComment'](_0x353173);if(!_0x5e31ea)throw new _0x3bea1e('commentsrepository-remove-missing-comment',this);if(_0x522aa4['_remove'](_0x5e31ea),_0x660d79||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x3e446b=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2051ff}=_0x522aa4,_0x1a56c5=_0x3e446b['add'](bt(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x2051ff,'threadId':_0x24f51c,'commentId':_0x353173})['then'](()=>_0x3e446b['remove'](_0x1a56c5))['catch'](_0x25af8a=>{throw console['error'](_0x25af8a),new _0x3bea1e('commentsrepository-remove-comment-internal-error',this);});}}class Zt extends/* #__PURE__ -- @preserve */
30
+ _0x42988b(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x2284ed,_0x1d7e2b){super();const _0x4809f7=_0x1d7e2b['isResolvable'];this['channelId']=_0x1d7e2b['channelId'],this['id']=_0x1d7e2b['id'],this['comments']=new _0x33b63a(),this['_repository']=_0x2284ed,this['_isAttached']=!0x1,this['_isSubmitted']=_0x1d7e2b['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x2284ed,'_permissions',_0x2284ed,'_readOnlyChannels',()=>_0x2284ed['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x2284ed,'_permissions',()=>_0x2284ed['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x2284ed,'_permissions',()=>{const _0x2f57b8=_0x2284ed['getPermissions'](this['channelId']);return _0x2f57b8['write']||_0x2f57b8['admin'];}),this['bind']('isResolvable')['to'](_0x2284ed,'_permissions',()=>_0x4809f7&&_0x2284ed['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x1d7e2b['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x5c0464,_0x3efa64)=>_0x5c0464?_0x3efa64?_0x5c0464<_0x3efa64?_0x5c0464:_0x3efa64:_0x5c0464:_0x3efa64),this['set']('unlinkedAt',_0x1d7e2b['unlinkedAt']||null),this['set']('resolvedAt',_0x1d7e2b['resolvedAt']||null),this['set']('resolvedBy',_0x1d7e2b['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x147ac3=>!!_0x147ac3),this['set']('attributes',_0x1d7e2b['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x4267ea,_0x3884aa)=>_0x4267ea+_0x3884aa['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x3c0336,id:_0x3687aa}=this;this['_repository']['fire'](ii('submitCommentThread',_0x3c0336),{'channelId':_0x3c0336,'threadId':_0x3687aa});}['setUnlinkedAt'](_0x15e11e){this['_update']({'unlinkedAt':_0x15e11e});}['resolve']({resolvedAt:_0x6e8b02=new Date(),resolvedBy:_0x17116f='',isFromAdapter:_0x307bc4=!0x1}={}){const _0x5e64fc=this['_repository']['context']['plugins']['get'](_0x2d9be6)['me'],{channelId:_0xcc2a3,id:_0x11f8e8}=this;this['_repository']['fire'](ii('resolveCommentThread',_0xcc2a3),{'channelId':_0xcc2a3,'threadId':_0x11f8e8,'resolvedAt':_0x6e8b02,'resolvedBy':_0x17116f||_0x5e64fc['id'],'isFromAdapter':_0x307bc4});}['reopen']({isFromAdapter:_0x1c8640=!0x1}={}){const {channelId:_0x5df1e1,id:_0x2a4887}=this;this['_repository']['fire'](ii('reopenCommentThread',_0x5df1e1),{'channelId':_0x5df1e1,'threadId':_0x2a4887,'isFromAdapter':_0x1c8640});}['setContext'](_0x1133d1){this['context']||this['_update']({'context':_0x1133d1});}['setAttribute'](_0x2e626a,_0x30d5e0){const _0x256e0=_0x46f210(this['attributes']);_0x3442a5(_0x256e0,_0x2e626a,_0x30d5e0),this['_update']({'attributes':_0x256e0});}['removeAttribute'](_0x3df584){const _0x46d564=_0x46f210(this['attributes']);_0x3867e8(_0x46d564,_0x3df584),this['_update']({'attributes':_0x46d564});}['remove']({isFromAdapter:_0x131709=!0x1}={}){const {channelId:_0x49730e,id:_0x4d6041}=this;this['_repository']['fire'](ii('removeCommentThread',_0x49730e),{'channelId':_0x49730e,'threadId':_0x4d6041,'isFromAdapter':_0x131709});}['attachTo'](_0x3f38c2){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x3f38c2});}['addComment'](_0x365717){const {channelId:_0x31266d,id:_0x157c92}=this;this['_repository']['fire'](ii('addComment',_0x31266d,_0x157c92),Object['assign']({'channelId':_0x31266d,'threadId':_0x157c92},_0x365717));}['getComment'](_0x2922b7){if('string'!=typeof _0x2922b7)throw new _0x3bea1e('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x2922b7});return this['comments']['get'](_0x2922b7);}['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'](_0x21697d=>_0x21697d['toJSON']()),'attributes':this['attributes']};}['_add'](_0x3965eb){return this['listenTo'](_0x3965eb,'change:authoredAt',()=>{const _0x19c535=this['_findOptimalIndex'](_0x3965eb),_0x288078=this['comments'];_0x19c535-0x1!=_0x288078['getIndex'](_0x3965eb)&&_0x19c535+0x1!=_0x288078['getIndex'](_0x3965eb)&&(this['_remove'](_0x3965eb),this['_add'](_0x3965eb));}),this['comments']['add'](_0x3965eb,this['_findOptimalIndex'](_0x3965eb));}['_update'](_0xbf19f){const {channelId:_0x2305a4,id:_0x676dfb}=this;this['_repository']['fire'](ii('updateCommentThread',_0x2305a4),{..._0xbf19f,'channelId':_0x2305a4,'threadId':_0x676dfb});}['_remove'](_0x500e5b){return this['stopListening'](_0x500e5b),_0x500e5b['destroy'](),this['comments']['remove'](_0x500e5b);}['_findOptimalIndex'](_0x227fda){const _0x3fa06d=this['comments']['find'](_0x27b78f=>new Date(_0x27b78f['authoredAt'])['getTime']()>new Date(_0x227fda['authoredAt'])['getTime']());return _0x3fa06d?this['comments']['getIndex'](_0x3fa06d):this['length'];}}class ti extends/* #__PURE__ -- @preserve */
31
+ _0x42988b(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x2dd9a1,_0x167e27){super();const _0x1c872b=_0x2dd9a1['context']['plugins']['get'](_0x2d9be6)['me'],_0x5f01e4=_0x2dd9a1['getCommentThread'](_0x167e27['threadId']),_0x361337=0x0===_0x5f01e4['comments']['length'],_0x180733=_0x1c872b===_0x167e27['author'];this['id']=_0x167e27['id'],this['threadId']=_0x167e27['threadId'],this['author']=_0x167e27['author'],this['creator']=_0x167e27['creator'],this['isExternal']=Boolean(_0x167e27['attributes']&&_0x167e27['attributes']['@external']),this['set']('content',_0x167e27['content']),this['createdAt']=_0x167e27['createdAt']||new Date(),this['set']('authoredAt',_0x167e27['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x5f01e4,'resolvedAt'),this['set']('attributes',_0x167e27['attributes']||{}),this['bind']('isEditable')['to'](_0x2dd9a1,'_permissions',()=>{const _0xbde679=_0x2dd9a1['getPermissions'](_0x5f01e4['channelId'])['write'],_0x1ffdee=_0x2dd9a1['getPermissions'](_0x5f01e4['channelId'])['modifyAll'];return _0x180733&&_0xbde679||!_0x180733&&_0x1ffdee;}),this['bind']('isRemovable')['to'](_0x5f01e4,'isRemovable',_0x2dd9a1,'_permissions',_0x4bc8c4=>{const _0x4010da=_0x2dd9a1['getPermissions'](_0x5f01e4['channelId'])['write'],_0x85a041=_0x2dd9a1['getPermissions'](_0x5f01e4['channelId'])['modifyAll'];return _0x180733&&_0x4010da||_0x4bc8c4&&_0x361337||!_0x180733&&_0x85a041&&!_0x361337;}),this['bind']('isReadOnly')['to'](_0x5f01e4,'isReadOnly'),this['_repository']=_0x2dd9a1;}get['weight'](){return Math['max'](function(_0x3a5b9c){const _0x3a6cfe=document['createElement']('div');return _0x3a6cfe['innerHTML']=_0x3a5b9c,_0x3a6cfe['textContent']['length'];}(this['content']),0xc8);}['update'](_0x116d49){const {threadId:_0x36a946,id:_0x42e273}=this;if(!this['_repository']['hasCommentThread'](_0x36a946))throw new _0x3bea1e('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x27a828}=this['_repository']['getCommentThread'](_0x36a946);this['_repository']['fire'](ii('updateComment',_0x27a828,_0x36a946),{'channelId':_0x27a828,'threadId':_0x36a946,'commentId':_0x42e273,..._0x116d49});}['setAttribute'](_0x5f42d2,_0x15a60f){const _0x248951=_0x46f210(this['attributes']);_0x3442a5(_0x248951,_0x5f42d2,_0x15a60f),this['update']({'attributes':_0x248951});}['removeAttribute'](_0x5b3b4f){const _0x2b3874=_0x46f210(this['attributes']);_0x3867e8(_0x2b3874,_0x5b3b4f),this['update']({'attributes':_0x2b3874});}['remove'](_0x3bf692={}){if(!_0x3bf692['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x482845,id:_0x4c3990}=this;if(!this['_repository']['hasCommentThread'](_0x482845))throw new _0x3bea1e('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x1209db}=this['_repository']['getCommentThread'](_0x482845);this['_repository']['fire'](ii('removeComment',_0x1209db,_0x482845),{'channelId':_0x1209db,'threadId':_0x482845,'commentId':_0x4c3990,..._0x3bf692});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function ii(_0x287190,..._0x266115){for(const _0x5db8f3 of _0x266115)void 0x0!==_0x5db8f3&&(_0x287190+=':'+String(_0x5db8f3));return _0x287190;}class ei extends _0x5583eb{constructor(_0x14428b){super(_0x14428b),this['set']('hasContent',!0x1);}['refresh'](){const _0x58bdde=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x4942da of _0x58bdde['getRanges']())if(this['_hasContent'](_0x4942da))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x3b31ae=_0x31c322(),ranges:_0x9d32d0,comment:_0x48efba}={}){const _0x1cc81a=this['editor']['model'],_0x407ae5=_0x9d32d0??Array['from'](_0x1cc81a['document']['selection']['getRanges']()),_0x4f2ffd=[];for(const _0x12b48e of _0x407ae5)this['_hasContent'](_0x12b48e)&&_0x4f2ffd['push'](this['_trimToContent'](_0x12b48e));if(!_0x4f2ffd['length'])throw new _0x3bea1e('addcommentthreadcommand-incorrect-ranges',null);_0x48efba&&this['_createCommentThread'](_0x3b31ae,_0x48efba),this['_createMarkersFromRanges'](_0x3b31ae,_0x4f2ffd,!!_0x48efba);}['_createMarkersFromRanges'](_0x2095eb,_0x4c39ed,_0x4e22f3){this['editor']['model']['change'](_0x221b60=>{for(const _0x100a2d of _0x4c39ed){const _0x3790b2=_0x31c322()['substr'](0x1,0x5),_0x511a1c='comment:'+_0x2095eb+':'+_0x3790b2;_0x221b60['addMarker'](_0x511a1c,{'range':_0x100a2d,'usingOperation':_0x4e22f3,'affectsData':_0x4e22f3});}});}['_createCommentThread'](_0x3fdd87,_0x48cdaf){const _0x56d8ab=this['editor']['plugins']['get']('CommentsRepository'),_0x1e95bb=this['editor']['config']['get']('collaboration.channelId'),_0x5be347=this['editor']['plugins']['get']('Users')['me'];if(!_0x5be347)throw new _0x3bea1e('addcommentthreadcommand-user-not-found',null);_0x56d8ab['addCommentThread']({'threadId':_0x3fdd87,'channelId':_0x1e95bb,'comments':[{'authorId':_0x5be347['id'],'content':_0x48cdaf,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x1b4092){for(const _0x1a649b of _0x1b4092['getItems']())if(this['_itemIsContent'](_0x1a649b))return!0x0;return!0x1;}['_itemIsContent'](_0x5aeaaa){return _0x5aeaaa['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x5aeaaa)&&!_0x5aeaaa['is']('element','tableCell');}['_trimToContent'](_0xecc969){const _0x3e520d=_0xe29973=>!this['_itemIsContent'](_0xe29973['item']),_0x37c9b5=_0xecc969['start']['getLastMatchingPosition'](_0x3e520d),_0x4eda8f=_0xecc969['end']['getLastMatchingPosition'](_0x3e520d,{'direction':'backward'});return this['editor']['model']['createRange'](_0x37c9b5,_0x4eda8f);}}class si extends _0x801ec5{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[$t];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x536fba){super(_0x536fba),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0xda3ba6=this['editor'],_0x24ad50=_0xda3ba6['model']['document']['selection'],_0x345d66=_0x5c43ed(()=>this['refreshSelectedViews'](),0xa);_0x24ad50['on']('change:range',(_0x98c0b4,_0x4e77c8)=>{_0x4e77c8['directChange']&&(_0x345d66['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0xda3ba6['editing']['view']['document'],'change:isFocused',(_0x5697df,_0x34d8df,_0x5efc90)=>{_0x5efc90&&_0x345d66();}),this['listenTo'](_0xda3ba6['ui']['focusTracker'],'change:isFocused',(_0x11785d,_0x521b92,_0x31a0ef)=>{_0x31a0ef||this['fire']('blur',{'isAnnotationTracked':_0x3f3575=>this['_editorAnnotationsData']['has'](_0x3f3575['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x3fc00e){if(this['_editorAnnotations']['has'](_0x3fc00e['view']))return;this['_editorAnnotations']['add'](_0x3fc00e['view']),this['editor']['ui']['focusTracker']['add'](_0x3fc00e['view']['element']);const _0x46518c=this['editor']['plugins']['get']($t);this['listenTo'](_0x46518c['collection'],'remove',(_0x16dccd,_0x5ea685)=>{this['editor']['ui']['focusTracker']['remove'](_0x5ea685['view']['element']),this['_editorAnnotations']['delete'](_0x5ea685['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x2d950e){if('function'!=typeof _0x2d950e)throw new _0x3bea1e('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x2d950e);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x35f960,annotations:_0x1cac35}){const _0x402746=[],_0x2a8e3c=this['editor']['model']['document']['selection'],_0x17f16b=Array['from'](_0x2a8e3c['getRanges']());for(const [_0x2642f2,_0x4dda84]of this['_editorAnnotationsData']){const _0x59beee=_0x25d271(_0x4dda84),_0xa342c5=_0x1cac35['getByInnerView'](_0x2642f2);_0x59beee&&_0xa342c5&&_0x402746['push']({'annotation':_0xa342c5,'range':_0x59beee});}function _0x25d271(_0x2d2690){for(const _0x248ba6 of _0x2d2690)for(const _0x476323 of _0x17f16b)if(_0x248ba6['containsRange'](_0x476323,!_0x2a8e3c['isCollapsed']))return _0x248ba6;return null;}return _0x402746['sort']((_0x23f99d,_0x13f14c)=>{const _0x53796d=_0x23f99d['range'],_0x184214=_0x13f14c['range'];if(!_0x53796d['isEqual'](_0x184214)){if(_0x53796d['containsRange'](_0x184214,!0x0))return 0x1;if(_0x184214['containsRange'](_0x53796d,!0x0))return-0x1;}return _0x23f99d['annotation']==_0x35f960?-0x1:_0x13f14c['annotation']==_0x35f960?0x1:0x0;})['map'](_0x16ddf5=>_0x16ddf5['annotation']);}get['_editorAnnotationsData'](){const _0x3a884f=new Map();for(const _0x240484 of Array['from'](this['_dataCollectors']))for(const [_0xf63f46,_0x201707]of _0x240484())_0x3a884f['set'](_0xf63f46,_0x201707);return _0x3a884f;}}class ni extends _0x801ec5{['afterInit'](){const _0x2d5b9e=this['editor'];if(!_0x2d5b9e['plugins']['has']('RestrictedEditingModeEditing'))return;_0x2d5b9e['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class oi extends _0x801ec5{constructor(_0xab0007){super(_0xab0007),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x1d2ac7=this['editor'],_0x23ba36=_0x1d2ac7['commands']['get']('importWord'),_0x13b7cd=_0x1d2ac7['plugins']['get'](_0x2d9be6);_0x23ba36&&(_0x23ba36['on']('execute',(_0x4febb3,[,_0x2a2ea2])=>{_0x2a2ea2['collaboration_features']={'comments':!0x0,'user_id':_0x13b7cd['me']['id']};},{'priority':_0x22038f['high']+0xa}),this['listenTo'](_0x23ba36,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x572902,_0xe5c661){const {comment_threads:_0x465ccb}=_0xe5c661;_0x465ccb&&_0x465ccb['forEach'](({thread_id:_0x39f0e7,comments:_0x5ddefb,is_resolved:_0x13291f})=>{const _0x2b10a0=new Date(),_0x29c41a=_0x5ddefb['map'](({author:_0x69a7fa,content:_0x378c0b,created_at:_0x16bc99})=>({'content':_0x378c0b,'authorId':this['editor']['plugins']['get'](_0x2d9be6)['me']['id'],'createdAt':_0x2b10a0,'attributes':{'@external':{'authorName':_0x69a7fa,'createdAt':_0x16bc99?new Date(_0x16bc99):new Date(),'source':'importWord'}}})),_0x1163fd=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](Qt)['addCommentThread']({'channelId':_0x1163fd,'threadId':_0x39f0e7,'comments':_0x29c41a,'resolvedAt':_0x13291f?_0x2b10a0:null});});}}class ri extends _0x801ec5{constructor(_0x2247db){super(_0x2247db),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[pt,wt];}['afterInit'](){const _0x4ac799=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x4ac799,'contentInsertion',(_0x117284,_0x10eef7)=>this['_removeMarkersWithoutThreads'](_0x10eef7['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x287045){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x287045;const _0x3da031=this['editor']['plugins']['get']('CommentsRepository');for(const _0x1eb485 of _0x287045['keys']()){const [_0x711a0a,_0x1a4608]=_0x1eb485['split'](':');'comment'!=_0x711a0a||_0x3da031['hasCommentThread'](_0x1a4608)||_0x287045['delete'](_0x1eb485);}return _0x287045;}['_registerMarkerInClipboardPipeline'](){const _0xbf4257=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x3d241e=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x3d241e&&_0xbf4257['_registerMarkerToCopy']('comment',_0x3d241e);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x1c7678){switch(_0x1c7678){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function hi(_0x750768){const _0x2723ae=_0x750768['split'](':');return{'group':_0x2723ae[0x0],'id':_0x2723ae[0x1],'part':_0x2723ae[0x2]};}class ai extends _0x801ec5{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x3545c7,_0xfae368)=>{if(!_0xfae368['options']['showCommentHighlights'])return null;if(_0xfae368['options']['ignoreResolvedComments']){const {id:_0x25c9e2}=hi(_0x3545c7['markerName']),_0x320d02=this['editor']['plugins']['get'](Qt);if(_0x320d02['getCommentThread'](_0x25c9e2)?.['isResolved']&&_0x3545c7['item'])return _0xfae368['consumable']['consume'](_0x3545c7['item'],'addMarker:'+_0x3545c7['markerName']),_0xfae368['consumable']['consume'](_0x3545c7['item'],'removeMarker:'+_0x3545c7['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1a047a=>{_0x1a047a['on']('addMarker:comment',(_0x5116c0,_0x232a8d,_0xd152ea)=>{if(!_0xd152ea['options']['showCommentHighlights'])return;const _0x5c9e07=_0x232a8d['item'];if(!_0x5c9e07)return;const _0x33f6ed=_0xd152ea['mapper']['toViewElement'](_0x5c9e07);this['editor']['model']['schema']['isObject'](_0x5c9e07)&&_0x33f6ed&&!_0x33f6ed['getCustomProperty']('widget')&&_0x33f6ed['is']('containerElement')&&Ct(_0x33f6ed,_0xd152ea['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xead3f1,{writer:_0x991617,options:_0x157bf7})=>{if(!_0x157bf7['showCommentHighlights'])return null;const _0x5a0ffa=_0x991617['createContainerElement']('div'),_0x185edb=_0x991617['createEmptyElement']('hr');return _0x991617['addClass']('ck-horizontal-line',_0x5a0ffa),_0x991617['insert'](_0x991617['createPositionAt'](_0x5a0ffa,0x0),_0x185edb),_0x5a0ffa;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x374a3d,{writer:_0x971903,options:_0x46033f})=>{if(!_0x46033f['showCommentHighlights'])return null;const _0x48d869=_0x971903['createContainerElement']('span'),_0x59d229=_0x971903['createEmptyElement']('img');return _0x971903['addClass']('image-inline',_0x48d869),_0x971903['insert'](_0x971903['createPositionAt'](_0x48d869,0x0),_0x59d229),_0x48d869;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1fa53b,{writer:_0xf51c46,options:_0x193f98})=>{if(_0x193f98['showCommentHighlights'])return _0xf51c46['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x40ebba,_0x2cfcba,_0x4eedd9)=>{_0x4eedd9['options']['showCommentHighlights']&&_0x40ebba['stop']();},{'priority':'high'});}}class ci extends _0x801ec5{static get['requires'](){return[Qt,si,_0x2d9be6,ni,oi,ri,ai];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3bc582){super(_0x3bc582),this['set']('isThreadsLoadingPaused',!0x0),_0x3bc582['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x33fb99,_0x4db036,_0xcfee4c,_0x30a28a)=>{const _0x1a0fcb=_0x3bc582['plugins']['get'](Qt),_0x5af156=_0xcfee4c?hi(_0xcfee4c)['id']:null;_0x3bc582['model']['change'](()=>{if(_0x5af156){const _0x3eaad0=this['getAllMarkersForId'](_0x5af156);for(const _0x1cae1d of _0x3eaad0)_0x3bc582['editing']['reconvertMarker'](_0x1cae1d);}if(_0x30a28a){const {id:_0x4340e8}=hi(_0x30a28a),_0x1819f=_0x1a0fcb['getCommentThread'](_0x4340e8);if(_0x1819f&&_0x1819f['unlinkedAt'])return;if(_0x1819f&&!_0x1819f['isAttached'])return;const _0xe52ce3=this['getAllMarkersForId'](_0x4340e8);for(const _0x5b8816 of _0xe52ce3)_0x3bc582['editing']['reconvertMarker'](_0x5b8816);}}),_0x5af156&&this['scrollToThreadMarker'](_0x5af156);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x50115c=this['editor'],_0x370a25=_0x50115c['plugins']['get'](Qt),_0x4c0418=_0x50115c['config']['get']('collaboration.channelId'),_0x38841=_0x370a25['getCommentThreads']()['filter'](_0x49307f=>_0x49307f['channelId']!==_0x4c0418);_0x50115c['commands']['add']('addCommentThread',new ei(_0x50115c)),this['listenTo'](_0x50115c,'change:isReadOnly',(_0x294c2a,_0x42cbeb,_0x4f2c6b)=>{_0x370a25['switchReadOnly'](_0x4f2c6b,_0x50115c['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x370a25,di('addCommentThread',_0x4c0418),(_0x3863e3,{threadId:_0x25cd0a})=>{const _0xae4084=this['editor']['plugins']['get'](Qt)['getCommentThread'](_0x25cd0a);_0xae4084?.['unlinkedAt']&&this['_attachArchivedThread'](_0x25cd0a);}),this['listenTo'](_0x370a25,di('removeCommentThread',_0x4c0418),(_0x362076,{threadId:_0x4d74cb})=>{_0x50115c['model']['enqueueChange']({'isUndoable':!0x1},_0xa67af8=>{const _0x32c7de=this['getAllMarkersForId'](_0x4d74cb);for(const _0x283426 of _0x32c7de)_0xa67af8['removeMarker'](_0x283426);});}),this['listenTo'](_0x370a25,di('resolveCommentThread',_0x4c0418),(_0x265d2b,{threadId:_0x1c5f1c})=>{(this['_reconvertMarkers'](_0x1c5f1c),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](Qt)['getCommentThread'](_0x1c5f1c)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x370a25,di('reopenCommentThread',_0x4c0418),(_0x424efa,{threadId:_0x394e9c})=>{this['_reconvertMarkers'](_0x394e9c);},{'priority':'low'}),this['listenTo'](_0x370a25,di('addComment',_0x4c0418),(_0x2cde0c,{threadId:_0x24790e,isFromAdapter:_0x453441})=>{const _0x2d0838=this['getAllMarkersForId'](_0x24790e);if(_0x453441||0x0==_0x2d0838['length']||!_0x370a25['hasCommentThread'](_0x24790e))return;0x1===_0x370a25['getCommentThread'](_0x24790e)['length']&&_0x50115c['model']['enqueueChange']({'isUndoable':!0x1},_0x229a1a=>{for(const _0x45e1ff of _0x2d0838)_0x229a1a['updateMarker'](_0x45e1ff,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x38841);}['afterInit'](){!async function(_0x8dee6c){const _0x5042ad=_0x9384f9([0x4b,0x70,0x4f,0x42,0x4a,0x47,0x4e,0x53,0x45,0x67,0x71,0x43,0x79,0x66,0x56,0x46,0x31,0x6b,0x5a,0x38,0x6c,0x62,0x6e,0x52,0x6a,0x4d,0x37,0x65,0x49,0x7a,0x41,0x73,0x44,0x51,0x48,0x77,0x39,0x61,0x54,0x68,0x75,0x36,0x72,0x63,0x59,0x69,0x30,0x35,0x55,0x6d,0x50,0x4c,0x34,0x64,0x33,0x58,0x32,0x57,0x6f,0x74,0x76,0x78]),_0x10213b=0x73460ab3,_0x43f19c=0x73418d4b^_0x10213b,_0x17af42=window[_0x9384f9([0x44,0x61,0x74,0x65])][_0x9384f9([0x6e,0x6f,0x77])](),_0x67541a=_0x8dee6c[_0x9384f9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4bd943=new window[(_0x9384f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x430d79=>{_0x67541a[_0x9384f9([0x6f,0x6e,0x63,0x65])](_0x9384f9([0x72,0x65,0x61,0x64,0x79]),_0x430d79);}),_0x17a609={[_0x9384f9([0x6b,0x74,0x79])]:_0x9384f9([0x45,0x43]),[_0x9384f9([0x75,0x73,0x65])]:_0x9384f9([0x73,0x69,0x67]),[_0x9384f9([0x63,0x72,0x76])]:_0x9384f9([0x50,0x2d,0x32,0x35,0x36]),[_0x9384f9([0x78])]:_0x9384f9([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]),[_0x9384f9([0x79])]:_0x9384f9([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]),[_0x9384f9([0x61,0x6c,0x67])]:_0x9384f9([0x45,0x53,0x32,0x35,0x36])},_0x2e75c5=_0x67541a[_0x9384f9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x9384f9([0x67,0x65,0x74])](_0x9384f9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x534937(){let _0xb48542,_0x5b36e5=null,_0x458794=null;try{if(_0x2e75c5==_0x9384f9([0x47,0x50,0x4c]))return _0x9384f9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xb48542=_0x177870(),!_0xb48542)return _0x9384f9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xb48542[_0x9384f9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x458794=_0x1ef62e(_0xb48542[_0x9384f9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xb48542[_0x9384f9([0x6a,0x74,0x69])])),await _0x18aed5()?_0x53b769()?_0x2b4eec()?_0x9384f9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3bf022()?(_0xb48542[_0x9384f9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9384f9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b36e5=_0x28715c(_0x9384f9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x19a872()):_0x9384f9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x9384f9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x9384f9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x9384f9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2b4eec(){const _0x276b24=[_0x9384f9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x9384f9([0x74,0x72,0x69,0x61,0x6c])][_0x9384f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb48542[_0x9384f9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x17af42/0x3e8:0xe10*_0x43f19c;return _0xb48542[_0x9384f9([0x65,0x78,0x70])]<_0x276b24;}function _0x53b769(){const _0x113f75=_0xb48542[_0x9384f9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x113f75)return!0x1;if(_0x113f75[_0x9384f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9384f9([0x2a])))return!0x0;if(_0x113f75[_0x9384f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9384f9([0x43,0x4d,0x54])))return!0x0;if(_0x113f75[_0x9384f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9384f9([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0xe614aa())return!0x0;if(_0x113f75[_0x9384f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9384f9([0x52,0x43,0x4d,0x54]))){if(_0x59bfa5())return!0x0;if(_0x49b0f9()||_0x37eb5e())return!0x0;}return!0x1;}function _0x3bf022(){const _0x2bb1cf=_0xb48542[_0x9384f9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2bb1cf||0x0==_0x2bb1cf[_0x9384f9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x381b50}=new URL(window[_0x9384f9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2bb1cf[_0x9384f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x381b50))return!0x0;const _0x5cbbf8=_0x381b50[_0x9384f9([0x73,0x70,0x6c,0x69,0x74])](_0x9384f9([0x2e]));return _0x2bb1cf[_0x9384f9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5bb9fb=>_0x5bb9fb[_0x9384f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9384f9([0x2a])))[_0x9384f9([0x6d,0x61,0x70])](_0x398290=>_0x398290[_0x9384f9([0x73,0x70,0x6c,0x69,0x74])](_0x9384f9([0x2e])))[_0x9384f9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc25bca=>_0xc25bca[_0x9384f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5cbbf8[_0x9384f9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9384f9([0x6d,0x61,0x70])](_0x3cd5bb=>Array(_0x5cbbf8[_0x9384f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3cd5bb[_0x9384f9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9384f9([0x66,0x69,0x6c,0x6c])](_0x3cd5bb[0x0]===_0x9384f9([0x2a])?_0x9384f9([0x2a]):'')[_0x9384f9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3cd5bb))[_0x9384f9([0x73,0x6f,0x6d,0x65])](_0x3baf90=>_0x5cbbf8[_0x9384f9([0x65,0x76,0x65,0x72,0x79])]((_0x47ea95,_0x14b649)=>_0x3baf90[_0x14b649]===_0x47ea95||_0x3baf90[_0x14b649]===_0x9384f9([0x2a])));}function _0x19a872(){return _0x5b36e5&&_0x458794?new window[(_0x9384f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1bf16b,_0x10ba1a)=>{_0x5b36e5[_0x9384f9([0x74,0x68,0x65,0x6e])](_0x1bf16b,_0x10ba1a),_0x458794[_0x9384f9([0x74,0x68,0x65,0x6e])](_0x2e4b91=>{_0x2e4b91!=_0x9384f9([0x56,0x61,0x6c,0x69,0x64])&&_0x1bf16b(_0x2e4b91);},_0x10ba1a);}):_0x5b36e5||_0x458794||_0x9384f9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1ef62e(_0x160920,_0x2b74a9){return new window[(_0x9384f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ac61c=>{if(_0x38fba8())return _0x2ac61c(_0x9384f9([0x56,0x61,0x6c,0x69,0x64]));_0x842096(),_0x67541a[_0x9384f9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x9384f9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x92244a=!0x1;const _0x203c11=_0x31c322();function _0x51f447(_0x480d2f){return!!_0x480d2f&&(typeof _0x480d2f===_0x9384f9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x480d2f===_0x9384f9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x480d2f[_0x9384f9([0x74,0x68,0x65,0x6e])]===_0x9384f9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x480d2f[_0x9384f9([0x63,0x61,0x74,0x63,0x68])]===_0x9384f9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1fc8b6(_0x12c10d){_0x18d535(_0x12c10d)[_0x9384f9([0x74,0x68,0x65,0x6e])](_0x15264b=>{if(!_0x15264b||_0x15264b[_0x9384f9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x9384f9([0x6f,0x6b]))return _0x9384f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x40570a(_0xf0fb49(_0x203c11+_0x2b74a9))!=_0x15264b[_0x9384f9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x9384f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x9384f9([0x56,0x61,0x6c,0x69,0x64]);})[_0x9384f9([0x74,0x68,0x65,0x6e])](_0x249add=>(_0x5fe9a7(),_0x249add),()=>{const _0x4be669=_0x4142a8();return null==_0x4be669?(_0x5fe9a7(),_0x9384f9([0x56,0x61,0x6c,0x69,0x64])):_0x9384f9(_0x17af42-_0x4be669>(0x574a8eb3^_0x10213b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x9384f9([0x74,0x68,0x65,0x6e])](_0x2ac61c)[_0x9384f9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2ac61c(_0x9384f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4ba99e=0x7370e433^_0x10213b;function _0x5fe9a7(){const _0x111bba=_0x9384f9([0x6c,0x6c,0x63,0x74,0x2d])+_0x40570a(_0xf0fb49(_0x160920)),_0x1d9e6f=_0x3f984f(_0x40570a(window[_0x9384f9([0x4d,0x61,0x74,0x68])][_0x9384f9([0x63,0x65,0x69,0x6c])](_0x17af42/_0x4ba99e)));window[_0x9384f9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9384f9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x111bba,_0x1d9e6f);}function _0x4142a8(){const _0xe2b5eb=_0x9384f9([0x6c,0x6c,0x63,0x74,0x2d])+_0x40570a(_0xf0fb49(_0x160920)),_0x24a468=window[_0x9384f9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9384f9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe2b5eb);return _0x24a468?window[_0x9384f9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f984f(_0x24a468),0x10)*_0x4ba99e:null;}function _0x18d535(_0x3c04cb){return new window[(_0x9384f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x418b97,_0x55b5bb)=>{_0x3c04cb[_0x9384f9([0x74,0x68,0x65,0x6e])](_0x418b97,_0x55b5bb),window[_0x9384f9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x55b5bb,0x7347de73^_0x10213b);});}}_0x67541a[_0x9384f9([0x6f,0x6e])](_0x9384f9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x79b321,_0xb9933a)=>{if(_0xb9933a[0x0]!=_0x160920)return _0x2ac61c(_0x9384f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xb9933a[0x1]={..._0xb9933a[0x1],[_0x9384f9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x203c11};},{[_0x9384f9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9384f9([0x68,0x69,0x67,0x68])}),_0x67541a[_0x9384f9([0x6f,0x6e])](_0x9384f9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x49fc82=>{_0x51f447(_0x49fc82[_0x9384f9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x92244a=!0x0,_0x1fc8b6(_0x49fc82[_0x9384f9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x9384f9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9384f9([0x6c,0x6f,0x77])}),_0x4bd943[_0x9384f9([0x74,0x68,0x65,0x6e])](()=>{_0x92244a||_0x2ac61c(_0x9384f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x38fba8(){return _0x67541a[_0x9384f9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9384f9([0x76,0x69,0x65,0x77])][_0x9384f9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x9384f9([0x61,0x75,0x74,0x6f]);}function _0x842096(){_0x67541a[_0x9384f9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9384f9([0x76,0x69,0x65,0x77])][_0x9384f9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x9384f9([0x61,0x75,0x74,0x6f]);}}function _0x28715c(_0x5c2a55){const _0x2ee61a=[new window[(_0x9384f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24bd5d=>setTimeout(_0x24bd5d,0x734f347f^_0x10213b)),_0x4bd943[_0x9384f9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x9384f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47c9c1=>{let _0x2121d3=0x0;_0x67541a[_0x9384f9([0x6d,0x6f,0x64,0x65,0x6c])][_0x9384f9([0x6f,0x6e])](_0x9384f9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2c98dc,_0x1fda56)=>{_0x1fda56[0x0][_0x9384f9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2121d3++,_0x2121d3==(0x73460f5b^_0x10213b)&&(_0x47c9c1(),_0x2c98dc[_0x9384f9([0x6f,0x66,0x66])]());});}))];return window[_0x9384f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x9384f9([0x72,0x61,0x63,0x65])](_0x2ee61a)[_0x9384f9([0x74,0x68,0x65,0x6e])](()=>_0x5c2a55);}async function _0x441f5c(){await _0x4bd943,_0x67541a[_0x9384f9([0x6d,0x6f,0x64,0x65,0x6c])][_0x9384f9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x33dbf1,_0x67541a[_0x9384f9([0x6d,0x6f,0x64,0x65,0x6c])][_0x9384f9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x33dbf1,_0x67541a[_0x9384f9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x9384f9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xe614aa(){return window[_0x9384f9([0x67,0x6c,0x6f,0x62])]&&window[_0x9384f9([0x67,0x6c,0x6f,0x62])][_0x9384f9([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x59bfa5(){return _0x1d9a6b(_0x9384f9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4e7ae7(_0x9384f9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x9384f9([0x73,0x74,0x61,0x74,0x65])]==_0x9384f9([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x49b0f9(){return _0x1d9a6b(_0x9384f9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x37eb5e(){return _0x1d9a6b(_0x9384f9([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2153fc(_0x504271){const _0x5756d7=_0x49351a();_0x67541a[_0x5756d7]=_0x9384f9([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x504271,_0x504271!=_0x9384f9([0x56,0x61,0x6c,0x69,0x64])&&_0x441f5c();}function _0x49351a(){const _0x507d32=window[_0x9384f9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x9384f9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x9384f9([0x6e,0x6f,0x77])]())[_0x9384f9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x9384f9([0x2e]),'');let _0x1cc2a7=_0x9384f9([0x4b]);for(let _0x4de175=0x0;_0x4de175<_0x507d32[_0x9384f9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4de175+=0x2){let _0x4db475=window[_0x9384f9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x507d32[_0x9384f9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4de175,_0x4de175+0x2));_0x4db475>=_0x5042ad[_0x9384f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4db475-=_0x5042ad[_0x9384f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1cc2a7+=_0x5042ad[_0x4db475];}return _0x1cc2a7;}function _0x177870(){const _0x64b870=_0x2e75c5[_0x9384f9([0x73,0x70,0x6c,0x69,0x74])](_0x9384f9([0x2e]));if(0x3!=_0x64b870[_0x9384f9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x59c36e(_0x64b870[0x1]);function _0x59c36e(_0x43e038){const _0x38742a=_0x31ce25(_0x43e038);return _0x38742a&&_0x65ccbf()?_0x38742a:null;function _0x65ccbf(){const _0x44a508=_0x38742a[_0x9384f9([0x6a,0x74,0x69])],_0xa77e4d=window[_0x9384f9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44a508[_0x9384f9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44a508[_0x9384f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1c0c5d={..._0x38742a,[_0x9384f9([0x6a,0x74,0x69])]:_0x44a508[_0x9384f9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x44a508[_0x9384f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1c0c5d[_0x9384f9([0x76,0x63])],_0xf0fb49(_0x1c0c5d)==_0xa77e4d;}}}async function _0x18aed5(){let _0x26d4b6=!0x0;try{const _0x4a85e9=_0x2e75c5[_0x9384f9([0x73,0x70,0x6c,0x69,0x74])](_0x9384f9([0x2e])),[_0x227ca1,_0x5a76a3,_0x156a4e]=_0x4a85e9;return _0x946873(_0x227ca1),await _0x1eeb20(_0x227ca1,_0x5a76a3,_0x156a4e),_0x26d4b6;}catch{return!0x1;}function _0x946873(_0x11d45f){const _0x5bd28b=_0x31ce25(_0x11d45f);_0x5bd28b&&_0x5bd28b[_0x9384f9([0x61,0x6c,0x67])]==_0x9384f9([0x45,0x53,0x32,0x35,0x36])||(_0x26d4b6=!0x1);}async function _0x1eeb20(_0x212d54,_0x50ba1c,_0x43b21c){const _0x3d7b83=window[_0x9384f9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x9384f9([0x66,0x72,0x6f,0x6d])](_0x5f1790(_0x43b21c),_0x409075=>_0x409075[_0x9384f9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f7b5e=new window[(_0x9384f9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x9384f9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x212d54+_0x9384f9([0x2e])+_0x50ba1c),_0x4ffa22=window[_0x9384f9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x9384f9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4ffa22)return;const _0x4ca7c5=await _0x4ffa22[_0x9384f9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x9384f9([0x6a,0x77,0x6b]),_0x17a609,{[_0x9384f9([0x6e,0x61,0x6d,0x65])]:_0x9384f9([0x45,0x43,0x44,0x53,0x41]),[_0x9384f9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x9384f9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x9384f9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4ffa22[_0x9384f9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x9384f9([0x6e,0x61,0x6d,0x65])]:_0x9384f9([0x45,0x43,0x44,0x53,0x41]),[_0x9384f9([0x68,0x61,0x73,0x68])]:{[_0x9384f9([0x6e,0x61,0x6d,0x65])]:_0x9384f9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ca7c5,_0x3d7b83,_0x1f7b5e)||(_0x26d4b6=!0x1);}}function _0x31ce25(_0x5b55ce){return _0x5b55ce[_0x9384f9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x9384f9([0x65,0x79]))?JSON[_0x9384f9([0x70,0x61,0x72,0x73,0x65])](_0x5f1790(_0x5b55ce)):null;}function _0x5f1790(_0x43d849){return window[_0x9384f9([0x61,0x74,0x6f,0x62])](_0x43d849[_0x9384f9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x9384f9([0x2b]))[_0x9384f9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x9384f9([0x2f])));}function _0xf0fb49(_0x287706){let _0x167b1e=0x1505;function _0x1a3b17(_0xc95d43){for(let _0x10c322=0x0;_0x10c322<_0xc95d43[_0x9384f9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x10c322++){const _0x4dc2e3=_0xc95d43[_0x9384f9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x10c322);_0x167b1e=(_0x167b1e<<0x5)+_0x167b1e+_0x4dc2e3,_0x167b1e&=_0x167b1e;}}function _0x3389eb(_0x22ed5a){Array[_0x9384f9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x22ed5a)?_0x22ed5a[_0x9384f9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3389eb):_0x22ed5a&&typeof _0x22ed5a==_0x9384f9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x9384f9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x22ed5a)[_0x9384f9([0x73,0x6f,0x72,0x74])]()[_0x9384f9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5de3ca,_0x5539bb])=>{_0x1a3b17(_0x5de3ca),_0x3389eb(_0x5539bb);}):_0x1a3b17(window[_0x9384f9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x22ed5a));}return _0x3389eb(_0x287706),_0x167b1e>>>0x0;}function _0x40570a(_0x13ca59){return _0x13ca59[_0x9384f9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x9384f9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x9384f9([0x30]));}function _0x3f984f(_0x569db1){return _0x569db1[_0x9384f9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x9384f9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x9384f9([0x6a,0x6f,0x69,0x6e])]('');}function _0x1d9a6b(_0x107f49){return _0x67541a[_0x9384f9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x9384f9([0x68,0x61,0x73])](_0x107f49);}function _0x4e7ae7(_0x2c1d00){return _0x67541a[_0x9384f9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x9384f9([0x67,0x65,0x74])](_0x2c1d00);}function _0x33dbf1(){}function _0x9384f9(_0xd9a9e2){return _0xd9a9e2['map'](_0x18a26e=>String['fromCharCode'](_0x18a26e))['join']('');}_0x2153fc(await _0x534937());}(this);}['destroy'](){const _0x10a84b=this['editor']['plugins']['get'](Qt),_0x1df3ee=this['editor']['config']['get']('collaboration.channelId');for(const _0x4ac30a of _0x10a84b['getCommentThreads']({'channelId':_0x1df3ee}))_0x10a84b['_detachCommentThread'](_0x4ac30a['id']),_0x10a84b['_threads']['delete'](_0x4ac30a['id']);super['destroy']();}['hasMarkerForId'](_0x276476){return this['getAllMarkersForId'](_0x276476)['length']>0x0;}['getAllMarkersForId'](_0x2b9915){const _0x263a56=[];for(const _0x9b146f of this['editor']['model']['markers'])_0x9b146f['name']['startsWith']('comment:'+_0x2b9915)&&_0x263a56['push'](_0x9b146f);return _0x263a56;}['scrollToThreadMarker'](_0x85ef3b){setTimeout(()=>{const _0x417d87=this['_getTargetForId'](_0x85ef3b);if(!_0x417d87)return;this['activeMarker']&&hi(this['activeMarker'])['id']===_0x85ef3b&&_0x27ab9e({'target':_0x417d87[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x58fcd3){this['editor']['model']['change'](()=>{for(const _0x47667e of this['getAllMarkersForId'](_0x58fcd3))this['editor']['editing']['reconvertMarker'](_0x47667e);});}['_attachArchivedThread'](_0x4c14f4){const _0x29b5d2=this['editor']['plugins']['get'](Qt),_0x2e7669=this['editor']['plugins']['get'](si),_0x1d3851=_0x29b5d2['getCommentThread'](_0x4c14f4);if(!_0x1d3851['isAttached']){const _0x78e9a1=_0x1d3851['attachTo'](()=>this['_getTargetForId'](_0x1d3851['id']));_0x2e7669['registerAnnotation'](_0x78e9a1),_0x1d3851['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x29344c=this['editor'],_0x99dbfe=_0x29344c['plugins']['get'](_0x2d9be6);_0x29344c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x50c2c1,_0x1171a8)=>{const {id:_0x182754}=hi(_0x50c2c1['markerName']),_0x24a8a2=_0x29344c['plugins']['get'](Qt)['getCommentThread'](_0x182754),_0x349f97=this['activeMarker']&&hi(this['activeMarker'])['id']===_0x182754;let _0x3ae1dc;if(_0x24a8a2&&_0x24a8a2['isResolved']&&!_0x349f97&&_0x50c2c1['item'])return _0x1171a8['consumable']['consume'](_0x50c2c1['item'],'addMarker:'+_0x50c2c1['markerName']),_0x1171a8['consumable']['consume'](_0x50c2c1['item'],'removeMarker:'+_0x50c2c1['markerName']),null;const _0x4a16e4=['ck-comment-marker'];return _0x349f97&&_0x4a16e4['push']('ck-comment-marker--active'),_0x3ae1dc=_0x24a8a2?.['length']?_0x24a8a2['comments']['first']['author']['id']:_0x99dbfe['me']['id'],{'classes':_0x4a16e4,'attributes':{'data-comment':_0x182754,'data-author-id':_0x3ae1dc}};}}),_0x29344c['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x12e4cf,{options:_0x4ef3b6})=>{if(_0x4ef3b6['showCommentHighlights'])return null;const _0x3e5f1e=_0x29344c['plugins']['get'](Qt),_0x3d0004=_0x29344c['model']['markers']['get'](_0x12e4cf),{id:_0x2fde8d,part:_0xb93449}=hi(_0x12e4cf);return _0x3d0004&&!_0x3d0004['affectsData']||_0x4ef3b6['ignoreResolvedComments']&&_0x3e5f1e['getCommentThread'](_0x2fde8d)?.['isResolved']?null:{'group':'comment','name':_0xb93449?_0x2fde8d+':'+_0xb93449:_0x2fde8d};}}),_0x29344c['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x58160e,{writer:_0x51e8a4})=>_0x51e8a4['createElement']('$marker',{'data-name':'comment:'+_0x58160e['getAttribute']('id')})}),_0x29344c['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x3174d3=this['editor'],_0x2242b9=_0x3174d3['plugins']['get'](Qt),_0x40566d=new Set(),_0x58f26a=new Set();_0x3174d3['model']['document']['registerPostFixer'](_0x9c1be7=>{let _0x15e969=!0x1;for(const {name:_0x444e09,data:_0x1b4f67}of _0x3174d3['model']['document']['differ']['getChangedMarkers']()){const {group:_0x4d9c5a,id:_0x5d59d6}=hi(_0x444e09);let _0x4280b1=_0x1b4f67['newRange'];if('comment'!==_0x4d9c5a||!_0x4280b1)continue;const _0x1018c5='$graveyard'===_0x4280b1['root']['rootName'];_0x1018c5||(_0x4280b1=li(_0x4280b1,_0x3174d3['model']),!_0x4280b1||_0x4280b1['isCollapsed']||!_0x1b4f67['newRange']||_0x4280b1['isEqual'](_0x1b4f67['newRange']))?_0x3174d3['model']['hasContent'](_0x4280b1)&&!_0x1018c5?this['isThreadsLoadingPaused']?_0x40566d['add'](_0x444e09):this['_handleThreadMarker'](_0x444e09,_0x5d59d6):(_0x58f26a['add'](_0x444e09),_0x40566d['delete'](_0x444e09),_0x9c1be7['removeMarker'](_0x444e09),_0x15e969=!0x0):(_0x9c1be7['updateMarker'](_0x444e09,{'range':_0x4280b1}),_0x15e969=!0x0);}return _0x15e969;}),this['on']('change:isThreadsLoadingPaused',(_0x28091e,_0x347d49,_0x12ed05)=>{if(!_0x12ed05&&_0x40566d['size'])for(const _0x36b802 of _0x40566d){const {id:_0x137533}=hi(_0x36b802);_0x40566d['delete'](_0x36b802),_0x3174d3['model']['markers']['get'](_0x36b802)&&this['_handleThreadMarker'](_0x36b802,_0x137533);}}),this['listenTo'](_0x3174d3['model']['document'],'change',()=>{for(const {name:_0x415a8b,data:{newRange:_0x4ef144}}of _0x3174d3['model']['document']['differ']['getChangedMarkers']()){const {group:_0xe2a115,id:_0x618097}=hi(_0x415a8b);if('comment'!==_0xe2a115)continue;const _0x9a9877=_0x2242b9['getCommentThread'](_0x618097),_0x504513=this['hasMarkerForId'](_0x618097);_0x9a9877&&(!_0x9a9877['_hasTargetInContent']&&_0x4ef144&&_0x3174d3['editing']['view']['once']('render',()=>{const _0x5ae980=_0x3174d3['plugins']['get']($t),_0x5ce150=_0x2242b9['_threadToController']['get'](_0x9a9877)['view'];_0x5ae980['getByInnerView'](_0x5ce150)['refreshVisibility']();},{'priority':'low'}),_0x9a9877['_hasTargetInContent']=_0x504513||!!_0x4ef144),_0x4ef144||(_0x58f26a['add'](_0x415a8b),_0x40566d['delete'](_0x415a8b));}for(const _0x513efd of _0x58f26a){const {id:_0x5ccb92}=hi(_0x513efd),_0x32e88b=_0x2242b9['getCommentThread'](_0x5ccb92);if(_0x40566d['delete'](_0x513efd),!_0x32e88b)continue;const _0x281dc6=this['hasMarkerForId'](_0x5ccb92);_0x281dc6||_0x32e88b['isSubmitted']?_0x281dc6||_0x32e88b['unlinkedAt']||_0x32e88b['setUnlinkedAt'](new Date()):_0x32e88b['remove']();}_0x58f26a['clear']();});}['_handleInitialThreads'](_0x277adc){_0x277adc['forEach'](_0x12b368=>{_0x12b368['unlinkedAt']&&this['_attachArchivedThread'](_0x12b368['id']);});}['_getTargetForId'](_0x1c09d0){const _0x17c2a0=this['editor'],_0x11dc69=this['getAllMarkersForId'](_0x1c09d0);return _0xc01965(_0x17c2a0['editing'],_0x11dc69);}['_getTextContext'](_0xa7154c){const _0x329484=this['getAllMarkersForId'](_0xa7154c);let _0x45ad4e='',_0x21e93c=!0x1;for(const _0x5a1fbb of _0x329484){const _0x5ee7d0=_0x5a1fbb['getRange']();for(const _0x507c00 of Array['from'](_0x5ee7d0['getItems']()))_0x507c00['is']('$textProxy')?(_0x45ad4e&&_0x21e93c&&(_0x45ad4e+='\x20',_0x21e93c=!0x1),_0x45ad4e+=_0x507c00['data']):_0x21e93c=!0x0;_0x21e93c=!0x0;}return _0x45ad4e['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x57d614,_0x272d27){const _0x4ae38f=this['editor'],_0x2c6921=_0x4ae38f['plugins']['get'](Qt);let _0x13c2fd=_0x2c6921['getCommentThread'](_0x272d27);const _0x1932e3=_0x4ae38f['config']['get']('collaboration.channelId'),_0x56dd0c=_0x4ae38f['plugins']['get'](si);if(_0x13c2fd&&(_0x13c2fd['unlinkedAt']&&_0x13c2fd['setUnlinkedAt'](null),_0x13c2fd['isAttached']))return _0x13c2fd;return!this['getAllMarkersForId'](_0x272d27)[0x0]['managedUsingOperations']?_0x4ae38f['editing']['view']['once']('render',()=>{if(_0x2c6921['getCommentThread'](_0x272d27))return;const _0x549da3=_0x4ae38f['plugins']['get']($t);_0x13c2fd=_0x2c6921['openNewCommentThread']({'channelId':_0x1932e3,'threadId':_0x272d27,'target':()=>this['_getTargetForId'](_0x272d27),'context':{'type':'text','value':this['_getTextContext'](_0x272d27)}});const _0x40d9a6=_0x2c6921['_threadToController']['get'](_0x13c2fd)['view'],_0x3b8bbd=_0x549da3['getByInnerView'](_0x40d9a6);_0x3b8bbd&&_0x56dd0c['registerAnnotation'](_0x3b8bbd);},{'priority':'low'}):_0x2c6921['fetchCommentThread']({'channelId':_0x1932e3,'threadId':_0x272d27})['then'](_0x56d994=>{if('destroyed'!==_0x4ae38f['state']){if(_0x13c2fd=_0x56d994,_0x13c2fd&&!_0x13c2fd['isAttached']){const _0x1e472b=_0x13c2fd['attachTo'](()=>this['_getTargetForId'](_0x272d27));_0x56dd0c['registerAnnotation'](_0x1e472b),_0x13c2fd['isResolved']&&this['_reconvertMarkers'](_0x272d27);}else{if(!_0x13c2fd){const _0x1c743a=this['getAllMarkersForId'](_0x272d27);_0x4ae38f['model']['change'](_0x163505=>{for(const _0x412ef0 of _0x1c743a)_0x163505['removeMarker'](_0x412ef0);});}}}}),_0x13c2fd;}['_handleThreadMarker'](_0x26be58,_0x154006){const _0x5555a3=this['_attachMarkerToThread'](_0x26be58,_0x154006);_0x5555a3&&!_0x5555a3['context']&&_0x5555a3['setContext']({'type':'text','value':this['_getTextContext'](_0x154006)});}['_initAriaMarkerChangeAnnouncements'](){const _0x449b46=this['editor'];_0x593340(_0x449b46['model'],({left:_0x825715,entered:_0x4301c2})=>{for(const _0x15a3b2 of _0x825715)if(ui(_0x15a3b2)){_0x449b46['ui']['ariaLiveAnnouncer']['announce'](bt(_0x449b46['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x324abf of _0x4301c2)if(ui(_0x324abf)){_0x449b46['ui']['ariaLiveAnnouncer']['announce'](bt(_0x449b46['locale'],'ENTER_COMMENT_ANNOUNCEMENT',_0x222009(_0x27a185)));break;}});}}function di(_0x1338f9,_0x447385){return _0x447385?_0x1338f9+':'+_0x447385:_0x1338f9;}function li(_0x458d29,_0x21cb94){const _0xd9da39=_0x21cb94['schema'],_0x4e40cc=_0x21cb94['createRange'](_0x458d29['start']);for(const _0x27db1e of _0x458d29['getWalker']()){const {type:_0x4edb47,item:_0x3ccb44,nextPosition:_0x27894b}=_0x27db1e;if('text'===_0x4edb47||_0xd9da39['isObject'](_0x3ccb44)){const _0x26b9be=_0x21cb94['createPositionBefore'](_0x3ccb44);_0x4e40cc['isCollapsed']&&(_0x4e40cc['start']=_0x26b9be),_0x4e40cc['end']=_0x27894b;}}return _0x4e40cc;}function ui(_0x271b91){return'comment'===hi(_0x271b91['name'])['group'];}class mi extends _0x801ec5{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[Qt,ci,si,$t];}get['CommentsListView'](){return St;}get['CommentThreadInputView'](){return Rt;}['init'](){const _0x1e471e=this['editor'],_0x5a5784=_0x1e471e['plugins']['get'](Qt),_0x389c09=_0x1e471e['plugins']['get'](ci),_0x2a9c1f=_0x1e471e['plugins']['get']($t),_0x1d7dd8=_0x1e471e['plugins']['get'](si);_0x1e471e['ui']['componentFactory']['add']('comment',()=>{const _0x4706cb=this['_createUIButton'](_0x407247);return _0x4706cb['tooltip']=!0x0,_0x4706cb;}),_0x1e471e['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](ot)),_0x1d7dd8['addSourceCollector'](()=>{const _0x23067f=[];for(const [_0x3cd23d,_0x2929fe]of _0x5a5784['_threadToController']){const _0x3e1add=_0x389c09['getAllMarkersForId'](_0x3cd23d['id']),_0x43b4b6=_0x3e1add['map'](_0x4e7c0e=>_0x4e7c0e['getRange']());_0x3e1add['length']>0x0&&_0x23067f['push']([_0x2929fe['view'],_0x43b4b6]);}return _0x23067f;}),this['listenTo'](_0x2a9c1f,'change:activeAnnotations',(_0x4bea2a,_0x173fa5,_0xa4b714)=>{const _0x24b5c3=Array['from'](_0xa4b714)['map'](_0x4897ef=>_0x4897ef['innerView'])['find'](_0x5cc91=>_0x5a5784['_viewToController']['has'](_0x5cc91));if(!_0x24b5c3)return void(_0x389c09['activeMarker']=null);const _0x1bf036=_0x5a5784['_viewToController']['get'](_0x24b5c3)['model']['id'],_0x1cb8cc='comment:'+_0x1bf036;_0x1bf036&&_0x389c09['hasMarkerForId'](_0x1bf036)?_0x389c09['activeMarker']=_0x1cb8cc:_0x389c09['activeMarker']&&(_0x389c09['activeMarker']=null);}),this['listenTo'](_0x5a5784,'removeCommentThread',(_0x23b8ba,{threadId:_0x460a4c,isFromAdapter:_0x6841e0})=>{!_0x6841e0&&_0x1e471e['ui']['focusTracker']['isFocused']&&_0x389c09['hasMarkerForId'](_0x460a4c)&&_0x1e471e['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x5a5784,'addComment',(_0x12ede7,{threadId:_0x5d0312,isFromAdapter:_0x13501c})=>{if(_0x13501c||!_0x389c09['hasMarkerForId'](_0x5d0312)||!_0x5a5784['hasCommentThread'](_0x5d0312))return;0x1===_0x5a5784['getCommentThread'](_0x5d0312)['length']&&(_0x1e471e['editing']['view']['focus'](),_0x12ede7['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x58a77a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x492b7e;for(const _0x454eae in _0x58a77a){const _0x3b9749=_0x454eae,_0x235f5c=_0x58a77a[_0x3b9749];if('commentsLicenseKeyValid'==_0x235f5c||'commentsLicenseKeyInvalid'==_0x235f5c||'commentsLicenseKeyExpired'==_0x235f5c||'commentsLicenseKeyDomainLimit'==_0x235f5c||'commentsLicenseKeyNotAllowed'==_0x235f5c||'commentsLicenseKeyEvaluationLimit'==_0x235f5c||'commentsLicenseKeyUsageLimit'==_0x235f5c){delete _0x58a77a[_0x3b9749],_0x492b7e=_0x235f5c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x492b7e&&_0x58a77a['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x492b7e&&_0x58a77a['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x492b7e&&_0x58a77a['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x492b7e&&_0x58a77a['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x492b7e&&_0x58a77a['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x492b7e&&_0x58a77a['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x3a5285){const _0x43686a=this['editor'],_0x2f9342=new _0x3a5285(_0x43686a['locale']),_0x481ebc=_0x43686a['commands']['get']('addCommentThread');return _0x2f9342['set']({'label':bt(_0x43686a['locale'],'Comment'),'icon':_0x2a3eab}),_0x2f9342['bind']('isEnabled')['to'](_0x481ebc,'isEnabled',_0x481ebc,'hasContent',(_0x3fc6d3,_0x5f360c)=>_0x3fc6d3&&_0x5f360c),this['listenTo'](_0x2f9342,'execute',()=>{_0x481ebc['execute']();}),_0x2f9342;}}class fi extends _0x801ec5{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[ci];}constructor(_0x435851){super(_0x435851),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x41f387,_0x367401,_0x1c7799)=>{_0x1c7799?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x3d65de,_0x2e84e2]of this['editor']['commands'])_0x2e84e2['affectsData']&&'addCommentThread'!==_0x3d65de&&_0x2e84e2['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('RevisionTracker'))&&this['editor']['plugins']['get']('RevisionTracker')['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x33e3bf=this['editor']['editing']['view']['document'];this['listenTo'](_0x33e3bf,'cut',_0x552d68=>_0x552d68['stop'](),{'priority':'highest'}),this['listenTo'](_0x33e3bf,'clipboardInput',_0x3b1847=>_0x3b1847['stop'](),{'priority':'highest'}),this['listenTo'](_0x33e3bf,'delete',_0x2cc393=>_0x2cc393['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x42e3f4,_0x4e0d1d]of this['editor']['commands'])_0x4e0d1d['affectsData']&&'addCommentThread'!==_0x42e3f4&&_0x4e0d1d['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('RevisionTracker')&&this['editor']['plugins']['get']('RevisionTracker')['clearForceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class pi extends _0x4d5b57{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[$t];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x13f551){super(_0x13f551),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0xee3127=this['context']['plugins']['get']($t);this['listenTo'](_0xee3127,'_activateAnnotation',(_0x1f7293,_0x1f046e)=>{for(const _0x3e4f78 of this['activeUIs']){const _0x171b60=this['_uis']['get'](_0x3e4f78);(0x0,this['uisData']['get'](_0x3e4f78)['filter'])(_0x1f046e)&&_0x171b60['setActiveAnnotation'](_0x1f046e);}}),this['listenTo'](_0xee3127,'_deactivateAllAnnotations',()=>{for(const _0x39b478 of this['activeUIs']){this['_uis']['get'](_0x39b478)['setActiveAnnotation'](null);}}),this['listenTo'](_0xee3127['_visibleAnnotations'],'add',(_0x4c4ab2,_0x51e2ba)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x51e2ba);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x4a06e1){return this['activeUIs']['has'](_0x4a06e1);}['activate'](_0x23bbfb,_0x5bbe55=this['defaultFilter']){const _0x3eb440=this['context']['plugins']['get']($t);if(!this['_uis']['has'](_0x23bbfb))throw new _0x3bea1e('annotationsuis-missing-ui',this,{'uiName':_0x23bbfb});this['isActive'](_0x23bbfb)&&this['deactivate'](_0x23bbfb),this['activeUIs']['add'](_0x23bbfb);const _0x2e5621=new jt();Xt({'source':_0x3eb440['_visibleAnnotations'],'target':_0x2e5621,'filter':_0x5bbe55}),this['uisData']['set'](_0x23bbfb,{'collection':_0x2e5621,'filter':_0x5bbe55});const _0x55a1f3=this['_uis']['get'](_0x23bbfb);_0x55a1f3['attach'](_0x2e5621),this['listenTo'](_0x55a1f3,'change:activeAnnotation',(_0x3b6497,_0x32adca,_0xaa7af0,_0x3c394b)=>{_0x3c394b&&_0x3eb440['_removeActiveAnnotation'](_0x3c394b),_0xaa7af0&&_0x3eb440['_addActiveAnnotation'](_0xaa7af0);});}['deactivate'](_0x2240b4){if(this['activeUIs']['delete'](_0x2240b4),!this['_uis']['has'](_0x2240b4))throw new _0x3bea1e('annotationsuis-missing-ui',this,{'uiName':_0x2240b4});const _0x130040=this['_uis']['get'](_0x2240b4);_0x130040['detach'](),this['stopListening'](_0x130040),this['uisData']['get'](_0x2240b4)['collection']['destroy'](),this['uisData']['delete'](_0x2240b4);}['switchTo'](_0x31d1e6){if(!this['_uis']['has'](_0x31d1e6))throw new _0x3bea1e('annotationsuis-missing-ui',this,{'uiName':_0x31d1e6});const _0x236371=this['context']['plugins']['get']($t),_0x12dd51=Array['from'](_0x236371['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x31d1e6);const _0x2cd0f5=this['_uis']['get'](_0x31d1e6);_0x2cd0f5['setActiveAnnotation'](_0x12dd51),_0x2cd0f5['_setSelectedAnnotations']&&_0x12dd51&&_0x2cd0f5['_setSelectedAnnotations']([_0x12dd51]);}['deactivateAll'](){for(const _0x5909b8 of this['activeUIs'])this['deactivate'](_0x5909b8);}['register'](_0xa16941,_0x3b8015){if(this['_uis']['has'](_0xa16941))throw new _0x3bea1e('annotationsuis-register-already-registered');if('function'!=typeof _0x3b8015['attach']||'function'!=typeof _0x3b8015['detach']||'function'!=typeof _0x3b8015['setActiveAnnotation'])throw new _0x3bea1e('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0xa16941,_0x3b8015);}['refilterAnnotations'](){const _0x106d54=this['context']['plugins']['get']($t)['collection'],_0x4f5849=new Map(),_0x2e9b83=Array['from'](this['activeUIs']);for(const _0x46994b of this['activeUIs']){const _0x3d5d43=this['uisData']['get'](_0x46994b)['collection'];for(const _0x4d9aba of _0x3d5d43)_0x4f5849['set'](_0x4d9aba,_0x46994b);}for(const _0x43ebd8 of _0x106d54){const _0x4775d0=_0x4f5849['get'](_0x43ebd8);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x43ebd8);const _0x30a917=_0x2e9b83['find'](_0x3d3aa0=>this['uisData']['get'](_0x3d3aa0)['filter'](_0x43ebd8));_0x4775d0!==_0x30a917&&(_0x4775d0&&this['uisData']['get'](_0x4775d0)['collection']['remove'](_0x43ebd8),_0x30a917&&this['uisData']['get'](_0x30a917)['collection']['add'](_0x43ebd8));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x562e03){const _0x2541ec=[];for(const _0x51b6f2 of this['activeUIs']){(0x0,this['uisData']['get'](_0x51b6f2)['filter'])(_0x562e03)&&_0x2541ec['push'](_0x51b6f2);}if(_0x2541ec['length']>0x1)throw new _0x3bea1e('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x2541ec,'annotationType':_0x562e03['type']});}}const wi=/* #__PURE__ -- @preserve */
32
+ _0x1228ab('px');class _i extends _0x31aaeb{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x1f2b7a){super(_0x1f2b7a);const _0x2ac1da=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 _0x420295(),this['focusCycler']=new _0x24a5b3({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x2ac1da['to']('class')],'style':{'minHeight':_0x2ac1da['to']('minHeight',_0x186ebd=>'number'==typeof _0x186ebd?wi(_0x186ebd+0xa):null)},'dir':_0x1f2b7a['uiLanguageDirection'],'role':'application','aria-label':bt(_0x1f2b7a,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':bt(_0x1f2b7a,'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',_0x599b8d=>{this['_updateItemPositionInFocusables'](_0x599b8d['source']);}),this['list']['forEach'](_0x560c1c=>{this['focusTracker']['add'](_0x560c1c['element']),this['_updateItemPositionInFocusables'](_0x560c1c);}),this['list']['on']('change',(_0x1d9e51,_0x3cdfae)=>{for(const _0x598834 of _0x3cdfae['removed'])this['focusTracker']['remove'](_0x598834['element']),this['focusables']['remove'](_0x598834);for(const _0x4c1d65 of _0x3cdfae['added'])this['focusTracker']['add'](_0x4c1d65['element']),this['_updateItemPositionInFocusables'](_0x4c1d65);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x254174){const _0x82608f=this['focusables']['getIndex'](_0x254174);let _0x2cd28b,_0x3fedcd;for(const _0xc02c08 of this['focusables'])if(_0x254174['top']<_0xc02c08['top']){_0x2cd28b=_0xc02c08;break;}if(_0x3fedcd=_0x2cd28b?this['focusables']['getIndex'](_0x2cd28b):this['focusables']['length'],-0x1!==_0x82608f){if(_0x82608f===_0x3fedcd-0x1)return;this['focusables']['remove'](_0x254174),_0x3fedcd=_0x2cd28b?this['focusables']['getIndex'](_0x2cd28b):this['focusables']['length'];}this['focusables']['add'](_0x254174,_0x3fedcd);}}const gi=/* #__PURE__ -- @preserve */
33
+ _0x1228ab('px');class Ai extends _0x31aaeb{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x560479){super(_0x560479),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x46f0a9,_0x2904a3)=>_0x46f0a9+_0x2904a3),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Wt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x135f44=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x135f44['to']('isAnimationDisabled',_0x12ef08=>_0x12ef08?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x135f44['to']('top',_0x3f1cab=>gi(_0x3f1cab))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x3ef690=this['element']['clientHeight'];_0x3ef690&&(this['height']=_0x3ef690);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class Ti extends _0x4d5b57{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x23c412){super(_0x23c412),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 _0x2aac2a=this['context']['config']['get']('sidebar.container');_0x2aac2a&&this['setContainer'](_0x2aac2a);}['setContainer'](_0x48589e){if(!yi(_0x48589e))throw new _0x3bea1e('sidebar-setcontainer-invalid-element');this['container']=_0x48589e;}['_attachToContainer']({viewClass:_0x45a563='',spaceBetweenItems:_0x3f1c90=0x19}={}){if(!yi(this['container']))throw new _0x3bea1e('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x45a563,this['_spaceBetweenItems']=_0x3f1c90;}['rearrange']({removedAnnotation:_0x55169d,previousAnnotation:_0x126ba6,nextAnnotation:_0x4072d7}){const _0x59aae8=this['getSidebarItemView'](_0x55169d);this['view']['list']['remove'](_0x59aae8),this['_destroySidebarItemView'](_0x55169d),_0x126ba6&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x126ba6)),_0x4072d7&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x4072d7)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0xdf010c,activatedAnnotation:_0xaa2023,disableAnimationOnActivatedAnnotation:_0x4d981c}){if(this['_activeAnnotation']=_0xaa2023,_0xdf010c){_0xdf010c['isActive']=!0x1;const _0x4204c9=this['getSidebarItemView'](_0xdf010c);_0x4204c9&&_0x4d981c&&(_0x4204c9['isAnimationDisabled']=!0x1);}if(_0xaa2023){const _0x437a52=this['getSidebarItemView'](_0xaa2023);_0x437a52&&(_0xaa2023['isActive']=!0x0,_0x4d981c&&(_0x437a52['isAnimationDisabled']=!0x0,_0x437a52['top']+=0x1),this['_alignToTargetRect'](_0x437a52));}}['_detachFromContainer'](_0x5d0a79){if(this['view']['element']['remove'](),_0x5d0a79){for(const _0x33cee8 of _0x5d0a79)this['_destroySidebarItemView'](_0x33cee8);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x343c2e,_0x5093ab){_0x5093ab||(_0x5093ab=_0x343c2e['view']);const _0x25314f=new Ai(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x25314f,_0x343c2e),this['_annotationToSidebarItemView']['set'](_0x343c2e,_0x25314f),_0x25314f['content']['add'](_0x5093ab),this['listenTo'](_0x343c2e['view'],'change:targetRect',(_0x45f3a3,_0x31a7ea,_0x58a982)=>{const _0x297d6b=this['_getTargetTop'](_0x343c2e,_0x58a982);_0x25314f['_targetTop']!=_0x297d6b&&(_0x25314f['_targetTop']=_0x297d6b,this['_setItemTop'](_0x25314f,_0x297d6b));}),this['listenTo'](_0x25314f,'change:top',()=>{this['_recalculate'](_0x25314f,'top');}),this['listenTo'](_0x25314f,'change:bottom',()=>{this['_recalculate'](_0x25314f,'bottom');}),this['_alignToTargetRect'](_0x25314f);const _0x51a287=this['_getItemBefore'](_0x25314f);if(_0x51a287)this['_alignAfterItem'](_0x51a287,_0x25314f)||this['_alignToTargetRect'](_0x25314f);else this['_alignToTargetRect'](_0x25314f);return this['_updateLastItem'](),this['view']['list']['add'](_0x25314f),_0x25314f;}['_alignForTopChange'](_0x36478c){if(!_0x36478c['content']['length'])return;const _0x292cb9=this['_getItemBefore'](_0x36478c);if(!_0x292cb9)return;const _0xa8c4c7=this['_sidebarItemViewToAnnotation']['get'](_0x292cb9),_0x3266ce=this['_activeAnnotation'];_0x3266ce&&_0x3266ce===_0xa8c4c7?this['_alignAfterItem'](_0x292cb9,_0x36478c):this['_alignBeforeItem'](_0x36478c,_0x292cb9);}['_alignForBottomChange'](_0x343963){if(!_0x343963['content']['length'])return;const _0x14e04c=this['_getItemAfter'](_0x343963);if(!_0x14e04c)return;const _0x4edaa1=this['_sidebarItemViewToAnnotation']['get'](_0x14e04c),_0x207225=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x1a87d2=this['_activeAnnotation'];_0x1a87d2&&_0x1a87d2===_0x4edaa1&&_0x207225?(this['_alignBeforeItem'](_0x14e04c,_0x343963),this['_alignAfterItem'](_0x343963,_0x14e04c)):_0x1a87d2&&_0x1a87d2===_0x4edaa1?this['_alignBeforeItem'](_0x14e04c,_0x343963):this['_alignAfterItem'](_0x343963,_0x14e04c);}['_recalculate'](_0x325305,_0x55ce40){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x899d30,changedProp:_0x2807ae}of this['_recalculateBuffer'])'top'===_0x2807ae?this['_alignForTopChange'](_0x899d30):this['_alignForBottomChange'](_0x899d30);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x325305,'changedProp':_0x55ce40});}['getSidebarItemView'](_0xa7b4f4){return this['_annotationToSidebarItemView']['get'](_0xa7b4f4);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x3ce0fa){const _0x3ee3a6=this['getSidebarItemView'](_0x3ce0fa);this['stopListening'](_0x3ee3a6),this['stopListening'](_0x3ce0fa['view']),_0x3ee3a6['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x3ce0fa),this['_sidebarItemViewToAnnotation']['delete'](_0x3ee3a6);}['_createSidebarView'](){const _0x147c92=new _i(this['context']['locale']);return _0x147c92['render'](),this['on']('change:_lastItem',(_0x28708e,_0x3d513a,_0x3605a9,_0xf13de0)=>{_0xf13de0&&_0x147c92['unbind']('minHeight'),_0x3605a9?_0x147c92['bind']('minHeight')['to'](_0x3605a9,'bottom'):_0x147c92['minHeight']=null;}),_0x147c92;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0xadbe68){const _0x31b3d1=this['_sidebarItemViewToAnnotation']['get'](_0xadbe68),_0x446742=_0x31b3d1&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x31b3d1)-0x1);return _0x446742&&this['getSidebarItemView'](_0x446742)||null;}['_getItemAfter'](_0x366ceb){const _0x597644=this['_sidebarItemViewToAnnotation']['get'](_0x366ceb),_0x26f2d9=_0x597644&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x597644)+0x1);return _0x26f2d9&&this['getSidebarItemView'](_0x26f2d9)||null;}['_alignBeforeItem'](_0x1b64ea,_0x32cf28){_0x1b64ea['updateHeight']();const _0x491e75=vi(_0x32cf28['bottom']+this['_spaceBetweenItems'],_0x1b64ea['top']);return!!_0x491e75&&(this['_setItemTop'](_0x32cf28,_0x32cf28['top']-_0x491e75),!0x0);}['_alignAfterItem'](_0x9cf9f5,_0x39eacf){_0x9cf9f5['updateHeight']();const _0x10fddf=vi(_0x9cf9f5['bottom']+this['_spaceBetweenItems'],_0x39eacf['top']);return!!_0x10fddf&&(this['_setItemTop'](_0x39eacf,_0x39eacf['top']+_0x10fddf,!0x1),!0x0);}['_alignToTargetRect'](_0xbca229){const _0x4c978e=this['_sidebarItemViewToAnnotation']['get'](_0xbca229);if(!_0x4c978e||!_0x4c978e['target']||!_0x4c978e['targetRect'])return;const _0x5612dd=this['_getTargetTop'](_0x4c978e,_0x4c978e['targetRect']);this['_setItemTop'](_0xbca229,_0x5612dd);}['_getTargetTop'](_0xf133f6,_0x29cf0d){if(null===_0x29cf0d)return 0x0;if(_0xf133f6['target']instanceof _0x36753e)return _0x29cf0d['top'];{const _0x41b444=new _0x36753e(this['view']['element'])['top'];return _0x29cf0d['top']-_0x41b444;}}['_setItemTop'](_0x4b0a82,_0x44685a,_0x5be89b=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x5be89b&&(_0x44685a=Math['max'](_0x44685a,this['_getMaxAvailableTop'](_0x4b0a82))),_0x4b0a82['top']=_0x44685a;}['_getMaxAvailableTop'](_0x4a6c85){let _0x8c2d1f=this['_getItemBefore'](_0x4a6c85),_0x99ea63=0x0;for(;_0x8c2d1f;)_0x8c2d1f['updateHeight'](),_0x99ea63+=this['_spaceBetweenItems']+_0x8c2d1f['height'],_0x8c2d1f=this['_getItemBefore'](_0x8c2d1f);return _0x99ea63;}}function vi(_0xdcbe09,_0x12562e){return Math['max'](_0xdcbe09-_0x12562e,0x0);}function yi(_0x798a1b){return null!==_0x798a1b&&'object'==typeof _0x798a1b&&0x1===_0x798a1b['nodeType'];}class Ci extends _0x4d5b57{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[Ti,pi];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x21800f){super(_0x21800f),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x33b63a(),this['_refreshPositioningDebounced']=_0x5c43ed(()=>{_0x21800f['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x1e566d=this['context']['plugins']['get'](pi),_0x1002ae=this['context']['plugins']['get'](Ti);_0x1e566d['register']('wideSidebar',this),_0x1002ae['container']&&_0x1e566d['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x237aa5){if(_0x237aa5===this['activeAnnotation'])return;const _0xbfdfa8=this['context']['plugins']['get'](Ti);_0xbfdfa8['_activeAnnotation']=_0x237aa5;const _0x330ea5=this['activeAnnotation'];_0xbfdfa8['refresh']({'blurredAnnotation':_0x330ea5,'activatedAnnotation':_0x237aa5}),this['activeAnnotation']=_0x237aa5;}['attach'](_0x156144){this['annotations']=_0x156144;const _0x2c7ac7=this['context']['plugins']['get'](Ti);if(_0x2c7ac7['_annotations']=_0x156144,this['isAttached'])throw new _0x3bea1e('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x2c7ac7,'set:container',()=>{this['detach'](),this['listenTo'](_0x2c7ac7,'change:container',_0x2c2d5b=>{_0x2c2d5b['off'](),this['attach'](_0x156144);});}),_0x2c7ac7['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x1c2f95=_0xc983e0=>{_0xc983e0['updateTargetRect'](),_0x2c7ac7['addAnnotation'](_0xc983e0);};for(const _0x2e256c of _0x156144)_0x1c2f95(_0x2e256c);this['listenTo'](_0x156144,'add',(_0x3df523,_0xf2c205)=>{_0x1c2f95(_0xf2c205);}),this['listenTo'](_0x156144,'remove',(_0x21aa73,_0x392ef3,_0x5262d2)=>{_0x2c7ac7['rearrange']({'removedAnnotation':_0x392ef3,'previousAnnotation':_0x156144['get'](_0x5262d2-0x1),'nextAnnotation':_0x156144['get'](_0x5262d2+0x1)}),_0x392ef3===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x156144,'focus',(_0xe3966,_0x1f8bb1)=>{this['setActiveAnnotation'](_0x1f8bb1);}),this['listenTo'](_0x156144,'blur',()=>{this['setActiveAnnotation'](null);});const _0x52abd8=this['context']instanceof _0x258154?this['context']['editors']:new _0x33b63a([this['context']]);for(const _0x1ac99f of _0x52abd8)this['_integrateWithEditorAnnotations'](_0x1ac99f);this['listenTo'](_0x52abd8,'add',(_0x3bf719,_0x197bda)=>{this['listenTo'](_0x197bda,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x197bda);});}),this['listenTo'](_0x52abd8,'remove',(_0x21a33f,_0x29ac0c)=>{_0x29ac0c['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x29ac0c['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x3bea1e('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x229a9b=this['context']['plugins']['get'](Ti);_0x229a9b['_detachFromContainer'](this['annotations']),this['stopListening'](_0x229a9b),this['stopListening'](this['annotations']),this['context']instanceof _0x258154&&this['stopListening'](this['context']['editors']);for(const _0x344a7a of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x344a7a);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x28641e){if(!_0x28641e['plugins']['has']('EditorAnnotations'))return;const _0xb87853=_0x28641e['plugins']['get']('EditorAnnotations'),_0x5bbaa0=()=>{const _0x1ffaf2=_0xb87853['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x1ffaf2[0x0]||null);};this['listenTo'](_0xb87853,'refresh',_0x5bbaa0),this['listenTo'](_0xb87853,'blur',(_0x4e043b,{isAnnotationTracked:_0x320d1a})=>{this['activeAnnotation']&&_0x320d1a(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0xb87853,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x43d476=>{_0xb87853['hasDomSelection']()&&(_0x5bbaa0(),_0x43d476['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0xb87853);}['_destroyEditorAnnotationsIntegration'](_0x197afa){this['stopListening'](_0x197afa),this['_editorAnnotations']['remove'](_0x197afa);}}class Ii extends _0x407247{['counterView'];constructor(_0x380bfb){super(_0x380bfb);const _0x489222=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0xe5d837,_0x1bc060)=>_0xe5d837?'...':_0x1bc060['toString']()),this['set']('annotationType',''),this['icon']=_0x2a3eab,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new _0x31aaeb(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x489222['to']('annotationType',_0x358c27=>'ck-annotation-counter__badge--'+_0x358c27),_0x489222['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x489222['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class bi extends _0x4d5b57{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[Ti,pi];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd2259d){super(_0xd2259d),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x540581())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x33b63a(),this['_refreshPositioningDebounced']=_0x5c43ed(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](pi)['register']('narrowSidebar',this),this['bodyCollection']=new rt(this['context']['locale']),this['balloonPanelView']=new ht(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x4fe44d){this['annotations']=_0x4fe44d;const _0x20b9e3=this['context']['plugins']['get'](Ti),_0x2968e7=this['balloonPanelView'];if(_0x20b9e3['_annotations']=_0x4fe44d,this['isAttached'])throw new _0x3bea1e('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x20b9e3,'set:container',()=>{this['detach'](),this['listenTo'](_0x20b9e3,'change:container',_0x43b5fd=>{_0x43b5fd['off'](),this['attach'](_0x4fe44d);});}),_0x20b9e3['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x3890ab=_0x291020=>{const _0x25704f=new Ii(this['context']['locale']);_0x20b9e3['addAnnotation'](_0x291020,_0x25704f),this['_annotationToNarrowView']['set'](_0x291020,_0x25704f),_0x25704f['bind']('isDirty','annotationType','number')['to'](_0x291020['view'],'isDirty','type','length'),_0x25704f['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x2968e7['content']['first']!==_0x291020['view']?(this['_showBalloon'](_0x291020),_0x291020['view']['element']['focus'](),this['setActiveAnnotation'](_0x291020)):this['setActiveAnnotation'](null);});};for(const _0x4cafbb of _0x4fe44d)_0x3890ab(_0x4cafbb);this['listenTo'](_0x4fe44d,'add',(_0x4b3dad,_0xafd82d)=>{_0x3890ab(_0xafd82d);}),this['listenTo'](_0x4fe44d,'remove',(_0x401409,_0x51ab4c,_0x5a41fc)=>{this['_annotationToNarrowView']['get'](_0x51ab4c)['destroy'](),this['_annotationToNarrowView']['delete'](_0x51ab4c),_0x20b9e3['rearrange']({'removedAnnotation':_0x51ab4c,'previousAnnotation':_0x4fe44d['get'](_0x5a41fc-0x1),'nextAnnotation':_0x4fe44d['get'](_0x5a41fc+0x1)}),_0x51ab4c===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x4fe44d,'focus',(_0x1ced5e,_0x5c613a)=>{this['setActiveAnnotation'](_0x5c613a);}),this['listenTo'](_0x4fe44d,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x4a8b21,_0x578b11)=>{_0x578b11['keyCode']===_0x1032dc['esc']&&_0x2968e7['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x2968e7['content']['first']),this['_hideBalloon'](),_0x578b11['stopPropagation'](),_0x578b11['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x5b6b02,_0x307bc5)=>{const _0x50703c=_0x307bc5['target'];_0x2968e7['isVisible']&&_0x2968e7['element']['contains'](_0x50703c)||_0x20b9e3['view']['element']['contains'](_0x50703c)||_0x5b6b02['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x57db17=>_0x57db17['contains'](_0x50703c))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x503b89=this['context']instanceof _0x258154?this['context']['editors']:new _0x33b63a([this['context']]);for(const _0x4bd047 of _0x503b89)this['_integrateWithEditorAnnotations'](_0x4bd047);this['listenTo'](_0x503b89,'add',(_0x8a59e8,_0xd958b4)=>{this['listenTo'](_0xd958b4,'ready',()=>{this['_integrateWithEditorAnnotations'](_0xd958b4);});}),this['listenTo'](_0x503b89,'remove',(_0x3cb1be,_0x17c5c0)=>{_0x17c5c0['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x17c5c0['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x449faf){if(_0x449faf===this['activeAnnotation'])return;const _0x1a2b4c=this['context']['plugins']['get'](Ti);if(_0x1a2b4c['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x449faf,'disableAnimationOnActivatedAnnotation':!0x0}),_0x449faf)_0x1a2b4c['getSidebarItemView'](_0x449faf)?this['_showBalloon'](_0x449faf):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x449faf;}['detach'](){if(!this['isAttached'])throw new _0x3bea1e('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x5f1bee=this['context']['plugins']['get'](Ti);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x81eb16=>_0x81eb16['destroy']()),this['_annotationToNarrowView']['clear'](),_0x5f1bee['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x258154&&this['stopListening'](this['context']['editors']);for(const _0x42760a of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x42760a);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'](_0x23be3d){if(!_0x23be3d['plugins']['has']('EditorAnnotations'))return;const _0x1185ce=_0x23be3d['plugins']['get']('EditorAnnotations'),_0x25c900=this['context']['plugins']['get'](Ti),_0x5449d0=this['annotations'],_0x392dae=this['balloonPanelView'],_0x25bb4c=()=>{const _0x8de7f4=_0x1185ce['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x8de7f4),this['setActiveAnnotation'](_0x8de7f4[0x0]||null);};this['listenTo'](_0x1185ce,'refresh',_0x25bb4c),this['listenTo'](_0x1185ce,'blur',(_0x3ae42d,{isAnnotationTracked:_0x111d94})=>{this['activeAnnotation']&&_0x111d94(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x1185ce,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x5449d0,'blur',_0x7d2a45=>{_0x1185ce['hasDomSelection']()&&_0x7d2a45['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x1bee6d,_0xb7e105)=>{const _0x49174f=_0xb7e105['target'];_0x392dae['isVisible']&&_0x392dae['element']['contains'](_0x49174f)||_0x25c900['view']['element']['contains'](_0x49174f)||this['activeAnnotation']&&_0x1185ce['hasDomSelection']()&&(_0x25bb4c(),_0x1bee6d['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x1185ce);}['_destroyEditorAnnotationsIntegration'](_0x31640e){_0x31640e&&(this['stopListening'](_0x31640e),this['_editorAnnotations']['remove'](_0x31640e));}['_setSelectedAnnotations'](_0x4bd659){for(const _0x1c18da of this['_selectedAnnotations'])_0x4bd659['includes'](_0x1c18da)||this['_manuallyClosedAnnotationViews']['delete'](_0x1c18da['view']);this['_selectedAnnotations']=_0x4bd659;}['_refreshPositioning'](){const _0x6f4aa0=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x6f4aa0['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x23d902){if(this['_manuallyClosedAnnotationViews']['has'](_0x23d902['view']))return;const _0x394de4=this['balloonPanelView']['content']['first'];_0x394de4!==_0x23d902['view']?(_0x394de4&&this['_detachListeners'](_0x394de4),this['_attachListeners'](_0x23d902['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x23d902['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x1f04c4=this['balloonPanelView']['content']['first'],_0x2fac0f=_0x1f04c4&&this['annotations']['getByView'](_0x1f04c4);if(!_0x2fac0f||!this['_annotationToNarrowView']['has'](_0x2fac0f))return;const _0x5e4e45=this['_annotationToNarrowView']['get'](_0x2fac0f)['element'],_0x4bf3c2=(function(){const _0x5bef02=ht['defaultPositions'];return[_0x5bef02['southArrowNorthEast'],_0x5bef02['northArrowSouthEast'],_0x5bef02['southArrowNorth'],_0x5bef02['northArrowSouth'],_0x5bef02['southArrowNorthWest'],_0x5bef02['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x5e4e45,'positions':_0x4bf3c2});}['_hideBalloon'](){const _0x2a3152=this['balloonPanelView'],_0x37ad3a=_0x2a3152['content']['first'];_0x37ad3a&&(this['_detachListeners'](_0x37ad3a),_0x2a3152['unpin'](),_0x2a3152['content']['clear']());}['_attachListeners'](_0xf012b6){this['listenTo'](_0xf012b6,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0xf012b6,'Esc',(_0x9613e8,_0xfb3588)=>{this['_manuallyClosedAnnotationViews']['add'](_0xf012b6),this['_hideBalloon'](),_0xfb3588();});}['_detachListeners'](_0x1cab60){this['stopListening'](_0x1cab60);}}class Ei extends _0x801ec5{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];['_refreshVisibilityDebounced'];static get['requires'](){return[si,at,pi];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4fad4f){super(_0x4fad4f),_0x4fad4f['editing']['view']['addObserver'](mt),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x4fad4f['plugins']['get'](at),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1,this['_refreshVisibilityDebounced']=_0x5c43ed(()=>{this['editor']['plugins']['get']('Annotations')['refreshVisibility']();},0xfa,{'leading':!0x1});}['init'](){const _0x15a461=this['editor']['plugins']['get'](pi);_0x15a461['context']===this['editor']&&(_0x15a461['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x1809cd,_0x89b58e)=>{const _0x466c3b=this['_balloon'];if(this['isAttached']&&_0x466c3b['visibleView']){const _0x1a060f=this['annotations']['getByView'](_0x466c3b['visibleView']);_0x1a060f&&this['_closeAnnotation'](_0x1a060f),_0x89b58e();}}));}['afterInit'](){const _0x568ba8=this['editor']['plugins']['get'](pi);_0x568ba8['context']===this['editor']&&(_0x568ba8['hasActive']()||_0x568ba8['switchTo']('inline'));}['setActiveAnnotation'](_0x2f6cf3){_0x2f6cf3!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x2f6cf3&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x2f6cf3)&&this['_addAnnotationToBalloon'](_0x2f6cf3,!0x0),_0x2f6cf3['isActive']=!0x0),_0x2f6cf3||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x2f6cf3);}['attach'](_0x18e869){this['annotations']=_0x18e869;const _0x4cf481=this['editor']['plugins']['get'](pi),_0x4aeb16=this['_balloon'];if(this['isAttached'])throw new _0x3bea1e('inlineannotations-attach-already-attached',this);if(_0x4cf481['context']!==this['editor'])throw new _0x3bea1e('inlineannotations-not-allowed-with-context',this);const _0x314c78=this['editor']['plugins']['get'](si);this['listenTo'](_0x314c78,'refresh',()=>{const _0x50624b=_0x314c78['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x775a12,_0x1c8502;!this['_forceRefresh']&&(_0x775a12=_0x50624b,_0x1c8502=this['_selectedAnnotations'],_0x775a12['length']===_0x1c8502['length']&&_0x775a12['every'](_0x12c33c=>_0x1c8502['includes'](_0x12c33c)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x50624b),this['setActiveAnnotation'](_0x50624b[0x0]||null));}),this['listenTo'](_0x314c78,'blur',(_0x2dd85b,{isAnnotationTracked:_0x530d1b})=>{this['activeAnnotation']&&_0x530d1b(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x314c78,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x47fa04,_0x4878fe,_0x10a008)=>{_0x10a008||this['setActiveAnnotation'](null);}),this['listenTo'](_0x18e869,'remove',(_0xe5639d,_0x25237a)=>{this['_removeAnnotationFromBalloon'](_0x25237a),_0x25237a===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x4aeb16,'change:visibleView',(_0x542ab7,_0x4a71a2,_0x2ab4e8,_0x12d897)=>{_0x12d897&&this['stopListening'](_0x12d897);const _0x54d714=_0x18e869['getByView'](_0x2ab4e8);_0x2ab4e8&&_0x54d714&&(this['listenTo'](_0x2ab4e8,'change:height',()=>{_0x4aeb16['updatePosition']();}),this['listenTo'](_0x2ab4e8,'Esc',()=>{this['_closeAnnotation'](_0x54d714),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x54d714&&this['setActiveAnnotation'](_0x54d714));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x4aeb16['visibleView']&&(_0x18e869['getByView'](_0x4aeb16['visibleView'])&&_0x4aeb16['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 _0x3bea1e('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x22f715 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x22f715);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x3ff6bc){for(const _0x371247 of this['_selectedAnnotations'])_0x3ff6bc['includes'](_0x371247)||this['_manuallyClosed']['delete'](_0x371247);for(const _0x211079 of this['annotations'])_0x3ff6bc['includes'](_0x211079)||this['_removeAnnotationFromBalloon'](_0x211079);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x56f923 of _0x3ff6bc)this['_addAnnotationToBalloon'](_0x56f923);}this['_selectedAnnotations']=_0x3ff6bc;}['_addAnnotationToBalloon'](_0x57e766,_0x33f358=!0x1){this['_manuallyClosed']['has'](_0x57e766)||(this['_addedAnnotations']['has'](_0x57e766)||this['_balloon']['hasView'](_0x57e766['view'])||(this['_addedAnnotations']['add'](_0x57e766),this['_balloon']['add']({'stackId':_0x57e766['view']['id'],'view':_0x57e766['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x57e766)}})),_0x33f358&&this['_balloon']['showStack'](_0x57e766['view']['id']));}['_getBalloonTargetForAnnotation'](_0x4864d2){const _0x2c3bbb=_0x4864d2['target'],_0x51a6d0=this['editor']['editing']['view'],_0x4d28f2=_0x51a6d0['document']['selection']['getFirstRange'](),_0x3d29a5=_0x51a6d0['domConverter']['viewRangeToDom'](_0x4d28f2);if(_0x3d29a5['collapse'](!0x0),_0x2c3bbb){if(_0x2c3bbb instanceof _0x36753e)return _0x2c3bbb;let _0x1a8801=[];for(const _0x5e7a2c of _0x2c3bbb)_0x1a8801['push'](..._0x36753e['getDomElementRects'](_0x5e7a2c));_0x1a8801=function(_0x202951){const _0x19e884=[];let _0x436316=_0x202951[0x0];for(let _0x80b975=0x1;_0x80b975<_0x202951['length'];_0x80b975++)if(Ni(_0x436316,_0x202951[_0x80b975])){const _0x2c239a=_0x202951[_0x80b975]['width'];_0x436316['width']+=_0x2c239a,_0x436316['right']+=_0x2c239a;}else _0x19e884['push'](_0x436316),_0x436316=_0x202951[_0x80b975];return _0x19e884['push'](_0x436316),_0x19e884;}(_0x1a8801);const _0x1935dc=_0x3d29a5['getBoundingClientRect']();return _0x1a8801['find'](_0x1b866e=>_0x1b866e['top']<=_0x1935dc['top']&&_0x1b866e['bottom']>=_0x1935dc['bottom']&&_0x1b866e['left']<=_0x1935dc['left']&&_0x1b866e['right']>=_0x1935dc['right'])||_0x1a8801[0x0];}return _0x4864d2['targetRect']||_0x3d29a5;}['_removeAnnotationFromBalloon'](_0x360837){this['_addedAnnotations']['has'](_0x360837)&&this['_balloon']['hasView'](_0x360837['view'])&&(this['_addedAnnotations']['delete'](_0x360837),this['_balloon']['remove'](_0x360837['view']));}['_closeAnnotation'](_0x842ff1){this['_manuallyClosed']['add'](_0x842ff1),this['_removeAnnotationFromBalloon'](_0x842ff1);}}function Ni(_0x344d05,_0x565562){return _0x344d05['top']===_0x565562['top']&&_0x344d05['bottom']===_0x565562['bottom']&&_0x344d05['right']===_0x565562['left'];}class ki extends _0x31aaeb{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x1b2582,_0x22ec84){super(_0x1b2582),this['set']('isEmpty',!_0x22ec84['length']),this['focusTracker']=new _0x420295(),this['_annotationViews']=_0x22ec84,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x24a5b3({'focusables':_0x22ec84,'focusTracker':this['focusTracker']}),this['listenTo'](_0x22ec84,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x22ec84,'remove',(_0x50ba59,_0x573a04)=>{_0x573a04['isActive']&&this['focus'](),_0x22ec84['length']||(this['isEmpty']=!0x0);});const _0x20dabe=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':bt(_0x1b2582,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x22ec84},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x20dabe['if']('isEmpty','ck-hidden',_0x1fc00a=>!_0x1fc00a)]},'children':[{'text':bt(_0x1b2582,'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 _0x5660d7 of this['_annotationViews'])this['focusTracker']['add'](_0x5660d7['element']);this['_annotationViews']['on']('change',(_0x24c208,{added:_0x1026d0,removed:_0x6755d9})=>{for(const _0xf05d38 of _0x1026d0)this['focusTracker']['add'](_0xf05d38['element']);for(const _0x96e158 of _0x6755d9)this['focusTracker']['remove'](_0x96e158['element']);});}}class Oi extends _0x4d5b57{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[Qt,$t];}constructor(_0x35eda6){super(_0x35eda6),this['archivedThreads']=new _0x33b63a();}['init'](){const _0x5cdbf4=this['context'],_0x4b52ad=_0x5cdbf4['plugins']['get'](Qt),_0x271901=_0x5cdbf4['plugins']['get']($t);this['listenTo'](_0x4b52ad,'addCommentThread',(_0x3737cf,{threadId:_0x330420})=>{const _0x3baa2f=_0x4b52ad['getCommentThread'](_0x330420);_0x3baa2f['archivedAt']&&this['archivedThreads']['add'](_0x3baa2f,this['_calculatePosition'](_0x3baa2f['archivedAt'])),this['listenTo'](_0x3baa2f,'change:archivedAt',(_0x518d01,_0x2ab085,_0x360522)=>{_0x360522?this['archivedThreads']['has'](_0x3baa2f)||this['archivedThreads']['add'](_0x3baa2f,this['_calculatePosition'](_0x3baa2f['archivedAt'])):this['archivedThreads']['has'](_0x3baa2f)&&this['archivedThreads']['remove'](_0x3baa2f);});}),this['listenTo'](_0x4b52ad,'removeCommentThread',(_0x323c81,{threadId:_0x50e25b})=>{const _0x41dd28=_0x4b52ad['getCommentThread'](_0x50e25b);this['stopListening'](_0x41dd28),this['archivedThreads']['has'](_0x41dd28)&&this['archivedThreads']['remove'](_0x41dd28);},{'priority':'highest'}),this['listenTo'](_0x271901['collection'],'focus',(_0x215e34,_0x5bb8c0)=>{_0x5bb8c0['isVisible']||(_0x5bb8c0['isActive']=!0x0,_0x271901['activate'](_0x5bb8c0));});}['_calculatePosition'](_0x14bba4){const _0x14b7eb=[...this['archivedThreads']]['findIndex'](_0x2a9190=>_0x2a9190['archivedAt']<_0x14bba4);return _0x14b7eb>-0x1?_0x14b7eb:this['archivedThreads']['length'];}}class Mi extends _0x801ec5{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[Oi,ct];}constructor(_0x3298ef){super(_0x3298ef),this['annotationViews']=new tt(),this['_pendingThreads']=[];}['init'](){const _0x2f005c=this['editor'],_0x59f268=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x2f005c['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x407247,!0x0)),_0x2f005c['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x16f3e4=this['_createCommentsArchiveButton'](ot);return _0x16f3e4['set']({'role':'menuitemcheckbox'}),_0x16f3e4;});const _0x49f8e8=_0x2f005c['plugins']['get'](Oi),_0x4faafb=_0x2f005c['plugins']['get']('Annotations'),_0x7aa5c4=_0x2f005c['plugins']['get']('CommentsRepository');_0x49f8e8['archivedThreads']['forEach'](_0x36fc99=>{this['_handleNewThread'](_0x36fc99);}),this['listenTo'](_0x49f8e8['archivedThreads'],'add',(_0x57a909,_0x3cc6ab)=>{this['_handleNewThread'](_0x3cc6ab);}),this['listenTo'](_0x4faafb['collection'],'add',(_0x588fb0,_0x18e802)=>{const _0x60a852=this['_pendingThreads']['find'](_0x13c68c=>{const _0x185564=_0x7aa5c4['_threadToController']['get'](_0x13c68c);return _0x185564&&_0x18e802['innerView']===_0x185564['view'];});if(_0x60a852){const _0x140072=this['_calculatePosition'](_0x60a852['archivedAt']);this['_addAnnotationToArchive'](_0x18e802,_0x140072),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x60a852),0x1);}}),this['listenTo'](_0x49f8e8['archivedThreads'],'remove',(_0x5c67ab,_0x297fa8)=>{const _0x59b7b4=_0x2f005c['config']['get']('collaboration.channelId');if(!_0x59b7b4||_0x297fa8['channelId']===_0x59b7b4){if(this['_pendingThreads']['includes'](_0x297fa8))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x297fa8),0x1);else{const _0x5dc5a0=_0x7aa5c4['_threadToController']['get'](_0x297fa8),_0x2bacdb=_0x4faafb['getByInnerView'](_0x5dc5a0['view']);this['annotationViews']['remove'](_0x2bacdb['view']),this['stopListening'](_0x2bacdb),this['stopListening'](_0x2bacdb['focusableElements']);}}}),this['listenTo'](_0x4faafb['collection'],'add',(_0x8362c5,_0x35e437)=>{this['listenTo'](_0x35e437,'escape',_0x59f268);}),this['listenTo'](_0x4faafb['collection'],'remove',(_0x46c269,_0x435c17)=>{this['stopListening'](_0x435c17,'escape',_0x59f268);});}['_addAnnotationToArchive'](_0x45db89,_0x30cbb4){this['listenTo'](_0x45db89,'set:isVisible',_0x5ca834=>{_0x5ca834['return']=!0x1,_0x5ca834['stop']();}),this['annotationViews']['add'](_0x45db89['view'],_0x30cbb4);}['_handleNewThread'](_0x4403df){const _0x1c293f=this['editor']['plugins']['get']('CommentsRepository'),_0x5e18bf=this['editor']['plugins']['get']('Annotations'),_0x1761f4=this['editor']['config']['get']('collaboration.channelId');if(!_0x1761f4||_0x4403df['channelId']===_0x1761f4){const _0x2b8e5e=_0x1c293f['_threadToController']['get'](_0x4403df);if(!_0x2b8e5e)return void this['_pendingThreads']['push'](_0x4403df);const _0x522755=this['_calculatePosition'](_0x4403df['archivedAt']),_0x342683=_0x5e18bf['getByInnerView'](_0x2b8e5e['view']);_0x342683['isVisible']&&_0x5e18bf['_visibleAnnotations']['remove'](_0x342683),this['_addAnnotationToArchive'](_0x342683,_0x522755);}}['_calculatePosition'](_0x157c45){const _0x54c135=this['editor']['config']['get']('collaboration.channelId'),_0x486462=[...this['editor']['plugins']['get'](Oi)['archivedThreads']]['filter'](_0x41e78a=>_0x41e78a['channelId']===_0x54c135)['findIndex'](_0x5ed047=>_0x5ed047['archivedAt']<_0x157c45);return _0x486462<0x0||_0x486462>this['annotationViews']['length']?this['annotationViews']['length']:_0x486462-0x1;}['_toggleDialog'](){const _0xe0de99=this['editor'],_0xc9412=_0xe0de99['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new ki(_0xe0de99['locale'],this['annotationViews'])),'commentsArchive'===_0xc9412['id']?_0xc9412['hide']():_0xc9412['show']({'id':'commentsArchive','title':bt(_0xe0de99['locale'],'COMMENTS_ARCHIVE'),'icon':_0x3d6f82,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':dt['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x363c36,_0x1cd0ae=!0x1){const _0x23f3e7=this['editor']['locale'],_0x1757b6=this['editor']['plugins']['get']('Dialog'),_0x3c213f=new _0x363c36(_0x23f3e7);return _0x3c213f['bind']('isEnabled')['to'](this,'isEnabled'),_0x3c213f['bind']('isOn')['to'](_0x1757b6,'id',_0x1eb1af=>'commentsArchive'===_0x1eb1af),_0x3c213f['set']({'label':bt(_0x23f3e7,'COMMENTS_ARCHIVE'),'icon':_0x3d6f82,'isToggleable':!0x0}),_0x1cd0ae&&(_0x3c213f['tooltip']=!0x0),this['listenTo'](_0x3c213f,'execute',()=>this['_toggleDialog']()),_0x3c213f;}['_hideDialogOnAnnotationEscape']=_0x430642=>{const _0x542217=_0x430642['source'];if(!this['annotationViews']['has'](_0x542217['view']))return;const _0x5784d7=this['editor']['plugins']['get']('Dialog');_0x5784d7['isOpen']&&'commentsArchive'===_0x5784d7['id']&&(_0x5784d7['hide'](),_0x430642['stop']());};}class Ri extends _0x801ec5{static get['requires'](){return[Qt,ci,mi,Oi,Mi,fi,Ci,bi,Ei];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{ei as AddCommentThreadCommand,Yt as Annotation,jt as AnnotationCollection,Ii as AnnotationCounterButtonView,Kt as AnnotationView,$t as Annotations,Ai as AnnotationsSidebarItemView,_i as AnnotationsSidebarView,pi as AnnotationsUIs,Vt as BaseCommentThreadView,Ft as BaseCommentView,ti as Comment,Zt as CommentThread,It as CommentThreadController,Rt as CommentThreadInputView,Bt as CommentThreadView,Ut as CommentView,Ri as Comments,Oi as CommentsArchive,Mi as CommentsArchiveUI,ci as CommentsEditing,St as CommentsListView,fi as CommentsOnly,Qt as CommentsRepository,mi as CommentsUI,si as EditorAnnotations,Ei as InlineAnnotations,bi as NarrowSidebar,Ti as Sidebar,Ci as WideSidebar,Xt as bindAnnotationCollections};