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

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.
package/dist/index.js CHANGED
@@ -20,12 +20,12 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Editor as _0x2e1330,icons as _0xfdf0a4,ContextPlugin as _0x529673,PendingActions as ht,Command as _0x324c72,Plugin as _0x5a85ea,Context as _0x15790e}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x13a315,uid as _0xa3844f,KeystrokeHandler as jt,FocusTracker as _0x424f41,diff as _0x1f30c1,Collection as _0x4fd75f,Rect as _0x44fba6,CKEditorError as _0x59ce32,first as _0x1f6fa1,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0x3e18d9,keyCodes as _0x5ad4b8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x27b058,AriaDescriptionView as Zt,setupThreadKeyboardNavigation as ts,ConfirmMixin as ti,LateFocusButtonView as _0x424fc3,trimHtml as _0x5d0f96,LateFocusDropdownButtonView as _0x582bca,Users as it,getDateTimeFormatter as mt,hashObject as lt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x36a9ce}from'ckeditor5-collaboration/dist/index.js';import{throttle as bt,isEqual as It,cloneDeep as pt,set as wt,unset as At,debounce as _0x58a7c2}from'lodash-es';import{EditorUIView as Xt,InlineEditableUIView as $t,EditorUI as Ut,View as kt,FocusCycler as Ft,ButtonView as _0x57b97b,ViewCollection as _0x17461a,createDropdown as _0x218ee0,ListView as _0x5b8d5f,focusChildOnDropdownOpen as _0x37cdcd,ListItemView as _0x220ec1,MenuBarMenuListItemButtonView as _0x9c1b58,BodyCollection as _0x558ff7,BalloonPanelView as _0xf453e3,ContextualBalloon as _0x1a348e,Dialog as _0x48623b,DialogViewPosition as _0xe69b5f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x4bab8c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as Bt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as Et,ShiftEnter as Gt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Jt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Kt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Lt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Nt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x38fb47}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class yt extends/* #__PURE__ -- @preserve */
24
- _0x13a315(){['model'];['view'];constructor(_0x44dc42,_0x5c6a1f){super(),this['model']=_0x44dc42,this['model']['_isAttached']=!0x0,this['view']=_0x5c6a1f,this['listenTo'](_0x5c6a1f,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x5c6a1f,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x5c6a1f,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x5c6a1f,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x5c6a1f,'addComment',(_0x417ce1,_0x495602)=>this['addComment'](_0x495602)),this['listenTo'](_0x5c6a1f,'updateComment',(_0xd9bc81,_0x410065,_0x452015)=>this['updateComment'](_0x410065,_0x452015)),this['listenTo'](_0x5c6a1f,'removeComment',(_0x36937c,_0x145a75)=>this['removeComment'](_0x145a75));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0xa0f7ec){this['model']['addComment']({'content':_0xa0f7ec,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x5ccee9,_0x15fce3){this['model']['getComment'](_0x5ccee9)['update']({'content':_0x15fce3});}['removeComment'](_0x6c6ca2){this['model']['getComment'](_0x6c6ca2)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x4cad0c,_0x57434d,_0x3f16d5){const t=_0x4cad0c['t'];switch(_0x57434d){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'Annotations\x20sidebar':return t('Annotations\x20sidebar');case'Annotations\x20list':return t('Annotations\x20list');case'Thread\x20comments':return t('Thread\x20comments');case'THREAD_CONTEXT_LABEL':return t({'string':'Thread\x20context:\x20%0','id':'THREAD_CONTEXT_LABEL'},_0x3f16d5);case'COMMENT_THREAD_LABEL':return t({'string':'Comment\x20thread\x20by\x20%1.\x20%1\x20reply.','plural':'Comment\x20thread\x20by\x20%1.\x20%0\x20replies.','id':'COMMENT_THREAD_LABEL'},_0x3f16d5);case'COMMENT_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'COMMENT_THREAD_DESCRIPTION'});case'COMMENT_ARIA_LABEL':return t({'string':'Comment\x20by\x20%0.\x20Created\x20on\x20%1.\x20%2.\x20%3','id':'COMMENT_ARIA_LABEL'},_0x3f16d5);case'LEAVE_COMMENT_ANNOUNCEMENT':return t({'string':'Leaving\x20a\x20content\x20with\x20comments.','id':'LEAVE_COMMENT_ANNOUNCEMENT'});case'ENTER_COMMENT_ANNOUNCEMENT':return t({'string':'Entering\x20a\x20content\x20with\x20comments.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_COMMENT_ANNOUNCEMENT'},_0x3f16d5);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x3f16d5);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x3f16d5);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3f16d5);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3f16d5);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Vt extends Xt{['main'];['editable'];constructor(_0x2f754e,_0x37c1d5){super(_0x2f754e);const _0x1efc29=_0xa3844f();this['main']=this['createCollection'](),this['editable']=new $t(_0x2f754e,_0x37c1d5,void 0x0,{'label':()=>S(_0x2f754e,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x2f754e['uiLanguageDirection'],'lang':_0x2f754e['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x1efc29},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Ot extends Ut{['view'];constructor(_0x3a16be){super(_0x3a16be),this['view']=new Vt(_0x3a16be['locale'],_0x3a16be['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x2f52b9=this['editor']['editing']['view'],_0x361f12=this['view']['editable'],_0x205d30=_0x2f52b9['document']['getRoot']();_0x361f12['name']=_0x205d30['rootName'],this['view']['render']();const _0x52f03b=_0x361f12['element'];this['setEditableElement'](_0x361f12['name'],_0x52f03b),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2f52b9['attachDomRoot'](_0x52f03b),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[Bt,Et,Gt,Jt,Kt,Lt,Nt];class Rt extends/* #__PURE__ -- @preserve */
25
- _0x13a315(_0x2e1330){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Qt)());constructor(_0x171ba9={}){function _0x33b0b7(_0x589b6d){return _0x589b6d['map'](_0x37d88d=>String['fromCharCode'](_0x37d88d))['join']('');}(_0x171ba9=Object['assign']({},_0x171ba9))['plugins']||(_0x171ba9['plugins']=Rt['defaultPlugins']),super(_0x171ba9),this['ui']=new Ot(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x33b0b7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x33b0b7([0x76,0x69,0x65,0x77])][_0x33b0b7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x33b0b7([0x61,0x75,0x74,0x6f]),this[_0x33b0b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x33b0b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x33b0b7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x33b0b7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x33b0b7([0x6f,0x6b])});}['create'](){const _0x14b874=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x14b874))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x3c9fd2=>{const _0x312377=this['model']['document']['getRoot'](),_0xd9ed2e=_0x312377&&_0x312377['getChild'](_0x312377['childCount']-0x1);_0x3c9fd2['setSelection'](_0xd9ed2e,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x14ec01=this['editing']['view'],_0x472383=_0x14ec01['document']['getRoot'](),_0x8f035d=_0x472383['getChild'](0x0);_0x472383['childCount']>0x1||!_0x8f035d||'p'!=_0x8f035d['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x14ec01,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x8f035d['placeholder']=this['placeholder']),St({'view':_0x14ec01,'element':_0x8f035d,'keepOnFocus':!0x0}),this['placeholderElement']=_0x8f035d);}}class hs extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x4fe4b4,_0x24627f={}){super(_0x4fe4b4),this['editor']=null,this['_editorConfig']=_0x24627f,this['set']('value',_0x24627f['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x4fe4b4,'Reply...')),this['set']('submitLabel',S(_0x4fe4b4,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x424f41(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x37d56c,_0x4bc0de)=>{this['cancelButtonView']['fire']('execute'),_0x4bc0de();}),this['keystrokes']['set']('Ctrl+Enter',(_0x1760d7,_0x5a0e74)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x5a0e74());}),this['on']('submit',(_0x3fddaf,_0x2e9b22)=>{_0x2e9b22['length']>0xfde8?(alert(S(_0x4fe4b4,'TOO_LONG_COMMENT_ALERT',[_0x2e9b22['length'],0xfde8])),_0x3fddaf['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Rt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x397829=this['editor'];this['element']['insertBefore'](_0x397829['ui']['element'],this['element']['firstChild']),_0x397829['model']['document']['on']('change',()=>this['value']=_0x397829['getData']()),_0x397829['bind']('placeholder')['to'](this),this['focusables']['add'](_0x397829['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0xa1b8ad){-0x1===_0xa1b8ad?(this['focusCycler']['focusFirst'](),this['focusCycler']['focusLast']()):this['focusCycler']['focusFirst']();}async['destroy'](){this['_isDestroyed']||(this['_isDestroyed']=!0x0,this['editor']&&(await this['_editorCreationPromise'],await this['editor']['destroy'](),this['fire']('editorDestroyed',this['editor'])),await super['destroy']());}['_createSubmitButton'](){const {locale:_0x507155}=this,_0x173617=new _0x57b97b(_0x507155);return _0x173617['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x173617['withText']=!0x0,_0x173617['bind']('label')['to'](this,'submitLabel'),_0x173617['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x173617['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x361b72,_0x334589)=>!_0x334589&&!!_0x361b72['trim']()),_0x173617;}['_createCancelButton'](){const {locale:_0x247bd8}=this,_0x418ed8=new _0x57b97b(_0x247bd8);return _0x418ed8['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x418ed8['label']=S(_0x247bd8,'Cancel'),_0x418ed8['withText']=!0x0,_0x418ed8['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x418ed8;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x5e514c=>{this['focusTracker']['add'](_0x5e514c['element']);}),this['focusables']['on']('change',(_0x5d26ca,_0x55dfad)=>{for(const _0x119952 of Array['from'](_0x55dfad['added'])['reverse']())this['focusTracker']['add'](_0x119952['element']);});}}class ie extends kt{constructor(_0x121568,_0xef0d54,_0x1f5461){super(_0x121568),this['commentInputView']=new hs(_0x121568,_0x1f5461),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x21d528,_0x55877a)=>_0x21d528||!!_0x55877a),this['set']('showInput',!0x1),this['on']('change:showInput',()=>{this['showInput']&&!this['commentInputView']['editor']&&this['commentInputView']['createEditor']();}),this['commentInputView']['delegate']('editorReady')['to'](this),this['commentInputView']['delegate']('editorDestroyed')['to'](this),this['userView']=new _0x27b058(_0x121568,_0xef0d54),this['userView']['extendTemplate']({'attributes':{'class':'ck-thread__user','aria-hidden':!0x0}}),this['commentInputView']['extendTemplate']({'attributes':{'class':'ck-thread__input'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-container',this['bindTemplate']['if']('showInput','ck-comment__input-container--active')]},'children':[this['userView'],this['commentInputView']]});}['render'](){super['render'](),this['_focusOnNonInteractiveMouseDown']();}['destroy'](){return this['commentInputView']['destroy']()['then'](()=>super['destroy']());}['focus'](_0x440896){this['commentInputView']['focus'](_0x440896);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x503bcf,_0x4e196b)=>{const {submitButtonView:_0x2aa1c3,cancelButtonView:_0x4f2843,editor:_0x46b373}=this['commentInputView'];[_0x2aa1c3['element'],_0x4f2843['element'],_0x46b373?_0x46b373['editing']['view']['getDomRoot']():null]['filter'](_0x23c88e=>_0x23c88e)['some'](_0x151308=>_0x151308['contains'](_0x4e196b['target']))||(this['focus'](),_0x4e196b['preventDefault']());});}}class cs extends kt{constructor(_0x32a77e){super(_0x32a77e);const _0x1e3c34=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x1e3c34['to']('count',_0x43bd20=>S(_0x32a77e,'NUMBER_OF_COMMENTS',_0x43bd20))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x5077a4,_0x18f2d2,_0x370c02){super(_0x5077a4);const _0x411bc1=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x18f2d2['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x18f2d2,this['_config']=_0x370c02,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x424f41(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x35e451=>this['commentViews']['map'](_0x512f8d=>_0x512f8d['element'])['includes'](_0x35e451['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x5077a4),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x3d40d3=>_0x3d40d3-this['_config']['maxCommentsWhenCollapsed']);for(const _0x58369c of _0x18f2d2['comments'])this['_handleNewCommentModel'](_0x58369c);this['_handleInfoComment'](),this['listenTo'](_0x18f2d2['comments'],'add',(_0x221057,_0x455c44)=>{const _0x5dcbf0=this['_calculatePosition'](_0x455c44);this['length']++,this['_handleNewCommentModel'](_0x455c44,_0x5dcbf0),this['refreshVisibleViews']();}),this['listenTo'](_0x18f2d2['comments'],'remove',(_0x118c4b,_0x598c91)=>{this['length']--,this['_handleRemoveCommentModel'](_0x598c91),this['refreshVisibleViews']();}),this['listenTo'](_0x18f2d2,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x18f2d2,'change:isResolved',()=>this['_handleInfoComment']()),this['on']('change:isActive',()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this['setTemplate']({'tag':'ul','attributes':{'class':['ck-thread__comments',_0x411bc1['if']('length','ck-hidden',_0x4ed09f=>!_0x4ed09f)],'aria-label':S(_0x5077a4,'Thread\x20comments')},'children':this['visibleViews']});}get['_shouldCollapse'](){return this['_model']['weight']>this['_config']['maxThreadTotalWeight']&&!this['isActive']&&!this['hasDirtyComment'];}['render'](){super['render'](),this['refreshVisibleViews'](),this['_setupKeyboardNavigation']();}['focus'](_0x59956f){-0x1===_0x59956f?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0xd5d6e3 of this['commentViews'])_0xd5d6e3['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x561460,_0x3f7771){const _0x3baa02=new this['_config']['CommentView'](this['locale'],_0x561460,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x3baa02['viewUid']=_0x561460['id'],_0x3baa02['delegate']('removeComment')['to'](this),_0x3baa02['delegate']('updateComment')['to'](this),_0x3baa02['delegate']('resolveCommentThread')['to'](this),_0x3baa02['delegate']('editorReady')['to'](this),_0x3baa02['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x3baa02,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x3baa02,_0x3f7771);}['_calculatePosition'](_0x375c4e){const _0x3da4bb=this['_model']['_findOptimalIndex'](_0x375c4e);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x375c4e['authoredAt']?_0x3da4bb-0x1:_0x3da4bb:_0x3da4bb-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x4d0f80={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':S(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x4d0f80,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x4d0f80));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x2cea96){const _0x461601=this['commentViews']['remove'](_0x2cea96['id']);this['stopListening'](_0x461601),_0x461601['isEditMode']&&this['_updateHasDirtyComment'](),_0x461601['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x561b73=>_0x561b73['isEditMode']);}['_rearrangeCollapse'](){const _0x14da2c=function(_0x1e09e6){const _0x3984e0=new _0x4fd75f();for(const _0x5918b9 of _0x1e09e6)_0x3984e0['add'](_0x5918b9);return _0x3984e0;}(this['commentViews']),_0x47917b=this['_collapsedCommentsView']['count'];for(let _0x421026=0x1;_0x421026<=_0x47917b;_0x421026++)_0x14da2c['remove'](0x1);for(const _0x55f774 of _0x14da2c)_0x55f774['collapse']();_0x47917b>0x0&&_0x14da2c['add'](this['_collapsedCommentsView'],0x1),ns(_0x1f30c1(Array['from'](this['visibleViews']),Array['from'](_0x14da2c)),this['visibleViews'],_0x14da2c);}['_rearrangeExpand'](){ns(_0x1f30c1(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x59a69d of this['visibleViews'])_0x59a69d['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x439f37=>{this['focusTracker']['add'](_0x439f37['element']),this['keystrokes']['listenTo'](_0x439f37['element']);}),this['commentViews']['on']('change',(_0x374b12,_0x3c2a4a)=>{for(const _0x380580 of _0x3c2a4a['removed'])this['focusTracker']['remove'](_0x380580['element']),this['keystrokes']['stopListening'](_0x380580['element']);for(const _0x553b7e of Array['from'](_0x3c2a4a['added'])['reverse']())this['focusTracker']['add'](_0x553b7e['element']),this['keystrokes']['listenTo'](_0x553b7e['element']);});}}function ns(_0x2f15a6,_0x3ce50f,_0x15fee3){let _0x5483ab=0x0;for(const _0x54923b of _0x2f15a6)switch(_0x54923b){case'insert':_0x3ce50f['add'](_0x15fee3['get'](_0x5483ab),_0x5483ab),_0x5483ab++;break;case'delete':_0x3ce50f['remove'](_0x5483ab);break;case'equal':_0x5483ab++;}}class as extends kt{constructor(_0x45cb0b){super(_0x45cb0b);const _0x19f943=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x19f943['to']('contextValue',_0x58ab70=>S(_0x45cb0b,'THREAD_CONTEXT_LABEL',_0x58ab70)),'tabindex':-0x1},'children':[{'text':_0x19f943['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x301fc5,_0x22a8c7){super(_0x301fc5);const _0x5d4662=this['bindTemplate'];this['_model']=_0x22a8c7,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x424f41(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x2934aa=>!!_0x2934aa),this['bind']('contextValue')['to'](this['_model'],'context',_0x55b696=>_0x55b696&&_0x55b696['value']?this['_trimContextValue'](_0x55b696['value']):S(this['locale'],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':['ck-context-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-context',_0x5d4662['if']('hasContext','ck-context--quotes')]},'children':[this['contextView']]}]},{'tag':'div','attributes':{'class':['ck-annotation__actions']},'children':[this['reopenButtonView']]}]});}['render'](){super['render'](),this['_attachContextActions'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_createReopenButton'](){const _0x960e0=new _0x57b97b(this['locale']);return _0x960e0['label']=S(this['locale'],'Reopen'),_0x960e0['tooltip']=S(this['locale'],'Reopen'),_0x960e0['icon']='<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22m5.042\x209.367\x202.189\x201.837a.75.75\x200\x200\x201-.965\x201.149l-3.788-3.18a.747.747\x200\x200\x201-.21-.284.75.75\x200\x200\x201\x20.17-.945L6.23\x204.762a.75.75\x200\x201\x201\x20.964\x201.15L4.863\x207.866h8.917A.75.75\x200\x200\x201\x2014\x207.9a4\x204\x200\x201\x201-1.477\x207.718l.344-1.489a2.5\x202.5\x200\x201\x200\x201.094-4.73l.008-.032H5.042z\x22/></svg>',_0x960e0['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x27ad5c=>!_0x27ad5c),_0x960e0['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3c4492,_0x3b5a3b)=>_0x3c4492&&_0x3b5a3b),_0x960e0['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x960e0;}['_trimContextValue'](_0x2b7da3){if(_0x2b7da3['length']<0x96)return _0x2b7da3;const _0x44a8e2=_0x2b7da3['lastIndexOf']('\x20',0x93);return _0x2b7da3['substring'](0x0,_0x44a8e2>-0x1?_0x44a8e2:0x93)+'...';}['_attachContextActions'](){const _0x5cf42d=this['element']['querySelector']('.ck-context'),_0x2a3694=_0x5cf42d['querySelector']('.ck-context__value');this['listenTo'](_0x5cf42d,'mouseenter',()=>{_0x2a3694['offsetWidth']<_0x2a3694['scrollWidth']&&_0x5cf42d['classList']['add']('overlay');}),this['listenTo'](_0x5cf42d,'mouseleave',()=>{_0x5cf42d['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x2e4071 of this['focusables'])this['focusTracker']['add'](_0x2e4071['element']),this['keystrokes']['listenTo'](_0x2e4071['element']);}['_createContextView'](){const _0x58b1d9=new as(this['locale']);return _0x58b1d9['bind']('contextValue')['to'](this),_0x58b1d9;}}class ss extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x1a15ed,_0x46d274,_0xf1a24c,_0x4a4962){super(_0x1a15ed),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x46d274,this['_localUser']=_0xf1a24c,this['_config']=_0x4a4962,this['commentThreadHeaderView']=new Yt(_0x1a15ed,_0x46d274),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0x1a15ed,S(_0x1a15ed,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x1a15ed,_0x46d274,Object['assign']({'CommentView':this['_config']['CommentView']},_0x4a4962)),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['delegate']('resolveCommentThread')['to'](this),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['listenTo'](this,'resolveCommentThread',()=>{this['focus']();}),this['set']('length',this['commentsListView']['length']),this['bind']('length')['to'](this['commentsListView'],'length'),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4047db,_0x5a562c)=>_0x4047db||!!_0x5a562c),this['bind']('isUnlinked')['to'](_0x46d274,'unlinkedAt',_0x19ff10=>!!_0x19ff10),this['bind']('ariaLabel')['to'](this,'length',_0x861375=>{const _0x44239f=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x861375,_0x44239f]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x424f41(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3cd305=>_0x3cd305['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),ts(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x4e958e=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xb727bb=_0x4e958e['commentInputView'];return _0x4e958e['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0xb727bb,'value',(_0x251a5b,_0x5a7f1b,_0x1a8082,_0x4fd5bd,_0x1ae194)=>!!_0x1ae194||!!_0x4fd5bd&&_0x1a8082&&!_0x5a7f1b||_0x251a5b&&_0x1a8082&&!_0x5a7f1b),_0xb727bb['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4a1897,_0x4cf1d0,_0x4f74a3)=>{let _0x4f3fcd;return _0x4f3fcd=_0x4f74a3&&_0x4cf1d0?'Reply\x20to\x20reopen\x20discussion...':_0x4a1897?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x4f3fcd);}),_0xb727bb['bind']('submitLabel')['to'](this,'length',_0x5e34ea=>S(this['locale'],_0x5e34ea?'Reply':'Comment')),_0xb727bb['on']('submit',(_0x3b02d0,_0xdce29)=>{this['fire']('addComment',_0xdce29),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0xb727bb['on']('cancel',()=>{this['focus']();}),_0xb727bb['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0xb727bb['on']('cancel',_0x57d64b=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x57d64b['stop']());}),this['on']('change:isActive',(_0x1ada75,_0x660b71,_0x5cbbf4)=>{_0x5cbbf4||this['length']||_0xb727bb['value']||this['fire']('removeCommentThread');}),_0x4e958e;}}class Ct extends/* #__PURE__ -- @preserve */
27
- ti(ss){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x283ab0,_0x40c93e,_0x3ff114,_0x151798){super(_0x283ab0,_0x40c93e,_0x3ff114,_0x151798),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x283ab0,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x28dec8,_0x242f7d,_0x146911)=>{_0x146911||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x1fa5be,_0x125a5f,_0x37b713)=>{_0x37b713&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x2ca166=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x2ca166['if']('isActive','ck-thread--active'),_0x2ca166['if']('isUnlinked','ck-thread--unlinked'),_0x2ca166['if']('isConfirm','ck-thread--remove-confirmation'),_0x2ca166['to']('actionIndicator',_0x333f74=>_0x333f74?'ck-thread--'+_0x333f74:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x2ca166['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':this['commentThreadChildren']}]};}['render'](){super['render'](),this['containerElement']=this['element']['querySelector']('.ck-thread__container'),this['_model']['on']('change:archivedAt',()=>{this['_updateArchivedThreadHeader']();}),this['_updateArchivedThreadHeader']();}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x24bcbd of this['commentsListView']['commentViews'])_0x24bcbd['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x3a9ee9}=this,_0x4042dd=this['commentsListView']['commentViews']['get'](0x0);_0x4042dd===this['_boundFirstCommentView']||_0x4042dd['isSystemComment']||(this['_boundFirstCommentView']=_0x4042dd,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x4042dd,'actionIndicator',_0x1a6d17=>'remove'===_0x1a6d17?'remove':null),_0x4042dd['placeholder']=S(_0x3a9ee9,'Write\x20a\x20comment...'),_0x4042dd['removeButton']['on']('execute',_0x50aa97=>{_0x50aa97['stop'](),this['showConfirm'](S(_0x3a9ee9,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x4042dd['focus']();}),_0x4042dd['actionBar']['add'](this['resolveButton'],0x0),_0x4042dd['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x3526bb=new _0x424fc3(this['locale']);return _0x3526bb['label']=S(this['locale'],'Resolve'),_0x3526bb['tooltip']=S(this['locale'],'Resolve'),_0x3526bb['icon']=_0xfdf0a4['check'],_0x3526bb['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x3526bb['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1c1319=>!_0x1c1319),_0x3526bb['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3b36f8,_0x10b30c)=>_0x3b36f8&&!_0x10b30c),_0x3526bb['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x3526bb;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class es extends kt{constructor(_0x28ecb1){super(_0x28ecb1),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x12abe5,_0x2b064e,_0x48efa5)=>{this['element']['innerHTML']=_0x48efa5;}),this['element']['innerHTML']=this['content'];}}class os extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x223920,_0x1d8ae1,_0x2d1bed){super(_0x223920),this['_model']=_0x1d8ae1,this['_config']=_0x2d1bed,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x1d8ae1,'content',_0x1d8ae1,'authoredAt',(_0x80cc40,_0x2bfc87)=>S(_0x223920,'COMMENT_ARIA_LABEL',[_0x1d8ae1['author']['name'],_0x2d1bed['formatDateTime'](_0x2bfc87),new DOMParser()['parseFromString'](_0x80cc40,'text/html')['body']['textContent'],_0x1d8ae1['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Zt(_0x223920,S(_0x223920,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x17461a(),this['focusTracker']=new _0x424f41(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x29f309=>_0x29f309['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['expand'](){this['isCollapsed']=!0x1;}['collapse'](){this['isEditMode']||(this['isCollapsed']=!0x0);}['focus'](){this['element']['focus']();}['render'](){super['render'](),this['_setupKeyboardNavigation']();}async['destroy'](){await this['visibleView']['get'](0x0)['destroy'](),super['destroy']();}['switchToEditMode'](){this['isEditMode']||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentInputView']()));}['switchToDisplayMode'](){this['isEditMode']&&(this['isEditMode']=!0x1,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentContentView']()));}['getExternalCommentNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?S(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):S(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?S(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):S(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x5a9ae7=new es(this['locale']);return _0x5a9ae7['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x88fa8,_0x36b9c0)=>_0x36b9c0?_0x5d0f96(_0x88fa8,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x88fa8),_0x5a9ae7;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x45ebea=new hs(this['locale'],this['_config']['editorConfig']);return _0x45ebea['value']=this['_model']['content'],_0x45ebea['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x45ebea['submitLabel']=S(this['locale'],'Save'),_0x45ebea['on']('submit',(_0x248a03,_0x4cd5d8)=>{this['fire']('updateComment',this['_model']['id'],_0x4cd5d8),this['switchToDisplayMode'](),this['focus']();}),_0x45ebea['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x45ebea['once']('editorReady',()=>{_0x45ebea['focus']();}),_0x45ebea['createEditor'](),_0x45ebea['delegate']('editorReady')['to'](this),_0x45ebea['delegate']('editorDestroyed')['to'](this),_0x45ebea;}['_setupKeyboardNavigation'](){const _0x5c1c29=this['element'];this['keystrokes']['listenTo'](_0x5c1c29);for(const _0x1489f3 of this['focusables'])this['focusTracker']['add'](_0x1489f3['element']),this['keystrokes']['listenTo'](_0x1489f3['element']);this['focusables']['on']('change',(_0x2aeac0,_0x1224f3)=>{for(const _0x4f65de of _0x1224f3['removed'])this['focusTracker']['remove'](_0x4f65de['element']),this['keystrokes']['stopListening'](_0x4f65de['element']);for(const _0x5a8a41 of _0x1224f3['added'])this['focusTracker']['add'](_0x5a8a41['element']),this['keystrokes']['listenTo'](_0x5a8a41['element']);}),this['keystrokes']['set']('enter',(_0x245a83,_0x48e1ce)=>{_0x5c1c29===_0x245a83['target']&&(this['focusCycler']['focusFirst'](),_0x48e1ce());}),this['keystrokes']['set']('esc',(_0x1e221e,_0x37c660)=>{_0x5c1c29!==_0x1e221e['target']&&(this['focus'](),_0x37c660());});}}class vt extends/* #__PURE__ -- @preserve */
28
- ti(os){['actionBar'];['userView'];constructor(_0x6ccffd,_0x40dd51,_0x54ec99){super(_0x6ccffd,_0x40dd51,_0x54ec99),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x6ccffd,'Reply...')),this['bind']('authoredAt')['to'](_0x40dd51),this['bind']('resolvedAt')['to'](_0x40dd51),this['actionBar']=this['createCollection'](),this['isSystemComment']||(this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['items']=this['createCollection'](),this['items']['addMany']([this['editButton'],this['removeButton']]),this['dropdown']=this['_createDropdown'](),this['actionBar']['add'](this['dropdown']),this['focusables']['add'](this['dropdown'])),this['userView']=new _0x27b058(_0x6ccffd,_0x40dd51['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x40dd51,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x306567=this['bindTemplate'],_0x481be1=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x306567['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x306567['to']('authoredAt',_0x1879d8=>this['_config']['formatDateTime'](_0x1879d8))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x306567['if']('isEditMode','ck-comment__actions--hidden'),_0x306567['if']('isEditMode','ck-annotation__actions--hidden')]},'children':this['actionBar']},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']},this['ariaDescriptionView']];return this['_model']['isExternal']&&_0x481be1['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x306567['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x306567['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x306567['if']('isEditMode','ck-comment--edit'),_0x306567['if']('isSystemComment','ck-comment--info'),_0x306567['to']('actionIndicator',_0x29f3ac=>_0x29f3ac?'ck-comment--'+_0x29f3ac:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id'],'role':'group'},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':_0x481be1}]}]};}['_createEditButton'](){const _0x5226da=new _0x57b97b(this['locale']);return _0x5226da['label']=S(this['locale'],'Edit'),_0x5226da['icon']=_0xfdf0a4['pencil'],_0x5226da['withText']=!0x0,_0x5226da['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x5226da['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4f1878=>!_0x4f1878),_0x5226da['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x5226da['on']('execute',()=>this['switchToEditMode']()),_0x5226da;}['_createRemoveButton'](){const _0x5100da=new _0x57b97b(this['locale']);return _0x5100da['label']=S(this['locale'],'Remove'),_0x5100da['icon']='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M5.2\x207h9.2c.6\x200\x201\x20.4\x201\x201v9.9c0\x20.5-.4\x201-1\x201H5.2a1\x201\x200\x200\x201-1-1V8c0-.6.4-1\x201-1zm1\x201.5c-.3\x200-.5.2-.5.5v8c0\x20.3.2.5.5.5h.5c.2\x200\x20.5-.2.5-.5V9c0-.3-.3-.5-.5-.5h-.5zm3.2\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.4zm3.5\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.5zm-1.4-7.1H8.3L6.5\x203.6H3.8c-.5\x200-.7.3-.7.8s.2.7.7.7h12c.6\x200\x20.9-.2.9-.7\x200-.5-.3-.8-1-.8h-2.4l-1.8-2.2z\x22/></svg>\x0a',_0x5100da['withText']=!0x0,_0x5100da['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x5100da['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x38022b=>!_0x38022b),_0x5100da['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x5100da['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x5100da;}['_createDropdown'](){const _0x1df9a3=_0x218ee0(this['locale'],_0x582bca),_0x15ea28=_0x1df9a3['panelView']['children'],_0x53fb65=new _0x5b8d5f(this['locale']),_0x43bccc=_0x1df9a3['bindTemplate'];_0x37cdcd(_0x1df9a3,()=>this['items']['find'](_0x50fce0=>_0x50fce0['isVisible'])),_0x1df9a3['extendTemplate']({'attributes':{'class':[_0x43bccc['if']('isVisible','ck-hidden',_0x3ddc66=>!_0x3ddc66)]}});const _0x50d37f=(_0x56ac78,_0x4c5fe3=-0x1)=>{const _0x3f052f=new _0x220ec1(this['locale']);_0x3f052f['children']['add'](_0x56ac78);const _0xe1e086=_0x4c5fe3>-0x1?_0x4c5fe3:_0x53fb65['items']['length'];_0x53fb65['items']['add'](_0x3f052f,_0xe1e086);const _0x5bbedd=Array['from'](this['items']);_0x1df9a3['unbind']('isEnabled','isVisible'),_0x1df9a3['bind']('isEnabled')['toMany'](_0x5bbedd,'isEnabled',(..._0x136d78)=>_0x136d78['some'](_0x352d63=>_0x352d63)),_0x1df9a3['bind']('isVisible')['toMany'](_0x5bbedd,'isVisible',(..._0x3e7729)=>_0x3e7729['some'](_0x5cce2f=>_0x5cce2f));};_0x1df9a3['panelPosition']='sw',_0x1df9a3['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0xfdf0a4['threeVerticalDots']});for(const _0x1c20af of this['items'])_0x50d37f(_0x1c20af);return _0x15ea28['add'](_0x53fb65),_0x1df9a3['listenTo'](this['items'],'add',(_0x1fb7b6,_0x5bf58f,_0xe3dc60)=>{_0x50d37f(_0x5bf58f,_0xe3dc60);}),_0x1df9a3['listenTo'](this['items'],'remove',(_0x63a48f,_0x27a946,_0x6c71d6)=>{_0x53fb65['items']['remove'](_0x6c71d6);}),_0x1df9a3;}['_attachActions'](_0x1f44a6,_0x356758){const _0x258cd8=_0x1f44a6&&_0x1f44a6['element'];_0x258cd8&&(this['listenTo'](_0x258cd8,'mouseenter',()=>this['actionIndicator']=_0x356758),this['listenTo'](_0x258cd8,'focus',()=>this['actionIndicator']=_0x356758),this['listenTo'](_0x258cd8,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x258cd8,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x10df55=super['_createCommentInputView']();return _0x10df55['bind']('placeholder')['to'](this),_0x10df55;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Dt(_0x5ee850){const _0x529e5e=bt(_0x5ee850,0x1e),_0x25839a=new MutationObserver(_0x18b60d=>{for(const _0x4baf82 of _0x18b60d)('attributes'==_0x4baf82['type']&&'class'==_0x4baf82['attributeName']||'childList'==_0x4baf82['type']||'characterData'==_0x4baf82['type'])&&_0x529e5e();});return{'attach'(_0xa4005b){_0x25839a['observe'](_0xa4005b,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x25839a['disconnect'](),_0x529e5e['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x46cb5d,_0x5ebf35){super(_0x46cb5d),this['id']=_0xa3844f(),this['focusTracker']=new _0x424f41(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x311b1f,_0x3247cc)=>this['fire']('Esc',_0x3247cc)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=Dt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x5ebf35),this['mainView']=_0x5ebf35;const _0x1ff94f=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x1ff94f['if']('isActive','ck-annotation-wrapper--active')],'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['focusTracker']['add'](this['element']),this['keystrokes']['listenTo'](this['element']),this['_mutationObserver']['attach'](this['element']);}['destroy'](){this['content']['clear'](),this['keystrokes']['destroy'](),this['focusTracker']['destroy'](),this['_mutationObserver']['detach'](),super['destroy']();}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['_updateHeight'](){const _0x555184=this['element']['clientHeight'];_0x555184&&(this['height']=_0x555184);}}class d extends/* #__PURE__ -- @preserve */
29
- _0x13a315(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x361f7c,target:_0x37bda1,type:_0x495bcd,isVisible:_0x21edcb=!0x0}){super(),this['view']=_0x361f7c,this['view']['element']||this['view']['render'](),this['_type']=_0x495bcd,this['_target']=_0x37bda1,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x4fd75f([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x4f5c0c,_0x2d8b6b)=>{this['view']['focusTracker']['add'](_0x2d8b6b);}),this['focusableElements']['on']('remove',(_0x58082c,_0x43beb7)=>{this['view']['focusTracker']['remove'](_0x43beb7);}),this['set']('isVisible',_0x21edcb);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x352e25=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x352e25),_0x352e25;}get['targetRect'](){const _0x424fd7=this['target'];if(null===_0x424fd7)return null;if(_0x424fd7 instanceof _0x44fba6)return _0x424fd7;const _0x373765=_0x424fd7['filter'](_0x23d786=>function(_0x1481a0){const _0x566edf=_0x1481a0['offsetParent'];if(_0x566edf)return!0x0;const _0x466120=_0x1481a0['getClientRects']()['item'](0x0);return!!_0x466120;}(_0x23d786));return 0x0===_0x373765['length']?null:new _0x44fba6(_0x373765[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x4c0ccb){this['view']['isActive']=_0x4c0ccb,this['view']['mainView']['isActive']=_0x4c0ccb;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x5210de){if(!(null===_0x5210de||_0x5210de instanceof _0x44fba6||Array['isArray'](_0x5210de)&&_0x5210de['every'](_0x8255fe=>ne(_0x8255fe))))throw new _0x59ce32('annotation-invalid-target',null,{'target':_0x5210de});}['_getNormalizedTarget'](){const _0x46a3a4='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x46a3a4)?[_0x46a3a4]:_0x46a3a4;}}function ne(_0xb22586){return null!==_0xb22586&&'object'==typeof _0xb22586&&'nodeType'in _0xb22586&&0x1===_0xb22586['nodeType'];}class x extends _0x4fd75f{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x3cff97=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x424f41(),this['_focusTracker']['on']('change:isFocused',(_0x550f08,_0x541c50,_0x5535a4)=>{_0x5535a4||this['fire']('blur');});for(const _0x4af03d of _0x3cff97)this['add'](_0x4af03d);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x3111cb){if(this['has'](_0x3111cb))throw new _0x59ce32('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x3111cb['innerView'],_0x3111cb),this['_viewToAnnotation']['set'](_0x3111cb['view'],_0x3111cb);for(const _0x50cbd1 of _0x3111cb['focusableElements'])this['_focusTracker']['add'](_0x50cbd1);this['listenTo'](_0x3111cb['focusableElements'],'add',(_0x26a185,_0x9adb65)=>{this['_focusTracker']['add'](_0x9adb65);}),this['listenTo'](_0x3111cb['focusableElements'],'remove',(_0x41c0b7,_0x590466)=>{this['_focusTracker']['remove'](_0x590466);}),this['listenTo'](_0x3111cb['view']['focusTracker'],'change:isFocused',(_0x346f59,_0xb32a78,_0x14c231)=>{_0x14c231&&this['fire']('focus',_0x3111cb);}),_0x3111cb['updateTargetRect']();const _0x562b81=this['_getOrderInContent'](_0x3111cb['view']['targetRect']);return super['add'](_0x3111cb,_0x562b81);}['remove'](_0x2256f2){if(!this['has'](_0x2256f2))throw new _0x59ce32('annotationcollection-not-existing-item',null);this['stopListening'](_0x2256f2['view']['focusTracker']),this['stopListening'](_0x2256f2['focusableElements']);for(const _0x2a3dde of _0x2256f2['focusableElements'])this['_focusTracker']['remove'](_0x2a3dde);return this['_viewToAnnotation']['delete'](_0x2256f2['view']),this['_innerViewToAnnotation']['delete'](_0x2256f2['innerView']),super['remove'](_0x2256f2);}['getByInnerView'](_0x4342a6){return this['_innerViewToAnnotation']['get'](_0x4342a6);}['getByView'](_0xf63f69){return this['_viewToAnnotation']['get'](_0xf63f69);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x3e1361 of this)_0x3e1361['updateTargetRect']();this['_sort']();}['_sort'](){const _0x109482=Array['from'](this)['sort']((_0x9fadb4,_0x52577a)=>v(_0x9fadb4['view']['targetRect'],_0x52577a['view']['targetRect']));for(let _0x3446d2=_0x109482['length']-0x1;_0x3446d2>0x0;_0x3446d2--){const _0x30178c=_0x109482[_0x3446d2];_0x3446d2!==this['getIndex'](_0x30178c)&&(this['remove'](_0x30178c),this['add'](_0x30178c));}}['_getOrderInContent'](_0x2276c9){let _0x1ed96c=0x0;if(!_0x2276c9)return this['length'];for(const _0x44f569 of this){const _0x1aaa5f=_0x44f569['view']['targetRect'];if(_0x1aaa5f){if(v(_0x2276c9,_0x1aaa5f)<0x0)return _0x1ed96c;_0x1ed96c++;}}return _0x1ed96c;}}function v(_0x4cb0ad,_0x3db833){if(null===_0x4cb0ad&&null===_0x3db833)return 0x0;if(null===_0x4cb0ad)return-0x1;if(null===_0x3db833)return 0x1;const _0x323d7e=_0x4cb0ad['top']-_0x3db833['top'];return 0x0==_0x323d7e?_0x4cb0ad['left']-_0x3db833['left']:_0x323d7e;}class N extends _0x529673{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d0e67){if(super(_0x4d0e67),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x4d0e67 instanceof _0x2e1330){const _0x5db016=_0x4d0e67['locale'];_0x4d0e67['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x5db016,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x5db016,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x5db016,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x5db016,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x5db016,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x5db016,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x5db016,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x194840){this['collection']['add'](_0x194840);}['remove'](_0xa988ac){this['collection']['remove'](_0xa988ac),_0xa988ac['destroy']();}['refreshVisibility'](){for(const _0x47bf34 of this['collection'])_0x47bf34['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x11a5ea){return this['collection']['getByInnerView'](_0x11a5ea);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x2a14c1 of this['collection'])_0x2a14c1['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x479090){this['fire']('_activateAnnotation',_0x479090);}['createAnnotation'](_0xf92782){return new d(_0xf92782);}['createAnnotationView'](_0x3110de,_0x2034a1){return new T(_0x3110de,_0x2034a1);}['_addActiveAnnotation'](_0x3076f4){const _0x504b43=new Set(this['activeAnnotations']);_0x504b43['add'](_0x3076f4),this['activeAnnotations']=_0x504b43;}['_removeActiveAnnotation'](_0x55b3a7){const _0x7166d1=new Set(this['activeAnnotations']);_0x7166d1['delete'](_0x55b3a7),this['activeAnnotations']=_0x7166d1;}['_bindAnnotationsToVisibleAnnotations'](){const _0x5e231c=this['collection'],_0x5b01f7=this['_visibleAnnotations'];function _0x180c72(_0x24405d){const _0x11df1c=_0x24405d['source'];_0x11df1c['isVisible']&&!_0x5b01f7['has'](_0x11df1c)?_0x5b01f7['add'](_0x11df1c):!_0x11df1c['isVisible']&&_0x5b01f7['has'](_0x11df1c)&&_0x5b01f7['remove'](_0x11df1c),_0x11df1c['view']['focusTracker']['remove'](_0x11df1c['view']['element']),_0x11df1c['view']['focusTracker']['add'](_0x11df1c['view']['element']);}this['listenTo'](_0x5e231c,'add',(_0x4155b3,_0x6b2d78)=>{_0x6b2d78['isVisible']&&_0x5b01f7['add'](_0x6b2d78),this['listenTo'](_0x6b2d78,'change:isVisible',_0x180c72);}),this['listenTo'](_0x5e231c,'remove',(_0x47309b,_0x36563d)=>{_0x5b01f7['has'](_0x36563d)&&_0x5b01f7['remove'](_0x36563d),this['stopListening'](_0x36563d,'change:isVisible',_0x180c72);});}['_setupEnterAnnotationKeystroke'](){const _0x3c71c0=_0x5aa21b=>{_0x5aa21b['on']('ready',()=>{_0x5aa21b['keystrokes']['set'](_0x38fb47,(_0x2c3cda,_0x3a0548)=>{const _0x3c6c99=_0x1f6fa1(this['activeAnnotations']['values']());_0x3c6c99&&(_0x3c6c99['view']['focus'](),_0x3a0548());});});};this['context']instanceof _0x2e1330?_0x3c71c0(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x3a5296,_0x3d2b72)=>{_0x3c71c0(_0x3d2b72);});}['_setupEscapeAnnotationHandling'](){const _0x26fe42=_0x50ecea=>{const _0xdd9d94=_0x50ecea['source'],_0x296746=[];let _0x1fa263;if(Array['isArray'](_0xdd9d94['target'])){_0x1fa263=_0xdd9d94['target'][0x0],this['context']instanceof _0x2e1330?_0x296746['push'](this['context']):this['context']['editors']&&_0x296746['push'](...this['context']['editors']);for(const _0x21af5b of _0x296746)for(const _0x44d68a of _0x21af5b['editing']['view']['domRoots']['values']())if(_0x44d68a['contains'](_0x1fa263))return void _0x21af5b['editing']['view']['focus']();_0x1fa263['focus']();}};this['listenTo'](this['collection'],'add',(_0xc0a311,_0x3c565f)=>{this['listenTo'](_0x3c565f,'escape',_0x26fe42,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x9e5a86,_0x1b556b)=>{this['stopListening'](_0x1b556b,'escape',_0x26fe42);});}}const gt=Symbol('noChannel'),Tt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x529673{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[N,ht,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf2f3dd){super(_0xf2f3dd),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x460c2e=this['context']['config'];_0x460c2e['define']('comments.maxCommentsWhenCollapsed',0x2),_0x460c2e['define']('comments.maxThreadTotalWeight',0x1f4),_0x460c2e['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x460c2e['define']('comments.CommentThreadView',Ct),_0x460c2e['define']('comments.CommentView',vt),_0x460c2e['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x3488d8=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x47f071,_0x5c36f5)=>this['_addCommentThread'](_0x5c36f5)),this['on']('submitCommentThread',(_0x34aed6,_0x49488e)=>this['_submitCommentThread'](_0x49488e)),this['on']('resolveCommentThread',(_0x124032,_0x10ad91)=>this['_resolveCommentThread'](_0x10ad91)),this['on']('resolveCommentThread',(_0x39ede4,_0x5294f8)=>this['_updateActiveAnnotation'](_0x5294f8),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x5445ab,_0x27fcb2)=>this['_reopenCommentThread'](_0x27fcb2)),this['on']('reopenCommentThread',(_0x312252,_0x46a0b3)=>this['_updateActiveAnnotation'](_0x46a0b3),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x19e87b,_0x4471a7)=>this['_removeCommentThread'](_0x4471a7)),this['on']('updateCommentThread',(_0xf62f0,_0x26bf94)=>this['_updateCommentThread'](_0x26bf94)),this['on']('updateCommentThread',(_0x54f23b,_0x23cbde)=>this['_updateActiveAnnotation'](_0x23cbde),{'priority':'lowest'}),this['on']('addComment',(_0xaff96e,_0x2e82de)=>this['_addComment'](_0x2e82de)),this['on']('updateComment',(_0xf5dfc8,_0x36e0b6)=>this['_updateComment'](_0x36e0b6)),this['on']('removeComment',(_0x4d60ff,_0x5d5b78)=>this['_removeComment'](_0x5d5b78)),this['on']('addComment',(_0x400848,{threadId:_0x30a11b,isFromAdapter:_0x277e91})=>{if(_0x277e91)return;const _0xef7224=this['getCommentThread'](_0x30a11b),_0x36665b=_0xef7224&&this['_threadToController']['get'](_0xef7224);_0x36665b&&_0x36665b['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x3488d8,'change:activeAnnotations',(_0x1ce5df,_0x16622d,_0x39c21c)=>{const _0x5e687d=Array['from'](_0x39c21c)['map'](_0x392ac1=>this['_viewToController']['get'](_0x392ac1['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x5e687d?_0x5e687d['model']:null;});}set['adapter'](_0x5271e2){if(this['_adapter'])throw new _0x59ce32('commentsrepository-adapter-already-set');this['_adapter']=_0x5271e2;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x148487=gt,threadId:_0x1b7ab7=_0xa3844f(),comments:_0x3d763a=[],unlinkedAt:_0x4c4e98=null,resolvedAt:_0x2f9ef0=null,resolvedBy:_0x33fc98=null,target:_0x5be366=null,context:_0x2ba9b6=null,attributes:_0x1d1f4d={},isResolvable:_0x3de7ae=!0x0,isSubmitted:_0x1deb78=!0x1,isFromAdapter:_0x2a789e=!0x1}={}){return this['fire'](_t('addCommentThread',_0x148487),{'channelId':_0x148487,'threadId':_0x1b7ab7,'comments':_0x3d763a,'unlinkedAt':_0x4c4e98,'resolvedAt':_0x2f9ef0,'resolvedBy':_0x33fc98,'target':_0x5be366,'context':_0x2ba9b6,'attributes':_0x1d1f4d,'isFromAdapter':_0x2a789e,'isResolvable':_0x3de7ae,'isSubmitted':_0x1deb78}),this['getCommentThread'](_0x1b7ab7);}['openNewCommentThread']({channelId:_0x126ed8=gt,threadId:_0x337e43=_0xa3844f(),target:_0x586b4a,context:_0x4fd46e=null,isResolvable:_0x39e16d=!0x0}){if(this['_readOnlyChannels']['has'](_0x126ed8)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x586b4a)throw new _0x59ce32('commentsrepository-missing-target');const _0x900db3=this['addCommentThread']({'channelId':_0x126ed8,'threadId':_0x337e43,'target':_0x586b4a,'context':_0x4fd46e,'isResolvable':_0x39e16d});if(!_0x900db3)return null;const _0x52552d=this['_threadToController']['get'](_0x900db3),_0x4f12d2=_0x52552d['view']['commentThreadInputView']['commentInputView'],_0x428257=this['context']['plugins']['get'](N),_0x211ef0=_0x428257['getByInnerView'](_0x52552d['view']);return _0x428257['activate'](_0x211ef0),_0x4f12d2['once']('editorReady',()=>_0x4f12d2['focus']()),_0x900db3;}['hasCommentThread'](_0xb44c73){if('string'!=typeof _0xb44c73)throw new _0x59ce32('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0xb44c73);}['updateCommentThread']({channelId:_0x4b3bb8=gt,threadId:_0x3fd373,context:_0x3952f4,unlinkedAt:_0x39dda4,attributes:_0x93f012,isFromAdapter:_0x5d2d3b=!0x1}){return this['fire'](_t('updateCommentThread',_0x4b3bb8),{'channelId':_0x4b3bb8,'threadId':_0x3fd373,'context':_0x3952f4,'unlinkedAt':_0x39dda4,'attributes':_0x93f012,'isFromAdapter':_0x5d2d3b}),this['getCommentThread'](_0x3fd373);}['getCommentThread'](_0x2e0bea){if('string'!=typeof _0x2e0bea)throw new _0x59ce32('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x2e0bea);}['fetchCommentThread']({channelId:_0x5a156f,threadId:_0x13d56b}={}){const _0x5118c5=this['getCommentThread'](_0x13d56b);if(_0x5118c5)return Promise['resolve'](_0x5118c5);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x59ce32('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x5a156f,'threadId':_0x13d56b})['then'](_0x4a9335=>this['hasCommentThread'](_0x13d56b)?this['getCommentThread'](_0x13d56b):_0x4a9335?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x5a156f},_0x4a9335)):void 0x0)['catch'](_0x354605=>{throw console['error'](_0x354605),new _0x59ce32('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x139412,skipNotAttached:_0x15188e=!0x1,skipEmpty:_0x20822f=!0x1,toJSON:_0x51da3c=!0x1}={}){const _0x200082=[];for(const _0x3bc955 of this['_threads']['values']())_0x139412&&_0x3bc955['channelId']!==_0x139412||_0x15188e&&!_0x3bc955['isAttached']||_0x20822f&&0x0===_0x3bc955['length']||_0x200082['push'](_0x3bc955);return _0x51da3c?_0x200082['map'](_0x2431a5=>_0x2431a5['toJSON']()):_0x200082;}['setActiveCommentThread'](_0x280c8f){const _0x226536=this['context']['plugins']['get'](N);if(!_0x280c8f)return void(this['activeCommentThread']&&_0x226536['deactivateAll']());const _0xf76bf6=this['getCommentThread'](_0x280c8f);if(!_0xf76bf6)throw new _0x59ce32('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x280c8f});if(!this['_threadToController']['has'](_0xf76bf6))throw new _0x59ce32('commentsrepository-active-not-attached',null,{'threadId':_0x280c8f});const _0x2ff35c=_0x226536['getByInnerView'](this['_threadToController']['get'](_0xf76bf6)['view']);_0x226536['activate'](_0x2ff35c);}['switchReadOnly'](_0x118ae1,_0x2ba0b9){_0x118ae1?this['_readOnlyChannels']['add'](_0x2ba0b9):this['_readOnlyChannels']['delete'](_0x2ba0b9),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x32ae67){return this['_readOnlyChannels']['has'](_0x32ae67)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x34328d,_0x4b09c9){return new yt(_0x34328d,_0x4b09c9);}['setPermissions'](_0x475772,_0x37193d=gt){this['_permissions']['set'](_0x37193d,_0x475772),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x379c31=gt){return this['_permissions']['has'](_0x379c31)?this['_permissions']['get'](_0x379c31):Tt;}['_addCommentThread']({channelId:_0x526b33,threadId:_0x154d57,comments:_0x14cc4c,unlinkedAt:_0x51229b,resolvedAt:_0x33b753,resolvedBy:_0x22adf6,target:_0x1679e0,context:_0x415032,attributes:_0xcd2cfe,isFromAdapter:_0x31d7ec,isResolvable:_0x3b3fd7,isSubmitted:_0x1b588c}){if('string'!=typeof _0x154d57)throw new _0x59ce32('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x154d57});if(this['hasCommentThread'](_0x154d57))throw new _0x59ce32('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x154d57});const _0x166282=new oe(this,{'channelId':_0x526b33,'id':_0x154d57,'context':_0x415032,'attributes':_0xcd2cfe,'unlinkedAt':_0x51229b,'resolvedAt':_0x33b753,'resolvedBy':_0x22adf6?this['context']['plugins']['get'](it)['getUser'](_0x22adf6):null,'isResolvable':_0x3b3fd7,'isSubmitted':_0x1b588c||_0x31d7ec});this['_threads']['set'](_0x154d57,_0x166282);for(const _0x2ee50a of _0x14cc4c)_0x166282['_add'](this['_createNewComment']({'threadId':_0x154d57,..._0x2ee50a}));return _0x1679e0&&_0x166282['attachTo'](_0x1679e0),_0x31d7ec||!_0x166282['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x526b33,'threadId':_0x154d57});}['_submitCommentThread']({channelId:_0x1afeb8,threadId:_0x1697e8}){if(!this['hasCommentThread'](_0x1697e8))throw new _0x59ce32('commentsrepository-missing-comment-thread',this);const _0x1043ea=this['getCommentThread'](_0x1697e8);if(_0x1043ea['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x12480d,comments:_0x345789,resolvedAt:_0x5844e3,resolvedBy:_0x97c414,context:_0x7c2170,attributes:_0x39adbe}=_0x1043ea,_0x5280b3=this['context']['plugins']['get']('PendingActions'),_0x4d2d63=_0x5280b3['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x1afeb8,'threadId':_0x12480d,'comments':_0x345789['map'](_0xf7c88b=>_0xf7c88b['toJSON']()),'resolvedAt':_0x5844e3,'resolvedBy':_0x97c414?_0x97c414['id']:_0x97c414,'context':_0x7c2170,'attributes':_0x39adbe})['then'](({comments:_0x14c039})=>{_0x5280b3['remove'](_0x4d2d63);for(const _0x54bbbd of _0x14c039)this['_updateComment']({'channelId':_0x1afeb8,'threadId':_0x1697e8,'commentId':_0x54bbbd['commentId'],'createdAt':_0x54bbbd['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x3b9232=>{throw console['error'](_0x3b9232),new _0x59ce32('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x2c7773,target:_0x5a5720}){const _0x57a10a=this['getCommentThread'](_0x2c7773);if(!_0x57a10a)throw new _0x59ce32('commentsrepository-attach-missing-comment-thread',this);const _0xac9410=this['context']['plugins']['get']('PendingActions'),_0x4db9dc=this['context']['plugins']['get'](N),_0x37d1a7=this['_createCommentThreadView'](_0x57a10a),_0xbaf4ab=new yt(_0x57a10a,_0x37d1a7);let _0x114acf=null;_0x37d1a7['on']('change:isDirty',(_0x14a1b7,_0x11344c,_0x2551b7)=>{_0x2551b7?_0x114acf=_0xac9410['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x114acf&&(_0xac9410['remove'](_0x114acf),_0x114acf=null);}),this['_threadToController']['set'](_0x57a10a,_0xbaf4ab),this['_viewToController']['set'](_0x37d1a7,_0xbaf4ab);const _0x20aea6=new T(this['context']['locale'],_0x37d1a7);_0x20aea6['bind']('length')['to'](_0x37d1a7),_0x20aea6['bind']('isDirty')['to'](_0x37d1a7,'isDirty',_0x37d1a7,'length',(_0x3ff682,_0x2671cb)=>_0x3ff682||!_0x2671cb),_0x20aea6['bind']('isActive')['to'](_0x37d1a7),_0x20aea6['type']='comment';const _0xecc39d=new d({'view':_0x20aea6,'target':_0x5a5720,'type':'comment','isVisible':!_0x57a10a['isResolved']});return _0x37d1a7['on']('escape',()=>{_0xecc39d['fire']('escape');}),this['_bindAnnotationToEditors'](_0x37d1a7,_0xecc39d),_0x4db9dc['add'](_0xecc39d),_0xecc39d;}['_bindAnnotationToEditors'](_0x2d50ea,_0x4d5af3){this['listenTo'](_0x2d50ea,'editorReady',(_0x25f92c,_0x48bbfd)=>{const _0x3a95c6=_0x48bbfd['ui']['view']['body']['bodyCollectionContainer'];_0x4d5af3['focusableElements']['add'](_0x3a95c6),this['context']instanceof _0x2e1330&&this['context']['ui']['focusTracker']['add'](_0x3a95c6);},{'priority':'highest'}),this['listenTo'](_0x2d50ea,'editorDestroyed',(_0x2134d7,_0x44273d)=>{const _0x483dcd=_0x44273d['ui']['view']['body']['bodyCollectionContainer'];_0x4d5af3['focusableElements']['has'](_0x483dcd)&&_0x4d5af3['focusableElements']['remove'](_0x483dcd),this['context']instanceof _0x2e1330&&this['context']['ui']['focusTracker']['remove'](_0x483dcd);});}['_unbindEditors'](_0x41a668){this['stopListening'](_0x41a668,'editorReady'),this['stopListening'](_0x41a668,'editorDestroyed');}['_createCommentThreadView'](_0x5885f1){const _0x18d740=this['context']['plugins']['get'](it),{config:_0x13021e,locale:_0x174e42}=this['context'],_0xe55c97=mt(_0x13021e['get']('locale'));return new(0x0,(_0x13021e['get']('comments'))['CommentThreadView'])(_0x174e42,_0x5885f1,_0x18d740['me'],{'editorConfig':{..._0x13021e['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x13021e['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x13021e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x13021e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x13021e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xe55c97,'CommentView':_0x13021e['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x205b54,channelId:_0x2745d4,resolvedAt:_0x2adc76,resolvedBy:_0x237f5f,isFromAdapter:_0x1e3022}){if(!this['hasCommentThread'](_0x205b54))throw new _0x59ce32('commentsrepository-missing-comment-thread',null,{'threadId':_0x205b54});const _0x2699de=this['getCommentThread'](_0x205b54);if(_0x2699de['isResolved'])throw new _0x59ce32('commentsrepository-resolved-comment-thread',null,{'threadId':_0x205b54});const _0x5a9ed3=this['context']['plugins']['get'](it);if(_0x2699de['resolvedBy']=_0x5a9ed3['getUser'](_0x237f5f),_0x2699de['resolvedAt']=_0x2adc76,_0x1e3022||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x48d213=this['context']['plugins']['get']('PendingActions'),_0x33bb2a=_0x48d213['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x2745d4,'threadId':_0x205b54})['then'](({resolvedAt:_0x1d29be,resolvedBy:_0x2473ec})=>{_0x48d213['remove'](_0x33bb2a),_0x2699de['resolvedBy']['id']!==_0x2473ec&&(_0x2699de['resolvedBy']=_0x5a9ed3['getUser'](_0x2473ec)),_0x2699de['resolvedAt']=_0x1d29be;})['catch'](_0xbc1ce7=>{throw console['error'](_0xbc1ce7),new _0x59ce32('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x2bed3b,channelId:_0x26de09,isFromAdapter:_0x5d48be}){if(!this['hasCommentThread'](_0x2bed3b))throw new _0x59ce32('commentsrepository-missing-comment-thread',null,{'threadId':_0x2bed3b});const _0x5d2739=this['getCommentThread'](_0x2bed3b);if(!_0x5d2739['isResolved'])throw new _0x59ce32('commentsrepository-reopen-comment-thread',null,{'threadId':_0x2bed3b});if(_0x5d2739['resolvedBy']=null,_0x5d2739['resolvedAt']=null,_0x5d48be||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x1d27da=this['context']['plugins']['get']('PendingActions'),_0x51d278=_0x1d27da['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x26de09,'threadId':_0x2bed3b})['then'](()=>_0x1d27da['remove'](_0x51d278))['catch'](_0x59b2f1=>{throw console['error'](_0x59b2f1),new _0x59ce32('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0xc65efc,isFromAdapter:_0x18d587}){const _0x2299b1=this['getCommentThread'](_0xc65efc);if(!_0x2299b1)throw new _0x59ce32('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0xc65efc),this['_threads']['delete'](_0xc65efc),!_0x2299b1['isSubmitted']||_0x18d587||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x1484ac=this['context']['plugins']['get']('PendingActions'),{channelId:_0x56cd61}=_0x2299b1,_0x3ca91d=_0x1484ac['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x56cd61,'threadId':_0xc65efc})['then'](()=>_0x1484ac['remove'](_0x3ca91d))['catch'](_0x2ed107=>{throw console['error'](_0x2ed107),new _0x59ce32('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x5b0a23,unlinkedAt:_0x2de72d,context:_0x444792,attributes:_0xa79d2d,isFromAdapter:_0x5d1a4f}){if('string'!=typeof _0x5b0a23)throw new _0x59ce32('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x5b0a23});if(!this['hasCommentThread'](_0x5b0a23))throw new _0x59ce32('commentsrepository-missing-comment-thread',null,{'threadId':_0x5b0a23});const _0x766fd1=this['getCommentThread'](_0x5b0a23);let _0x2b7ed4=!0x1;if(void 0x0!==_0x444792&&_0x766fd1['context']!==_0x444792&&(_0x766fd1['context']=_0x444792,_0x2b7ed4=!0x0),void 0x0!==_0x2de72d&&_0x766fd1['unlinkedAt']!==_0x2de72d&&(_0x766fd1['unlinkedAt']=_0x2de72d,_0x2b7ed4=!0x0),_0xa79d2d&&!It(_0xa79d2d,_0x766fd1['attributes'])&&(_0x766fd1['attributes']=_0xa79d2d,_0x2b7ed4=!0x0),!_0x2b7ed4)return Promise['resolve']();if(!_0x766fd1['isSubmitted']||_0x5d1a4f||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x261844=this['context']['plugins']['get']('PendingActions'),{channelId:_0x371f6d}=_0x766fd1,_0x37c301=_0x261844['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x371f6d,'threadId':_0x5b0a23,'context':_0x444792,'unlinkedAt':_0x2de72d,'attributes':_0xa79d2d})['then'](()=>_0x261844['remove'](_0x37c301))['catch'](_0x3f333f=>{throw console['error'](_0x3f333f),new _0x59ce32('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x3fe9a3){const _0x4c0e8f=this['context']['plugins']['get'](N),_0x4baa71=this['getCommentThread'](_0x3fe9a3);if(this['_threadToController']['has'](_0x4baa71)){const _0xe29ef9=this['_threadToController']['get'](_0x4baa71),_0x5ec60a=_0xe29ef9['view'],_0x312909=_0x4c0e8f['getByInnerView'](_0x5ec60a);this['_threadToController']['delete'](_0x4baa71),this['_viewToController']['delete'](_0x5ec60a),_0x312909&&_0x4c0e8f['remove'](_0x312909),_0xe29ef9['destroy'](),_0x5ec60a['destroy']()['then'](()=>{this['_unbindEditors'](_0x5ec60a);});}}['_updateActiveAnnotation']({threadId:_0x324eda,resolvedAt:_0x17e247}){const _0x2692d3=!!_0x17e247,_0xa4ce63=this['context']['plugins']['get'](N),_0xf124b7=this['getCommentThread'](_0x324eda);if(this['_threadToController']['has'](_0xf124b7)){const _0x5bcbeb=this['_threadToController']['get'](_0xf124b7)['view'],_0x3a78da=_0xa4ce63['getByInnerView'](_0x5bcbeb);_0x3a78da&&(_0x2692d3&&_0xa4ce63['_removeActiveAnnotation'](_0x3a78da),_0x3a78da['refreshVisibility']());}}['_getExternalAuthor'](_0x4f5e2f){const _0x1ec059=this['context']['plugins']['get'](it),_0x143c28=lt('external:'+_0x4f5e2f),_0xd260a0=_0x1ec059['getUser'](_0x143c28);return _0xd260a0||_0x1ec059['addUser']({'id':_0x143c28,'name':_0x4f5e2f});}['_createNewComment']({threadId:_0x3cfad1,commentId:_0x1e6c78=_0xa3844f(),content:_0x1cd48a,authorId:_0x57de5b,createdAt:_0x3c0c5c,attributes:_0x431d6a}){if('string'!=typeof _0x1e6c78)throw new _0x59ce32('commentsrepository-invalid-commentid');if('string'!=typeof _0x57de5b)throw new _0x59ce32('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x1cd48a||!_0x1cd48a['trim']())throw new _0x59ce32('commentsrepository-invalid-comment-content');const _0xb625d6=this['context']['plugins']['get'](it)['getUser'](_0x57de5b);if(!_0xb625d6)throw new _0x59ce32('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x57de5b});let _0x216b6c=null,_0x394b42=_0x3c0c5c;return _0x431d6a&&_0x431d6a['@external']&&(_0x216b6c=this['_getExternalAuthor'](_0x431d6a['@external']['authorName']),_0x394b42=new Date(_0x431d6a['@external']['createdAt'])),new re(this,{'threadId':_0x3cfad1,'id':_0x1e6c78,'author':_0x216b6c||_0xb625d6,'creator':_0xb625d6,'content':_0x1cd48a,'createdAt':_0x3c0c5c,'authoredAt':_0x394b42,'attributes':_0x431d6a});}['_addComment'](_0x299944){let {threadId:_0x1645f7,content:_0x864c1a,attributes:_0x3e68a7,isFromAdapter:_0x13beef}=_0x299944;const _0xf2fb30=this['getCommentThread'](_0x299944['threadId']);if(!_0xf2fb30)throw new _0x59ce32('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x524f40=this['_createNewComment'](_0x299944),{id:_0x5403d3}=_0x524f40;if(_0xf2fb30['_add'](_0x524f40),_0x13beef||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0xf2fb30['isSubmitted'])return Promise['resolve']();const _0x3e4c12=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2df261}=_0xf2fb30,_0x5080e8=_0x3e4c12['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x3e68a7||(_0x3e68a7={}),this['adapter']['addComment']({'channelId':_0x2df261,'threadId':_0x1645f7,'commentId':_0x5403d3,'content':_0x864c1a,'attributes':_0x3e68a7})['then'](_0x3e19ae=>{_0x3e4c12['remove'](_0x5080e8),_0x3e19ae&&this['_updateComment']({'channelId':_0x2df261,'threadId':_0x1645f7,'commentId':_0x5403d3,'createdAt':_0x3e19ae['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x4218f9=>{throw console['error'](_0x4218f9),new _0x59ce32('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x40ee64,commentId:_0xe7a398,content:_0x4ab564,createdAt:_0x5c00ac,attributes:_0x7f7a90,isFromAdapter:_0x18d118}){if(void 0x0!==_0x4ab564&&('string'!=typeof _0x4ab564||!_0x4ab564['trim']()['length']))throw new _0x59ce32('commentsrepository-update-comment-invalid-content');const _0x16130d=this['getCommentThread'](_0x40ee64),_0x1451d4=_0x16130d['getComment'](_0xe7a398);if(!_0x1451d4)throw new _0x59ce32('commentsrepository-update-missing-comment',this);let _0x51e520=!0x1;if(_0x4ab564&&_0x4ab564!==_0x1451d4['content']&&(_0x1451d4['isEditable']||_0x18d118)&&(_0x1451d4['content']=_0x4ab564,_0x51e520=!0x0),_0x5c00ac&&_0x5c00ac!==_0x1451d4['createdAt']&&(_0x1451d4['createdAt']=_0x5c00ac,_0x1451d4['attributes']&&_0x1451d4['attributes']['@external']||(_0x1451d4['authoredAt']=_0x5c00ac),_0x51e520=!0x0),_0x7f7a90&&!It(_0x7f7a90,_0x1451d4['attributes'])&&(_0x1451d4['attributes']=_0x7f7a90,_0x51e520=!0x0),!_0x51e520)return Promise['resolve']();if(_0x16130d['fire']('commentUpdated'),_0x18d118||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x18f448=this['context']['plugins']['get']('PendingActions'),{channelId:_0x19ecae}=this['getCommentThread'](_0x1451d4['threadId']),_0x56b343=_0x18f448['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x19ecae,'threadId':_0x40ee64,'commentId':_0xe7a398,'content':_0x4ab564,'attributes':_0x7f7a90})['then'](()=>_0x18f448['remove'](_0x56b343))['catch'](_0x4361d3=>{throw console['error'](_0x4361d3),new _0x59ce32('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0xad6941,commentId:_0xba9261,isFromAdapter:_0x102b34}){const _0x396657=this['getCommentThread'](_0xad6941),_0x290516=_0x396657['getComment'](_0xba9261);if(!_0x290516)throw new _0x59ce32('commentsrepository-remove-missing-comment',this);if(_0x396657['_remove'](_0x290516),_0x102b34||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x8bc850=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1ddfdb}=_0x396657,_0x108d54=_0x8bc850['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x1ddfdb,'threadId':_0xad6941,'commentId':_0xba9261})['then'](()=>_0x8bc850['remove'](_0x108d54))['catch'](_0xa4def4=>{throw console['error'](_0xa4def4),new _0x59ce32('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
30
- _0x13a315(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x4b628f,_0x584ba5){super();const _0x138e90=_0x584ba5['isResolvable'];this['channelId']=_0x584ba5['channelId'],this['id']=_0x584ba5['id'],this['comments']=new _0x4fd75f(),this['_repository']=_0x4b628f,this['_isAttached']=!0x1,this['_isSubmitted']=_0x584ba5['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x4b628f,'_permissions',_0x4b628f,'_readOnlyChannels',()=>_0x4b628f['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x4b628f,'_permissions',()=>_0x4b628f['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x4b628f,'_permissions',()=>{const _0x551003=_0x4b628f['getPermissions'](this['channelId']);return _0x551003['write']||_0x551003['admin'];}),this['bind']('isResolvable')['to'](_0x4b628f,'_permissions',()=>_0x138e90&&_0x4b628f['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x584ba5['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x2351a0,_0x24efa3)=>_0x2351a0?_0x24efa3?_0x2351a0<_0x24efa3?_0x2351a0:_0x24efa3:_0x2351a0:_0x24efa3),this['set']('unlinkedAt',_0x584ba5['unlinkedAt']||null),this['set']('resolvedAt',_0x584ba5['resolvedAt']||null),this['set']('resolvedBy',_0x584ba5['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x14e1dd=>!!_0x14e1dd),this['set']('attributes',_0x584ba5['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x40885f,_0x27afde)=>_0x40885f+_0x27afde['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x9ecdcc,id:_0x462770}=this;this['_repository']['fire'](_t('submitCommentThread',_0x9ecdcc),{'channelId':_0x9ecdcc,'threadId':_0x462770});}['setUnlinkedAt'](_0x456e34){this['_update']({'unlinkedAt':_0x456e34});}['resolve']({resolvedAt:_0xd8cc4b=new Date(),resolvedBy:_0x7b84dd=null,isFromAdapter:_0x4a9b43=!0x1}={}){const _0x89b5bc=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x23cbfb,id:_0x42c1ac}=this;this['_repository']['fire'](_t('resolveCommentThread',_0x23cbfb),{'channelId':_0x23cbfb,'threadId':_0x42c1ac,'resolvedAt':_0xd8cc4b,'resolvedBy':_0x7b84dd||_0x89b5bc['id'],'isFromAdapter':_0x4a9b43});}['reopen']({isFromAdapter:_0x223225=!0x1}={}){const {channelId:_0x48acdd,id:_0x1c17bf}=this;this['_repository']['fire'](_t('reopenCommentThread',_0x48acdd),{'channelId':_0x48acdd,'threadId':_0x1c17bf,'isFromAdapter':_0x223225});}['setContext'](_0x120e0a){this['context']||this['_update']({'context':_0x120e0a});}['setAttribute'](_0x3ab58d,_0x532224){const _0x6ba914=pt(this['attributes']);wt(_0x6ba914,_0x3ab58d,_0x532224),this['_update']({'attributes':_0x6ba914});}['removeAttribute'](_0x27617a){const _0x1acadd=pt(this['attributes']);At(_0x1acadd,_0x27617a),this['_update']({'attributes':_0x1acadd});}['remove']({isFromAdapter:_0x563d5c=!0x1}={}){const {channelId:_0x5e1d4d,id:_0x273c64}=this;this['_repository']['fire'](_t('removeCommentThread',_0x5e1d4d),{'channelId':_0x5e1d4d,'threadId':_0x273c64,'isFromAdapter':_0x563d5c});}['attachTo'](_0x12a1f6){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x12a1f6});}['addComment'](_0x420c29){const {channelId:_0x56b53b,id:_0x54dae4}=this;this['_repository']['fire'](_t('addComment',_0x56b53b,_0x54dae4),Object['assign']({'channelId':_0x56b53b,'threadId':_0x54dae4},_0x420c29));}['getComment'](_0xc4a7fc){if('string'!=typeof _0xc4a7fc)throw new _0x59ce32('commentsrepository-get-comment-invalid-id',null,{'commentId':_0xc4a7fc});return this['comments']['get'](_0xc4a7fc);}['toJSON'](){return{'threadId':this['id'],'context':this['context'],'unlinkedAt':this['unlinkedAt'],'resolvedAt':this['resolvedAt'],'resolvedBy':this['resolvedBy']?this['resolvedBy']['id']:null,'archivedAt':this['archivedAt'],'comments':this['comments']['map'](_0x46e4c6=>_0x46e4c6['toJSON']()),'attributes':this['attributes']};}['_add'](_0x3f8543){return this['listenTo'](_0x3f8543,'change:authoredAt',()=>{const _0x56e9ef=this['_findOptimalIndex'](_0x3f8543),_0x41f966=this['comments'];_0x56e9ef-0x1!=_0x41f966['getIndex'](_0x3f8543)&&_0x56e9ef+0x1!=_0x41f966['getIndex'](_0x3f8543)&&(this['_remove'](_0x3f8543),this['_add'](_0x3f8543));}),this['comments']['add'](_0x3f8543,this['_findOptimalIndex'](_0x3f8543));}['_update'](_0xc60452){const {channelId:_0x2c8d1d,id:_0x582b0e}=this;this['_repository']['fire'](_t('updateCommentThread',_0x2c8d1d),{..._0xc60452,'channelId':_0x2c8d1d,'threadId':_0x582b0e});}['_remove'](_0xc08ba4){return this['stopListening'](_0xc08ba4),_0xc08ba4['destroy'](),this['comments']['remove'](_0xc08ba4);}['_findOptimalIndex'](_0x1e4e57){const _0x2d2a32=this['comments']['find'](_0x33bd75=>new Date(_0x33bd75['authoredAt'])['getTime']()>new Date(_0x1e4e57['authoredAt'])['getTime']());return _0x2d2a32?this['comments']['getIndex'](_0x2d2a32):this['length'];}}class re extends/* #__PURE__ -- @preserve */
31
- _0x13a315(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x112f79,_0x4d6d42){super();const _0x10890a=_0x112f79['context']['plugins']['get'](it)['me'],_0x5dc0d8=_0x112f79['getCommentThread'](_0x4d6d42['threadId']),_0x2f7285=0x0===_0x5dc0d8['comments']['length'],_0x2417f4=_0x10890a===_0x4d6d42['author'];this['id']=_0x4d6d42['id'],this['threadId']=_0x4d6d42['threadId'],this['author']=_0x4d6d42['author'],this['creator']=_0x4d6d42['creator'],this['isExternal']=Boolean(_0x4d6d42['attributes']&&_0x4d6d42['attributes']['@external']),this['set']('content',_0x4d6d42['content']),this['createdAt']=_0x4d6d42['createdAt']||new Date(),this['set']('authoredAt',_0x4d6d42['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x5dc0d8,'resolvedAt'),this['set']('attributes',_0x4d6d42['attributes']||{}),this['bind']('isEditable')['to'](_0x112f79,'_permissions',()=>{const _0x35e17c=_0x112f79['getPermissions'](_0x5dc0d8['channelId'])['write'],_0x4e1c00=_0x112f79['getPermissions'](_0x5dc0d8['channelId'])['modifyAll'];return _0x2417f4&&_0x35e17c||!_0x2417f4&&_0x4e1c00;}),this['bind']('isRemovable')['to'](_0x5dc0d8,'isRemovable',_0x112f79,'_permissions',_0x5b36c1=>{const _0x52a4a4=_0x112f79['getPermissions'](_0x5dc0d8['channelId'])['write'],_0x3c04d7=_0x112f79['getPermissions'](_0x5dc0d8['channelId'])['modifyAll'];return _0x2417f4&&_0x52a4a4||_0x5b36c1&&_0x2f7285||!_0x2417f4&&_0x3c04d7&&!_0x2f7285;}),this['bind']('isReadOnly')['to'](_0x5dc0d8,'isReadOnly'),this['_repository']=_0x112f79;}get['weight'](){return Math['max'](function(_0x37786){const _0x56a275=document['createElement']('div');return _0x56a275['innerHTML']=_0x37786,_0x56a275['textContent']['length'];}(this['content']),0xc8);}['update'](_0x14165f){const {threadId:_0x213236,id:_0x2c2259}=this;if(!this['_repository']['hasCommentThread'](_0x213236))throw new _0x59ce32('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x44763c}=this['_repository']['getCommentThread'](_0x213236);this['_repository']['fire'](_t('updateComment',_0x44763c,_0x213236),{'channelId':_0x44763c,'threadId':_0x213236,'commentId':_0x2c2259,..._0x14165f});}['setAttribute'](_0x53fb5f,_0x25d66e){const _0x192169=pt(this['attributes']);wt(_0x192169,_0x53fb5f,_0x25d66e),this['update']({'attributes':_0x192169});}['removeAttribute'](_0x8a8930){const _0x20403b=pt(this['attributes']);At(_0x20403b,_0x8a8930),this['update']({'attributes':_0x20403b});}['remove'](_0x3539ad={}){if(!_0x3539ad['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x5e93b7,id:_0x1a874f}=this;if(!this['_repository']['hasCommentThread'](_0x5e93b7))throw new _0x59ce32('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x22c0f4}=this['_repository']['getCommentThread'](_0x5e93b7);this['_repository']['fire'](_t('removeComment',_0x22c0f4,_0x5e93b7),{'channelId':_0x22c0f4,'threadId':_0x5e93b7,'commentId':_0x1a874f,..._0x3539ad});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function _t(_0x26f452,..._0x5f4b69){for(const _0x7b0b78 of _0x5f4b69)void 0x0!==_0x7b0b78&&(_0x26f452+=':'+String(_0x7b0b78));return _0x26f452;}class J extends _0x324c72{['refresh'](){const _0x3f693c=this['editor']['model']['document']['selection'];for(const _0x273ae4 of _0x3f693c['getRanges']())if(this['_hasContent'](_0x273ae4))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x3ef2ca=_0xa3844f()}={}){const _0x3f27b6=this['editor']['model'],_0x131a07=[];for(const _0x107581 of _0x3f27b6['document']['selection']['getRanges']())this['_hasContent'](_0x107581)&&_0x131a07['push'](this['_trimToContent'](_0x107581));_0x3f27b6['change'](_0xb24d76=>{for(const _0xabaa58 of _0x131a07){const _0x739951=_0xa3844f()['substr'](0x1,0x5),_0x331855='comment:'+_0x3ef2ca+':'+_0x739951;_0xb24d76['addMarker'](_0x331855,{'range':_0xabaa58,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x539992){for(const _0x5b1988 of _0x539992['getItems']())if(this['_itemIsContent'](_0x5b1988))return!0x0;return!0x1;}['_itemIsContent'](_0x3f220a){return _0x3f220a['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x3f220a)&&!_0x3f220a['is']('element','tableCell');}['_trimToContent'](_0x5c63e9){const _0x5af134=_0xd4e7c8=>!this['_itemIsContent'](_0xd4e7c8['item']),_0x1585e0=_0x5c63e9['start']['getLastMatchingPosition'](_0x5af134),_0x757914=_0x5c63e9['end']['getLastMatchingPosition'](_0x5af134,{'direction':'backward'});return this['editor']['model']['createRange'](_0x1585e0,_0x757914);}}class P extends _0x5a85ea{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3a80f8){super(_0x3a80f8),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x13646b=this['editor'],_0x2c3017=_0x13646b['model']['document']['selection'],_0x2f0c5e=_0x58a7c2(()=>this['refreshSelectedViews'](),0xa);_0x2c3017['on']('change:range',(_0x3a0bd9,_0x5bf5fe)=>{_0x5bf5fe['directChange']&&(_0x2f0c5e['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x13646b['editing']['view']['document'],'change:isFocused',(_0x678d63,_0x1ee3e4,_0x3d4cd2)=>{_0x3d4cd2&&_0x2f0c5e();}),this['listenTo'](_0x13646b['ui']['focusTracker'],'change:isFocused',(_0xb87857,_0x245fb7,_0x2baeb1)=>{_0x2baeb1||_0x13646b['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x4831c2=>this['_editorAnnotationsData']['has'](_0x4831c2['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x400dd4){if(this['_editorAnnotations']['has'](_0x400dd4['view']))return;this['_editorAnnotations']['add'](_0x400dd4['view']),this['editor']['ui']['focusTracker']['add'](_0x400dd4['view']['element']);const _0x4e74fd=this['editor']['plugins']['get'](N);this['listenTo'](_0x4e74fd['collection'],'remove',(_0x56d5bb,_0x131c42)=>{this['editor']['ui']['focusTracker']['remove'](_0x131c42['view']['element']),this['_editorAnnotations']['delete'](_0x131c42['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x8d5c89){if('function'!=typeof _0x8d5c89)throw new _0x59ce32('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x8d5c89);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x410826,annotations:_0x3b6eb9}){const _0x322d49=[],_0x182edb=this['editor']['model']['document']['selection'],_0xa96da6=Array['from'](_0x182edb['getRanges']());for(const [_0x607f92,_0x570a8e]of this['_editorAnnotationsData']){const _0x514580=_0x44c6f4(_0x570a8e),_0x1492b8=_0x3b6eb9['getByInnerView'](_0x607f92);_0x514580&&_0x1492b8&&_0x322d49['push']({'annotation':_0x1492b8,'range':_0x514580});}function _0x44c6f4(_0x2bf330){for(const _0x26c30f of _0x2bf330)for(const _0x12100f of _0xa96da6)if(_0x26c30f['containsRange'](_0x12100f,!_0x182edb['isCollapsed']))return _0x26c30f;return null;}return _0x322d49['sort']((_0x1de607,_0x3322ea)=>{const _0x2bb788=_0x1de607['range'],_0x5ecf65=_0x3322ea['range'];if(!_0x2bb788['isEqual'](_0x5ecf65)){if(_0x2bb788['containsRange'](_0x5ecf65,!0x0))return 0x1;if(_0x5ecf65['containsRange'](_0x2bb788,!0x0))return-0x1;}return _0x1de607['annotation']==_0x410826?-0x1:_0x3322ea['annotation']==_0x410826?0x1:0x0;})['map'](_0x1925f6=>_0x1925f6['annotation']);}get['_editorAnnotationsData'](){const _0x1901eb=new Map();for(const _0x17a796 of Array['from'](this['_dataCollectors']))for(const [_0x2da105,_0x314cac]of _0x17a796())_0x1901eb['set'](_0x2da105,_0x314cac);return _0x1901eb;}}class st extends _0x5a85ea{['afterInit'](){const _0x194fb4=this['editor'];if(!_0x194fb4['plugins']['has']('RestrictedEditingModeEditing'))return;_0x194fb4['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x5a85ea{constructor(_0x71c272){super(_0x71c272),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x575e30=this['editor'],_0x3c97ae=_0x575e30['commands']['get']('importWord'),_0x4b34b3=_0x575e30['plugins']['get'](it);_0x3c97ae&&(_0x3c97ae['on']('execute',(_0x5e1b23,[,_0x30670b])=>{_0x30670b['collaboration_features']={'comments':!0x0,'user_id':_0x4b34b3['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x3c97ae,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x47d3b8,_0x483b36){const {comment_threads:_0x55c10f}=_0x483b36;_0x55c10f&&_0x55c10f['forEach'](({thread_id:_0x223b8b,comments:_0x1d03f1,is_resolved:_0x51bc23})=>{const _0x290a99=new Date(),_0x328ece=_0x1d03f1['map'](({author:_0x70aef5,content:_0x446304,created_at:_0x3f9504})=>({'content':_0x446304,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x290a99,'attributes':{'@external':{'authorName':_0x70aef5,'createdAt':_0x3f9504?new Date(_0x3f9504):new Date(),'source':'importWord'}}})),_0x471c9d=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x471c9d,'threadId':_0x223b8b,'comments':_0x328ece,'resolvedAt':_0x51bc23?_0x290a99:null});});}}class at extends _0x5a85ea{constructor(_0x5126be){super(_0x5126be),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x2b31b1=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x2b31b1,'contentInsertion',(_0x54c39d,_0x5b1afc)=>this['_removeMarkersWithoutThreads'](_0x5b1afc['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x2cc56a){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x2cc56a;const _0x20010a=this['editor']['plugins']['get']('CommentsRepository');for(const _0x19feba of _0x2cc56a['keys']()){const [_0x2fc51b,_0x7af4b7]=_0x19feba['split'](':');'comment'!=_0x2fc51b||_0x20010a['hasCommentThread'](_0x7af4b7)||_0x2cc56a['delete'](_0x19feba);}return _0x2cc56a;}['_registerMarkerInClipboardPipeline'](){const _0x10a69d=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x28e4e9=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x28e4e9&&_0x10a69d['_registerMarkerToCopy']('comment',_0x28e4e9);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x3a42ad){switch(_0x3a42ad){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class r extends _0x5a85ea{static get['requires'](){return[o,P,it,st,ct,at];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3479e0){super(_0x3479e0),this['set']('isThreadsLoadingPaused',!0x0),_0x3479e0['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x63a8d3,_0x36ed82,_0x4d17bf,_0x45186e)=>{const _0x2f1e61=_0x4d17bf?he(_0x4d17bf)['id']:null;if(_0x3479e0['model']['change'](()=>{if(_0x2f1e61){const _0x26342e=this['getAllMarkersForId'](_0x2f1e61);for(const _0x31f24d of _0x26342e)_0x3479e0['editing']['reconvertMarker'](_0x31f24d);}if(_0x45186e){const {id:_0x587d8d}=he(_0x45186e),_0x112a02=this['getAllMarkersForId'](_0x587d8d);for(const _0x23d68b of _0x112a02)_0x3479e0['editing']['reconvertMarker'](_0x23d68b);}}),_0x2f1e61){const _0x52cdee=_0x3479e0['plugins']['get'](o)['getCommentThread'](_0x2f1e61);_0x52cdee&&_0x52cdee['isResolved']&&this['scrollToThreadMarker'](_0x2f1e61);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3c6bfa=this['editor'],_0x5cb012=_0x3c6bfa['plugins']['get'](o),_0x1a76e1=_0x3c6bfa['config']['get']('collaboration.channelId');_0x3c6bfa['commands']['add']('addCommentThread',new J(_0x3c6bfa)),this['listenTo'](_0x3c6bfa,'change:isReadOnly',(_0x454dfb,_0x328461,_0x57b9d3)=>{_0x5cb012['switchReadOnly'](_0x57b9d3,_0x3c6bfa['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x5cb012,ut('addCommentThread',_0x1a76e1),(_0x55cfef,{threadId:_0x5aa0da})=>{const _0x273c3e=this['editor']['plugins']['get'](o)['getCommentThread'](_0x5aa0da);_0x273c3e&&_0x273c3e['unlinkedAt']&&this['_attachArchivedThread'](_0x5aa0da);}),this['listenTo'](_0x5cb012,ut('removeCommentThread',_0x1a76e1),(_0xbf2224,{threadId:_0x402458})=>{_0x3c6bfa['model']['enqueueChange']({'isUndoable':!0x1},_0x276773=>{const _0x5d9e20=this['getAllMarkersForId'](_0x402458);for(const _0x4eec99 of _0x5d9e20)_0x276773['removeMarker'](_0x4eec99);});}),this['listenTo'](_0x5cb012,ut('resolveCommentThread',_0x1a76e1),(_0x1f18e2,{threadId:_0x361080})=>{(this['_reconvertMarkers'](_0x361080),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x361080)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x5cb012,ut('reopenCommentThread',_0x1a76e1),(_0x575e0f,{threadId:_0x4e01a4})=>{this['_reconvertMarkers'](_0x4e01a4);},{'priority':'low'}),this['listenTo'](_0x5cb012,ut('addComment',_0x1a76e1),(_0x36792d,{threadId:_0x119b60,isFromAdapter:_0x22bde7})=>{const _0x1df4e4=this['getAllMarkersForId'](_0x119b60);if(_0x22bde7||0x0==_0x1df4e4['length']||!_0x5cb012['hasCommentThread'](_0x119b60))return;0x1===_0x5cb012['getCommentThread'](_0x119b60)['length']&&_0x3c6bfa['model']['enqueueChange']({'isUndoable':!0x1},_0x13ad23=>{for(const _0x2b4c85 of _0x1df4e4)_0x13ad23['updateMarker'](_0x2b4c85,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['afterInit'](){!async function(_0x363409){const _0x40c19b=_0x46cc79([0x52,0x44,0x5a,0x78,0x37,0x6b,0x58,0x53,0x42,0x65,0x41,0x4d,0x55,0x51,0x4b,0x69,0x31,0x6c,0x4e,0x6d,0x61,0x64,0x70,0x35,0x68,0x46,0x76,0x4a,0x54,0x4f,0x39,0x50,0x34,0x45,0x6a,0x38,0x33,0x48,0x72,0x75,0x57,0x4c,0x56,0x74,0x59,0x77,0x47,0x32,0x67,0x63,0x6e,0x71,0x62,0x79,0x49,0x7a,0x73,0x66,0x36,0x43,0x6f,0x30]),_0xe11ba9=0x2420b81d,_0x548369=0x2427efad^_0xe11ba9,_0x27b6f7=window[_0x46cc79([0x44,0x61,0x74,0x65])][_0x46cc79([0x6e,0x6f,0x77])](),_0x93ebdf=_0x363409[_0x46cc79([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x10f132=new window[(_0x46cc79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30222c=>{_0x93ebdf[_0x46cc79([0x6f,0x6e,0x63,0x65])](_0x46cc79([0x72,0x65,0x61,0x64,0x79]),_0x30222c);}),_0x19464c={[_0x46cc79([0x6b,0x74,0x79])]:_0x46cc79([0x45,0x43]),[_0x46cc79([0x75,0x73,0x65])]:_0x46cc79([0x73,0x69,0x67]),[_0x46cc79([0x63,0x72,0x76])]:_0x46cc79([0x50,0x2d,0x32,0x35,0x36]),[_0x46cc79([0x78])]:_0x46cc79([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x46cc79([0x79])]:_0x46cc79([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x46cc79([0x61,0x6c,0x67])]:_0x46cc79([0x45,0x53,0x32,0x35,0x36])},_0x12bc25=_0x93ebdf[_0x46cc79([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x46cc79([0x67,0x65,0x74])](_0x46cc79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x565055(){let _0x16757d,_0x351d03=null,_0x257eff=null;try{if(_0x12bc25==_0x46cc79([0x47,0x50,0x4c]))return _0x46cc79([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x16757d=_0x3f19fc(),!_0x16757d)return _0x46cc79([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x16757d[_0x46cc79([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x257eff=_0x24864a(_0x16757d[_0x46cc79([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x16757d[_0x46cc79([0x6a,0x74,0x69])])),await _0x52161b()?_0x226a24()?_0x5f13a4()?_0x46cc79([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x38ecd3()?(_0x16757d[_0x46cc79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46cc79([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x351d03=_0x1ddd7e(_0x46cc79([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x16757d[_0x46cc79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46cc79([0x74,0x72,0x69,0x61,0x6c])&&(_0x351d03=_0x1ddd7e(_0x46cc79([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x16757d[_0x46cc79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46cc79([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x351d03=_0x1ddd7e(_0x46cc79([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4399b2()):_0x46cc79([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x46cc79([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x46cc79([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4c5cb3){return _0x46cc79([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5f13a4(){const _0x53cfb9=[_0x46cc79([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x46cc79([0x74,0x72,0x69,0x61,0x6c])][_0x46cc79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16757d[_0x46cc79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x27b6f7/0x3e8:0xe10*_0x548369;return _0x16757d[_0x46cc79([0x65,0x78,0x70])]<_0x53cfb9;}function _0x226a24(){const _0xbea261=_0x16757d[_0x46cc79([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xbea261&&(!!_0xbea261[_0x46cc79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46cc79([0x2a]))||(!!_0xbea261[_0x46cc79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46cc79([0x43,0x4d,0x54]))||!(!_0xbea261[_0x46cc79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46cc79([0x52,0x43,0x4d,0x54]))||!_0x43c7d7())));}function _0x38ecd3(){const _0x37ff53=_0x16757d[_0x46cc79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x37ff53||0x0==_0x37ff53[_0x46cc79([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xafd193}=new URL(window[_0x46cc79([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x37ff53[_0x46cc79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xafd193))return!0x0;const _0x147069=_0xafd193[_0x46cc79([0x73,0x70,0x6c,0x69,0x74])](_0x46cc79([0x2e]));return _0x37ff53[_0x46cc79([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5941de=>_0x5941de[_0x46cc79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46cc79([0x2a])))[_0x46cc79([0x6d,0x61,0x70])](_0x3de973=>_0x3de973[_0x46cc79([0x73,0x70,0x6c,0x69,0x74])](_0x46cc79([0x2e])))[_0x46cc79([0x73,0x6f,0x6d,0x65])](_0x1a834f=>_0x147069[_0x46cc79([0x65,0x76,0x65,0x72,0x79])]((_0x95c913,_0x971965)=>_0x1a834f[_0x971965]===_0x95c913||_0x1a834f[_0x971965]===_0x46cc79([0x2a])));}function _0x4399b2(){return _0x351d03&&_0x257eff?new window[(_0x46cc79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d81de,_0x357282)=>{_0x351d03[_0x46cc79([0x74,0x68,0x65,0x6e])](_0x2d81de,_0x357282),_0x257eff[_0x46cc79([0x74,0x68,0x65,0x6e])](_0x46aa05=>{_0x46aa05!=_0x46cc79([0x56,0x61,0x6c,0x69,0x64])&&_0x2d81de(_0x46aa05);},_0x357282);}):_0x351d03||_0x257eff||_0x46cc79([0x56,0x61,0x6c,0x69,0x64]);}}function _0x24864a(_0x17935f,_0xc0ffc7){return new window[(_0x46cc79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x68d4fc=>{if(_0x24bd3e())return _0x68d4fc(_0x46cc79([0x56,0x61,0x6c,0x69,0x64]));_0x12ba3d(),_0x93ebdf[_0x46cc79([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x46cc79([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x13b5ed=!0x1;const _0x1d0929=_0xa3844f();function _0x116cf7(_0x339a47){return!!_0x339a47&&(typeof _0x339a47===_0x46cc79([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x339a47===_0x46cc79([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x339a47[_0x46cc79([0x74,0x68,0x65,0x6e])]===_0x46cc79([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x339a47[_0x46cc79([0x63,0x61,0x74,0x63,0x68])]===_0x46cc79([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4eea0e(_0x59cd1b){_0x1c1aa4(_0x59cd1b)[_0x46cc79([0x74,0x68,0x65,0x6e])](_0x4e723c=>{if(!_0x4e723c||_0x4e723c[_0x46cc79([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x46cc79([0x6f,0x6b]))return _0x46cc79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3f9954(_0x243639(_0x1d0929+_0xc0ffc7))!=_0x4e723c[_0x46cc79([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x46cc79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x46cc79([0x56,0x61,0x6c,0x69,0x64]);})[_0x46cc79([0x74,0x68,0x65,0x6e])](_0x3024ff=>(_0x424e37(),_0x3024ff),()=>{const _0x190458=_0xf8e87a();return null==_0x190458?(_0x424e37(),_0x46cc79([0x56,0x61,0x6c,0x69,0x64])):_0x46cc79(_0x27b6f7-_0x190458>(0x2c3c1d^_0xe11ba9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x46cc79([0x74,0x68,0x65,0x6e])](_0x68d4fc)[_0x46cc79([0x63,0x61,0x74,0x63,0x68])](()=>{_0x68d4fc(_0x46cc79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2191b7=0x2416569d^_0xe11ba9;function _0x424e37(){const _0x2a701a=_0x46cc79([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f9954(_0x243639(_0x17935f)),_0x3b8e70=_0x1233e1(_0x3f9954(window[_0x46cc79([0x4d,0x61,0x74,0x68])][_0x46cc79([0x63,0x65,0x69,0x6c])](_0x27b6f7/_0x2191b7)));window[_0x46cc79([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46cc79([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a701a,_0x3b8e70);}function _0xf8e87a(){const _0x258820=_0x46cc79([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f9954(_0x243639(_0x17935f)),_0xf3534f=window[_0x46cc79([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46cc79([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x258820);return _0xf3534f?window[_0x46cc79([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1233e1(_0xf3534f),0x10)*_0x2191b7:null;}function _0x1c1aa4(_0x46ebb4){return new window[(_0x46cc79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f4e3d,_0x2d42a4)=>{_0x46ebb4[_0x46cc79([0x74,0x68,0x65,0x6e])](_0x2f4e3d,_0x2d42a4),window[_0x46cc79([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d42a4,0x24216cdd^_0xe11ba9);});}}_0x93ebdf[_0x46cc79([0x6f,0x6e])](_0x46cc79([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5012a2,_0x1c8e67)=>{if(_0x1c8e67[0x0]!=_0x17935f)return _0x68d4fc(_0x46cc79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1c8e67[0x1]={..._0x1c8e67[0x1],[_0x46cc79([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1d0929};},{[_0x46cc79([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46cc79([0x68,0x69,0x67,0x68])}),_0x93ebdf[_0x46cc79([0x6f,0x6e])](_0x46cc79([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4bb611=>{_0x116cf7(_0x4bb611[_0x46cc79([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x13b5ed=!0x0,_0x4eea0e(_0x4bb611[_0x46cc79([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x46cc79([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46cc79([0x6c,0x6f,0x77])}),_0x10f132[_0x46cc79([0x74,0x68,0x65,0x6e])](()=>{_0x13b5ed||_0x68d4fc(_0x46cc79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x24bd3e(){return _0x93ebdf[_0x46cc79([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46cc79([0x76,0x69,0x65,0x77])][_0x46cc79([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x46cc79([0x61,0x75,0x74,0x6f]);}function _0x12ba3d(){_0x93ebdf[_0x46cc79([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46cc79([0x76,0x69,0x65,0x77])][_0x46cc79([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x46cc79([0x61,0x75,0x74,0x6f]);}}function _0x1ddd7e(_0x1c85d3){const _0x5d9f53=[new window[(_0x46cc79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f18ca=>setTimeout(_0x3f18ca,0x242986d1^_0xe11ba9)),_0x10f132[_0x46cc79([0x74,0x68,0x65,0x6e])](()=>new window[(_0x46cc79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d1756=>{let _0x1141e8=0x0;_0x93ebdf[_0x46cc79([0x6d,0x6f,0x64,0x65,0x6c])][_0x46cc79([0x6f,0x6e])](_0x46cc79([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5099c9,_0x181335)=>{_0x181335[0x0][_0x46cc79([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1141e8++,_0x1141e8==(0x2420b9e5^_0xe11ba9)&&(_0x1d1756(),_0x5099c9[_0x46cc79([0x6f,0x66,0x66])]());});}))];return window[_0x46cc79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x46cc79([0x72,0x61,0x63,0x65])](_0x5d9f53)[_0x46cc79([0x74,0x68,0x65,0x6e])](()=>_0x1c85d3);}async function _0x365782(){await _0x10f132,_0x93ebdf[_0x46cc79([0x6d,0x6f,0x64,0x65,0x6c])][_0x46cc79([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5c432c,_0x93ebdf[_0x46cc79([0x6d,0x6f,0x64,0x65,0x6c])][_0x46cc79([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5c432c,_0x93ebdf[_0x46cc79([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x46cc79([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x43c7d7(){return _0x2d7b50(_0x46cc79([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x444bfd(_0x46cc79([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x46cc79([0x73,0x74,0x61,0x74,0x65])]==_0x46cc79([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x21e127(_0x54f547){const _0x5ce997=_0x398dc8();_0x93ebdf[_0x5ce997]=_0x46cc79([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x54f547,_0x54f547!=_0x46cc79([0x56,0x61,0x6c,0x69,0x64])&&_0x365782();}function _0x398dc8(){const _0x48e7eb=window[_0x46cc79([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x46cc79([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x46cc79([0x6e,0x6f,0x77])]())[_0x46cc79([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x46cc79([0x2e]),'');let _0x2f644d=_0x46cc79([0x52]);for(let _0x583ed4=0x0;_0x583ed4<_0x48e7eb[_0x46cc79([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x583ed4+=0x2){let _0x5246d2=window[_0x46cc79([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48e7eb[_0x46cc79([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x583ed4,_0x583ed4+0x2));_0x5246d2>=_0x40c19b[_0x46cc79([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5246d2-=_0x40c19b[_0x46cc79([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2f644d+=_0x40c19b[_0x5246d2];}return _0x2f644d;}function _0x3f19fc(){const _0x20518e=_0x12bc25[_0x46cc79([0x73,0x70,0x6c,0x69,0x74])](_0x46cc79([0x2e]));if(0x3!=_0x20518e[_0x46cc79([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x369037(_0x20518e[0x1]);function _0x369037(_0x3df452){const _0x40c7ce=_0x1bd07c(_0x3df452);return _0x40c7ce&&_0x4da2df()?_0x40c7ce:null;function _0x4da2df(){const _0x348116=_0x40c7ce[_0x46cc79([0x6a,0x74,0x69])],_0x1e5297=window[_0x46cc79([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x348116[_0x46cc79([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x348116[_0x46cc79([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x56286e={..._0x40c7ce,[_0x46cc79([0x6a,0x74,0x69])]:_0x348116[_0x46cc79([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x348116[_0x46cc79([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x56286e[_0x46cc79([0x76,0x63])],_0x243639(_0x56286e)==_0x1e5297;}}}async function _0x52161b(){let _0x1ba3f6=!0x0;try{const _0x5791d2=_0x12bc25[_0x46cc79([0x73,0x70,0x6c,0x69,0x74])](_0x46cc79([0x2e])),[_0x4005f6,_0x5d4993,_0x338a9a]=_0x5791d2;return _0x4bd681(_0x4005f6),await _0x3132b0(_0x4005f6,_0x5d4993,_0x338a9a),_0x1ba3f6;}catch(_0x9b5620){return!0x1;}function _0x4bd681(_0x285f89){const _0xab85a3=_0x1bd07c(_0x285f89);_0xab85a3&&_0xab85a3[_0x46cc79([0x61,0x6c,0x67])]==_0x46cc79([0x45,0x53,0x32,0x35,0x36])||(_0x1ba3f6=!0x1);}async function _0x3132b0(_0x223496,_0x36a5de,_0x5412c9){const _0x2a3309=window[_0x46cc79([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x46cc79([0x66,0x72,0x6f,0x6d])](_0x59bd12(_0x5412c9),_0x40e7b0=>_0x40e7b0[_0x46cc79([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x510d98=new window[(_0x46cc79([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x46cc79([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x223496+_0x46cc79([0x2e])+_0x36a5de),_0x236521=window[_0x46cc79([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x46cc79([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x236521)return;const _0xd10069=await _0x236521[_0x46cc79([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x46cc79([0x6a,0x77,0x6b]),_0x19464c,{[_0x46cc79([0x6e,0x61,0x6d,0x65])]:_0x46cc79([0x45,0x43,0x44,0x53,0x41]),[_0x46cc79([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x46cc79([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x46cc79([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x236521[_0x46cc79([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x46cc79([0x6e,0x61,0x6d,0x65])]:_0x46cc79([0x45,0x43,0x44,0x53,0x41]),[_0x46cc79([0x68,0x61,0x73,0x68])]:{[_0x46cc79([0x6e,0x61,0x6d,0x65])]:_0x46cc79([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd10069,_0x2a3309,_0x510d98)||(_0x1ba3f6=!0x1);}}function _0x1bd07c(_0x4ef68f){return _0x4ef68f[_0x46cc79([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x46cc79([0x65,0x79]))?JSON[_0x46cc79([0x70,0x61,0x72,0x73,0x65])](_0x59bd12(_0x4ef68f)):null;}function _0x59bd12(_0x3643bb){return window[_0x46cc79([0x61,0x74,0x6f,0x62])](_0x3643bb[_0x46cc79([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x46cc79([0x2b]))[_0x46cc79([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x46cc79([0x2f])));}function _0x243639(_0x49f381){let _0x5642ef=0x1505;function _0x1f32a1(_0x26d5d6){for(let _0x1cc6f6=0x0;_0x1cc6f6<_0x26d5d6[_0x46cc79([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1cc6f6++){const _0x429176=_0x26d5d6[_0x46cc79([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1cc6f6);_0x5642ef=(_0x5642ef<<0x5)+_0x5642ef+_0x429176,_0x5642ef&=_0x5642ef;}}function _0x305edd(_0x39a80d){Array[_0x46cc79([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x39a80d)?_0x39a80d[_0x46cc79([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x305edd):_0x39a80d&&typeof _0x39a80d==_0x46cc79([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x46cc79([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x39a80d)[_0x46cc79([0x73,0x6f,0x72,0x74])]()[_0x46cc79([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2e7513,_0x2e1eba])=>{_0x1f32a1(_0x2e7513),_0x305edd(_0x2e1eba);}):_0x1f32a1(window[_0x46cc79([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x39a80d));}return _0x305edd(_0x49f381),_0x5642ef>>>0x0;}function _0x3f9954(_0x4db49e){return _0x4db49e[_0x46cc79([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x46cc79([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x46cc79([0x30]));}function _0x1233e1(_0x2823b1){return _0x2823b1[_0x46cc79([0x73,0x70,0x6c,0x69,0x74])]('')[_0x46cc79([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x46cc79([0x6a,0x6f,0x69,0x6e])]('');}function _0x2d7b50(_0x58dc75){return _0x93ebdf[_0x46cc79([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x46cc79([0x68,0x61,0x73])](_0x58dc75);}function _0x444bfd(_0x2a7fbb){return _0x93ebdf[_0x46cc79([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x46cc79([0x67,0x65,0x74])](_0x2a7fbb);}function _0x5c432c(){}function _0x46cc79(_0x55acc3){return _0x55acc3['map'](_0x8c9cd4=>String['fromCharCode'](_0x8c9cd4))['join']('');}_0x21e127(await _0x565055());}(this);}['destroy'](){const _0x4d5e55=this['editor']['plugins']['get'](o),_0x36a125=this['editor']['config']['get']('collaboration.channelId');for(const _0xa0eb59 of _0x4d5e55['getCommentThreads']({'channelId':_0x36a125}))_0x4d5e55['_detachCommentThread'](_0xa0eb59['id']),_0x4d5e55['_threads']['delete'](_0xa0eb59['id']);super['destroy']();}['hasMarkerForId'](_0x33bb47){return this['getAllMarkersForId'](_0x33bb47)['length']>0x0;}['getAllMarkersForId'](_0x4a101d){const _0x2400f7=[];for(const _0x5e6d1f of this['editor']['model']['markers'])_0x5e6d1f['name']['startsWith']('comment:'+_0x4a101d)&&_0x2400f7['push'](_0x5e6d1f);return _0x2400f7;}['scrollToThreadMarker'](_0x4094c5){const _0x409de4=this['_getTargetForId'](_0x4094c5);_0x409de4&&setTimeout(()=>{this['activeMarker']&&he(this['activeMarker'])['id']===_0x4094c5&&rt({'target':_0x409de4[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x20032c){this['editor']['model']['change'](()=>{for(const _0x15e16f of this['getAllMarkersForId'](_0x20032c))this['editor']['editing']['reconvertMarker'](_0x15e16f);});}['_attachArchivedThread'](_0x295eba){const _0x5cbefb=this['editor']['plugins']['get'](o),_0x3a929c=this['editor']['plugins']['get'](P),_0x1b1635=_0x5cbefb['getCommentThread'](_0x295eba);if(!_0x1b1635['isAttached']){const _0x486e3b=_0x1b1635['attachTo'](()=>this['_getTargetForId'](_0x1b1635['id']));_0x3a929c['registerAnnotation'](_0x486e3b),_0x1b1635['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x5b13e8=this['editor'],_0x5228ce=_0x5b13e8['plugins']['get'](it);_0x5b13e8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x51e9ed,_0x109d58)=>{const {id:_0x10ec19}=he(_0x51e9ed['markerName']),_0x5a6826=_0x5b13e8['plugins']['get'](o)['getCommentThread'](_0x10ec19),_0x1f2954=this['activeMarker']&&he(this['activeMarker'])['id']===_0x10ec19;let _0xd9a287;if(_0x5a6826&&_0x5a6826['isResolved']&&!_0x1f2954&&_0x51e9ed['item'])return _0x109d58['consumable']['consume'](_0x51e9ed['item'],'addMarker:'+_0x51e9ed['markerName']),_0x109d58['consumable']['consume'](_0x51e9ed['item'],'removeMarker:'+_0x51e9ed['markerName']),null;const _0x250575=['ck-comment-marker'];return _0x1f2954&&_0x250575['push']('ck-comment-marker--active'),_0xd9a287=_0x5a6826&&_0x5a6826['length']?_0x5a6826['comments']['first']['author']['id']:_0x5228ce['me']['id'],{'classes':_0x250575,'attributes':{'data-comment':_0x10ec19,'data-author-id':_0xd9a287}};}}),_0x5b13e8['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x3ed982,{options:_0xe3dcc1})=>{const _0x406a91=_0x5b13e8['plugins']['get'](o),_0x484c15=_0x5b13e8['model']['markers']['get'](_0x3ed982),{id:_0x444d1a,part:_0x3240ed}=he(_0x3ed982);if(_0x484c15&&!_0x484c15['affectsData'])return null;if(_0xe3dcc1['ignoreResolvedComments']){const _0xcc1b48=_0x406a91['getCommentThread'](_0x444d1a);if(_0xcc1b48&&_0xcc1b48['isResolved'])return null;}return{'group':'comment','name':_0x3240ed?_0x444d1a+':'+_0x3240ed:_0x444d1a};}}),_0x5b13e8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x45c5c1,{writer:_0x57813d})=>_0x57813d['createElement']('$marker',{'data-name':'comment:'+_0x45c5c1['getAttribute']('id')})}),_0x5b13e8['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x2ae4fb=this['editor'],_0x5d1f5c=_0x2ae4fb['plugins']['get'](o),_0x4f852a=new Set(),_0x1f8b12=new Set();_0x2ae4fb['model']['document']['registerPostFixer'](_0x25ab17=>{let _0x1ae12d=!0x1;for(const {name:_0x767c53,data:_0x29e794}of _0x2ae4fb['model']['document']['differ']['getChangedMarkers']()){const {group:_0x44b45b,id:_0xa5785e}=he(_0x767c53);let _0x4ccd67=_0x29e794['newRange'];if('comment'!==_0x44b45b||!_0x4ccd67)continue;const _0x5e6d2e='$graveyard'===_0x4ccd67['root']['rootName'];_0x5e6d2e||(_0x4ccd67=ft(_0x4ccd67,_0x2ae4fb['model']),!_0x4ccd67||_0x4ccd67['isCollapsed']||!_0x29e794['newRange']||_0x4ccd67['isEqual'](_0x29e794['newRange']))?_0x2ae4fb['model']['hasContent'](_0x4ccd67)&&!_0x5e6d2e?this['isThreadsLoadingPaused']?_0x4f852a['add'](_0x767c53):this['_handleThreadMarker'](_0x767c53,_0xa5785e):(_0x1f8b12['add'](_0x767c53),_0x4f852a['delete'](_0x767c53),_0x25ab17['removeMarker'](_0x767c53),_0x1ae12d=!0x0):(_0x25ab17['updateMarker'](_0x767c53,{'range':_0x4ccd67}),_0x1ae12d=!0x0);}return _0x1ae12d;}),this['on']('change:isThreadsLoadingPaused',(_0x5d9d64,_0x8f8849,_0x488ac5)=>{if(!_0x488ac5&&_0x4f852a['size'])for(const _0x345664 of _0x4f852a){const {id:_0x5b4278}=he(_0x345664);_0x4f852a['delete'](_0x345664),_0x2ae4fb['model']['markers']['get'](_0x345664)&&this['_handleThreadMarker'](_0x345664,_0x5b4278);}}),this['listenTo'](_0x2ae4fb['model']['document'],'change',(_0x518bdb,_0x21741a)=>{for(const {name:_0x1f8bda,data:{newRange:_0x2b68de}}of _0x2ae4fb['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3a2c94,id:_0x37d1b1}=he(_0x1f8bda);if('comment'!==_0x3a2c94)continue;const _0x14b569=_0x5d1f5c['getCommentThread'](_0x37d1b1),_0x31c5eb=this['hasMarkerForId'](_0x37d1b1);_0x14b569&&(!_0x14b569['_hasTargetInContent']&&_0x2b68de&&_0x2ae4fb['editing']['view']['once']('render',()=>{const _0x596e30=_0x2ae4fb['plugins']['get'](N),_0x4ede58=_0x5d1f5c['_threadToController']['get'](_0x14b569)['view'];_0x596e30['getByInnerView'](_0x4ede58)['refreshVisibility']();},{'priority':'low'}),_0x14b569['_hasTargetInContent']=_0x31c5eb||!!_0x2b68de),_0x2b68de||(_0x1f8b12['add'](_0x1f8bda),_0x4f852a['delete'](_0x1f8bda));}if(_0x21741a['isLocal'])for(const _0x4ad88c of _0x1f8b12){const {id:_0x7c9d2b}=he(_0x4ad88c),_0x327c03=_0x5d1f5c['getCommentThread'](_0x7c9d2b),_0x1938a9=this['hasMarkerForId'](_0x7c9d2b);_0x4f852a['delete'](_0x4ad88c),!_0x327c03||_0x1938a9||_0x327c03['unlinkedAt']||_0x327c03['setUnlinkedAt'](new Date());}_0x1f8b12['clear']();});}['_getTargetForId'](_0xb02909){const _0x392021=this['editor'],_0x2353dc=this['getAllMarkersForId'](_0xb02909);return et(_0x392021['editing'],_0x2353dc);}['_getTextContext'](_0x365005){const _0x3922b9=this['getAllMarkersForId'](_0x365005);let _0x5b66b7='',_0xf7fbb=!0x1;for(const _0x7c5b85 of _0x3922b9){const _0x168416=_0x7c5b85['getRange']();for(const _0xab953c of Array['from'](_0x168416['getItems']()))_0xab953c['is']('$textProxy')?(_0x5b66b7&&_0xf7fbb&&(_0x5b66b7+='\x20',_0xf7fbb=!0x1),_0x5b66b7+=_0xab953c['data']):_0xf7fbb=!0x0;_0xf7fbb=!0x0;}return _0x5b66b7['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x3f60cb,_0x41d9a1){const _0x4e96be=this['editor'],_0x499484=_0x4e96be['plugins']['get'](o);let _0x388fcc=_0x499484['getCommentThread'](_0x41d9a1);const _0xeb3e7d=_0x4e96be['config']['get']('collaboration.channelId'),_0x542c7f=_0x4e96be['plugins']['get'](P);if(_0x388fcc&&(_0x388fcc['unlinkedAt']&&_0x388fcc['setUnlinkedAt'](null),_0x388fcc['isAttached']))return _0x388fcc;return!this['getAllMarkersForId'](_0x41d9a1)[0x0]['managedUsingOperations']?_0x4e96be['editing']['view']['once']('render',()=>{if(_0x499484['getCommentThread'](_0x41d9a1))return;const _0xe4e087=_0x4e96be['plugins']['get'](N);_0x388fcc=_0x499484['openNewCommentThread']({'channelId':_0xeb3e7d,'threadId':_0x41d9a1,'target':()=>this['_getTargetForId'](_0x41d9a1),'context':{'type':'text','value':this['_getTextContext'](_0x41d9a1)}});const _0x1cc2fa=_0x499484['_threadToController']['get'](_0x388fcc)['view'],_0x53316a=_0xe4e087['getByInnerView'](_0x1cc2fa);_0x53316a&&_0x542c7f['registerAnnotation'](_0x53316a);},{'priority':'low'}):_0x499484['fetchCommentThread']({'channelId':_0xeb3e7d,'threadId':_0x41d9a1})['then'](_0x3997ac=>{if('destroyed'!==_0x4e96be['state']){if(_0x388fcc=_0x3997ac,_0x388fcc&&!_0x388fcc['isAttached']){const _0xb51890=_0x388fcc['attachTo'](()=>this['_getTargetForId'](_0x41d9a1));_0x542c7f['registerAnnotation'](_0xb51890),_0x388fcc['isResolved']&&this['_reconvertMarkers'](_0x41d9a1);}else{if(!_0x388fcc){const _0x5ac16b=this['getAllMarkersForId'](_0x41d9a1);_0x4e96be['model']['change'](_0x5795a1=>{for(const _0x586c2b of _0x5ac16b)_0x5795a1['removeMarker'](_0x586c2b);});}}}}),_0x388fcc;}['_handleThreadMarker'](_0x1fa655,_0x2c9fce){const _0x26cd5c=this['_attachMarkerToThread'](_0x1fa655,_0x2c9fce);_0x26cd5c&&!_0x26cd5c['context']&&_0x26cd5c['setContext']({'type':'text','value':this['_getTextContext'](_0x2c9fce)});}['_initAriaMarkerChangeAnnouncements'](){const _0x36661f=this['editor'];ot(_0x36661f['model'],({left:_0x1b3be6,entered:_0x1187ee})=>{for(const _0x5236fe of _0x1b3be6)if(dt(_0x5236fe)){_0x36661f['ui']['ariaLiveAnnouncer']['announce'](S(_0x36661f['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x45ac5e of _0x1187ee)if(dt(_0x45ac5e)){_0x36661f['ui']['ariaLiveAnnouncer']['announce'](S(_0x36661f['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x36a9ce)));break;}});}}function ut(_0x237d8c,_0x4b7661){return _0x4b7661?_0x237d8c+':'+_0x4b7661:_0x237d8c;}function he(_0x23a8bc){const _0x33e100=_0x23a8bc['split'](':');return{'group':_0x33e100[0x0],'id':_0x33e100[0x1],'part':_0x33e100[0x2]};}function ft(_0xc14c3a,_0x246115){const _0x32ee50=_0x246115['schema'],_0x20e64f=_0x246115['createRange'](_0xc14c3a['start']);for(const _0x2b0faa of _0xc14c3a['getWalker']()){const {type:_0x9257fa,item:_0x46445b,nextPosition:_0x523da3}=_0x2b0faa;if('text'===_0x9257fa||_0x32ee50['isObject'](_0x46445b)){const _0x2407e6=_0x246115['createPositionBefore'](_0x46445b);_0x20e64f['isCollapsed']&&(_0x20e64f['start']=_0x2407e6),_0x20e64f['end']=_0x523da3;}}return _0x20e64f;}function dt(_0x392b15){return'comment'===he(_0x392b15['name'])['group'];}var xt='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M4\x201.5h12A3.5\x203.5\x200\x200\x201\x2019.5\x205v8l-.005.192a3.5\x203.5\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.371-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.271-2.63l-.062-.07H4A3.5\x203.5\x200\x200\x201\x20.5\x2013V5A3.5\x203.5\x200\x200\x201\x204\x201.5ZM4\x203a2\x202\x200\x200\x200-2\x202v8a2\x202\x200\x200\x200\x202\x202h6.924a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L14.962\x2015H16a2\x202\x200\x200\x200\x202-2V5a2\x202\x200\x200\x200-2-2H4Z\x22/><path\x20d=\x22M9.75\x205a.75.75\x200\x200\x200-.75.75v2.5H6.5a.75.75\x200\x200\x200\x200\x201.5H9v2.5a.75.75\x200\x200\x200\x201.5\x200v-2.5H13a.75.75\x200\x200\x200\x200-1.5h-2.5v-2.5A.75.75\x200\x200\x200\x209.75\x205Z\x22/></svg>\x0a';class i extends _0x5a85ea{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,P,N];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x189476=this['editor'],_0x39c201=_0x189476['plugins']['get'](o),_0x31be0b=_0x189476['plugins']['get'](r),_0x2c8fcb=_0x189476['plugins']['get'](N),_0x265ff7=_0x189476['plugins']['get'](P);_0x189476['ui']['componentFactory']['add']('comment',()=>{const _0x2cd8e3=this['_createUIButton'](_0x57b97b);return _0x2cd8e3['tooltip']=!0x0,_0x2cd8e3;}),_0x189476['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x9c1b58)),_0x265ff7['addSourceCollector'](()=>{const _0x542e92=[];for(const [_0x47dc5b,_0x5cd5d2]of _0x39c201['_threadToController']){const _0x39c81f=_0x31be0b['getAllMarkersForId'](_0x47dc5b['id']),_0x2d2980=_0x39c81f['map'](_0x229ac1=>_0x229ac1['getRange']());_0x39c81f['length']>0x0&&_0x542e92['push']([_0x5cd5d2['view'],_0x2d2980]);}return _0x542e92;}),this['listenTo'](_0x2c8fcb,'change:activeAnnotations',(_0x2eb083,_0x18497d,_0xe0a22c)=>{const _0x439100=Array['from'](_0xe0a22c)['map'](_0x340fd1=>_0x340fd1['innerView'])['find'](_0x116c00=>_0x39c201['_viewToController']['has'](_0x116c00));if(!_0x439100)return void(_0x31be0b['activeMarker']=null);const _0x2ec894=_0x39c201['_viewToController']['get'](_0x439100)['model']['id'],_0x346f2c='comment:'+_0x2ec894;_0x2ec894&&_0x31be0b['hasMarkerForId'](_0x2ec894)?_0x31be0b['activeMarker']=_0x346f2c:_0x31be0b['activeMarker']&&(_0x31be0b['activeMarker']=null);}),this['listenTo'](_0x39c201,'removeCommentThread',(_0x105283,{threadId:_0x29e047,isFromAdapter:_0x203a27})=>{!_0x203a27&&_0x189476['ui']['focusTracker']['isFocused']&&_0x31be0b['hasMarkerForId'](_0x29e047)&&_0x189476['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x39c201,'addComment',(_0x3032f2,{threadId:_0x1f2fd1,isFromAdapter:_0x6cd9ed})=>{if(_0x6cd9ed||!_0x31be0b['hasMarkerForId'](_0x1f2fd1)||!_0x39c201['hasCommentThread'](_0x1f2fd1))return;0x1===_0x39c201['getCommentThread'](_0x1f2fd1)['length']&&(_0x189476['editing']['view']['focus'](),_0x3032f2['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x58eb4a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3bf537;for(const _0xf19dce in _0x58eb4a){const _0x4cd925=_0xf19dce,_0x446456=_0x58eb4a[_0x4cd925];if('commentsLicenseKeyValid'==_0x446456||'commentsLicenseKeyInvalid'==_0x446456||'commentsLicenseKeyExpired'==_0x446456||'commentsLicenseKeyDomainLimit'==_0x446456||'commentsLicenseKeyNotAllowed'==_0x446456||'commentsLicenseKeyEvaluationLimit'==_0x446456||'commentsLicenseKeyTrialLimit'==_0x446456||'commentsLicenseKeyDevelopmentLimit'==_0x446456||'commentsLicenseKeyUsageLimit'==_0x446456){delete _0x58eb4a[_0x4cd925],_0x3bf537=_0x446456,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x3bf537&&_0x58eb4a['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x3bf537&&_0x58eb4a['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x3bf537&&_0x58eb4a['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x3bf537&&_0x58eb4a['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x3bf537&&_0x58eb4a['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x3bf537&&_0x58eb4a['_showLicenseError']('trialLimit'),'commentsLicenseKeyDevelopmentLimit'==_0x3bf537&&_0x58eb4a['_showLicenseError']('developmentLimit'),'commentsLicenseKeyUsageLimit'==_0x3bf537&&_0x58eb4a['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0xe2f1d0){const _0x469c82=this['editor'],_0x2985f1=new _0xe2f1d0(_0x469c82['locale']),_0x28ffe6=_0x469c82['commands']['get']('addCommentThread');return _0x2985f1['set']({'label':S(_0x469c82['locale'],'Comment'),'icon':xt}),_0x2985f1['bind']('isEnabled')['to'](_0x28ffe6),this['listenTo'](_0x2985f1,'execute',()=>_0x28ffe6['execute']()),_0x2985f1;}}class s extends _0x5a85ea{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x329306){super(_0x329306),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x1c4452,_0x32e890,_0x541f97)=>{_0x541f97?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x5c47de,_0x133d50]of this['editor']['commands'])_0x133d50['affectsData']&&'addCommentThread'!==_0x5c47de&&_0x133d50['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0x45b9cc=this['editor']['editing']['view']['document'];this['listenTo'](_0x45b9cc,'cut',_0x5dce89=>_0x5dce89['stop'](),{'priority':'highest'}),this['listenTo'](_0x45b9cc,'clipboardInput',_0x5bed11=>_0x5bed11['stop'](),{'priority':'highest'}),this['listenTo'](_0x45b9cc,'delete',_0x1e54fa=>_0x1e54fa['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x5634f7,_0x5535dc]of this['editor']['commands'])_0x5535dc['affectsData']&&'addCommentThread'!==_0x5634f7&&_0x5535dc['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x529673{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b136b){super(_0x5b136b),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x4a63f2=this['context']['plugins']['get'](N);this['listenTo'](_0x4a63f2,'_activateAnnotation',(_0x418292,_0x338e82)=>{for(const _0x25a990 of this['activeUIs']){const _0x422aec=this['_uis']['get'](_0x25a990);(0x0,this['_uisData']['get'](_0x25a990)['filter'])(_0x338e82)&&_0x422aec['setActiveAnnotation'](_0x338e82);}}),this['listenTo'](_0x4a63f2,'_deactivateAllAnnotations',()=>{for(const _0x40a48a of this['activeUIs']){this['_uis']['get'](_0x40a48a)['setActiveAnnotation'](null);}}),this['listenTo'](_0x4a63f2['_visibleAnnotations'],'add',(_0x3c73ce,_0x40009f)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x40009f);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x5de610){return this['activeUIs']['has'](_0x5de610);}['activate'](_0x53d8c4,_0x1498c0=()=>!0x0){const _0x1aa840=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x53d8c4))throw new _0x59ce32('annotationsuis-missing-ui',this,{'uiName':_0x53d8c4});this['isActive'](_0x53d8c4)&&this['deactivate'](_0x53d8c4),this['activeUIs']['add'](_0x53d8c4);const _0x1ad298=new x();!function({source:_0x316ce1,target:_0x3d414a,filter:_0x361662}){for(const _0x25f485 of _0x316ce1)_0x361662(_0x25f485)&&_0x3d414a['add'](_0x25f485);_0x3d414a['listenTo'](_0x316ce1,'add',(_0x2d16c4,_0x1c038e)=>{_0x361662(_0x1c038e)&&_0x3d414a['add'](_0x1c038e);}),_0x3d414a['listenTo'](_0x316ce1,'remove',(_0x3b98ee,_0x379f34)=>{_0x3d414a['has'](_0x379f34)&&_0x3d414a['remove'](_0x379f34);});}({'source':_0x1aa840['_visibleAnnotations'],'target':_0x1ad298,'filter':_0x1498c0}),this['_uisData']['set'](_0x53d8c4,{'collection':_0x1ad298,'filter':_0x1498c0});const _0x5d5430=this['_uis']['get'](_0x53d8c4);_0x5d5430['attach'](_0x1ad298),this['listenTo'](_0x5d5430,'change:activeAnnotation',(_0x5f4fc7,_0x532f9a,_0xd93e92,_0x3f17f9)=>{_0x3f17f9&&_0x1aa840['_removeActiveAnnotation'](_0x3f17f9),_0xd93e92&&_0x1aa840['_addActiveAnnotation'](_0xd93e92);});}['deactivate'](_0x2c90b1){if(this['activeUIs']['delete'](_0x2c90b1),!this['_uis']['has'](_0x2c90b1))throw new _0x59ce32('annotationsuis-missing-ui',this,{'uiName':_0x2c90b1});const _0x11783f=this['_uis']['get'](_0x2c90b1);_0x11783f['detach'](),this['stopListening'](_0x11783f),this['_uisData']['get'](_0x2c90b1)['collection']['destroy'](),this['_uisData']['delete'](_0x2c90b1);}['switchTo'](_0xbbd887){if(!this['_uis']['has'](_0xbbd887))throw new _0x59ce32('annotationsuis-missing-ui',this,{'uiName':_0xbbd887});const _0x4a53fc=this['context']['plugins']['get'](N),_0x2832e2=Array['from'](_0x4a53fc['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0xbbd887);const _0x3faf80=this['_uis']['get'](_0xbbd887);_0x3faf80['setActiveAnnotation'](_0x2832e2),_0x3faf80['_setSelectedAnnotations']&&_0x2832e2&&_0x3faf80['_setSelectedAnnotations']([_0x2832e2]);}['deactivateAll'](){for(const _0x2742ca of this['activeUIs'])this['deactivate'](_0x2742ca);}['register'](_0x2c4597,_0x5904fd){if(this['_uis']['has'](_0x2c4597))throw new _0x59ce32('annotationsuis-register-already-registered');if('function'!=typeof _0x5904fd['attach']||'function'!=typeof _0x5904fd['detach']||'function'!=typeof _0x5904fd['setActiveAnnotation'])throw new _0x59ce32('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x2c4597,_0x5904fd);}['refilterAnnotations'](){const _0x5baf65=this['context']['plugins']['get'](N)['collection'],_0x283308=new Map(),_0x39a424=Array['from'](this['activeUIs']);for(const _0x5b8884 of this['activeUIs']){const _0x1764dd=this['_uisData']['get'](_0x5b8884)['collection'];for(const _0x5dae72 of _0x1764dd)_0x283308['set'](_0x5dae72,_0x5b8884);}for(const _0x33dacc of _0x5baf65){const _0x53df2f=_0x283308['get'](_0x33dacc);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x33dacc);const _0x1e757a=_0x39a424['find'](_0x1c8af3=>this['_uisData']['get'](_0x1c8af3)['filter'](_0x33dacc));_0x53df2f!==_0x1e757a&&(_0x53df2f&&this['_uisData']['get'](_0x53df2f)['collection']['remove'](_0x33dacc),_0x1e757a&&this['_uisData']['get'](_0x1e757a)['collection']['add'](_0x33dacc));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x57631e){const _0x441b55=[];for(const _0x22418d of this['activeUIs']){(0x0,this['_uisData']['get'](_0x22418d)['filter'])(_0x57631e)&&_0x441b55['push'](_0x22418d);}if(_0x441b55['length']>0x1)throw new _0x59ce32('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x441b55,'annotationType':_0x57631e['type']});}}const ae=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x1383cf){super(_0x1383cf);const _0x4ca4a6=this['bindTemplate'];this['set']('minHeight',0x0),this['set']('class',''),this['list']=this['createCollection'](),this['focusables']=this['createCollection'](),this['list']['delegate']('arrowup','arrowdown')['to'](this),this['focusTracker']=new _0x424f41(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x4ca4a6['to']('class')],'style':{'minHeight':_0x4ca4a6['to']('minHeight',_0x58c0ce=>'number'==typeof _0x58c0ce?ae(_0x58c0ce+0xa):null)},'dir':_0x1383cf['uiLanguageDirection'],'role':'application','aria-label':S(_0x1383cf,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x1383cf,'Annotations\x20list')},'children':this['list']}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_setupKeyboardNavigation'](){this['list']['delegate']('change:top')['to'](this),this['on']('change:top',_0x524f96=>{this['_updateItemPositionInFocusables'](_0x524f96['source']);}),this['list']['forEach'](_0x26f60d=>{this['focusTracker']['add'](_0x26f60d['element']),this['_updateItemPositionInFocusables'](_0x26f60d);}),this['list']['on']('change',(_0x35a92e,_0x22ef9d)=>{for(const _0x244169 of _0x22ef9d['removed'])this['focusTracker']['remove'](_0x244169['element']),this['focusables']['remove'](_0x244169);for(const _0x3873b1 of _0x22ef9d['added'])this['focusTracker']['add'](_0x3873b1['element']),this['_updateItemPositionInFocusables'](_0x3873b1);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x244ebf){const _0x1e5ee8=this['focusables']['getIndex'](_0x244ebf);let _0x141a2f,_0x7e16a6;for(const _0x1408c6 of this['focusables'])if(_0x244ebf['top']<_0x1408c6['top']){_0x141a2f=_0x1408c6;break;}if(_0x7e16a6=_0x141a2f?this['focusables']['getIndex'](_0x141a2f):this['focusables']['length'],-0x1!==_0x1e5ee8){if(_0x1e5ee8===_0x7e16a6-0x1)return;this['focusables']['remove'](_0x244ebf),_0x7e16a6=_0x141a2f?this['focusables']['getIndex'](_0x141a2f):this['focusables']['length'];}this['focusables']['add'](_0x244ebf,_0x7e16a6);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x18c515){super(_0x18c515),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0xe686d4,_0x456ed9)=>_0xe686d4+_0x456ed9),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Dt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x57ce68=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x57ce68['to']('isAnimationDisabled',_0x428ae0=>_0x428ae0?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x57ce68['to']('top',_0x592ee7=>qt(_0x592ee7))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x5d0066=this['element']['clientHeight'];_0x5d0066&&(this['height']=_0x5d0066);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x529673{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f62e5){super(_0x1f62e5),this['set']('_lastItem',void 0x0),this['view']=this['_createSidebarView'](),this['set']('container',null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this['_annotationToSidebarItemView']=new Map(),this['context']['config']['define']('sidebar.preventScrollOutOfView',!0x1),this['_annotations']=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}['init'](){const _0x557380=this['context']['config']['get']('sidebar.container');_0x557380&&this['setContainer'](_0x557380);}['setContainer'](_0x3ab333){if(!y(_0x3ab333))throw new _0x59ce32('sidebar-setcontainer-invalid-element');this['container']=_0x3ab333;}['_attachToContainer']({viewClass:_0x3bfa22='',spaceBetweenItems:_0x1ef4dc=0x19}={}){if(!y(this['container']))throw new _0x59ce32('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x3bfa22,this['_spaceBetweenItems']=_0x1ef4dc;}['rearrange']({removedAnnotation:_0x3480c6,previousAnnotation:_0x260b73,nextAnnotation:_0x8d82a0}){const _0x1a61b0=this['getSidebarItemView'](_0x3480c6);this['view']['list']['remove'](_0x1a61b0),this['_destroySidebarItemView'](_0x3480c6),_0x260b73&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x260b73)),_0x8d82a0&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x8d82a0)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x18e8ec,activatedAnnotation:_0x148b3a,disableAnimationOnActivatedAnnotation:_0x4cabda}){if(this['_activeAnnotation']=_0x148b3a,_0x18e8ec){_0x18e8ec['isActive']=!0x1;const _0x426b09=this['getSidebarItemView'](_0x18e8ec);_0x426b09&&_0x4cabda&&(_0x426b09['isAnimationDisabled']=!0x1);}if(_0x148b3a){const _0xc03924=this['getSidebarItemView'](_0x148b3a);_0xc03924&&(_0x148b3a['isActive']=!0x0,_0x4cabda&&(_0xc03924['isAnimationDisabled']=!0x0,_0xc03924['top']+=0x1),this['_alignToTargetRect'](_0xc03924));}}['_detachFromContainer'](_0x1bbb60){if(this['view']['element']['remove'](),_0x1bbb60){for(const _0x3b8672 of _0x1bbb60)this['_destroySidebarItemView'](_0x3b8672);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x3c3338,_0x1ea22f){_0x1ea22f||(_0x1ea22f=_0x3c3338['view']);const _0x42fe7c=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x42fe7c,_0x3c3338),this['_annotationToSidebarItemView']['set'](_0x3c3338,_0x42fe7c),_0x42fe7c['content']['add'](_0x1ea22f),this['listenTo'](_0x3c3338['view'],'change:targetRect',(_0x269294,_0x1ce9b6,_0x527684)=>{const _0x399166=this['_getTargetTop'](_0x3c3338,_0x527684);_0x42fe7c['_targetTop']!=_0x399166&&(_0x42fe7c['_targetTop']=_0x399166,this['_setItemTop'](_0x42fe7c,_0x399166));}),this['listenTo'](_0x42fe7c,'change:top',()=>{this['_recalculate'](_0x42fe7c,'top');}),this['listenTo'](_0x42fe7c,'change:bottom',()=>{this['_recalculate'](_0x42fe7c,'bottom');}),this['_alignToTargetRect'](_0x42fe7c);const _0x5a0f16=this['_getItemBefore'](_0x42fe7c);if(_0x5a0f16)this['_alignAfterItem'](_0x5a0f16,_0x42fe7c)||this['_alignToTargetRect'](_0x42fe7c);else this['_alignToTargetRect'](_0x42fe7c);return this['_updateLastItem'](),this['view']['list']['add'](_0x42fe7c),_0x42fe7c;}['_alignForTopChange'](_0x4dec00){if(!_0x4dec00['content']['length'])return;const _0x3b2781=this['_getItemBefore'](_0x4dec00);if(!_0x3b2781)return;const _0x55d19b=this['_sidebarItemViewToAnnotation']['get'](_0x3b2781),_0x4a8472=this['_activeAnnotation'];_0x4a8472&&_0x4a8472===_0x55d19b?this['_alignAfterItem'](_0x3b2781,_0x4dec00):this['_alignBeforeItem'](_0x4dec00,_0x3b2781);}['_alignForBottomChange'](_0x3257ea){if(!_0x3257ea['content']['length'])return;const _0x23ab2a=this['_getItemAfter'](_0x3257ea);if(!_0x23ab2a)return;const _0x45ec3a=this['_sidebarItemViewToAnnotation']['get'](_0x23ab2a),_0x2a7561=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x17c8d0=this['_activeAnnotation'];_0x17c8d0&&_0x17c8d0===_0x45ec3a&&_0x2a7561?(this['_alignBeforeItem'](_0x23ab2a,_0x3257ea),this['_alignAfterItem'](_0x3257ea,_0x23ab2a)):_0x17c8d0&&_0x17c8d0===_0x45ec3a?this['_alignBeforeItem'](_0x23ab2a,_0x3257ea):this['_alignAfterItem'](_0x3257ea,_0x23ab2a);}['_recalculate'](_0x148640,_0x12c5de){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0xae416a,changedProp:_0xb7bf61}of this['_recalculateBuffer'])'top'===_0xb7bf61?this['_alignForTopChange'](_0xae416a):this['_alignForBottomChange'](_0xae416a);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x148640,'changedProp':_0x12c5de});}['getSidebarItemView'](_0xf9fefa){return this['_annotationToSidebarItemView']['get'](_0xf9fefa);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x4c966e){const _0x4422aa=this['getSidebarItemView'](_0x4c966e);this['stopListening'](_0x4422aa),this['stopListening'](_0x4c966e['view']),_0x4422aa['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x4c966e),this['_sidebarItemViewToAnnotation']['delete'](_0x4422aa);}['_createSidebarView'](){const _0x26c2b9=new V(this['context']['locale']);return _0x26c2b9['render'](),this['on']('change:_lastItem',(_0x451bbd,_0x447963,_0x19f4de,_0x17b25a)=>{_0x17b25a&&_0x26c2b9['unbind']('minHeight'),_0x19f4de?_0x26c2b9['bind']('minHeight')['to'](_0x19f4de,'bottom'):_0x26c2b9['minHeight']=null;}),_0x26c2b9;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x3eb56e){const _0xfd051e=this['_sidebarItemViewToAnnotation']['get'](_0x3eb56e),_0x42d005=_0xfd051e&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0xfd051e)-0x1);return _0x42d005&&this['getSidebarItemView'](_0x42d005)||null;}['_getItemAfter'](_0x2b123b){const _0x9c2d92=this['_sidebarItemViewToAnnotation']['get'](_0x2b123b),_0x20d4c8=_0x9c2d92&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x9c2d92)+0x1);return _0x20d4c8&&this['getSidebarItemView'](_0x20d4c8)||null;}['_alignBeforeItem'](_0x27540b,_0x49d44f){_0x27540b['updateHeight']();const _0x33dbd6=R(_0x49d44f['bottom']+this['_spaceBetweenItems'],_0x27540b['top']);return!!_0x33dbd6&&(this['_setItemTop'](_0x49d44f,_0x49d44f['top']-_0x33dbd6),!0x0);}['_alignAfterItem'](_0x4a9500,_0x19073a){_0x4a9500['updateHeight']();const _0x3d8770=R(_0x4a9500['bottom']+this['_spaceBetweenItems'],_0x19073a['top']);return!!_0x3d8770&&(this['_setItemTop'](_0x19073a,_0x19073a['top']+_0x3d8770,!0x1),!0x0);}['_alignToTargetRect'](_0x4eddb9){const _0x53c8b5=this['_sidebarItemViewToAnnotation']['get'](_0x4eddb9);if(!_0x53c8b5||!_0x53c8b5['target']||!_0x53c8b5['targetRect'])return;const _0x1a640d=this['_getTargetTop'](_0x53c8b5,_0x53c8b5['targetRect']);this['_setItemTop'](_0x4eddb9,_0x1a640d);}['_getTargetTop'](_0x1bd6f2,_0x25c79f){if(null===_0x25c79f)return 0x0;if(_0x1bd6f2['target']instanceof _0x44fba6)return _0x25c79f['top'];{const _0x352493=new _0x44fba6(this['view']['element'])['top'];return _0x25c79f['top']-_0x352493;}}['_setItemTop'](_0x452f0d,_0x14cc95,_0x3a0c48=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x3a0c48&&(_0x14cc95=Math['max'](_0x14cc95,this['_getMaxAvailableTop'](_0x452f0d))),_0x452f0d['top']=_0x14cc95;}['_getMaxAvailableTop'](_0xbb10be){let _0x5a550c=this['_getItemBefore'](_0xbb10be),_0x59ad26=0x0;for(;_0x5a550c;)_0x5a550c['updateHeight'](),_0x59ad26+=this['_spaceBetweenItems']+_0x5a550c['height'],_0x5a550c=this['_getItemBefore'](_0x5a550c);return _0x59ad26;}}function R(_0x8b3216,_0x3cf6eb){return Math['max'](_0x8b3216-_0x3cf6eb,0x0);}function y(_0x2060b5){return null!==_0x2060b5&&'object'==typeof _0x2060b5&&0x1===_0x2060b5['nodeType'];}class e extends _0x529673{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,M];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x206b51){super(_0x206b51),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x4fd75f(),this['_refreshPositioningDebounced']=_0x58a7c2(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x5b9cd3=this['context']['plugins']['get'](M),_0x2a0f5e=this['context']['plugins']['get'](z);_0x5b9cd3['register']('wideSidebar',this),_0x2a0f5e['container']&&_0x5b9cd3['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x3708b7){if(_0x3708b7===this['activeAnnotation'])return;const _0x492bd8=this['context']['plugins']['get'](z);_0x492bd8['_activeAnnotation']=_0x3708b7;const _0x73236a=this['activeAnnotation'];this['activeAnnotation']=_0x3708b7,_0x492bd8['refresh']({'blurredAnnotation':_0x73236a,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x16b57b){this['annotations']=_0x16b57b;const _0x3dbdc6=this['context']['plugins']['get'](z);if(_0x3dbdc6['_annotations']=_0x16b57b,this['isAttached'])throw new _0x59ce32('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x3dbdc6,'set:container',()=>{this['detach'](),this['listenTo'](_0x3dbdc6,'change:container',_0x5076c4=>{_0x5076c4['off'](),this['attach'](_0x16b57b);});}),_0x3dbdc6['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x27a529=_0x24eebf=>{_0x24eebf['updateTargetRect'](),_0x3dbdc6['addAnnotation'](_0x24eebf);};for(const _0x9ab2f3 of _0x16b57b)_0x27a529(_0x9ab2f3);this['listenTo'](_0x16b57b,'add',(_0x32f080,_0x536094)=>{_0x27a529(_0x536094);}),this['listenTo'](_0x16b57b,'remove',(_0x21f34a,_0x545227,_0x44cb27)=>{_0x3dbdc6['rearrange']({'removedAnnotation':_0x545227,'previousAnnotation':_0x16b57b['get'](_0x44cb27-0x1),'nextAnnotation':_0x16b57b['get'](_0x44cb27+0x1)}),_0x545227===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x16b57b,'focus',(_0x392b5d,_0x277e95)=>{this['setActiveAnnotation'](_0x277e95);}),this['listenTo'](_0x16b57b,'blur',()=>{this['setActiveAnnotation'](null);});const _0xa6072c=this['context']instanceof _0x15790e?this['context']['editors']:new _0x4fd75f([this['context']]);for(const _0x7e754b of _0xa6072c)this['_integrateWithEditorAnnotations'](_0x7e754b);this['listenTo'](_0xa6072c,'add',(_0x1a67c4,_0xb298e3)=>{this['listenTo'](_0xb298e3,'ready',()=>{this['_integrateWithEditorAnnotations'](_0xb298e3);});}),this['listenTo'](_0xa6072c,'remove',(_0x95e573,_0x18deff)=>{_0x18deff['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x18deff['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x59ce32('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0xf2c42c=this['context']['plugins']['get'](z);_0xf2c42c['_detachFromContainer'](this['annotations']),this['stopListening'](_0xf2c42c),this['stopListening'](this['annotations']),this['context']instanceof _0x15790e&&this['stopListening'](this['context']['editors']);for(const _0x106c6e of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x106c6e);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0xb9bacd){if(!_0xb9bacd['plugins']['has']('EditorAnnotations'))return;const _0xcada75=_0xb9bacd['plugins']['get']('EditorAnnotations'),_0x4747f8=()=>{const _0x1d1db4=_0xcada75['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x1d1db4[0x0]||null);};this['listenTo'](_0xcada75,'refresh',_0x4747f8),this['listenTo'](_0xcada75,'blur',(_0x22027c,{isAnnotationTracked:_0x470b14})=>{this['activeAnnotation']&&_0x470b14(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0xcada75,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x16fc35=>{_0xcada75['hasDomSelection']()&&(_0x4747f8(),_0x16fc35['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0xcada75);}['_destroyEditorAnnotationsIntegration'](_0x225d9c){this['stopListening'](_0x225d9c),this['_editorAnnotations']['remove'](_0x225d9c);}}class D extends _0x57b97b{['counterView'];constructor(_0x559d3c){super(_0x559d3c);const _0x4c03f2=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x45b912,_0x3a8dab)=>_0x45b912?'...':_0x3a8dab['toString']()),this['set']('annotationType',''),this['icon']=xt,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x4c03f2['to']('annotationType',_0x36a91f=>'ck-annotation-counter__badge--'+_0x36a91f),_0x4c03f2['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x4c03f2['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x529673{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,M];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x14b629){super(_0x14b629),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x3e18d9),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x4fd75f(),this['_refreshPositioningDebounced']=_0x58a7c2(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x558ff7(this['context']['locale']),this['balloonPanelView']=new _0xf453e3(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0xb1f697){this['annotations']=_0xb1f697;const _0x43b1bf=this['context']['plugins']['get'](z),_0x277a8b=this['balloonPanelView'];if(_0x43b1bf['_annotations']=_0xb1f697,this['isAttached'])throw new _0x59ce32('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x43b1bf,'set:container',()=>{this['detach'](),this['listenTo'](_0x43b1bf,'change:container',_0x3eed66=>{_0x3eed66['off'](),this['attach'](_0xb1f697);});}),_0x43b1bf['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x1b0e32=_0x437a0d=>{const _0x28a947=new D(this['context']['locale']);_0x43b1bf['addAnnotation'](_0x437a0d,_0x28a947),this['_annotationToNarrowView']['set'](_0x437a0d,_0x28a947),_0x28a947['bind']('isDirty','annotationType','number')['to'](_0x437a0d['view'],'isDirty','type','length'),_0x28a947['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x277a8b['content']['first']!==_0x437a0d['view']?(this['_showBalloon'](_0x437a0d),_0x437a0d['view']['element']['focus'](),this['setActiveAnnotation'](_0x437a0d)):this['setActiveAnnotation'](null);});};for(const _0x2da08b of _0xb1f697)_0x1b0e32(_0x2da08b);this['listenTo'](_0xb1f697,'add',(_0x45fa35,_0x2926b8)=>{_0x1b0e32(_0x2926b8);}),this['listenTo'](_0xb1f697,'remove',(_0x2dbb9b,_0x1430be,_0xe33b0f)=>{this['_annotationToNarrowView']['get'](_0x1430be)['destroy'](),this['_annotationToNarrowView']['delete'](_0x1430be),_0x43b1bf['rearrange']({'removedAnnotation':_0x1430be,'previousAnnotation':_0xb1f697['get'](_0xe33b0f-0x1),'nextAnnotation':_0xb1f697['get'](_0xe33b0f+0x1)}),_0x1430be===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0xb1f697,'focus',(_0x353d8e,_0x22e978)=>{this['setActiveAnnotation'](_0x22e978);}),this['listenTo'](_0xb1f697,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0xfec27a,_0x260a11)=>{_0x260a11['keyCode']===_0x5ad4b8['esc']&&_0x277a8b['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x277a8b['content']['first']),this['_hideBalloon'](),_0x260a11['stopPropagation'](),_0x260a11['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x48e979,_0xe23c75)=>{const _0xc6fbdf=_0xe23c75['target'];_0x277a8b['isVisible']&&_0x277a8b['element']['contains'](_0xc6fbdf)||_0x43b1bf['view']['element']['contains'](_0xc6fbdf)||_0x48e979['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x433df4=>_0x433df4['contains'](_0xc6fbdf))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0xfaf337=this['context']instanceof _0x15790e?this['context']['editors']:new _0x4fd75f([this['context']]);for(const _0x19920a of _0xfaf337)this['_integrateWithEditorAnnotations'](_0x19920a);this['listenTo'](_0xfaf337,'add',(_0x210917,_0x29d2a3)=>{this['listenTo'](_0x29d2a3,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x29d2a3);});}),this['listenTo'](_0xfaf337,'remove',(_0x52dac6,_0xfd5af2)=>{_0xfd5af2['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0xfd5af2['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0xd55000){if(_0xd55000===this['activeAnnotation'])return;const _0x23fb07=this['context']['plugins']['get'](z);if(_0x23fb07['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0xd55000,'disableAnimationOnActivatedAnnotation':!0x0}),_0xd55000)_0x23fb07['getSidebarItemView'](_0xd55000)?this['_showBalloon'](_0xd55000):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0xd55000;}['detach'](){if(!this['isAttached'])throw new _0x59ce32('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x3435de=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x3bca82=>_0x3bca82['destroy']()),this['_annotationToNarrowView']['clear'](),_0x3435de['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x15790e&&this['stopListening'](this['context']['editors']);for(const _0x3f4501 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x3f4501);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['_selectedAnnotations']=[],this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['bodyCollection']['detachFromDom']();}['_integrateWithEditorAnnotations'](_0x50b02d){if(!_0x50b02d['plugins']['has']('EditorAnnotations'))return;const _0x53691e=_0x50b02d['plugins']['get']('EditorAnnotations'),_0x411727=this['context']['plugins']['get'](z),_0x51800c=this['annotations'],_0x3574b4=this['balloonPanelView'],_0x1729fc=()=>{const _0x552e40=_0x53691e['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x552e40),this['setActiveAnnotation'](_0x552e40[0x0]||null);};this['listenTo'](_0x53691e,'refresh',_0x1729fc),this['listenTo'](_0x53691e,'blur',(_0x39bc73,{isAnnotationTracked:_0x11ba54})=>{this['activeAnnotation']&&_0x11ba54(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x53691e,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x51800c,'blur',_0x362311=>{_0x53691e['hasDomSelection']()&&_0x362311['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x4e5d11,_0x410503)=>{const _0x533201=_0x410503['target'];_0x3574b4['isVisible']&&_0x3574b4['element']['contains'](_0x533201)||_0x411727['view']['element']['contains'](_0x533201)||this['activeAnnotation']&&_0x53691e['hasDomSelection']()&&(_0x1729fc(),_0x4e5d11['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x53691e);}['_destroyEditorAnnotationsIntegration'](_0x1bb131){_0x1bb131&&(this['stopListening'](_0x1bb131),this['_editorAnnotations']['remove'](_0x1bb131));}['_setSelectedAnnotations'](_0x35c067){for(const _0x138ccd of this['_selectedAnnotations'])_0x35c067['includes'](_0x138ccd)||this['_manuallyClosedAnnotationViews']['delete'](_0x138ccd['view']);this['_selectedAnnotations']=_0x35c067;}['_refreshPositioning'](){const _0x57f124=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x57f124['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x355f5f){if(this['_manuallyClosedAnnotationViews']['has'](_0x355f5f['view']))return;const _0x596372=this['balloonPanelView']['content']['first'];_0x596372!==_0x355f5f['view']?(_0x596372&&this['_detachListeners'](_0x596372),this['_attachListeners'](_0x355f5f['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x355f5f['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x56498c=this['balloonPanelView']['content']['first'],_0x3a7c16=_0x56498c&&this['annotations']['getByView'](_0x56498c);if(!_0x3a7c16||!this['_annotationToNarrowView']['has'](_0x3a7c16))return;const _0xca5337=this['_annotationToNarrowView']['get'](_0x3a7c16)['element'],_0x1096b9=(function(){const _0x5c73bd=_0xf453e3['defaultPositions'];return[_0x5c73bd['southArrowNorthEast'],_0x5c73bd['northArrowSouthEast'],_0x5c73bd['southArrowNorth'],_0x5c73bd['northArrowSouth'],_0x5c73bd['southArrowNorthWest'],_0x5c73bd['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0xca5337,'positions':_0x1096b9});}['_hideBalloon'](){const _0x1db0d1=this['balloonPanelView'],_0x5e8a17=_0x1db0d1['content']['first'];_0x5e8a17&&(this['_detachListeners'](_0x5e8a17),_0x1db0d1['unpin'](),_0x1db0d1['content']['clear']());}['_attachListeners'](_0x27a77b){this['listenTo'](_0x27a77b,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x27a77b,'Esc',(_0x50c83b,_0x484014)=>{this['_manuallyClosedAnnotationViews']['add'](_0x27a77b),this['_hideBalloon'](),_0x484014();});}['_detachListeners'](_0x2cba9f){this['stopListening'](_0x2cba9f);}}class c extends _0x5a85ea{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x1a348e,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x381079){super(_0x381079),_0x381079['editing']['view']['addObserver'](_0x4bab8c),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x381079['plugins']['get'](_0x1a348e),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x481e05=this['editor']['plugins']['get'](M);_0x481e05['context']===this['editor']&&(_0x481e05['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x3539c4,_0x86df35)=>{const _0x7e144e=this['_balloon'];if(this['isAttached']&&_0x7e144e['visibleView']){const _0xb47f51=this['annotations']['getByView'](_0x7e144e['visibleView']);_0xb47f51&&this['_closeAnnotation'](_0xb47f51),_0x86df35();}}));}['afterInit'](){const _0xd673f=this['editor']['plugins']['get'](M);_0xd673f['context']===this['editor']&&(_0xd673f['hasActive']()||_0xd673f['switchTo']('inline'));}['setActiveAnnotation'](_0x281f25){_0x281f25!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x281f25&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x281f25)&&this['_addAnnotationToBalloon'](_0x281f25,!0x0),_0x281f25['isActive']=!0x0),_0x281f25||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x281f25);}['attach'](_0x3dabdd){this['annotations']=_0x3dabdd;const _0x486d0c=this['editor']['plugins']['get'](M),_0x6fc5ee=this['_balloon'];if(this['isAttached'])throw new _0x59ce32('inlineannotations-attach-already-attached',this);if(_0x486d0c['context']!==this['editor'])throw new _0x59ce32('inlineannotations-not-allowed-with-context',this);const _0x15d6c8=this['editor']['plugins']['get'](P);this['listenTo'](_0x15d6c8,'refresh',()=>{const _0x4a41f3=_0x15d6c8['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x1eec2b,_0x40f756;!this['_forceRefresh']&&(_0x1eec2b=_0x4a41f3,_0x40f756=this['_selectedAnnotations'],_0x1eec2b['length']===_0x40f756['length']&&_0x1eec2b['every'](_0x113065=>_0x40f756['includes'](_0x113065)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x4a41f3),this['setActiveAnnotation'](_0x4a41f3[0x0]||null));}),this['listenTo'](_0x15d6c8,'blur',(_0xcb1fec,{isAnnotationTracked:_0x9b4f07})=>{this['activeAnnotation']&&_0x9b4f07(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x3d602b,_0x19d261,_0x7126d4)=>{_0x7126d4||this['setActiveAnnotation'](null);}),this['listenTo'](_0x3dabdd,'remove',(_0x47b88f,_0x5be1c9)=>{this['_removeAnnotationFromBalloon'](_0x5be1c9),_0x5be1c9===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x6fc5ee,'change:visibleView',(_0x1ea944,_0xa74b6,_0x398fa6,_0x3641e3)=>{_0x3641e3&&this['stopListening'](_0x3641e3);const _0x1e827b=_0x3dabdd['getByView'](_0x398fa6);_0x398fa6&&_0x1e827b&&(this['listenTo'](_0x398fa6,'change:height',()=>{_0x6fc5ee['updatePosition']();}),this['listenTo'](_0x398fa6,'Esc',()=>{this['_closeAnnotation'](_0x1e827b),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x1e827b&&this['setActiveAnnotation'](_0x1e827b));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x6fc5ee['visibleView']&&(_0x3dabdd['getByView'](_0x6fc5ee['visibleView'])&&_0x6fc5ee['updatePosition']());}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',()=>{this['_forceRefresh']=!0x0,this['_manuallyClosed']['clear']();}),this['editor']['editing']['view']['document']['selection']['editableElement']&&this['editor']['editing']['view']['focus'](),this['isAttached']=!0x0;}['detach'](){if(!this['isAttached'])throw new _0x59ce32('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x33d664 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x33d664);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x53c230){for(const _0x202a77 of this['_selectedAnnotations'])_0x53c230['includes'](_0x202a77)||this['_manuallyClosed']['delete'](_0x202a77);for(const _0x4d04c2 of this['annotations'])_0x53c230['includes'](_0x4d04c2)||this['_removeAnnotationFromBalloon'](_0x4d04c2);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x38219c of _0x53c230)this['_addAnnotationToBalloon'](_0x38219c);}this['_selectedAnnotations']=_0x53c230;}['_addAnnotationToBalloon'](_0x2375d2,_0x498db2=!0x1){this['_manuallyClosed']['has'](_0x2375d2)||(this['_addedAnnotations']['has'](_0x2375d2)||this['_balloon']['hasView'](_0x2375d2['view'])||(this['_addedAnnotations']['add'](_0x2375d2),this['_balloon']['add']({'stackId':_0x2375d2['view']['id'],'view':_0x2375d2['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x2375d2)}})),_0x498db2&&this['_balloon']['showStack'](_0x2375d2['view']['id']));}['_getBalloonTargetForAnnotation'](_0x3a2369){const _0x2de242=_0x3a2369['target'],_0x4b7992=this['editor']['editing']['view'],_0x2e8c26=_0x4b7992['document']['selection']['getFirstRange'](),_0x56a20d=_0x4b7992['domConverter']['viewRangeToDom'](_0x2e8c26);if(_0x56a20d['collapse'](!0x0),_0x2de242){if(_0x2de242 instanceof _0x44fba6)return _0x2de242;let _0x233824=[];for(const _0x2c66d9 of _0x2de242)_0x233824['push'](...(_0x4fda02=_0x2c66d9['getClientRects'](),Array['from'](_0x4fda02)['map'](DOMRect['fromRect'])));_0x233824=function(_0x2ad494){const _0x43dee0=[];let _0x20aa89=_0x2ad494[0x0];for(let _0x2cdd2f=0x1;_0x2cdd2f<_0x2ad494['length'];_0x2cdd2f++)b(_0x20aa89,_0x2ad494[_0x2cdd2f])?_0x20aa89['width']+=_0x2ad494[_0x2cdd2f]['width']:(_0x43dee0['push'](_0x20aa89),_0x20aa89=_0x2ad494[_0x2cdd2f]);return _0x43dee0['push'](_0x20aa89),_0x43dee0;}(_0x233824);const _0x58f3fa=_0x56a20d['getBoundingClientRect']();return _0x233824['find'](_0x59c4d4=>_0x59c4d4['top']<=_0x58f3fa['top']&&_0x59c4d4['bottom']>=_0x58f3fa['bottom']&&_0x59c4d4['left']<=_0x58f3fa['left']&&_0x59c4d4['right']>=_0x58f3fa['right'])||_0x233824[0x0];}var _0x4fda02;return _0x3a2369['targetRect']||_0x56a20d;}['_removeAnnotationFromBalloon'](_0x4e2391){this['_addedAnnotations']['has'](_0x4e2391)&&this['_balloon']['hasView'](_0x4e2391['view'])&&(this['_addedAnnotations']['delete'](_0x4e2391),this['_balloon']['remove'](_0x4e2391['view']));}['_closeAnnotation'](_0x35413f){this['_manuallyClosed']['add'](_0x35413f),this['_removeAnnotationFromBalloon'](_0x35413f);}}function b(_0x4278ca,_0x975916){return _0x4278ca['top']===_0x975916['top']&&_0x4278ca['bottom']===_0x975916['bottom']&&_0x4278ca['right']===_0x975916['left'];}var Z='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M14\x203.5A3.5\x203.5\x200\x200\x201\x2017.5\x207v6l-.005.192a3.501\x203.501\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.37-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.272-2.63l-.062-.07-4.729-.046a3.5\x203.5\x200\x200\x201-3.5-3.5v-6a3.5\x203.5\x200\x200\x201\x203.5-3.5L14\x203.5ZM3.5\x204.954a2\x202\x200\x200\x200-2\x202v6a2\x202\x200\x200\x200\x202\x202L8.924\x2015a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L12.962\x2015H14a2\x202\x200\x200\x200\x202-2V7a2\x202\x200\x200\x200-2-2L3.5\x204.954Z\x22/><path\x20d=\x22M16.5.5h-10a3.5\x203.5\x200\x200\x200-3.162\x202h1.84A2\x202\x200\x200\x201\x206.5\x202h10a2\x202\x200\x200\x201\x202\x202v8.873a3.502\x203.502\x200\x200\x200\x201.495-2.681L20\x2010V4A3.5\x203.5\x200\x200\x200\x2016.5.5Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M12.013\x207.453a.75.75\x200\x200\x201\x20.034\x201.06l-3.75\x204a.75.75\x200\x200\x201-1.045.048l-2.25-2a.75.75\x200\x200\x201\x20.996-1.122l1.704\x201.515\x203.25-3.467a.75.75\x200\x200\x201\x201.061-.034Z\x22/></svg>\x0a';class tt extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x3bc702,_0x35b13d){super(_0x3bc702),this['set']('isEmpty',!_0x35b13d['length']),this['focusTracker']=new _0x424f41(),this['_annotationViews']=_0x35b13d,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x35b13d,'focusTracker':this['focusTracker']}),this['listenTo'](_0x35b13d,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x35b13d,'remove',(_0x58372,_0x511d69)=>{_0x511d69['isActive']&&this['focus'](),_0x35b13d['length']||(this['isEmpty']=!0x0);});const _0x4755e4=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x3bc702,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x35b13d},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x4755e4['if']('isEmpty','ck-hidden',_0x435c11=>!_0x435c11)]},'children':[{'text':S(_0x3bc702,'EMPTY_COMMENTS_ARCHIVE')}]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy']();}['focus'](){this['focusCycler']['first']?this['focusCycler']['focusFirst']():this['element']['focus']();}['_setupKeyboardNavigation'](){for(const _0x33690b of this['_annotationViews'])this['focusTracker']['add'](_0x33690b['element']);this['_annotationViews']['on']('change',(_0x5c0427,{added:_0x2b9f22,removed:_0x2fb71e})=>{for(const _0x3b4437 of _0x2b9f22)this['focusTracker']['add'](_0x3b4437['element']);for(const _0x571fcd of _0x2fb71e)this['focusTracker']['remove'](_0x571fcd['element']);});}}class f extends _0x529673{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x2b623f){super(_0x2b623f),this['archivedThreads']=new _0x4fd75f();}['init'](){const _0x5eb7a6=this['context'],_0x3ee311=_0x5eb7a6['plugins']['get'](o),_0x348282=_0x5eb7a6['plugins']['get'](N);this['listenTo'](_0x3ee311,'addCommentThread',(_0x57a76a,{threadId:_0x45eefc})=>{const _0x1c22fa=_0x3ee311['getCommentThread'](_0x45eefc);_0x1c22fa['archivedAt']&&this['archivedThreads']['add'](_0x1c22fa,this['_calculatePosition'](_0x1c22fa['archivedAt'])),this['listenTo'](_0x1c22fa,'change:archivedAt',(_0x75c924,_0x59d6e4,_0x285285)=>{_0x285285?this['archivedThreads']['has'](_0x1c22fa)||this['archivedThreads']['add'](_0x1c22fa,this['_calculatePosition'](_0x1c22fa['archivedAt'])):this['archivedThreads']['has'](_0x1c22fa)&&this['archivedThreads']['remove'](_0x1c22fa);});}),this['listenTo'](_0x3ee311,'removeCommentThread',(_0x463c53,{threadId:_0x411d21})=>{const _0x4eeef8=_0x3ee311['getCommentThread'](_0x411d21);this['stopListening'](_0x4eeef8),this['archivedThreads']['has'](_0x4eeef8)&&this['archivedThreads']['remove'](_0x4eeef8);},{'priority':'highest'}),this['listenTo'](_0x348282['collection'],'focus',(_0x59a0d1,_0x4c3687)=>{_0x4c3687['isVisible']||(_0x4c3687['isActive']=!0x0,_0x348282['activate'](_0x4c3687));});}['_calculatePosition'](_0x1b3dcf){const _0x3ee6b8=[...this['archivedThreads']]['findIndex'](_0x13e170=>_0x13e170['archivedAt']<_0x1b3dcf);return _0x3ee6b8>-0x1?_0x3ee6b8:this['archivedThreads']['length'];}}class a extends _0x5a85ea{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x48623b];}constructor(_0x129b16){super(_0x129b16),this['annotationViews']=new _0x17461a(),this['_pendingThreads']=[];}['init'](){const _0x296566=this['editor'],_0x525d98=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x296566['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x57b97b,!0x0)),_0x296566['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x51ce57=this['_createCommentsArchiveButton'](_0x9c1b58);return _0x51ce57['set']({'role':'menuitemcheckbox'}),_0x51ce57;});const _0x2a8cd5=_0x296566['plugins']['get'](f),_0x12c7c1=_0x296566['plugins']['get']('Annotations'),_0x39f08e=_0x296566['plugins']['get']('CommentsRepository');this['listenTo'](_0x2a8cd5['archivedThreads'],'add',(_0x1d6389,_0x188044)=>{const _0x4225c1=_0x296566['config']['get']('collaboration.channelId');if(!_0x4225c1||_0x188044['channelId']===_0x4225c1){const _0x2a66db=_0x39f08e['_threadToController']['get'](_0x188044);if(!_0x2a66db)return void this['_pendingThreads']['push'](_0x188044);const _0x183461=this['_calculatePosition'](_0x188044['archivedAt']),_0x4e7af8=_0x12c7c1['getByInnerView'](_0x2a66db['view']);_0x4e7af8['isVisible']&&_0x12c7c1['_visibleAnnotations']['remove'](_0x4e7af8),this['annotationViews']['add'](_0x4e7af8['view'],_0x183461);}}),this['listenTo'](_0x12c7c1['collection'],'add',(_0x50576c,_0x314d88)=>{const _0x3d7cb1=this['_pendingThreads']['find'](_0xd89d05=>{const _0x3cf9b4=_0x39f08e['_threadToController']['get'](_0xd89d05);return _0x3cf9b4&&_0x314d88['innerView']===_0x3cf9b4['view'];});if(_0x3d7cb1){const _0x31ad86=this['_calculatePosition'](_0x3d7cb1['archivedAt']);this['annotationViews']['add'](_0x314d88['view'],_0x31ad86),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x3d7cb1),0x1);}}),this['listenTo'](_0x2a8cd5['archivedThreads'],'remove',(_0x1aec5c,_0x58ea45)=>{const _0x19b3aa=_0x296566['config']['get']('collaboration.channelId');if(!_0x19b3aa||_0x58ea45['channelId']===_0x19b3aa){const _0x374f95=_0x39f08e['_threadToController']['get'](_0x58ea45),_0x54125c=_0x12c7c1['getByInnerView'](_0x374f95['view']);this['annotationViews']['remove'](_0x54125c['view']),this['stopListening'](_0x54125c['focusableElements']);}}),this['listenTo'](_0x12c7c1['collection'],'add',(_0x20dbf6,_0x3b2b09)=>{this['listenTo'](_0x3b2b09,'escape',_0x525d98);}),this['listenTo'](_0x12c7c1['collection'],'remove',(_0x314329,_0x1bc489)=>{this['stopListening'](_0x1bc489,'escape',_0x525d98);});}['_calculatePosition'](_0xf77080){const _0x5618eb=this['editor']['config']['get']('collaboration.channelId'),_0x5f5933=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x1dd3f4=>_0x1dd3f4['channelId']===_0x5618eb)['findIndex'](_0x2473b9=>_0x2473b9['archivedAt']<_0xf77080);return _0x5f5933<0x0||_0x5f5933>this['annotationViews']['length']?this['annotationViews']['length']:_0x5f5933-0x1;}['_toggleDialog'](){const _0x3207ef=this['editor'],_0x9f6135=_0x3207ef['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x3207ef['locale'],this['annotationViews'])),'commentsArchive'===_0x9f6135['id']?_0x9f6135['hide']():_0x9f6135['show']({'id':'commentsArchive','title':S(_0x3207ef['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0xe69b5f['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x34c7c5,_0xc98889=!0x1){const _0x549994=this['editor']['locale'],_0x33cba9=this['editor']['plugins']['get']('Dialog'),_0x50f768=new _0x34c7c5(_0x549994);return _0x50f768['bind']('isEnabled')['to'](this,'isEnabled'),_0x50f768['bind']('isOn')['to'](_0x33cba9,'id',_0x5dd5b7=>'commentsArchive'===_0x5dd5b7),_0x50f768['set']({'label':S(_0x549994,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0xc98889&&(_0x50f768['tooltip']=!0x0),this['listenTo'](_0x50f768,'execute',()=>this['_toggleDialog']()),_0x50f768;}['_hideDialogOnAnnotationEscape']=_0x25f055=>{const _0x48778f=_0x25f055['source'];if(!this['annotationViews']['has'](_0x48778f['view']))return;const _0x2de759=this['editor']['plugins']['get']('Dialog');_0x2de759['isOpen']&&'commentsArchive'===_0x2de759['id']&&(_0x2de759['hide'](),_0x25f055['stop']());};}class p extends _0x5a85ea{static get['requires'](){return[o,r,i,f,a,s,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{d as Annotation,x as AnnotationCollection,T as AnnotationView,N as Annotations,M as AnnotationsUIs,ss as BaseCommentThreadView,os as BaseCommentView,re as Comment,oe as CommentThread,yt as CommentThreadController,ie as CommentThreadInputView,Ct as CommentThreadView,vt as CommentView,p as Comments,f as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,e as WideSidebar};
23
+ import{Editor as _0x453a50,icons as _0x2bd4d7,ContextPlugin as _0x57f47d,PendingActions as ht,Command as _0x3b503e,Plugin as _0x519d94,Context as _0x27ece4}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x783350,uid as _0x1c16ac,KeystrokeHandler as jt,FocusTracker as _0x225d87,diff as _0x3dd109,Collection as _0x550aff,Rect as _0x26b643,CKEditorError as _0x2f63eb,first as _0x28df54,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0x159bf4,keyCodes as _0x5d1dea}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x435322,AriaDescriptionView as Zt,setupThreadKeyboardNavigation as ts,ConfirmMixin as ti,LateFocusButtonView as _0x5c2ced,trimHtml as _0x566629,LateFocusDropdownButtonView as _0x2bed8f,Users as it,getDateTimeFormatter as mt,hashObject as lt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x3b0d3f}from'ckeditor5-collaboration/dist/index.js';import{throttle as bt,isEqual as It,cloneDeep as pt,set as wt,unset as At,debounce as _0x40bf96}from'lodash-es';import{EditorUIView as Xt,InlineEditableUIView as $t,EditorUI as Ut,View as kt,FocusCycler as Ft,ButtonView as _0x1af4cd,ViewCollection as _0x28cb78,createDropdown as _0x3e66b8,ListView as _0x514a10,focusChildOnDropdownOpen as _0x267583,ListItemView as _0x281d78,MenuBarMenuListItemButtonView as _0x218ddc,BodyCollection as _0x5f4bc7,BalloonPanelView as _0x26b28a,ContextualBalloon as _0x1253aa,Dialog as _0x3f29d3,DialogViewPosition as _0x11887f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x27599b}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as Bt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as Et,ShiftEnter as Gt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Jt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Kt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Lt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Nt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x554e6e}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class yt extends/* #__PURE__ -- @preserve */
24
+ _0x783350(){['model'];['view'];constructor(_0x4fbdbe,_0x6845b1){super(),this['model']=_0x4fbdbe,this['model']['_isAttached']=!0x0,this['view']=_0x6845b1,this['listenTo'](_0x6845b1,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x6845b1,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x6845b1,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x6845b1,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x6845b1,'addComment',(_0x39153c,_0x493420)=>this['addComment'](_0x493420)),this['listenTo'](_0x6845b1,'updateComment',(_0x402931,_0x2df0f7,_0x1f5778)=>this['updateComment'](_0x2df0f7,_0x1f5778)),this['listenTo'](_0x6845b1,'removeComment',(_0x525139,_0xde6568)=>this['removeComment'](_0xde6568));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x5707dd){this['model']['addComment']({'content':_0x5707dd,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x76d4d1,_0xc7e0cf){this['model']['getComment'](_0x76d4d1)['update']({'content':_0xc7e0cf});}['removeComment'](_0x3e6436){this['model']['getComment'](_0x3e6436)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x402aab,_0x1a992d,_0x4889ef){const t=_0x402aab['t'];switch(_0x1a992d){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'},_0x4889ef);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'},_0x4889ef);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'},_0x4889ef);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'},_0x4889ef);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x4889ef);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'},_0x4889ef);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'},_0x4889ef);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'},_0x4889ef);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Vt extends Xt{['main'];['editable'];constructor(_0x19f3a8,_0x58367d){super(_0x19f3a8);const _0x152573=_0x1c16ac();this['main']=this['createCollection'](),this['editable']=new $t(_0x19f3a8,_0x58367d,void 0x0,{'label':()=>S(_0x19f3a8,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x19f3a8['uiLanguageDirection'],'lang':_0x19f3a8['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x152573},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Ot extends Ut{['view'];constructor(_0x5da43d){super(_0x5da43d),this['view']=new Vt(_0x5da43d['locale'],_0x5da43d['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x4406b9=this['editor']['editing']['view'],_0x5ec552=this['view']['editable'],_0x53da91=_0x4406b9['document']['getRoot']();_0x5ec552['name']=_0x53da91['rootName'],this['view']['render']();const _0x4a4649=_0x5ec552['element'];this['setEditableElement'](_0x5ec552['name'],_0x4a4649),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4406b9['attachDomRoot'](_0x4a4649),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[Bt,Et,Gt,Jt,Kt,Lt,Nt];class Rt extends/* #__PURE__ -- @preserve */
25
+ _0x783350(_0x453a50){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Qt)());constructor(_0x10755c={}){function _0x2e1b7f(_0x3693e2){return _0x3693e2['map'](_0x769f89=>String['fromCharCode'](_0x769f89))['join']('');}(_0x10755c=Object['assign']({},_0x10755c))['plugins']||(_0x10755c['plugins']=Rt['defaultPlugins']),super(_0x10755c),this['ui']=new Ot(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x2e1b7f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e1b7f([0x76,0x69,0x65,0x77])][_0x2e1b7f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2e1b7f([0x61,0x75,0x74,0x6f]),this[_0x2e1b7f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2e1b7f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2e1b7f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2e1b7f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2e1b7f([0x6f,0x6b])});}['create'](){const _0x23e503=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x23e503))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0xc9c812=>{const _0x4f004b=this['model']['document']['getRoot'](),_0x5bc5bc=_0x4f004b&&_0x4f004b['getChild'](_0x4f004b['childCount']-0x1);_0xc9c812['setSelection'](_0x5bc5bc,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x178c9d=this['editing']['view'],_0x22ba81=_0x178c9d['document']['getRoot'](),_0x370258=_0x22ba81['getChild'](0x0);_0x22ba81['childCount']>0x1||!_0x370258||'p'!=_0x370258['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x178c9d,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x370258['placeholder']=this['placeholder']),St({'view':_0x178c9d,'element':_0x370258,'keepOnFocus':!0x0}),this['placeholderElement']=_0x370258);}}class hs extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x5a0252,_0x494402={}){super(_0x5a0252),this['editor']=null,this['_editorConfig']=_0x494402,this['set']('value',_0x494402['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x5a0252,'Reply...')),this['set']('submitLabel',S(_0x5a0252,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x225d87(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0xceb138,_0x4cb49a)=>{this['cancelButtonView']['fire']('execute'),_0x4cb49a();}),this['keystrokes']['set']('Ctrl+Enter',(_0x282972,_0x20ee31)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x20ee31());}),this['on']('submit',(_0x1191b1,_0x106838)=>{_0x106838['length']>0xfde8?(alert(S(_0x5a0252,'TOO_LONG_COMMENT_ALERT',[_0x106838['length'],0xfde8])),_0x1191b1['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Rt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x414aa8=this['editor'];this['element']['insertBefore'](_0x414aa8['ui']['element'],this['element']['firstChild']),_0x414aa8['model']['document']['on']('change',()=>this['value']=_0x414aa8['getData']()),_0x414aa8['bind']('placeholder')['to'](this),this['focusables']['add'](_0x414aa8['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x19b0e1){-0x1===_0x19b0e1?(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:_0x2ecbec}=this,_0x26f87b=new _0x1af4cd(_0x2ecbec);return _0x26f87b['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x26f87b['withText']=!0x0,_0x26f87b['bind']('label')['to'](this,'submitLabel'),_0x26f87b['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x26f87b['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x1e5ea2,_0x4a8312)=>!_0x4a8312&&!!_0x1e5ea2['trim']()),_0x26f87b;}['_createCancelButton'](){const {locale:_0x91a8f3}=this,_0x50e91b=new _0x1af4cd(_0x91a8f3);return _0x50e91b['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x50e91b['label']=S(_0x91a8f3,'Cancel'),_0x50e91b['withText']=!0x0,_0x50e91b['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x50e91b;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x549f0c=>{this['focusTracker']['add'](_0x549f0c['element']);}),this['focusables']['on']('change',(_0x4a64d5,_0x28cceb)=>{for(const _0x2088a7 of Array['from'](_0x28cceb['added'])['reverse']())this['focusTracker']['add'](_0x2088a7['element']);});}}class ie extends kt{constructor(_0x2c31ca,_0x4bc6f0,_0x11604b){super(_0x2c31ca),this['commentInputView']=new hs(_0x2c31ca,_0x11604b),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x350e52,_0x4663a5)=>_0x350e52||!!_0x4663a5),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 _0x435322(_0x2c31ca,_0x4bc6f0),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'](_0xc7c5d8){this['commentInputView']['focus'](_0xc7c5d8);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x159123,_0x43be76)=>{const {submitButtonView:_0x5bf7ec,cancelButtonView:_0x527e22,editor:_0x1768fe}=this['commentInputView'];[_0x5bf7ec['element'],_0x527e22['element'],_0x1768fe?_0x1768fe['editing']['view']['getDomRoot']():null]['filter'](_0x472793=>_0x472793)['some'](_0x293929=>_0x293929['contains'](_0x43be76['target']))||(this['focus'](),_0x43be76['preventDefault']());});}}class cs extends kt{constructor(_0x4b68a6){super(_0x4b68a6);const _0x15c012=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x15c012['to']('count',_0x1c0cae=>S(_0x4b68a6,'NUMBER_OF_COMMENTS',_0x1c0cae))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0xee1f8d,_0x40faa8,_0x4856d9){super(_0xee1f8d);const _0xd55823=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x40faa8['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x40faa8,this['_config']=_0x4856d9,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x225d87(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x60c463=>this['commentViews']['map'](_0x5df3e6=>_0x5df3e6['element'])['includes'](_0x60c463['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0xee1f8d),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x10ed39=>_0x10ed39-this['_config']['maxCommentsWhenCollapsed']);for(const _0x2a21cd of _0x40faa8['comments'])this['_handleNewCommentModel'](_0x2a21cd);this['_handleInfoComment'](),this['listenTo'](_0x40faa8['comments'],'add',(_0x295704,_0x31d207)=>{const _0x33ea31=this['_calculatePosition'](_0x31d207);this['length']++,this['_handleNewCommentModel'](_0x31d207,_0x33ea31),this['refreshVisibleViews']();}),this['listenTo'](_0x40faa8['comments'],'remove',(_0x3cd442,_0x15853e)=>{this['length']--,this['_handleRemoveCommentModel'](_0x15853e),this['refreshVisibleViews']();}),this['listenTo'](_0x40faa8,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x40faa8,'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',_0xd55823['if']('length','ck-hidden',_0x21dbdb=>!_0x21dbdb)],'aria-label':S(_0xee1f8d,'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'](_0x2d4bb3){-0x1===_0x2d4bb3?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x3eb805 of this['commentViews'])_0x3eb805['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x19c9f6,_0x3b0b9e){const _0x1e2f30=new this['_config']['CommentView'](this['locale'],_0x19c9f6,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x1e2f30['viewUid']=_0x19c9f6['id'],_0x1e2f30['delegate']('removeComment')['to'](this),_0x1e2f30['delegate']('updateComment')['to'](this),_0x1e2f30['delegate']('resolveCommentThread')['to'](this),_0x1e2f30['delegate']('editorReady')['to'](this),_0x1e2f30['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x1e2f30,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x1e2f30,_0x3b0b9e);}['_calculatePosition'](_0x413d6b){const _0x2b9135=this['_model']['_findOptimalIndex'](_0x413d6b);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x413d6b['authoredAt']?_0x2b9135-0x1:_0x2b9135:_0x2b9135-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x21dce0={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':S(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x21dce0,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x21dce0));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x5ceb75){const _0x5e31c3=this['commentViews']['remove'](_0x5ceb75['id']);this['stopListening'](_0x5e31c3),_0x5e31c3['isEditMode']&&this['_updateHasDirtyComment'](),_0x5e31c3['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x20bdaa=>_0x20bdaa['isEditMode']);}['_rearrangeCollapse'](){const _0xa362b3=function(_0x1cc3b5){const _0x30f43e=new _0x550aff();for(const _0x3d6bb0 of _0x1cc3b5)_0x30f43e['add'](_0x3d6bb0);return _0x30f43e;}(this['commentViews']),_0x5dff8d=this['_collapsedCommentsView']['count'];for(let _0x52f442=0x1;_0x52f442<=_0x5dff8d;_0x52f442++)_0xa362b3['remove'](0x1);for(const _0xe52eca of _0xa362b3)_0xe52eca['collapse']();_0x5dff8d>0x0&&_0xa362b3['add'](this['_collapsedCommentsView'],0x1),ns(_0x3dd109(Array['from'](this['visibleViews']),Array['from'](_0xa362b3)),this['visibleViews'],_0xa362b3);}['_rearrangeExpand'](){ns(_0x3dd109(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x2aea07 of this['visibleViews'])_0x2aea07['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x8e5f6b=>{this['focusTracker']['add'](_0x8e5f6b['element']),this['keystrokes']['listenTo'](_0x8e5f6b['element']);}),this['commentViews']['on']('change',(_0x2cd4c4,_0x289a23)=>{for(const _0x4ad1a4 of _0x289a23['removed'])this['focusTracker']['remove'](_0x4ad1a4['element']),this['keystrokes']['stopListening'](_0x4ad1a4['element']);for(const _0x3441a1 of Array['from'](_0x289a23['added'])['reverse']())this['focusTracker']['add'](_0x3441a1['element']),this['keystrokes']['listenTo'](_0x3441a1['element']);});}}function ns(_0x41cc32,_0x5a3152,_0x565d86){let _0x166a12=0x0;for(const _0x5a4437 of _0x41cc32)switch(_0x5a4437){case'insert':_0x5a3152['add'](_0x565d86['get'](_0x166a12),_0x166a12),_0x166a12++;break;case'delete':_0x5a3152['remove'](_0x166a12);break;case'equal':_0x166a12++;}}class as extends kt{constructor(_0x383ed5){super(_0x383ed5);const _0xd94dda=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0xd94dda['to']('contextValue',_0x55302f=>S(_0x383ed5,'THREAD_CONTEXT_LABEL',_0x55302f)),'tabindex':-0x1},'children':[{'text':_0xd94dda['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x10abda,_0x16658f){super(_0x10abda);const _0x3c6c5f=this['bindTemplate'];this['_model']=_0x16658f,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x225d87(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x46335f=>!!_0x46335f),this['bind']('contextValue')['to'](this['_model'],'context',_0x2f401c=>_0x2f401c&&_0x2f401c['value']?this['_trimContextValue'](_0x2f401c['value']):S(this['locale'],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':['ck-context-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-context',_0x3c6c5f['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 _0x1dee4f=new _0x1af4cd(this['locale']);return _0x1dee4f['label']=S(this['locale'],'Reopen'),_0x1dee4f['tooltip']=S(this['locale'],'Reopen'),_0x1dee4f['icon']='<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22m5.042\x209.367\x202.189\x201.837a.75.75\x200\x200\x201-.965\x201.149l-3.788-3.18a.747.747\x200\x200\x201-.21-.284.75.75\x200\x200\x201\x20.17-.945L6.23\x204.762a.75.75\x200\x201\x201\x20.964\x201.15L4.863\x207.866h8.917A.75.75\x200\x200\x201\x2014\x207.9a4\x204\x200\x201\x201-1.477\x207.718l.344-1.489a2.5\x202.5\x200\x201\x200\x201.094-4.73l.008-.032H5.042z\x22/></svg>',_0x1dee4f['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x522668=>!_0x522668),_0x1dee4f['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x57861d,_0x4b6ad5)=>_0x57861d&&_0x4b6ad5),_0x1dee4f['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x1dee4f;}['_trimContextValue'](_0x27634c){if(_0x27634c['length']<0x96)return _0x27634c;const _0x2b2c44=_0x27634c['lastIndexOf']('\x20',0x93);return _0x27634c['substring'](0x0,_0x2b2c44>-0x1?_0x2b2c44:0x93)+'...';}['_attachContextActions'](){const _0x4aa90d=this['element']['querySelector']('.ck-context'),_0x438faa=_0x4aa90d['querySelector']('.ck-context__value');this['listenTo'](_0x4aa90d,'mouseenter',()=>{_0x438faa['offsetWidth']<_0x438faa['scrollWidth']&&_0x4aa90d['classList']['add']('overlay');}),this['listenTo'](_0x4aa90d,'mouseleave',()=>{_0x4aa90d['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x2b05 of this['focusables'])this['focusTracker']['add'](_0x2b05['element']),this['keystrokes']['listenTo'](_0x2b05['element']);}['_createContextView'](){const _0x16f8ac=new as(this['locale']);return _0x16f8ac['bind']('contextValue')['to'](this),_0x16f8ac;}}class ss extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x4eb05d,_0xa7bd3a,_0xcfd334,_0x5ca7e1){super(_0x4eb05d),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0xa7bd3a,this['_localUser']=_0xcfd334,this['_config']=_0x5ca7e1,this['commentThreadHeaderView']=new Yt(_0x4eb05d,_0xa7bd3a),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0x4eb05d,S(_0x4eb05d,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x4eb05d,_0xa7bd3a,Object['assign']({'CommentView':this['_config']['CommentView']},_0x5ca7e1)),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',(_0x4cf1d6,_0x272e98)=>_0x4cf1d6||!!_0x272e98),this['bind']('isUnlinked')['to'](_0xa7bd3a,'unlinkedAt',_0x268a38=>!!_0x268a38),this['bind']('ariaLabel')['to'](this,'length',_0x467edd=>{const _0x599348=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x467edd,_0x599348]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x225d87(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2236a3=>_0x2236a3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),ts(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x37d5c3=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1a8b54=_0x37d5c3['commentInputView'];return _0x37d5c3['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x1a8b54,'value',(_0x1d9aac,_0x8b6379,_0x5b4e02,_0x3dd481,_0x327b6b)=>!!_0x327b6b||!!_0x3dd481&&_0x5b4e02&&!_0x8b6379||_0x1d9aac&&_0x5b4e02&&!_0x8b6379),_0x1a8b54['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4b3453,_0xfc1557,_0x337131)=>{let _0x4ef44d;return _0x4ef44d=_0x337131&&_0xfc1557?'Reply\x20to\x20reopen\x20discussion...':_0x4b3453?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x4ef44d);}),_0x1a8b54['bind']('submitLabel')['to'](this,'length',_0x14189c=>S(this['locale'],_0x14189c?'Reply':'Comment')),_0x1a8b54['on']('submit',(_0x5e195b,_0x5b4cd9)=>{this['fire']('addComment',_0x5b4cd9),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x1a8b54['on']('cancel',()=>{this['focus']();}),_0x1a8b54['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x1a8b54['on']('cancel',_0x39e23f=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x39e23f['stop']());}),this['on']('change:isActive',(_0x140db7,_0x37548e,_0x20b716)=>{_0x20b716||this['length']||_0x1a8b54['value']||this['fire']('removeCommentThread');}),_0x37d5c3;}}class Ct extends/* #__PURE__ -- @preserve */
27
+ ti(ss){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x5c963e,_0x2b893d,_0x1c6482,_0x3130fc){super(_0x5c963e,_0x2b893d,_0x1c6482,_0x3130fc),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x5c963e,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x44e0df,_0x675dfc,_0x5e0c2e)=>{_0x5e0c2e||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x54ff49,_0x1d579d,_0x262edd)=>{_0x262edd&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x171d63=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x171d63['if']('isActive','ck-thread--active'),_0x171d63['if']('isUnlinked','ck-thread--unlinked'),_0x171d63['if']('isConfirm','ck-thread--remove-confirmation'),_0x171d63['to']('actionIndicator',_0x4a3784=>_0x4a3784?'ck-thread--'+_0x4a3784:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x171d63['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 _0x601d3e of this['commentsListView']['commentViews'])_0x601d3e['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x2fb1fc}=this,_0x67cb20=this['commentsListView']['commentViews']['get'](0x0);_0x67cb20===this['_boundFirstCommentView']||_0x67cb20['isSystemComment']||(this['_boundFirstCommentView']=_0x67cb20,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x67cb20,'actionIndicator',_0x1d803f=>'remove'===_0x1d803f?'remove':null),_0x67cb20['placeholder']=S(_0x2fb1fc,'Write\x20a\x20comment...'),_0x67cb20['removeButton']['on']('execute',_0x592902=>{_0x592902['stop'](),this['showConfirm'](S(_0x2fb1fc,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x67cb20['focus']();}),_0x67cb20['actionBar']['add'](this['resolveButton'],0x0),_0x67cb20['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x3ed3f7=new _0x5c2ced(this['locale']);return _0x3ed3f7['label']=S(this['locale'],'Resolve'),_0x3ed3f7['tooltip']=S(this['locale'],'Resolve'),_0x3ed3f7['icon']=_0x2bd4d7['check'],_0x3ed3f7['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x3ed3f7['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2813a1=>!_0x2813a1),_0x3ed3f7['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x5789a1,_0x162d28)=>_0x5789a1&&!_0x162d28),_0x3ed3f7['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x3ed3f7;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class es extends kt{constructor(_0x576fb4){super(_0x576fb4),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x4b558d,_0x3bd6da,_0x1ffce0)=>{this['element']['innerHTML']=_0x1ffce0;}),this['element']['innerHTML']=this['content'];}}class os extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x49e1af,_0x35be99,_0x27d753){super(_0x49e1af),this['_model']=_0x35be99,this['_config']=_0x27d753,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x35be99,'content',_0x35be99,'authoredAt',(_0x39e07d,_0x2def6e)=>S(_0x49e1af,'COMMENT_ARIA_LABEL',[_0x35be99['author']['name'],_0x27d753['formatDateTime'](_0x2def6e),new DOMParser()['parseFromString'](_0x39e07d,'text/html')['body']['textContent'],_0x35be99['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Zt(_0x49e1af,S(_0x49e1af,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x28cb78(),this['focusTracker']=new _0x225d87(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x23cfaf=>_0x23cfaf['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['expand'](){this['isCollapsed']=!0x1;}['collapse'](){this['isEditMode']||(this['isCollapsed']=!0x0);}['focus'](){this['element']['focus']();}['render'](){super['render'](),this['_setupKeyboardNavigation']();}async['destroy'](){await this['visibleView']['get'](0x0)['destroy'](),super['destroy']();}['switchToEditMode'](){this['isEditMode']||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentInputView']()));}['switchToDisplayMode'](){this['isEditMode']&&(this['isEditMode']=!0x1,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentContentView']()));}['getExternalCommentNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?S(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):S(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?S(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):S(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x31b195=new es(this['locale']);return _0x31b195['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x39d709,_0x467efd)=>_0x467efd?_0x566629(_0x39d709,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x39d709),_0x31b195;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x250dab=new hs(this['locale'],this['_config']['editorConfig']);return _0x250dab['value']=this['_model']['content'],_0x250dab['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x250dab['submitLabel']=S(this['locale'],'Save'),_0x250dab['on']('submit',(_0x5a3cbf,_0x1b2dc0)=>{this['fire']('updateComment',this['_model']['id'],_0x1b2dc0),this['switchToDisplayMode'](),this['focus']();}),_0x250dab['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x250dab['once']('editorReady',()=>{_0x250dab['focus']();}),_0x250dab['createEditor'](),_0x250dab['delegate']('editorReady')['to'](this),_0x250dab['delegate']('editorDestroyed')['to'](this),_0x250dab;}['_setupKeyboardNavigation'](){const _0x3b4292=this['element'];this['keystrokes']['listenTo'](_0x3b4292);for(const _0x5d7856 of this['focusables'])this['focusTracker']['add'](_0x5d7856['element']),this['keystrokes']['listenTo'](_0x5d7856['element']);this['focusables']['on']('change',(_0x471ae2,_0x57de30)=>{for(const _0x5e21e8 of _0x57de30['removed'])this['focusTracker']['remove'](_0x5e21e8['element']),this['keystrokes']['stopListening'](_0x5e21e8['element']);for(const _0x347aea of _0x57de30['added'])this['focusTracker']['add'](_0x347aea['element']),this['keystrokes']['listenTo'](_0x347aea['element']);}),this['keystrokes']['set']('enter',(_0x9b8f54,_0xd789a8)=>{_0x3b4292===_0x9b8f54['target']&&(this['focusCycler']['focusFirst'](),_0xd789a8());}),this['keystrokes']['set']('esc',(_0x9f0b45,_0x3f3031)=>{_0x3b4292!==_0x9f0b45['target']&&(this['focus'](),_0x3f3031());});}}class vt extends/* #__PURE__ -- @preserve */
28
+ ti(os){['actionBar'];['userView'];constructor(_0x4a6ab2,_0x1debb9,_0x2e3c40){super(_0x4a6ab2,_0x1debb9,_0x2e3c40),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x4a6ab2,'Reply...')),this['bind']('authoredAt')['to'](_0x1debb9),this['bind']('resolvedAt')['to'](_0x1debb9),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 _0x435322(_0x4a6ab2,_0x1debb9['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x1debb9,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x982275=this['bindTemplate'],_0x46bb76=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x982275['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x982275['to']('authoredAt',_0x45bfba=>this['_config']['formatDateTime'](_0x45bfba))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x982275['if']('isEditMode','ck-comment__actions--hidden'),_0x982275['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']&&_0x46bb76['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x982275['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x982275['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x982275['if']('isEditMode','ck-comment--edit'),_0x982275['if']('isSystemComment','ck-comment--info'),_0x982275['to']('actionIndicator',_0xda01d2=>_0xda01d2?'ck-comment--'+_0xda01d2:'')],'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':_0x46bb76}]}]};}['_createEditButton'](){const _0x40a9a3=new _0x1af4cd(this['locale']);return _0x40a9a3['label']=S(this['locale'],'Edit'),_0x40a9a3['icon']=_0x2bd4d7['pencil'],_0x40a9a3['withText']=!0x0,_0x40a9a3['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x40a9a3['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1186e6=>!_0x1186e6),_0x40a9a3['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x40a9a3['on']('execute',()=>this['switchToEditMode']()),_0x40a9a3;}['_createRemoveButton'](){const _0xcd5ed4=new _0x1af4cd(this['locale']);return _0xcd5ed4['label']=S(this['locale'],'Remove'),_0xcd5ed4['icon']='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M5.2\x207h9.2c.6\x200\x201\x20.4\x201\x201v9.9c0\x20.5-.4\x201-1\x201H5.2a1\x201\x200\x200\x201-1-1V8c0-.6.4-1\x201-1zm1\x201.5c-.3\x200-.5.2-.5.5v8c0\x20.3.2.5.5.5h.5c.2\x200\x20.5-.2.5-.5V9c0-.3-.3-.5-.5-.5h-.5zm3.2\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.4zm3.5\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.5zm-1.4-7.1H8.3L6.5\x203.6H3.8c-.5\x200-.7.3-.7.8s.2.7.7.7h12c.6\x200\x20.9-.2.9-.7\x200-.5-.3-.8-1-.8h-2.4l-1.8-2.2z\x22/></svg>\x0a',_0xcd5ed4['withText']=!0x0,_0xcd5ed4['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0xcd5ed4['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x50df1e=>!_0x50df1e),_0xcd5ed4['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0xcd5ed4['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0xcd5ed4;}['_createDropdown'](){const _0x510a3a=_0x3e66b8(this['locale'],_0x2bed8f),_0x1056aa=_0x510a3a['panelView']['children'],_0x385b8c=new _0x514a10(this['locale']),_0x26f958=_0x510a3a['bindTemplate'];_0x267583(_0x510a3a,()=>this['items']['find'](_0x12c51f=>_0x12c51f['isVisible'])),_0x510a3a['extendTemplate']({'attributes':{'class':[_0x26f958['if']('isVisible','ck-hidden',_0x525ca7=>!_0x525ca7)]}});const _0x473067=(_0x2e2c32,_0x59468a=-0x1)=>{const _0xafeb0e=new _0x281d78(this['locale']);_0xafeb0e['children']['add'](_0x2e2c32);const _0x6a7d3d=_0x59468a>-0x1?_0x59468a:_0x385b8c['items']['length'];_0x385b8c['items']['add'](_0xafeb0e,_0x6a7d3d);const _0x109c0f=Array['from'](this['items']);_0x510a3a['unbind']('isEnabled','isVisible'),_0x510a3a['bind']('isEnabled')['toMany'](_0x109c0f,'isEnabled',(..._0x5d8af0)=>_0x5d8af0['some'](_0x1faa76=>_0x1faa76)),_0x510a3a['bind']('isVisible')['toMany'](_0x109c0f,'isVisible',(..._0x752502)=>_0x752502['some'](_0x31a2bc=>_0x31a2bc));};_0x510a3a['panelPosition']='sw',_0x510a3a['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x2bd4d7['threeVerticalDots']});for(const _0x5acfbd of this['items'])_0x473067(_0x5acfbd);return _0x1056aa['add'](_0x385b8c),_0x510a3a['listenTo'](this['items'],'add',(_0x182f8d,_0x2e4c08,_0x146b7)=>{_0x473067(_0x2e4c08,_0x146b7);}),_0x510a3a['listenTo'](this['items'],'remove',(_0x363b04,_0x51e969,_0x4ad56b)=>{_0x385b8c['items']['remove'](_0x4ad56b);}),_0x510a3a;}['_attachActions'](_0x17a7d0,_0x28b83c){const _0x5492ee=_0x17a7d0&&_0x17a7d0['element'];_0x5492ee&&(this['listenTo'](_0x5492ee,'mouseenter',()=>this['actionIndicator']=_0x28b83c),this['listenTo'](_0x5492ee,'focus',()=>this['actionIndicator']=_0x28b83c),this['listenTo'](_0x5492ee,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x5492ee,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x2625e9=super['_createCommentInputView']();return _0x2625e9['bind']('placeholder')['to'](this),_0x2625e9;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Dt(_0x2fcf67){const _0x5e54b9=bt(_0x2fcf67,0x1e),_0x1c3ec8=new MutationObserver(_0x94b2bf=>{for(const _0x26a5cd of _0x94b2bf)('attributes'==_0x26a5cd['type']&&'class'==_0x26a5cd['attributeName']||'childList'==_0x26a5cd['type']||'characterData'==_0x26a5cd['type'])&&_0x5e54b9();});return{'attach'(_0x1c9a61){_0x1c3ec8['observe'](_0x1c9a61,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x1c3ec8['disconnect'](),_0x5e54b9['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x496da2,_0x338262){super(_0x496da2),this['id']=_0x1c16ac(),this['focusTracker']=new _0x225d87(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0xc21949,_0x1e0b8e)=>this['fire']('Esc',_0x1e0b8e)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=Dt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x338262),this['mainView']=_0x338262;const _0x2da8b4=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x2da8b4['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 _0x5eb889=this['element']['clientHeight'];_0x5eb889&&(this['height']=_0x5eb889);}}class d extends/* #__PURE__ -- @preserve */
29
+ _0x783350(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x4e715a,target:_0x39655e,type:_0x20d039,isVisible:_0x30b1e1=!0x0}){super(),this['view']=_0x4e715a,this['view']['element']||this['view']['render'](),this['_type']=_0x20d039,this['_target']=_0x39655e,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x550aff([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x1d81f6,_0xa19d08)=>{this['view']['focusTracker']['add'](_0xa19d08);}),this['focusableElements']['on']('remove',(_0x403685,_0x30fdc6)=>{this['view']['focusTracker']['remove'](_0x30fdc6);}),this['set']('isVisible',_0x30b1e1);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0xdd1594=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0xdd1594),_0xdd1594;}get['targetRect'](){const _0x4db148=this['target'];if(null===_0x4db148)return null;if(_0x4db148 instanceof _0x26b643)return _0x4db148;const _0x59f708=_0x4db148['filter'](_0x44cbfc=>function(_0x316522){const _0x415781=_0x316522['offsetParent'];if(_0x415781)return!0x0;const _0x8da6c=_0x316522['getClientRects']()['item'](0x0);return!!_0x8da6c;}(_0x44cbfc));return 0x0===_0x59f708['length']?null:new _0x26b643(_0x59f708[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x32e855){this['view']['isActive']=_0x32e855,this['view']['mainView']['isActive']=_0x32e855;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x498a7c){if(!(null===_0x498a7c||_0x498a7c instanceof _0x26b643||Array['isArray'](_0x498a7c)&&_0x498a7c['every'](_0x49df49=>ne(_0x49df49))))throw new _0x2f63eb('annotation-invalid-target',null,{'target':_0x498a7c});}['_getNormalizedTarget'](){const _0x2614ed='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x2614ed)?[_0x2614ed]:_0x2614ed;}}function ne(_0x82a9f8){return null!==_0x82a9f8&&'object'==typeof _0x82a9f8&&'nodeType'in _0x82a9f8&&0x1===_0x82a9f8['nodeType'];}class x extends _0x550aff{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x4f9b89=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x225d87(),this['_focusTracker']['on']('change:isFocused',(_0x30d7ad,_0x1f7771,_0x25b3c8)=>{_0x25b3c8||this['fire']('blur');});for(const _0xc9cd4b of _0x4f9b89)this['add'](_0xc9cd4b);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x1feaea){if(this['has'](_0x1feaea))throw new _0x2f63eb('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x1feaea['innerView'],_0x1feaea),this['_viewToAnnotation']['set'](_0x1feaea['view'],_0x1feaea);for(const _0x1beb81 of _0x1feaea['focusableElements'])this['_focusTracker']['add'](_0x1beb81);this['listenTo'](_0x1feaea['focusableElements'],'add',(_0x157624,_0x12f99d)=>{this['_focusTracker']['add'](_0x12f99d);}),this['listenTo'](_0x1feaea['focusableElements'],'remove',(_0x2f976f,_0xa253df)=>{this['_focusTracker']['remove'](_0xa253df);}),this['listenTo'](_0x1feaea['view']['focusTracker'],'change:isFocused',(_0x394bbe,_0x229a8c,_0x437e23)=>{_0x437e23&&this['fire']('focus',_0x1feaea);}),_0x1feaea['updateTargetRect']();const _0xecdbcc=this['_getOrderInContent'](_0x1feaea['view']['targetRect']);return super['add'](_0x1feaea,_0xecdbcc);}['remove'](_0x37a698){if(!this['has'](_0x37a698))throw new _0x2f63eb('annotationcollection-not-existing-item',null);this['stopListening'](_0x37a698['view']['focusTracker']),this['stopListening'](_0x37a698['focusableElements']);for(const _0x220e4b of _0x37a698['focusableElements'])this['_focusTracker']['remove'](_0x220e4b);return this['_viewToAnnotation']['delete'](_0x37a698['view']),this['_innerViewToAnnotation']['delete'](_0x37a698['innerView']),super['remove'](_0x37a698);}['getByInnerView'](_0x2abfa9){return this['_innerViewToAnnotation']['get'](_0x2abfa9);}['getByView'](_0x4a33a7){return this['_viewToAnnotation']['get'](_0x4a33a7);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x179deb of this)_0x179deb['updateTargetRect']();this['_sort']();}['_sort'](){const _0x5eb3e4=Array['from'](this)['sort']((_0x428467,_0x13d395)=>v(_0x428467['view']['targetRect'],_0x13d395['view']['targetRect']));for(let _0x897a33=_0x5eb3e4['length']-0x1;_0x897a33>0x0;_0x897a33--){const _0x400d76=_0x5eb3e4[_0x897a33];_0x897a33!==this['getIndex'](_0x400d76)&&(this['remove'](_0x400d76),this['add'](_0x400d76));}}['_getOrderInContent'](_0x20f846){let _0x7a73ae=0x0;if(!_0x20f846)return this['length'];for(const _0x5000c2 of this){const _0x34f292=_0x5000c2['view']['targetRect'];if(_0x34f292){if(v(_0x20f846,_0x34f292)<0x0)return _0x7a73ae;_0x7a73ae++;}}return _0x7a73ae;}}function v(_0x3ac40a,_0x38e511){if(null===_0x3ac40a&&null===_0x38e511)return 0x0;if(null===_0x3ac40a)return-0x1;if(null===_0x38e511)return 0x1;const _0x560222=_0x3ac40a['top']-_0x38e511['top'];return 0x0==_0x560222?_0x3ac40a['left']-_0x38e511['left']:_0x560222;}class N extends _0x57f47d{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x27db4f){if(super(_0x27db4f),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x27db4f instanceof _0x453a50){const _0x482981=_0x27db4f['locale'];_0x27db4f['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x482981,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x482981,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x482981,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x482981,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x482981,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x482981,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x482981,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x29156f){this['collection']['add'](_0x29156f);}['remove'](_0x1ad8e4){this['collection']['remove'](_0x1ad8e4),_0x1ad8e4['destroy']();}['refreshVisibility'](){for(const _0x5aad6f of this['collection'])_0x5aad6f['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0xb37f95){return this['collection']['getByInnerView'](_0xb37f95);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x5b9d28 of this['collection'])_0x5b9d28['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x50e1f6){this['fire']('_activateAnnotation',_0x50e1f6);}['createAnnotation'](_0x3d6629){return new d(_0x3d6629);}['createAnnotationView'](_0x4a1a4e,_0x2f8a90){return new T(_0x4a1a4e,_0x2f8a90);}['_addActiveAnnotation'](_0x15a8ff){const _0x2fcd9b=new Set(this['activeAnnotations']);_0x2fcd9b['add'](_0x15a8ff),this['activeAnnotations']=_0x2fcd9b;}['_removeActiveAnnotation'](_0x267a2a){const _0x330f00=new Set(this['activeAnnotations']);_0x330f00['delete'](_0x267a2a),this['activeAnnotations']=_0x330f00;}['_bindAnnotationsToVisibleAnnotations'](){const _0x59cf9b=this['collection'],_0x1d3577=this['_visibleAnnotations'];function _0x4dbdf0(_0x3241e4){const _0x509203=_0x3241e4['source'];_0x509203['isVisible']&&!_0x1d3577['has'](_0x509203)?_0x1d3577['add'](_0x509203):!_0x509203['isVisible']&&_0x1d3577['has'](_0x509203)&&_0x1d3577['remove'](_0x509203),_0x509203['view']['focusTracker']['remove'](_0x509203['view']['element']),_0x509203['view']['focusTracker']['add'](_0x509203['view']['element']);}this['listenTo'](_0x59cf9b,'add',(_0x413a28,_0x59e9c0)=>{_0x59e9c0['isVisible']&&_0x1d3577['add'](_0x59e9c0),this['listenTo'](_0x59e9c0,'change:isVisible',_0x4dbdf0);}),this['listenTo'](_0x59cf9b,'remove',(_0xa7f994,_0x167dd1)=>{_0x1d3577['has'](_0x167dd1)&&_0x1d3577['remove'](_0x167dd1),this['stopListening'](_0x167dd1,'change:isVisible',_0x4dbdf0);});}['_setupEnterAnnotationKeystroke'](){const _0x9cdfe7=_0x479495=>{_0x479495['on']('ready',()=>{_0x479495['keystrokes']['set'](_0x554e6e,(_0x57728d,_0x39742c)=>{const _0x58394f=_0x28df54(this['activeAnnotations']['values']());_0x58394f&&(_0x58394f['view']['focus'](),_0x39742c());});});};this['context']instanceof _0x453a50?_0x9cdfe7(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x48154e,_0x2f41f4)=>{_0x9cdfe7(_0x2f41f4);});}['_setupEscapeAnnotationHandling'](){const _0x115c49=_0xc87207=>{const _0x1c3b83=_0xc87207['source'],_0x40edc3=[];let _0x3a786b;if(Array['isArray'](_0x1c3b83['target'])){_0x3a786b=_0x1c3b83['target'][0x0],this['context']instanceof _0x453a50?_0x40edc3['push'](this['context']):this['context']['editors']&&_0x40edc3['push'](...this['context']['editors']);for(const _0x5c333d of _0x40edc3)for(const _0x7f2b54 of _0x5c333d['editing']['view']['domRoots']['values']())if(_0x7f2b54['contains'](_0x3a786b))return void _0x5c333d['editing']['view']['focus']();_0x3a786b['focus']();}};this['listenTo'](this['collection'],'add',(_0x2689e1,_0x3a76f3)=>{this['listenTo'](_0x3a76f3,'escape',_0x115c49,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x108b4b,_0x147682)=>{this['stopListening'](_0x147682,'escape',_0x115c49);});}}const gt=Symbol('noChannel'),Tt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x57f47d{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[N,ht,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d24c5){super(_0x1d24c5),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x3b1c79=this['context']['config'];_0x3b1c79['define']('comments.maxCommentsWhenCollapsed',0x2),_0x3b1c79['define']('comments.maxThreadTotalWeight',0x1f4),_0x3b1c79['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x3b1c79['define']('comments.CommentThreadView',Ct),_0x3b1c79['define']('comments.CommentView',vt),_0x3b1c79['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x523de2=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x53e909,_0x93e96f)=>this['_addCommentThread'](_0x93e96f)),this['on']('submitCommentThread',(_0x2521ed,_0x10c122)=>this['_submitCommentThread'](_0x10c122)),this['on']('resolveCommentThread',(_0x367373,_0x30d6c7)=>this['_resolveCommentThread'](_0x30d6c7)),this['on']('resolveCommentThread',(_0x5e5c40,_0x360530)=>this['_updateActiveAnnotation'](_0x360530),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x5918df,_0x570c61)=>this['_reopenCommentThread'](_0x570c61)),this['on']('reopenCommentThread',(_0x48c97a,_0x19c312)=>this['_updateActiveAnnotation'](_0x19c312),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x495108,_0x201dee)=>this['_removeCommentThread'](_0x201dee)),this['on']('updateCommentThread',(_0x5499d5,_0x39452e)=>this['_updateCommentThread'](_0x39452e)),this['on']('updateCommentThread',(_0x54cff7,_0x389f0e)=>this['_updateActiveAnnotation'](_0x389f0e),{'priority':'lowest'}),this['on']('addComment',(_0x345844,_0x237891)=>this['_addComment'](_0x237891)),this['on']('updateComment',(_0x1a8062,_0x4ab925)=>this['_updateComment'](_0x4ab925)),this['on']('removeComment',(_0x4d99b6,_0x338182)=>this['_removeComment'](_0x338182)),this['on']('addComment',(_0x49f96a,{threadId:_0x3a8df0,isFromAdapter:_0x5b26fb})=>{if(_0x5b26fb)return;const _0x547079=this['getCommentThread'](_0x3a8df0),_0x314676=_0x547079&&this['_threadToController']['get'](_0x547079);_0x314676&&_0x314676['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x523de2,'change:activeAnnotations',(_0x209af0,_0x49f978,_0x20df06)=>{const _0x3bfac9=Array['from'](_0x20df06)['map'](_0x336be7=>this['_viewToController']['get'](_0x336be7['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x3bfac9?_0x3bfac9['model']:null;});}set['adapter'](_0x1ee840){if(this['_adapter'])throw new _0x2f63eb('commentsrepository-adapter-already-set');this['_adapter']=_0x1ee840;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x3c2b64=gt,threadId:_0x2459c0=_0x1c16ac(),comments:_0x3feee3=[],unlinkedAt:_0xa7bb12=null,resolvedAt:_0x343c0f=null,resolvedBy:_0x3ab537=null,target:_0x514aae=null,context:_0x45420a=null,attributes:_0x302b60={},isResolvable:_0x2ff72=!0x0,isSubmitted:_0x263cf0=!0x1,isFromAdapter:_0x58d25b=!0x1}={}){return this['fire'](_t('addCommentThread',_0x3c2b64),{'channelId':_0x3c2b64,'threadId':_0x2459c0,'comments':_0x3feee3,'unlinkedAt':_0xa7bb12,'resolvedAt':_0x343c0f,'resolvedBy':_0x3ab537,'target':_0x514aae,'context':_0x45420a,'attributes':_0x302b60,'isFromAdapter':_0x58d25b,'isResolvable':_0x2ff72,'isSubmitted':_0x263cf0}),this['getCommentThread'](_0x2459c0);}['openNewCommentThread']({channelId:_0x597f68=gt,threadId:_0x32b0ab=_0x1c16ac(),target:_0x10984a,context:_0x49de10=null,isResolvable:_0x1dc384=!0x0}){if(this['_readOnlyChannels']['has'](_0x597f68)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x10984a)throw new _0x2f63eb('commentsrepository-missing-target');const _0x101edf=this['addCommentThread']({'channelId':_0x597f68,'threadId':_0x32b0ab,'target':_0x10984a,'context':_0x49de10,'isResolvable':_0x1dc384});if(!_0x101edf)return null;const _0x32291a=this['_threadToController']['get'](_0x101edf),_0x605a3b=_0x32291a['view']['commentThreadInputView']['commentInputView'],_0x2ac6bf=this['context']['plugins']['get'](N),_0x5617f5=_0x2ac6bf['getByInnerView'](_0x32291a['view']);return _0x2ac6bf['activate'](_0x5617f5),_0x605a3b['once']('editorReady',()=>_0x605a3b['focus']()),_0x101edf;}['hasCommentThread'](_0x4a3f10){if('string'!=typeof _0x4a3f10)throw new _0x2f63eb('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x4a3f10);}['updateCommentThread']({channelId:_0x1d95aa=gt,threadId:_0x13004e,context:_0x39aa95,unlinkedAt:_0x5a676d,attributes:_0x12d29d,isFromAdapter:_0x2d3830=!0x1}){return this['fire'](_t('updateCommentThread',_0x1d95aa),{'channelId':_0x1d95aa,'threadId':_0x13004e,'context':_0x39aa95,'unlinkedAt':_0x5a676d,'attributes':_0x12d29d,'isFromAdapter':_0x2d3830}),this['getCommentThread'](_0x13004e);}['getCommentThread'](_0x4c8638){if('string'!=typeof _0x4c8638)throw new _0x2f63eb('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x4c8638);}['fetchCommentThread']({channelId:_0x232be0,threadId:_0x2c8859}={}){const _0xb5a3a8=this['getCommentThread'](_0x2c8859);if(_0xb5a3a8)return Promise['resolve'](_0xb5a3a8);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x2f63eb('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x232be0,'threadId':_0x2c8859})['then'](_0x154f7a=>this['hasCommentThread'](_0x2c8859)?this['getCommentThread'](_0x2c8859):_0x154f7a?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x232be0},_0x154f7a)):void 0x0)['catch'](_0x4cacb1=>{throw console['error'](_0x4cacb1),new _0x2f63eb('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x12879b,skipNotAttached:_0x45686d=!0x1,skipEmpty:_0x3f16ee=!0x1,toJSON:_0x523f36=!0x1}={}){const _0x4eed78=[];for(const _0x53a1c1 of this['_threads']['values']())_0x12879b&&_0x53a1c1['channelId']!==_0x12879b||_0x45686d&&!_0x53a1c1['isAttached']||_0x3f16ee&&0x0===_0x53a1c1['length']||_0x4eed78['push'](_0x53a1c1);return _0x523f36?_0x4eed78['map'](_0x3e253f=>_0x3e253f['toJSON']()):_0x4eed78;}['setActiveCommentThread'](_0x4ca1ee){const _0x15fac1=this['context']['plugins']['get'](N);if(!_0x4ca1ee)return void(this['activeCommentThread']&&_0x15fac1['deactivateAll']());const _0xbcdf4d=this['getCommentThread'](_0x4ca1ee);if(!_0xbcdf4d)throw new _0x2f63eb('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x4ca1ee});if(!this['_threadToController']['has'](_0xbcdf4d))throw new _0x2f63eb('commentsrepository-active-not-attached',null,{'threadId':_0x4ca1ee});const _0x48a1b7=_0x15fac1['getByInnerView'](this['_threadToController']['get'](_0xbcdf4d)['view']);_0x15fac1['activate'](_0x48a1b7);}['switchReadOnly'](_0x60ed1,_0x3dfefa){_0x60ed1?this['_readOnlyChannels']['add'](_0x3dfefa):this['_readOnlyChannels']['delete'](_0x3dfefa),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x1bd556){return this['_readOnlyChannels']['has'](_0x1bd556)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0xae43b2,_0x269efb){return new yt(_0xae43b2,_0x269efb);}['setPermissions'](_0x2261d5,_0x108c53=gt){this['_permissions']['set'](_0x108c53,_0x2261d5),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x1e873a=gt){return this['_permissions']['has'](_0x1e873a)?this['_permissions']['get'](_0x1e873a):Tt;}['_addCommentThread']({channelId:_0x50cb5d,threadId:_0x475b79,comments:_0x5f4de5,unlinkedAt:_0x3c07b4,resolvedAt:_0x4852d2,resolvedBy:_0x3ca28d,target:_0x47cdb3,context:_0x5c2b78,attributes:_0x1b1d69,isFromAdapter:_0x266cb2,isResolvable:_0x1a425b,isSubmitted:_0x5472ea}){if('string'!=typeof _0x475b79)throw new _0x2f63eb('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x475b79});if(this['hasCommentThread'](_0x475b79))throw new _0x2f63eb('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x475b79});const _0x5081d1=new oe(this,{'channelId':_0x50cb5d,'id':_0x475b79,'context':_0x5c2b78,'attributes':_0x1b1d69,'unlinkedAt':_0x3c07b4,'resolvedAt':_0x4852d2,'resolvedBy':_0x3ca28d?this['context']['plugins']['get'](it)['getUser'](_0x3ca28d):null,'isResolvable':_0x1a425b,'isSubmitted':_0x5472ea||_0x266cb2});this['_threads']['set'](_0x475b79,_0x5081d1);for(const _0x2807a8 of _0x5f4de5)_0x5081d1['_add'](this['_createNewComment']({'threadId':_0x475b79,..._0x2807a8}));return _0x47cdb3&&_0x5081d1['attachTo'](_0x47cdb3),_0x266cb2||!_0x5081d1['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x50cb5d,'threadId':_0x475b79});}['_submitCommentThread']({channelId:_0x4e7ad7,threadId:_0x5cc4a8}){if(!this['hasCommentThread'](_0x5cc4a8))throw new _0x2f63eb('commentsrepository-missing-comment-thread',this);const _0x5d8161=this['getCommentThread'](_0x5cc4a8);if(_0x5d8161['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x542562,comments:_0x116579,resolvedAt:_0x56a20c,resolvedBy:_0x3c979e,context:_0x4d5d0c,attributes:_0xb88b8d}=_0x5d8161,_0xd49c28=this['context']['plugins']['get']('PendingActions'),_0xffa053=_0xd49c28['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x4e7ad7,'threadId':_0x542562,'comments':_0x116579['map'](_0x19b3b8=>_0x19b3b8['toJSON']()),'resolvedAt':_0x56a20c,'resolvedBy':_0x3c979e?_0x3c979e['id']:_0x3c979e,'context':_0x4d5d0c,'attributes':_0xb88b8d})['then'](({comments:_0x187568})=>{_0xd49c28['remove'](_0xffa053);for(const _0x285fb0 of _0x187568)this['_updateComment']({'channelId':_0x4e7ad7,'threadId':_0x5cc4a8,'commentId':_0x285fb0['commentId'],'createdAt':_0x285fb0['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x833ad3=>{throw console['error'](_0x833ad3),new _0x2f63eb('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x5d4aed,target:_0x5c666f}){const _0x3fc4c2=this['getCommentThread'](_0x5d4aed);if(!_0x3fc4c2)throw new _0x2f63eb('commentsrepository-attach-missing-comment-thread',this);const _0x5bc390=this['context']['plugins']['get']('PendingActions'),_0x11e62d=this['context']['plugins']['get'](N),_0x1413c1=this['_createCommentThreadView'](_0x3fc4c2),_0x4cc3c1=new yt(_0x3fc4c2,_0x1413c1);let _0x4be72a=null;_0x1413c1['on']('change:isDirty',(_0x14e92d,_0xb0c2ee,_0x479209)=>{_0x479209?_0x4be72a=_0x5bc390['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x4be72a&&(_0x5bc390['remove'](_0x4be72a),_0x4be72a=null);}),this['_threadToController']['set'](_0x3fc4c2,_0x4cc3c1),this['_viewToController']['set'](_0x1413c1,_0x4cc3c1);const _0x1aba28=new T(this['context']['locale'],_0x1413c1);_0x1aba28['bind']('length')['to'](_0x1413c1),_0x1aba28['bind']('isDirty')['to'](_0x1413c1,'isDirty',_0x1413c1,'length',(_0x4fc405,_0x269b11)=>_0x4fc405||!_0x269b11),_0x1aba28['bind']('isActive')['to'](_0x1413c1),_0x1aba28['type']='comment';const _0x5e0205=new d({'view':_0x1aba28,'target':_0x5c666f,'type':'comment','isVisible':!_0x3fc4c2['isResolved']});return _0x1413c1['on']('escape',()=>{_0x5e0205['fire']('escape');}),this['_bindAnnotationToEditors'](_0x1413c1,_0x5e0205),_0x11e62d['add'](_0x5e0205),_0x5e0205;}['_bindAnnotationToEditors'](_0x304f16,_0x4de162){this['listenTo'](_0x304f16,'editorReady',(_0x39de19,_0x45884e)=>{const _0x3702ac=_0x45884e['ui']['view']['body']['bodyCollectionContainer'];_0x4de162['focusableElements']['add'](_0x3702ac),this['context']instanceof _0x453a50&&this['context']['ui']['focusTracker']['add'](_0x3702ac);},{'priority':'highest'}),this['listenTo'](_0x304f16,'editorDestroyed',(_0x5f3d7f,_0x1abd06)=>{const _0xafbdc2=_0x1abd06['ui']['view']['body']['bodyCollectionContainer'];_0x4de162['focusableElements']['has'](_0xafbdc2)&&_0x4de162['focusableElements']['remove'](_0xafbdc2),this['context']instanceof _0x453a50&&this['context']['ui']['focusTracker']['remove'](_0xafbdc2);});}['_unbindEditors'](_0x2fc5f9){this['stopListening'](_0x2fc5f9,'editorReady'),this['stopListening'](_0x2fc5f9,'editorDestroyed');}['_createCommentThreadView'](_0x578dc1){const _0x292f59=this['context']['plugins']['get'](it),{config:_0x57f686,locale:_0xfea7a4}=this['context'],_0x321c65=mt(_0x57f686['get']('locale'));return new(0x0,(_0x57f686['get']('comments'))['CommentThreadView'])(_0xfea7a4,_0x578dc1,_0x292f59['me'],{'editorConfig':{..._0x57f686['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x57f686['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x57f686['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x57f686['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x57f686['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x321c65,'CommentView':_0x57f686['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x1a9b02,channelId:_0x27f089,resolvedAt:_0x10114f,resolvedBy:_0x45a073,isFromAdapter:_0x3d46b2}){if(!this['hasCommentThread'](_0x1a9b02))throw new _0x2f63eb('commentsrepository-missing-comment-thread',null,{'threadId':_0x1a9b02});const _0x1c2345=this['getCommentThread'](_0x1a9b02);if(_0x1c2345['isResolved'])throw new _0x2f63eb('commentsrepository-resolved-comment-thread',null,{'threadId':_0x1a9b02});const _0x3eb21c=this['context']['plugins']['get'](it);if(_0x1c2345['resolvedBy']=_0x3eb21c['getUser'](_0x45a073),_0x1c2345['resolvedAt']=_0x10114f,_0x3d46b2||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x130ad2=this['context']['plugins']['get']('PendingActions'),_0x375b94=_0x130ad2['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x27f089,'threadId':_0x1a9b02})['then'](({resolvedAt:_0xc7361f,resolvedBy:_0x5d7942})=>{_0x130ad2['remove'](_0x375b94),_0x1c2345['resolvedBy']['id']!==_0x5d7942&&(_0x1c2345['resolvedBy']=_0x3eb21c['getUser'](_0x5d7942)),_0x1c2345['resolvedAt']=_0xc7361f;})['catch'](_0x55584d=>{throw console['error'](_0x55584d),new _0x2f63eb('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x31a2f1,channelId:_0xc052c3,isFromAdapter:_0x2026c8}){if(!this['hasCommentThread'](_0x31a2f1))throw new _0x2f63eb('commentsrepository-missing-comment-thread',null,{'threadId':_0x31a2f1});const _0x3a7cad=this['getCommentThread'](_0x31a2f1);if(!_0x3a7cad['isResolved'])throw new _0x2f63eb('commentsrepository-reopen-comment-thread',null,{'threadId':_0x31a2f1});if(_0x3a7cad['resolvedBy']=null,_0x3a7cad['resolvedAt']=null,_0x2026c8||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x4ebd9a=this['context']['plugins']['get']('PendingActions'),_0x201794=_0x4ebd9a['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0xc052c3,'threadId':_0x31a2f1})['then'](()=>_0x4ebd9a['remove'](_0x201794))['catch'](_0x4d5f6e=>{throw console['error'](_0x4d5f6e),new _0x2f63eb('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x2e8aa6,isFromAdapter:_0x2247a8}){const _0x1a864a=this['getCommentThread'](_0x2e8aa6);if(!_0x1a864a)throw new _0x2f63eb('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x2e8aa6),this['_threads']['delete'](_0x2e8aa6),!_0x1a864a['isSubmitted']||_0x2247a8||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x46b72d=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5cdd46}=_0x1a864a,_0x30d222=_0x46b72d['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x5cdd46,'threadId':_0x2e8aa6})['then'](()=>_0x46b72d['remove'](_0x30d222))['catch'](_0xfe364d=>{throw console['error'](_0xfe364d),new _0x2f63eb('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x1dd738,unlinkedAt:_0x4943bd,context:_0x1f382e,attributes:_0x585b92,isFromAdapter:_0x2ce37a}){if('string'!=typeof _0x1dd738)throw new _0x2f63eb('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x1dd738});if(!this['hasCommentThread'](_0x1dd738))throw new _0x2f63eb('commentsrepository-missing-comment-thread',null,{'threadId':_0x1dd738});const _0x21eeeb=this['getCommentThread'](_0x1dd738);let _0xae5148=!0x1;if(void 0x0!==_0x1f382e&&_0x21eeeb['context']!==_0x1f382e&&(_0x21eeeb['context']=_0x1f382e,_0xae5148=!0x0),void 0x0!==_0x4943bd&&_0x21eeeb['unlinkedAt']!==_0x4943bd&&(_0x21eeeb['unlinkedAt']=_0x4943bd,_0xae5148=!0x0),_0x585b92&&!It(_0x585b92,_0x21eeeb['attributes'])&&(_0x21eeeb['attributes']=_0x585b92,_0xae5148=!0x0),!_0xae5148)return Promise['resolve']();if(!_0x21eeeb['isSubmitted']||_0x2ce37a||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x2f2e49=this['context']['plugins']['get']('PendingActions'),{channelId:_0x237267}=_0x21eeeb,_0x4c2458=_0x2f2e49['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x237267,'threadId':_0x1dd738,'context':_0x1f382e,'unlinkedAt':_0x4943bd,'attributes':_0x585b92})['then'](()=>_0x2f2e49['remove'](_0x4c2458))['catch'](_0x1d92a2=>{throw console['error'](_0x1d92a2),new _0x2f63eb('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x10550c){const _0x22c96c=this['context']['plugins']['get'](N),_0x328cfc=this['getCommentThread'](_0x10550c);if(this['_threadToController']['has'](_0x328cfc)){const _0x22f47c=this['_threadToController']['get'](_0x328cfc),_0x4994e3=_0x22f47c['view'],_0x410638=_0x22c96c['getByInnerView'](_0x4994e3);this['_threadToController']['delete'](_0x328cfc),this['_viewToController']['delete'](_0x4994e3),_0x410638&&_0x22c96c['remove'](_0x410638),_0x22f47c['destroy'](),_0x4994e3['destroy']()['then'](()=>{this['_unbindEditors'](_0x4994e3);});}}['_updateActiveAnnotation']({threadId:_0x390341,resolvedAt:_0x35c897}){const _0x47128b=!!_0x35c897,_0x471fdd=this['context']['plugins']['get'](N),_0xaac2f1=this['getCommentThread'](_0x390341);if(this['_threadToController']['has'](_0xaac2f1)){const _0xd5208f=this['_threadToController']['get'](_0xaac2f1)['view'],_0x404690=_0x471fdd['getByInnerView'](_0xd5208f);_0x404690&&(_0x47128b&&_0x471fdd['_removeActiveAnnotation'](_0x404690),_0x404690['refreshVisibility']());}}['_getExternalAuthor'](_0x5d2cf6){const _0x3127df=this['context']['plugins']['get'](it),_0x10294c=lt('external:'+_0x5d2cf6),_0x9b05fa=_0x3127df['getUser'](_0x10294c);return _0x9b05fa||_0x3127df['addUser']({'id':_0x10294c,'name':_0x5d2cf6});}['_createNewComment']({threadId:_0x5b4df9,commentId:_0x2ddc0a=_0x1c16ac(),content:_0x23ef08,authorId:_0x1fbb4a,createdAt:_0x279504,attributes:_0x289939}){if('string'!=typeof _0x2ddc0a)throw new _0x2f63eb('commentsrepository-invalid-commentid');if('string'!=typeof _0x1fbb4a)throw new _0x2f63eb('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x23ef08||!_0x23ef08['trim']())throw new _0x2f63eb('commentsrepository-invalid-comment-content');const _0x28f064=this['context']['plugins']['get'](it)['getUser'](_0x1fbb4a);if(!_0x28f064)throw new _0x2f63eb('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x1fbb4a});let _0x486f9e=null,_0x2ccc80=_0x279504;return _0x289939&&_0x289939['@external']&&(_0x486f9e=this['_getExternalAuthor'](_0x289939['@external']['authorName']),_0x2ccc80=new Date(_0x289939['@external']['createdAt'])),new re(this,{'threadId':_0x5b4df9,'id':_0x2ddc0a,'author':_0x486f9e||_0x28f064,'creator':_0x28f064,'content':_0x23ef08,'createdAt':_0x279504,'authoredAt':_0x2ccc80,'attributes':_0x289939});}['_addComment'](_0x471d0c){let {threadId:_0x110c53,content:_0x4646a8,attributes:_0x53cc8d,isFromAdapter:_0x1ad14f}=_0x471d0c;const _0x5550cc=this['getCommentThread'](_0x471d0c['threadId']);if(!_0x5550cc)throw new _0x2f63eb('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x288383=this['_createNewComment'](_0x471d0c),{id:_0xa96beb}=_0x288383;if(_0x5550cc['_add'](_0x288383),_0x1ad14f||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x5550cc['isSubmitted'])return Promise['resolve']();const _0x535858=this['context']['plugins']['get']('PendingActions'),{channelId:_0x58d14f}=_0x5550cc,_0x493fb8=_0x535858['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x53cc8d||(_0x53cc8d={}),this['adapter']['addComment']({'channelId':_0x58d14f,'threadId':_0x110c53,'commentId':_0xa96beb,'content':_0x4646a8,'attributes':_0x53cc8d})['then'](_0x566fea=>{_0x535858['remove'](_0x493fb8),_0x566fea&&this['_updateComment']({'channelId':_0x58d14f,'threadId':_0x110c53,'commentId':_0xa96beb,'createdAt':_0x566fea['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x32abcf=>{throw console['error'](_0x32abcf),new _0x2f63eb('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x41a1f9,commentId:_0x4a640e,content:_0x14744f,createdAt:_0x4987cb,attributes:_0xa34bd3,isFromAdapter:_0x7885bd}){if(void 0x0!==_0x14744f&&('string'!=typeof _0x14744f||!_0x14744f['trim']()['length']))throw new _0x2f63eb('commentsrepository-update-comment-invalid-content');const _0x4a7f31=this['getCommentThread'](_0x41a1f9),_0x149ad5=_0x4a7f31['getComment'](_0x4a640e);if(!_0x149ad5)throw new _0x2f63eb('commentsrepository-update-missing-comment',this);let _0x257ab5=!0x1;if(_0x14744f&&_0x14744f!==_0x149ad5['content']&&(_0x149ad5['isEditable']||_0x7885bd)&&(_0x149ad5['content']=_0x14744f,_0x257ab5=!0x0),_0x4987cb&&_0x4987cb!==_0x149ad5['createdAt']&&(_0x149ad5['createdAt']=_0x4987cb,_0x149ad5['attributes']&&_0x149ad5['attributes']['@external']||(_0x149ad5['authoredAt']=_0x4987cb),_0x257ab5=!0x0),_0xa34bd3&&!It(_0xa34bd3,_0x149ad5['attributes'])&&(_0x149ad5['attributes']=_0xa34bd3,_0x257ab5=!0x0),!_0x257ab5)return Promise['resolve']();if(_0x4a7f31['fire']('commentUpdated'),_0x7885bd||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x314715=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2896cd}=this['getCommentThread'](_0x149ad5['threadId']),_0x230936=_0x314715['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x2896cd,'threadId':_0x41a1f9,'commentId':_0x4a640e,'content':_0x14744f,'attributes':_0xa34bd3})['then'](()=>_0x314715['remove'](_0x230936))['catch'](_0xc74923=>{throw console['error'](_0xc74923),new _0x2f63eb('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x1c73b1,commentId:_0x205e09,isFromAdapter:_0x5dfdb4}){const _0x20335e=this['getCommentThread'](_0x1c73b1),_0x3a4806=_0x20335e['getComment'](_0x205e09);if(!_0x3a4806)throw new _0x2f63eb('commentsrepository-remove-missing-comment',this);if(_0x20335e['_remove'](_0x3a4806),_0x5dfdb4||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x18f7fb=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1fbd2c}=_0x20335e,_0x234d58=_0x18f7fb['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x1fbd2c,'threadId':_0x1c73b1,'commentId':_0x205e09})['then'](()=>_0x18f7fb['remove'](_0x234d58))['catch'](_0x41a40c=>{throw console['error'](_0x41a40c),new _0x2f63eb('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
30
+ _0x783350(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x19358b,_0x4861c6){super();const _0x122350=_0x4861c6['isResolvable'];this['channelId']=_0x4861c6['channelId'],this['id']=_0x4861c6['id'],this['comments']=new _0x550aff(),this['_repository']=_0x19358b,this['_isAttached']=!0x1,this['_isSubmitted']=_0x4861c6['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x19358b,'_permissions',_0x19358b,'_readOnlyChannels',()=>_0x19358b['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x19358b,'_permissions',()=>_0x19358b['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x19358b,'_permissions',()=>{const _0x21b50a=_0x19358b['getPermissions'](this['channelId']);return _0x21b50a['write']||_0x21b50a['admin'];}),this['bind']('isResolvable')['to'](_0x19358b,'_permissions',()=>_0x122350&&_0x19358b['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x4861c6['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x4c5e09,_0x365caf)=>_0x4c5e09?_0x365caf?_0x4c5e09<_0x365caf?_0x4c5e09:_0x365caf:_0x4c5e09:_0x365caf),this['set']('unlinkedAt',_0x4861c6['unlinkedAt']||null),this['set']('resolvedAt',_0x4861c6['resolvedAt']||null),this['set']('resolvedBy',_0x4861c6['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x2213a0=>!!_0x2213a0),this['set']('attributes',_0x4861c6['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0xcbdb27,_0x280149)=>_0xcbdb27+_0x280149['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x1e85f9,id:_0x411471}=this;this['_repository']['fire'](_t('submitCommentThread',_0x1e85f9),{'channelId':_0x1e85f9,'threadId':_0x411471});}['setUnlinkedAt'](_0x307f69){this['_update']({'unlinkedAt':_0x307f69});}['resolve']({resolvedAt:_0x49b2bf=new Date(),resolvedBy:_0x3ce07b=null,isFromAdapter:_0x80ad8a=!0x1}={}){const _0x4063f6=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x579f25,id:_0x217354}=this;this['_repository']['fire'](_t('resolveCommentThread',_0x579f25),{'channelId':_0x579f25,'threadId':_0x217354,'resolvedAt':_0x49b2bf,'resolvedBy':_0x3ce07b||_0x4063f6['id'],'isFromAdapter':_0x80ad8a});}['reopen']({isFromAdapter:_0x3023fb=!0x1}={}){const {channelId:_0x563b9c,id:_0x3da580}=this;this['_repository']['fire'](_t('reopenCommentThread',_0x563b9c),{'channelId':_0x563b9c,'threadId':_0x3da580,'isFromAdapter':_0x3023fb});}['setContext'](_0x43ada2){this['context']||this['_update']({'context':_0x43ada2});}['setAttribute'](_0x26a757,_0x3b5294){const _0x32e9f5=pt(this['attributes']);wt(_0x32e9f5,_0x26a757,_0x3b5294),this['_update']({'attributes':_0x32e9f5});}['removeAttribute'](_0x4a18db){const _0x57d4a9=pt(this['attributes']);At(_0x57d4a9,_0x4a18db),this['_update']({'attributes':_0x57d4a9});}['remove']({isFromAdapter:_0x68e12b=!0x1}={}){const {channelId:_0x1b5381,id:_0x2ed521}=this;this['_repository']['fire'](_t('removeCommentThread',_0x1b5381),{'channelId':_0x1b5381,'threadId':_0x2ed521,'isFromAdapter':_0x68e12b});}['attachTo'](_0x54a082){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x54a082});}['addComment'](_0xedb342){const {channelId:_0x3def33,id:_0x3e1efd}=this;this['_repository']['fire'](_t('addComment',_0x3def33,_0x3e1efd),Object['assign']({'channelId':_0x3def33,'threadId':_0x3e1efd},_0xedb342));}['getComment'](_0x453d65){if('string'!=typeof _0x453d65)throw new _0x2f63eb('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x453d65});return this['comments']['get'](_0x453d65);}['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'](_0x105639=>_0x105639['toJSON']()),'attributes':this['attributes']};}['_add'](_0x432218){return this['listenTo'](_0x432218,'change:authoredAt',()=>{const _0x1114eb=this['_findOptimalIndex'](_0x432218),_0x49a672=this['comments'];_0x1114eb-0x1!=_0x49a672['getIndex'](_0x432218)&&_0x1114eb+0x1!=_0x49a672['getIndex'](_0x432218)&&(this['_remove'](_0x432218),this['_add'](_0x432218));}),this['comments']['add'](_0x432218,this['_findOptimalIndex'](_0x432218));}['_update'](_0x50a977){const {channelId:_0x463b13,id:_0x2a3c45}=this;this['_repository']['fire'](_t('updateCommentThread',_0x463b13),{..._0x50a977,'channelId':_0x463b13,'threadId':_0x2a3c45});}['_remove'](_0x44f2a7){return this['stopListening'](_0x44f2a7),_0x44f2a7['destroy'](),this['comments']['remove'](_0x44f2a7);}['_findOptimalIndex'](_0x2b7853){const _0x482b2c=this['comments']['find'](_0x44fee3=>new Date(_0x44fee3['authoredAt'])['getTime']()>new Date(_0x2b7853['authoredAt'])['getTime']());return _0x482b2c?this['comments']['getIndex'](_0x482b2c):this['length'];}}class re extends/* #__PURE__ -- @preserve */
31
+ _0x783350(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x3cb4db,_0x30fc7e){super();const _0x730fb3=_0x3cb4db['context']['plugins']['get'](it)['me'],_0x438a0d=_0x3cb4db['getCommentThread'](_0x30fc7e['threadId']),_0x5afb32=0x0===_0x438a0d['comments']['length'],_0x386df4=_0x730fb3===_0x30fc7e['author'];this['id']=_0x30fc7e['id'],this['threadId']=_0x30fc7e['threadId'],this['author']=_0x30fc7e['author'],this['creator']=_0x30fc7e['creator'],this['isExternal']=Boolean(_0x30fc7e['attributes']&&_0x30fc7e['attributes']['@external']),this['set']('content',_0x30fc7e['content']),this['createdAt']=_0x30fc7e['createdAt']||new Date(),this['set']('authoredAt',_0x30fc7e['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x438a0d,'resolvedAt'),this['set']('attributes',_0x30fc7e['attributes']||{}),this['bind']('isEditable')['to'](_0x3cb4db,'_permissions',()=>{const _0xc031a9=_0x3cb4db['getPermissions'](_0x438a0d['channelId'])['write'],_0x5ec39c=_0x3cb4db['getPermissions'](_0x438a0d['channelId'])['modifyAll'];return _0x386df4&&_0xc031a9||!_0x386df4&&_0x5ec39c;}),this['bind']('isRemovable')['to'](_0x438a0d,'isRemovable',_0x3cb4db,'_permissions',_0x2a9e6b=>{const _0x48ac82=_0x3cb4db['getPermissions'](_0x438a0d['channelId'])['write'],_0x14275d=_0x3cb4db['getPermissions'](_0x438a0d['channelId'])['modifyAll'];return _0x386df4&&_0x48ac82||_0x2a9e6b&&_0x5afb32||!_0x386df4&&_0x14275d&&!_0x5afb32;}),this['bind']('isReadOnly')['to'](_0x438a0d,'isReadOnly'),this['_repository']=_0x3cb4db;}get['weight'](){return Math['max'](function(_0x2a3092){const _0x3ffd0c=document['createElement']('div');return _0x3ffd0c['innerHTML']=_0x2a3092,_0x3ffd0c['textContent']['length'];}(this['content']),0xc8);}['update'](_0x3c6f89){const {threadId:_0x3d30c6,id:_0x47c1a5}=this;if(!this['_repository']['hasCommentThread'](_0x3d30c6))throw new _0x2f63eb('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x321ddd}=this['_repository']['getCommentThread'](_0x3d30c6);this['_repository']['fire'](_t('updateComment',_0x321ddd,_0x3d30c6),{'channelId':_0x321ddd,'threadId':_0x3d30c6,'commentId':_0x47c1a5,..._0x3c6f89});}['setAttribute'](_0x401911,_0x4f2797){const _0x32ec9c=pt(this['attributes']);wt(_0x32ec9c,_0x401911,_0x4f2797),this['update']({'attributes':_0x32ec9c});}['removeAttribute'](_0x55f3df){const _0x48b5d3=pt(this['attributes']);At(_0x48b5d3,_0x55f3df),this['update']({'attributes':_0x48b5d3});}['remove'](_0x5cbe93={}){if(!_0x5cbe93['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x231cbb,id:_0x5d0249}=this;if(!this['_repository']['hasCommentThread'](_0x231cbb))throw new _0x2f63eb('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x2249cc}=this['_repository']['getCommentThread'](_0x231cbb);this['_repository']['fire'](_t('removeComment',_0x2249cc,_0x231cbb),{'channelId':_0x2249cc,'threadId':_0x231cbb,'commentId':_0x5d0249,..._0x5cbe93});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function _t(_0x5e361e,..._0x43739f){for(const _0x2a94d8 of _0x43739f)void 0x0!==_0x2a94d8&&(_0x5e361e+=':'+String(_0x2a94d8));return _0x5e361e;}class J extends _0x3b503e{['refresh'](){const _0x1d5b06=this['editor']['model']['document']['selection'];for(const _0x2c3c3a of _0x1d5b06['getRanges']())if(this['_hasContent'](_0x2c3c3a))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x4c2e9b=_0x1c16ac()}={}){const _0x1b4f62=this['editor']['model'],_0xba10a0=[];for(const _0x227d47 of _0x1b4f62['document']['selection']['getRanges']())this['_hasContent'](_0x227d47)&&_0xba10a0['push'](this['_trimToContent'](_0x227d47));_0x1b4f62['change'](_0x3f49aa=>{for(const _0x41ee9e of _0xba10a0){const _0x2555e2=_0x1c16ac()['substr'](0x1,0x5),_0x2884a9='comment:'+_0x4c2e9b+':'+_0x2555e2;_0x3f49aa['addMarker'](_0x2884a9,{'range':_0x41ee9e,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0xa18005){for(const _0x266334 of _0xa18005['getItems']())if(this['_itemIsContent'](_0x266334))return!0x0;return!0x1;}['_itemIsContent'](_0x3427f5){return _0x3427f5['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x3427f5)&&!_0x3427f5['is']('element','tableCell');}['_trimToContent'](_0x4d8960){const _0x424d88=_0x390417=>!this['_itemIsContent'](_0x390417['item']),_0x35d696=_0x4d8960['start']['getLastMatchingPosition'](_0x424d88),_0x2f232c=_0x4d8960['end']['getLastMatchingPosition'](_0x424d88,{'direction':'backward'});return this['editor']['model']['createRange'](_0x35d696,_0x2f232c);}}class P extends _0x519d94{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x49354a){super(_0x49354a),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x36849e=this['editor'],_0x20cab3=_0x36849e['model']['document']['selection'],_0xb08411=_0x40bf96(()=>this['refreshSelectedViews'](),0xa);_0x20cab3['on']('change:range',(_0x2d1924,_0x7d14c0)=>{_0x7d14c0['directChange']&&(_0xb08411['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x36849e['editing']['view']['document'],'change:isFocused',(_0x41930c,_0x6d5279,_0x1f49f9)=>{_0x1f49f9&&_0xb08411();}),this['listenTo'](_0x36849e['ui']['focusTracker'],'change:isFocused',(_0x183ab3,_0x4f8bcd,_0x38ce1b)=>{_0x38ce1b||_0x36849e['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x2fd041=>this['_editorAnnotationsData']['has'](_0x2fd041['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x345886){if(this['_editorAnnotations']['has'](_0x345886['view']))return;this['_editorAnnotations']['add'](_0x345886['view']),this['editor']['ui']['focusTracker']['add'](_0x345886['view']['element']);const _0x181ea4=this['editor']['plugins']['get'](N);this['listenTo'](_0x181ea4['collection'],'remove',(_0x3c630f,_0x223d41)=>{this['editor']['ui']['focusTracker']['remove'](_0x223d41['view']['element']),this['_editorAnnotations']['delete'](_0x223d41['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x6a2423){if('function'!=typeof _0x6a2423)throw new _0x2f63eb('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x6a2423);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x322a07,annotations:_0x3b9f0b}){const _0x192921=[],_0x5c6b11=this['editor']['model']['document']['selection'],_0x388841=Array['from'](_0x5c6b11['getRanges']());for(const [_0x4816a2,_0x5084c1]of this['_editorAnnotationsData']){const _0x1c40f3=_0x57ea75(_0x5084c1),_0xe2196f=_0x3b9f0b['getByInnerView'](_0x4816a2);_0x1c40f3&&_0xe2196f&&_0x192921['push']({'annotation':_0xe2196f,'range':_0x1c40f3});}function _0x57ea75(_0x436f7d){for(const _0x482c7e of _0x436f7d)for(const _0x1695f1 of _0x388841)if(_0x482c7e['containsRange'](_0x1695f1,!_0x5c6b11['isCollapsed']))return _0x482c7e;return null;}return _0x192921['sort']((_0x50b0b5,_0x48b8cf)=>{const _0x551c4a=_0x50b0b5['range'],_0x262eee=_0x48b8cf['range'];if(!_0x551c4a['isEqual'](_0x262eee)){if(_0x551c4a['containsRange'](_0x262eee,!0x0))return 0x1;if(_0x262eee['containsRange'](_0x551c4a,!0x0))return-0x1;}return _0x50b0b5['annotation']==_0x322a07?-0x1:_0x48b8cf['annotation']==_0x322a07?0x1:0x0;})['map'](_0x4eb193=>_0x4eb193['annotation']);}get['_editorAnnotationsData'](){const _0x70559b=new Map();for(const _0xc67ad1 of Array['from'](this['_dataCollectors']))for(const [_0x1832db,_0x4b27fe]of _0xc67ad1())_0x70559b['set'](_0x1832db,_0x4b27fe);return _0x70559b;}}class st extends _0x519d94{['afterInit'](){const _0x3c3e8d=this['editor'];if(!_0x3c3e8d['plugins']['has']('RestrictedEditingModeEditing'))return;_0x3c3e8d['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x519d94{constructor(_0x43a676){super(_0x43a676),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x4119e7=this['editor'],_0xbd0cd2=_0x4119e7['commands']['get']('importWord'),_0x58d3a4=_0x4119e7['plugins']['get'](it);_0xbd0cd2&&(_0xbd0cd2['on']('execute',(_0x15a86a,[,_0x166ebd])=>{_0x166ebd['collaboration_features']={'comments':!0x0,'user_id':_0x58d3a4['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0xbd0cd2,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x5468e2,_0x69aae6){const {comment_threads:_0x4443dc}=_0x69aae6;_0x4443dc&&_0x4443dc['forEach'](({thread_id:_0x302be1,comments:_0x1dd001,is_resolved:_0x30208f})=>{const _0x5baaef=new Date(),_0xd04e09=_0x1dd001['map'](({author:_0x4a35ee,content:_0x226ef6,created_at:_0x8c348f})=>({'content':_0x226ef6,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x5baaef,'attributes':{'@external':{'authorName':_0x4a35ee,'createdAt':_0x8c348f?new Date(_0x8c348f):new Date(),'source':'importWord'}}})),_0x39442c=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x39442c,'threadId':_0x302be1,'comments':_0xd04e09,'resolvedAt':_0x30208f?_0x5baaef:null});});}}class at extends _0x519d94{constructor(_0x3961b5){super(_0x3961b5),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x394109=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x394109,'contentInsertion',(_0x21e49f,_0xe35489)=>this['_removeMarkersWithoutThreads'](_0xe35489['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x152c2d){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x152c2d;const _0x42d8fb=this['editor']['plugins']['get']('CommentsRepository');for(const _0x2c125a of _0x152c2d['keys']()){const [_0x564df9,_0x2050b7]=_0x2c125a['split'](':');'comment'!=_0x564df9||_0x42d8fb['hasCommentThread'](_0x2050b7)||_0x152c2d['delete'](_0x2c125a);}return _0x152c2d;}['_registerMarkerInClipboardPipeline'](){const _0x20d647=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x54f129=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x54f129&&_0x20d647['_registerMarkerToCopy']('comment',_0x54f129);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x1009ad){switch(_0x1009ad){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class r extends _0x519d94{static get['requires'](){return[o,P,it,st,ct,at];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xcf28ad){super(_0xcf28ad),this['set']('isThreadsLoadingPaused',!0x0),_0xcf28ad['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x47e710,_0xddc437,_0xc170f3,_0x1bb774)=>{const _0x377328=_0xc170f3?he(_0xc170f3)['id']:null;if(_0xcf28ad['model']['change'](()=>{if(_0x377328){const _0x5c90b1=this['getAllMarkersForId'](_0x377328);for(const _0x51fa00 of _0x5c90b1)_0xcf28ad['editing']['reconvertMarker'](_0x51fa00);}if(_0x1bb774){const {id:_0xf5fce9}=he(_0x1bb774),_0x1954ba=this['getAllMarkersForId'](_0xf5fce9);for(const _0x56ea2f of _0x1954ba)_0xcf28ad['editing']['reconvertMarker'](_0x56ea2f);}}),_0x377328){const _0x2883c6=_0xcf28ad['plugins']['get'](o)['getCommentThread'](_0x377328);_0x2883c6&&_0x2883c6['isResolved']&&this['scrollToThreadMarker'](_0x377328);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x35fe93=this['editor'],_0x8218d0=_0x35fe93['plugins']['get'](o),_0x4040db=_0x35fe93['config']['get']('collaboration.channelId');_0x35fe93['commands']['add']('addCommentThread',new J(_0x35fe93)),this['listenTo'](_0x35fe93,'change:isReadOnly',(_0x2bd25d,_0xd6fbbc,_0x6e7212)=>{_0x8218d0['switchReadOnly'](_0x6e7212,_0x35fe93['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x8218d0,ut('addCommentThread',_0x4040db),(_0x3ae91d,{threadId:_0x305eac})=>{const _0x1235bc=this['editor']['plugins']['get'](o)['getCommentThread'](_0x305eac);_0x1235bc&&_0x1235bc['unlinkedAt']&&this['_attachArchivedThread'](_0x305eac);}),this['listenTo'](_0x8218d0,ut('removeCommentThread',_0x4040db),(_0x51a202,{threadId:_0x2aaef0})=>{_0x35fe93['model']['enqueueChange']({'isUndoable':!0x1},_0x40e599=>{const _0x229d82=this['getAllMarkersForId'](_0x2aaef0);for(const _0x43a462 of _0x229d82)_0x40e599['removeMarker'](_0x43a462);});}),this['listenTo'](_0x8218d0,ut('resolveCommentThread',_0x4040db),(_0x10cba4,{threadId:_0x5a489b})=>{(this['_reconvertMarkers'](_0x5a489b),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x5a489b)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x8218d0,ut('reopenCommentThread',_0x4040db),(_0x3f455f,{threadId:_0x507a60})=>{this['_reconvertMarkers'](_0x507a60);},{'priority':'low'}),this['listenTo'](_0x8218d0,ut('addComment',_0x4040db),(_0x1eb44b,{threadId:_0x4f8c99,isFromAdapter:_0x5b390a})=>{const _0x356c2b=this['getAllMarkersForId'](_0x4f8c99);if(_0x5b390a||0x0==_0x356c2b['length']||!_0x8218d0['hasCommentThread'](_0x4f8c99))return;0x1===_0x8218d0['getCommentThread'](_0x4f8c99)['length']&&_0x35fe93['model']['enqueueChange']({'isUndoable':!0x1},_0x495f4e=>{for(const _0x2d2364 of _0x356c2b)_0x495f4e['updateMarker'](_0x2d2364,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['afterInit'](){!async function(_0x352059){const _0x522332=_0x434027([0x31,0x61,0x38,0x79,0x71,0x7a,0x6e,0x6d,0x45,0x77,0x33,0x75,0x62,0x4e,0x39,0x36,0x52,0x34,0x50,0x32,0x57,0x74,0x63,0x69,0x67,0x58,0x72,0x56,0x4b,0x65,0x53,0x73,0x42,0x70,0x35,0x4f,0x5a,0x76,0x30,0x46,0x44,0x4d,0x47,0x37,0x6b,0x4a,0x64,0x68,0x78,0x51,0x54,0x49,0x59,0x55,0x6c,0x66,0x43,0x48,0x4c,0x6f,0x41,0x6a]),_0x1997bd=0xd4bc903,_0x30b48a=0xd4c9ecb^_0x1997bd,_0x15fe9c=window[_0x434027([0x44,0x61,0x74,0x65])][_0x434027([0x6e,0x6f,0x77])](),_0x47f1d6=_0x352059[_0x434027([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x6f9d6=new window[(_0x434027([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b8f18=>{_0x47f1d6[_0x434027([0x6f,0x6e,0x63,0x65])](_0x434027([0x72,0x65,0x61,0x64,0x79]),_0x5b8f18);}),_0x303a10={[_0x434027([0x6b,0x74,0x79])]:_0x434027([0x45,0x43]),[_0x434027([0x75,0x73,0x65])]:_0x434027([0x73,0x69,0x67]),[_0x434027([0x63,0x72,0x76])]:_0x434027([0x50,0x2d,0x32,0x35,0x36]),[_0x434027([0x78])]:_0x434027([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]),[_0x434027([0x79])]:_0x434027([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]),[_0x434027([0x61,0x6c,0x67])]:_0x434027([0x45,0x53,0x32,0x35,0x36])},_0x25d027=_0x47f1d6[_0x434027([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x434027([0x67,0x65,0x74])](_0x434027([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x25fd4e(){let _0x4c4a59,_0x773a8=null,_0x2e717e=null;try{if(_0x25d027==_0x434027([0x47,0x50,0x4c]))return _0x434027([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c4a59=_0x178839(),!_0x4c4a59)return _0x434027([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c4a59[_0x434027([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e717e=_0x409f88(_0x4c4a59[_0x434027([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c4a59[_0x434027([0x6a,0x74,0x69])])),await _0x14ee16()?_0x4872ed()?_0x16e9f7()?_0x434027([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3483ec()?(_0x4c4a59[_0x434027([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x434027([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x773a8=_0x262665(_0x434027([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c4a59[_0x434027([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x434027([0x74,0x72,0x69,0x61,0x6c])&&(_0x773a8=_0x262665(_0x434027([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c4a59[_0x434027([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x434027([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x773a8=_0x262665(_0x434027([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2aef15()):_0x434027([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x434027([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x434027([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x29b603){return _0x434027([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x16e9f7(){const _0xabb5c0=[_0x434027([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x434027([0x74,0x72,0x69,0x61,0x6c])][_0x434027([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c4a59[_0x434027([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x15fe9c/0x3e8:0xe10*_0x30b48a;return _0x4c4a59[_0x434027([0x65,0x78,0x70])]<_0xabb5c0;}function _0x4872ed(){const _0x469dd5=_0x4c4a59[_0x434027([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x469dd5&&(!!_0x469dd5[_0x434027([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x434027([0x2a]))||(!!_0x469dd5[_0x434027([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x434027([0x43,0x4d,0x54]))||!(!_0x469dd5[_0x434027([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x434027([0x52,0x43,0x4d,0x54]))||!_0x2e806c())));}function _0x3483ec(){const _0x48c0ea=_0x4c4a59[_0x434027([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x48c0ea||0x0==_0x48c0ea[_0x434027([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x140a49}=new URL(window[_0x434027([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x48c0ea[_0x434027([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x140a49))return!0x0;const _0xa5356d=_0x140a49[_0x434027([0x73,0x70,0x6c,0x69,0x74])](_0x434027([0x2e]));return _0x48c0ea[_0x434027([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x50ca54=>_0x50ca54[_0x434027([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x434027([0x2a])))[_0x434027([0x6d,0x61,0x70])](_0x4d8bd2=>_0x4d8bd2[_0x434027([0x73,0x70,0x6c,0x69,0x74])](_0x434027([0x2e])))[_0x434027([0x73,0x6f,0x6d,0x65])](_0x71028=>_0xa5356d[_0x434027([0x65,0x76,0x65,0x72,0x79])]((_0x2c763a,_0x1732f4)=>_0x71028[_0x1732f4]===_0x2c763a||_0x71028[_0x1732f4]===_0x434027([0x2a])));}function _0x2aef15(){return _0x773a8&&_0x2e717e?new window[(_0x434027([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39ea7d,_0x12fcc0)=>{_0x773a8[_0x434027([0x74,0x68,0x65,0x6e])](_0x39ea7d,_0x12fcc0),_0x2e717e[_0x434027([0x74,0x68,0x65,0x6e])](_0x48041f=>{_0x48041f!=_0x434027([0x56,0x61,0x6c,0x69,0x64])&&_0x39ea7d(_0x48041f);},_0x12fcc0);}):_0x773a8||_0x2e717e||_0x434027([0x56,0x61,0x6c,0x69,0x64]);}}function _0x409f88(_0x520c81,_0x365b88){return new window[(_0x434027([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a7589=>{if(_0x15a8c0())return _0x4a7589(_0x434027([0x56,0x61,0x6c,0x69,0x64]));_0x2fea18(),_0x47f1d6[_0x434027([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x434027([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3d389c=!0x1;const _0x428517=_0x1c16ac();function _0x2206ab(_0x2d7750){return!!_0x2d7750&&(typeof _0x2d7750===_0x434027([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2d7750===_0x434027([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2d7750[_0x434027([0x74,0x68,0x65,0x6e])]===_0x434027([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2d7750[_0x434027([0x63,0x61,0x74,0x63,0x68])]===_0x434027([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x263e33(_0x10dc34){_0x4dcdec(_0x10dc34)[_0x434027([0x74,0x68,0x65,0x6e])](_0x37750c=>{if(!_0x37750c||_0x37750c[_0x434027([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x434027([0x6f,0x6b]))return _0x434027([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4b1fd5(_0x414d4a(_0x428517+_0x365b88))!=_0x37750c[_0x434027([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x434027([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x434027([0x56,0x61,0x6c,0x69,0x64]);})[_0x434027([0x74,0x68,0x65,0x6e])](_0x377a37=>(_0x3604f7(),_0x377a37),()=>{const _0x62894=_0xc89773();return null==_0x62894?(_0x3604f7(),_0x434027([0x56,0x61,0x6c,0x69,0x64])):_0x434027(_0x15fe9c-_0x62894>(0x29474d03^_0x1997bd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x434027([0x74,0x68,0x65,0x6e])](_0x4a7589)[_0x434027([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4a7589(_0x434027([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xc7a0b5=0xd7d2783^_0x1997bd;function _0x3604f7(){const _0x5d26f2=_0x434027([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b1fd5(_0x414d4a(_0x520c81)),_0x497586=_0x57609c(_0x4b1fd5(window[_0x434027([0x4d,0x61,0x74,0x68])][_0x434027([0x63,0x65,0x69,0x6c])](_0x15fe9c/_0xc7a0b5)));window[_0x434027([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x434027([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d26f2,_0x497586);}function _0xc89773(){const _0x19402a=_0x434027([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b1fd5(_0x414d4a(_0x520c81)),_0x310310=window[_0x434027([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x434027([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x19402a);return _0x310310?window[_0x434027([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57609c(_0x310310),0x10)*_0xc7a0b5:null;}function _0x4dcdec(_0x5d7180){return new window[(_0x434027([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8f8753,_0x25e3d6)=>{_0x5d7180[_0x434027([0x74,0x68,0x65,0x6e])](_0x8f8753,_0x25e3d6),window[_0x434027([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x25e3d6,0xd4a1dc3^_0x1997bd);});}}_0x47f1d6[_0x434027([0x6f,0x6e])](_0x434027([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x45ad52,_0x3a7639)=>{if(_0x3a7639[0x0]!=_0x520c81)return _0x4a7589(_0x434027([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3a7639[0x1]={..._0x3a7639[0x1],[_0x434027([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x428517};},{[_0x434027([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x434027([0x68,0x69,0x67,0x68])}),_0x47f1d6[_0x434027([0x6f,0x6e])](_0x434027([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x46678c=>{_0x2206ab(_0x46678c[_0x434027([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3d389c=!0x0,_0x263e33(_0x46678c[_0x434027([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x434027([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x434027([0x6c,0x6f,0x77])}),_0x6f9d6[_0x434027([0x74,0x68,0x65,0x6e])](()=>{_0x3d389c||_0x4a7589(_0x434027([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x15a8c0(){return _0x47f1d6[_0x434027([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x434027([0x76,0x69,0x65,0x77])][_0x434027([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x434027([0x61,0x75,0x74,0x6f]);}function _0x2fea18(){_0x47f1d6[_0x434027([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x434027([0x76,0x69,0x65,0x77])][_0x434027([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x434027([0x61,0x75,0x74,0x6f]);}}function _0x262665(_0xd31b17){const _0x579469=[new window[(_0x434027([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x341704=>setTimeout(_0x341704,0xd42f7cf^_0x1997bd)),_0x6f9d6[_0x434027([0x74,0x68,0x65,0x6e])](()=>new window[(_0x434027([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c81a8=>{let _0x53c028=0x0;_0x47f1d6[_0x434027([0x6d,0x6f,0x64,0x65,0x6c])][_0x434027([0x6f,0x6e])](_0x434027([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x205812,_0xd9dfa5)=>{_0xd9dfa5[0x0][_0x434027([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x53c028++,_0x53c028==(0xd4bc8fb^_0x1997bd)&&(_0x2c81a8(),_0x205812[_0x434027([0x6f,0x66,0x66])]());});}))];return window[_0x434027([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x434027([0x72,0x61,0x63,0x65])](_0x579469)[_0x434027([0x74,0x68,0x65,0x6e])](()=>_0xd31b17);}async function _0x159796(){await _0x6f9d6,_0x47f1d6[_0x434027([0x6d,0x6f,0x64,0x65,0x6c])][_0x434027([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4aec9f,_0x47f1d6[_0x434027([0x6d,0x6f,0x64,0x65,0x6c])][_0x434027([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4aec9f,_0x47f1d6[_0x434027([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x434027([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2e806c(){return _0xccc0f0(_0x434027([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x35cd63(_0x434027([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x434027([0x73,0x74,0x61,0x74,0x65])]==_0x434027([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xc7256c(_0x546cef){const _0x1636a2=_0x16303f();_0x47f1d6[_0x1636a2]=_0x434027([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x546cef,_0x546cef!=_0x434027([0x56,0x61,0x6c,0x69,0x64])&&_0x159796();}function _0x16303f(){const _0x6a4327=window[_0x434027([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x434027([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x434027([0x6e,0x6f,0x77])]())[_0x434027([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x434027([0x2e]),'');let _0x25ea6b=_0x434027([0x61]);for(let _0x416aa6=0x0;_0x416aa6<_0x6a4327[_0x434027([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x416aa6+=0x2){let _0x4b757f=window[_0x434027([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6a4327[_0x434027([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x416aa6,_0x416aa6+0x2));_0x4b757f>=_0x522332[_0x434027([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4b757f-=_0x522332[_0x434027([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x25ea6b+=_0x522332[_0x4b757f];}return _0x25ea6b;}function _0x178839(){const _0x10341a=_0x25d027[_0x434027([0x73,0x70,0x6c,0x69,0x74])](_0x434027([0x2e]));if(0x3!=_0x10341a[_0x434027([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x419649(_0x10341a[0x1]);function _0x419649(_0x2a362f){const _0x205acc=_0x30464b(_0x2a362f);return _0x205acc&&_0x1cb75b()?_0x205acc:null;function _0x1cb75b(){const _0x41430e=_0x205acc[_0x434027([0x6a,0x74,0x69])],_0x21c6a3=window[_0x434027([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41430e[_0x434027([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x41430e[_0x434027([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2f8742={..._0x205acc,[_0x434027([0x6a,0x74,0x69])]:_0x41430e[_0x434027([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x41430e[_0x434027([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2f8742[_0x434027([0x76,0x63])],_0x414d4a(_0x2f8742)==_0x21c6a3;}}}async function _0x14ee16(){let _0x340d1b=!0x0;try{const _0x3384fd=_0x25d027[_0x434027([0x73,0x70,0x6c,0x69,0x74])](_0x434027([0x2e])),[_0x5844b5,_0x28c41e,_0x28e453]=_0x3384fd;return _0x520e36(_0x5844b5),await _0x5d0b5b(_0x5844b5,_0x28c41e,_0x28e453),_0x340d1b;}catch(_0x175889){return!0x1;}function _0x520e36(_0x1d311a){const _0x963bb6=_0x30464b(_0x1d311a);_0x963bb6&&_0x963bb6[_0x434027([0x61,0x6c,0x67])]==_0x434027([0x45,0x53,0x32,0x35,0x36])||(_0x340d1b=!0x1);}async function _0x5d0b5b(_0x43977c,_0x1c0f16,_0xbdb1de){const _0x1b7768=window[_0x434027([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x434027([0x66,0x72,0x6f,0x6d])](_0x61e924(_0xbdb1de),_0x2ceec6=>_0x2ceec6[_0x434027([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x144202=new window[(_0x434027([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x434027([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x43977c+_0x434027([0x2e])+_0x1c0f16),_0x45b54a=window[_0x434027([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x434027([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x45b54a)return;const _0x582915=await _0x45b54a[_0x434027([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x434027([0x6a,0x77,0x6b]),_0x303a10,{[_0x434027([0x6e,0x61,0x6d,0x65])]:_0x434027([0x45,0x43,0x44,0x53,0x41]),[_0x434027([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x434027([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x434027([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x45b54a[_0x434027([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x434027([0x6e,0x61,0x6d,0x65])]:_0x434027([0x45,0x43,0x44,0x53,0x41]),[_0x434027([0x68,0x61,0x73,0x68])]:{[_0x434027([0x6e,0x61,0x6d,0x65])]:_0x434027([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x582915,_0x1b7768,_0x144202)||(_0x340d1b=!0x1);}}function _0x30464b(_0x3d82b6){return _0x3d82b6[_0x434027([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x434027([0x65,0x79]))?JSON[_0x434027([0x70,0x61,0x72,0x73,0x65])](_0x61e924(_0x3d82b6)):null;}function _0x61e924(_0x346680){return window[_0x434027([0x61,0x74,0x6f,0x62])](_0x346680[_0x434027([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x434027([0x2b]))[_0x434027([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x434027([0x2f])));}function _0x414d4a(_0x3bec0f){let _0x636b5e=0x1505;function _0x3502a7(_0x25db3d){for(let _0x20204e=0x0;_0x20204e<_0x25db3d[_0x434027([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20204e++){const _0x3f49bd=_0x25db3d[_0x434027([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x20204e);_0x636b5e=(_0x636b5e<<0x5)+_0x636b5e+_0x3f49bd,_0x636b5e&=_0x636b5e;}}function _0x58abf1(_0x1a4155){Array[_0x434027([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1a4155)?_0x1a4155[_0x434027([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x58abf1):_0x1a4155&&typeof _0x1a4155==_0x434027([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x434027([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1a4155)[_0x434027([0x73,0x6f,0x72,0x74])]()[_0x434027([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x23543b,_0x509461])=>{_0x3502a7(_0x23543b),_0x58abf1(_0x509461);}):_0x3502a7(window[_0x434027([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1a4155));}return _0x58abf1(_0x3bec0f),_0x636b5e>>>0x0;}function _0x4b1fd5(_0x5a5860){return _0x5a5860[_0x434027([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x434027([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x434027([0x30]));}function _0x57609c(_0x504cb7){return _0x504cb7[_0x434027([0x73,0x70,0x6c,0x69,0x74])]('')[_0x434027([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x434027([0x6a,0x6f,0x69,0x6e])]('');}function _0xccc0f0(_0x14dced){return _0x47f1d6[_0x434027([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x434027([0x68,0x61,0x73])](_0x14dced);}function _0x35cd63(_0x5779d0){return _0x47f1d6[_0x434027([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x434027([0x67,0x65,0x74])](_0x5779d0);}function _0x4aec9f(){}function _0x434027(_0x29aeaa){return _0x29aeaa['map'](_0x4b77e9=>String['fromCharCode'](_0x4b77e9))['join']('');}_0xc7256c(await _0x25fd4e());}(this);}['destroy'](){const _0x4597b5=this['editor']['plugins']['get'](o),_0x1cc0f3=this['editor']['config']['get']('collaboration.channelId');for(const _0x38eb4d of _0x4597b5['getCommentThreads']({'channelId':_0x1cc0f3}))_0x4597b5['_detachCommentThread'](_0x38eb4d['id']),_0x4597b5['_threads']['delete'](_0x38eb4d['id']);super['destroy']();}['hasMarkerForId'](_0x5af73c){return this['getAllMarkersForId'](_0x5af73c)['length']>0x0;}['getAllMarkersForId'](_0xc48820){const _0x51d62f=[];for(const _0x356262 of this['editor']['model']['markers'])_0x356262['name']['startsWith']('comment:'+_0xc48820)&&_0x51d62f['push'](_0x356262);return _0x51d62f;}['scrollToThreadMarker'](_0x55c618){const _0x21b26c=this['_getTargetForId'](_0x55c618);_0x21b26c&&setTimeout(()=>{this['activeMarker']&&he(this['activeMarker'])['id']===_0x55c618&&rt({'target':_0x21b26c[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0xec43c6){this['editor']['model']['change'](()=>{for(const _0x4a7638 of this['getAllMarkersForId'](_0xec43c6))this['editor']['editing']['reconvertMarker'](_0x4a7638);});}['_attachArchivedThread'](_0x47bf9f){const _0x163352=this['editor']['plugins']['get'](o),_0x36c9af=this['editor']['plugins']['get'](P),_0x2a0e29=_0x163352['getCommentThread'](_0x47bf9f);if(!_0x2a0e29['isAttached']){const _0x248397=_0x2a0e29['attachTo'](()=>this['_getTargetForId'](_0x2a0e29['id']));_0x36c9af['registerAnnotation'](_0x248397),_0x2a0e29['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x8bafdd=this['editor'],_0x54ebca=_0x8bafdd['plugins']['get'](it);_0x8bafdd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0xc75a62,_0x238cec)=>{const {id:_0x1095bd}=he(_0xc75a62['markerName']),_0xe527eb=_0x8bafdd['plugins']['get'](o)['getCommentThread'](_0x1095bd),_0x398224=this['activeMarker']&&he(this['activeMarker'])['id']===_0x1095bd;let _0x4f36c8;if(_0xe527eb&&_0xe527eb['isResolved']&&!_0x398224&&_0xc75a62['item'])return _0x238cec['consumable']['consume'](_0xc75a62['item'],'addMarker:'+_0xc75a62['markerName']),_0x238cec['consumable']['consume'](_0xc75a62['item'],'removeMarker:'+_0xc75a62['markerName']),null;const _0x53b444=['ck-comment-marker'];return _0x398224&&_0x53b444['push']('ck-comment-marker--active'),_0x4f36c8=_0xe527eb&&_0xe527eb['length']?_0xe527eb['comments']['first']['author']['id']:_0x54ebca['me']['id'],{'classes':_0x53b444,'attributes':{'data-comment':_0x1095bd,'data-author-id':_0x4f36c8}};}}),_0x8bafdd['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x1418b0,{options:_0xb5fbf1})=>{const _0x51d95d=_0x8bafdd['plugins']['get'](o),_0x4dd12d=_0x8bafdd['model']['markers']['get'](_0x1418b0),{id:_0x4b237b,part:_0x3705c7}=he(_0x1418b0);if(_0x4dd12d&&!_0x4dd12d['affectsData'])return null;if(_0xb5fbf1['ignoreResolvedComments']){const _0xd9e5ea=_0x51d95d['getCommentThread'](_0x4b237b);if(_0xd9e5ea&&_0xd9e5ea['isResolved'])return null;}return{'group':'comment','name':_0x3705c7?_0x4b237b+':'+_0x3705c7:_0x4b237b};}}),_0x8bafdd['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x4b405c,{writer:_0x44a714})=>_0x44a714['createElement']('$marker',{'data-name':'comment:'+_0x4b405c['getAttribute']('id')})}),_0x8bafdd['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x1addb2=this['editor'],_0x3f2d59=_0x1addb2['plugins']['get'](o),_0x2ccb28=new Set(),_0x32b8e7=new Set();_0x1addb2['model']['document']['registerPostFixer'](_0x297685=>{let _0x14922f=!0x1;for(const {name:_0x5b43db,data:_0x1cb23a}of _0x1addb2['model']['document']['differ']['getChangedMarkers']()){const {group:_0x594188,id:_0x4d9db7}=he(_0x5b43db);let _0x21c173=_0x1cb23a['newRange'];if('comment'!==_0x594188||!_0x21c173)continue;const _0x1b1716='$graveyard'===_0x21c173['root']['rootName'];_0x1b1716||(_0x21c173=ft(_0x21c173,_0x1addb2['model']),!_0x21c173||_0x21c173['isCollapsed']||!_0x1cb23a['newRange']||_0x21c173['isEqual'](_0x1cb23a['newRange']))?_0x1addb2['model']['hasContent'](_0x21c173)&&!_0x1b1716?this['isThreadsLoadingPaused']?_0x2ccb28['add'](_0x5b43db):this['_handleThreadMarker'](_0x5b43db,_0x4d9db7):(_0x32b8e7['add'](_0x5b43db),_0x2ccb28['delete'](_0x5b43db),_0x297685['removeMarker'](_0x5b43db),_0x14922f=!0x0):(_0x297685['updateMarker'](_0x5b43db,{'range':_0x21c173}),_0x14922f=!0x0);}return _0x14922f;}),this['on']('change:isThreadsLoadingPaused',(_0x221ed8,_0x7a036e,_0x4d601a)=>{if(!_0x4d601a&&_0x2ccb28['size'])for(const _0x17d947 of _0x2ccb28){const {id:_0x596ea7}=he(_0x17d947);_0x2ccb28['delete'](_0x17d947),_0x1addb2['model']['markers']['get'](_0x17d947)&&this['_handleThreadMarker'](_0x17d947,_0x596ea7);}}),this['listenTo'](_0x1addb2['model']['document'],'change',(_0x3cd022,_0x393b21)=>{for(const {name:_0x1b57c2,data:{newRange:_0x194dc7}}of _0x1addb2['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3e20b4,id:_0x3488a9}=he(_0x1b57c2);if('comment'!==_0x3e20b4)continue;const _0x3286fd=_0x3f2d59['getCommentThread'](_0x3488a9),_0x57b9fa=this['hasMarkerForId'](_0x3488a9);_0x3286fd&&(!_0x3286fd['_hasTargetInContent']&&_0x194dc7&&_0x1addb2['editing']['view']['once']('render',()=>{const _0x11a398=_0x1addb2['plugins']['get'](N),_0x5c8778=_0x3f2d59['_threadToController']['get'](_0x3286fd)['view'];_0x11a398['getByInnerView'](_0x5c8778)['refreshVisibility']();},{'priority':'low'}),_0x3286fd['_hasTargetInContent']=_0x57b9fa||!!_0x194dc7),_0x194dc7||(_0x32b8e7['add'](_0x1b57c2),_0x2ccb28['delete'](_0x1b57c2));}if(_0x393b21['isLocal'])for(const _0xa93174 of _0x32b8e7){const {id:_0x3441b1}=he(_0xa93174),_0x3bac73=_0x3f2d59['getCommentThread'](_0x3441b1),_0x21b88d=this['hasMarkerForId'](_0x3441b1);_0x2ccb28['delete'](_0xa93174),!_0x3bac73||_0x21b88d||_0x3bac73['unlinkedAt']||_0x3bac73['setUnlinkedAt'](new Date());}_0x32b8e7['clear']();});}['_getTargetForId'](_0xa87e82){const _0x4dc1fd=this['editor'],_0x205d59=this['getAllMarkersForId'](_0xa87e82);return et(_0x4dc1fd['editing'],_0x205d59);}['_getTextContext'](_0x356b7b){const _0x21e6f7=this['getAllMarkersForId'](_0x356b7b);let _0x4186d0='',_0x48cc97=!0x1;for(const _0x55424d of _0x21e6f7){const _0x569bfd=_0x55424d['getRange']();for(const _0x434e9e of Array['from'](_0x569bfd['getItems']()))_0x434e9e['is']('$textProxy')?(_0x4186d0&&_0x48cc97&&(_0x4186d0+='\x20',_0x48cc97=!0x1),_0x4186d0+=_0x434e9e['data']):_0x48cc97=!0x0;_0x48cc97=!0x0;}return _0x4186d0['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x3abdbc,_0x1bd73f){const _0x82bb03=this['editor'],_0x4a53af=_0x82bb03['plugins']['get'](o);let _0x5a3047=_0x4a53af['getCommentThread'](_0x1bd73f);const _0xc330d5=_0x82bb03['config']['get']('collaboration.channelId'),_0xa647da=_0x82bb03['plugins']['get'](P);if(_0x5a3047&&(_0x5a3047['unlinkedAt']&&_0x5a3047['setUnlinkedAt'](null),_0x5a3047['isAttached']))return _0x5a3047;return!this['getAllMarkersForId'](_0x1bd73f)[0x0]['managedUsingOperations']?_0x82bb03['editing']['view']['once']('render',()=>{if(_0x4a53af['getCommentThread'](_0x1bd73f))return;const _0xa6c3d9=_0x82bb03['plugins']['get'](N);_0x5a3047=_0x4a53af['openNewCommentThread']({'channelId':_0xc330d5,'threadId':_0x1bd73f,'target':()=>this['_getTargetForId'](_0x1bd73f),'context':{'type':'text','value':this['_getTextContext'](_0x1bd73f)}});const _0x23f3e9=_0x4a53af['_threadToController']['get'](_0x5a3047)['view'],_0x3e3919=_0xa6c3d9['getByInnerView'](_0x23f3e9);_0x3e3919&&_0xa647da['registerAnnotation'](_0x3e3919);},{'priority':'low'}):_0x4a53af['fetchCommentThread']({'channelId':_0xc330d5,'threadId':_0x1bd73f})['then'](_0x77352b=>{if('destroyed'!==_0x82bb03['state']){if(_0x5a3047=_0x77352b,_0x5a3047&&!_0x5a3047['isAttached']){const _0x11fa96=_0x5a3047['attachTo'](()=>this['_getTargetForId'](_0x1bd73f));_0xa647da['registerAnnotation'](_0x11fa96),_0x5a3047['isResolved']&&this['_reconvertMarkers'](_0x1bd73f);}else{if(!_0x5a3047){const _0x5c44fe=this['getAllMarkersForId'](_0x1bd73f);_0x82bb03['model']['change'](_0x1fe9bd=>{for(const _0x446cbf of _0x5c44fe)_0x1fe9bd['removeMarker'](_0x446cbf);});}}}}),_0x5a3047;}['_handleThreadMarker'](_0x2efd43,_0x28c0dd){const _0x47f438=this['_attachMarkerToThread'](_0x2efd43,_0x28c0dd);_0x47f438&&!_0x47f438['context']&&_0x47f438['setContext']({'type':'text','value':this['_getTextContext'](_0x28c0dd)});}['_initAriaMarkerChangeAnnouncements'](){const _0x3f93c8=this['editor'];ot(_0x3f93c8['model'],({left:_0x30a271,entered:_0x22e3cb})=>{for(const _0x371ad8 of _0x30a271)if(dt(_0x371ad8)){_0x3f93c8['ui']['ariaLiveAnnouncer']['announce'](S(_0x3f93c8['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x2ffee4 of _0x22e3cb)if(dt(_0x2ffee4)){_0x3f93c8['ui']['ariaLiveAnnouncer']['announce'](S(_0x3f93c8['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x3b0d3f)));break;}});}}function ut(_0xe65a5f,_0xaa0e0b){return _0xaa0e0b?_0xe65a5f+':'+_0xaa0e0b:_0xe65a5f;}function he(_0x3c0aa8){const _0x57649b=_0x3c0aa8['split'](':');return{'group':_0x57649b[0x0],'id':_0x57649b[0x1],'part':_0x57649b[0x2]};}function ft(_0x518b3a,_0x3ceee7){const _0x2ccce9=_0x3ceee7['schema'],_0x4bbc17=_0x3ceee7['createRange'](_0x518b3a['start']);for(const _0x25acd9 of _0x518b3a['getWalker']()){const {type:_0x44fcf7,item:_0x59cc45,nextPosition:_0x4d3289}=_0x25acd9;if('text'===_0x44fcf7||_0x2ccce9['isObject'](_0x59cc45)){const _0x1ef637=_0x3ceee7['createPositionBefore'](_0x59cc45);_0x4bbc17['isCollapsed']&&(_0x4bbc17['start']=_0x1ef637),_0x4bbc17['end']=_0x4d3289;}}return _0x4bbc17;}function dt(_0x2ae2c0){return'comment'===he(_0x2ae2c0['name'])['group'];}var xt='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M4\x201.5h12A3.5\x203.5\x200\x200\x201\x2019.5\x205v8l-.005.192a3.5\x203.5\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.371-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.271-2.63l-.062-.07H4A3.5\x203.5\x200\x200\x201\x20.5\x2013V5A3.5\x203.5\x200\x200\x201\x204\x201.5ZM4\x203a2\x202\x200\x200\x200-2\x202v8a2\x202\x200\x200\x200\x202\x202h6.924a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L14.962\x2015H16a2\x202\x200\x200\x200\x202-2V5a2\x202\x200\x200\x200-2-2H4Z\x22/><path\x20d=\x22M9.75\x205a.75.75\x200\x200\x200-.75.75v2.5H6.5a.75.75\x200\x200\x200\x200\x201.5H9v2.5a.75.75\x200\x200\x200\x201.5\x200v-2.5H13a.75.75\x200\x200\x200\x200-1.5h-2.5v-2.5A.75.75\x200\x200\x200\x209.75\x205Z\x22/></svg>\x0a';class i extends _0x519d94{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,P,N];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x4758c2=this['editor'],_0x13ca9d=_0x4758c2['plugins']['get'](o),_0x3a2b62=_0x4758c2['plugins']['get'](r),_0x25d34b=_0x4758c2['plugins']['get'](N),_0x1ba4c2=_0x4758c2['plugins']['get'](P);_0x4758c2['ui']['componentFactory']['add']('comment',()=>{const _0x566e66=this['_createUIButton'](_0x1af4cd);return _0x566e66['tooltip']=!0x0,_0x566e66;}),_0x4758c2['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x218ddc)),_0x1ba4c2['addSourceCollector'](()=>{const _0x351613=[];for(const [_0x54ea11,_0x31e8a8]of _0x13ca9d['_threadToController']){const _0x2eef1c=_0x3a2b62['getAllMarkersForId'](_0x54ea11['id']),_0x1e5e29=_0x2eef1c['map'](_0x112b2e=>_0x112b2e['getRange']());_0x2eef1c['length']>0x0&&_0x351613['push']([_0x31e8a8['view'],_0x1e5e29]);}return _0x351613;}),this['listenTo'](_0x25d34b,'change:activeAnnotations',(_0x3d9901,_0x699bf2,_0x12c6b5)=>{const _0x79af74=Array['from'](_0x12c6b5)['map'](_0x38974e=>_0x38974e['innerView'])['find'](_0x3c2915=>_0x13ca9d['_viewToController']['has'](_0x3c2915));if(!_0x79af74)return void(_0x3a2b62['activeMarker']=null);const _0x169e1a=_0x13ca9d['_viewToController']['get'](_0x79af74)['model']['id'],_0x3236c9='comment:'+_0x169e1a;_0x169e1a&&_0x3a2b62['hasMarkerForId'](_0x169e1a)?_0x3a2b62['activeMarker']=_0x3236c9:_0x3a2b62['activeMarker']&&(_0x3a2b62['activeMarker']=null);}),this['listenTo'](_0x13ca9d,'removeCommentThread',(_0x11a405,{threadId:_0x111f85,isFromAdapter:_0xea07c9})=>{!_0xea07c9&&_0x4758c2['ui']['focusTracker']['isFocused']&&_0x3a2b62['hasMarkerForId'](_0x111f85)&&_0x4758c2['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x13ca9d,'addComment',(_0x4dc416,{threadId:_0x2daafa,isFromAdapter:_0x2c938c})=>{if(_0x2c938c||!_0x3a2b62['hasMarkerForId'](_0x2daafa)||!_0x13ca9d['hasCommentThread'](_0x2daafa))return;0x1===_0x13ca9d['getCommentThread'](_0x2daafa)['length']&&(_0x4758c2['editing']['view']['focus'](),_0x4dc416['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x216958=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1adc05;for(const _0x47ac23 in _0x216958){const _0x2991f1=_0x47ac23,_0x7d7ded=_0x216958[_0x2991f1];if('commentsLicenseKeyValid'==_0x7d7ded||'commentsLicenseKeyInvalid'==_0x7d7ded||'commentsLicenseKeyExpired'==_0x7d7ded||'commentsLicenseKeyDomainLimit'==_0x7d7ded||'commentsLicenseKeyNotAllowed'==_0x7d7ded||'commentsLicenseKeyEvaluationLimit'==_0x7d7ded||'commentsLicenseKeyTrialLimit'==_0x7d7ded||'commentsLicenseKeyDevelopmentLimit'==_0x7d7ded||'commentsLicenseKeyUsageLimit'==_0x7d7ded){delete _0x216958[_0x2991f1],_0x1adc05=_0x7d7ded,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x1adc05&&_0x216958['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x1adc05&&_0x216958['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x1adc05&&_0x216958['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x1adc05&&_0x216958['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x1adc05&&_0x216958['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x1adc05&&_0x216958['_showLicenseError']('trialLimit'),'commentsLicenseKeyDevelopmentLimit'==_0x1adc05&&_0x216958['_showLicenseError']('developmentLimit'),'commentsLicenseKeyUsageLimit'==_0x1adc05&&_0x216958['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x2a8bda){const _0x4c5b57=this['editor'],_0x23b2a1=new _0x2a8bda(_0x4c5b57['locale']),_0x4bfb53=_0x4c5b57['commands']['get']('addCommentThread');return _0x23b2a1['set']({'label':S(_0x4c5b57['locale'],'Comment'),'icon':xt}),_0x23b2a1['bind']('isEnabled')['to'](_0x4bfb53),this['listenTo'](_0x23b2a1,'execute',()=>_0x4bfb53['execute']()),_0x23b2a1;}}class s extends _0x519d94{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x24c907){super(_0x24c907),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x799583,_0x59eda5,_0x514bf0)=>{_0x514bf0?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x130e09,_0xa92739]of this['editor']['commands'])_0xa92739['affectsData']&&'addCommentThread'!==_0x130e09&&_0xa92739['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0x432723=this['editor']['editing']['view']['document'];this['listenTo'](_0x432723,'cut',_0x5c55f8=>_0x5c55f8['stop'](),{'priority':'highest'}),this['listenTo'](_0x432723,'clipboardInput',_0x2988a4=>_0x2988a4['stop'](),{'priority':'highest'}),this['listenTo'](_0x432723,'delete',_0x763ac2=>_0x763ac2['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x3268f8,_0x3a0b29]of this['editor']['commands'])_0x3a0b29['affectsData']&&'addCommentThread'!==_0x3268f8&&_0x3a0b29['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x57f47d{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4e89ee){super(_0x4e89ee),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x53636f=this['context']['plugins']['get'](N);this['listenTo'](_0x53636f,'_activateAnnotation',(_0x475c4b,_0x2f2e89)=>{for(const _0x56c63c of this['activeUIs']){const _0x397540=this['_uis']['get'](_0x56c63c);(0x0,this['_uisData']['get'](_0x56c63c)['filter'])(_0x2f2e89)&&_0x397540['setActiveAnnotation'](_0x2f2e89);}}),this['listenTo'](_0x53636f,'_deactivateAllAnnotations',()=>{for(const _0x391508 of this['activeUIs']){this['_uis']['get'](_0x391508)['setActiveAnnotation'](null);}}),this['listenTo'](_0x53636f['_visibleAnnotations'],'add',(_0x4bb4a7,_0x282453)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x282453);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x5e6854){return this['activeUIs']['has'](_0x5e6854);}['activate'](_0x5e8009,_0x16fa74=()=>!0x0){const _0x11ca37=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x5e8009))throw new _0x2f63eb('annotationsuis-missing-ui',this,{'uiName':_0x5e8009});this['isActive'](_0x5e8009)&&this['deactivate'](_0x5e8009),this['activeUIs']['add'](_0x5e8009);const _0x1822f8=new x();!function({source:_0xb39b26,target:_0x71ba3e,filter:_0xe99374}){for(const _0x57b127 of _0xb39b26)_0xe99374(_0x57b127)&&_0x71ba3e['add'](_0x57b127);_0x71ba3e['listenTo'](_0xb39b26,'add',(_0x447051,_0x4a868f)=>{_0xe99374(_0x4a868f)&&_0x71ba3e['add'](_0x4a868f);}),_0x71ba3e['listenTo'](_0xb39b26,'remove',(_0x15df13,_0x1e0c95)=>{_0x71ba3e['has'](_0x1e0c95)&&_0x71ba3e['remove'](_0x1e0c95);});}({'source':_0x11ca37['_visibleAnnotations'],'target':_0x1822f8,'filter':_0x16fa74}),this['_uisData']['set'](_0x5e8009,{'collection':_0x1822f8,'filter':_0x16fa74});const _0x187afe=this['_uis']['get'](_0x5e8009);_0x187afe['attach'](_0x1822f8),this['listenTo'](_0x187afe,'change:activeAnnotation',(_0x253ae2,_0x57878a,_0x10fdfb,_0x5685d9)=>{_0x5685d9&&_0x11ca37['_removeActiveAnnotation'](_0x5685d9),_0x10fdfb&&_0x11ca37['_addActiveAnnotation'](_0x10fdfb);});}['deactivate'](_0x1d147e){if(this['activeUIs']['delete'](_0x1d147e),!this['_uis']['has'](_0x1d147e))throw new _0x2f63eb('annotationsuis-missing-ui',this,{'uiName':_0x1d147e});const _0x43ce97=this['_uis']['get'](_0x1d147e);_0x43ce97['detach'](),this['stopListening'](_0x43ce97),this['_uisData']['get'](_0x1d147e)['collection']['destroy'](),this['_uisData']['delete'](_0x1d147e);}['switchTo'](_0x474707){if(!this['_uis']['has'](_0x474707))throw new _0x2f63eb('annotationsuis-missing-ui',this,{'uiName':_0x474707});const _0x4955e2=this['context']['plugins']['get'](N),_0x11c9cc=Array['from'](_0x4955e2['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x474707);const _0x33f61a=this['_uis']['get'](_0x474707);_0x33f61a['setActiveAnnotation'](_0x11c9cc),_0x33f61a['_setSelectedAnnotations']&&_0x11c9cc&&_0x33f61a['_setSelectedAnnotations']([_0x11c9cc]);}['deactivateAll'](){for(const _0x1131fd of this['activeUIs'])this['deactivate'](_0x1131fd);}['register'](_0x4f910b,_0x2ce662){if(this['_uis']['has'](_0x4f910b))throw new _0x2f63eb('annotationsuis-register-already-registered');if('function'!=typeof _0x2ce662['attach']||'function'!=typeof _0x2ce662['detach']||'function'!=typeof _0x2ce662['setActiveAnnotation'])throw new _0x2f63eb('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x4f910b,_0x2ce662);}['refilterAnnotations'](){const _0x2b3eac=this['context']['plugins']['get'](N)['collection'],_0x79bde7=new Map(),_0x30328f=Array['from'](this['activeUIs']);for(const _0x120d77 of this['activeUIs']){const _0x53329c=this['_uisData']['get'](_0x120d77)['collection'];for(const _0x2d86a9 of _0x53329c)_0x79bde7['set'](_0x2d86a9,_0x120d77);}for(const _0x5080dc of _0x2b3eac){const _0x2a1042=_0x79bde7['get'](_0x5080dc);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5080dc);const _0x5e5361=_0x30328f['find'](_0x36cb89=>this['_uisData']['get'](_0x36cb89)['filter'](_0x5080dc));_0x2a1042!==_0x5e5361&&(_0x2a1042&&this['_uisData']['get'](_0x2a1042)['collection']['remove'](_0x5080dc),_0x5e5361&&this['_uisData']['get'](_0x5e5361)['collection']['add'](_0x5080dc));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4ed959){const _0x584180=[];for(const _0x4493c3 of this['activeUIs']){(0x0,this['_uisData']['get'](_0x4493c3)['filter'])(_0x4ed959)&&_0x584180['push'](_0x4493c3);}if(_0x584180['length']>0x1)throw new _0x2f63eb('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x584180,'annotationType':_0x4ed959['type']});}}const ae=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x26e1af){super(_0x26e1af);const _0x38aa8d=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 _0x225d87(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x38aa8d['to']('class')],'style':{'minHeight':_0x38aa8d['to']('minHeight',_0x15d457=>'number'==typeof _0x15d457?ae(_0x15d457+0xa):null)},'dir':_0x26e1af['uiLanguageDirection'],'role':'application','aria-label':S(_0x26e1af,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x26e1af,'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',_0x44ce20=>{this['_updateItemPositionInFocusables'](_0x44ce20['source']);}),this['list']['forEach'](_0x39fe3b=>{this['focusTracker']['add'](_0x39fe3b['element']),this['_updateItemPositionInFocusables'](_0x39fe3b);}),this['list']['on']('change',(_0x5c2a68,_0x510f81)=>{for(const _0xa7313e of _0x510f81['removed'])this['focusTracker']['remove'](_0xa7313e['element']),this['focusables']['remove'](_0xa7313e);for(const _0x505fb3 of _0x510f81['added'])this['focusTracker']['add'](_0x505fb3['element']),this['_updateItemPositionInFocusables'](_0x505fb3);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x3a667b){const _0xfb1ab6=this['focusables']['getIndex'](_0x3a667b);let _0x541905,_0x404843;for(const _0x4eb1fe of this['focusables'])if(_0x3a667b['top']<_0x4eb1fe['top']){_0x541905=_0x4eb1fe;break;}if(_0x404843=_0x541905?this['focusables']['getIndex'](_0x541905):this['focusables']['length'],-0x1!==_0xfb1ab6){if(_0xfb1ab6===_0x404843-0x1)return;this['focusables']['remove'](_0x3a667b),_0x404843=_0x541905?this['focusables']['getIndex'](_0x541905):this['focusables']['length'];}this['focusables']['add'](_0x3a667b,_0x404843);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x20d4ad){super(_0x20d4ad),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x308245,_0x1a7326)=>_0x308245+_0x1a7326),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Dt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x5a93a0=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x5a93a0['to']('isAnimationDisabled',_0x156f04=>_0x156f04?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x5a93a0['to']('top',_0x255a2f=>qt(_0x255a2f))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x37287a=this['element']['clientHeight'];_0x37287a&&(this['height']=_0x37287a);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x57f47d{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x45ca29){super(_0x45ca29),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 _0x537375=this['context']['config']['get']('sidebar.container');_0x537375&&this['setContainer'](_0x537375);}['setContainer'](_0x4d8403){if(!y(_0x4d8403))throw new _0x2f63eb('sidebar-setcontainer-invalid-element');this['container']=_0x4d8403;}['_attachToContainer']({viewClass:_0x591056='',spaceBetweenItems:_0x44472d=0x19}={}){if(!y(this['container']))throw new _0x2f63eb('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x591056,this['_spaceBetweenItems']=_0x44472d;}['rearrange']({removedAnnotation:_0x41791a,previousAnnotation:_0x3aa367,nextAnnotation:_0x73336b}){const _0x159c5c=this['getSidebarItemView'](_0x41791a);this['view']['list']['remove'](_0x159c5c),this['_destroySidebarItemView'](_0x41791a),_0x3aa367&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3aa367)),_0x73336b&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x73336b)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x1d2fb8,activatedAnnotation:_0x3698c9,disableAnimationOnActivatedAnnotation:_0x13aaa2}){if(this['_activeAnnotation']=_0x3698c9,_0x1d2fb8){_0x1d2fb8['isActive']=!0x1;const _0x4dfb22=this['getSidebarItemView'](_0x1d2fb8);_0x4dfb22&&_0x13aaa2&&(_0x4dfb22['isAnimationDisabled']=!0x1);}if(_0x3698c9){const _0x195dc9=this['getSidebarItemView'](_0x3698c9);_0x195dc9&&(_0x3698c9['isActive']=!0x0,_0x13aaa2&&(_0x195dc9['isAnimationDisabled']=!0x0,_0x195dc9['top']+=0x1),this['_alignToTargetRect'](_0x195dc9));}}['_detachFromContainer'](_0x3a6140){if(this['view']['element']['remove'](),_0x3a6140){for(const _0x8db501 of _0x3a6140)this['_destroySidebarItemView'](_0x8db501);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x13e65e,_0x1248b6){_0x1248b6||(_0x1248b6=_0x13e65e['view']);const _0x41441a=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x41441a,_0x13e65e),this['_annotationToSidebarItemView']['set'](_0x13e65e,_0x41441a),_0x41441a['content']['add'](_0x1248b6),this['listenTo'](_0x13e65e['view'],'change:targetRect',(_0x4f6763,_0x7253c4,_0x4b7155)=>{const _0x27309c=this['_getTargetTop'](_0x13e65e,_0x4b7155);_0x41441a['_targetTop']!=_0x27309c&&(_0x41441a['_targetTop']=_0x27309c,this['_setItemTop'](_0x41441a,_0x27309c));}),this['listenTo'](_0x41441a,'change:top',()=>{this['_recalculate'](_0x41441a,'top');}),this['listenTo'](_0x41441a,'change:bottom',()=>{this['_recalculate'](_0x41441a,'bottom');}),this['_alignToTargetRect'](_0x41441a);const _0x662331=this['_getItemBefore'](_0x41441a);if(_0x662331)this['_alignAfterItem'](_0x662331,_0x41441a)||this['_alignToTargetRect'](_0x41441a);else this['_alignToTargetRect'](_0x41441a);return this['_updateLastItem'](),this['view']['list']['add'](_0x41441a),_0x41441a;}['_alignForTopChange'](_0x3fd769){if(!_0x3fd769['content']['length'])return;const _0x839de2=this['_getItemBefore'](_0x3fd769);if(!_0x839de2)return;const _0x4ce482=this['_sidebarItemViewToAnnotation']['get'](_0x839de2),_0x2f4ce4=this['_activeAnnotation'];_0x2f4ce4&&_0x2f4ce4===_0x4ce482?this['_alignAfterItem'](_0x839de2,_0x3fd769):this['_alignBeforeItem'](_0x3fd769,_0x839de2);}['_alignForBottomChange'](_0x39a3ed){if(!_0x39a3ed['content']['length'])return;const _0x184c43=this['_getItemAfter'](_0x39a3ed);if(!_0x184c43)return;const _0x274a1e=this['_sidebarItemViewToAnnotation']['get'](_0x184c43),_0x3d5f00=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x557ff4=this['_activeAnnotation'];_0x557ff4&&_0x557ff4===_0x274a1e&&_0x3d5f00?(this['_alignBeforeItem'](_0x184c43,_0x39a3ed),this['_alignAfterItem'](_0x39a3ed,_0x184c43)):_0x557ff4&&_0x557ff4===_0x274a1e?this['_alignBeforeItem'](_0x184c43,_0x39a3ed):this['_alignAfterItem'](_0x39a3ed,_0x184c43);}['_recalculate'](_0x466bb8,_0x48e5c5){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x39fa31,changedProp:_0x87532f}of this['_recalculateBuffer'])'top'===_0x87532f?this['_alignForTopChange'](_0x39fa31):this['_alignForBottomChange'](_0x39fa31);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x466bb8,'changedProp':_0x48e5c5});}['getSidebarItemView'](_0x2442a3){return this['_annotationToSidebarItemView']['get'](_0x2442a3);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x12107b){const _0x5d620b=this['getSidebarItemView'](_0x12107b);this['stopListening'](_0x5d620b),this['stopListening'](_0x12107b['view']),_0x5d620b['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x12107b),this['_sidebarItemViewToAnnotation']['delete'](_0x5d620b);}['_createSidebarView'](){const _0x4c2798=new V(this['context']['locale']);return _0x4c2798['render'](),this['on']('change:_lastItem',(_0x3132d5,_0x53e99a,_0x260495,_0x2e95a9)=>{_0x2e95a9&&_0x4c2798['unbind']('minHeight'),_0x260495?_0x4c2798['bind']('minHeight')['to'](_0x260495,'bottom'):_0x4c2798['minHeight']=null;}),_0x4c2798;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x4a2627){const _0x256d8b=this['_sidebarItemViewToAnnotation']['get'](_0x4a2627),_0x428f03=_0x256d8b&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x256d8b)-0x1);return _0x428f03&&this['getSidebarItemView'](_0x428f03)||null;}['_getItemAfter'](_0x50466e){const _0x3a46f1=this['_sidebarItemViewToAnnotation']['get'](_0x50466e),_0x2eeb95=_0x3a46f1&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x3a46f1)+0x1);return _0x2eeb95&&this['getSidebarItemView'](_0x2eeb95)||null;}['_alignBeforeItem'](_0x69d782,_0x3ef6a1){_0x69d782['updateHeight']();const _0x10bf82=R(_0x3ef6a1['bottom']+this['_spaceBetweenItems'],_0x69d782['top']);return!!_0x10bf82&&(this['_setItemTop'](_0x3ef6a1,_0x3ef6a1['top']-_0x10bf82),!0x0);}['_alignAfterItem'](_0x4de71d,_0x89177e){_0x4de71d['updateHeight']();const _0x4605b4=R(_0x4de71d['bottom']+this['_spaceBetweenItems'],_0x89177e['top']);return!!_0x4605b4&&(this['_setItemTop'](_0x89177e,_0x89177e['top']+_0x4605b4,!0x1),!0x0);}['_alignToTargetRect'](_0x205209){const _0x3aa6de=this['_sidebarItemViewToAnnotation']['get'](_0x205209);if(!_0x3aa6de||!_0x3aa6de['target']||!_0x3aa6de['targetRect'])return;const _0x221220=this['_getTargetTop'](_0x3aa6de,_0x3aa6de['targetRect']);this['_setItemTop'](_0x205209,_0x221220);}['_getTargetTop'](_0x2b688a,_0x4d3626){if(null===_0x4d3626)return 0x0;if(_0x2b688a['target']instanceof _0x26b643)return _0x4d3626['top'];{const _0x1c480e=new _0x26b643(this['view']['element'])['top'];return _0x4d3626['top']-_0x1c480e;}}['_setItemTop'](_0x44a4d6,_0x115015,_0x1d3a6f=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x1d3a6f&&(_0x115015=Math['max'](_0x115015,this['_getMaxAvailableTop'](_0x44a4d6))),_0x44a4d6['top']=_0x115015;}['_getMaxAvailableTop'](_0x4513d6){let _0x3d15af=this['_getItemBefore'](_0x4513d6),_0x16aa9f=0x0;for(;_0x3d15af;)_0x3d15af['updateHeight'](),_0x16aa9f+=this['_spaceBetweenItems']+_0x3d15af['height'],_0x3d15af=this['_getItemBefore'](_0x3d15af);return _0x16aa9f;}}function R(_0x278a5a,_0x420476){return Math['max'](_0x278a5a-_0x420476,0x0);}function y(_0x413f17){return null!==_0x413f17&&'object'==typeof _0x413f17&&0x1===_0x413f17['nodeType'];}class e extends _0x57f47d{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,M];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b031d){super(_0x3b031d),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x550aff(),this['_refreshPositioningDebounced']=_0x40bf96(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x532b0e=this['context']['plugins']['get'](M),_0x3bb6b3=this['context']['plugins']['get'](z);_0x532b0e['register']('wideSidebar',this),_0x3bb6b3['container']&&_0x532b0e['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x11a620){if(_0x11a620===this['activeAnnotation'])return;const _0x3d8395=this['context']['plugins']['get'](z);_0x3d8395['_activeAnnotation']=_0x11a620;const _0x17bea6=this['activeAnnotation'];this['activeAnnotation']=_0x11a620,_0x3d8395['refresh']({'blurredAnnotation':_0x17bea6,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x3f8603){this['annotations']=_0x3f8603;const _0x23d4ff=this['context']['plugins']['get'](z);if(_0x23d4ff['_annotations']=_0x3f8603,this['isAttached'])throw new _0x2f63eb('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x23d4ff,'set:container',()=>{this['detach'](),this['listenTo'](_0x23d4ff,'change:container',_0x213daf=>{_0x213daf['off'](),this['attach'](_0x3f8603);});}),_0x23d4ff['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x1cdda5=_0x10a54b=>{_0x10a54b['updateTargetRect'](),_0x23d4ff['addAnnotation'](_0x10a54b);};for(const _0x28261c of _0x3f8603)_0x1cdda5(_0x28261c);this['listenTo'](_0x3f8603,'add',(_0x463836,_0x445240)=>{_0x1cdda5(_0x445240);}),this['listenTo'](_0x3f8603,'remove',(_0xcf0e26,_0x265101,_0x52f66d)=>{_0x23d4ff['rearrange']({'removedAnnotation':_0x265101,'previousAnnotation':_0x3f8603['get'](_0x52f66d-0x1),'nextAnnotation':_0x3f8603['get'](_0x52f66d+0x1)}),_0x265101===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x3f8603,'focus',(_0x20cd7f,_0x4c6870)=>{this['setActiveAnnotation'](_0x4c6870);}),this['listenTo'](_0x3f8603,'blur',()=>{this['setActiveAnnotation'](null);});const _0x2cfeb3=this['context']instanceof _0x27ece4?this['context']['editors']:new _0x550aff([this['context']]);for(const _0x429e93 of _0x2cfeb3)this['_integrateWithEditorAnnotations'](_0x429e93);this['listenTo'](_0x2cfeb3,'add',(_0x583825,_0x8177cd)=>{this['listenTo'](_0x8177cd,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x8177cd);});}),this['listenTo'](_0x2cfeb3,'remove',(_0x1be4d0,_0x3d86f8)=>{_0x3d86f8['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x3d86f8['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x2f63eb('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x52cd54=this['context']['plugins']['get'](z);_0x52cd54['_detachFromContainer'](this['annotations']),this['stopListening'](_0x52cd54),this['stopListening'](this['annotations']),this['context']instanceof _0x27ece4&&this['stopListening'](this['context']['editors']);for(const _0x2fb96b of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x2fb96b);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x4dee41){if(!_0x4dee41['plugins']['has']('EditorAnnotations'))return;const _0x13df7a=_0x4dee41['plugins']['get']('EditorAnnotations'),_0x50fc68=()=>{const _0x18217b=_0x13df7a['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x18217b[0x0]||null);};this['listenTo'](_0x13df7a,'refresh',_0x50fc68),this['listenTo'](_0x13df7a,'blur',(_0x151c9d,{isAnnotationTracked:_0x3be181})=>{this['activeAnnotation']&&_0x3be181(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x13df7a,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x475039=>{_0x13df7a['hasDomSelection']()&&(_0x50fc68(),_0x475039['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x13df7a);}['_destroyEditorAnnotationsIntegration'](_0x33e101){this['stopListening'](_0x33e101),this['_editorAnnotations']['remove'](_0x33e101);}}class D extends _0x1af4cd{['counterView'];constructor(_0x307b83){super(_0x307b83);const _0x413ea6=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x4b1b0a,_0x318333)=>_0x4b1b0a?'...':_0x318333['toString']()),this['set']('annotationType',''),this['icon']=xt,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x413ea6['to']('annotationType',_0x4cfd93=>'ck-annotation-counter__badge--'+_0x4cfd93),_0x413ea6['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x413ea6['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x57f47d{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,M];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x351189){super(_0x351189),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x159bf4),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x550aff(),this['_refreshPositioningDebounced']=_0x40bf96(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x5f4bc7(this['context']['locale']),this['balloonPanelView']=new _0x26b28a(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0xf1e87){this['annotations']=_0xf1e87;const _0x8d6282=this['context']['plugins']['get'](z),_0x379a8f=this['balloonPanelView'];if(_0x8d6282['_annotations']=_0xf1e87,this['isAttached'])throw new _0x2f63eb('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x8d6282,'set:container',()=>{this['detach'](),this['listenTo'](_0x8d6282,'change:container',_0xa015ca=>{_0xa015ca['off'](),this['attach'](_0xf1e87);});}),_0x8d6282['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x172a69=_0x189bd8=>{const _0x1bd0cd=new D(this['context']['locale']);_0x8d6282['addAnnotation'](_0x189bd8,_0x1bd0cd),this['_annotationToNarrowView']['set'](_0x189bd8,_0x1bd0cd),_0x1bd0cd['bind']('isDirty','annotationType','number')['to'](_0x189bd8['view'],'isDirty','type','length'),_0x1bd0cd['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x379a8f['content']['first']!==_0x189bd8['view']?(this['_showBalloon'](_0x189bd8),_0x189bd8['view']['element']['focus'](),this['setActiveAnnotation'](_0x189bd8)):this['setActiveAnnotation'](null);});};for(const _0x59036f of _0xf1e87)_0x172a69(_0x59036f);this['listenTo'](_0xf1e87,'add',(_0x5208e5,_0x11c9f1)=>{_0x172a69(_0x11c9f1);}),this['listenTo'](_0xf1e87,'remove',(_0x3bb543,_0x505531,_0x55968c)=>{this['_annotationToNarrowView']['get'](_0x505531)['destroy'](),this['_annotationToNarrowView']['delete'](_0x505531),_0x8d6282['rearrange']({'removedAnnotation':_0x505531,'previousAnnotation':_0xf1e87['get'](_0x55968c-0x1),'nextAnnotation':_0xf1e87['get'](_0x55968c+0x1)}),_0x505531===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0xf1e87,'focus',(_0x3eaa35,_0x2fe962)=>{this['setActiveAnnotation'](_0x2fe962);}),this['listenTo'](_0xf1e87,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x5b4d28,_0x19fa2e)=>{_0x19fa2e['keyCode']===_0x5d1dea['esc']&&_0x379a8f['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x379a8f['content']['first']),this['_hideBalloon'](),_0x19fa2e['stopPropagation'](),_0x19fa2e['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x5e307b,_0x3e6c97)=>{const _0x757367=_0x3e6c97['target'];_0x379a8f['isVisible']&&_0x379a8f['element']['contains'](_0x757367)||_0x8d6282['view']['element']['contains'](_0x757367)||_0x5e307b['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x2cfc48=>_0x2cfc48['contains'](_0x757367))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0xda269e=this['context']instanceof _0x27ece4?this['context']['editors']:new _0x550aff([this['context']]);for(const _0x3b7ecc of _0xda269e)this['_integrateWithEditorAnnotations'](_0x3b7ecc);this['listenTo'](_0xda269e,'add',(_0x50423e,_0x5754c3)=>{this['listenTo'](_0x5754c3,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x5754c3);});}),this['listenTo'](_0xda269e,'remove',(_0x2b5c26,_0x52746b)=>{_0x52746b['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x52746b['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x2213ec){if(_0x2213ec===this['activeAnnotation'])return;const _0x1ccf53=this['context']['plugins']['get'](z);if(_0x1ccf53['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x2213ec,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2213ec)_0x1ccf53['getSidebarItemView'](_0x2213ec)?this['_showBalloon'](_0x2213ec):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x2213ec;}['detach'](){if(!this['isAttached'])throw new _0x2f63eb('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x10a9be=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0xa0bf42=>_0xa0bf42['destroy']()),this['_annotationToNarrowView']['clear'](),_0x10a9be['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x27ece4&&this['stopListening'](this['context']['editors']);for(const _0x115bf8 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x115bf8);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'](_0x1c8b3c){if(!_0x1c8b3c['plugins']['has']('EditorAnnotations'))return;const _0x3f643b=_0x1c8b3c['plugins']['get']('EditorAnnotations'),_0x3f9538=this['context']['plugins']['get'](z),_0x103d20=this['annotations'],_0x103381=this['balloonPanelView'],_0x1bafea=()=>{const _0x3d3d03=_0x3f643b['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x3d3d03),this['setActiveAnnotation'](_0x3d3d03[0x0]||null);};this['listenTo'](_0x3f643b,'refresh',_0x1bafea),this['listenTo'](_0x3f643b,'blur',(_0xa66174,{isAnnotationTracked:_0x3a1f5d})=>{this['activeAnnotation']&&_0x3a1f5d(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x3f643b,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x103d20,'blur',_0xaa4b52=>{_0x3f643b['hasDomSelection']()&&_0xaa4b52['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x2faf4d,_0x50f11c)=>{const _0x506e6a=_0x50f11c['target'];_0x103381['isVisible']&&_0x103381['element']['contains'](_0x506e6a)||_0x3f9538['view']['element']['contains'](_0x506e6a)||this['activeAnnotation']&&_0x3f643b['hasDomSelection']()&&(_0x1bafea(),_0x2faf4d['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x3f643b);}['_destroyEditorAnnotationsIntegration'](_0x3bc516){_0x3bc516&&(this['stopListening'](_0x3bc516),this['_editorAnnotations']['remove'](_0x3bc516));}['_setSelectedAnnotations'](_0x2c64bc){for(const _0x21f5af of this['_selectedAnnotations'])_0x2c64bc['includes'](_0x21f5af)||this['_manuallyClosedAnnotationViews']['delete'](_0x21f5af['view']);this['_selectedAnnotations']=_0x2c64bc;}['_refreshPositioning'](){const _0xae0b0d=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0xae0b0d['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x285f69){if(this['_manuallyClosedAnnotationViews']['has'](_0x285f69['view']))return;const _0x46673f=this['balloonPanelView']['content']['first'];_0x46673f!==_0x285f69['view']?(_0x46673f&&this['_detachListeners'](_0x46673f),this['_attachListeners'](_0x285f69['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x285f69['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x5d22cd=this['balloonPanelView']['content']['first'],_0x10bcc6=_0x5d22cd&&this['annotations']['getByView'](_0x5d22cd);if(!_0x10bcc6||!this['_annotationToNarrowView']['has'](_0x10bcc6))return;const _0xc5285a=this['_annotationToNarrowView']['get'](_0x10bcc6)['element'],_0x2cc60e=(function(){const _0x16dc23=_0x26b28a['defaultPositions'];return[_0x16dc23['southArrowNorthEast'],_0x16dc23['northArrowSouthEast'],_0x16dc23['southArrowNorth'],_0x16dc23['northArrowSouth'],_0x16dc23['southArrowNorthWest'],_0x16dc23['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0xc5285a,'positions':_0x2cc60e});}['_hideBalloon'](){const _0x24be1d=this['balloonPanelView'],_0x31e033=_0x24be1d['content']['first'];_0x31e033&&(this['_detachListeners'](_0x31e033),_0x24be1d['unpin'](),_0x24be1d['content']['clear']());}['_attachListeners'](_0x498e5c){this['listenTo'](_0x498e5c,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x498e5c,'Esc',(_0x59a6f9,_0xab592d)=>{this['_manuallyClosedAnnotationViews']['add'](_0x498e5c),this['_hideBalloon'](),_0xab592d();});}['_detachListeners'](_0x53ff53){this['stopListening'](_0x53ff53);}}class c extends _0x519d94{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x1253aa,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f0147){super(_0x4f0147),_0x4f0147['editing']['view']['addObserver'](_0x27599b),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x4f0147['plugins']['get'](_0x1253aa),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x4f7ef2=this['editor']['plugins']['get'](M);_0x4f7ef2['context']===this['editor']&&(_0x4f7ef2['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x5224f8,_0x45947c)=>{const _0x2db8de=this['_balloon'];if(this['isAttached']&&_0x2db8de['visibleView']){const _0x4dc22a=this['annotations']['getByView'](_0x2db8de['visibleView']);_0x4dc22a&&this['_closeAnnotation'](_0x4dc22a),_0x45947c();}}));}['afterInit'](){const _0x4c1b2b=this['editor']['plugins']['get'](M);_0x4c1b2b['context']===this['editor']&&(_0x4c1b2b['hasActive']()||_0x4c1b2b['switchTo']('inline'));}['setActiveAnnotation'](_0x1963c6){_0x1963c6!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x1963c6&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x1963c6)&&this['_addAnnotationToBalloon'](_0x1963c6,!0x0),_0x1963c6['isActive']=!0x0),_0x1963c6||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x1963c6);}['attach'](_0x511001){this['annotations']=_0x511001;const _0x3611af=this['editor']['plugins']['get'](M),_0xfba2a5=this['_balloon'];if(this['isAttached'])throw new _0x2f63eb('inlineannotations-attach-already-attached',this);if(_0x3611af['context']!==this['editor'])throw new _0x2f63eb('inlineannotations-not-allowed-with-context',this);const _0x7334f5=this['editor']['plugins']['get'](P);this['listenTo'](_0x7334f5,'refresh',()=>{const _0x5f5177=_0x7334f5['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x44bbe0,_0x9b2a1e;!this['_forceRefresh']&&(_0x44bbe0=_0x5f5177,_0x9b2a1e=this['_selectedAnnotations'],_0x44bbe0['length']===_0x9b2a1e['length']&&_0x44bbe0['every'](_0x4d789f=>_0x9b2a1e['includes'](_0x4d789f)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x5f5177),this['setActiveAnnotation'](_0x5f5177[0x0]||null));}),this['listenTo'](_0x7334f5,'blur',(_0x1113d1,{isAnnotationTracked:_0x830b7})=>{this['activeAnnotation']&&_0x830b7(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x2db344,_0x2dd99f,_0x25e274)=>{_0x25e274||this['setActiveAnnotation'](null);}),this['listenTo'](_0x511001,'remove',(_0x571ef8,_0x2fd0af)=>{this['_removeAnnotationFromBalloon'](_0x2fd0af),_0x2fd0af===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0xfba2a5,'change:visibleView',(_0x47ee62,_0x51df42,_0xb1e3e9,_0x544d82)=>{_0x544d82&&this['stopListening'](_0x544d82);const _0x99cde6=_0x511001['getByView'](_0xb1e3e9);_0xb1e3e9&&_0x99cde6&&(this['listenTo'](_0xb1e3e9,'change:height',()=>{_0xfba2a5['updatePosition']();}),this['listenTo'](_0xb1e3e9,'Esc',()=>{this['_closeAnnotation'](_0x99cde6),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x99cde6&&this['setActiveAnnotation'](_0x99cde6));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0xfba2a5['visibleView']&&(_0x511001['getByView'](_0xfba2a5['visibleView'])&&_0xfba2a5['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 _0x2f63eb('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x488fb9 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x488fb9);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0xb54740){for(const _0x4f97b2 of this['_selectedAnnotations'])_0xb54740['includes'](_0x4f97b2)||this['_manuallyClosed']['delete'](_0x4f97b2);for(const _0xfea38c of this['annotations'])_0xb54740['includes'](_0xfea38c)||this['_removeAnnotationFromBalloon'](_0xfea38c);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x144c1d of _0xb54740)this['_addAnnotationToBalloon'](_0x144c1d);}this['_selectedAnnotations']=_0xb54740;}['_addAnnotationToBalloon'](_0x25c959,_0x1abbcd=!0x1){this['_manuallyClosed']['has'](_0x25c959)||(this['_addedAnnotations']['has'](_0x25c959)||this['_balloon']['hasView'](_0x25c959['view'])||(this['_addedAnnotations']['add'](_0x25c959),this['_balloon']['add']({'stackId':_0x25c959['view']['id'],'view':_0x25c959['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x25c959)}})),_0x1abbcd&&this['_balloon']['showStack'](_0x25c959['view']['id']));}['_getBalloonTargetForAnnotation'](_0x3c67c6){const _0x4658ab=_0x3c67c6['target'],_0x53dcde=this['editor']['editing']['view'],_0x51edfa=_0x53dcde['document']['selection']['getFirstRange'](),_0x47edb1=_0x53dcde['domConverter']['viewRangeToDom'](_0x51edfa);if(_0x47edb1['collapse'](!0x0),_0x4658ab){if(_0x4658ab instanceof _0x26b643)return _0x4658ab;let _0x42ff6d=[];for(const _0x374c1f of _0x4658ab)_0x42ff6d['push'](...(_0x5f23c5=_0x374c1f['getClientRects'](),Array['from'](_0x5f23c5)['map'](DOMRect['fromRect'])));_0x42ff6d=function(_0x3048f2){const _0x124543=[];let _0x4b826b=_0x3048f2[0x0];for(let _0x1bff39=0x1;_0x1bff39<_0x3048f2['length'];_0x1bff39++)b(_0x4b826b,_0x3048f2[_0x1bff39])?_0x4b826b['width']+=_0x3048f2[_0x1bff39]['width']:(_0x124543['push'](_0x4b826b),_0x4b826b=_0x3048f2[_0x1bff39]);return _0x124543['push'](_0x4b826b),_0x124543;}(_0x42ff6d);const _0x542a00=_0x47edb1['getBoundingClientRect']();return _0x42ff6d['find'](_0x491fc8=>_0x491fc8['top']<=_0x542a00['top']&&_0x491fc8['bottom']>=_0x542a00['bottom']&&_0x491fc8['left']<=_0x542a00['left']&&_0x491fc8['right']>=_0x542a00['right'])||_0x42ff6d[0x0];}var _0x5f23c5;return _0x3c67c6['targetRect']||_0x47edb1;}['_removeAnnotationFromBalloon'](_0x29fff7){this['_addedAnnotations']['has'](_0x29fff7)&&this['_balloon']['hasView'](_0x29fff7['view'])&&(this['_addedAnnotations']['delete'](_0x29fff7),this['_balloon']['remove'](_0x29fff7['view']));}['_closeAnnotation'](_0x11c3c6){this['_manuallyClosed']['add'](_0x11c3c6),this['_removeAnnotationFromBalloon'](_0x11c3c6);}}function b(_0x52ffb9,_0x568829){return _0x52ffb9['top']===_0x568829['top']&&_0x52ffb9['bottom']===_0x568829['bottom']&&_0x52ffb9['right']===_0x568829['left'];}var Z='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M14\x203.5A3.5\x203.5\x200\x200\x201\x2017.5\x207v6l-.005.192a3.501\x203.501\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.37-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.272-2.63l-.062-.07-4.729-.046a3.5\x203.5\x200\x200\x201-3.5-3.5v-6a3.5\x203.5\x200\x200\x201\x203.5-3.5L14\x203.5ZM3.5\x204.954a2\x202\x200\x200\x200-2\x202v6a2\x202\x200\x200\x200\x202\x202L8.924\x2015a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L12.962\x2015H14a2\x202\x200\x200\x200\x202-2V7a2\x202\x200\x200\x200-2-2L3.5\x204.954Z\x22/><path\x20d=\x22M16.5.5h-10a3.5\x203.5\x200\x200\x200-3.162\x202h1.84A2\x202\x200\x200\x201\x206.5\x202h10a2\x202\x200\x200\x201\x202\x202v8.873a3.502\x203.502\x200\x200\x200\x201.495-2.681L20\x2010V4A3.5\x203.5\x200\x200\x200\x2016.5.5Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M12.013\x207.453a.75.75\x200\x200\x201\x20.034\x201.06l-3.75\x204a.75.75\x200\x200\x201-1.045.048l-2.25-2a.75.75\x200\x200\x201\x20.996-1.122l1.704\x201.515\x203.25-3.467a.75.75\x200\x200\x201\x201.061-.034Z\x22/></svg>\x0a';class tt extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x563547,_0x4588f5){super(_0x563547),this['set']('isEmpty',!_0x4588f5['length']),this['focusTracker']=new _0x225d87(),this['_annotationViews']=_0x4588f5,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x4588f5,'focusTracker':this['focusTracker']}),this['listenTo'](_0x4588f5,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x4588f5,'remove',(_0x367533,_0x51a42c)=>{_0x51a42c['isActive']&&this['focus'](),_0x4588f5['length']||(this['isEmpty']=!0x0);});const _0x4906fb=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x563547,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x4588f5},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x4906fb['if']('isEmpty','ck-hidden',_0x434b30=>!_0x434b30)]},'children':[{'text':S(_0x563547,'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 _0x310a66 of this['_annotationViews'])this['focusTracker']['add'](_0x310a66['element']);this['_annotationViews']['on']('change',(_0x121846,{added:_0x6c96eb,removed:_0x5051f8})=>{for(const _0x883919 of _0x6c96eb)this['focusTracker']['add'](_0x883919['element']);for(const _0x468658 of _0x5051f8)this['focusTracker']['remove'](_0x468658['element']);});}}class f extends _0x57f47d{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x4ca06d){super(_0x4ca06d),this['archivedThreads']=new _0x550aff();}['init'](){const _0x147009=this['context'],_0x442b69=_0x147009['plugins']['get'](o),_0x247d8d=_0x147009['plugins']['get'](N);this['listenTo'](_0x442b69,'addCommentThread',(_0x4b7993,{threadId:_0xb2a699})=>{const _0x252064=_0x442b69['getCommentThread'](_0xb2a699);_0x252064['archivedAt']&&this['archivedThreads']['add'](_0x252064,this['_calculatePosition'](_0x252064['archivedAt'])),this['listenTo'](_0x252064,'change:archivedAt',(_0xed66c8,_0x20815b,_0x23e694)=>{_0x23e694?this['archivedThreads']['has'](_0x252064)||this['archivedThreads']['add'](_0x252064,this['_calculatePosition'](_0x252064['archivedAt'])):this['archivedThreads']['has'](_0x252064)&&this['archivedThreads']['remove'](_0x252064);});}),this['listenTo'](_0x442b69,'removeCommentThread',(_0x58b1ab,{threadId:_0xae3d8c})=>{const _0x1ec21c=_0x442b69['getCommentThread'](_0xae3d8c);this['stopListening'](_0x1ec21c),this['archivedThreads']['has'](_0x1ec21c)&&this['archivedThreads']['remove'](_0x1ec21c);},{'priority':'highest'}),this['listenTo'](_0x247d8d['collection'],'focus',(_0x152798,_0x272f3f)=>{_0x272f3f['isVisible']||(_0x272f3f['isActive']=!0x0,_0x247d8d['activate'](_0x272f3f));});}['_calculatePosition'](_0x29c494){const _0x915bb3=[...this['archivedThreads']]['findIndex'](_0x3ea119=>_0x3ea119['archivedAt']<_0x29c494);return _0x915bb3>-0x1?_0x915bb3:this['archivedThreads']['length'];}}class a extends _0x519d94{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x3f29d3];}constructor(_0x27e0cb){super(_0x27e0cb),this['annotationViews']=new _0x28cb78(),this['_pendingThreads']=[];}['init'](){const _0x5702ef=this['editor'],_0x1978fe=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x5702ef['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x1af4cd,!0x0)),_0x5702ef['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x13b4f1=this['_createCommentsArchiveButton'](_0x218ddc);return _0x13b4f1['set']({'role':'menuitemcheckbox'}),_0x13b4f1;});const _0x27a569=_0x5702ef['plugins']['get'](f),_0x4b9b3b=_0x5702ef['plugins']['get']('Annotations'),_0x8bcc5c=_0x5702ef['plugins']['get']('CommentsRepository');this['listenTo'](_0x27a569['archivedThreads'],'add',(_0x6586d8,_0x68ece4)=>{const _0x152622=_0x5702ef['config']['get']('collaboration.channelId');if(!_0x152622||_0x68ece4['channelId']===_0x152622){const _0x30f1f9=_0x8bcc5c['_threadToController']['get'](_0x68ece4);if(!_0x30f1f9)return void this['_pendingThreads']['push'](_0x68ece4);const _0x52ba77=this['_calculatePosition'](_0x68ece4['archivedAt']),_0x3872d5=_0x4b9b3b['getByInnerView'](_0x30f1f9['view']);_0x3872d5['isVisible']&&_0x4b9b3b['_visibleAnnotations']['remove'](_0x3872d5),this['annotationViews']['add'](_0x3872d5['view'],_0x52ba77);}}),this['listenTo'](_0x4b9b3b['collection'],'add',(_0x52a89d,_0x36dbb8)=>{const _0x163b5b=this['_pendingThreads']['find'](_0x89ec38=>{const _0x3d0c8e=_0x8bcc5c['_threadToController']['get'](_0x89ec38);return _0x3d0c8e&&_0x36dbb8['innerView']===_0x3d0c8e['view'];});if(_0x163b5b){const _0x65492a=this['_calculatePosition'](_0x163b5b['archivedAt']);this['annotationViews']['add'](_0x36dbb8['view'],_0x65492a),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x163b5b),0x1);}}),this['listenTo'](_0x27a569['archivedThreads'],'remove',(_0x3f0e3b,_0x11d508)=>{const _0x47be5d=_0x5702ef['config']['get']('collaboration.channelId');if(!_0x47be5d||_0x11d508['channelId']===_0x47be5d){const _0x18f770=_0x8bcc5c['_threadToController']['get'](_0x11d508),_0x4fac72=_0x4b9b3b['getByInnerView'](_0x18f770['view']);this['annotationViews']['remove'](_0x4fac72['view']),this['stopListening'](_0x4fac72['focusableElements']);}}),this['listenTo'](_0x4b9b3b['collection'],'add',(_0x1c052b,_0x1a4bff)=>{this['listenTo'](_0x1a4bff,'escape',_0x1978fe);}),this['listenTo'](_0x4b9b3b['collection'],'remove',(_0x5ae061,_0x190176)=>{this['stopListening'](_0x190176,'escape',_0x1978fe);});}['_calculatePosition'](_0x4f0b16){const _0x2f3b6f=this['editor']['config']['get']('collaboration.channelId'),_0x4242c7=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x5ab5b5=>_0x5ab5b5['channelId']===_0x2f3b6f)['findIndex'](_0x35e7a2=>_0x35e7a2['archivedAt']<_0x4f0b16);return _0x4242c7<0x0||_0x4242c7>this['annotationViews']['length']?this['annotationViews']['length']:_0x4242c7-0x1;}['_toggleDialog'](){const _0x11dc58=this['editor'],_0x5f576e=_0x11dc58['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x11dc58['locale'],this['annotationViews'])),'commentsArchive'===_0x5f576e['id']?_0x5f576e['hide']():_0x5f576e['show']({'id':'commentsArchive','title':S(_0x11dc58['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x11887f['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x333918,_0x52138a=!0x1){const _0x2f384b=this['editor']['locale'],_0x4e4363=this['editor']['plugins']['get']('Dialog'),_0x2d1fc1=new _0x333918(_0x2f384b);return _0x2d1fc1['bind']('isEnabled')['to'](this,'isEnabled'),_0x2d1fc1['bind']('isOn')['to'](_0x4e4363,'id',_0x411332=>'commentsArchive'===_0x411332),_0x2d1fc1['set']({'label':S(_0x2f384b,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x52138a&&(_0x2d1fc1['tooltip']=!0x0),this['listenTo'](_0x2d1fc1,'execute',()=>this['_toggleDialog']()),_0x2d1fc1;}['_hideDialogOnAnnotationEscape']=_0x4f0d73=>{const _0x56405e=_0x4f0d73['source'];if(!this['annotationViews']['has'](_0x56405e['view']))return;const _0x22e9cb=this['editor']['plugins']['get']('Dialog');_0x22e9cb['isOpen']&&'commentsArchive'===_0x22e9cb['id']&&(_0x22e9cb['hide'](),_0x4f0d73['stop']());};}class p extends _0x519d94{static get['requires'](){return[o,r,i,f,a,s,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{d as Annotation,x as AnnotationCollection,T as AnnotationView,N as Annotations,M as AnnotationsUIs,ss as BaseCommentThreadView,os as BaseCommentView,re as Comment,oe as CommentThread,yt as CommentThreadController,ie as CommentThreadInputView,Ct as CommentThreadView,vt as CommentView,p as Comments,f as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,e as WideSidebar};