@ckeditor/ckeditor5-comments 44.1.0-alpha.1 → 44.1.0-alpha.2
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/build/comments.js +1 -1
- package/dist/index.js +9 -9
- package/package.json +16 -16
- package/src/comments/commentsediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Editor as
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
((()=>Rt)());constructor(_0x543450={}){function _0x2c0609(_0x323d12){return _0x323d12['map'](_0x529c1b=>String['fromCharCode'](_0x529c1b))['join']('');}(_0x543450=Object['assign']({},_0x543450))['plugins']||(_0x543450['plugins']=Ut['defaultPlugins']),super(_0x543450),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[_0x2c0609([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c0609([0x76,0x69,0x65,0x77])][_0x2c0609([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c0609([0x61,0x75,0x74,0x6f]),this[_0x2c0609([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2c0609([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c0609([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2c0609([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2c0609([0x6f,0x6b])});}['create'](){const _0xbfcce7=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0xbfcce7))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x28e331=>{const _0x43f34b=this['model']['document']['getRoot'](),_0x30a666=_0x43f34b&&_0x43f34b['getChild'](_0x43f34b['childCount']-0x1);_0x28e331['setSelection'](_0x30a666,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x688c7=this['editing']['view'],_0xdf9de4=_0x688c7['document']['getRoot'](),_0x3dd722=_0xdf9de4['getChild'](0x0);_0xdf9de4['childCount']>0x1||!_0x3dd722||'p'!=_0x3dd722['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x688c7,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x3dd722['placeholder']=this['placeholder']),St({'view':_0x688c7,'element':_0x3dd722,'keepOnFocus':!0x0}),this['placeholderElement']=_0x3dd722);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x4d2daa,_0x5abfd1={}){super(_0x4d2daa),this['editor']=null,this['_editorConfig']=_0x5abfd1,this['set']('value',_0x5abfd1['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x4d2daa,'Reply...')),this['set']('submitLabel',S(_0x4d2daa,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x36f890(),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',(_0x1210c8,_0x356046)=>{this['cancelButtonView']['fire']('execute'),_0x356046();}),this['keystrokes']['set']('Ctrl+Enter',(_0x18d035,_0x79e66a)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x79e66a());}),this['on']('submit',(_0x36aeb8,_0x57b171)=>{_0x57b171['length']>0xfde8?(alert(S(_0x4d2daa,'TOO_LONG_COMMENT_ALERT',[_0x57b171['length'],0xfde8])),_0x36aeb8['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Ut(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x4c8904=this['editor'];this['element']['insertBefore'](_0x4c8904['ui']['element'],this['element']['firstChild']),_0x4c8904['model']['document']['on']('change',()=>this['value']=_0x4c8904['getData']()),_0x4c8904['bind']('placeholder')['to'](this),this['focusables']['add'](_0x4c8904['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x2bd3de){-0x1===_0x2bd3de?(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:_0x414aec}=this,_0x51b2ae=new _0x3ea547(_0x414aec);return _0x51b2ae['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x51b2ae['withText']=!0x0,_0x51b2ae['bind']('label')['to'](this,'submitLabel'),_0x51b2ae['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x51b2ae['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x1f84d7,_0x5dde39)=>!_0x5dde39&&!!_0x1f84d7['trim']()),_0x51b2ae;}['_createCancelButton'](){const {locale:_0x3cf62e}=this,_0x2508e2=new _0x3ea547(_0x3cf62e);return _0x2508e2['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x2508e2['label']=S(_0x3cf62e,'Cancel'),_0x2508e2['withText']=!0x0,_0x2508e2['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x2508e2;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0xa3d88e=>{this['focusTracker']['add'](_0xa3d88e['element']);}),this['focusables']['on']('change',(_0x190f2f,_0x31f65c)=>{for(const _0x5ae977 of Array['from'](_0x31f65c['added'])['reverse']())this['focusTracker']['add'](_0x5ae977['element']);});}}class ie extends kt{constructor(_0x447075,_0x1cc284,_0x4dbbe8){super(_0x447075),this['commentInputView']=new os(_0x447075,_0x4dbbe8),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x559741,_0x548e95)=>_0x559741||!!_0x548e95),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 _0x22ff58(_0x447075,_0x1cc284),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'](_0x28e649){this['commentInputView']['focus'](_0x28e649);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x3ca795,_0x3e7643)=>{const {submitButtonView:_0x2b0d54,cancelButtonView:_0xee2f03,editor:_0x15827d}=this['commentInputView'];[_0x2b0d54['element'],_0xee2f03['element'],_0x15827d?_0x15827d['editing']['view']['getDomRoot']():null]['filter'](_0x37f77=>_0x37f77)['some'](_0x3004f3=>_0x3004f3['contains'](_0x3e7643['target']))||(this['focus'](),_0x3e7643['preventDefault']());});}}class cs extends kt{constructor(_0x2c76c3){super(_0x2c76c3);const _0x120f05=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x120f05['to']('count',_0x25629c=>S(_0x2c76c3,'NUMBER_OF_COMMENTS',_0x25629c))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x454ae8,_0xad0b60,_0x412a3a){super(_0x454ae8);const _0x65f15=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0xad0b60['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0xad0b60,this['_config']=_0x412a3a,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x36f890(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5130b6=>this['commentViews']['map'](_0x34b9f0=>_0x34b9f0['element'])['includes'](_0x5130b6['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x454ae8),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x31533a=>_0x31533a-this['_config']['maxCommentsWhenCollapsed']);for(const _0x449d81 of _0xad0b60['comments'])this['_handleNewCommentModel'](_0x449d81);this['_handleInfoComment'](),this['listenTo'](_0xad0b60['comments'],'add',(_0x4305b9,_0x3e454c)=>{const _0x19f748=this['_calculatePosition'](_0x3e454c);this['length']++,this['_handleNewCommentModel'](_0x3e454c,_0x19f748),this['refreshVisibleViews']();}),this['listenTo'](_0xad0b60['comments'],'remove',(_0x4b75b1,_0x20bce3)=>{this['length']--,this['_handleRemoveCommentModel'](_0x20bce3),this['refreshVisibleViews']();}),this['listenTo'](_0xad0b60,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0xad0b60,'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',_0x65f15['if']('length','ck-hidden',_0x3f8fc5=>!_0x3f8fc5)],'aria-label':S(_0x454ae8,'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'](_0x57c190){-0x1===_0x57c190?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x3d5367 of this['commentViews'])_0x3d5367['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x1b01a5,_0x511a59){const _0x1d1bbc=new this['_config']['CommentView'](this['locale'],_0x1b01a5,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x1d1bbc['viewUid']=_0x1b01a5['id'],_0x1d1bbc['delegate']('removeComment')['to'](this),_0x1d1bbc['delegate']('updateComment')['to'](this),_0x1d1bbc['delegate']('resolveCommentThread')['to'](this),_0x1d1bbc['delegate']('editorReady')['to'](this),_0x1d1bbc['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x1d1bbc,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x1d1bbc,_0x511a59);}['_calculatePosition'](_0x51076a){const _0x2b51bb=this['_model']['_findOptimalIndex'](_0x51076a);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x51076a['authoredAt']?_0x2b51bb-0x1:_0x2b51bb:_0x2b51bb-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x32a17c={'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'],_0x32a17c,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x32a17c));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x473f15){const _0x2b9f31=this['commentViews']['remove'](_0x473f15['id']);this['stopListening'](_0x2b9f31),_0x2b9f31['isEditMode']&&this['_updateHasDirtyComment'](),_0x2b9f31['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x14caaf=>_0x14caaf['isEditMode']);}['_rearrangeCollapse'](){const _0x1c0be0=function(_0x239dc0){const _0x5e3ce4=new _0x7c7e6e();for(const _0x155c91 of _0x239dc0)_0x5e3ce4['add'](_0x155c91);return _0x5e3ce4;}(this['commentViews']),_0x49ffae=this['_collapsedCommentsView']['count'];for(let _0x55d443=0x1;_0x55d443<=_0x49ffae;_0x55d443++)_0x1c0be0['remove'](0x1);for(const _0xe366b5 of _0x1c0be0)_0xe366b5['collapse']();_0x49ffae>0x0&&_0x1c0be0['add'](this['_collapsedCommentsView'],0x1),as(_0x4c46f7(Array['from'](this['visibleViews']),Array['from'](_0x1c0be0)),this['visibleViews'],_0x1c0be0);}['_rearrangeExpand'](){as(_0x4c46f7(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x4d006f of this['visibleViews'])_0x4d006f['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x2e4253=>{this['focusTracker']['add'](_0x2e4253['element']),this['keystrokes']['listenTo'](_0x2e4253['element']);}),this['commentViews']['on']('change',(_0x334cad,_0x46a212)=>{for(const _0x332d82 of _0x46a212['removed'])this['focusTracker']['remove'](_0x332d82['element']),this['keystrokes']['stopListening'](_0x332d82['element']);for(const _0x2edee5 of Array['from'](_0x46a212['added'])['reverse']())this['focusTracker']['add'](_0x2edee5['element']),this['keystrokes']['listenTo'](_0x2edee5['element']);});}}function as(_0x29a6f3,_0x2ff20c,_0x51e7a6){let _0x7fe656=0x0;for(const _0x3714ef of _0x29a6f3)switch(_0x3714ef){case'insert':_0x2ff20c['add'](_0x51e7a6['get'](_0x7fe656),_0x7fe656),_0x7fe656++;break;case'delete':_0x2ff20c['remove'](_0x7fe656);break;case'equal':_0x7fe656++;}}class ls extends kt{constructor(_0x165d99){super(_0x165d99);const _0x502941=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x502941['to']('contextValue',_0x571d81=>S(_0x165d99,'THREAD_CONTEXT_LABEL',_0x571d81)),'tabindex':-0x1},'children':[{'text':_0x502941['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Zt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x5591de,_0x19b642){super(_0x5591de);const _0xb55629=this['bindTemplate'];this['_model']=_0x19b642,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x36f890(),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',_0x51e027=>!!_0x51e027),this['bind']('contextValue')['to'](this['_model'],'context',_0x25f906=>_0x25f906&&_0x25f906['value']?this['_trimContextValue'](_0x25f906['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',_0xb55629['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 _0xada3d0=new _0x3ea547(this['locale']);return _0xada3d0['label']=S(this['locale'],'Reopen'),_0xada3d0['tooltip']=S(this['locale'],'Reopen'),_0xada3d0['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>',_0xada3d0['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2ecca6=>!_0x2ecca6),_0xada3d0['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x5caebe,_0x4f502)=>_0x5caebe&&_0x4f502),_0xada3d0['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0xada3d0;}['_trimContextValue'](_0x49160d){if(_0x49160d['length']<0x96)return _0x49160d;const _0x475103=_0x49160d['lastIndexOf']('\x20',0x93);return _0x49160d['substring'](0x0,_0x475103>-0x1?_0x475103:0x93)+'...';}['_attachContextActions'](){const _0x564b7c=this['element']['querySelector']('.ck-context'),_0x559dbb=_0x564b7c['querySelector']('.ck-context__value');this['listenTo'](_0x564b7c,'mouseenter',()=>{_0x559dbb['offsetWidth']<_0x559dbb['scrollWidth']&&_0x564b7c['classList']['add']('overlay');}),this['listenTo'](_0x564b7c,'mouseleave',()=>{_0x564b7c['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x5c15f7 of this['focusables'])this['focusTracker']['add'](_0x5c15f7['element']),this['keystrokes']['listenTo'](_0x5c15f7['element']);}['_createContextView'](){const _0x24c7a4=new ls(this['locale']);return _0x24c7a4['bind']('contextValue')['to'](this),_0x24c7a4;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x5eacf0,_0x185ec4,_0x1a214c,_0x33e0b2){super(_0x5eacf0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x185ec4,this['_localUser']=_0x1a214c,this['_config']=_0x33e0b2,this['commentThreadHeaderView']=new Zt(_0x5eacf0,_0x185ec4),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new ts(_0x5eacf0,S(_0x5eacf0,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x5eacf0,_0x185ec4,Object['assign']({'CommentView':this['_config']['CommentView']},_0x33e0b2)),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',(_0x487a41,_0x309dd2)=>_0x487a41||!!_0x309dd2),this['bind']('isUnlinked')['to'](_0x185ec4,'unlinkedAt',_0x4f7813=>!!_0x4f7813),this['bind']('ariaLabel')['to'](this,'length',_0x5989f3=>{const _0x3e8e92=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x5989f3,_0x3e8e92]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x36f890(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1ce511=>_0x1ce511['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x1f2ff8(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0xd45733=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x265c76=_0xd45733['commentInputView'];return _0xd45733['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x265c76,'value',(_0x30c2e3,_0x5f743,_0x4dd362,_0x35c59c,_0x435112)=>!!_0x435112||!!_0x35c59c&&_0x4dd362&&!_0x5f743||_0x30c2e3&&_0x4dd362&&!_0x5f743),_0x265c76['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3da6c4,_0x36423f,_0x4e7f42)=>{let _0x3e6350;return _0x3e6350=_0x4e7f42&&_0x36423f?'Reply\x20to\x20reopen\x20discussion...':_0x3da6c4?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x3e6350);}),_0x265c76['bind']('submitLabel')['to'](this,'length',_0x30bcc8=>S(this['locale'],_0x30bcc8?'Reply':'Comment')),_0x265c76['on']('submit',(_0x2b25c5,_0xa0dc81)=>{this['fire']('addComment',_0xa0dc81),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x265c76['on']('cancel',()=>{this['focus']();}),_0x265c76['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x265c76['on']('cancel',_0x589669=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x589669['stop']());}),this['on']('change:isActive',(_0xd47e84,_0x313785,_0x4fd5de)=>{_0x4fd5de||this['length']||_0x265c76['value']||this['fire']('removeCommentThread');}),_0xd45733;}}class vt extends/* #__PURE__ -- @preserve */
|
|
27
|
-
ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(
|
|
28
|
-
ti(rs){['actionBar'];['userView'];constructor(
|
|
29
|
-
_0x14feae(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x1ebc4f,target:_0x32b288,type:_0x5912ab,isVisible:_0x10c122=!0x0}){super(),this['view']=_0x1ebc4f,this['view']['element']||this['view']['render'](),this['_type']=_0x5912ab,this['_target']=_0x32b288,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x7c7e6e([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x296e97,_0x10698a)=>{this['view']['focusTracker']['add'](_0x10698a);}),this['focusableElements']['on']('remove',(_0x2f47b4,_0x41bf09)=>{this['view']['focusTracker']['remove'](_0x41bf09);}),this['set']('isVisible',_0x10c122);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x566f4c=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x566f4c),_0x566f4c;}get['targetRect'](){const _0x32d8f4=this['target'];if(null===_0x32d8f4)return null;if(_0x32d8f4 instanceof _0x30b314)return _0x32d8f4;const _0x59d28f=_0x32d8f4['filter'](_0x3a9e1c=>function(_0x2f2e0f){const _0x529676=_0x2f2e0f['offsetParent'];if(_0x529676)return!0x0;const _0x2e21b6=_0x2f2e0f['getClientRects']()['item'](0x0);return!!_0x2e21b6;}(_0x3a9e1c));return 0x0===_0x59d28f['length']?null:new _0x30b314(_0x59d28f[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x2e3c07){this['view']['isActive']=_0x2e3c07,this['view']['mainView']['isActive']=_0x2e3c07;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x2a100c){if(!(null===_0x2a100c||_0x2a100c instanceof _0x30b314||Array['isArray'](_0x2a100c)&&_0x2a100c['every'](_0x21985a=>ne(_0x21985a))))throw new _0x346f93('annotation-invalid-target',null,{'target':_0x2a100c});}['_getNormalizedTarget'](){const _0x48c4df='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x48c4df)?[_0x48c4df]:_0x48c4df;}}function ne(_0x3631bd){return null!==_0x3631bd&&'object'==typeof _0x3631bd&&'nodeType'in _0x3631bd&&0x1===_0x3631bd['nodeType'];}class x extends _0x7c7e6e{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x33cb67=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x36f890(),this['_focusTracker']['on']('change:isFocused',(_0x539089,_0x1d4e2f,_0x5cccc4)=>{_0x5cccc4||this['fire']('blur');});for(const _0x5741f2 of _0x33cb67)this['add'](_0x5741f2);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x49a692){if(this['has'](_0x49a692))throw new _0x346f93('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x49a692['innerView'],_0x49a692),this['_viewToAnnotation']['set'](_0x49a692['view'],_0x49a692);for(const _0x5544c4 of _0x49a692['focusableElements'])this['_focusTracker']['add'](_0x5544c4);this['listenTo'](_0x49a692['focusableElements'],'add',(_0x283381,_0x1acc73)=>{this['_focusTracker']['add'](_0x1acc73);}),this['listenTo'](_0x49a692['focusableElements'],'remove',(_0x5cfab0,_0x34f423)=>{this['_focusTracker']['remove'](_0x34f423);}),this['listenTo'](_0x49a692['view']['focusTracker'],'change:isFocused',(_0x6e5424,_0x1fc62e,_0xf6c429)=>{_0xf6c429&&this['fire']('focus',_0x49a692);}),_0x49a692['updateTargetRect']();const _0x3dfe9c=this['_getOrderInContent'](_0x49a692['view']['targetRect']);return super['add'](_0x49a692,_0x3dfe9c);}['remove'](_0x1e5fe5){if(!this['has'](_0x1e5fe5))throw new _0x346f93('annotationcollection-not-existing-item',null);this['stopListening'](_0x1e5fe5['view']['focusTracker']),this['stopListening'](_0x1e5fe5['focusableElements']);for(const _0x24b178 of _0x1e5fe5['focusableElements'])this['_focusTracker']['remove'](_0x24b178);return this['_viewToAnnotation']['delete'](_0x1e5fe5['view']),this['_innerViewToAnnotation']['delete'](_0x1e5fe5['innerView']),super['remove'](_0x1e5fe5);}['getByInnerView'](_0x423476){return this['_innerViewToAnnotation']['get'](_0x423476);}['getByView'](_0x3f8cca){return this['_viewToAnnotation']['get'](_0x3f8cca);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x42e85e of this)_0x42e85e['updateTargetRect']();this['_sort']();}['_sort'](){const _0x40ecfc=Array['from'](this)['sort']((_0x4f429c,_0x3682fc)=>v(_0x4f429c['view']['targetRect'],_0x3682fc['view']['targetRect']));for(let _0x5ea717=_0x40ecfc['length']-0x1;_0x5ea717>0x0;_0x5ea717--){const _0x154fef=_0x40ecfc[_0x5ea717];_0x5ea717!==this['getIndex'](_0x154fef)&&(this['remove'](_0x154fef),this['add'](_0x154fef));}}['_getOrderInContent'](_0x52fe6a){let _0xb2a01d=0x0;if(!_0x52fe6a)return this['length'];for(const _0x573764 of this){const _0x710452=_0x573764['view']['targetRect'];if(_0x710452){if(v(_0x52fe6a,_0x710452)<0x0)return _0xb2a01d;_0xb2a01d++;}}return _0xb2a01d;}}function v(_0x348047,_0x4d3d0c){if(null===_0x348047&&null===_0x4d3d0c)return 0x0;if(null===_0x348047)return-0x1;if(null===_0x4d3d0c)return 0x1;const _0x4f19f4=_0x348047['top']-_0x4d3d0c['top'];return 0x0==_0x4f19f4?_0x348047['left']-_0x4d3d0c['left']:_0x4f19f4;}class N extends _0x33497c{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x517a58){if(super(_0x517a58),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x517a58 instanceof _0x7b8ae4){const _0x14656d=_0x517a58['locale'];_0x517a58['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x14656d,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x14656d,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x14656d,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x14656d,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x14656d,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x14656d,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x14656d,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x4fc5d6){this['collection']['add'](_0x4fc5d6);}['remove'](_0x410f48){this['collection']['remove'](_0x410f48),_0x410f48['destroy']();}['refreshVisibility'](){for(const _0x3ed24c of this['collection'])_0x3ed24c['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x2af152){return this['collection']['getByInnerView'](_0x2af152);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x51bcaf of this['collection'])_0x51bcaf['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x22ca0a){this['fire']('_activateAnnotation',_0x22ca0a);}['createAnnotation'](_0x5ee4ff){return new d(_0x5ee4ff);}['createAnnotationView'](_0x179183,_0x3b675a){return new T(_0x179183,_0x3b675a);}['_addActiveAnnotation'](_0x1b5b1b){const _0x5cdfee=new Set(this['activeAnnotations']);_0x5cdfee['add'](_0x1b5b1b),this['activeAnnotations']=_0x5cdfee;}['_removeActiveAnnotation'](_0x472447){const _0x335b9b=new Set(this['activeAnnotations']);_0x335b9b['delete'](_0x472447),this['activeAnnotations']=_0x335b9b;}['_bindAnnotationsToVisibleAnnotations'](){const _0x4236c8=this['collection'],_0x454a51=this['_visibleAnnotations'];function _0x2c03ba(_0xf23098){const _0x2eee16=_0xf23098['source'];_0x2eee16['isVisible']&&!_0x454a51['has'](_0x2eee16)?_0x454a51['add'](_0x2eee16):!_0x2eee16['isVisible']&&_0x454a51['has'](_0x2eee16)&&_0x454a51['remove'](_0x2eee16),_0x2eee16['view']['focusTracker']['remove'](_0x2eee16['view']['element']),_0x2eee16['view']['focusTracker']['add'](_0x2eee16['view']['element']);}this['listenTo'](_0x4236c8,'add',(_0x31b8be,_0x2db89b)=>{_0x2db89b['isVisible']&&_0x454a51['add'](_0x2db89b),this['listenTo'](_0x2db89b,'change:isVisible',_0x2c03ba);}),this['listenTo'](_0x4236c8,'remove',(_0x506f1b,_0x95303c)=>{_0x454a51['has'](_0x95303c)&&_0x454a51['remove'](_0x95303c),this['stopListening'](_0x95303c,'change:isVisible',_0x2c03ba);});}['_setupEnterAnnotationKeystroke'](){const _0x409809=_0x5297b4=>{_0x5297b4['on']('ready',()=>{_0x5297b4['keystrokes']['set'](_0x5ee158,(_0xc81c80,_0x4e2259)=>{const _0x5b6e4c=_0x88e0b3(this['activeAnnotations']['values']());_0x5b6e4c&&(_0x5b6e4c['view']['focus'](),_0x4e2259());});});};this['context']instanceof _0x7b8ae4?_0x409809(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x2cb59f,_0x3495eb)=>{_0x409809(_0x3495eb);});}['_setupEscapeAnnotationHandling'](){const _0x5495a5=_0x1efb0e=>{const _0x2142ce=_0x1efb0e['source'],_0x5a0e6a=[];let _0x53e728;if(Array['isArray'](_0x2142ce['target'])){_0x53e728=_0x2142ce['target'][0x0],this['context']instanceof _0x7b8ae4?_0x5a0e6a['push'](this['context']):this['context']['editors']&&_0x5a0e6a['push'](...this['context']['editors']);for(const _0x5c1b78 of _0x5a0e6a)for(const _0x229efe of _0x5c1b78['editing']['view']['domRoots']['values']())if(_0x229efe['contains'](_0x53e728))return void _0x5c1b78['editing']['view']['focus']();_0x53e728['focus']();}};this['listenTo'](this['collection'],'add',(_0x256fe3,_0xccc0f)=>{this['listenTo'](_0xccc0f,'escape',_0x5495a5,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x1ca685,_0x13a2ed)=>{this['stopListening'](_0x13a2ed,'escape',_0x5495a5);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x33497c{['_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(_0x517451){super(_0x517451),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x1011a3=this['context']['config'];_0x1011a3['define']('comments.maxCommentsWhenCollapsed',0x2),_0x1011a3['define']('comments.maxThreadTotalWeight',0x1f4),_0x1011a3['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x1011a3['define']('comments.CommentThreadView',vt),_0x1011a3['define']('comments.CommentView',gt),_0x1011a3['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x4082f4=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x175b3b,_0x496f93)=>this['_addCommentThread'](_0x496f93)),this['on']('submitCommentThread',(_0x35338c,_0x52f658)=>this['_submitCommentThread'](_0x52f658)),this['on']('resolveCommentThread',(_0x38bed6,_0x5427bb)=>this['_resolveCommentThread'](_0x5427bb)),this['on']('resolveCommentThread',(_0x41b34c,_0x2c699e)=>this['_updateActiveAnnotation'](_0x2c699e),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x5422f6,_0xd42247)=>this['_reopenCommentThread'](_0xd42247)),this['on']('reopenCommentThread',(_0x6c816d,_0x53631b)=>this['_updateActiveAnnotation'](_0x53631b),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x57f4d,_0x7ae63d)=>this['_removeCommentThread'](_0x7ae63d)),this['on']('updateCommentThread',(_0x4b9fdf,_0x4fc9c4)=>this['_updateCommentThread'](_0x4fc9c4)),this['on']('updateCommentThread',(_0x282252,_0x59f681)=>this['_updateActiveAnnotation'](_0x59f681),{'priority':'lowest'}),this['on']('addComment',(_0x4a0bfa,_0x2b6a23)=>this['_addComment'](_0x2b6a23)),this['on']('updateComment',(_0x19f74b,_0xe66b64)=>this['_updateComment'](_0xe66b64)),this['on']('removeComment',(_0x215da7,_0x4084fe)=>this['_removeComment'](_0x4084fe)),this['on']('addComment',(_0x4b21d5,{threadId:_0x108eff,isFromAdapter:_0x451333})=>{if(_0x451333)return;const _0x35f631=this['getCommentThread'](_0x108eff),_0x28c35f=_0x35f631&&this['_threadToController']['get'](_0x35f631);_0x28c35f&&_0x28c35f['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x4082f4,'change:activeAnnotations',(_0x134b1d,_0x1c433e,_0xa966e7)=>{const _0x34dad2=Array['from'](_0xa966e7)['map'](_0x188989=>this['_viewToController']['get'](_0x188989['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x34dad2?_0x34dad2['model']:null;});}set['adapter'](_0x40eb63){if(this['_adapter'])throw new _0x346f93('commentsrepository-adapter-already-set');this['_adapter']=_0x40eb63;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x33f5ed=Tt,threadId:_0x53c3f9=_0x442df7(),comments:_0x529547=[],unlinkedAt:_0x5ec18b=null,resolvedAt:_0x579276=null,resolvedBy:_0x4d49c9=null,target:_0x472436=null,context:_0x3f2f35=null,attributes:_0x2fd177={},isResolvable:_0x3e20f9=!0x0,isSubmitted:_0x1ffb3e=!0x1,isFromAdapter:_0x3fad9b=!0x1}={}){return this['fire'](bt('addCommentThread',_0x33f5ed),{'channelId':_0x33f5ed,'threadId':_0x53c3f9,'comments':_0x529547,'unlinkedAt':_0x5ec18b,'resolvedAt':_0x579276,'resolvedBy':_0x4d49c9,'target':_0x472436,'context':_0x3f2f35,'attributes':_0x2fd177,'isFromAdapter':_0x3fad9b,'isResolvable':_0x3e20f9,'isSubmitted':_0x1ffb3e}),this['getCommentThread'](_0x53c3f9);}['openNewCommentThread']({channelId:_0x2be990=Tt,threadId:_0x2bc621=_0x442df7(),target:_0x3746a9,context:_0x3c7ae7=null,isResolvable:_0xcf680b=!0x0}){if(this['_readOnlyChannels']['has'](_0x2be990)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x3746a9)throw new _0x346f93('commentsrepository-missing-target');const _0x1bd95a=this['addCommentThread']({'channelId':_0x2be990,'threadId':_0x2bc621,'target':_0x3746a9,'context':_0x3c7ae7,'isResolvable':_0xcf680b});if(!_0x1bd95a)return null;const _0x5e40ff=this['_threadToController']['get'](_0x1bd95a),_0x4101ff=_0x5e40ff['view']['commentThreadInputView']['commentInputView'],_0x53c2e8=this['context']['plugins']['get'](N),_0x3a3e24=_0x53c2e8['getByInnerView'](_0x5e40ff['view']);return _0x53c2e8['activate'](_0x3a3e24),_0x4101ff['once']('editorReady',()=>_0x4101ff['focus']()),_0x1bd95a;}['hasCommentThread'](_0x40ae53){if('string'!=typeof _0x40ae53)throw new _0x346f93('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x40ae53);}['updateCommentThread']({channelId:_0x172ae6=Tt,threadId:_0x5957f2,context:_0x1fa171,unlinkedAt:_0x3c24e9,attributes:_0x2d9409,isFromAdapter:_0x26bd89=!0x1}){return this['fire'](bt('updateCommentThread',_0x172ae6),{'channelId':_0x172ae6,'threadId':_0x5957f2,'context':_0x1fa171,'unlinkedAt':_0x3c24e9,'attributes':_0x2d9409,'isFromAdapter':_0x26bd89}),this['getCommentThread'](_0x5957f2);}['getCommentThread'](_0x2e662d){if('string'!=typeof _0x2e662d)throw new _0x346f93('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x2e662d);}['fetchCommentThread']({channelId:_0xe9f7a0,threadId:_0x4dcca1}={}){const _0x21ac6b=this['getCommentThread'](_0x4dcca1);if(_0x21ac6b)return Promise['resolve'](_0x21ac6b);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x346f93('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0xe9f7a0,'threadId':_0x4dcca1})['then'](_0x19ca8b=>this['hasCommentThread'](_0x4dcca1)?this['getCommentThread'](_0x4dcca1):_0x19ca8b?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0xe9f7a0},_0x19ca8b)):void 0x0)['catch'](_0x5b86ad=>{throw console['error'](_0x5b86ad),new _0x346f93('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x1dd47c,skipNotAttached:_0x4f233c=!0x1,skipEmpty:_0x3ede8b=!0x1,toJSON:_0x39746d=!0x1}={}){const _0x191c71=[];for(const _0x2e2ae9 of this['_threads']['values']())_0x1dd47c&&_0x2e2ae9['channelId']!==_0x1dd47c||_0x4f233c&&!_0x2e2ae9['isAttached']||_0x3ede8b&&0x0===_0x2e2ae9['length']||_0x191c71['push'](_0x2e2ae9);return _0x39746d?_0x191c71['map'](_0x4a3198=>_0x4a3198['toJSON']()):_0x191c71;}['setActiveCommentThread'](_0x508b18){const _0x7b74b7=this['context']['plugins']['get'](N);if(!_0x508b18)return void(this['activeCommentThread']&&_0x7b74b7['deactivateAll']());const _0x50bce4=this['getCommentThread'](_0x508b18);if(!_0x50bce4)throw new _0x346f93('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x508b18});if(!this['_threadToController']['has'](_0x50bce4))throw new _0x346f93('commentsrepository-active-not-attached',null,{'threadId':_0x508b18});const _0x33bb29=_0x7b74b7['getByInnerView'](this['_threadToController']['get'](_0x50bce4)['view']);_0x7b74b7['activate'](_0x33bb29);}['switchReadOnly'](_0x1c8197,_0xc45b4b){_0x1c8197?this['_readOnlyChannels']['add'](_0xc45b4b):this['_readOnlyChannels']['delete'](_0xc45b4b),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0xd5e156){return this['_readOnlyChannels']['has'](_0xd5e156)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x48d31f,_0x4cf4a2){return new Ct(_0x48d31f,_0x4cf4a2);}['setPermissions'](_0xb32e8f,_0x3db90f=Tt){this['_permissions']['set'](_0x3db90f,_0xb32e8f),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0xbd9507=Tt){return this['_permissions']['has'](_0xbd9507)?this['_permissions']['get'](_0xbd9507):_t;}['_addCommentThread']({channelId:_0x51c68a,threadId:_0x5a7f1a,comments:_0x44f214,unlinkedAt:_0x2924b8,resolvedAt:_0x389d8b,resolvedBy:_0x4fd8ab,target:_0xf0a90a,context:_0x24ec98,attributes:_0x2c5895,isFromAdapter:_0x352c6c,isResolvable:_0x14d648,isSubmitted:_0x2f7557}){if('string'!=typeof _0x5a7f1a)throw new _0x346f93('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x5a7f1a});if(this['hasCommentThread'](_0x5a7f1a))throw new _0x346f93('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x5a7f1a});const _0x503c38=new oe(this,{'channelId':_0x51c68a,'id':_0x5a7f1a,'context':_0x24ec98,'attributes':_0x2c5895,'unlinkedAt':_0x2924b8,'resolvedAt':_0x389d8b,'resolvedBy':_0x4fd8ab?this['context']['plugins']['get'](it)['getUser'](_0x4fd8ab):null,'isResolvable':_0x14d648,'isSubmitted':_0x2f7557||_0x352c6c});this['_threads']['set'](_0x5a7f1a,_0x503c38);for(const _0x58b6e9 of _0x44f214)_0x503c38['_add'](this['_createNewComment']({'threadId':_0x5a7f1a,..._0x58b6e9}));return _0xf0a90a&&_0x503c38['attachTo'](_0xf0a90a),_0x352c6c||!_0x503c38['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x51c68a,'threadId':_0x5a7f1a});}['_submitCommentThread']({channelId:_0x1bd947,threadId:_0x4458f3}){if(!this['hasCommentThread'](_0x4458f3))throw new _0x346f93('commentsrepository-missing-comment-thread',this);const _0x54ac7e=this['getCommentThread'](_0x4458f3);if(_0x54ac7e['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x3bc02b,comments:_0x27b981,resolvedAt:_0x1e40cc,resolvedBy:_0x383a1a,context:_0x30d83d,attributes:_0x385c51}=_0x54ac7e,_0x1856bc=this['context']['plugins']['get']('PendingActions'),_0x5c159f=_0x1856bc['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x1bd947,'threadId':_0x3bc02b,'comments':_0x27b981['map'](_0x209590=>_0x209590['toJSON']()),'resolvedAt':_0x1e40cc,'resolvedBy':_0x383a1a?_0x383a1a['id']:_0x383a1a,'context':_0x30d83d,'attributes':_0x385c51})['then'](({comments:_0x3574d3})=>{_0x1856bc['remove'](_0x5c159f);for(const _0x3302bd of _0x3574d3)this['_updateComment']({'channelId':_0x1bd947,'threadId':_0x4458f3,'commentId':_0x3302bd['commentId'],'createdAt':_0x3302bd['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x39fbbc=>{throw console['error'](_0x39fbbc),new _0x346f93('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0xafbcfa,target:_0x7a3d74}){const _0x4e33c1=this['getCommentThread'](_0xafbcfa);if(!_0x4e33c1)throw new _0x346f93('commentsrepository-attach-missing-comment-thread',this);const _0x2cd5ac=this['context']['plugins']['get']('PendingActions'),_0x39a223=this['context']['plugins']['get'](N),_0x2616ef=this['_createCommentThreadView'](_0x4e33c1),_0x3cceaf=new Ct(_0x4e33c1,_0x2616ef);let _0x2eb439=null;_0x2616ef['on']('change:isDirty',(_0x602b48,_0x1346af,_0x2d3972)=>{_0x2d3972?_0x2eb439=_0x2cd5ac['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x2eb439&&(_0x2cd5ac['remove'](_0x2eb439),_0x2eb439=null);}),this['_threadToController']['set'](_0x4e33c1,_0x3cceaf),this['_viewToController']['set'](_0x2616ef,_0x3cceaf);const _0x4cc920=new T(this['context']['locale'],_0x2616ef);_0x4cc920['bind']('length')['to'](_0x2616ef),_0x4cc920['bind']('isDirty')['to'](_0x2616ef,'isDirty',_0x2616ef,'length',(_0x172aed,_0x469f21)=>_0x172aed||!_0x469f21),_0x4cc920['bind']('isActive')['to'](_0x2616ef),_0x4cc920['type']='comment';const _0x559ce3=new d({'view':_0x4cc920,'target':_0x7a3d74,'type':'comment','isVisible':!_0x4e33c1['isResolved']});return _0x2616ef['on']('escape',()=>{_0x559ce3['fire']('escape');}),this['_bindAnnotationToEditors'](_0x2616ef,_0x559ce3),_0x39a223['add'](_0x559ce3),_0x559ce3;}['_bindAnnotationToEditors'](_0x2ed2b6,_0xb436c8){this['listenTo'](_0x2ed2b6,'editorReady',(_0x81fce2,_0x333ce2)=>{const _0x22bbe0=_0x333ce2['ui']['view']['body']['bodyCollectionContainer'];_0xb436c8['focusableElements']['add'](_0x22bbe0),this['context']instanceof _0x7b8ae4&&this['context']['ui']['focusTracker']['add'](_0x22bbe0);},{'priority':'highest'}),this['listenTo'](_0x2ed2b6,'editorDestroyed',(_0x175ca6,_0x2a8c35)=>{const _0x1d5a88=_0x2a8c35['ui']['view']['body']['bodyCollectionContainer'];_0xb436c8['focusableElements']['has'](_0x1d5a88)&&_0xb436c8['focusableElements']['remove'](_0x1d5a88),this['context']instanceof _0x7b8ae4&&this['context']['ui']['focusTracker']['remove'](_0x1d5a88);});}['_unbindEditors'](_0x505953){this['stopListening'](_0x505953,'editorReady'),this['stopListening'](_0x505953,'editorDestroyed');}['_createCommentThreadView'](_0x35ea2e){const _0x52a15c=this['context']['plugins']['get'](it),{config:_0x531125,locale:_0x253c30}=this['context'],_0x22c666=lt(_0x531125['get']('locale'));return new(0x0,(_0x531125['get']('comments'))['CommentThreadView'])(_0x253c30,_0x35ea2e,_0x52a15c['me'],{'editorConfig':{..._0x531125['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x531125['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x531125['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x531125['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x531125['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x22c666,'CommentView':_0x531125['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0xc9d882,channelId:_0x3cb1b7,resolvedAt:_0x41b268,resolvedBy:_0x4a991b,isFromAdapter:_0x455690}){if(!this['hasCommentThread'](_0xc9d882))throw new _0x346f93('commentsrepository-missing-comment-thread',null,{'threadId':_0xc9d882});const _0x43c46b=this['getCommentThread'](_0xc9d882);if(_0x43c46b['isResolved'])throw new _0x346f93('commentsrepository-resolved-comment-thread',null,{'threadId':_0xc9d882});const _0x362562=this['context']['plugins']['get'](it);if(_0x43c46b['resolvedBy']=_0x362562['getUser'](_0x4a991b),_0x43c46b['resolvedAt']=_0x41b268,_0x455690||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x5d3e35=this['context']['plugins']['get']('PendingActions'),_0x1ec295=_0x5d3e35['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x3cb1b7,'threadId':_0xc9d882})['then'](({resolvedAt:_0x4f8537,resolvedBy:_0x5ef0b9})=>{_0x5d3e35['remove'](_0x1ec295),_0x43c46b['resolvedBy']['id']!==_0x5ef0b9&&(_0x43c46b['resolvedBy']=_0x362562['getUser'](_0x5ef0b9)),_0x43c46b['resolvedAt']=_0x4f8537;})['catch'](_0xe972a=>{throw console['error'](_0xe972a),new _0x346f93('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x37208a,channelId:_0x9c2668,isFromAdapter:_0x444855}){if(!this['hasCommentThread'](_0x37208a))throw new _0x346f93('commentsrepository-missing-comment-thread',null,{'threadId':_0x37208a});const _0x2d691e=this['getCommentThread'](_0x37208a);if(!_0x2d691e['isResolved'])throw new _0x346f93('commentsrepository-reopen-comment-thread',null,{'threadId':_0x37208a});if(_0x2d691e['resolvedBy']=null,_0x2d691e['resolvedAt']=null,_0x444855||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x54419d=this['context']['plugins']['get']('PendingActions'),_0x3077ed=_0x54419d['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x9c2668,'threadId':_0x37208a})['then'](()=>_0x54419d['remove'](_0x3077ed))['catch'](_0x1f6702=>{throw console['error'](_0x1f6702),new _0x346f93('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x56ca5d,isFromAdapter:_0x1481ba}){const _0x4c3690=this['getCommentThread'](_0x56ca5d);if(!_0x4c3690)throw new _0x346f93('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x56ca5d),this['_threads']['delete'](_0x56ca5d),!_0x4c3690['isSubmitted']||_0x1481ba||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x4f5c6e=this['context']['plugins']['get']('PendingActions'),{channelId:_0xab31b8}=_0x4c3690,_0x190469=_0x4f5c6e['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0xab31b8,'threadId':_0x56ca5d})['then'](()=>_0x4f5c6e['remove'](_0x190469))['catch'](_0x43e62a=>{throw console['error'](_0x43e62a),new _0x346f93('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x5ab19d,unlinkedAt:_0x5931fa,context:_0xc72066,attributes:_0x51a8de,isFromAdapter:_0x5da66a}){if('string'!=typeof _0x5ab19d)throw new _0x346f93('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x5ab19d});if(!this['hasCommentThread'](_0x5ab19d))throw new _0x346f93('commentsrepository-missing-comment-thread',null,{'threadId':_0x5ab19d});const _0x5a1be0=this['getCommentThread'](_0x5ab19d);let _0xd34fc1=!0x1;if(void 0x0!==_0xc72066&&_0x5a1be0['context']!==_0xc72066&&(_0x5a1be0['context']=_0xc72066,_0xd34fc1=!0x0),void 0x0!==_0x5931fa&&_0x5a1be0['unlinkedAt']!==_0x5931fa&&(_0x5a1be0['unlinkedAt']=_0x5931fa,_0xd34fc1=!0x0),_0x51a8de&&!wt(_0x51a8de,_0x5a1be0['attributes'])&&(_0x5a1be0['attributes']=_0x51a8de,_0xd34fc1=!0x0),!_0xd34fc1)return Promise['resolve']();if(!_0x5a1be0['isSubmitted']||_0x5da66a||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x490714=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5c664f}=_0x5a1be0,_0x4a31d5=_0x490714['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x5c664f,'threadId':_0x5ab19d,'context':_0xc72066,'unlinkedAt':_0x5931fa,'attributes':_0x51a8de})['then'](()=>_0x490714['remove'](_0x4a31d5))['catch'](_0x3563f8=>{throw console['error'](_0x3563f8),new _0x346f93('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0xcd5c9b){const _0x56721b=this['context']['plugins']['get'](N),_0x2d0b9e=this['getCommentThread'](_0xcd5c9b);if(_0x2d0b9e['_isAttached']=!0x1,this['_threadToController']['has'](_0x2d0b9e)){const _0x2d3c3d=this['_threadToController']['get'](_0x2d0b9e),_0x1511f8=_0x2d3c3d['view'],_0x106e33=_0x56721b['getByInnerView'](_0x1511f8);this['_threadToController']['delete'](_0x2d0b9e),this['_viewToController']['delete'](_0x1511f8),_0x106e33&&_0x56721b['remove'](_0x106e33),_0x2d3c3d['destroy'](),_0x1511f8['destroy']()['then'](()=>{this['_unbindEditors'](_0x1511f8);});}}['_updateActiveAnnotation']({threadId:_0x54806d,resolvedAt:_0xda7357}){const _0x3d6095=!!_0xda7357,_0x809c18=this['context']['plugins']['get'](N),_0x599d61=this['getCommentThread'](_0x54806d);if(this['_threadToController']['has'](_0x599d61)){const _0x33805f=this['_threadToController']['get'](_0x599d61)['view'],_0x165454=_0x809c18['getByInnerView'](_0x33805f);_0x165454&&(_0x3d6095&&_0x809c18['_removeActiveAnnotation'](_0x165454),_0x165454['refreshVisibility']());}}['_getExternalAuthor'](_0x28d990){const _0x95ddf9=this['context']['plugins']['get'](it),_0x56d41d=pt('external:'+_0x28d990),_0x55bdeb=_0x95ddf9['getUser'](_0x56d41d);return _0x55bdeb||_0x95ddf9['addUser']({'id':_0x56d41d,'name':_0x28d990});}['_createNewComment']({threadId:_0x8b6726,commentId:_0x56b712=_0x442df7(),content:_0x260bce,authorId:_0x1e5193,createdAt:_0x531b0d,attributes:_0xe25943}){if('string'!=typeof _0x56b712)throw new _0x346f93('commentsrepository-invalid-commentid');if('string'!=typeof _0x1e5193)throw new _0x346f93('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x260bce||!_0x260bce['trim']())throw new _0x346f93('commentsrepository-invalid-comment-content');const _0x2ac4fd=this['context']['plugins']['get'](it)['getUser'](_0x1e5193);if(!_0x2ac4fd)throw new _0x346f93('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x1e5193});let _0x358a61=null,_0x317106=_0x531b0d;return _0xe25943&&_0xe25943['@external']&&(_0x358a61=this['_getExternalAuthor'](_0xe25943['@external']['authorName']),_0x317106=new Date(_0xe25943['@external']['createdAt'])),new re(this,{'threadId':_0x8b6726,'id':_0x56b712,'author':_0x358a61||_0x2ac4fd,'creator':_0x2ac4fd,'content':_0x260bce,'createdAt':_0x531b0d,'authoredAt':_0x317106,'attributes':_0xe25943});}['_addComment'](_0x136af6){let {threadId:_0x11a1a2,content:_0x2d7aef,attributes:_0x22bc88,isFromAdapter:_0x15b51c}=_0x136af6;const _0x5bd136=this['getCommentThread'](_0x136af6['threadId']);if(!_0x5bd136)throw new _0x346f93('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x557f12=this['_createNewComment'](_0x136af6),{id:_0x1ef4e8}=_0x557f12;if(_0x5bd136['_add'](_0x557f12),_0x15b51c||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x5bd136['isSubmitted'])return Promise['resolve']();const _0x256308=this['context']['plugins']['get']('PendingActions'),{channelId:_0x47af30}=_0x5bd136,_0x26ae0a=_0x256308['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x22bc88||(_0x22bc88={}),this['adapter']['addComment']({'channelId':_0x47af30,'threadId':_0x11a1a2,'commentId':_0x1ef4e8,'content':_0x2d7aef,'attributes':_0x22bc88})['then'](_0x275736=>{_0x256308['remove'](_0x26ae0a),_0x275736&&this['_updateComment']({'channelId':_0x47af30,'threadId':_0x11a1a2,'commentId':_0x1ef4e8,'createdAt':_0x275736['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x4daf07=>{throw console['error'](_0x4daf07),new _0x346f93('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x3fafd7,commentId:_0x557512,content:_0x4d1677,createdAt:_0x3a01b1,attributes:_0xb0c34c,isFromAdapter:_0x322b55}){if(void 0x0!==_0x4d1677&&('string'!=typeof _0x4d1677||!_0x4d1677['trim']()['length']))throw new _0x346f93('commentsrepository-update-comment-invalid-content');const _0x30be9b=this['getCommentThread'](_0x3fafd7),_0x32e829=_0x30be9b['getComment'](_0x557512);if(!_0x32e829)throw new _0x346f93('commentsrepository-update-missing-comment',this);let _0x9f0bb7=!0x1;if(_0x4d1677&&_0x4d1677!==_0x32e829['content']&&(_0x32e829['isEditable']||_0x322b55)&&(_0x32e829['content']=_0x4d1677,_0x9f0bb7=!0x0),_0x3a01b1&&_0x3a01b1!==_0x32e829['createdAt']&&(_0x32e829['createdAt']=_0x3a01b1,_0x32e829['attributes']&&_0x32e829['attributes']['@external']||(_0x32e829['authoredAt']=_0x3a01b1),_0x9f0bb7=!0x0),_0xb0c34c&&!wt(_0xb0c34c,_0x32e829['attributes'])&&(_0x32e829['attributes']=_0xb0c34c,_0x9f0bb7=!0x0),!_0x9f0bb7)return Promise['resolve']();if(_0x30be9b['fire']('commentUpdated'),_0x322b55||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x4229eb=this['context']['plugins']['get']('PendingActions'),{channelId:_0x163fd8}=this['getCommentThread'](_0x32e829['threadId']),_0x489abd=_0x4229eb['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x163fd8,'threadId':_0x3fafd7,'commentId':_0x557512,'content':_0x4d1677,'attributes':_0xb0c34c})['then'](()=>_0x4229eb['remove'](_0x489abd))['catch'](_0x5c437f=>{throw console['error'](_0x5c437f),new _0x346f93('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x2bf43c,commentId:_0x5b8436,isFromAdapter:_0x39a5a7}){const _0x204845=this['getCommentThread'](_0x2bf43c),_0x3cd215=_0x204845['getComment'](_0x5b8436);if(!_0x3cd215)throw new _0x346f93('commentsrepository-remove-missing-comment',this);if(_0x204845['_remove'](_0x3cd215),_0x39a5a7||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x5363c8=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3084f9}=_0x204845,_0x537bb6=_0x5363c8['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x3084f9,'threadId':_0x2bf43c,'commentId':_0x5b8436})['then'](()=>_0x5363c8['remove'](_0x537bb6))['catch'](_0x409063=>{throw console['error'](_0x409063),new _0x346f93('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
|
|
30
|
-
|
|
31
|
-
_0x14feae(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x2dc284,_0x17028f){super();const _0xbe5768=_0x2dc284['context']['plugins']['get'](it)['me'],_0x4bc3d6=_0x2dc284['getCommentThread'](_0x17028f['threadId']),_0x35d918=0x0===_0x4bc3d6['comments']['length'],_0x27043f=_0xbe5768===_0x17028f['author'];this['id']=_0x17028f['id'],this['threadId']=_0x17028f['threadId'],this['author']=_0x17028f['author'],this['creator']=_0x17028f['creator'],this['isExternal']=Boolean(_0x17028f['attributes']&&_0x17028f['attributes']['@external']),this['set']('content',_0x17028f['content']),this['createdAt']=_0x17028f['createdAt']||new Date(),this['set']('authoredAt',_0x17028f['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x4bc3d6,'resolvedAt'),this['set']('attributes',_0x17028f['attributes']||{}),this['bind']('isEditable')['to'](_0x2dc284,'_permissions',()=>{const _0xae4248=_0x2dc284['getPermissions'](_0x4bc3d6['channelId'])['write'],_0x3b2a47=_0x2dc284['getPermissions'](_0x4bc3d6['channelId'])['modifyAll'];return _0x27043f&&_0xae4248||!_0x27043f&&_0x3b2a47;}),this['bind']('isRemovable')['to'](_0x4bc3d6,'isRemovable',_0x2dc284,'_permissions',_0x482eb3=>{const _0x2ebb30=_0x2dc284['getPermissions'](_0x4bc3d6['channelId'])['write'],_0x396609=_0x2dc284['getPermissions'](_0x4bc3d6['channelId'])['modifyAll'];return _0x27043f&&_0x2ebb30||_0x482eb3&&_0x35d918||!_0x27043f&&_0x396609&&!_0x35d918;}),this['bind']('isReadOnly')['to'](_0x4bc3d6,'isReadOnly'),this['_repository']=_0x2dc284;}get['weight'](){return Math['max'](function(_0x119158){const _0x5a0b99=document['createElement']('div');return _0x5a0b99['innerHTML']=_0x119158,_0x5a0b99['textContent']['length'];}(this['content']),0xc8);}['update'](_0x43ef9c){const {threadId:_0x5b7167,id:_0x191aa1}=this;if(!this['_repository']['hasCommentThread'](_0x5b7167))throw new _0x346f93('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x45d793}=this['_repository']['getCommentThread'](_0x5b7167);this['_repository']['fire'](bt('updateComment',_0x45d793,_0x5b7167),{'channelId':_0x45d793,'threadId':_0x5b7167,'commentId':_0x191aa1,..._0x43ef9c});}['setAttribute'](_0x408a57,_0x2073bb){const _0x198228=It(this['attributes']);At(_0x198228,_0x408a57,_0x2073bb),this['update']({'attributes':_0x198228});}['removeAttribute'](_0x4ae884){const _0x459e77=It(this['attributes']);yt(_0x459e77,_0x4ae884),this['update']({'attributes':_0x459e77});}['remove'](_0x53e81f={}){if(!_0x53e81f['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x278e26,id:_0x407aef}=this;if(!this['_repository']['hasCommentThread'](_0x278e26))throw new _0x346f93('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x1fa685}=this['_repository']['getCommentThread'](_0x278e26);this['_repository']['fire'](bt('removeComment',_0x1fa685,_0x278e26),{'channelId':_0x1fa685,'threadId':_0x278e26,'commentId':_0x407aef,..._0x53e81f});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x2833e0,..._0x249ede){for(const _0x51927f of _0x249ede)void 0x0!==_0x51927f&&(_0x2833e0+=':'+String(_0x51927f));return _0x2833e0;}class J extends _0x103186{['refresh'](){const _0x724d93=this['editor']['model']['document']['selection'];for(const _0x20d3ae of _0x724d93['getRanges']())if(this['_hasContent'](_0x20d3ae))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x57a493=_0x442df7()}={}){const _0x2cf282=this['editor']['model'],_0x57897e=[];for(const _0x3f6110 of _0x2cf282['document']['selection']['getRanges']())this['_hasContent'](_0x3f6110)&&_0x57897e['push'](this['_trimToContent'](_0x3f6110));_0x2cf282['change'](_0x523737=>{for(const _0x31e23d of _0x57897e){const _0x117741=_0x442df7()['substr'](0x1,0x5),_0x33a6ef='comment:'+_0x57a493+':'+_0x117741;_0x523737['addMarker'](_0x33a6ef,{'range':_0x31e23d,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x3d2734){for(const _0xb9adb4 of _0x3d2734['getItems']())if(this['_itemIsContent'](_0xb9adb4))return!0x0;return!0x1;}['_itemIsContent'](_0xf6ce36){return _0xf6ce36['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0xf6ce36)&&!_0xf6ce36['is']('element','tableCell');}['_trimToContent'](_0xb1d32f){const _0x3b094d=_0x1c8caf=>!this['_itemIsContent'](_0x1c8caf['item']),_0x3d370a=_0xb1d32f['start']['getLastMatchingPosition'](_0x3b094d),_0x503670=_0xb1d32f['end']['getLastMatchingPosition'](_0x3b094d,{'direction':'backward'});return this['editor']['model']['createRange'](_0x3d370a,_0x503670);}}class P extends _0x3a3b81{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x32163f){super(_0x32163f),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x5cfdbf=this['editor'],_0x4d8bcb=_0x5cfdbf['model']['document']['selection'],_0x371ac4=_0x2dddc1(()=>this['refreshSelectedViews'](),0xa);_0x4d8bcb['on']('change:range',(_0x153ba0,_0x349e7d)=>{_0x349e7d['directChange']&&(_0x371ac4['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x5cfdbf['editing']['view']['document'],'change:isFocused',(_0x5dd95e,_0x3bce56,_0x484155)=>{_0x484155&&_0x371ac4();}),this['listenTo'](_0x5cfdbf['ui']['focusTracker'],'change:isFocused',(_0x146040,_0x8b7320,_0xa8c28b)=>{_0xa8c28b||_0x5cfdbf['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x4316b8=>this['_editorAnnotationsData']['has'](_0x4316b8['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x4cb42e){if(this['_editorAnnotations']['has'](_0x4cb42e['view']))return;this['_editorAnnotations']['add'](_0x4cb42e['view']),this['editor']['ui']['focusTracker']['add'](_0x4cb42e['view']['element']);const _0x54724c=this['editor']['plugins']['get'](N);this['listenTo'](_0x54724c['collection'],'remove',(_0x3dfda9,_0x197bda)=>{this['editor']['ui']['focusTracker']['remove'](_0x197bda['view']['element']),this['_editorAnnotations']['delete'](_0x197bda['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x14d49e){if('function'!=typeof _0x14d49e)throw new _0x346f93('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x14d49e);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x4c73ce,annotations:_0x3b8a88}){const _0x8c260f=[],_0x9a40fc=this['editor']['model']['document']['selection'],_0x1a545b=Array['from'](_0x9a40fc['getRanges']());for(const [_0x2a8a8c,_0x274cc9]of this['_editorAnnotationsData']){const _0x84192e=_0x566a65(_0x274cc9),_0xa38c3b=_0x3b8a88['getByInnerView'](_0x2a8a8c);_0x84192e&&_0xa38c3b&&_0x8c260f['push']({'annotation':_0xa38c3b,'range':_0x84192e});}function _0x566a65(_0x251803){for(const _0x15982d of _0x251803)for(const _0x1f954b of _0x1a545b)if(_0x15982d['containsRange'](_0x1f954b,!_0x9a40fc['isCollapsed']))return _0x15982d;return null;}return _0x8c260f['sort']((_0x5aedf1,_0x187b05)=>{const _0x2954bd=_0x5aedf1['range'],_0x9fa6de=_0x187b05['range'];if(!_0x2954bd['isEqual'](_0x9fa6de)){if(_0x2954bd['containsRange'](_0x9fa6de,!0x0))return 0x1;if(_0x9fa6de['containsRange'](_0x2954bd,!0x0))return-0x1;}return _0x5aedf1['annotation']==_0x4c73ce?-0x1:_0x187b05['annotation']==_0x4c73ce?0x1:0x0;})['map'](_0x14cbeb=>_0x14cbeb['annotation']);}get['_editorAnnotationsData'](){const _0x5ae5c3=new Map();for(const _0x5d9573 of Array['from'](this['_dataCollectors']))for(const [_0x33a0c1,_0x3ad60a]of _0x5d9573())_0x5ae5c3['set'](_0x33a0c1,_0x3ad60a);return _0x5ae5c3;}}class st extends _0x3a3b81{['afterInit'](){const _0x5d7639=this['editor'];if(!_0x5d7639['plugins']['has']('RestrictedEditingModeEditing'))return;_0x5d7639['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x3a3b81{constructor(_0x48e812){super(_0x48e812),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x690eb7=this['editor'],_0x4e9716=_0x690eb7['commands']['get']('importWord'),_0x1084b9=_0x690eb7['plugins']['get'](it);_0x4e9716&&(_0x4e9716['on']('execute',(_0x138700,[,_0xde4c80])=>{_0xde4c80['collaboration_features']={'comments':!0x0,'user_id':_0x1084b9['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x4e9716,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x1e5ef0,_0x32e313){const {comment_threads:_0x322e4a}=_0x32e313;_0x322e4a&&_0x322e4a['forEach'](({thread_id:_0x4f509c,comments:_0x4244e,is_resolved:_0x18a813})=>{const _0x2e05d2=new Date(),_0x23ff07=_0x4244e['map'](({author:_0x7131ba,content:_0x5102fd,created_at:_0x507ee0})=>({'content':_0x5102fd,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x2e05d2,'attributes':{'@external':{'authorName':_0x7131ba,'createdAt':_0x507ee0?new Date(_0x507ee0):new Date(),'source':'importWord'}}})),_0x5c3ddf=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x5c3ddf,'threadId':_0x4f509c,'comments':_0x23ff07,'resolvedAt':_0x18a813?_0x2e05d2:null});});}}class at extends _0x3a3b81{constructor(_0x2bd34d){super(_0x2bd34d),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x1ec875=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x1ec875,'contentInsertion',(_0x162855,_0x3191e3)=>this['_removeMarkersWithoutThreads'](_0x3191e3['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x3d4068){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x3d4068;const _0xf9088f=this['editor']['plugins']['get']('CommentsRepository');for(const _0x5cd6c5 of _0x3d4068['keys']()){const [_0x29975a,_0x2c2e2a]=_0x5cd6c5['split'](':');'comment'!=_0x29975a||_0xf9088f['hasCommentThread'](_0x2c2e2a)||_0x3d4068['delete'](_0x5cd6c5);}return _0x3d4068;}['_registerMarkerInClipboardPipeline'](){const _0x403d43=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x2a8128=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x2a8128&&_0x403d43['_registerMarkerToCopy']('comment',_0x2a8128);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x4fdae0){switch(_0x4fdae0){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class ut extends _0x3a3b81{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x31d74f,_0x4a243e)=>{if(!_0x4a243e['options']['showCommentHighlights'])return null;if(_0x4a243e['options']['ignoreResolvedComments']){const {id:_0x4df5ef}=er(_0x31d74f['markerName']),_0x5e640f=this['editor']['plugins']['get'](o)['getCommentThread'](_0x4df5ef);if(_0x5e640f&&_0x5e640f['isResolved']&&_0x31d74f['item'])return _0x4a243e['consumable']['consume'](_0x31d74f['item'],'addMarker:'+_0x31d74f['markerName']),_0x4a243e['consumable']['consume'](_0x31d74f['item'],'removeMarker:'+_0x31d74f['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x20b246=>{_0x20b246['on']('addMarker:comment',(_0x22835a,_0x123c3f,_0x21d74c)=>{if(!_0x21d74c['options']['showCommentHighlights'])return;const _0x37c47b=_0x123c3f['item'];if(!_0x37c47b)return;const _0x8de303=_0x21d74c['mapper']['toViewElement'](_0x37c47b);this['editor']['model']['schema']['isObject'](_0x37c47b)&&_0x8de303&&!_0x8de303['getCustomProperty']('widget')&&_0x8de303['is']('containerElement')&&_0x395dd4(_0x8de303,_0x21d74c['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x345c6e,{writer:_0x1a08ea,options:_0x3523a0})=>{if(!_0x3523a0['showCommentHighlights'])return null;const _0x410aa6=_0x1a08ea['createContainerElement']('div'),_0x152c19=_0x1a08ea['createEmptyElement']('hr');return _0x1a08ea['addClass']('ck-horizontal-line',_0x410aa6),_0x1a08ea['insert'](_0x1a08ea['createPositionAt'](_0x410aa6,0x0),_0x152c19),_0x410aa6;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x243473,{writer:_0x204470,options:_0x1bb425})=>{if(!_0x1bb425['showCommentHighlights'])return null;const _0x4482d9=_0x204470['createContainerElement']('span'),_0x31a6f3=_0x204470['createEmptyElement']('img');return _0x204470['addClass']('image-inline',_0x4482d9),_0x204470['insert'](_0x204470['createPositionAt'](_0x4482d9,0x0),_0x31a6f3),_0x4482d9;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x56a7e9,{writer:_0x4ad708,options:_0x3d8096})=>{if(_0x3d8096['showCommentHighlights'])return _0x4ad708['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x302f3e,_0x3f1d09,_0x1e967f)=>{_0x1e967f['options']['showCommentHighlights']&&_0x302f3e['stop']();},{'priority':'high'});}}class r extends _0x3a3b81{static get['requires'](){return[o,P,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5d4b44){super(_0x5d4b44),this['set']('isThreadsLoadingPaused',!0x0),_0x5d4b44['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x7f2706,_0x3a0ce7,_0x20fc32,_0x5a798a)=>{const _0x530a51=_0x5d4b44['plugins']['get'](o),_0x266d59=_0x20fc32?er(_0x20fc32)['id']:null;if(_0x5d4b44['model']['change'](()=>{if(_0x266d59){const _0x42dc3d=this['getAllMarkersForId'](_0x266d59);for(const _0x3594c9 of _0x42dc3d)_0x5d4b44['editing']['reconvertMarker'](_0x3594c9);}if(_0x5a798a){const {id:_0x18744b}=er(_0x5a798a),_0x1e038b=_0x530a51['getCommentThread'](_0x18744b);if(_0x1e038b&&!_0x1e038b['isAttached'])return;const _0x4775dd=this['getAllMarkersForId'](_0x18744b);for(const _0x22111f of _0x4775dd)_0x5d4b44['editing']['reconvertMarker'](_0x22111f);}}),_0x266d59){const _0x3ff127=_0x530a51['getCommentThread'](_0x266d59);_0x3ff127&&_0x3ff127['isResolved']&&this['scrollToThreadMarker'](_0x266d59);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3986d1=this['editor'],_0x26f9aa=_0x3986d1['plugins']['get'](o),_0x1f51e0=_0x3986d1['config']['get']('collaboration.channelId');_0x3986d1['commands']['add']('addCommentThread',new J(_0x3986d1)),this['listenTo'](_0x3986d1,'change:isReadOnly',(_0x5c4e50,_0x3852c1,_0x2c0fb9)=>{_0x26f9aa['switchReadOnly'](_0x2c0fb9,_0x3986d1['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x26f9aa,ft('addCommentThread',_0x1f51e0),(_0x109f78,{threadId:_0x22ae9b})=>{const _0x4a7610=this['editor']['plugins']['get'](o)['getCommentThread'](_0x22ae9b);_0x4a7610&&_0x4a7610['unlinkedAt']&&this['_attachArchivedThread'](_0x22ae9b);}),this['listenTo'](_0x26f9aa,ft('removeCommentThread',_0x1f51e0),(_0x452fd3,{threadId:_0x896e6e})=>{_0x3986d1['model']['enqueueChange']({'isUndoable':!0x1},_0x18fdc2=>{const _0xc60bd3=this['getAllMarkersForId'](_0x896e6e);for(const _0x3f75f0 of _0xc60bd3)_0x18fdc2['removeMarker'](_0x3f75f0);});}),this['listenTo'](_0x26f9aa,ft('resolveCommentThread',_0x1f51e0),(_0x2ab06f,{threadId:_0x4f3116})=>{(this['_reconvertMarkers'](_0x4f3116),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x4f3116)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x26f9aa,ft('reopenCommentThread',_0x1f51e0),(_0x787e3e,{threadId:_0x9291aa})=>{this['_reconvertMarkers'](_0x9291aa);},{'priority':'low'}),this['listenTo'](_0x26f9aa,ft('addComment',_0x1f51e0),(_0xf52e33,{threadId:_0x3fb316,isFromAdapter:_0x192b55})=>{const _0x53dac8=this['getAllMarkersForId'](_0x3fb316);if(_0x192b55||0x0==_0x53dac8['length']||!_0x26f9aa['hasCommentThread'](_0x3fb316))return;0x1===_0x26f9aa['getCommentThread'](_0x3fb316)['length']&&_0x3986d1['model']['enqueueChange']({'isUndoable':!0x1},_0x5b83ec=>{for(const _0x4c2e67 of _0x53dac8)_0x5b83ec['updateMarker'](_0x4c2e67,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['afterInit'](){!async function(_0xd7ace4){const _0x477a53=_0x14e530([0x43,0x42,0x54,0x53,0x70,0x57,0x37,0x6d,0x6e,0x55,0x32,0x67,0x62,0x79,0x68,0x64,0x71,0x51,0x30,0x4e,0x36,0x6b,0x6c,0x63,0x75,0x48,0x46,0x59,0x44,0x31,0x41,0x6a,0x38,0x4b,0x76,0x77,0x33,0x50,0x5a,0x47,0x4f,0x66,0x35,0x74,0x78,0x39,0x72,0x58,0x4d,0x65,0x6f,0x73,0x49,0x4c,0x69,0x61,0x52,0x4a,0x7a,0x56,0x45,0x34]),_0x3631ce=0x1ae7b988,_0x129c4e=0x1ae0e0f0^_0x3631ce,_0x5555bd=window[_0x14e530([0x44,0x61,0x74,0x65])][_0x14e530([0x6e,0x6f,0x77])](),_0x1fbf7b=_0xd7ace4[_0x14e530([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2b511e=new window[(_0x14e530([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x454ef0=>{_0x1fbf7b[_0x14e530([0x6f,0x6e,0x63,0x65])](_0x14e530([0x72,0x65,0x61,0x64,0x79]),_0x454ef0);}),_0x3c7785={[_0x14e530([0x6b,0x74,0x79])]:_0x14e530([0x45,0x43]),[_0x14e530([0x75,0x73,0x65])]:_0x14e530([0x73,0x69,0x67]),[_0x14e530([0x63,0x72,0x76])]:_0x14e530([0x50,0x2d,0x32,0x35,0x36]),[_0x14e530([0x78])]:_0x14e530([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]),[_0x14e530([0x79])]:_0x14e530([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]),[_0x14e530([0x61,0x6c,0x67])]:_0x14e530([0x45,0x53,0x32,0x35,0x36])},_0xf56480=_0x1fbf7b[_0x14e530([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x14e530([0x67,0x65,0x74])](_0x14e530([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xab699a(){let _0x5d46b8,_0x168636=null,_0x2c28e6=null;try{if(_0xf56480==_0x14e530([0x47,0x50,0x4c]))return _0x14e530([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5d46b8=_0x2603b9(),!_0x5d46b8)return _0x14e530([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5d46b8[_0x14e530([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2c28e6=_0x34ed59(_0x5d46b8[_0x14e530([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5d46b8[_0x14e530([0x6a,0x74,0x69])])),await _0x4b0432()?_0x2484aa()?_0x1fd1c3()?_0x14e530([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x9e77d2()?(_0x5d46b8[_0x14e530([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14e530([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x168636=_0x58faf0(_0x14e530([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5d46b8[_0x14e530([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14e530([0x74,0x72,0x69,0x61,0x6c])&&(_0x168636=_0x58faf0(_0x14e530([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x5d46b8[_0x14e530([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14e530([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x168636=_0x58faf0(_0x14e530([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x39f416()):_0x14e530([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x14e530([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x14e530([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x229f60){return _0x14e530([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1fd1c3(){const _0x3fe4c0=[_0x14e530([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x14e530([0x74,0x72,0x69,0x61,0x6c])][_0x14e530([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d46b8[_0x14e530([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5555bd/0x3e8:0xe10*_0x129c4e;return _0x5d46b8[_0x14e530([0x65,0x78,0x70])]<_0x3fe4c0;}function _0x2484aa(){const _0x4ed23c=_0x5d46b8[_0x14e530([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4ed23c)return!0x1;if(_0x4ed23c[_0x14e530([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14e530([0x2a])))return!0x0;if(_0x4ed23c[_0x14e530([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14e530([0x43,0x4d,0x54])))return!0x0;if(_0x4ed23c[_0x14e530([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14e530([0x52,0x43,0x4d,0x54]))){if(_0xb707ec())return!0x0;if(_0xb438d4()||_0x185342())return!0x0;}return!0x1;}function _0x9e77d2(){const _0x58f31b=_0x5d46b8[_0x14e530([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x58f31b||0x0==_0x58f31b[_0x14e530([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x365cd4}=new URL(window[_0x14e530([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x58f31b[_0x14e530([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x365cd4))return!0x0;const _0x2b6682=_0x365cd4[_0x14e530([0x73,0x70,0x6c,0x69,0x74])](_0x14e530([0x2e]));return _0x58f31b[_0x14e530([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x581210=>_0x581210[_0x14e530([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14e530([0x2a])))[_0x14e530([0x6d,0x61,0x70])](_0x3d6eae=>_0x3d6eae[_0x14e530([0x73,0x70,0x6c,0x69,0x74])](_0x14e530([0x2e])))[_0x14e530([0x73,0x6f,0x6d,0x65])](_0x19543e=>_0x2b6682[_0x14e530([0x65,0x76,0x65,0x72,0x79])]((_0x43987d,_0x2bd2d1)=>_0x19543e[_0x2bd2d1]===_0x43987d||_0x19543e[_0x2bd2d1]===_0x14e530([0x2a])));}function _0x39f416(){return _0x168636&&_0x2c28e6?new window[(_0x14e530([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e809f,_0x2fac46)=>{_0x168636[_0x14e530([0x74,0x68,0x65,0x6e])](_0x1e809f,_0x2fac46),_0x2c28e6[_0x14e530([0x74,0x68,0x65,0x6e])](_0x356e00=>{_0x356e00!=_0x14e530([0x56,0x61,0x6c,0x69,0x64])&&_0x1e809f(_0x356e00);},_0x2fac46);}):_0x168636||_0x2c28e6||_0x14e530([0x56,0x61,0x6c,0x69,0x64]);}}function _0x34ed59(_0x1efa45,_0x41c105){return new window[(_0x14e530([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e797f=>{if(_0x444acb())return _0x1e797f(_0x14e530([0x56,0x61,0x6c,0x69,0x64]));_0x175802(),_0x1fbf7b[_0x14e530([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x14e530([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x174e9f=!0x1;const _0x43a6e6=_0x442df7();function _0x32eb79(_0xed66db){return!!_0xed66db&&(typeof _0xed66db===_0x14e530([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xed66db===_0x14e530([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xed66db[_0x14e530([0x74,0x68,0x65,0x6e])]===_0x14e530([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xed66db[_0x14e530([0x63,0x61,0x74,0x63,0x68])]===_0x14e530([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x19f5b8(_0x386d89){_0x250ea8(_0x386d89)[_0x14e530([0x74,0x68,0x65,0x6e])](_0x5ac0cc=>{if(!_0x5ac0cc||_0x5ac0cc[_0x14e530([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x14e530([0x6f,0x6b]))return _0x14e530([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4bafd8(_0x23bb1d(_0x43a6e6+_0x41c105))!=_0x5ac0cc[_0x14e530([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x14e530([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x14e530([0x56,0x61,0x6c,0x69,0x64]);})[_0x14e530([0x74,0x68,0x65,0x6e])](_0x36fc9b=>(_0x46ab71(),_0x36fc9b),()=>{const _0xe12e74=_0x307d7b();return null==_0xe12e74?(_0x46ab71(),_0x14e530([0x56,0x61,0x6c,0x69,0x64])):_0x14e530(_0x5555bd-_0xe12e74>(0x3eeb3d88^_0x3631ce)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x14e530([0x74,0x68,0x65,0x6e])](_0x1e797f)[_0x14e530([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1e797f(_0x14e530([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5af1ea=0x1ad15708^_0x3631ce;function _0x46ab71(){const _0x13ecaf=_0x14e530([0x6c,0x6c,0x63,0x74,0x2d])+_0x4bafd8(_0x23bb1d(_0x1efa45)),_0xb3b74a=_0x11c6e5(_0x4bafd8(window[_0x14e530([0x4d,0x61,0x74,0x68])][_0x14e530([0x63,0x65,0x69,0x6c])](_0x5555bd/_0x5af1ea)));window[_0x14e530([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14e530([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13ecaf,_0xb3b74a);}function _0x307d7b(){const _0x538091=_0x14e530([0x6c,0x6c,0x63,0x74,0x2d])+_0x4bafd8(_0x23bb1d(_0x1efa45)),_0x232b25=window[_0x14e530([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14e530([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x538091);return _0x232b25?window[_0x14e530([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11c6e5(_0x232b25),0x10)*_0x5af1ea:null;}function _0x250ea8(_0x1c27f4){return new window[(_0x14e530([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x314d86,_0x511440)=>{_0x1c27f4[_0x14e530([0x74,0x68,0x65,0x6e])](_0x314d86,_0x511440),window[_0x14e530([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x511440,0x1ae66d48^_0x3631ce);});}}_0x1fbf7b[_0x14e530([0x6f,0x6e])](_0x14e530([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5e166c,_0x2e1c69)=>{if(_0x2e1c69[0x0]!=_0x1efa45)return _0x1e797f(_0x14e530([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2e1c69[0x1]={..._0x2e1c69[0x1],[_0x14e530([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x43a6e6};},{[_0x14e530([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14e530([0x68,0x69,0x67,0x68])}),_0x1fbf7b[_0x14e530([0x6f,0x6e])](_0x14e530([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4690de=>{_0x32eb79(_0x4690de[_0x14e530([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x174e9f=!0x0,_0x19f5b8(_0x4690de[_0x14e530([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x14e530([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14e530([0x6c,0x6f,0x77])}),_0x2b511e[_0x14e530([0x74,0x68,0x65,0x6e])](()=>{_0x174e9f||_0x1e797f(_0x14e530([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x444acb(){return _0x1fbf7b[_0x14e530([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14e530([0x76,0x69,0x65,0x77])][_0x14e530([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x14e530([0x61,0x75,0x74,0x6f]);}function _0x175802(){_0x1fbf7b[_0x14e530([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14e530([0x76,0x69,0x65,0x77])][_0x14e530([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14e530([0x61,0x75,0x74,0x6f]);}}function _0x58faf0(_0x2fdbc6){const _0x3fb349=[new window[(_0x14e530([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9fc1f9=>setTimeout(_0x9fc1f9,0x1aee8744^_0x3631ce)),_0x2b511e[_0x14e530([0x74,0x68,0x65,0x6e])](()=>new window[(_0x14e530([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x444540=>{let _0x195dc1=0x0;_0x1fbf7b[_0x14e530([0x6d,0x6f,0x64,0x65,0x6c])][_0x14e530([0x6f,0x6e])](_0x14e530([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x7f86fe,_0x11b8fa)=>{_0x11b8fa[0x0][_0x14e530([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x195dc1++,_0x195dc1==(0x1ae7b870^_0x3631ce)&&(_0x444540(),_0x7f86fe[_0x14e530([0x6f,0x66,0x66])]());});}))];return window[_0x14e530([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14e530([0x72,0x61,0x63,0x65])](_0x3fb349)[_0x14e530([0x74,0x68,0x65,0x6e])](()=>_0x2fdbc6);}async function _0x3593ff(){await _0x2b511e,_0x1fbf7b[_0x14e530([0x6d,0x6f,0x64,0x65,0x6c])][_0x14e530([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x226aba,_0x1fbf7b[_0x14e530([0x6d,0x6f,0x64,0x65,0x6c])][_0x14e530([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x226aba,_0x1fbf7b[_0x14e530([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x14e530([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xb707ec(){return _0x2783dc(_0x14e530([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5ad9d6(_0x14e530([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x14e530([0x73,0x74,0x61,0x74,0x65])]==_0x14e530([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xb438d4(){return _0x2783dc(_0x14e530([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x185342(){return _0x2783dc(_0x14e530([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x246495(_0x68c2ba){const _0x4d5c4e=_0x4ba00d();_0x1fbf7b[_0x4d5c4e]=_0x14e530([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x68c2ba,_0x68c2ba!=_0x14e530([0x56,0x61,0x6c,0x69,0x64])&&_0x3593ff();}function _0x4ba00d(){const _0x5d1cfa=window[_0x14e530([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x14e530([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x14e530([0x6e,0x6f,0x77])]())[_0x14e530([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x14e530([0x2e]),'');let _0x5a2d6a=_0x14e530([0x43]);for(let _0x25e842=0x0;_0x25e842<_0x5d1cfa[_0x14e530([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x25e842+=0x2){let _0x3aa61e=window[_0x14e530([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d1cfa[_0x14e530([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25e842,_0x25e842+0x2));_0x3aa61e>=_0x477a53[_0x14e530([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3aa61e-=_0x477a53[_0x14e530([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5a2d6a+=_0x477a53[_0x3aa61e];}return _0x5a2d6a;}function _0x2603b9(){const _0x20a3a7=_0xf56480[_0x14e530([0x73,0x70,0x6c,0x69,0x74])](_0x14e530([0x2e]));if(0x3!=_0x20a3a7[_0x14e530([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x138489(_0x20a3a7[0x1]);function _0x138489(_0x450ee3){const _0x4d3679=_0x23750a(_0x450ee3);return _0x4d3679&&_0x14097a()?_0x4d3679:null;function _0x14097a(){const _0x438086=_0x4d3679[_0x14e530([0x6a,0x74,0x69])],_0x24f1de=window[_0x14e530([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x438086[_0x14e530([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x438086[_0x14e530([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x286936={..._0x4d3679,[_0x14e530([0x6a,0x74,0x69])]:_0x438086[_0x14e530([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x438086[_0x14e530([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x286936[_0x14e530([0x76,0x63])],_0x23bb1d(_0x286936)==_0x24f1de;}}}async function _0x4b0432(){let _0x5a58b9=!0x0;try{const _0x17389=_0xf56480[_0x14e530([0x73,0x70,0x6c,0x69,0x74])](_0x14e530([0x2e])),[_0x521551,_0x12df42,_0x484a93]=_0x17389;return _0x510916(_0x521551),await _0x1572b6(_0x521551,_0x12df42,_0x484a93),_0x5a58b9;}catch(_0x2a1f3e){return!0x1;}function _0x510916(_0x3593d6){const _0x31787a=_0x23750a(_0x3593d6);_0x31787a&&_0x31787a[_0x14e530([0x61,0x6c,0x67])]==_0x14e530([0x45,0x53,0x32,0x35,0x36])||(_0x5a58b9=!0x1);}async function _0x1572b6(_0x59e5fb,_0x310aad,_0x6ce28f){const _0x25a9df=window[_0x14e530([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x14e530([0x66,0x72,0x6f,0x6d])](_0x595c31(_0x6ce28f),_0x5ad6a0=>_0x5ad6a0[_0x14e530([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2b30f8=new window[(_0x14e530([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x14e530([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x59e5fb+_0x14e530([0x2e])+_0x310aad),_0x9cce6f=window[_0x14e530([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x14e530([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x9cce6f)return;const _0x4e6b96=await _0x9cce6f[_0x14e530([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x14e530([0x6a,0x77,0x6b]),_0x3c7785,{[_0x14e530([0x6e,0x61,0x6d,0x65])]:_0x14e530([0x45,0x43,0x44,0x53,0x41]),[_0x14e530([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x14e530([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x14e530([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x9cce6f[_0x14e530([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x14e530([0x6e,0x61,0x6d,0x65])]:_0x14e530([0x45,0x43,0x44,0x53,0x41]),[_0x14e530([0x68,0x61,0x73,0x68])]:{[_0x14e530([0x6e,0x61,0x6d,0x65])]:_0x14e530([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4e6b96,_0x25a9df,_0x2b30f8)||(_0x5a58b9=!0x1);}}function _0x23750a(_0x5406b6){return _0x5406b6[_0x14e530([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x14e530([0x65,0x79]))?JSON[_0x14e530([0x70,0x61,0x72,0x73,0x65])](_0x595c31(_0x5406b6)):null;}function _0x595c31(_0x153f73){return window[_0x14e530([0x61,0x74,0x6f,0x62])](_0x153f73[_0x14e530([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x14e530([0x2b]))[_0x14e530([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x14e530([0x2f])));}function _0x23bb1d(_0xef1421){let _0x397072=0x1505;function _0x5851a3(_0x3a113d){for(let _0x219c91=0x0;_0x219c91<_0x3a113d[_0x14e530([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x219c91++){const _0x54ad58=_0x3a113d[_0x14e530([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x219c91);_0x397072=(_0x397072<<0x5)+_0x397072+_0x54ad58,_0x397072&=_0x397072;}}function _0x2b0664(_0x43d5c7){Array[_0x14e530([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x43d5c7)?_0x43d5c7[_0x14e530([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2b0664):_0x43d5c7&&typeof _0x43d5c7==_0x14e530([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x14e530([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x43d5c7)[_0x14e530([0x73,0x6f,0x72,0x74])]()[_0x14e530([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xaedba,_0x1c0b56])=>{_0x5851a3(_0xaedba),_0x2b0664(_0x1c0b56);}):_0x5851a3(window[_0x14e530([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x43d5c7));}return _0x2b0664(_0xef1421),_0x397072>>>0x0;}function _0x4bafd8(_0x5dc56d){return _0x5dc56d[_0x14e530([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x14e530([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x14e530([0x30]));}function _0x11c6e5(_0x36aa13){return _0x36aa13[_0x14e530([0x73,0x70,0x6c,0x69,0x74])]('')[_0x14e530([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x14e530([0x6a,0x6f,0x69,0x6e])]('');}function _0x2783dc(_0x9bd382){return _0x1fbf7b[_0x14e530([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x14e530([0x68,0x61,0x73])](_0x9bd382);}function _0x5ad9d6(_0xe92302){return _0x1fbf7b[_0x14e530([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x14e530([0x67,0x65,0x74])](_0xe92302);}function _0x226aba(){}function _0x14e530(_0x30deb3){return _0x30deb3['map'](_0x4f19c9=>String['fromCharCode'](_0x4f19c9))['join']('');}_0x246495(await _0xab699a());}(this);}['destroy'](){const _0x5acb5a=this['editor']['plugins']['get'](o),_0x268efb=this['editor']['config']['get']('collaboration.channelId');for(const _0x139a93 of _0x5acb5a['getCommentThreads']({'channelId':_0x268efb}))_0x5acb5a['_detachCommentThread'](_0x139a93['id']),_0x5acb5a['_threads']['delete'](_0x139a93['id']);super['destroy']();}['hasMarkerForId'](_0x2879fa){return this['getAllMarkersForId'](_0x2879fa)['length']>0x0;}['getAllMarkersForId'](_0x5e3b1b){const _0x1c72a2=[];for(const _0x7086c2 of this['editor']['model']['markers'])_0x7086c2['name']['startsWith']('comment:'+_0x5e3b1b)&&_0x1c72a2['push'](_0x7086c2);return _0x1c72a2;}['scrollToThreadMarker'](_0xbd6028){const _0x3caf5f=this['_getTargetForId'](_0xbd6028);_0x3caf5f&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0xbd6028&&rt({'target':_0x3caf5f[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0xc1fe1d){this['editor']['model']['change'](()=>{for(const _0x1f62c8 of this['getAllMarkersForId'](_0xc1fe1d))this['editor']['editing']['reconvertMarker'](_0x1f62c8);});}['_attachArchivedThread'](_0xf7fb43){const _0x10d5c3=this['editor']['plugins']['get'](o),_0x3c3964=this['editor']['plugins']['get'](P),_0x4c3768=_0x10d5c3['getCommentThread'](_0xf7fb43);if(!_0x4c3768['isAttached']){const _0x199180=_0x4c3768['attachTo'](()=>this['_getTargetForId'](_0x4c3768['id']));_0x3c3964['registerAnnotation'](_0x199180),_0x4c3768['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x4e5d74=this['editor'],_0x259efa=_0x4e5d74['plugins']['get'](it);_0x4e5d74['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x383e74,_0x44b0d6)=>{const {id:_0x5cdd03}=er(_0x383e74['markerName']),_0x3ce5a9=_0x4e5d74['plugins']['get'](o)['getCommentThread'](_0x5cdd03),_0x1116ac=this['activeMarker']&&er(this['activeMarker'])['id']===_0x5cdd03;let _0xb2e4a8;if(_0x3ce5a9&&_0x3ce5a9['isResolved']&&!_0x1116ac&&_0x383e74['item'])return _0x44b0d6['consumable']['consume'](_0x383e74['item'],'addMarker:'+_0x383e74['markerName']),_0x44b0d6['consumable']['consume'](_0x383e74['item'],'removeMarker:'+_0x383e74['markerName']),null;const _0x20f4c6=['ck-comment-marker'];return _0x1116ac&&_0x20f4c6['push']('ck-comment-marker--active'),_0xb2e4a8=_0x3ce5a9&&_0x3ce5a9['length']?_0x3ce5a9['comments']['first']['author']['id']:_0x259efa['me']['id'],{'classes':_0x20f4c6,'attributes':{'data-comment':_0x5cdd03,'data-author-id':_0xb2e4a8}};}}),_0x4e5d74['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x4c68a3,{options:_0x40dd54})=>{if(_0x40dd54['showCommentHighlights'])return null;const _0x1cd396=_0x4e5d74['plugins']['get'](o),_0x38566f=_0x4e5d74['model']['markers']['get'](_0x4c68a3),{id:_0x4e9932,part:_0x414a4d}=er(_0x4c68a3);if(_0x38566f&&!_0x38566f['affectsData'])return null;if(_0x40dd54['ignoreResolvedComments']){const _0x3c6ab2=_0x1cd396['getCommentThread'](_0x4e9932);if(_0x3c6ab2&&_0x3c6ab2['isResolved'])return null;}return{'group':'comment','name':_0x414a4d?_0x4e9932+':'+_0x414a4d:_0x4e9932};}}),_0x4e5d74['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x32668a,{writer:_0x2ff38})=>_0x2ff38['createElement']('$marker',{'data-name':'comment:'+_0x32668a['getAttribute']('id')})}),_0x4e5d74['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x3ab479=this['editor'],_0x10be74=_0x3ab479['plugins']['get'](o),_0x48bf5c=new Set(),_0x5e7db6=new Set();_0x3ab479['model']['document']['registerPostFixer'](_0x1087f1=>{let _0x5aab4e=!0x1;for(const {name:_0x33ebd0,data:_0x1d9176}of _0x3ab479['model']['document']['differ']['getChangedMarkers']()){const {group:_0x4b471e,id:_0xa58d4a}=er(_0x33ebd0);let _0x3e1948=_0x1d9176['newRange'];if('comment'!==_0x4b471e||!_0x3e1948)continue;const _0x5e5833='$graveyard'===_0x3e1948['root']['rootName'];_0x5e5833||(_0x3e1948=dt(_0x3e1948,_0x3ab479['model']),!_0x3e1948||_0x3e1948['isCollapsed']||!_0x1d9176['newRange']||_0x3e1948['isEqual'](_0x1d9176['newRange']))?_0x3ab479['model']['hasContent'](_0x3e1948)&&!_0x5e5833?this['isThreadsLoadingPaused']?_0x48bf5c['add'](_0x33ebd0):this['_handleThreadMarker'](_0x33ebd0,_0xa58d4a):(_0x5e7db6['add'](_0x33ebd0),_0x48bf5c['delete'](_0x33ebd0),_0x1087f1['removeMarker'](_0x33ebd0),_0x5aab4e=!0x0):(_0x1087f1['updateMarker'](_0x33ebd0,{'range':_0x3e1948}),_0x5aab4e=!0x0);}return _0x5aab4e;}),this['on']('change:isThreadsLoadingPaused',(_0x3a236b,_0x491e0d,_0x5069d3)=>{if(!_0x5069d3&&_0x48bf5c['size'])for(const _0x4bc459 of _0x48bf5c){const {id:_0x5d426e}=er(_0x4bc459);_0x48bf5c['delete'](_0x4bc459),_0x3ab479['model']['markers']['get'](_0x4bc459)&&this['_handleThreadMarker'](_0x4bc459,_0x5d426e);}}),this['listenTo'](_0x3ab479['model']['document'],'change',()=>{for(const {name:_0x1f60c0,data:{newRange:_0x29356d}}of _0x3ab479['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3bf905,id:_0x39e197}=er(_0x1f60c0);if('comment'!==_0x3bf905)continue;const _0x4beeff=_0x10be74['getCommentThread'](_0x39e197),_0x162526=this['hasMarkerForId'](_0x39e197);_0x4beeff&&(!_0x4beeff['_hasTargetInContent']&&_0x29356d&&_0x3ab479['editing']['view']['once']('render',()=>{const _0x966347=_0x3ab479['plugins']['get'](N),_0x9a8854=_0x10be74['_threadToController']['get'](_0x4beeff)['view'];_0x966347['getByInnerView'](_0x9a8854)['refreshVisibility']();},{'priority':'low'}),_0x4beeff['_hasTargetInContent']=_0x162526||!!_0x29356d),_0x29356d||(_0x5e7db6['add'](_0x1f60c0),_0x48bf5c['delete'](_0x1f60c0));}for(const _0x34e8cb of _0x5e7db6){const {id:_0x311ee7}=er(_0x34e8cb),_0x208c6f=_0x10be74['getCommentThread'](_0x311ee7);if(_0x48bf5c['delete'](_0x34e8cb),!_0x208c6f)continue;const _0x185b72=this['hasMarkerForId'](_0x311ee7);_0x185b72||_0x208c6f['isSubmitted']?_0x185b72||_0x208c6f['unlinkedAt']||_0x208c6f['setUnlinkedAt'](new Date()):_0x208c6f['remove']();}_0x5e7db6['clear']();});}['_getTargetForId'](_0x1f9e74){const _0x55d171=this['editor'],_0x2630a5=this['getAllMarkersForId'](_0x1f9e74);return et(_0x55d171['editing'],_0x2630a5);}['_getTextContext'](_0x3236d3){const _0x56c8f8=this['getAllMarkersForId'](_0x3236d3);let _0x65ff2d='',_0x3b9c2b=!0x1;for(const _0xc214d5 of _0x56c8f8){const _0x22699f=_0xc214d5['getRange']();for(const _0x1a72eb of Array['from'](_0x22699f['getItems']()))_0x1a72eb['is']('$textProxy')?(_0x65ff2d&&_0x3b9c2b&&(_0x65ff2d+='\x20',_0x3b9c2b=!0x1),_0x65ff2d+=_0x1a72eb['data']):_0x3b9c2b=!0x0;_0x3b9c2b=!0x0;}return _0x65ff2d['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x2788ca,_0x476c87){const _0x1dab7d=this['editor'],_0xe365af=_0x1dab7d['plugins']['get'](o);let _0x4c524a=_0xe365af['getCommentThread'](_0x476c87);const _0x59837b=_0x1dab7d['config']['get']('collaboration.channelId'),_0x2d18c6=_0x1dab7d['plugins']['get'](P);if(_0x4c524a&&(_0x4c524a['unlinkedAt']&&_0x4c524a['setUnlinkedAt'](null),_0x4c524a['isAttached']))return _0x4c524a;return!this['getAllMarkersForId'](_0x476c87)[0x0]['managedUsingOperations']?_0x1dab7d['editing']['view']['once']('render',()=>{if(_0xe365af['getCommentThread'](_0x476c87))return;const _0x2b5650=_0x1dab7d['plugins']['get'](N);_0x4c524a=_0xe365af['openNewCommentThread']({'channelId':_0x59837b,'threadId':_0x476c87,'target':()=>this['_getTargetForId'](_0x476c87),'context':{'type':'text','value':this['_getTextContext'](_0x476c87)}});const _0x241eb4=_0xe365af['_threadToController']['get'](_0x4c524a)['view'],_0x4ac33f=_0x2b5650['getByInnerView'](_0x241eb4);_0x4ac33f&&_0x2d18c6['registerAnnotation'](_0x4ac33f);},{'priority':'low'}):_0xe365af['fetchCommentThread']({'channelId':_0x59837b,'threadId':_0x476c87})['then'](_0x4f1a92=>{if('destroyed'!==_0x1dab7d['state']){if(_0x4c524a=_0x4f1a92,_0x4c524a&&!_0x4c524a['isAttached']){const _0x2d5d56=_0x4c524a['attachTo'](()=>this['_getTargetForId'](_0x476c87));_0x2d18c6['registerAnnotation'](_0x2d5d56),_0x4c524a['isResolved']&&this['_reconvertMarkers'](_0x476c87);}else{if(!_0x4c524a){const _0x158fc7=this['getAllMarkersForId'](_0x476c87);_0x1dab7d['model']['change'](_0x2d3692=>{for(const _0x347493 of _0x158fc7)_0x2d3692['removeMarker'](_0x347493);});}}}}),_0x4c524a;}['_handleThreadMarker'](_0x2226d9,_0x32c669){const _0x221dc0=this['_attachMarkerToThread'](_0x2226d9,_0x32c669);_0x221dc0&&!_0x221dc0['context']&&_0x221dc0['setContext']({'type':'text','value':this['_getTextContext'](_0x32c669)});}['_initAriaMarkerChangeAnnouncements'](){const _0x576b2c=this['editor'];ot(_0x576b2c['model'],({left:_0x194486,entered:_0x243343})=>{for(const _0x5dc41f of _0x194486)if(mt(_0x5dc41f)){_0x576b2c['ui']['ariaLiveAnnouncer']['announce'](S(_0x576b2c['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x53402c of _0x243343)if(mt(_0x53402c)){_0x576b2c['ui']['ariaLiveAnnouncer']['announce'](S(_0x576b2c['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x139946)));break;}});}}function ft(_0x55408f,_0x369ec0){return _0x369ec0?_0x55408f+':'+_0x369ec0:_0x55408f;}function er(_0x5d76ad){const _0x5e773c=_0x5d76ad['split'](':');return{'group':_0x5e773c[0x0],'id':_0x5e773c[0x1],'part':_0x5e773c[0x2]};}function dt(_0x1cf57e,_0x531485){const _0xfec923=_0x531485['schema'],_0x48ccb7=_0x531485['createRange'](_0x1cf57e['start']);for(const _0x20c0ae of _0x1cf57e['getWalker']()){const {type:_0x7f4165,item:_0x17944d,nextPosition:_0x32ecde}=_0x20c0ae;if('text'===_0x7f4165||_0xfec923['isObject'](_0x17944d)){const _0x2318df=_0x531485['createPositionBefore'](_0x17944d);_0x48ccb7['isCollapsed']&&(_0x48ccb7['start']=_0x2318df),_0x48ccb7['end']=_0x32ecde;}}return _0x48ccb7;}function mt(_0x4fe3ce){return'comment'===er(_0x4fe3ce['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 _0x3a3b81{['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 _0x3bd6df=this['editor'],_0x27581a=_0x3bd6df['plugins']['get'](o),_0x344a9c=_0x3bd6df['plugins']['get'](r),_0x328cb7=_0x3bd6df['plugins']['get'](N),_0x41f9ce=_0x3bd6df['plugins']['get'](P);_0x3bd6df['ui']['componentFactory']['add']('comment',()=>{const _0x37fb05=this['_createUIButton'](_0x3ea547);return _0x37fb05['tooltip']=!0x0,_0x37fb05;}),_0x3bd6df['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x22933f)),_0x41f9ce['addSourceCollector'](()=>{const _0x1d5404=[];for(const [_0x35cfab,_0x2f7037]of _0x27581a['_threadToController']){const _0x12afde=_0x344a9c['getAllMarkersForId'](_0x35cfab['id']),_0x4832b7=_0x12afde['map'](_0x8864fa=>_0x8864fa['getRange']());_0x12afde['length']>0x0&&_0x1d5404['push']([_0x2f7037['view'],_0x4832b7]);}return _0x1d5404;}),this['listenTo'](_0x328cb7,'change:activeAnnotations',(_0x99ba51,_0xe9fbda,_0x2ed2aa)=>{const _0x9657e2=Array['from'](_0x2ed2aa)['map'](_0x265fcf=>_0x265fcf['innerView'])['find'](_0x50f0ac=>_0x27581a['_viewToController']['has'](_0x50f0ac));if(!_0x9657e2)return void(_0x344a9c['activeMarker']=null);const _0x5f2cd5=_0x27581a['_viewToController']['get'](_0x9657e2)['model']['id'],_0x5eeeaf='comment:'+_0x5f2cd5;_0x5f2cd5&&_0x344a9c['hasMarkerForId'](_0x5f2cd5)?_0x344a9c['activeMarker']=_0x5eeeaf:_0x344a9c['activeMarker']&&(_0x344a9c['activeMarker']=null);}),this['listenTo'](_0x27581a,'removeCommentThread',(_0x261e87,{threadId:_0x598683,isFromAdapter:_0x1d1bbd})=>{!_0x1d1bbd&&_0x3bd6df['ui']['focusTracker']['isFocused']&&_0x344a9c['hasMarkerForId'](_0x598683)&&_0x3bd6df['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x27581a,'addComment',(_0x4c2c56,{threadId:_0x4cf578,isFromAdapter:_0x28bb06})=>{if(_0x28bb06||!_0x344a9c['hasMarkerForId'](_0x4cf578)||!_0x27581a['hasCommentThread'](_0x4cf578))return;0x1===_0x27581a['getCommentThread'](_0x4cf578)['length']&&(_0x3bd6df['editing']['view']['focus'](),_0x4c2c56['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1cefd6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x12b8b8;for(const _0x445e27 in _0x1cefd6){const _0x33e4b0=_0x445e27,_0x48421e=_0x1cefd6[_0x33e4b0];if('commentsLicenseKeyValid'==_0x48421e||'commentsLicenseKeyInvalid'==_0x48421e||'commentsLicenseKeyExpired'==_0x48421e||'commentsLicenseKeyDomainLimit'==_0x48421e||'commentsLicenseKeyNotAllowed'==_0x48421e||'commentsLicenseKeyEvaluationLimit'==_0x48421e||'commentsLicenseKeyTrialLimit'==_0x48421e||'commentsLicenseKeyDevelopmentLimit'==_0x48421e||'commentsLicenseKeyUsageLimit'==_0x48421e){delete _0x1cefd6[_0x33e4b0],_0x12b8b8=_0x48421e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x12b8b8&&_0x1cefd6['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x12b8b8&&_0x1cefd6['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x12b8b8&&_0x1cefd6['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x12b8b8&&_0x1cefd6['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x12b8b8&&_0x1cefd6['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x12b8b8&&_0x1cefd6['_showLicenseError']('trialLimit'),'commentsLicenseKeyDevelopmentLimit'==_0x12b8b8&&_0x1cefd6['_showLicenseError']('developmentLimit'),'commentsLicenseKeyUsageLimit'==_0x12b8b8&&_0x1cefd6['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x592cc2){const _0x5a7b32=this['editor'],_0x5db6ad=new _0x592cc2(_0x5a7b32['locale']),_0x3fc459=_0x5a7b32['commands']['get']('addCommentThread');return _0x5db6ad['set']({'label':S(_0x5a7b32['locale'],'Comment'),'icon':xt}),_0x5db6ad['bind']('isEnabled')['to'](_0x3fc459),this['listenTo'](_0x5db6ad,'execute',()=>_0x3fc459['execute']()),_0x5db6ad;}}class s extends _0x3a3b81{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x193d6f){super(_0x193d6f),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x24fdd2,_0x5fee92,_0x251fd5)=>{_0x251fd5?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x429653,_0x5057ed]of this['editor']['commands'])_0x5057ed['affectsData']&&'addCommentThread'!==_0x429653&&_0x5057ed['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0x3ebc83=this['editor']['editing']['view']['document'];this['listenTo'](_0x3ebc83,'cut',_0x381301=>_0x381301['stop'](),{'priority':'highest'}),this['listenTo'](_0x3ebc83,'clipboardInput',_0x504cde=>_0x504cde['stop'](),{'priority':'highest'}),this['listenTo'](_0x3ebc83,'delete',_0x2aacbe=>_0x2aacbe['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x48a751,_0xb21f37]of this['editor']['commands'])_0xb21f37['affectsData']&&'addCommentThread'!==_0x48a751&&_0xb21f37['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0x33497c{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2c09d3){super(_0x2c09d3),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x47dda8=this['context']['plugins']['get'](N);this['listenTo'](_0x47dda8,'_activateAnnotation',(_0x387cbb,_0xeb972)=>{for(const _0x3e50a1 of this['activeUIs']){const _0x59b7da=this['_uis']['get'](_0x3e50a1);(0x0,this['_uisData']['get'](_0x3e50a1)['filter'])(_0xeb972)&&_0x59b7da['setActiveAnnotation'](_0xeb972);}}),this['listenTo'](_0x47dda8,'_deactivateAllAnnotations',()=>{for(const _0x5346c5 of this['activeUIs']){this['_uis']['get'](_0x5346c5)['setActiveAnnotation'](null);}}),this['listenTo'](_0x47dda8['_visibleAnnotations'],'add',(_0x9f2059,_0x32517e)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x32517e);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x8d162){return this['activeUIs']['has'](_0x8d162);}['activate'](_0x23e3af,_0x317515=()=>!0x0){const _0x4462c2=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x23e3af))throw new _0x346f93('annotationsuis-missing-ui',this,{'uiName':_0x23e3af});this['isActive'](_0x23e3af)&&this['deactivate'](_0x23e3af),this['activeUIs']['add'](_0x23e3af);const _0x3ac92e=new x();!function({source:_0x8cd4c4,target:_0x24ac77,filter:_0x3c0bad}){for(const _0x463ad0 of _0x8cd4c4)_0x3c0bad(_0x463ad0)&&_0x24ac77['add'](_0x463ad0);_0x24ac77['listenTo'](_0x8cd4c4,'add',(_0x4ffc0f,_0xda1c78)=>{_0x3c0bad(_0xda1c78)&&_0x24ac77['add'](_0xda1c78);}),_0x24ac77['listenTo'](_0x8cd4c4,'remove',(_0x1d1b36,_0x238c9c)=>{_0x24ac77['has'](_0x238c9c)&&_0x24ac77['remove'](_0x238c9c);});}({'source':_0x4462c2['_visibleAnnotations'],'target':_0x3ac92e,'filter':_0x317515}),this['_uisData']['set'](_0x23e3af,{'collection':_0x3ac92e,'filter':_0x317515});const _0x18e6f2=this['_uis']['get'](_0x23e3af);_0x18e6f2['attach'](_0x3ac92e),this['listenTo'](_0x18e6f2,'change:activeAnnotation',(_0x3f2d8d,_0x20bfaf,_0x56f2c3,_0x25ea6b)=>{_0x25ea6b&&_0x4462c2['_removeActiveAnnotation'](_0x25ea6b),_0x56f2c3&&_0x4462c2['_addActiveAnnotation'](_0x56f2c3);});}['deactivate'](_0xd47e07){if(this['activeUIs']['delete'](_0xd47e07),!this['_uis']['has'](_0xd47e07))throw new _0x346f93('annotationsuis-missing-ui',this,{'uiName':_0xd47e07});const _0x45a4d2=this['_uis']['get'](_0xd47e07);_0x45a4d2['detach'](),this['stopListening'](_0x45a4d2),this['_uisData']['get'](_0xd47e07)['collection']['destroy'](),this['_uisData']['delete'](_0xd47e07);}['switchTo'](_0x1b9431){if(!this['_uis']['has'](_0x1b9431))throw new _0x346f93('annotationsuis-missing-ui',this,{'uiName':_0x1b9431});const _0x294ce9=this['context']['plugins']['get'](N),_0x2fd88b=Array['from'](_0x294ce9['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x1b9431);const _0x2e35e3=this['_uis']['get'](_0x1b9431);_0x2e35e3['setActiveAnnotation'](_0x2fd88b),_0x2e35e3['_setSelectedAnnotations']&&_0x2fd88b&&_0x2e35e3['_setSelectedAnnotations']([_0x2fd88b]);}['deactivateAll'](){for(const _0x3f8864 of this['activeUIs'])this['deactivate'](_0x3f8864);}['register'](_0x2b2786,_0x3363e1){if(this['_uis']['has'](_0x2b2786))throw new _0x346f93('annotationsuis-register-already-registered');if('function'!=typeof _0x3363e1['attach']||'function'!=typeof _0x3363e1['detach']||'function'!=typeof _0x3363e1['setActiveAnnotation'])throw new _0x346f93('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x2b2786,_0x3363e1);}['refilterAnnotations'](){const _0x3370ed=this['context']['plugins']['get'](N)['collection'],_0x419950=new Map(),_0x22021e=Array['from'](this['activeUIs']);for(const _0x6361c6 of this['activeUIs']){const _0x10e68c=this['_uisData']['get'](_0x6361c6)['collection'];for(const _0x37f277 of _0x10e68c)_0x419950['set'](_0x37f277,_0x6361c6);}for(const _0x599403 of _0x3370ed){const _0x57340a=_0x419950['get'](_0x599403);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x599403);const _0x49bc8d=_0x22021e['find'](_0xa98036=>this['_uisData']['get'](_0xa98036)['filter'](_0x599403));_0x57340a!==_0x49bc8d&&(_0x57340a&&this['_uisData']['get'](_0x57340a)['collection']['remove'](_0x599403),_0x49bc8d&&this['_uisData']['get'](_0x49bc8d)['collection']['add'](_0x599403));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1214f4){const _0x357999=[];for(const _0xa280d4 of this['activeUIs']){(0x0,this['_uisData']['get'](_0xa280d4)['filter'])(_0x1214f4)&&_0x357999['push'](_0xa280d4);}if(_0x357999['length']>0x1)throw new _0x346f93('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x357999,'annotationType':_0x1214f4['type']});}}const he=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0xbfa8e9){super(_0xbfa8e9);const _0x8e585c=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 _0x36f890(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x8e585c['to']('class')],'style':{'minHeight':_0x8e585c['to']('minHeight',_0x27b26a=>'number'==typeof _0x27b26a?he(_0x27b26a+0xa):null)},'dir':_0xbfa8e9['uiLanguageDirection'],'role':'application','aria-label':S(_0xbfa8e9,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0xbfa8e9,'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',_0x45bde7=>{this['_updateItemPositionInFocusables'](_0x45bde7['source']);}),this['list']['forEach'](_0x29955e=>{this['focusTracker']['add'](_0x29955e['element']),this['_updateItemPositionInFocusables'](_0x29955e);}),this['list']['on']('change',(_0x49000c,_0x1e4112)=>{for(const _0x33ad23 of _0x1e4112['removed'])this['focusTracker']['remove'](_0x33ad23['element']),this['focusables']['remove'](_0x33ad23);for(const _0x17004f of _0x1e4112['added'])this['focusTracker']['add'](_0x17004f['element']),this['_updateItemPositionInFocusables'](_0x17004f);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x34c4aa){const _0x4ac65a=this['focusables']['getIndex'](_0x34c4aa);let _0xed830d,_0x31b692;for(const _0x4986e5 of this['focusables'])if(_0x34c4aa['top']<_0x4986e5['top']){_0xed830d=_0x4986e5;break;}if(_0x31b692=_0xed830d?this['focusables']['getIndex'](_0xed830d):this['focusables']['length'],-0x1!==_0x4ac65a){if(_0x4ac65a===_0x31b692-0x1)return;this['focusables']['remove'](_0x34c4aa),_0x31b692=_0xed830d?this['focusables']['getIndex'](_0xed830d):this['focusables']['length'];}this['focusables']['add'](_0x34c4aa,_0x31b692);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x46f73b){super(_0x46f73b),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x4f6b67,_0x2a9518)=>_0x4f6b67+_0x2a9518),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x204313=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x204313['to']('isAnimationDisabled',_0x4d70d7=>_0x4d70d7?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x204313['to']('top',_0x17aaee=>qt(_0x17aaee))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0xf4fe6e=this['element']['clientHeight'];_0xf4fe6e&&(this['height']=_0xf4fe6e);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x33497c{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x498209){super(_0x498209),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 _0x37d13a=this['context']['config']['get']('sidebar.container');_0x37d13a&&this['setContainer'](_0x37d13a);}['setContainer'](_0x3ebbad){if(!y(_0x3ebbad))throw new _0x346f93('sidebar-setcontainer-invalid-element');this['container']=_0x3ebbad;}['_attachToContainer']({viewClass:_0x3a1884='',spaceBetweenItems:_0x1a0a56=0x19}={}){if(!y(this['container']))throw new _0x346f93('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x3a1884,this['_spaceBetweenItems']=_0x1a0a56;}['rearrange']({removedAnnotation:_0x3f8b4f,previousAnnotation:_0x300df2,nextAnnotation:_0x43e18a}){const _0x3c2677=this['getSidebarItemView'](_0x3f8b4f);this['view']['list']['remove'](_0x3c2677),this['_destroySidebarItemView'](_0x3f8b4f),_0x300df2&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x300df2)),_0x43e18a&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x43e18a)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x4ffe44,activatedAnnotation:_0x59f4a2,disableAnimationOnActivatedAnnotation:_0x3b31a1}){if(this['_activeAnnotation']=_0x59f4a2,_0x4ffe44){_0x4ffe44['isActive']=!0x1;const _0x318b8d=this['getSidebarItemView'](_0x4ffe44);_0x318b8d&&_0x3b31a1&&(_0x318b8d['isAnimationDisabled']=!0x1);}if(_0x59f4a2){const _0x1592b7=this['getSidebarItemView'](_0x59f4a2);_0x1592b7&&(_0x59f4a2['isActive']=!0x0,_0x3b31a1&&(_0x1592b7['isAnimationDisabled']=!0x0,_0x1592b7['top']+=0x1),this['_alignToTargetRect'](_0x1592b7));}}['_detachFromContainer'](_0x12e468){if(this['view']['element']['remove'](),_0x12e468){for(const _0x306ac1 of _0x12e468)this['_destroySidebarItemView'](_0x306ac1);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x2dd7bc,_0x3c3206){_0x3c3206||(_0x3c3206=_0x2dd7bc['view']);const _0x2a1224=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x2a1224,_0x2dd7bc),this['_annotationToSidebarItemView']['set'](_0x2dd7bc,_0x2a1224),_0x2a1224['content']['add'](_0x3c3206),this['listenTo'](_0x2dd7bc['view'],'change:targetRect',(_0x4903c7,_0x2b841b,_0x3420fb)=>{const _0xf8d38e=this['_getTargetTop'](_0x2dd7bc,_0x3420fb);_0x2a1224['_targetTop']!=_0xf8d38e&&(_0x2a1224['_targetTop']=_0xf8d38e,this['_setItemTop'](_0x2a1224,_0xf8d38e));}),this['listenTo'](_0x2a1224,'change:top',()=>{this['_recalculate'](_0x2a1224,'top');}),this['listenTo'](_0x2a1224,'change:bottom',()=>{this['_recalculate'](_0x2a1224,'bottom');}),this['_alignToTargetRect'](_0x2a1224);const _0x5ea556=this['_getItemBefore'](_0x2a1224);if(_0x5ea556)this['_alignAfterItem'](_0x5ea556,_0x2a1224)||this['_alignToTargetRect'](_0x2a1224);else this['_alignToTargetRect'](_0x2a1224);return this['_updateLastItem'](),this['view']['list']['add'](_0x2a1224),_0x2a1224;}['_alignForTopChange'](_0x3fee34){if(!_0x3fee34['content']['length'])return;const _0x4bc0a0=this['_getItemBefore'](_0x3fee34);if(!_0x4bc0a0)return;const _0x4376f6=this['_sidebarItemViewToAnnotation']['get'](_0x4bc0a0),_0x553008=this['_activeAnnotation'];_0x553008&&_0x553008===_0x4376f6?this['_alignAfterItem'](_0x4bc0a0,_0x3fee34):this['_alignBeforeItem'](_0x3fee34,_0x4bc0a0);}['_alignForBottomChange'](_0x1a50c7){if(!_0x1a50c7['content']['length'])return;const _0x29cac7=this['_getItemAfter'](_0x1a50c7);if(!_0x29cac7)return;const _0x394858=this['_sidebarItemViewToAnnotation']['get'](_0x29cac7),_0xfd4770=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x564426=this['_activeAnnotation'];_0x564426&&_0x564426===_0x394858&&_0xfd4770?(this['_alignBeforeItem'](_0x29cac7,_0x1a50c7),this['_alignAfterItem'](_0x1a50c7,_0x29cac7)):_0x564426&&_0x564426===_0x394858?this['_alignBeforeItem'](_0x29cac7,_0x1a50c7):this['_alignAfterItem'](_0x1a50c7,_0x29cac7);}['_recalculate'](_0x466834,_0x4899d0){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x6fb5bb,changedProp:_0x504c5f}of this['_recalculateBuffer'])'top'===_0x504c5f?this['_alignForTopChange'](_0x6fb5bb):this['_alignForBottomChange'](_0x6fb5bb);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x466834,'changedProp':_0x4899d0});}['getSidebarItemView'](_0x257a21){return this['_annotationToSidebarItemView']['get'](_0x257a21);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x307eb3){const _0xd9be1c=this['getSidebarItemView'](_0x307eb3);this['stopListening'](_0xd9be1c),this['stopListening'](_0x307eb3['view']),_0xd9be1c['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x307eb3),this['_sidebarItemViewToAnnotation']['delete'](_0xd9be1c);}['_createSidebarView'](){const _0x1afaee=new V(this['context']['locale']);return _0x1afaee['render'](),this['on']('change:_lastItem',(_0x2ce58d,_0x77dde1,_0x372fa3,_0x103c88)=>{_0x103c88&&_0x1afaee['unbind']('minHeight'),_0x372fa3?_0x1afaee['bind']('minHeight')['to'](_0x372fa3,'bottom'):_0x1afaee['minHeight']=null;}),_0x1afaee;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x4f4ada){const _0x1ab0ba=this['_sidebarItemViewToAnnotation']['get'](_0x4f4ada),_0x28bf5e=_0x1ab0ba&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x1ab0ba)-0x1);return _0x28bf5e&&this['getSidebarItemView'](_0x28bf5e)||null;}['_getItemAfter'](_0x51f855){const _0x42fd25=this['_sidebarItemViewToAnnotation']['get'](_0x51f855),_0x3a96a8=_0x42fd25&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x42fd25)+0x1);return _0x3a96a8&&this['getSidebarItemView'](_0x3a96a8)||null;}['_alignBeforeItem'](_0x59878a,_0x1396af){_0x59878a['updateHeight']();const _0xe5c42e=R(_0x1396af['bottom']+this['_spaceBetweenItems'],_0x59878a['top']);return!!_0xe5c42e&&(this['_setItemTop'](_0x1396af,_0x1396af['top']-_0xe5c42e),!0x0);}['_alignAfterItem'](_0x173305,_0x7270df){_0x173305['updateHeight']();const _0x401175=R(_0x173305['bottom']+this['_spaceBetweenItems'],_0x7270df['top']);return!!_0x401175&&(this['_setItemTop'](_0x7270df,_0x7270df['top']+_0x401175,!0x1),!0x0);}['_alignToTargetRect'](_0x51c4cc){const _0x5412e0=this['_sidebarItemViewToAnnotation']['get'](_0x51c4cc);if(!_0x5412e0||!_0x5412e0['target']||!_0x5412e0['targetRect'])return;const _0x1e2b30=this['_getTargetTop'](_0x5412e0,_0x5412e0['targetRect']);this['_setItemTop'](_0x51c4cc,_0x1e2b30);}['_getTargetTop'](_0x485da1,_0x4121bc){if(null===_0x4121bc)return 0x0;if(_0x485da1['target']instanceof _0x30b314)return _0x4121bc['top'];{const _0x42e3c5=new _0x30b314(this['view']['element'])['top'];return _0x4121bc['top']-_0x42e3c5;}}['_setItemTop'](_0x1a9327,_0x2e91a7,_0x5235c9=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x5235c9&&(_0x2e91a7=Math['max'](_0x2e91a7,this['_getMaxAvailableTop'](_0x1a9327))),_0x1a9327['top']=_0x2e91a7;}['_getMaxAvailableTop'](_0x4939a2){let _0x36fa58=this['_getItemBefore'](_0x4939a2),_0x3b7b97=0x0;for(;_0x36fa58;)_0x36fa58['updateHeight'](),_0x3b7b97+=this['_spaceBetweenItems']+_0x36fa58['height'],_0x36fa58=this['_getItemBefore'](_0x36fa58);return _0x3b7b97;}}function R(_0x124246,_0x390a1b){return Math['max'](_0x124246-_0x390a1b,0x0);}function y(_0x3c694b){return null!==_0x3c694b&&'object'==typeof _0x3c694b&&0x1===_0x3c694b['nodeType'];}class e extends _0x33497c{['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(_0x276c0b){super(_0x276c0b),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x7c7e6e(),this['_refreshPositioningDebounced']=_0x2dddc1(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x16e488=this['context']['plugins']['get'](M),_0x13c6c9=this['context']['plugins']['get'](z);_0x16e488['register']('wideSidebar',this),_0x13c6c9['container']&&_0x16e488['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x28c992){if(_0x28c992===this['activeAnnotation'])return;const _0x37f5ac=this['context']['plugins']['get'](z);_0x37f5ac['_activeAnnotation']=_0x28c992;const _0x57256d=this['activeAnnotation'];this['activeAnnotation']=_0x28c992,_0x37f5ac['refresh']({'blurredAnnotation':_0x57256d,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x4c0401){this['annotations']=_0x4c0401;const _0x38aa99=this['context']['plugins']['get'](z);if(_0x38aa99['_annotations']=_0x4c0401,this['isAttached'])throw new _0x346f93('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x38aa99,'set:container',()=>{this['detach'](),this['listenTo'](_0x38aa99,'change:container',_0x17a1d7=>{_0x17a1d7['off'](),this['attach'](_0x4c0401);});}),_0x38aa99['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x12263c=_0x26fe43=>{_0x26fe43['updateTargetRect'](),_0x38aa99['addAnnotation'](_0x26fe43);};for(const _0x2e93bd of _0x4c0401)_0x12263c(_0x2e93bd);this['listenTo'](_0x4c0401,'add',(_0x5da7cf,_0x36d2d2)=>{_0x12263c(_0x36d2d2);}),this['listenTo'](_0x4c0401,'remove',(_0x160a33,_0x140fdc,_0x3706e9)=>{_0x38aa99['rearrange']({'removedAnnotation':_0x140fdc,'previousAnnotation':_0x4c0401['get'](_0x3706e9-0x1),'nextAnnotation':_0x4c0401['get'](_0x3706e9+0x1)}),_0x140fdc===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x4c0401,'focus',(_0x238215,_0x258ae4)=>{this['setActiveAnnotation'](_0x258ae4);}),this['listenTo'](_0x4c0401,'blur',()=>{this['setActiveAnnotation'](null);});const _0x274053=this['context']instanceof _0x2ef1cd?this['context']['editors']:new _0x7c7e6e([this['context']]);for(const _0x2241f9 of _0x274053)this['_integrateWithEditorAnnotations'](_0x2241f9);this['listenTo'](_0x274053,'add',(_0x247d92,_0x1467cc)=>{this['listenTo'](_0x1467cc,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x1467cc);});}),this['listenTo'](_0x274053,'remove',(_0x5a690a,_0x303df0)=>{_0x303df0['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x303df0['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x346f93('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x1cc803=this['context']['plugins']['get'](z);_0x1cc803['_detachFromContainer'](this['annotations']),this['stopListening'](_0x1cc803),this['stopListening'](this['annotations']),this['context']instanceof _0x2ef1cd&&this['stopListening'](this['context']['editors']);for(const _0x5bdb76 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x5bdb76);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x53c0a3){if(!_0x53c0a3['plugins']['has']('EditorAnnotations'))return;const _0x1e8c9e=_0x53c0a3['plugins']['get']('EditorAnnotations'),_0x2e609a=()=>{const _0x3de7b9=_0x1e8c9e['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x3de7b9[0x0]||null);};this['listenTo'](_0x1e8c9e,'refresh',_0x2e609a),this['listenTo'](_0x1e8c9e,'blur',(_0x55375a,{isAnnotationTracked:_0x4f5d21})=>{this['activeAnnotation']&&_0x4f5d21(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x1e8c9e,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x489520=>{_0x1e8c9e['hasDomSelection']()&&(_0x2e609a(),_0x489520['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x1e8c9e);}['_destroyEditorAnnotationsIntegration'](_0x142b8a){this['stopListening'](_0x142b8a),this['_editorAnnotations']['remove'](_0x142b8a);}}class D extends _0x3ea547{['counterView'];constructor(_0x32ffb3){super(_0x32ffb3);const _0x149b66=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x10b638,_0x20c36)=>_0x10b638?'...':_0x20c36['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',_0x149b66['to']('annotationType',_0x503f26=>'ck-annotation-counter__badge--'+_0x503f26),_0x149b66['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x149b66['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x33497c{['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(_0x54fc23){super(_0x54fc23),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x1bf9b5),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x7c7e6e(),this['_refreshPositioningDebounced']=_0x2dddc1(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x17836d(this['context']['locale']),this['balloonPanelView']=new _0x4cbc09(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x49326b){this['annotations']=_0x49326b;const _0x25d634=this['context']['plugins']['get'](z),_0x447f74=this['balloonPanelView'];if(_0x25d634['_annotations']=_0x49326b,this['isAttached'])throw new _0x346f93('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x25d634,'set:container',()=>{this['detach'](),this['listenTo'](_0x25d634,'change:container',_0x29c0b9=>{_0x29c0b9['off'](),this['attach'](_0x49326b);});}),_0x25d634['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x3763fa=_0x24527f=>{const _0x28a5e1=new D(this['context']['locale']);_0x25d634['addAnnotation'](_0x24527f,_0x28a5e1),this['_annotationToNarrowView']['set'](_0x24527f,_0x28a5e1),_0x28a5e1['bind']('isDirty','annotationType','number')['to'](_0x24527f['view'],'isDirty','type','length'),_0x28a5e1['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x447f74['content']['first']!==_0x24527f['view']?(this['_showBalloon'](_0x24527f),_0x24527f['view']['element']['focus'](),this['setActiveAnnotation'](_0x24527f)):this['setActiveAnnotation'](null);});};for(const _0x237ce4 of _0x49326b)_0x3763fa(_0x237ce4);this['listenTo'](_0x49326b,'add',(_0x5cfa2a,_0x5b74f8)=>{_0x3763fa(_0x5b74f8);}),this['listenTo'](_0x49326b,'remove',(_0x5ac840,_0x151073,_0x24bb46)=>{this['_annotationToNarrowView']['get'](_0x151073)['destroy'](),this['_annotationToNarrowView']['delete'](_0x151073),_0x25d634['rearrange']({'removedAnnotation':_0x151073,'previousAnnotation':_0x49326b['get'](_0x24bb46-0x1),'nextAnnotation':_0x49326b['get'](_0x24bb46+0x1)}),_0x151073===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x49326b,'focus',(_0x12515f,_0x2a764c)=>{this['setActiveAnnotation'](_0x2a764c);}),this['listenTo'](_0x49326b,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x5e16a8,_0x43c902)=>{_0x43c902['keyCode']===_0x1e16ed['esc']&&_0x447f74['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x447f74['content']['first']),this['_hideBalloon'](),_0x43c902['stopPropagation'](),_0x43c902['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x48d0b2,_0x2b8e4c)=>{const _0x225709=_0x2b8e4c['target'];_0x447f74['isVisible']&&_0x447f74['element']['contains'](_0x225709)||_0x25d634['view']['element']['contains'](_0x225709)||_0x48d0b2['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x55b49e=>_0x55b49e['contains'](_0x225709))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x2ed24e=this['context']instanceof _0x2ef1cd?this['context']['editors']:new _0x7c7e6e([this['context']]);for(const _0x402d0b of _0x2ed24e)this['_integrateWithEditorAnnotations'](_0x402d0b);this['listenTo'](_0x2ed24e,'add',(_0xbf0b09,_0x122a13)=>{this['listenTo'](_0x122a13,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x122a13);});}),this['listenTo'](_0x2ed24e,'remove',(_0x274737,_0x4c4ccb)=>{_0x4c4ccb['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x4c4ccb['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x5d699c){if(_0x5d699c===this['activeAnnotation'])return;const _0x1c20f3=this['context']['plugins']['get'](z);if(_0x1c20f3['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x5d699c,'disableAnimationOnActivatedAnnotation':!0x0}),_0x5d699c)_0x1c20f3['getSidebarItemView'](_0x5d699c)?this['_showBalloon'](_0x5d699c):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x5d699c;}['detach'](){if(!this['isAttached'])throw new _0x346f93('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0xca981e=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x20a61a=>_0x20a61a['destroy']()),this['_annotationToNarrowView']['clear'](),_0xca981e['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x2ef1cd&&this['stopListening'](this['context']['editors']);for(const _0x527a2c of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x527a2c);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'](_0x50e4a3){if(!_0x50e4a3['plugins']['has']('EditorAnnotations'))return;const _0x19e700=_0x50e4a3['plugins']['get']('EditorAnnotations'),_0x5e3ac5=this['context']['plugins']['get'](z),_0x457abe=this['annotations'],_0x33ec5d=this['balloonPanelView'],_0x407644=()=>{const _0x9f1c85=_0x19e700['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x9f1c85),this['setActiveAnnotation'](_0x9f1c85[0x0]||null);};this['listenTo'](_0x19e700,'refresh',_0x407644),this['listenTo'](_0x19e700,'blur',(_0x5055e1,{isAnnotationTracked:_0x37f187})=>{this['activeAnnotation']&&_0x37f187(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x19e700,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x457abe,'blur',_0x340cc6=>{_0x19e700['hasDomSelection']()&&_0x340cc6['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0xc10ccd,_0x2134f6)=>{const _0x11ca2a=_0x2134f6['target'];_0x33ec5d['isVisible']&&_0x33ec5d['element']['contains'](_0x11ca2a)||_0x5e3ac5['view']['element']['contains'](_0x11ca2a)||this['activeAnnotation']&&_0x19e700['hasDomSelection']()&&(_0x407644(),_0xc10ccd['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x19e700);}['_destroyEditorAnnotationsIntegration'](_0x1e341c){_0x1e341c&&(this['stopListening'](_0x1e341c),this['_editorAnnotations']['remove'](_0x1e341c));}['_setSelectedAnnotations'](_0x379ef9){for(const _0x125412 of this['_selectedAnnotations'])_0x379ef9['includes'](_0x125412)||this['_manuallyClosedAnnotationViews']['delete'](_0x125412['view']);this['_selectedAnnotations']=_0x379ef9;}['_refreshPositioning'](){const _0x2a1701=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x2a1701['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x532ec1){if(this['_manuallyClosedAnnotationViews']['has'](_0x532ec1['view']))return;const _0x55700d=this['balloonPanelView']['content']['first'];_0x55700d!==_0x532ec1['view']?(_0x55700d&&this['_detachListeners'](_0x55700d),this['_attachListeners'](_0x532ec1['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x532ec1['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x2b3556=this['balloonPanelView']['content']['first'],_0x191c81=_0x2b3556&&this['annotations']['getByView'](_0x2b3556);if(!_0x191c81||!this['_annotationToNarrowView']['has'](_0x191c81))return;const _0x323053=this['_annotationToNarrowView']['get'](_0x191c81)['element'],_0x46f395=(function(){const _0x4ab464=_0x4cbc09['defaultPositions'];return[_0x4ab464['southArrowNorthEast'],_0x4ab464['northArrowSouthEast'],_0x4ab464['southArrowNorth'],_0x4ab464['northArrowSouth'],_0x4ab464['southArrowNorthWest'],_0x4ab464['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x323053,'positions':_0x46f395});}['_hideBalloon'](){const _0x320b5a=this['balloonPanelView'],_0x31022d=_0x320b5a['content']['first'];_0x31022d&&(this['_detachListeners'](_0x31022d),_0x320b5a['unpin'](),_0x320b5a['content']['clear']());}['_attachListeners'](_0x57ce1b){this['listenTo'](_0x57ce1b,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x57ce1b,'Esc',(_0x43fd82,_0x19794b)=>{this['_manuallyClosedAnnotationViews']['add'](_0x57ce1b),this['_hideBalloon'](),_0x19794b();});}['_detachListeners'](_0x15f1e6){this['stopListening'](_0x15f1e6);}}class c extends _0x3a3b81{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x49da12,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x74122d){super(_0x74122d),_0x74122d['editing']['view']['addObserver'](_0x2a5d33),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x74122d['plugins']['get'](_0x49da12),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x103a83=this['editor']['plugins']['get'](M);_0x103a83['context']===this['editor']&&(_0x103a83['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0xa1eab0,_0x1ae54a)=>{const _0x28b751=this['_balloon'];if(this['isAttached']&&_0x28b751['visibleView']){const _0x14b09b=this['annotations']['getByView'](_0x28b751['visibleView']);_0x14b09b&&this['_closeAnnotation'](_0x14b09b),_0x1ae54a();}}));}['afterInit'](){const _0x3fe768=this['editor']['plugins']['get'](M);_0x3fe768['context']===this['editor']&&(_0x3fe768['hasActive']()||_0x3fe768['switchTo']('inline'));}['setActiveAnnotation'](_0x493edf){_0x493edf!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x493edf&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x493edf)&&this['_addAnnotationToBalloon'](_0x493edf,!0x0),_0x493edf['isActive']=!0x0),_0x493edf||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x493edf);}['attach'](_0x538bbc){this['annotations']=_0x538bbc;const _0x38d7ea=this['editor']['plugins']['get'](M),_0x5e2a4a=this['_balloon'];if(this['isAttached'])throw new _0x346f93('inlineannotations-attach-already-attached',this);if(_0x38d7ea['context']!==this['editor'])throw new _0x346f93('inlineannotations-not-allowed-with-context',this);const _0x23c2d4=this['editor']['plugins']['get'](P);this['listenTo'](_0x23c2d4,'refresh',()=>{const _0x5c854=_0x23c2d4['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x3b5c48,_0xc9739b;!this['_forceRefresh']&&(_0x3b5c48=_0x5c854,_0xc9739b=this['_selectedAnnotations'],_0x3b5c48['length']===_0xc9739b['length']&&_0x3b5c48['every'](_0xf82b2a=>_0xc9739b['includes'](_0xf82b2a)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x5c854),this['setActiveAnnotation'](_0x5c854[0x0]||null));}),this['listenTo'](_0x23c2d4,'blur',(_0x2eee2c,{isAnnotationTracked:_0x50f39b})=>{this['activeAnnotation']&&_0x50f39b(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x18ddd2,_0x4a596c,_0x2b26a0)=>{_0x2b26a0||this['setActiveAnnotation'](null);}),this['listenTo'](_0x538bbc,'remove',(_0x33ca6c,_0x1eb373)=>{this['_removeAnnotationFromBalloon'](_0x1eb373),_0x1eb373===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x5e2a4a,'change:visibleView',(_0x5a47db,_0x5dd301,_0x443b04,_0xb3eae1)=>{_0xb3eae1&&this['stopListening'](_0xb3eae1);const _0x48226e=_0x538bbc['getByView'](_0x443b04);_0x443b04&&_0x48226e&&(this['listenTo'](_0x443b04,'change:height',()=>{_0x5e2a4a['updatePosition']();}),this['listenTo'](_0x443b04,'Esc',()=>{this['_closeAnnotation'](_0x48226e),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x48226e&&this['setActiveAnnotation'](_0x48226e));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x5e2a4a['visibleView']&&(_0x538bbc['getByView'](_0x5e2a4a['visibleView'])&&_0x5e2a4a['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 _0x346f93('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x174af9 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x174af9);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x33587b){for(const _0x13cb61 of this['_selectedAnnotations'])_0x33587b['includes'](_0x13cb61)||this['_manuallyClosed']['delete'](_0x13cb61);for(const _0x4d2e2f of this['annotations'])_0x33587b['includes'](_0x4d2e2f)||this['_removeAnnotationFromBalloon'](_0x4d2e2f);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0xa9f1ed of _0x33587b)this['_addAnnotationToBalloon'](_0xa9f1ed);}this['_selectedAnnotations']=_0x33587b;}['_addAnnotationToBalloon'](_0x48276d,_0x16f63f=!0x1){this['_manuallyClosed']['has'](_0x48276d)||(this['_addedAnnotations']['has'](_0x48276d)||this['_balloon']['hasView'](_0x48276d['view'])||(this['_addedAnnotations']['add'](_0x48276d),this['_balloon']['add']({'stackId':_0x48276d['view']['id'],'view':_0x48276d['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x48276d)}})),_0x16f63f&&this['_balloon']['showStack'](_0x48276d['view']['id']));}['_getBalloonTargetForAnnotation'](_0x107c04){const _0x3cd653=_0x107c04['target'],_0x47f721=this['editor']['editing']['view'],_0x14d236=_0x47f721['document']['selection']['getFirstRange'](),_0x470771=_0x47f721['domConverter']['viewRangeToDom'](_0x14d236);if(_0x470771['collapse'](!0x0),_0x3cd653){if(_0x3cd653 instanceof _0x30b314)return _0x3cd653;let _0x5acaa0=[];for(const _0x5867d3 of _0x3cd653)_0x5acaa0['push'](...(_0x24405d=_0x5867d3['getClientRects'](),Array['from'](_0x24405d)['map'](DOMRect['fromRect'])));_0x5acaa0=function(_0x33ee18){const _0xe4392f=[];let _0x1e00de=_0x33ee18[0x0];for(let _0x1c551c=0x1;_0x1c551c<_0x33ee18['length'];_0x1c551c++)b(_0x1e00de,_0x33ee18[_0x1c551c])?_0x1e00de['width']+=_0x33ee18[_0x1c551c]['width']:(_0xe4392f['push'](_0x1e00de),_0x1e00de=_0x33ee18[_0x1c551c]);return _0xe4392f['push'](_0x1e00de),_0xe4392f;}(_0x5acaa0);const _0x5adaf4=_0x470771['getBoundingClientRect']();return _0x5acaa0['find'](_0x33bd2a=>_0x33bd2a['top']<=_0x5adaf4['top']&&_0x33bd2a['bottom']>=_0x5adaf4['bottom']&&_0x33bd2a['left']<=_0x5adaf4['left']&&_0x33bd2a['right']>=_0x5adaf4['right'])||_0x5acaa0[0x0];}var _0x24405d;return _0x107c04['targetRect']||_0x470771;}['_removeAnnotationFromBalloon'](_0x34f7aa){this['_addedAnnotations']['has'](_0x34f7aa)&&this['_balloon']['hasView'](_0x34f7aa['view'])&&(this['_addedAnnotations']['delete'](_0x34f7aa),this['_balloon']['remove'](_0x34f7aa['view']));}['_closeAnnotation'](_0x3ce2dc){this['_manuallyClosed']['add'](_0x3ce2dc),this['_removeAnnotationFromBalloon'](_0x3ce2dc);}}function b(_0x1ddb1e,_0xc7526){return _0x1ddb1e['top']===_0xc7526['top']&&_0x1ddb1e['bottom']===_0xc7526['bottom']&&_0x1ddb1e['right']===_0xc7526['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(_0x42ad56,_0x7efe1e){super(_0x42ad56),this['set']('isEmpty',!_0x7efe1e['length']),this['focusTracker']=new _0x36f890(),this['_annotationViews']=_0x7efe1e,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x7efe1e,'focusTracker':this['focusTracker']}),this['listenTo'](_0x7efe1e,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x7efe1e,'remove',(_0x99dd56,_0x42146b)=>{_0x42146b['isActive']&&this['focus'](),_0x7efe1e['length']||(this['isEmpty']=!0x0);});const _0x20ee93=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x42ad56,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x7efe1e},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x20ee93['if']('isEmpty','ck-hidden',_0x4d9b26=>!_0x4d9b26)]},'children':[{'text':S(_0x42ad56,'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 _0x28b07c of this['_annotationViews'])this['focusTracker']['add'](_0x28b07c['element']);this['_annotationViews']['on']('change',(_0x224d4d,{added:_0x3465bd,removed:_0x37289a})=>{for(const _0x523cd6 of _0x3465bd)this['focusTracker']['add'](_0x523cd6['element']);for(const _0x4e35ce of _0x37289a)this['focusTracker']['remove'](_0x4e35ce['element']);});}}class f extends _0x33497c{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x57a996){super(_0x57a996),this['archivedThreads']=new _0x7c7e6e();}['init'](){const _0x4078d2=this['context'],_0xdf921e=_0x4078d2['plugins']['get'](o),_0xa1166=_0x4078d2['plugins']['get'](N);this['listenTo'](_0xdf921e,'addCommentThread',(_0xaf1aae,{threadId:_0x36dd4a})=>{const _0xb4aa22=_0xdf921e['getCommentThread'](_0x36dd4a);_0xb4aa22['archivedAt']&&this['archivedThreads']['add'](_0xb4aa22,this['_calculatePosition'](_0xb4aa22['archivedAt'])),this['listenTo'](_0xb4aa22,'change:archivedAt',(_0x1a078e,_0x22a4b8,_0x5f20fa)=>{_0x5f20fa?this['archivedThreads']['has'](_0xb4aa22)||this['archivedThreads']['add'](_0xb4aa22,this['_calculatePosition'](_0xb4aa22['archivedAt'])):this['archivedThreads']['has'](_0xb4aa22)&&this['archivedThreads']['remove'](_0xb4aa22);});}),this['listenTo'](_0xdf921e,'removeCommentThread',(_0x58f890,{threadId:_0x5eb045})=>{const _0x1d6b06=_0xdf921e['getCommentThread'](_0x5eb045);this['stopListening'](_0x1d6b06),this['archivedThreads']['has'](_0x1d6b06)&&this['archivedThreads']['remove'](_0x1d6b06);},{'priority':'highest'}),this['listenTo'](_0xa1166['collection'],'focus',(_0x3ce24a,_0x13b0d7)=>{_0x13b0d7['isVisible']||(_0x13b0d7['isActive']=!0x0,_0xa1166['activate'](_0x13b0d7));});}['_calculatePosition'](_0x5426e1){const _0x33c5a7=[...this['archivedThreads']]['findIndex'](_0x47a28c=>_0x47a28c['archivedAt']<_0x5426e1);return _0x33c5a7>-0x1?_0x33c5a7:this['archivedThreads']['length'];}}class a extends _0x3a3b81{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0xb3c417];}constructor(_0x27c284){super(_0x27c284),this['annotationViews']=new _0x2cd9a9(),this['_pendingThreads']=[];}['init'](){const _0x43f2f6=this['editor'],_0x7caecf=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x43f2f6['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x3ea547,!0x0)),_0x43f2f6['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x3d6607=this['_createCommentsArchiveButton'](_0x22933f);return _0x3d6607['set']({'role':'menuitemcheckbox'}),_0x3d6607;});const _0x5ef8df=_0x43f2f6['plugins']['get'](f),_0x569500=_0x43f2f6['plugins']['get']('Annotations'),_0x3ec714=_0x43f2f6['plugins']['get']('CommentsRepository');this['listenTo'](_0x5ef8df['archivedThreads'],'add',(_0xf360be,_0x39f7fc)=>{const _0x1b51e4=_0x43f2f6['config']['get']('collaboration.channelId');if(!_0x1b51e4||_0x39f7fc['channelId']===_0x1b51e4){const _0x25791d=_0x3ec714['_threadToController']['get'](_0x39f7fc);if(!_0x25791d)return void this['_pendingThreads']['push'](_0x39f7fc);const _0x5ab7f1=this['_calculatePosition'](_0x39f7fc['archivedAt']),_0x2793d5=_0x569500['getByInnerView'](_0x25791d['view']);_0x2793d5['isVisible']&&_0x569500['_visibleAnnotations']['remove'](_0x2793d5),this['annotationViews']['add'](_0x2793d5['view'],_0x5ab7f1);}}),this['listenTo'](_0x569500['collection'],'add',(_0x343061,_0xd41ce8)=>{const _0x4ec50c=this['_pendingThreads']['find'](_0x25be66=>{const _0x2f1d77=_0x3ec714['_threadToController']['get'](_0x25be66);return _0x2f1d77&&_0xd41ce8['innerView']===_0x2f1d77['view'];});if(_0x4ec50c){const _0x2f6b2c=this['_calculatePosition'](_0x4ec50c['archivedAt']);this['annotationViews']['add'](_0xd41ce8['view'],_0x2f6b2c),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x4ec50c),0x1);}}),this['listenTo'](_0x5ef8df['archivedThreads'],'remove',(_0x1e65c0,_0x4d056e)=>{const _0x48661f=_0x43f2f6['config']['get']('collaboration.channelId');if(!_0x48661f||_0x4d056e['channelId']===_0x48661f){const _0x47700c=_0x3ec714['_threadToController']['get'](_0x4d056e),_0x52587c=_0x569500['getByInnerView'](_0x47700c['view']);this['annotationViews']['remove'](_0x52587c['view']),this['stopListening'](_0x52587c['focusableElements']);}}),this['listenTo'](_0x569500['collection'],'add',(_0x311c8d,_0x159f66)=>{this['listenTo'](_0x159f66,'escape',_0x7caecf);}),this['listenTo'](_0x569500['collection'],'remove',(_0x47bcc5,_0x2f312b)=>{this['stopListening'](_0x2f312b,'escape',_0x7caecf);});}['_calculatePosition'](_0x286088){const _0x437a85=this['editor']['config']['get']('collaboration.channelId'),_0x39fe39=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x4e146d=>_0x4e146d['channelId']===_0x437a85)['findIndex'](_0x1e01d5=>_0x1e01d5['archivedAt']<_0x286088);return _0x39fe39<0x0||_0x39fe39>this['annotationViews']['length']?this['annotationViews']['length']:_0x39fe39-0x1;}['_toggleDialog'](){const _0x47278e=this['editor'],_0x2cec7d=_0x47278e['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x47278e['locale'],this['annotationViews'])),'commentsArchive'===_0x2cec7d['id']?_0x2cec7d['hide']():_0x2cec7d['show']({'id':'commentsArchive','title':S(_0x47278e['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x539a3d['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x36fc64,_0x1d50a7=!0x1){const _0x42417f=this['editor']['locale'],_0x2e66bd=this['editor']['plugins']['get']('Dialog'),_0x3c6124=new _0x36fc64(_0x42417f);return _0x3c6124['bind']('isEnabled')['to'](this,'isEnabled'),_0x3c6124['bind']('isOn')['to'](_0x2e66bd,'id',_0x58f501=>'commentsArchive'===_0x58f501),_0x3c6124['set']({'label':S(_0x42417f,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x1d50a7&&(_0x3c6124['tooltip']=!0x0),this['listenTo'](_0x3c6124,'execute',()=>this['_toggleDialog']()),_0x3c6124;}['_hideDialogOnAnnotationEscape']=_0x48aad3=>{const _0x5c8a02=_0x48aad3['source'];if(!this['annotationViews']['has'](_0x5c8a02['view']))return;const _0x44cdca=this['editor']['plugins']['get']('Dialog');_0x44cdca['isOpen']&&'commentsArchive'===_0x44cdca['id']&&(_0x44cdca['hide'](),_0x48aad3['stop']());};}class p extends _0x3a3b81{static get['requires'](){return[o,r,i,f,a,s,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{d as Annotation,x as AnnotationCollection,T as AnnotationView,N as Annotations,M as AnnotationsUIs,is as BaseCommentThreadView,rs as BaseCommentView,re as Comment,oe as CommentThread,Ct as CommentThreadController,ie as CommentThreadInputView,vt as CommentThreadView,gt as CommentView,p as Comments,f as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,e as WideSidebar};
|
|
23
|
+
import{Editor as _0x354252,icons as _0x6ce2ed,ContextPlugin as _0xdb81b3,PendingActions as ht,Command as _0x1e1cdf,Plugin as _0x2ee0ad,Context as _0x4f0f63}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x116fb0,uid as _0x415d77,KeystrokeHandler as jt,FocusTracker as _0x490066,diff as _0x28ec81,Collection as _0x4119ce,Rect as _0x3157f3,CKEditorError as _0x4ee480,first as _0x1c8703,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0x256fef,keyCodes as _0x5d2a69}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x1b878e,AriaDescriptionView as ts,setupThreadKeyboardNavigation as _0x4f1f78,ConfirmMixin as ti,LateFocusButtonView as _0x1325a7,trimHtml as _0x4d727c,LateFocusDropdownButtonView as _0x5ef831,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x5db2ad}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as yt,debounce as _0x22076e}from'lodash-es';import{EditorUIView as Yt,InlineEditableUIView as $t,EditorUI as Vt,View as kt,FocusCycler as Ft,ButtonView as _0x436108,ViewCollection as _0x3a98f9,createDropdown as _0x363903,ListView as _0x264041,focusChildOnDropdownOpen as _0x4f2115,ListItemView as _0x39e5d8,MenuBarMenuListItemButtonView as _0x55a431,BodyCollection as _0xeea49c,BalloonPanelView as _0x51b90d,ContextualBalloon as _0x15b369,Dialog as _0x24c683,DialogViewPosition as _0x4ca885}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x194408}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as Bt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as Et,ShiftEnter as Gt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Jt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Kt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Nt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Qt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x5307ed}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x548685}from'@ckeditor/ckeditor5-widget/dist/index.js';class Ct extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x116fb0(){['model'];['view'];constructor(_0x35383e,_0x191271){super(),this['model']=_0x35383e,this['model']['_isAttached']=!0x0,this['view']=_0x191271,this['listenTo'](_0x191271,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x191271,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x191271,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x191271,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x191271,'addComment',(_0x2d8529,_0x42f2d0)=>this['addComment'](_0x42f2d0)),this['listenTo'](_0x191271,'updateComment',(_0x48f81d,_0x39c4a2,_0x599774)=>this['updateComment'](_0x39c4a2,_0x599774)),this['listenTo'](_0x191271,'removeComment',(_0x5515e7,_0x3095c1)=>this['removeComment'](_0x3095c1));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x10ca13){this['model']['addComment']({'content':_0x10ca13,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x43a278,_0x207525){this['model']['getComment'](_0x43a278)['update']({'content':_0x207525});}['removeComment'](_0xf5484d){this['model']['getComment'](_0xf5484d)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x355fea,_0x1e12f4,_0x570cae){const t=_0x355fea['t'];switch(_0x1e12f4){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'},_0x570cae);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'},_0x570cae);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'},_0x570cae);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'},_0x570cae);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x570cae);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'},_0x570cae);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'},_0x570cae);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'},_0x570cae);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Xt extends Yt{['main'];['editable'];constructor(_0x2d39f8,_0x21539c){super(_0x2d39f8);const _0x356ee4=_0x415d77();this['main']=this['createCollection'](),this['editable']=new $t(_0x2d39f8,_0x21539c,void 0x0,{'label':()=>S(_0x2d39f8,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x2d39f8['uiLanguageDirection'],'lang':_0x2d39f8['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x356ee4},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Ot extends Vt{['view'];constructor(_0x333e3c){super(_0x333e3c),this['view']=new Xt(_0x333e3c['locale'],_0x333e3c['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x5a11d7=this['editor']['editing']['view'],_0x1105ff=this['view']['editable'],_0x49eb37=_0x5a11d7['document']['getRoot']();_0x1105ff['name']=_0x49eb37['rootName'],this['view']['render']();const _0x3389a0=_0x1105ff['element'];this['setEditableElement'](_0x1105ff['name'],_0x3389a0),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5a11d7['attachDomRoot'](_0x3389a0),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Rt=[Bt,Et,Gt,Jt,Kt,Nt,Qt];class Ut extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x116fb0(_0x354252){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
|
|
26
|
+
((()=>Rt)());constructor(_0x166740={}){function _0x2c6989(_0x45a579){return _0x45a579['map'](_0x198102=>String['fromCharCode'](_0x198102))['join']('');}(_0x166740=Object['assign']({},_0x166740))['plugins']||(_0x166740['plugins']=Ut['defaultPlugins']),super(_0x166740),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[_0x2c6989([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c6989([0x76,0x69,0x65,0x77])][_0x2c6989([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c6989([0x61,0x75,0x74,0x6f]),this[_0x2c6989([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2c6989([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c6989([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2c6989([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2c6989([0x6f,0x6b])});}['create'](){const _0x2e0764=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x2e0764))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x2cee04=>{const _0x17ad3b=this['model']['document']['getRoot'](),_0x31ee82=_0x17ad3b&&_0x17ad3b['getChild'](_0x17ad3b['childCount']-0x1);_0x2cee04['setSelection'](_0x31ee82,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x8a0073=this['editing']['view'],_0x1d787a=_0x8a0073['document']['getRoot'](),_0x4ad3e=_0x1d787a['getChild'](0x0);_0x1d787a['childCount']>0x1||!_0x4ad3e||'p'!=_0x4ad3e['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x8a0073,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x4ad3e['placeholder']=this['placeholder']),St({'view':_0x8a0073,'element':_0x4ad3e,'keepOnFocus':!0x0}),this['placeholderElement']=_0x4ad3e);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x20e6ef,_0x31f3d8={}){super(_0x20e6ef),this['editor']=null,this['_editorConfig']=_0x31f3d8,this['set']('value',_0x31f3d8['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x20e6ef,'Reply...')),this['set']('submitLabel',S(_0x20e6ef,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x490066(),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',(_0x3e8cb3,_0x1d2b9e)=>{this['cancelButtonView']['fire']('execute'),_0x1d2b9e();}),this['keystrokes']['set']('Ctrl+Enter',(_0x1ed2b1,_0x47ed3b)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x47ed3b());}),this['on']('submit',(_0x2de27c,_0x546fa5)=>{_0x546fa5['length']>0xfde8?(alert(S(_0x20e6ef,'TOO_LONG_COMMENT_ALERT',[_0x546fa5['length'],0xfde8])),_0x2de27c['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Ut(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x4b5684=this['editor'];this['element']['insertBefore'](_0x4b5684['ui']['element'],this['element']['firstChild']),_0x4b5684['model']['document']['on']('change',()=>this['value']=_0x4b5684['getData']()),_0x4b5684['bind']('placeholder')['to'](this),this['focusables']['add'](_0x4b5684['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0xe61c16){-0x1===_0xe61c16?(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:_0x19a0ad}=this,_0x160d58=new _0x436108(_0x19a0ad);return _0x160d58['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x160d58['withText']=!0x0,_0x160d58['bind']('label')['to'](this,'submitLabel'),_0x160d58['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x160d58['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x38c1ec,_0x32ba42)=>!_0x32ba42&&!!_0x38c1ec['trim']()),_0x160d58;}['_createCancelButton'](){const {locale:_0x16ee9f}=this,_0x2fafd8=new _0x436108(_0x16ee9f);return _0x2fafd8['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x2fafd8['label']=S(_0x16ee9f,'Cancel'),_0x2fafd8['withText']=!0x0,_0x2fafd8['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x2fafd8;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x740209=>{this['focusTracker']['add'](_0x740209['element']);}),this['focusables']['on']('change',(_0x196e7a,_0x1b13ab)=>{for(const _0x167ca7 of Array['from'](_0x1b13ab['added'])['reverse']())this['focusTracker']['add'](_0x167ca7['element']);});}}class ie extends kt{constructor(_0x4c2fd8,_0x573c65,_0x323b25){super(_0x4c2fd8),this['commentInputView']=new os(_0x4c2fd8,_0x323b25),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x589901,_0x243758)=>_0x589901||!!_0x243758),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 _0x1b878e(_0x4c2fd8,_0x573c65),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'](_0xb159cf){this['commentInputView']['focus'](_0xb159cf);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x49445d,_0x2d0036)=>{const {submitButtonView:_0x104c5d,cancelButtonView:_0x44c765,editor:_0x1acf4f}=this['commentInputView'];[_0x104c5d['element'],_0x44c765['element'],_0x1acf4f?_0x1acf4f['editing']['view']['getDomRoot']():null]['filter'](_0x3911a9=>_0x3911a9)['some'](_0xe58c95=>_0xe58c95['contains'](_0x2d0036['target']))||(this['focus'](),_0x2d0036['preventDefault']());});}}class cs extends kt{constructor(_0xfd5017){super(_0xfd5017);const _0x114fa8=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x114fa8['to']('count',_0x31809d=>S(_0xfd5017,'NUMBER_OF_COMMENTS',_0x31809d))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x1dadaf,_0x573bd7,_0x441885){super(_0x1dadaf);const _0x3f8008=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x573bd7['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x573bd7,this['_config']=_0x441885,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x490066(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x8cd9e9=>this['commentViews']['map'](_0x5cb858=>_0x5cb858['element'])['includes'](_0x8cd9e9['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x1dadaf),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x499621=>_0x499621-this['_config']['maxCommentsWhenCollapsed']);for(const _0x36a8d9 of _0x573bd7['comments'])this['_handleNewCommentModel'](_0x36a8d9);this['_handleInfoComment'](),this['listenTo'](_0x573bd7['comments'],'add',(_0x5a3ff7,_0x3f2329)=>{const _0xe4c84=this['_calculatePosition'](_0x3f2329);this['length']++,this['_handleNewCommentModel'](_0x3f2329,_0xe4c84),this['refreshVisibleViews']();}),this['listenTo'](_0x573bd7['comments'],'remove',(_0x19706d,_0x43f74a)=>{this['length']--,this['_handleRemoveCommentModel'](_0x43f74a),this['refreshVisibleViews']();}),this['listenTo'](_0x573bd7,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x573bd7,'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',_0x3f8008['if']('length','ck-hidden',_0x2e05c1=>!_0x2e05c1)],'aria-label':S(_0x1dadaf,'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'](_0xeb1d97){-0x1===_0xeb1d97?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x56e6f0 of this['commentViews'])_0x56e6f0['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x3229db,_0x4fe923){const _0xb02a71=new this['_config']['CommentView'](this['locale'],_0x3229db,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0xb02a71['viewUid']=_0x3229db['id'],_0xb02a71['delegate']('removeComment')['to'](this),_0xb02a71['delegate']('updateComment')['to'](this),_0xb02a71['delegate']('resolveCommentThread')['to'](this),_0xb02a71['delegate']('editorReady')['to'](this),_0xb02a71['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0xb02a71,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0xb02a71,_0x4fe923);}['_calculatePosition'](_0x102697){const _0x301c97=this['_model']['_findOptimalIndex'](_0x102697);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x102697['authoredAt']?_0x301c97-0x1:_0x301c97:_0x301c97-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x13f2f5={'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'],_0x13f2f5,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x13f2f5));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x53cd21){const _0x155f57=this['commentViews']['remove'](_0x53cd21['id']);this['stopListening'](_0x155f57),_0x155f57['isEditMode']&&this['_updateHasDirtyComment'](),_0x155f57['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x1a1f64=>_0x1a1f64['isEditMode']);}['_rearrangeCollapse'](){const _0x166f16=function(_0x31e00b){const _0x3032c9=new _0x4119ce();for(const _0x3f280f of _0x31e00b)_0x3032c9['add'](_0x3f280f);return _0x3032c9;}(this['commentViews']),_0x54aa7b=this['_collapsedCommentsView']['count'];for(let _0x3d1ee9=0x1;_0x3d1ee9<=_0x54aa7b;_0x3d1ee9++)_0x166f16['remove'](0x1);for(const _0x11b53a of _0x166f16)_0x11b53a['collapse']();_0x54aa7b>0x0&&_0x166f16['add'](this['_collapsedCommentsView'],0x1),as(_0x28ec81(Array['from'](this['visibleViews']),Array['from'](_0x166f16)),this['visibleViews'],_0x166f16);}['_rearrangeExpand'](){as(_0x28ec81(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x22b574 of this['visibleViews'])_0x22b574['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x43923c=>{this['focusTracker']['add'](_0x43923c['element']),this['keystrokes']['listenTo'](_0x43923c['element']);}),this['commentViews']['on']('change',(_0x260d8d,_0x13b19b)=>{for(const _0x216084 of _0x13b19b['removed'])this['focusTracker']['remove'](_0x216084['element']),this['keystrokes']['stopListening'](_0x216084['element']);for(const _0x1e7875 of Array['from'](_0x13b19b['added'])['reverse']())this['focusTracker']['add'](_0x1e7875['element']),this['keystrokes']['listenTo'](_0x1e7875['element']);});}}function as(_0x100bed,_0x2ec915,_0x492dcd){let _0x15249e=0x0;for(const _0x4e1653 of _0x100bed)switch(_0x4e1653){case'insert':_0x2ec915['add'](_0x492dcd['get'](_0x15249e),_0x15249e),_0x15249e++;break;case'delete':_0x2ec915['remove'](_0x15249e);break;case'equal':_0x15249e++;}}class ls extends kt{constructor(_0x5471fb){super(_0x5471fb);const _0x4e9ae6=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x4e9ae6['to']('contextValue',_0x44c819=>S(_0x5471fb,'THREAD_CONTEXT_LABEL',_0x44c819)),'tabindex':-0x1},'children':[{'text':_0x4e9ae6['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Zt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x32cd67,_0x15f7fa){super(_0x32cd67);const _0x29de70=this['bindTemplate'];this['_model']=_0x15f7fa,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x490066(),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',_0x37b6fa=>!!_0x37b6fa),this['bind']('contextValue')['to'](this['_model'],'context',_0xd1f609=>_0xd1f609&&_0xd1f609['value']?this['_trimContextValue'](_0xd1f609['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',_0x29de70['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 _0x10b301=new _0x436108(this['locale']);return _0x10b301['label']=S(this['locale'],'Reopen'),_0x10b301['tooltip']=S(this['locale'],'Reopen'),_0x10b301['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>',_0x10b301['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x53695b=>!_0x53695b),_0x10b301['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x9387d2,_0x244dea)=>_0x9387d2&&_0x244dea),_0x10b301['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x10b301;}['_trimContextValue'](_0x27b533){if(_0x27b533['length']<0x96)return _0x27b533;const _0xe9159f=_0x27b533['lastIndexOf']('\x20',0x93);return _0x27b533['substring'](0x0,_0xe9159f>-0x1?_0xe9159f:0x93)+'...';}['_attachContextActions'](){const _0x445fa2=this['element']['querySelector']('.ck-context'),_0x36f558=_0x445fa2['querySelector']('.ck-context__value');this['listenTo'](_0x445fa2,'mouseenter',()=>{_0x36f558['offsetWidth']<_0x36f558['scrollWidth']&&_0x445fa2['classList']['add']('overlay');}),this['listenTo'](_0x445fa2,'mouseleave',()=>{_0x445fa2['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x238e48 of this['focusables'])this['focusTracker']['add'](_0x238e48['element']),this['keystrokes']['listenTo'](_0x238e48['element']);}['_createContextView'](){const _0x44864d=new ls(this['locale']);return _0x44864d['bind']('contextValue')['to'](this),_0x44864d;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x2b1715,_0x4d242d,_0xd3bb88,_0x9e0af0){super(_0x2b1715),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x4d242d,this['_localUser']=_0xd3bb88,this['_config']=_0x9e0af0,this['commentThreadHeaderView']=new Zt(_0x2b1715,_0x4d242d),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new ts(_0x2b1715,S(_0x2b1715,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x2b1715,_0x4d242d,Object['assign']({'CommentView':this['_config']['CommentView']},_0x9e0af0)),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',(_0x1488a8,_0x383eab)=>_0x1488a8||!!_0x383eab),this['bind']('isUnlinked')['to'](_0x4d242d,'unlinkedAt',_0x3d8c75=>!!_0x3d8c75),this['bind']('ariaLabel')['to'](this,'length',_0x3e68b9=>{const _0x1df9f7=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x3e68b9,_0x1df9f7]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x490066(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x42e9b3=>_0x42e9b3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x4f1f78(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x3a4f07=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5a157f=_0x3a4f07['commentInputView'];return _0x3a4f07['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x5a157f,'value',(_0x5d54fa,_0x544e6d,_0x39a647,_0x106d49,_0x363e8f)=>!!_0x363e8f||!!_0x106d49&&_0x39a647&&!_0x544e6d||_0x5d54fa&&_0x39a647&&!_0x544e6d),_0x5a157f['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x5c3ad9,_0x3626fc,_0x474bbf)=>{let _0x1a69f4;return _0x1a69f4=_0x474bbf&&_0x3626fc?'Reply\x20to\x20reopen\x20discussion...':_0x5c3ad9?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x1a69f4);}),_0x5a157f['bind']('submitLabel')['to'](this,'length',_0x25cc30=>S(this['locale'],_0x25cc30?'Reply':'Comment')),_0x5a157f['on']('submit',(_0x16bed8,_0x176ca7)=>{this['fire']('addComment',_0x176ca7),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x5a157f['on']('cancel',()=>{this['focus']();}),_0x5a157f['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x5a157f['on']('cancel',_0xc1061f=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0xc1061f['stop']());}),this['on']('change:isActive',(_0x1a9354,_0x3a73fd,_0x29ed4e)=>{_0x29ed4e||this['length']||_0x5a157f['value']||this['fire']('removeCommentThread');}),_0x3a4f07;}}class vt extends/* #__PURE__ -- @preserve */
|
|
27
|
+
ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x46e4be,_0x27f257,_0x5e2d5b,_0x3cd7e7){super(_0x46e4be,_0x27f257,_0x5e2d5b,_0x3cd7e7),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x46e4be,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x2e565c,_0x59d80d,_0x496361)=>{_0x496361||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x3f3015,_0x7dda03,_0x3f564e)=>{_0x3f564e&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x4d9d3c=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x4d9d3c['if']('isActive','ck-thread--active'),_0x4d9d3c['if']('isUnlinked','ck-thread--unlinked'),_0x4d9d3c['if']('isConfirm','ck-thread--remove-confirmation'),_0x4d9d3c['to']('actionIndicator',_0x5cc90b=>_0x5cc90b?'ck-thread--'+_0x5cc90b:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x4d9d3c['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 _0x189ccc of this['commentsListView']['commentViews'])_0x189ccc['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x1e74be}=this,_0x1bd4b0=this['commentsListView']['commentViews']['get'](0x0);_0x1bd4b0===this['_boundFirstCommentView']||_0x1bd4b0['isSystemComment']||(this['_boundFirstCommentView']=_0x1bd4b0,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x1bd4b0,'actionIndicator',_0x509d41=>'remove'===_0x509d41?'remove':null),_0x1bd4b0['placeholder']=S(_0x1e74be,'Write\x20a\x20comment...'),_0x1bd4b0['removeButton']['on']('execute',_0x1b5f51=>{_0x1b5f51['stop'](),this['showConfirm'](S(_0x1e74be,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x1bd4b0['focus']();}),_0x1bd4b0['actionBar']['add'](this['resolveButton'],0x0),_0x1bd4b0['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x1e5d61=new _0x1325a7(this['locale']);return _0x1e5d61['label']=S(this['locale'],'Resolve'),_0x1e5d61['tooltip']=S(this['locale'],'Resolve'),_0x1e5d61['icon']=_0x6ce2ed['check'],_0x1e5d61['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x1e5d61['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x205986=>!_0x205986),_0x1e5d61['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x321eaf,_0x187bcb)=>_0x321eaf&&!_0x187bcb),_0x1e5d61['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x1e5d61;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class hs extends kt{constructor(_0x35d3e3){super(_0x35d3e3),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x27edbf,_0x73ce1c,_0x16c4cb)=>{this['element']['innerHTML']=_0x16c4cb;}),this['element']['innerHTML']=this['content'];}}class rs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x41a359,_0x2dc7bc,_0x1dfe32){super(_0x41a359),this['_model']=_0x2dc7bc,this['_config']=_0x1dfe32,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x2dc7bc,'content',_0x2dc7bc,'authoredAt',(_0x27ecfe,_0x43c378)=>S(_0x41a359,'COMMENT_ARIA_LABEL',[_0x2dc7bc['author']['name'],_0x1dfe32['formatDateTime'](_0x43c378),new DOMParser()['parseFromString'](_0x27ecfe,'text/html')['body']['textContent'],_0x2dc7bc['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new ts(_0x41a359,S(_0x41a359,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x3a98f9(),this['focusTracker']=new _0x490066(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3c4f05=>_0x3c4f05['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 _0x35bf24=new hs(this['locale']);return _0x35bf24['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x11c774,_0x54f683)=>_0x54f683?_0x4d727c(_0x11c774,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x11c774),_0x35bf24;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x4f5a10=new os(this['locale'],this['_config']['editorConfig']);return _0x4f5a10['value']=this['_model']['content'],_0x4f5a10['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x4f5a10['submitLabel']=S(this['locale'],'Save'),_0x4f5a10['on']('submit',(_0x1cad72,_0x295f4d)=>{this['fire']('updateComment',this['_model']['id'],_0x295f4d),this['switchToDisplayMode'](),this['focus']();}),_0x4f5a10['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x4f5a10['once']('editorReady',()=>{_0x4f5a10['focus']();}),_0x4f5a10['createEditor'](),_0x4f5a10['delegate']('editorReady')['to'](this),_0x4f5a10['delegate']('editorDestroyed')['to'](this),_0x4f5a10;}['_setupKeyboardNavigation'](){const _0x8f2089=this['element'];this['keystrokes']['listenTo'](_0x8f2089);for(const _0x4bde20 of this['focusables'])this['focusTracker']['add'](_0x4bde20['element']),this['keystrokes']['listenTo'](_0x4bde20['element']);this['focusables']['on']('change',(_0xb8e81d,_0x2954ec)=>{for(const _0x41723b of _0x2954ec['removed'])this['focusTracker']['remove'](_0x41723b['element']),this['keystrokes']['stopListening'](_0x41723b['element']);for(const _0x4da073 of _0x2954ec['added'])this['focusTracker']['add'](_0x4da073['element']),this['keystrokes']['listenTo'](_0x4da073['element']);}),this['keystrokes']['set']('enter',(_0xa9865c,_0x2562b9)=>{_0x8f2089===_0xa9865c['target']&&(this['focusCycler']['focusFirst'](),_0x2562b9());}),this['keystrokes']['set']('esc',(_0x18fcfc,_0x4f8862)=>{_0x8f2089!==_0x18fcfc['target']&&(this['focus'](),_0x4f8862());});}}class gt extends/* #__PURE__ -- @preserve */
|
|
28
|
+
ti(rs){['actionBar'];['userView'];constructor(_0x569a80,_0x1b03cc,_0x17ea2a){super(_0x569a80,_0x1b03cc,_0x17ea2a),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x569a80,'Reply...')),this['bind']('authoredAt')['to'](_0x1b03cc),this['bind']('resolvedAt')['to'](_0x1b03cc),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 _0x1b878e(_0x569a80,_0x1b03cc['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x1b03cc,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x104a7=this['bindTemplate'],_0x514af9=[{'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':_0x104a7['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x104a7['to']('authoredAt',_0x4792e7=>this['_config']['formatDateTime'](_0x4792e7))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x104a7['if']('isEditMode','ck-comment__actions--hidden'),_0x104a7['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']&&_0x514af9['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x104a7['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x104a7['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x104a7['if']('isEditMode','ck-comment--edit'),_0x104a7['if']('isSystemComment','ck-comment--info'),_0x104a7['to']('actionIndicator',_0x520656=>_0x520656?'ck-comment--'+_0x520656:'')],'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':_0x514af9}]}]};}['_createEditButton'](){const _0x336e93=new _0x436108(this['locale']);return _0x336e93['label']=S(this['locale'],'Edit'),_0x336e93['icon']=_0x6ce2ed['pencil'],_0x336e93['withText']=!0x0,_0x336e93['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x336e93['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x5babab=>!_0x5babab),_0x336e93['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x336e93['on']('execute',()=>this['switchToEditMode']()),_0x336e93;}['_createRemoveButton'](){const _0x4a38a5=new _0x436108(this['locale']);return _0x4a38a5['label']=S(this['locale'],'Remove'),_0x4a38a5['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',_0x4a38a5['withText']=!0x0,_0x4a38a5['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x4a38a5['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xffd933=>!_0xffd933),_0x4a38a5['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x4a38a5['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x4a38a5;}['_createDropdown'](){const _0x36e05b=_0x363903(this['locale'],_0x5ef831),_0x8fc4e4=_0x36e05b['panelView']['children'],_0x2fd21d=new _0x264041(this['locale']),_0x470b1f=_0x36e05b['bindTemplate'];_0x4f2115(_0x36e05b,()=>this['items']['find'](_0x55d4e7=>_0x55d4e7['isVisible'])),_0x36e05b['extendTemplate']({'attributes':{'class':[_0x470b1f['if']('isVisible','ck-hidden',_0x49cf6a=>!_0x49cf6a)]}});const _0x31aa8e=(_0x119e63,_0xf83001=-0x1)=>{const _0x4ae750=new _0x39e5d8(this['locale']);_0x4ae750['children']['add'](_0x119e63);const _0x40c770=_0xf83001>-0x1?_0xf83001:_0x2fd21d['items']['length'];_0x2fd21d['items']['add'](_0x4ae750,_0x40c770);const _0x58060b=Array['from'](this['items']);_0x36e05b['unbind']('isEnabled','isVisible'),_0x36e05b['bind']('isEnabled')['toMany'](_0x58060b,'isEnabled',(..._0x22e7c1)=>_0x22e7c1['some'](_0x4ec8fb=>_0x4ec8fb)),_0x36e05b['bind']('isVisible')['toMany'](_0x58060b,'isVisible',(..._0x147494)=>_0x147494['some'](_0x2b8246=>_0x2b8246));};_0x36e05b['panelPosition']='sw',_0x36e05b['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x6ce2ed['threeVerticalDots']});for(const _0x1a9416 of this['items'])_0x31aa8e(_0x1a9416);return _0x8fc4e4['add'](_0x2fd21d),_0x36e05b['listenTo'](this['items'],'add',(_0x1d0270,_0x5da537,_0xa4d1e8)=>{_0x31aa8e(_0x5da537,_0xa4d1e8);}),_0x36e05b['listenTo'](this['items'],'remove',(_0x209056,_0x443589,_0x214801)=>{_0x2fd21d['items']['remove'](_0x214801);}),_0x36e05b;}['_attachActions'](_0x1b9bbc,_0x3bc47f){const _0x32108d=_0x1b9bbc&&_0x1b9bbc['element'];_0x32108d&&(this['listenTo'](_0x32108d,'mouseenter',()=>this['actionIndicator']=_0x3bc47f),this['listenTo'](_0x32108d,'focus',()=>this['actionIndicator']=_0x3bc47f),this['listenTo'](_0x32108d,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x32108d,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x1c0ffb=super['_createCommentInputView']();return _0x1c0ffb['bind']('placeholder')['to'](this),_0x1c0ffb;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0x58debc){const _0x1b5b93=Dt(_0x58debc,0x1e),_0x174db3=new MutationObserver(_0x334db1=>{for(const _0x19fb54 of _0x334db1)('attributes'==_0x19fb54['type']&&'class'==_0x19fb54['attributeName']||'childList'==_0x19fb54['type']||'characterData'==_0x19fb54['type'])&&_0x1b5b93();});return{'attach'(_0x3fed31){_0x174db3['observe'](_0x3fed31,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x174db3['disconnect'](),_0x1b5b93['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x49dd88,_0x53429b){super(_0x49dd88),this['id']=_0x415d77(),this['focusTracker']=new _0x490066(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x2e3d26,_0x23a159)=>this['fire']('Esc',_0x23a159)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=Lt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x53429b),this['mainView']=_0x53429b;const _0x11e3cd=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x11e3cd['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 _0x1377cc=this['element']['clientHeight'];_0x1377cc&&(this['height']=_0x1377cc);}}class d extends/* #__PURE__ -- @preserve */
|
|
29
|
+
_0x116fb0(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x221221,target:_0x5c69e7,type:_0x825775,isVisible:_0x16570d=!0x0}){super(),this['view']=_0x221221,this['view']['element']||this['view']['render'](),this['_type']=_0x825775,this['_target']=_0x5c69e7,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x4119ce([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x47d34e,_0x3bac66)=>{this['view']['focusTracker']['add'](_0x3bac66);}),this['focusableElements']['on']('remove',(_0x13299f,_0x2978c9)=>{this['view']['focusTracker']['remove'](_0x2978c9);}),this['set']('isVisible',_0x16570d);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x5c194d=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x5c194d),_0x5c194d;}get['targetRect'](){const _0x2a8750=this['target'];if(null===_0x2a8750)return null;if(_0x2a8750 instanceof _0x3157f3)return _0x2a8750;const _0x2201aa=_0x2a8750['filter'](_0x4236f3=>function(_0x4dd74a){const _0x833bd8=_0x4dd74a['offsetParent'];if(_0x833bd8)return!0x0;const _0x4043a2=_0x4dd74a['getClientRects']()['item'](0x0);return!!_0x4043a2;}(_0x4236f3));return 0x0===_0x2201aa['length']?null:new _0x3157f3(_0x2201aa[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x4c5c58){this['view']['isActive']=_0x4c5c58,this['view']['mainView']['isActive']=_0x4c5c58;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x333c93){if(!(null===_0x333c93||_0x333c93 instanceof _0x3157f3||Array['isArray'](_0x333c93)&&_0x333c93['every'](_0x1c8f5c=>ne(_0x1c8f5c))))throw new _0x4ee480('annotation-invalid-target',null,{'target':_0x333c93});}['_getNormalizedTarget'](){const _0x4f7918='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x4f7918)?[_0x4f7918]:_0x4f7918;}}function ne(_0x32d185){return null!==_0x32d185&&'object'==typeof _0x32d185&&'nodeType'in _0x32d185&&0x1===_0x32d185['nodeType'];}class x extends _0x4119ce{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x105c29=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x490066(),this['_focusTracker']['on']('change:isFocused',(_0x26ed74,_0xb50bf0,_0x2040c0)=>{_0x2040c0||this['fire']('blur');});for(const _0x45cf45 of _0x105c29)this['add'](_0x45cf45);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x2953ff){if(this['has'](_0x2953ff))throw new _0x4ee480('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x2953ff['innerView'],_0x2953ff),this['_viewToAnnotation']['set'](_0x2953ff['view'],_0x2953ff);for(const _0x477ce0 of _0x2953ff['focusableElements'])this['_focusTracker']['add'](_0x477ce0);this['listenTo'](_0x2953ff['focusableElements'],'add',(_0xb77d63,_0x1fb46e)=>{this['_focusTracker']['add'](_0x1fb46e);}),this['listenTo'](_0x2953ff['focusableElements'],'remove',(_0x25a888,_0x349ddd)=>{this['_focusTracker']['remove'](_0x349ddd);}),this['listenTo'](_0x2953ff['view']['focusTracker'],'change:isFocused',(_0x4e10c4,_0x5203fe,_0x3b9366)=>{_0x3b9366&&this['fire']('focus',_0x2953ff);}),_0x2953ff['updateTargetRect']();const _0x4103ff=this['_getOrderInContent'](_0x2953ff['view']['targetRect']);return super['add'](_0x2953ff,_0x4103ff);}['remove'](_0x1edd41){if(!this['has'](_0x1edd41))throw new _0x4ee480('annotationcollection-not-existing-item',null);this['stopListening'](_0x1edd41['view']['focusTracker']),this['stopListening'](_0x1edd41['focusableElements']);for(const _0x188f9d of _0x1edd41['focusableElements'])this['_focusTracker']['remove'](_0x188f9d);return this['_viewToAnnotation']['delete'](_0x1edd41['view']),this['_innerViewToAnnotation']['delete'](_0x1edd41['innerView']),super['remove'](_0x1edd41);}['getByInnerView'](_0x73c91){return this['_innerViewToAnnotation']['get'](_0x73c91);}['getByView'](_0x452071){return this['_viewToAnnotation']['get'](_0x452071);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x323ced of this)_0x323ced['updateTargetRect']();this['_sort']();}['_sort'](){const _0x206413=Array['from'](this)['sort']((_0x1ae0e1,_0x26cd75)=>v(_0x1ae0e1['view']['targetRect'],_0x26cd75['view']['targetRect']));for(let _0x409858=_0x206413['length']-0x1;_0x409858>0x0;_0x409858--){const _0x1db6c2=_0x206413[_0x409858];_0x409858!==this['getIndex'](_0x1db6c2)&&(this['remove'](_0x1db6c2),this['add'](_0x1db6c2));}}['_getOrderInContent'](_0x259b90){let _0x13b583=0x0;if(!_0x259b90)return this['length'];for(const _0x3fda94 of this){const _0x5c89bd=_0x3fda94['view']['targetRect'];if(_0x5c89bd){if(v(_0x259b90,_0x5c89bd)<0x0)return _0x13b583;_0x13b583++;}}return _0x13b583;}}function v(_0x218bbd,_0x2c329e){if(null===_0x218bbd&&null===_0x2c329e)return 0x0;if(null===_0x218bbd)return-0x1;if(null===_0x2c329e)return 0x1;const _0x178b50=_0x218bbd['top']-_0x2c329e['top'];return 0x0==_0x178b50?_0x218bbd['left']-_0x2c329e['left']:_0x178b50;}class N extends _0xdb81b3{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x111201){if(super(_0x111201),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x111201 instanceof _0x354252){const _0x133ea2=_0x111201['locale'];_0x111201['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x133ea2,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x133ea2,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x133ea2,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x133ea2,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x133ea2,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x133ea2,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x133ea2,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x363bfe){this['collection']['add'](_0x363bfe);}['remove'](_0x585794){this['collection']['remove'](_0x585794),_0x585794['destroy']();}['refreshVisibility'](){for(const _0x4303f0 of this['collection'])_0x4303f0['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x6fd453){return this['collection']['getByInnerView'](_0x6fd453);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x53f324 of this['collection'])_0x53f324['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x299d81){this['fire']('_activateAnnotation',_0x299d81);}['createAnnotation'](_0x15bd27){return new d(_0x15bd27);}['createAnnotationView'](_0x2823c3,_0x2c7903){return new T(_0x2823c3,_0x2c7903);}['_addActiveAnnotation'](_0x482719){const _0x17d0d0=new Set(this['activeAnnotations']);_0x17d0d0['add'](_0x482719),this['activeAnnotations']=_0x17d0d0;}['_removeActiveAnnotation'](_0x257b94){const _0x388d8b=new Set(this['activeAnnotations']);_0x388d8b['delete'](_0x257b94),this['activeAnnotations']=_0x388d8b;}['_bindAnnotationsToVisibleAnnotations'](){const _0x2bb40f=this['collection'],_0x161107=this['_visibleAnnotations'];function _0x2db844(_0x470cfe){const _0xd23a3a=_0x470cfe['source'];_0xd23a3a['isVisible']&&!_0x161107['has'](_0xd23a3a)?_0x161107['add'](_0xd23a3a):!_0xd23a3a['isVisible']&&_0x161107['has'](_0xd23a3a)&&_0x161107['remove'](_0xd23a3a),_0xd23a3a['view']['focusTracker']['remove'](_0xd23a3a['view']['element']),_0xd23a3a['view']['focusTracker']['add'](_0xd23a3a['view']['element']);}this['listenTo'](_0x2bb40f,'add',(_0x1e90d4,_0xbff3fc)=>{_0xbff3fc['isVisible']&&_0x161107['add'](_0xbff3fc),this['listenTo'](_0xbff3fc,'change:isVisible',_0x2db844);}),this['listenTo'](_0x2bb40f,'remove',(_0x39e791,_0x3da6b5)=>{_0x161107['has'](_0x3da6b5)&&_0x161107['remove'](_0x3da6b5),this['stopListening'](_0x3da6b5,'change:isVisible',_0x2db844);});}['_setupEnterAnnotationKeystroke'](){const _0x340698=_0xe28679=>{_0xe28679['on']('ready',()=>{_0xe28679['keystrokes']['set'](_0x5307ed,(_0x3e5d66,_0x214905)=>{const _0x40d31c=_0x1c8703(this['activeAnnotations']['values']());_0x40d31c&&(_0x40d31c['view']['focus'](),_0x214905());});});};this['context']instanceof _0x354252?_0x340698(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x4d5ec6,_0x29b958)=>{_0x340698(_0x29b958);});}['_setupEscapeAnnotationHandling'](){const _0x4e06c0=_0x4fe62d=>{const _0x40406e=_0x4fe62d['source'],_0x5ceab4=[];let _0x3d370f;if(Array['isArray'](_0x40406e['target'])){_0x3d370f=_0x40406e['target'][0x0],this['context']instanceof _0x354252?_0x5ceab4['push'](this['context']):this['context']['editors']&&_0x5ceab4['push'](...this['context']['editors']);for(const _0x1eb120 of _0x5ceab4)for(const _0x565653 of _0x1eb120['editing']['view']['domRoots']['values']())if(_0x565653['contains'](_0x3d370f))return void _0x1eb120['editing']['view']['focus']();_0x3d370f['focus']();}};this['listenTo'](this['collection'],'add',(_0xf76154,_0x46afee)=>{this['listenTo'](_0x46afee,'escape',_0x4e06c0,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x4f8aef,_0x563038)=>{this['stopListening'](_0x563038,'escape',_0x4e06c0);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0xdb81b3{['_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(_0x45eab2){super(_0x45eab2),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x1c6c1b=this['context']['config'];_0x1c6c1b['define']('comments.maxCommentsWhenCollapsed',0x2),_0x1c6c1b['define']('comments.maxThreadTotalWeight',0x1f4),_0x1c6c1b['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x1c6c1b['define']('comments.CommentThreadView',vt),_0x1c6c1b['define']('comments.CommentView',gt),_0x1c6c1b['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x4bd5ee=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x244158,_0x2cc3d7)=>this['_addCommentThread'](_0x2cc3d7)),this['on']('submitCommentThread',(_0x3b709a,_0x3b4701)=>this['_submitCommentThread'](_0x3b4701)),this['on']('resolveCommentThread',(_0x14118d,_0x1de775)=>this['_resolveCommentThread'](_0x1de775)),this['on']('resolveCommentThread',(_0x485e85,_0xadd258)=>this['_updateActiveAnnotation'](_0xadd258),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x2e217b,_0x355718)=>this['_reopenCommentThread'](_0x355718)),this['on']('reopenCommentThread',(_0x4505ff,_0xb0d871)=>this['_updateActiveAnnotation'](_0xb0d871),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x21f9f1,_0x743cdf)=>this['_removeCommentThread'](_0x743cdf)),this['on']('updateCommentThread',(_0x56a1b2,_0x31e084)=>this['_updateCommentThread'](_0x31e084)),this['on']('updateCommentThread',(_0x35927a,_0xdd8af)=>this['_updateActiveAnnotation'](_0xdd8af),{'priority':'lowest'}),this['on']('addComment',(_0x111559,_0x377870)=>this['_addComment'](_0x377870)),this['on']('updateComment',(_0x38f689,_0x497ea2)=>this['_updateComment'](_0x497ea2)),this['on']('removeComment',(_0x33bb66,_0x16f760)=>this['_removeComment'](_0x16f760)),this['on']('addComment',(_0x1171df,{threadId:_0x435a4a,isFromAdapter:_0x4c68a3})=>{if(_0x4c68a3)return;const _0x96098d=this['getCommentThread'](_0x435a4a),_0x5db562=_0x96098d&&this['_threadToController']['get'](_0x96098d);_0x5db562&&_0x5db562['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x4bd5ee,'change:activeAnnotations',(_0x2a00bb,_0x2dd120,_0x4a0a96)=>{const _0x3ae117=Array['from'](_0x4a0a96)['map'](_0x398946=>this['_viewToController']['get'](_0x398946['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x3ae117?_0x3ae117['model']:null;});}set['adapter'](_0x52603e){if(this['_adapter'])throw new _0x4ee480('commentsrepository-adapter-already-set');this['_adapter']=_0x52603e;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x45cc5c=Tt,threadId:_0x899962=_0x415d77(),comments:_0x25f2d8=[],unlinkedAt:_0x2be124=null,resolvedAt:_0x1c1066=null,resolvedBy:_0x223f10=null,target:_0x137dce=null,context:_0x11355d=null,attributes:_0x263612={},isResolvable:_0x3c92df=!0x0,isSubmitted:_0x46eae0=!0x1,isFromAdapter:_0x2a6bdf=!0x1}={}){return this['fire'](bt('addCommentThread',_0x45cc5c),{'channelId':_0x45cc5c,'threadId':_0x899962,'comments':_0x25f2d8,'unlinkedAt':_0x2be124,'resolvedAt':_0x1c1066,'resolvedBy':_0x223f10,'target':_0x137dce,'context':_0x11355d,'attributes':_0x263612,'isFromAdapter':_0x2a6bdf,'isResolvable':_0x3c92df,'isSubmitted':_0x46eae0}),this['getCommentThread'](_0x899962);}['openNewCommentThread']({channelId:_0x1dedb2=Tt,threadId:_0x631448=_0x415d77(),target:_0x34c0de,context:_0xec7c86=null,isResolvable:_0x38eea9=!0x0}){if(this['_readOnlyChannels']['has'](_0x1dedb2)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x34c0de)throw new _0x4ee480('commentsrepository-missing-target');const _0x126f63=this['addCommentThread']({'channelId':_0x1dedb2,'threadId':_0x631448,'target':_0x34c0de,'context':_0xec7c86,'isResolvable':_0x38eea9});if(!_0x126f63)return null;const _0x424773=this['_threadToController']['get'](_0x126f63),_0x5ae7aa=_0x424773['view']['commentThreadInputView']['commentInputView'],_0x53655c=this['context']['plugins']['get'](N),_0x54cb27=_0x53655c['getByInnerView'](_0x424773['view']);return _0x53655c['activate'](_0x54cb27),_0x5ae7aa['once']('editorReady',()=>_0x5ae7aa['focus']()),_0x126f63;}['hasCommentThread'](_0x28f3f6){if('string'!=typeof _0x28f3f6)throw new _0x4ee480('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x28f3f6);}['updateCommentThread']({channelId:_0xe5fb64=Tt,threadId:_0x59f470,context:_0x15d77f,unlinkedAt:_0xf3710c,attributes:_0x2a0397,isFromAdapter:_0x5a393b=!0x1}){return this['fire'](bt('updateCommentThread',_0xe5fb64),{'channelId':_0xe5fb64,'threadId':_0x59f470,'context':_0x15d77f,'unlinkedAt':_0xf3710c,'attributes':_0x2a0397,'isFromAdapter':_0x5a393b}),this['getCommentThread'](_0x59f470);}['getCommentThread'](_0x1eb43e){if('string'!=typeof _0x1eb43e)throw new _0x4ee480('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x1eb43e);}['fetchCommentThread']({channelId:_0xc390a0,threadId:_0x88acb5}={}){const _0x3ed080=this['getCommentThread'](_0x88acb5);if(_0x3ed080)return Promise['resolve'](_0x3ed080);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x4ee480('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0xc390a0,'threadId':_0x88acb5})['then'](_0x5a5d1b=>this['hasCommentThread'](_0x88acb5)?this['getCommentThread'](_0x88acb5):_0x5a5d1b?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0xc390a0},_0x5a5d1b)):void 0x0)['catch'](_0x39308c=>{throw console['error'](_0x39308c),new _0x4ee480('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x501b9d,skipNotAttached:_0x1aa987=!0x1,skipEmpty:_0x1fbe18=!0x1,toJSON:_0x173b6f=!0x1}={}){const _0x3a54d1=[];for(const _0x27dd15 of this['_threads']['values']())_0x501b9d&&_0x27dd15['channelId']!==_0x501b9d||_0x1aa987&&!_0x27dd15['isAttached']||_0x1fbe18&&0x0===_0x27dd15['length']||_0x3a54d1['push'](_0x27dd15);return _0x173b6f?_0x3a54d1['map'](_0x5bb1b6=>_0x5bb1b6['toJSON']()):_0x3a54d1;}['setActiveCommentThread'](_0x3c2c82){const _0x1d3358=this['context']['plugins']['get'](N);if(!_0x3c2c82)return void(this['activeCommentThread']&&_0x1d3358['deactivateAll']());const _0x45a82d=this['getCommentThread'](_0x3c2c82);if(!_0x45a82d)throw new _0x4ee480('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x3c2c82});if(!this['_threadToController']['has'](_0x45a82d))throw new _0x4ee480('commentsrepository-active-not-attached',null,{'threadId':_0x3c2c82});const _0x561179=_0x1d3358['getByInnerView'](this['_threadToController']['get'](_0x45a82d)['view']);_0x1d3358['activate'](_0x561179);}['switchReadOnly'](_0x5e86be,_0x170853){_0x5e86be?this['_readOnlyChannels']['add'](_0x170853):this['_readOnlyChannels']['delete'](_0x170853),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x5040b1){return this['_readOnlyChannels']['has'](_0x5040b1)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x2ca862,_0x19aeba){return new Ct(_0x2ca862,_0x19aeba);}['setPermissions'](_0x429b3a,_0x5dbb18=Tt){this['_permissions']['set'](_0x5dbb18,_0x429b3a),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x10488e=Tt){return this['_permissions']['has'](_0x10488e)?this['_permissions']['get'](_0x10488e):_t;}['_addCommentThread']({channelId:_0x4d1d88,threadId:_0x2e37eb,comments:_0x2cdb00,unlinkedAt:_0x4e74a2,resolvedAt:_0x1aca22,resolvedBy:_0x89d3e4,target:_0x237123,context:_0x41fe48,attributes:_0x59f3d1,isFromAdapter:_0x50ce7c,isResolvable:_0x398aec,isSubmitted:_0x560f0b}){if('string'!=typeof _0x2e37eb)throw new _0x4ee480('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x2e37eb});if(this['hasCommentThread'](_0x2e37eb))throw new _0x4ee480('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x2e37eb});const _0x30dafa=new oe(this,{'channelId':_0x4d1d88,'id':_0x2e37eb,'context':_0x41fe48,'attributes':_0x59f3d1,'unlinkedAt':_0x4e74a2,'resolvedAt':_0x1aca22,'resolvedBy':_0x89d3e4?this['context']['plugins']['get'](it)['getUser'](_0x89d3e4):null,'isResolvable':_0x398aec,'isSubmitted':_0x560f0b||_0x50ce7c});this['_threads']['set'](_0x2e37eb,_0x30dafa);for(const _0x4a93d7 of _0x2cdb00)_0x30dafa['_add'](this['_createNewComment']({'threadId':_0x2e37eb,..._0x4a93d7}));return _0x237123&&_0x30dafa['attachTo'](_0x237123),_0x50ce7c||!_0x30dafa['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x4d1d88,'threadId':_0x2e37eb});}['_submitCommentThread']({channelId:_0x4cc3f4,threadId:_0x4b2651}){if(!this['hasCommentThread'](_0x4b2651))throw new _0x4ee480('commentsrepository-missing-comment-thread',this);const _0x2033f5=this['getCommentThread'](_0x4b2651);if(_0x2033f5['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x34c7b0,comments:_0x14ed0f,resolvedAt:_0x13dbba,resolvedBy:_0x17706b,context:_0x329e73,attributes:_0x5ab36c}=_0x2033f5,_0x17d8a1=this['context']['plugins']['get']('PendingActions'),_0x38e25c=_0x17d8a1['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x4cc3f4,'threadId':_0x34c7b0,'comments':_0x14ed0f['map'](_0x5cb326=>_0x5cb326['toJSON']()),'resolvedAt':_0x13dbba,'resolvedBy':_0x17706b?_0x17706b['id']:_0x17706b,'context':_0x329e73,'attributes':_0x5ab36c})['then'](({comments:_0x4d8982})=>{_0x17d8a1['remove'](_0x38e25c);for(const _0x158d4a of _0x4d8982)this['_updateComment']({'channelId':_0x4cc3f4,'threadId':_0x4b2651,'commentId':_0x158d4a['commentId'],'createdAt':_0x158d4a['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x128245=>{throw console['error'](_0x128245),new _0x4ee480('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x58068e,target:_0xd27068}){const _0x5423e7=this['getCommentThread'](_0x58068e);if(!_0x5423e7)throw new _0x4ee480('commentsrepository-attach-missing-comment-thread',this);const _0x5ca6fb=this['context']['plugins']['get']('PendingActions'),_0x2fa190=this['context']['plugins']['get'](N),_0x2e1526=this['_createCommentThreadView'](_0x5423e7),_0x286fa7=new Ct(_0x5423e7,_0x2e1526);let _0x3b61cb=null;_0x2e1526['on']('change:isDirty',(_0x2dafc1,_0x10a911,_0x1826c1)=>{_0x1826c1?_0x3b61cb=_0x5ca6fb['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x3b61cb&&(_0x5ca6fb['remove'](_0x3b61cb),_0x3b61cb=null);}),this['_threadToController']['set'](_0x5423e7,_0x286fa7),this['_viewToController']['set'](_0x2e1526,_0x286fa7);const _0x2ea68e=new T(this['context']['locale'],_0x2e1526);_0x2ea68e['bind']('length')['to'](_0x2e1526),_0x2ea68e['bind']('isDirty')['to'](_0x2e1526,'isDirty',_0x2e1526,'length',(_0x3f5620,_0x435c61)=>_0x3f5620||!_0x435c61),_0x2ea68e['bind']('isActive')['to'](_0x2e1526),_0x2ea68e['type']='comment';const _0x2177f0=new d({'view':_0x2ea68e,'target':_0xd27068,'type':'comment','isVisible':!_0x5423e7['isResolved']});return _0x2e1526['on']('escape',()=>{_0x2177f0['fire']('escape');}),this['_bindAnnotationToEditors'](_0x2e1526,_0x2177f0),_0x2fa190['add'](_0x2177f0),_0x2177f0;}['_bindAnnotationToEditors'](_0x3a3bdb,_0x38f3de){this['listenTo'](_0x3a3bdb,'editorReady',(_0x5eb8b4,_0x1403ac)=>{const _0x372217=_0x1403ac['ui']['view']['body']['bodyCollectionContainer'];_0x38f3de['focusableElements']['add'](_0x372217),this['context']instanceof _0x354252&&this['context']['ui']['focusTracker']['add'](_0x372217);},{'priority':'highest'}),this['listenTo'](_0x3a3bdb,'editorDestroyed',(_0x41a634,_0x3d6847)=>{const _0x1f1703=_0x3d6847['ui']['view']['body']['bodyCollectionContainer'];_0x38f3de['focusableElements']['has'](_0x1f1703)&&_0x38f3de['focusableElements']['remove'](_0x1f1703),this['context']instanceof _0x354252&&this['context']['ui']['focusTracker']['remove'](_0x1f1703);});}['_unbindEditors'](_0xc49192){this['stopListening'](_0xc49192,'editorReady'),this['stopListening'](_0xc49192,'editorDestroyed');}['_createCommentThreadView'](_0x11a304){const _0x43f319=this['context']['plugins']['get'](it),{config:_0x8e6d67,locale:_0xb3fe74}=this['context'],_0x988293=lt(_0x8e6d67['get']('locale'));return new(0x0,(_0x8e6d67['get']('comments'))['CommentThreadView'])(_0xb3fe74,_0x11a304,_0x43f319['me'],{'editorConfig':{..._0x8e6d67['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x8e6d67['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x8e6d67['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x8e6d67['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x8e6d67['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x988293,'CommentView':_0x8e6d67['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x59639f,channelId:_0x279e31,resolvedAt:_0x5c4cdd,resolvedBy:_0x46ff32,isFromAdapter:_0x2953f8}){if(!this['hasCommentThread'](_0x59639f))throw new _0x4ee480('commentsrepository-missing-comment-thread',null,{'threadId':_0x59639f});const _0xf1e69c=this['getCommentThread'](_0x59639f);if(_0xf1e69c['isResolved'])throw new _0x4ee480('commentsrepository-resolved-comment-thread',null,{'threadId':_0x59639f});const _0x20bdf8=this['context']['plugins']['get'](it);if(_0xf1e69c['resolvedBy']=_0x20bdf8['getUser'](_0x46ff32),_0xf1e69c['resolvedAt']=_0x5c4cdd,_0x2953f8||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x25ad92=this['context']['plugins']['get']('PendingActions'),_0x148013=_0x25ad92['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x279e31,'threadId':_0x59639f})['then'](({resolvedAt:_0x5a4e10,resolvedBy:_0x49c892})=>{_0x25ad92['remove'](_0x148013),_0xf1e69c['resolvedBy']['id']!==_0x49c892&&(_0xf1e69c['resolvedBy']=_0x20bdf8['getUser'](_0x49c892)),_0xf1e69c['resolvedAt']=_0x5a4e10;})['catch'](_0x35525a=>{throw console['error'](_0x35525a),new _0x4ee480('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x106700,channelId:_0x469ed2,isFromAdapter:_0x5df19c}){if(!this['hasCommentThread'](_0x106700))throw new _0x4ee480('commentsrepository-missing-comment-thread',null,{'threadId':_0x106700});const _0x1effe6=this['getCommentThread'](_0x106700);if(!_0x1effe6['isResolved'])throw new _0x4ee480('commentsrepository-reopen-comment-thread',null,{'threadId':_0x106700});if(_0x1effe6['resolvedBy']=null,_0x1effe6['resolvedAt']=null,_0x5df19c||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x94543e=this['context']['plugins']['get']('PendingActions'),_0x4d5c6f=_0x94543e['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x469ed2,'threadId':_0x106700})['then'](()=>_0x94543e['remove'](_0x4d5c6f))['catch'](_0x31958d=>{throw console['error'](_0x31958d),new _0x4ee480('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x5a8c69,isFromAdapter:_0x5034fe}){const _0x1abe66=this['getCommentThread'](_0x5a8c69);if(!_0x1abe66)throw new _0x4ee480('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x5a8c69),this['_threads']['delete'](_0x5a8c69),!_0x1abe66['isSubmitted']||_0x5034fe||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x294979=this['context']['plugins']['get']('PendingActions'),{channelId:_0x22d2f8}=_0x1abe66,_0x2376ed=_0x294979['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x22d2f8,'threadId':_0x5a8c69})['then'](()=>_0x294979['remove'](_0x2376ed))['catch'](_0x4fe8aa=>{throw console['error'](_0x4fe8aa),new _0x4ee480('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x584b2d,unlinkedAt:_0x285346,context:_0x3b3394,attributes:_0x4fbf05,isFromAdapter:_0x357b93}){if('string'!=typeof _0x584b2d)throw new _0x4ee480('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x584b2d});if(!this['hasCommentThread'](_0x584b2d))throw new _0x4ee480('commentsrepository-missing-comment-thread',null,{'threadId':_0x584b2d});const _0x34bc4b=this['getCommentThread'](_0x584b2d);let _0x1df012=!0x1;if(void 0x0!==_0x3b3394&&_0x34bc4b['context']!==_0x3b3394&&(_0x34bc4b['context']=_0x3b3394,_0x1df012=!0x0),void 0x0!==_0x285346&&_0x34bc4b['unlinkedAt']!==_0x285346&&(_0x34bc4b['unlinkedAt']=_0x285346,_0x1df012=!0x0),_0x4fbf05&&!wt(_0x4fbf05,_0x34bc4b['attributes'])&&(_0x34bc4b['attributes']=_0x4fbf05,_0x1df012=!0x0),!_0x1df012)return Promise['resolve']();if(!_0x34bc4b['isSubmitted']||_0x357b93||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x24104c=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5a76cb}=_0x34bc4b,_0x2b96fd=_0x24104c['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x5a76cb,'threadId':_0x584b2d,'context':_0x3b3394,'unlinkedAt':_0x285346,'attributes':_0x4fbf05})['then'](()=>_0x24104c['remove'](_0x2b96fd))['catch'](_0x3bcf5f=>{throw console['error'](_0x3bcf5f),new _0x4ee480('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x39836b){const _0x506029=this['context']['plugins']['get'](N),_0x2d8477=this['getCommentThread'](_0x39836b);if(_0x2d8477['_isAttached']=!0x1,this['_threadToController']['has'](_0x2d8477)){const _0x4e542e=this['_threadToController']['get'](_0x2d8477),_0x4c9f8b=_0x4e542e['view'],_0x33f431=_0x506029['getByInnerView'](_0x4c9f8b);this['_threadToController']['delete'](_0x2d8477),this['_viewToController']['delete'](_0x4c9f8b),_0x33f431&&_0x506029['remove'](_0x33f431),_0x4e542e['destroy'](),_0x4c9f8b['destroy']()['then'](()=>{this['_unbindEditors'](_0x4c9f8b);});}}['_updateActiveAnnotation']({threadId:_0x4761fe,resolvedAt:_0x4cfa26}){const _0x35f1a4=!!_0x4cfa26,_0x356b21=this['context']['plugins']['get'](N),_0x72dbce=this['getCommentThread'](_0x4761fe);if(this['_threadToController']['has'](_0x72dbce)){const _0x341e5f=this['_threadToController']['get'](_0x72dbce)['view'],_0x15bb1a=_0x356b21['getByInnerView'](_0x341e5f);_0x15bb1a&&(_0x35f1a4&&_0x356b21['_removeActiveAnnotation'](_0x15bb1a),_0x15bb1a['refreshVisibility']());}}['_getExternalAuthor'](_0x1f6a83){const _0x2d8a50=this['context']['plugins']['get'](it),_0x563b6d=pt('external:'+_0x1f6a83),_0x6c92ae=_0x2d8a50['getUser'](_0x563b6d);return _0x6c92ae||_0x2d8a50['addUser']({'id':_0x563b6d,'name':_0x1f6a83});}['_createNewComment']({threadId:_0x22f1a3,commentId:_0x52ca48=_0x415d77(),content:_0xdf964a,authorId:_0x2694bd,createdAt:_0x22f6bd,attributes:_0x501065}){if('string'!=typeof _0x52ca48)throw new _0x4ee480('commentsrepository-invalid-commentid');if('string'!=typeof _0x2694bd)throw new _0x4ee480('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0xdf964a||!_0xdf964a['trim']())throw new _0x4ee480('commentsrepository-invalid-comment-content');const _0x16507c=this['context']['plugins']['get'](it)['getUser'](_0x2694bd);if(!_0x16507c)throw new _0x4ee480('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x2694bd});let _0x41d27b=null,_0x4472cc=_0x22f6bd;return _0x501065&&_0x501065['@external']&&(_0x41d27b=this['_getExternalAuthor'](_0x501065['@external']['authorName']),_0x4472cc=new Date(_0x501065['@external']['createdAt'])),new re(this,{'threadId':_0x22f1a3,'id':_0x52ca48,'author':_0x41d27b||_0x16507c,'creator':_0x16507c,'content':_0xdf964a,'createdAt':_0x22f6bd,'authoredAt':_0x4472cc,'attributes':_0x501065});}['_addComment'](_0x4c1cbe){let {threadId:_0x40c8a3,content:_0x523605,attributes:_0x46adf4,isFromAdapter:_0x53bcad}=_0x4c1cbe;const _0x593789=this['getCommentThread'](_0x4c1cbe['threadId']);if(!_0x593789)throw new _0x4ee480('commentsrepository-add-comment-to-missing-comment-thread',this);const _0xf85419=this['_createNewComment'](_0x4c1cbe),{id:_0x59c8d3}=_0xf85419;if(_0x593789['_add'](_0xf85419),_0x53bcad||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x593789['isSubmitted'])return Promise['resolve']();const _0x1c70cf=this['context']['plugins']['get']('PendingActions'),{channelId:_0x508d80}=_0x593789,_0x5edff2=_0x1c70cf['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x46adf4||(_0x46adf4={}),this['adapter']['addComment']({'channelId':_0x508d80,'threadId':_0x40c8a3,'commentId':_0x59c8d3,'content':_0x523605,'attributes':_0x46adf4})['then'](_0x614d77=>{_0x1c70cf['remove'](_0x5edff2),_0x614d77&&this['_updateComment']({'channelId':_0x508d80,'threadId':_0x40c8a3,'commentId':_0x59c8d3,'createdAt':_0x614d77['createdAt'],'isFromAdapter':!0x0});})['catch'](_0xc0eaf1=>{throw console['error'](_0xc0eaf1),new _0x4ee480('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x22a429,commentId:_0x4fe5ef,content:_0x57144c,createdAt:_0x4989c5,attributes:_0x5dc593,isFromAdapter:_0x5457c3}){if(void 0x0!==_0x57144c&&('string'!=typeof _0x57144c||!_0x57144c['trim']()['length']))throw new _0x4ee480('commentsrepository-update-comment-invalid-content');const _0x5a0ffc=this['getCommentThread'](_0x22a429),_0x730e38=_0x5a0ffc['getComment'](_0x4fe5ef);if(!_0x730e38)throw new _0x4ee480('commentsrepository-update-missing-comment',this);let _0x360574=!0x1;if(_0x57144c&&_0x57144c!==_0x730e38['content']&&(_0x730e38['isEditable']||_0x5457c3)&&(_0x730e38['content']=_0x57144c,_0x360574=!0x0),_0x4989c5&&_0x4989c5!==_0x730e38['createdAt']&&(_0x730e38['createdAt']=_0x4989c5,_0x730e38['attributes']&&_0x730e38['attributes']['@external']||(_0x730e38['authoredAt']=_0x4989c5),_0x360574=!0x0),_0x5dc593&&!wt(_0x5dc593,_0x730e38['attributes'])&&(_0x730e38['attributes']=_0x5dc593,_0x360574=!0x0),!_0x360574)return Promise['resolve']();if(_0x5a0ffc['fire']('commentUpdated'),_0x5457c3||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x278ce6=this['context']['plugins']['get']('PendingActions'),{channelId:_0x312f64}=this['getCommentThread'](_0x730e38['threadId']),_0x4b044f=_0x278ce6['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x312f64,'threadId':_0x22a429,'commentId':_0x4fe5ef,'content':_0x57144c,'attributes':_0x5dc593})['then'](()=>_0x278ce6['remove'](_0x4b044f))['catch'](_0x2661c9=>{throw console['error'](_0x2661c9),new _0x4ee480('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x5b1479,commentId:_0x1062f8,isFromAdapter:_0x12f4c6}){const _0x1967c2=this['getCommentThread'](_0x5b1479),_0x525182=_0x1967c2['getComment'](_0x1062f8);if(!_0x525182)throw new _0x4ee480('commentsrepository-remove-missing-comment',this);if(_0x1967c2['_remove'](_0x525182),_0x12f4c6||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x1ac10b=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3b36f7}=_0x1967c2,_0x1dd22e=_0x1ac10b['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x3b36f7,'threadId':_0x5b1479,'commentId':_0x1062f8})['then'](()=>_0x1ac10b['remove'](_0x1dd22e))['catch'](_0x2ca241=>{throw console['error'](_0x2ca241),new _0x4ee480('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x116fb0(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x59b5b3,_0x1982d4){super();const _0x200214=_0x1982d4['isResolvable'];this['channelId']=_0x1982d4['channelId'],this['id']=_0x1982d4['id'],this['comments']=new _0x4119ce(),this['_repository']=_0x59b5b3,this['_isAttached']=!0x1,this['_isSubmitted']=_0x1982d4['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x59b5b3,'_permissions',_0x59b5b3,'_readOnlyChannels',()=>_0x59b5b3['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x59b5b3,'_permissions',()=>_0x59b5b3['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x59b5b3,'_permissions',()=>{const _0x340fa9=_0x59b5b3['getPermissions'](this['channelId']);return _0x340fa9['write']||_0x340fa9['admin'];}),this['bind']('isResolvable')['to'](_0x59b5b3,'_permissions',()=>_0x200214&&_0x59b5b3['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x1982d4['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x5bcf3a,_0x482576)=>_0x5bcf3a?_0x482576?_0x5bcf3a<_0x482576?_0x5bcf3a:_0x482576:_0x5bcf3a:_0x482576),this['set']('unlinkedAt',_0x1982d4['unlinkedAt']||null),this['set']('resolvedAt',_0x1982d4['resolvedAt']||null),this['set']('resolvedBy',_0x1982d4['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x33d1b1=>!!_0x33d1b1),this['set']('attributes',_0x1982d4['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x3e61c6,_0x4c7b63)=>_0x3e61c6+_0x4c7b63['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x1ab7e3,id:_0x44b150}=this;this['_repository']['fire'](bt('submitCommentThread',_0x1ab7e3),{'channelId':_0x1ab7e3,'threadId':_0x44b150});}['setUnlinkedAt'](_0x3b2861){this['_update']({'unlinkedAt':_0x3b2861});}['resolve']({resolvedAt:_0x3073ca=new Date(),resolvedBy:_0x2a6837=null,isFromAdapter:_0x4706b8=!0x1}={}){const _0x36f6cd=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x33e72c,id:_0x1b2d7d}=this;this['_repository']['fire'](bt('resolveCommentThread',_0x33e72c),{'channelId':_0x33e72c,'threadId':_0x1b2d7d,'resolvedAt':_0x3073ca,'resolvedBy':_0x2a6837||_0x36f6cd['id'],'isFromAdapter':_0x4706b8});}['reopen']({isFromAdapter:_0x42159e=!0x1}={}){const {channelId:_0x10fcbc,id:_0x4469b8}=this;this['_repository']['fire'](bt('reopenCommentThread',_0x10fcbc),{'channelId':_0x10fcbc,'threadId':_0x4469b8,'isFromAdapter':_0x42159e});}['setContext'](_0x5cb41e){this['context']||this['_update']({'context':_0x5cb41e});}['setAttribute'](_0x1436ca,_0x3f7f02){const _0xccfce=It(this['attributes']);At(_0xccfce,_0x1436ca,_0x3f7f02),this['_update']({'attributes':_0xccfce});}['removeAttribute'](_0x1f05af){const _0xbebafe=It(this['attributes']);yt(_0xbebafe,_0x1f05af),this['_update']({'attributes':_0xbebafe});}['remove']({isFromAdapter:_0x39f7a0=!0x1}={}){const {channelId:_0x3415fb,id:_0x3e0f8e}=this;this['_repository']['fire'](bt('removeCommentThread',_0x3415fb),{'channelId':_0x3415fb,'threadId':_0x3e0f8e,'isFromAdapter':_0x39f7a0});}['attachTo'](_0x2f48b1){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x2f48b1});}['addComment'](_0x57f82a){const {channelId:_0x12eab9,id:_0x5d1014}=this;this['_repository']['fire'](bt('addComment',_0x12eab9,_0x5d1014),Object['assign']({'channelId':_0x12eab9,'threadId':_0x5d1014},_0x57f82a));}['getComment'](_0x58e2fc){if('string'!=typeof _0x58e2fc)throw new _0x4ee480('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x58e2fc});return this['comments']['get'](_0x58e2fc);}['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'](_0x33fcf9=>_0x33fcf9['toJSON']()),'attributes':this['attributes']};}['_add'](_0x40af3c){return this['listenTo'](_0x40af3c,'change:authoredAt',()=>{const _0x226f9c=this['_findOptimalIndex'](_0x40af3c),_0x5f2b9e=this['comments'];_0x226f9c-0x1!=_0x5f2b9e['getIndex'](_0x40af3c)&&_0x226f9c+0x1!=_0x5f2b9e['getIndex'](_0x40af3c)&&(this['_remove'](_0x40af3c),this['_add'](_0x40af3c));}),this['comments']['add'](_0x40af3c,this['_findOptimalIndex'](_0x40af3c));}['_update'](_0x3e30f1){const {channelId:_0x269f19,id:_0x2a427e}=this;this['_repository']['fire'](bt('updateCommentThread',_0x269f19),{..._0x3e30f1,'channelId':_0x269f19,'threadId':_0x2a427e});}['_remove'](_0x1dd0db){return this['stopListening'](_0x1dd0db),_0x1dd0db['destroy'](),this['comments']['remove'](_0x1dd0db);}['_findOptimalIndex'](_0x5b8a2b){const _0x4a3969=this['comments']['find'](_0x46a3b5=>new Date(_0x46a3b5['authoredAt'])['getTime']()>new Date(_0x5b8a2b['authoredAt'])['getTime']());return _0x4a3969?this['comments']['getIndex'](_0x4a3969):this['length'];}}class re extends/* #__PURE__ -- @preserve */
|
|
31
|
+
_0x116fb0(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x3f613a,_0x1005bb){super();const _0xc4c21e=_0x3f613a['context']['plugins']['get'](it)['me'],_0x6255cd=_0x3f613a['getCommentThread'](_0x1005bb['threadId']),_0x376d6b=0x0===_0x6255cd['comments']['length'],_0x1e3f95=_0xc4c21e===_0x1005bb['author'];this['id']=_0x1005bb['id'],this['threadId']=_0x1005bb['threadId'],this['author']=_0x1005bb['author'],this['creator']=_0x1005bb['creator'],this['isExternal']=Boolean(_0x1005bb['attributes']&&_0x1005bb['attributes']['@external']),this['set']('content',_0x1005bb['content']),this['createdAt']=_0x1005bb['createdAt']||new Date(),this['set']('authoredAt',_0x1005bb['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x6255cd,'resolvedAt'),this['set']('attributes',_0x1005bb['attributes']||{}),this['bind']('isEditable')['to'](_0x3f613a,'_permissions',()=>{const _0x398079=_0x3f613a['getPermissions'](_0x6255cd['channelId'])['write'],_0x486213=_0x3f613a['getPermissions'](_0x6255cd['channelId'])['modifyAll'];return _0x1e3f95&&_0x398079||!_0x1e3f95&&_0x486213;}),this['bind']('isRemovable')['to'](_0x6255cd,'isRemovable',_0x3f613a,'_permissions',_0x231fae=>{const _0x56d249=_0x3f613a['getPermissions'](_0x6255cd['channelId'])['write'],_0x1c808f=_0x3f613a['getPermissions'](_0x6255cd['channelId'])['modifyAll'];return _0x1e3f95&&_0x56d249||_0x231fae&&_0x376d6b||!_0x1e3f95&&_0x1c808f&&!_0x376d6b;}),this['bind']('isReadOnly')['to'](_0x6255cd,'isReadOnly'),this['_repository']=_0x3f613a;}get['weight'](){return Math['max'](function(_0x1c2328){const _0x2e7bba=document['createElement']('div');return _0x2e7bba['innerHTML']=_0x1c2328,_0x2e7bba['textContent']['length'];}(this['content']),0xc8);}['update'](_0x77c99e){const {threadId:_0x69bc29,id:_0x1c6c55}=this;if(!this['_repository']['hasCommentThread'](_0x69bc29))throw new _0x4ee480('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x2d667f}=this['_repository']['getCommentThread'](_0x69bc29);this['_repository']['fire'](bt('updateComment',_0x2d667f,_0x69bc29),{'channelId':_0x2d667f,'threadId':_0x69bc29,'commentId':_0x1c6c55,..._0x77c99e});}['setAttribute'](_0x370579,_0x4a21dc){const _0x15e71e=It(this['attributes']);At(_0x15e71e,_0x370579,_0x4a21dc),this['update']({'attributes':_0x15e71e});}['removeAttribute'](_0x1c7e34){const _0x683f50=It(this['attributes']);yt(_0x683f50,_0x1c7e34),this['update']({'attributes':_0x683f50});}['remove'](_0x56316a={}){if(!_0x56316a['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x2e5d0a,id:_0x17c85b}=this;if(!this['_repository']['hasCommentThread'](_0x2e5d0a))throw new _0x4ee480('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x2fc8da}=this['_repository']['getCommentThread'](_0x2e5d0a);this['_repository']['fire'](bt('removeComment',_0x2fc8da,_0x2e5d0a),{'channelId':_0x2fc8da,'threadId':_0x2e5d0a,'commentId':_0x17c85b,..._0x56316a});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x209dad,..._0x9c991f){for(const _0x2945bb of _0x9c991f)void 0x0!==_0x2945bb&&(_0x209dad+=':'+String(_0x2945bb));return _0x209dad;}class J extends _0x1e1cdf{['refresh'](){const _0x55c0ce=this['editor']['model']['document']['selection'];for(const _0x48d333 of _0x55c0ce['getRanges']())if(this['_hasContent'](_0x48d333))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0xd581cd=_0x415d77()}={}){const _0x24ed0e=this['editor']['model'],_0x51d0b0=[];for(const _0x7bd7d7 of _0x24ed0e['document']['selection']['getRanges']())this['_hasContent'](_0x7bd7d7)&&_0x51d0b0['push'](this['_trimToContent'](_0x7bd7d7));_0x24ed0e['change'](_0x34e49c=>{for(const _0xcaabc4 of _0x51d0b0){const _0x12bb03=_0x415d77()['substr'](0x1,0x5),_0x1670d8='comment:'+_0xd581cd+':'+_0x12bb03;_0x34e49c['addMarker'](_0x1670d8,{'range':_0xcaabc4,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x41b90e){for(const _0xdfd107 of _0x41b90e['getItems']())if(this['_itemIsContent'](_0xdfd107))return!0x0;return!0x1;}['_itemIsContent'](_0x2f8c72){return _0x2f8c72['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x2f8c72)&&!_0x2f8c72['is']('element','tableCell');}['_trimToContent'](_0x990ed1){const _0x9e0a66=_0x4783dc=>!this['_itemIsContent'](_0x4783dc['item']),_0x1facc8=_0x990ed1['start']['getLastMatchingPosition'](_0x9e0a66),_0x505d91=_0x990ed1['end']['getLastMatchingPosition'](_0x9e0a66,{'direction':'backward'});return this['editor']['model']['createRange'](_0x1facc8,_0x505d91);}}class P extends _0x2ee0ad{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb594b1){super(_0xb594b1),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x3ad6ed=this['editor'],_0x2badce=_0x3ad6ed['model']['document']['selection'],_0x2f1bf4=_0x22076e(()=>this['refreshSelectedViews'](),0xa);_0x2badce['on']('change:range',(_0x2c5b45,_0x2f89bc)=>{_0x2f89bc['directChange']&&(_0x2f1bf4['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x3ad6ed['editing']['view']['document'],'change:isFocused',(_0x2c64bf,_0x287f45,_0x4dfdc2)=>{_0x4dfdc2&&_0x2f1bf4();}),this['listenTo'](_0x3ad6ed['ui']['focusTracker'],'change:isFocused',(_0x1c2f8e,_0x2a1110,_0x4e2002)=>{_0x4e2002||_0x3ad6ed['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x3494dc=>this['_editorAnnotationsData']['has'](_0x3494dc['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x4ffd27){if(this['_editorAnnotations']['has'](_0x4ffd27['view']))return;this['_editorAnnotations']['add'](_0x4ffd27['view']),this['editor']['ui']['focusTracker']['add'](_0x4ffd27['view']['element']);const _0x36eff8=this['editor']['plugins']['get'](N);this['listenTo'](_0x36eff8['collection'],'remove',(_0x5cb868,_0x22c152)=>{this['editor']['ui']['focusTracker']['remove'](_0x22c152['view']['element']),this['_editorAnnotations']['delete'](_0x22c152['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x496e1f){if('function'!=typeof _0x496e1f)throw new _0x4ee480('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x496e1f);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x2371ce,annotations:_0x5f1a31}){const _0x17dff4=[],_0xdd732f=this['editor']['model']['document']['selection'],_0x4bf1e4=Array['from'](_0xdd732f['getRanges']());for(const [_0x4f3f53,_0xf1246a]of this['_editorAnnotationsData']){const _0x57dd58=_0x2977c6(_0xf1246a),_0x5d40cf=_0x5f1a31['getByInnerView'](_0x4f3f53);_0x57dd58&&_0x5d40cf&&_0x17dff4['push']({'annotation':_0x5d40cf,'range':_0x57dd58});}function _0x2977c6(_0x2338b5){for(const _0x371f02 of _0x2338b5)for(const _0x46e2a9 of _0x4bf1e4)if(_0x371f02['containsRange'](_0x46e2a9,!_0xdd732f['isCollapsed']))return _0x371f02;return null;}return _0x17dff4['sort']((_0x374c98,_0x2697f4)=>{const _0xb6520e=_0x374c98['range'],_0xfd01b0=_0x2697f4['range'];if(!_0xb6520e['isEqual'](_0xfd01b0)){if(_0xb6520e['containsRange'](_0xfd01b0,!0x0))return 0x1;if(_0xfd01b0['containsRange'](_0xb6520e,!0x0))return-0x1;}return _0x374c98['annotation']==_0x2371ce?-0x1:_0x2697f4['annotation']==_0x2371ce?0x1:0x0;})['map'](_0x56373f=>_0x56373f['annotation']);}get['_editorAnnotationsData'](){const _0x637060=new Map();for(const _0x2a64b5 of Array['from'](this['_dataCollectors']))for(const [_0xd8b761,_0x593749]of _0x2a64b5())_0x637060['set'](_0xd8b761,_0x593749);return _0x637060;}}class st extends _0x2ee0ad{['afterInit'](){const _0x2e732c=this['editor'];if(!_0x2e732c['plugins']['has']('RestrictedEditingModeEditing'))return;_0x2e732c['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x2ee0ad{constructor(_0x47b5be){super(_0x47b5be),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x5a9a01=this['editor'],_0x114ccb=_0x5a9a01['commands']['get']('importWord'),_0x5c43a7=_0x5a9a01['plugins']['get'](it);_0x114ccb&&(_0x114ccb['on']('execute',(_0x437a84,[,_0x2085d0])=>{_0x2085d0['collaboration_features']={'comments':!0x0,'user_id':_0x5c43a7['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x114ccb,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x16f6c8,_0x13ada1){const {comment_threads:_0x3777ac}=_0x13ada1;_0x3777ac&&_0x3777ac['forEach'](({thread_id:_0x54fac6,comments:_0x1eedcd,is_resolved:_0x5d49ab})=>{const _0x5d3935=new Date(),_0x183837=_0x1eedcd['map'](({author:_0x31b4ee,content:_0xd56357,created_at:_0x2ff0a8})=>({'content':_0xd56357,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x5d3935,'attributes':{'@external':{'authorName':_0x31b4ee,'createdAt':_0x2ff0a8?new Date(_0x2ff0a8):new Date(),'source':'importWord'}}})),_0x524ec1=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x524ec1,'threadId':_0x54fac6,'comments':_0x183837,'resolvedAt':_0x5d49ab?_0x5d3935:null});});}}class at extends _0x2ee0ad{constructor(_0x5273fe){super(_0x5273fe),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x12b9dd=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x12b9dd,'contentInsertion',(_0x293dce,_0x14079a)=>this['_removeMarkersWithoutThreads'](_0x14079a['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x79f12e){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x79f12e;const _0x152a8d=this['editor']['plugins']['get']('CommentsRepository');for(const _0x4acab9 of _0x79f12e['keys']()){const [_0x478ba8,_0x57a4f0]=_0x4acab9['split'](':');'comment'!=_0x478ba8||_0x152a8d['hasCommentThread'](_0x57a4f0)||_0x79f12e['delete'](_0x4acab9);}return _0x79f12e;}['_registerMarkerInClipboardPipeline'](){const _0xd00f94=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x54d6b0=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x54d6b0&&_0xd00f94['_registerMarkerToCopy']('comment',_0x54d6b0);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x17db3f){switch(_0x17db3f){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class ut extends _0x2ee0ad{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x5cf67c,_0x2caf21)=>{if(!_0x2caf21['options']['showCommentHighlights'])return null;if(_0x2caf21['options']['ignoreResolvedComments']){const {id:_0x74b15f}=er(_0x5cf67c['markerName']),_0x3d0e0e=this['editor']['plugins']['get'](o)['getCommentThread'](_0x74b15f);if(_0x3d0e0e&&_0x3d0e0e['isResolved']&&_0x5cf67c['item'])return _0x2caf21['consumable']['consume'](_0x5cf67c['item'],'addMarker:'+_0x5cf67c['markerName']),_0x2caf21['consumable']['consume'](_0x5cf67c['item'],'removeMarker:'+_0x5cf67c['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x462972=>{_0x462972['on']('addMarker:comment',(_0x437388,_0x1caff6,_0x460644)=>{if(!_0x460644['options']['showCommentHighlights'])return;const _0x580972=_0x1caff6['item'];if(!_0x580972)return;const _0x2d9a97=_0x460644['mapper']['toViewElement'](_0x580972);this['editor']['model']['schema']['isObject'](_0x580972)&&_0x2d9a97&&!_0x2d9a97['getCustomProperty']('widget')&&_0x2d9a97['is']('containerElement')&&_0x548685(_0x2d9a97,_0x460644['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x732cf4,{writer:_0x5727ba,options:_0x5f173c})=>{if(!_0x5f173c['showCommentHighlights'])return null;const _0x605858=_0x5727ba['createContainerElement']('div'),_0x3d578c=_0x5727ba['createEmptyElement']('hr');return _0x5727ba['addClass']('ck-horizontal-line',_0x605858),_0x5727ba['insert'](_0x5727ba['createPositionAt'](_0x605858,0x0),_0x3d578c),_0x605858;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x36efe9,{writer:_0x3cc2a3,options:_0x174a2d})=>{if(!_0x174a2d['showCommentHighlights'])return null;const _0x5256fa=_0x3cc2a3['createContainerElement']('span'),_0x3c3bf1=_0x3cc2a3['createEmptyElement']('img');return _0x3cc2a3['addClass']('image-inline',_0x5256fa),_0x3cc2a3['insert'](_0x3cc2a3['createPositionAt'](_0x5256fa,0x0),_0x3c3bf1),_0x5256fa;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xbb9220,{writer:_0x122471,options:_0x12aef5})=>{if(_0x12aef5['showCommentHighlights'])return _0x122471['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3565fc,_0x37a9fe,_0x2717ed)=>{_0x2717ed['options']['showCommentHighlights']&&_0x3565fc['stop']();},{'priority':'high'});}}class r extends _0x2ee0ad{static get['requires'](){return[o,P,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4c0f4b){super(_0x4c0f4b),this['set']('isThreadsLoadingPaused',!0x0),_0x4c0f4b['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x487b88,_0x32a6f0,_0x35e565,_0x2f66fb)=>{const _0x520195=_0x4c0f4b['plugins']['get'](o),_0xadce27=_0x35e565?er(_0x35e565)['id']:null;if(_0x4c0f4b['model']['change'](()=>{if(_0xadce27){const _0xaaa74c=this['getAllMarkersForId'](_0xadce27);for(const _0x5f18a3 of _0xaaa74c)_0x4c0f4b['editing']['reconvertMarker'](_0x5f18a3);}if(_0x2f66fb){const {id:_0x1b709e}=er(_0x2f66fb),_0x38c910=_0x520195['getCommentThread'](_0x1b709e);if(_0x38c910&&!_0x38c910['isAttached'])return;const _0x7a8e72=this['getAllMarkersForId'](_0x1b709e);for(const _0x24812d of _0x7a8e72)_0x4c0f4b['editing']['reconvertMarker'](_0x24812d);}}),_0xadce27){const _0x38af6c=_0x520195['getCommentThread'](_0xadce27);_0x38af6c&&_0x38af6c['isResolved']&&this['scrollToThreadMarker'](_0xadce27);}}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xed7677=this['editor'],_0x323a0d=_0xed7677['plugins']['get'](o),_0x4d38e6=_0xed7677['config']['get']('collaboration.channelId');_0xed7677['commands']['add']('addCommentThread',new J(_0xed7677)),this['listenTo'](_0xed7677,'change:isReadOnly',(_0x366982,_0x471b37,_0x3b9c0c)=>{_0x323a0d['switchReadOnly'](_0x3b9c0c,_0xed7677['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x323a0d,ft('addCommentThread',_0x4d38e6),(_0x171607,{threadId:_0xdc4413})=>{const _0x45a7c1=this['editor']['plugins']['get'](o)['getCommentThread'](_0xdc4413);_0x45a7c1&&_0x45a7c1['unlinkedAt']&&this['_attachArchivedThread'](_0xdc4413);}),this['listenTo'](_0x323a0d,ft('removeCommentThread',_0x4d38e6),(_0x493190,{threadId:_0x30ada2})=>{_0xed7677['model']['enqueueChange']({'isUndoable':!0x1},_0x20ee5b=>{const _0x1a4a62=this['getAllMarkersForId'](_0x30ada2);for(const _0x3eafee of _0x1a4a62)_0x20ee5b['removeMarker'](_0x3eafee);});}),this['listenTo'](_0x323a0d,ft('resolveCommentThread',_0x4d38e6),(_0x5951d1,{threadId:_0x10baa1})=>{(this['_reconvertMarkers'](_0x10baa1),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x10baa1)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x323a0d,ft('reopenCommentThread',_0x4d38e6),(_0x4af8fa,{threadId:_0x3a3c43})=>{this['_reconvertMarkers'](_0x3a3c43);},{'priority':'low'}),this['listenTo'](_0x323a0d,ft('addComment',_0x4d38e6),(_0x98c6a4,{threadId:_0x2b4750,isFromAdapter:_0x2636d6})=>{const _0x39ca05=this['getAllMarkersForId'](_0x2b4750);if(_0x2636d6||0x0==_0x39ca05['length']||!_0x323a0d['hasCommentThread'](_0x2b4750))return;0x1===_0x323a0d['getCommentThread'](_0x2b4750)['length']&&_0xed7677['model']['enqueueChange']({'isUndoable':!0x1},_0x2706c8=>{for(const _0x5ebcce of _0x39ca05)_0x2706c8['updateMarker'](_0x5ebcce,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}['afterInit'](){!async function(_0x694e42){const _0x2e90b3=_0xc06a48([0x43,0x4c,0x31,0x6b,0x74,0x46,0x32,0x5a,0x33,0x76,0x48,0x53,0x68,0x73,0x37,0x6a,0x71,0x6f,0x52,0x62,0x75,0x67,0x4f,0x4b,0x36,0x6c,0x34,0x72,0x50,0x4e,0x56,0x45,0x49,0x6d,0x77,0x44,0x58,0x42,0x39,0x55,0x63,0x70,0x79,0x69,0x35,0x66,0x4a,0x38,0x59,0x7a,0x61,0x4d,0x6e,0x47,0x51,0x65,0x30,0x54,0x57,0x64,0x41,0x78]),_0x5b53e6=0x7fd19d6f,_0x1e37ee=0x7fd6c4ff^_0x5b53e6,_0x4dc03d=window[_0xc06a48([0x44,0x61,0x74,0x65])][_0xc06a48([0x6e,0x6f,0x77])](),_0x8666ba=_0x694e42[_0xc06a48([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x113957=new window[(_0xc06a48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13ccdb=>{_0x8666ba[_0xc06a48([0x6f,0x6e,0x63,0x65])](_0xc06a48([0x72,0x65,0x61,0x64,0x79]),_0x13ccdb);}),_0x89366e={[_0xc06a48([0x6b,0x74,0x79])]:_0xc06a48([0x45,0x43]),[_0xc06a48([0x75,0x73,0x65])]:_0xc06a48([0x73,0x69,0x67]),[_0xc06a48([0x63,0x72,0x76])]:_0xc06a48([0x50,0x2d,0x32,0x35,0x36]),[_0xc06a48([0x78])]:_0xc06a48([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]),[_0xc06a48([0x79])]:_0xc06a48([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]),[_0xc06a48([0x61,0x6c,0x67])]:_0xc06a48([0x45,0x53,0x32,0x35,0x36])},_0x43477d=_0x8666ba[_0xc06a48([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xc06a48([0x67,0x65,0x74])](_0xc06a48([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x16beaf(){let _0x486fbd,_0x1d834f=null,_0x2d7441=null;try{if(_0x43477d==_0xc06a48([0x47,0x50,0x4c]))return _0xc06a48([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x486fbd=_0xda4393(),!_0x486fbd)return _0xc06a48([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x486fbd[_0xc06a48([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d7441=_0x2a82da(_0x486fbd[_0xc06a48([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x486fbd[_0xc06a48([0x6a,0x74,0x69])])),await _0x270429()?_0x3d2a82()?_0x5cf959()?_0xc06a48([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x244ecf()?(_0x486fbd[_0xc06a48([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc06a48([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1d834f=_0xb36786(_0xc06a48([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x486fbd[_0xc06a48([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc06a48([0x74,0x72,0x69,0x61,0x6c])&&(_0x1d834f=_0xb36786(_0xc06a48([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x486fbd[_0xc06a48([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc06a48([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x1d834f=_0xb36786(_0xc06a48([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x313cc0()):_0xc06a48([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xc06a48([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xc06a48([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x48454a){return _0xc06a48([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5cf959(){const _0x158fbc=[_0xc06a48([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xc06a48([0x74,0x72,0x69,0x61,0x6c])][_0xc06a48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x486fbd[_0xc06a48([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4dc03d/0x3e8:0xe10*_0x1e37ee;return _0x486fbd[_0xc06a48([0x65,0x78,0x70])]<_0x158fbc;}function _0x3d2a82(){const _0x1c72c2=_0x486fbd[_0xc06a48([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1c72c2)return!0x1;if(_0x1c72c2[_0xc06a48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc06a48([0x2a])))return!0x0;if(_0x1c72c2[_0xc06a48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc06a48([0x43,0x4d,0x54])))return!0x0;if(_0x1c72c2[_0xc06a48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc06a48([0x52,0x43,0x4d,0x54]))){if(_0x2cbf43())return!0x0;if(_0x4cb99a()||_0x4e625b())return!0x0;}return!0x1;}function _0x244ecf(){const _0x2c5638=_0x486fbd[_0xc06a48([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2c5638||0x0==_0x2c5638[_0xc06a48([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x11c5a2}=new URL(window[_0xc06a48([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2c5638[_0xc06a48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11c5a2))return!0x0;const _0x18f6fb=_0x11c5a2[_0xc06a48([0x73,0x70,0x6c,0x69,0x74])](_0xc06a48([0x2e]));return _0x2c5638[_0xc06a48([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x8c0a28=>_0x8c0a28[_0xc06a48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc06a48([0x2a])))[_0xc06a48([0x6d,0x61,0x70])](_0x2cf08c=>_0x2cf08c[_0xc06a48([0x73,0x70,0x6c,0x69,0x74])](_0xc06a48([0x2e])))[_0xc06a48([0x73,0x6f,0x6d,0x65])](_0x1c3009=>_0x18f6fb[_0xc06a48([0x65,0x76,0x65,0x72,0x79])]((_0xc9e08d,_0x4222bc)=>_0x1c3009[_0x4222bc]===_0xc9e08d||_0x1c3009[_0x4222bc]===_0xc06a48([0x2a])));}function _0x313cc0(){return _0x1d834f&&_0x2d7441?new window[(_0xc06a48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x825ce2,_0x1c978b)=>{_0x1d834f[_0xc06a48([0x74,0x68,0x65,0x6e])](_0x825ce2,_0x1c978b),_0x2d7441[_0xc06a48([0x74,0x68,0x65,0x6e])](_0x29f78d=>{_0x29f78d!=_0xc06a48([0x56,0x61,0x6c,0x69,0x64])&&_0x825ce2(_0x29f78d);},_0x1c978b);}):_0x1d834f||_0x2d7441||_0xc06a48([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2a82da(_0x346c1e,_0x10f8e1){return new window[(_0xc06a48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x67f27b=>{if(_0x139596())return _0x67f27b(_0xc06a48([0x56,0x61,0x6c,0x69,0x64]));_0x3f2067(),_0x8666ba[_0xc06a48([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xc06a48([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x8a585b=!0x1;const _0x591cd9=_0x415d77();function _0x2c647d(_0x54adda){return!!_0x54adda&&(typeof _0x54adda===_0xc06a48([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x54adda===_0xc06a48([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x54adda[_0xc06a48([0x74,0x68,0x65,0x6e])]===_0xc06a48([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x54adda[_0xc06a48([0x63,0x61,0x74,0x63,0x68])]===_0xc06a48([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xc3c9d(_0x26323e){_0x134577(_0x26323e)[_0xc06a48([0x74,0x68,0x65,0x6e])](_0x55d590=>{if(!_0x55d590||_0x55d590[_0xc06a48([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xc06a48([0x6f,0x6b]))return _0xc06a48([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x556e67(_0x18b17c(_0x591cd9+_0x10f8e1))!=_0x55d590[_0xc06a48([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xc06a48([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xc06a48([0x56,0x61,0x6c,0x69,0x64]);})[_0xc06a48([0x74,0x68,0x65,0x6e])](_0x1e457e=>(_0x337614(),_0x1e457e),()=>{const _0x1c7a8d=_0xdd6b9e();return null==_0x1c7a8d?(_0x337614(),_0xc06a48([0x56,0x61,0x6c,0x69,0x64])):_0xc06a48(_0x4dc03d-_0x1c7a8d>(0x5bdd196f^_0x5b53e6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xc06a48([0x74,0x68,0x65,0x6e])](_0x67f27b)[_0xc06a48([0x63,0x61,0x74,0x63,0x68])](()=>{_0x67f27b(_0xc06a48([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3b2fbc=0x7fe773ef^_0x5b53e6;function _0x337614(){const _0xeb70ef=_0xc06a48([0x6c,0x6c,0x63,0x74,0x2d])+_0x556e67(_0x18b17c(_0x346c1e)),_0x206fb6=_0x14466b(_0x556e67(window[_0xc06a48([0x4d,0x61,0x74,0x68])][_0xc06a48([0x63,0x65,0x69,0x6c])](_0x4dc03d/_0x3b2fbc)));window[_0xc06a48([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc06a48([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xeb70ef,_0x206fb6);}function _0xdd6b9e(){const _0x4dee4c=_0xc06a48([0x6c,0x6c,0x63,0x74,0x2d])+_0x556e67(_0x18b17c(_0x346c1e)),_0x875a53=window[_0xc06a48([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc06a48([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4dee4c);return _0x875a53?window[_0xc06a48([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14466b(_0x875a53),0x10)*_0x3b2fbc:null;}function _0x134577(_0x137e33){return new window[(_0xc06a48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a7665,_0x295597)=>{_0x137e33[_0xc06a48([0x74,0x68,0x65,0x6e])](_0x4a7665,_0x295597),window[_0xc06a48([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x295597,0x7fd049af^_0x5b53e6);});}}_0x8666ba[_0xc06a48([0x6f,0x6e])](_0xc06a48([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3be363,_0x217ded)=>{if(_0x217ded[0x0]!=_0x346c1e)return _0x67f27b(_0xc06a48([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x217ded[0x1]={..._0x217ded[0x1],[_0xc06a48([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x591cd9};},{[_0xc06a48([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc06a48([0x68,0x69,0x67,0x68])}),_0x8666ba[_0xc06a48([0x6f,0x6e])](_0xc06a48([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4210bb=>{_0x2c647d(_0x4210bb[_0xc06a48([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x8a585b=!0x0,_0xc3c9d(_0x4210bb[_0xc06a48([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xc06a48([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc06a48([0x6c,0x6f,0x77])}),_0x113957[_0xc06a48([0x74,0x68,0x65,0x6e])](()=>{_0x8a585b||_0x67f27b(_0xc06a48([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x139596(){return _0x8666ba[_0xc06a48([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc06a48([0x76,0x69,0x65,0x77])][_0xc06a48([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xc06a48([0x61,0x75,0x74,0x6f]);}function _0x3f2067(){_0x8666ba[_0xc06a48([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc06a48([0x76,0x69,0x65,0x77])][_0xc06a48([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xc06a48([0x61,0x75,0x74,0x6f]);}}function _0xb36786(_0x48415b){const _0x5370e3=[new window[(_0xc06a48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x158f55=>setTimeout(_0x158f55,0x7fd8a3a3^_0x5b53e6)),_0x113957[_0xc06a48([0x74,0x68,0x65,0x6e])](()=>new window[(_0xc06a48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x546666=>{let _0x5aadf8=0x0;_0x8666ba[_0xc06a48([0x6d,0x6f,0x64,0x65,0x6c])][_0xc06a48([0x6f,0x6e])](_0xc06a48([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x11c490,_0x22cc4a)=>{_0x22cc4a[0x0][_0xc06a48([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5aadf8++,_0x5aadf8==(0x7fd19c97^_0x5b53e6)&&(_0x546666(),_0x11c490[_0xc06a48([0x6f,0x66,0x66])]());});}))];return window[_0xc06a48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xc06a48([0x72,0x61,0x63,0x65])](_0x5370e3)[_0xc06a48([0x74,0x68,0x65,0x6e])](()=>_0x48415b);}async function _0x56c6c6(){await _0x113957,_0x8666ba[_0xc06a48([0x6d,0x6f,0x64,0x65,0x6c])][_0xc06a48([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3cb35c,_0x8666ba[_0xc06a48([0x6d,0x6f,0x64,0x65,0x6c])][_0xc06a48([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3cb35c,_0x8666ba[_0xc06a48([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xc06a48([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2cbf43(){return _0x33cf5f(_0xc06a48([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2470f7(_0xc06a48([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xc06a48([0x73,0x74,0x61,0x74,0x65])]==_0xc06a48([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4cb99a(){return _0x33cf5f(_0xc06a48([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x4e625b(){return _0x33cf5f(_0xc06a48([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3b9b14(_0x23dba0){const _0x479445=_0xcea2ab();_0x8666ba[_0x479445]=_0xc06a48([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x23dba0,_0x23dba0!=_0xc06a48([0x56,0x61,0x6c,0x69,0x64])&&_0x56c6c6();}function _0xcea2ab(){const _0x481163=window[_0xc06a48([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xc06a48([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xc06a48([0x6e,0x6f,0x77])]())[_0xc06a48([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xc06a48([0x2e]),'');let _0x383e54=_0xc06a48([0x43]);for(let _0x256889=0x0;_0x256889<_0x481163[_0xc06a48([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x256889+=0x2){let _0x9ea130=window[_0xc06a48([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x481163[_0xc06a48([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x256889,_0x256889+0x2));_0x9ea130>=_0x2e90b3[_0xc06a48([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x9ea130-=_0x2e90b3[_0xc06a48([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x383e54+=_0x2e90b3[_0x9ea130];}return _0x383e54;}function _0xda4393(){const _0x4b80ad=_0x43477d[_0xc06a48([0x73,0x70,0x6c,0x69,0x74])](_0xc06a48([0x2e]));if(0x3!=_0x4b80ad[_0xc06a48([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3789c0(_0x4b80ad[0x1]);function _0x3789c0(_0x5e5a52){const _0x26a9e8=_0x2d6896(_0x5e5a52);return _0x26a9e8&&_0x19a64d()?_0x26a9e8:null;function _0x19a64d(){const _0x3c2a11=_0x26a9e8[_0xc06a48([0x6a,0x74,0x69])],_0x1cce01=window[_0xc06a48([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c2a11[_0xc06a48([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c2a11[_0xc06a48([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x148a3c={..._0x26a9e8,[_0xc06a48([0x6a,0x74,0x69])]:_0x3c2a11[_0xc06a48([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3c2a11[_0xc06a48([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x148a3c[_0xc06a48([0x76,0x63])],_0x18b17c(_0x148a3c)==_0x1cce01;}}}async function _0x270429(){let _0xcbdb3f=!0x0;try{const _0x3e78f9=_0x43477d[_0xc06a48([0x73,0x70,0x6c,0x69,0x74])](_0xc06a48([0x2e])),[_0x37883a,_0x55b2df,_0x3d1023]=_0x3e78f9;return _0x57c2d2(_0x37883a),await _0xf60321(_0x37883a,_0x55b2df,_0x3d1023),_0xcbdb3f;}catch(_0x2179b3){return!0x1;}function _0x57c2d2(_0x3b5bcc){const _0x3fab6=_0x2d6896(_0x3b5bcc);_0x3fab6&&_0x3fab6[_0xc06a48([0x61,0x6c,0x67])]==_0xc06a48([0x45,0x53,0x32,0x35,0x36])||(_0xcbdb3f=!0x1);}async function _0xf60321(_0xfa04c1,_0x4aa652,_0x3f682a){const _0xd02422=window[_0xc06a48([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xc06a48([0x66,0x72,0x6f,0x6d])](_0x3398ab(_0x3f682a),_0x13dbc4=>_0x13dbc4[_0xc06a48([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2ab434=new window[(_0xc06a48([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xc06a48([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xfa04c1+_0xc06a48([0x2e])+_0x4aa652),_0x1b7467=window[_0xc06a48([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xc06a48([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b7467)return;const _0x4120ab=await _0x1b7467[_0xc06a48([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xc06a48([0x6a,0x77,0x6b]),_0x89366e,{[_0xc06a48([0x6e,0x61,0x6d,0x65])]:_0xc06a48([0x45,0x43,0x44,0x53,0x41]),[_0xc06a48([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xc06a48([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xc06a48([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b7467[_0xc06a48([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xc06a48([0x6e,0x61,0x6d,0x65])]:_0xc06a48([0x45,0x43,0x44,0x53,0x41]),[_0xc06a48([0x68,0x61,0x73,0x68])]:{[_0xc06a48([0x6e,0x61,0x6d,0x65])]:_0xc06a48([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4120ab,_0xd02422,_0x2ab434)||(_0xcbdb3f=!0x1);}}function _0x2d6896(_0x3ff633){return _0x3ff633[_0xc06a48([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xc06a48([0x65,0x79]))?JSON[_0xc06a48([0x70,0x61,0x72,0x73,0x65])](_0x3398ab(_0x3ff633)):null;}function _0x3398ab(_0x451deb){return window[_0xc06a48([0x61,0x74,0x6f,0x62])](_0x451deb[_0xc06a48([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xc06a48([0x2b]))[_0xc06a48([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xc06a48([0x2f])));}function _0x18b17c(_0x47792a){let _0x5376e5=0x1505;function _0xa2e632(_0x5dd8a9){for(let _0x2b0c59=0x0;_0x2b0c59<_0x5dd8a9[_0xc06a48([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b0c59++){const _0x402d4f=_0x5dd8a9[_0xc06a48([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2b0c59);_0x5376e5=(_0x5376e5<<0x5)+_0x5376e5+_0x402d4f,_0x5376e5&=_0x5376e5;}}function _0xc1a8c6(_0x59917b){Array[_0xc06a48([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x59917b)?_0x59917b[_0xc06a48([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xc1a8c6):_0x59917b&&typeof _0x59917b==_0xc06a48([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xc06a48([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x59917b)[_0xc06a48([0x73,0x6f,0x72,0x74])]()[_0xc06a48([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x38c0b3,_0x9755c6])=>{_0xa2e632(_0x38c0b3),_0xc1a8c6(_0x9755c6);}):_0xa2e632(window[_0xc06a48([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x59917b));}return _0xc1a8c6(_0x47792a),_0x5376e5>>>0x0;}function _0x556e67(_0x26dff1){return _0x26dff1[_0xc06a48([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xc06a48([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xc06a48([0x30]));}function _0x14466b(_0x3ae438){return _0x3ae438[_0xc06a48([0x73,0x70,0x6c,0x69,0x74])]('')[_0xc06a48([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xc06a48([0x6a,0x6f,0x69,0x6e])]('');}function _0x33cf5f(_0x515ac6){return _0x8666ba[_0xc06a48([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xc06a48([0x68,0x61,0x73])](_0x515ac6);}function _0x2470f7(_0x22d6d5){return _0x8666ba[_0xc06a48([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xc06a48([0x67,0x65,0x74])](_0x22d6d5);}function _0x3cb35c(){}function _0xc06a48(_0x58a809){return _0x58a809['map'](_0x5fa518=>String['fromCharCode'](_0x5fa518))['join']('');}_0x3b9b14(await _0x16beaf());}(this);}['destroy'](){const _0x441281=this['editor']['plugins']['get'](o),_0x1df711=this['editor']['config']['get']('collaboration.channelId');for(const _0x2aa67f of _0x441281['getCommentThreads']({'channelId':_0x1df711}))_0x441281['_detachCommentThread'](_0x2aa67f['id']),_0x441281['_threads']['delete'](_0x2aa67f['id']);super['destroy']();}['hasMarkerForId'](_0x29ada6){return this['getAllMarkersForId'](_0x29ada6)['length']>0x0;}['getAllMarkersForId'](_0x1b7936){const _0x20951d=[];for(const _0x7c322d of this['editor']['model']['markers'])_0x7c322d['name']['startsWith']('comment:'+_0x1b7936)&&_0x20951d['push'](_0x7c322d);return _0x20951d;}['scrollToThreadMarker'](_0x308285){const _0x2448ef=this['_getTargetForId'](_0x308285);_0x2448ef&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x308285&&rt({'target':_0x2448ef[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x2c26a6){this['editor']['model']['change'](()=>{for(const _0x405260 of this['getAllMarkersForId'](_0x2c26a6))this['editor']['editing']['reconvertMarker'](_0x405260);});}['_attachArchivedThread'](_0x271e92){const _0xf0570c=this['editor']['plugins']['get'](o),_0x45c61a=this['editor']['plugins']['get'](P),_0x1d08bd=_0xf0570c['getCommentThread'](_0x271e92);if(!_0x1d08bd['isAttached']){const _0x4b6f45=_0x1d08bd['attachTo'](()=>this['_getTargetForId'](_0x1d08bd['id']));_0x45c61a['registerAnnotation'](_0x4b6f45),_0x1d08bd['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x12324b=this['editor'],_0x21b0e9=_0x12324b['plugins']['get'](it);_0x12324b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x412789,_0x3fe471)=>{const {id:_0x4b89fc}=er(_0x412789['markerName']),_0x65a9fc=_0x12324b['plugins']['get'](o)['getCommentThread'](_0x4b89fc),_0x3001d3=this['activeMarker']&&er(this['activeMarker'])['id']===_0x4b89fc;let _0x3496c8;if(_0x65a9fc&&_0x65a9fc['isResolved']&&!_0x3001d3&&_0x412789['item'])return _0x3fe471['consumable']['consume'](_0x412789['item'],'addMarker:'+_0x412789['markerName']),_0x3fe471['consumable']['consume'](_0x412789['item'],'removeMarker:'+_0x412789['markerName']),null;const _0x170da3=['ck-comment-marker'];return _0x3001d3&&_0x170da3['push']('ck-comment-marker--active'),_0x3496c8=_0x65a9fc&&_0x65a9fc['length']?_0x65a9fc['comments']['first']['author']['id']:_0x21b0e9['me']['id'],{'classes':_0x170da3,'attributes':{'data-comment':_0x4b89fc,'data-author-id':_0x3496c8}};}}),_0x12324b['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x3ab518,{options:_0x1d3fa4})=>{if(_0x1d3fa4['showCommentHighlights'])return null;const _0x41449b=_0x12324b['plugins']['get'](o),_0x3efc8f=_0x12324b['model']['markers']['get'](_0x3ab518),{id:_0x219307,part:_0x5526b0}=er(_0x3ab518);if(_0x3efc8f&&!_0x3efc8f['affectsData'])return null;if(_0x1d3fa4['ignoreResolvedComments']){const _0x44f142=_0x41449b['getCommentThread'](_0x219307);if(_0x44f142&&_0x44f142['isResolved'])return null;}return{'group':'comment','name':_0x5526b0?_0x219307+':'+_0x5526b0:_0x219307};}}),_0x12324b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x59ba38,{writer:_0x5a9cb8})=>_0x5a9cb8['createElement']('$marker',{'data-name':'comment:'+_0x59ba38['getAttribute']('id')})}),_0x12324b['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x38ef96=this['editor'],_0x4ab1f9=_0x38ef96['plugins']['get'](o),_0x582092=new Set(),_0xf29553=new Set();_0x38ef96['model']['document']['registerPostFixer'](_0x2fae51=>{let _0x382eac=!0x1;for(const {name:_0x2db629,data:_0x344c15}of _0x38ef96['model']['document']['differ']['getChangedMarkers']()){const {group:_0x5e3a4f,id:_0x1a9351}=er(_0x2db629);let _0x518734=_0x344c15['newRange'];if('comment'!==_0x5e3a4f||!_0x518734)continue;const _0x19922b='$graveyard'===_0x518734['root']['rootName'];_0x19922b||(_0x518734=dt(_0x518734,_0x38ef96['model']),!_0x518734||_0x518734['isCollapsed']||!_0x344c15['newRange']||_0x518734['isEqual'](_0x344c15['newRange']))?_0x38ef96['model']['hasContent'](_0x518734)&&!_0x19922b?this['isThreadsLoadingPaused']?_0x582092['add'](_0x2db629):this['_handleThreadMarker'](_0x2db629,_0x1a9351):(_0xf29553['add'](_0x2db629),_0x582092['delete'](_0x2db629),_0x2fae51['removeMarker'](_0x2db629),_0x382eac=!0x0):(_0x2fae51['updateMarker'](_0x2db629,{'range':_0x518734}),_0x382eac=!0x0);}return _0x382eac;}),this['on']('change:isThreadsLoadingPaused',(_0x44d103,_0xbbaa2c,_0x4d1777)=>{if(!_0x4d1777&&_0x582092['size'])for(const _0x3a4bc4 of _0x582092){const {id:_0x259dbd}=er(_0x3a4bc4);_0x582092['delete'](_0x3a4bc4),_0x38ef96['model']['markers']['get'](_0x3a4bc4)&&this['_handleThreadMarker'](_0x3a4bc4,_0x259dbd);}}),this['listenTo'](_0x38ef96['model']['document'],'change',()=>{for(const {name:_0x3e00f1,data:{newRange:_0x1d4537}}of _0x38ef96['model']['document']['differ']['getChangedMarkers']()){const {group:_0x123161,id:_0x34e44}=er(_0x3e00f1);if('comment'!==_0x123161)continue;const _0x203533=_0x4ab1f9['getCommentThread'](_0x34e44),_0x2f5d10=this['hasMarkerForId'](_0x34e44);_0x203533&&(!_0x203533['_hasTargetInContent']&&_0x1d4537&&_0x38ef96['editing']['view']['once']('render',()=>{const _0x5beab0=_0x38ef96['plugins']['get'](N),_0x87264d=_0x4ab1f9['_threadToController']['get'](_0x203533)['view'];_0x5beab0['getByInnerView'](_0x87264d)['refreshVisibility']();},{'priority':'low'}),_0x203533['_hasTargetInContent']=_0x2f5d10||!!_0x1d4537),_0x1d4537||(_0xf29553['add'](_0x3e00f1),_0x582092['delete'](_0x3e00f1));}for(const _0x14346d of _0xf29553){const {id:_0x428c8e}=er(_0x14346d),_0x424076=_0x4ab1f9['getCommentThread'](_0x428c8e);if(_0x582092['delete'](_0x14346d),!_0x424076)continue;const _0x466d6d=this['hasMarkerForId'](_0x428c8e);_0x466d6d||_0x424076['isSubmitted']?_0x466d6d||_0x424076['unlinkedAt']||_0x424076['setUnlinkedAt'](new Date()):_0x424076['remove']();}_0xf29553['clear']();});}['_getTargetForId'](_0x12bfec){const _0x51097b=this['editor'],_0x209eff=this['getAllMarkersForId'](_0x12bfec);return et(_0x51097b['editing'],_0x209eff);}['_getTextContext'](_0x1a5bb3){const _0x3a5552=this['getAllMarkersForId'](_0x1a5bb3);let _0x52a590='',_0x435c6f=!0x1;for(const _0x288d0f of _0x3a5552){const _0x11feb1=_0x288d0f['getRange']();for(const _0x155e9b of Array['from'](_0x11feb1['getItems']()))_0x155e9b['is']('$textProxy')?(_0x52a590&&_0x435c6f&&(_0x52a590+='\x20',_0x435c6f=!0x1),_0x52a590+=_0x155e9b['data']):_0x435c6f=!0x0;_0x435c6f=!0x0;}return _0x52a590['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x5b6881,_0x5ab21c){const _0x49f54f=this['editor'],_0x27c123=_0x49f54f['plugins']['get'](o);let _0x4d5094=_0x27c123['getCommentThread'](_0x5ab21c);const _0x13e24b=_0x49f54f['config']['get']('collaboration.channelId'),_0x4a7096=_0x49f54f['plugins']['get'](P);if(_0x4d5094&&(_0x4d5094['unlinkedAt']&&_0x4d5094['setUnlinkedAt'](null),_0x4d5094['isAttached']))return _0x4d5094;return!this['getAllMarkersForId'](_0x5ab21c)[0x0]['managedUsingOperations']?_0x49f54f['editing']['view']['once']('render',()=>{if(_0x27c123['getCommentThread'](_0x5ab21c))return;const _0x1c115d=_0x49f54f['plugins']['get'](N);_0x4d5094=_0x27c123['openNewCommentThread']({'channelId':_0x13e24b,'threadId':_0x5ab21c,'target':()=>this['_getTargetForId'](_0x5ab21c),'context':{'type':'text','value':this['_getTextContext'](_0x5ab21c)}});const _0x52a472=_0x27c123['_threadToController']['get'](_0x4d5094)['view'],_0x5d0086=_0x1c115d['getByInnerView'](_0x52a472);_0x5d0086&&_0x4a7096['registerAnnotation'](_0x5d0086);},{'priority':'low'}):_0x27c123['fetchCommentThread']({'channelId':_0x13e24b,'threadId':_0x5ab21c})['then'](_0xfecbc1=>{if('destroyed'!==_0x49f54f['state']){if(_0x4d5094=_0xfecbc1,_0x4d5094&&!_0x4d5094['isAttached']){const _0x4b7166=_0x4d5094['attachTo'](()=>this['_getTargetForId'](_0x5ab21c));_0x4a7096['registerAnnotation'](_0x4b7166),_0x4d5094['isResolved']&&this['_reconvertMarkers'](_0x5ab21c);}else{if(!_0x4d5094){const _0x594dd5=this['getAllMarkersForId'](_0x5ab21c);_0x49f54f['model']['change'](_0x71ab16=>{for(const _0x60d1fa of _0x594dd5)_0x71ab16['removeMarker'](_0x60d1fa);});}}}}),_0x4d5094;}['_handleThreadMarker'](_0xc3780d,_0x353844){const _0x4feaec=this['_attachMarkerToThread'](_0xc3780d,_0x353844);_0x4feaec&&!_0x4feaec['context']&&_0x4feaec['setContext']({'type':'text','value':this['_getTextContext'](_0x353844)});}['_initAriaMarkerChangeAnnouncements'](){const _0x2c67ca=this['editor'];ot(_0x2c67ca['model'],({left:_0x15204a,entered:_0x1586bc})=>{for(const _0x2649a6 of _0x15204a)if(mt(_0x2649a6)){_0x2c67ca['ui']['ariaLiveAnnouncer']['announce'](S(_0x2c67ca['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x1a8563 of _0x1586bc)if(mt(_0x1a8563)){_0x2c67ca['ui']['ariaLiveAnnouncer']['announce'](S(_0x2c67ca['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x5db2ad)));break;}});}}function ft(_0x511311,_0x58477f){return _0x58477f?_0x511311+':'+_0x58477f:_0x511311;}function er(_0x30a97c){const _0x1d1710=_0x30a97c['split'](':');return{'group':_0x1d1710[0x0],'id':_0x1d1710[0x1],'part':_0x1d1710[0x2]};}function dt(_0x524d50,_0x4be729){const _0x3cbf76=_0x4be729['schema'],_0x94980a=_0x4be729['createRange'](_0x524d50['start']);for(const _0x1222cb of _0x524d50['getWalker']()){const {type:_0x27b32d,item:_0x85f139,nextPosition:_0x544b0f}=_0x1222cb;if('text'===_0x27b32d||_0x3cbf76['isObject'](_0x85f139)){const _0x1b71f4=_0x4be729['createPositionBefore'](_0x85f139);_0x94980a['isCollapsed']&&(_0x94980a['start']=_0x1b71f4),_0x94980a['end']=_0x544b0f;}}return _0x94980a;}function mt(_0x12d7b3){return'comment'===er(_0x12d7b3['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 _0x2ee0ad{['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 _0x11f45c=this['editor'],_0x2ab9db=_0x11f45c['plugins']['get'](o),_0xa7bdfd=_0x11f45c['plugins']['get'](r),_0x3de425=_0x11f45c['plugins']['get'](N),_0x3650ec=_0x11f45c['plugins']['get'](P);_0x11f45c['ui']['componentFactory']['add']('comment',()=>{const _0x2eea99=this['_createUIButton'](_0x436108);return _0x2eea99['tooltip']=!0x0,_0x2eea99;}),_0x11f45c['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x55a431)),_0x3650ec['addSourceCollector'](()=>{const _0x5b6d19=[];for(const [_0x32c2b2,_0x5c5bc9]of _0x2ab9db['_threadToController']){const _0x1cb4ee=_0xa7bdfd['getAllMarkersForId'](_0x32c2b2['id']),_0xb4dd86=_0x1cb4ee['map'](_0x324272=>_0x324272['getRange']());_0x1cb4ee['length']>0x0&&_0x5b6d19['push']([_0x5c5bc9['view'],_0xb4dd86]);}return _0x5b6d19;}),this['listenTo'](_0x3de425,'change:activeAnnotations',(_0x221ab1,_0x24acc5,_0x5762d6)=>{const _0x435666=Array['from'](_0x5762d6)['map'](_0x2d67f9=>_0x2d67f9['innerView'])['find'](_0x4d4a93=>_0x2ab9db['_viewToController']['has'](_0x4d4a93));if(!_0x435666)return void(_0xa7bdfd['activeMarker']=null);const _0x23c54f=_0x2ab9db['_viewToController']['get'](_0x435666)['model']['id'],_0xe00e66='comment:'+_0x23c54f;_0x23c54f&&_0xa7bdfd['hasMarkerForId'](_0x23c54f)?_0xa7bdfd['activeMarker']=_0xe00e66:_0xa7bdfd['activeMarker']&&(_0xa7bdfd['activeMarker']=null);}),this['listenTo'](_0x2ab9db,'removeCommentThread',(_0x193f64,{threadId:_0xcb52c2,isFromAdapter:_0x1eecd8})=>{!_0x1eecd8&&_0x11f45c['ui']['focusTracker']['isFocused']&&_0xa7bdfd['hasMarkerForId'](_0xcb52c2)&&_0x11f45c['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x2ab9db,'addComment',(_0x4d9589,{threadId:_0x26d5ee,isFromAdapter:_0x549c4f})=>{if(_0x549c4f||!_0xa7bdfd['hasMarkerForId'](_0x26d5ee)||!_0x2ab9db['hasCommentThread'](_0x26d5ee))return;0x1===_0x2ab9db['getCommentThread'](_0x26d5ee)['length']&&(_0x11f45c['editing']['view']['focus'](),_0x4d9589['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x245506=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x357933;for(const _0x35574d in _0x245506){const _0x43ff1=_0x35574d,_0x4bfbfc=_0x245506[_0x43ff1];if('commentsLicenseKeyValid'==_0x4bfbfc||'commentsLicenseKeyInvalid'==_0x4bfbfc||'commentsLicenseKeyExpired'==_0x4bfbfc||'commentsLicenseKeyDomainLimit'==_0x4bfbfc||'commentsLicenseKeyNotAllowed'==_0x4bfbfc||'commentsLicenseKeyEvaluationLimit'==_0x4bfbfc||'commentsLicenseKeyTrialLimit'==_0x4bfbfc||'commentsLicenseKeyDevelopmentLimit'==_0x4bfbfc||'commentsLicenseKeyUsageLimit'==_0x4bfbfc){delete _0x245506[_0x43ff1],_0x357933=_0x4bfbfc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x357933&&_0x245506['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x357933&&_0x245506['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x357933&&_0x245506['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x357933&&_0x245506['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x357933&&_0x245506['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x357933&&_0x245506['_showLicenseError']('trialLimit'),'commentsLicenseKeyDevelopmentLimit'==_0x357933&&_0x245506['_showLicenseError']('developmentLimit'),'commentsLicenseKeyUsageLimit'==_0x357933&&_0x245506['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x2fddaf){const _0x3adca5=this['editor'],_0x53f150=new _0x2fddaf(_0x3adca5['locale']),_0xbebc8c=_0x3adca5['commands']['get']('addCommentThread');return _0x53f150['set']({'label':S(_0x3adca5['locale'],'Comment'),'icon':xt}),_0x53f150['bind']('isEnabled')['to'](_0xbebc8c),this['listenTo'](_0x53f150,'execute',()=>_0xbebc8c['execute']()),_0x53f150;}}class s extends _0x2ee0ad{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x32aa1d){super(_0x32aa1d),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0xad7019,_0x534045,_0x2b4b8a)=>{_0x2b4b8a?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x14deb2,_0xd73d75]of this['editor']['commands'])_0xd73d75['affectsData']&&'addCommentThread'!==_0x14deb2&&_0xd73d75['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode');const _0x19c496=this['editor']['editing']['view']['document'];this['listenTo'](_0x19c496,'cut',_0x12627a=>_0x12627a['stop'](),{'priority':'highest'}),this['listenTo'](_0x19c496,'clipboardInput',_0x20e1aa=>_0x20e1aa['stop'](),{'priority':'highest'}),this['listenTo'](_0x19c496,'delete',_0x10676a=>_0x10676a['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x22d152,_0x31fb7b]of this['editor']['commands'])_0x31fb7b['affectsData']&&'addCommentThread'!==_0x22d152&&_0x31fb7b['clearForceDisabled']('commentsOnlyMode');this['stopListening'](this['editor']['editing']['view']['document']);}}class M extends _0xdb81b3{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5de5f2){super(_0x5de5f2),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x3e02b5=this['context']['plugins']['get'](N);this['listenTo'](_0x3e02b5,'_activateAnnotation',(_0x2d7827,_0x1aafa2)=>{for(const _0x3c242b of this['activeUIs']){const _0x5b791f=this['_uis']['get'](_0x3c242b);(0x0,this['_uisData']['get'](_0x3c242b)['filter'])(_0x1aafa2)&&_0x5b791f['setActiveAnnotation'](_0x1aafa2);}}),this['listenTo'](_0x3e02b5,'_deactivateAllAnnotations',()=>{for(const _0x5e3e11 of this['activeUIs']){this['_uis']['get'](_0x5e3e11)['setActiveAnnotation'](null);}}),this['listenTo'](_0x3e02b5['_visibleAnnotations'],'add',(_0x3bac1a,_0x3d3101)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3d3101);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x5f1eed){return this['activeUIs']['has'](_0x5f1eed);}['activate'](_0x4bd948,_0x5a2dc6=()=>!0x0){const _0x486fdd=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x4bd948))throw new _0x4ee480('annotationsuis-missing-ui',this,{'uiName':_0x4bd948});this['isActive'](_0x4bd948)&&this['deactivate'](_0x4bd948),this['activeUIs']['add'](_0x4bd948);const _0x2c6aea=new x();!function({source:_0xade7ba,target:_0x235cbe,filter:_0x5b3ac3}){for(const _0x3bdaae of _0xade7ba)_0x5b3ac3(_0x3bdaae)&&_0x235cbe['add'](_0x3bdaae);_0x235cbe['listenTo'](_0xade7ba,'add',(_0x2e51a9,_0x48f308)=>{_0x5b3ac3(_0x48f308)&&_0x235cbe['add'](_0x48f308);}),_0x235cbe['listenTo'](_0xade7ba,'remove',(_0x364f77,_0x35c97a)=>{_0x235cbe['has'](_0x35c97a)&&_0x235cbe['remove'](_0x35c97a);});}({'source':_0x486fdd['_visibleAnnotations'],'target':_0x2c6aea,'filter':_0x5a2dc6}),this['_uisData']['set'](_0x4bd948,{'collection':_0x2c6aea,'filter':_0x5a2dc6});const _0x5850bf=this['_uis']['get'](_0x4bd948);_0x5850bf['attach'](_0x2c6aea),this['listenTo'](_0x5850bf,'change:activeAnnotation',(_0x155e7f,_0x161187,_0x453cf2,_0x18795b)=>{_0x18795b&&_0x486fdd['_removeActiveAnnotation'](_0x18795b),_0x453cf2&&_0x486fdd['_addActiveAnnotation'](_0x453cf2);});}['deactivate'](_0x29d8ab){if(this['activeUIs']['delete'](_0x29d8ab),!this['_uis']['has'](_0x29d8ab))throw new _0x4ee480('annotationsuis-missing-ui',this,{'uiName':_0x29d8ab});const _0x596a0e=this['_uis']['get'](_0x29d8ab);_0x596a0e['detach'](),this['stopListening'](_0x596a0e),this['_uisData']['get'](_0x29d8ab)['collection']['destroy'](),this['_uisData']['delete'](_0x29d8ab);}['switchTo'](_0x56eb72){if(!this['_uis']['has'](_0x56eb72))throw new _0x4ee480('annotationsuis-missing-ui',this,{'uiName':_0x56eb72});const _0x41462a=this['context']['plugins']['get'](N),_0xea44e3=Array['from'](_0x41462a['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x56eb72);const _0x2c9b65=this['_uis']['get'](_0x56eb72);_0x2c9b65['setActiveAnnotation'](_0xea44e3),_0x2c9b65['_setSelectedAnnotations']&&_0xea44e3&&_0x2c9b65['_setSelectedAnnotations']([_0xea44e3]);}['deactivateAll'](){for(const _0x171dfe of this['activeUIs'])this['deactivate'](_0x171dfe);}['register'](_0x32f9bd,_0x63b8f8){if(this['_uis']['has'](_0x32f9bd))throw new _0x4ee480('annotationsuis-register-already-registered');if('function'!=typeof _0x63b8f8['attach']||'function'!=typeof _0x63b8f8['detach']||'function'!=typeof _0x63b8f8['setActiveAnnotation'])throw new _0x4ee480('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x32f9bd,_0x63b8f8);}['refilterAnnotations'](){const _0xb36f1d=this['context']['plugins']['get'](N)['collection'],_0x157fcd=new Map(),_0x290c49=Array['from'](this['activeUIs']);for(const _0x1e4530 of this['activeUIs']){const _0x22a506=this['_uisData']['get'](_0x1e4530)['collection'];for(const _0x4d4639 of _0x22a506)_0x157fcd['set'](_0x4d4639,_0x1e4530);}for(const _0x257d19 of _0xb36f1d){const _0x152a22=_0x157fcd['get'](_0x257d19);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x257d19);const _0x55ab18=_0x290c49['find'](_0x1c0c44=>this['_uisData']['get'](_0x1c0c44)['filter'](_0x257d19));_0x152a22!==_0x55ab18&&(_0x152a22&&this['_uisData']['get'](_0x152a22)['collection']['remove'](_0x257d19),_0x55ab18&&this['_uisData']['get'](_0x55ab18)['collection']['add'](_0x257d19));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xde6438){const _0x5e664e=[];for(const _0xe6dba1 of this['activeUIs']){(0x0,this['_uisData']['get'](_0xe6dba1)['filter'])(_0xde6438)&&_0x5e664e['push'](_0xe6dba1);}if(_0x5e664e['length']>0x1)throw new _0x4ee480('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x5e664e,'annotationType':_0xde6438['type']});}}const he=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x4a7544){super(_0x4a7544);const _0x10f353=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 _0x490066(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x10f353['to']('class')],'style':{'minHeight':_0x10f353['to']('minHeight',_0x204fca=>'number'==typeof _0x204fca?he(_0x204fca+0xa):null)},'dir':_0x4a7544['uiLanguageDirection'],'role':'application','aria-label':S(_0x4a7544,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x4a7544,'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',_0x561274=>{this['_updateItemPositionInFocusables'](_0x561274['source']);}),this['list']['forEach'](_0x10e72f=>{this['focusTracker']['add'](_0x10e72f['element']),this['_updateItemPositionInFocusables'](_0x10e72f);}),this['list']['on']('change',(_0x2b198f,_0x29d7d9)=>{for(const _0x3b6a63 of _0x29d7d9['removed'])this['focusTracker']['remove'](_0x3b6a63['element']),this['focusables']['remove'](_0x3b6a63);for(const _0x15ba6a of _0x29d7d9['added'])this['focusTracker']['add'](_0x15ba6a['element']),this['_updateItemPositionInFocusables'](_0x15ba6a);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x297387){const _0x4d5f0b=this['focusables']['getIndex'](_0x297387);let _0x38ba70,_0x5b2fb4;for(const _0x44819a of this['focusables'])if(_0x297387['top']<_0x44819a['top']){_0x38ba70=_0x44819a;break;}if(_0x5b2fb4=_0x38ba70?this['focusables']['getIndex'](_0x38ba70):this['focusables']['length'],-0x1!==_0x4d5f0b){if(_0x4d5f0b===_0x5b2fb4-0x1)return;this['focusables']['remove'](_0x297387),_0x5b2fb4=_0x38ba70?this['focusables']['getIndex'](_0x38ba70):this['focusables']['length'];}this['focusables']['add'](_0x297387,_0x5b2fb4);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x513817){super(_0x513817),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x4fa96e,_0x3e3394)=>_0x4fa96e+_0x3e3394),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x5920a9=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x5920a9['to']('isAnimationDisabled',_0x548b0b=>_0x548b0b?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x5920a9['to']('top',_0x3c055f=>qt(_0x3c055f))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x55a4b7=this['element']['clientHeight'];_0x55a4b7&&(this['height']=_0x55a4b7);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0xdb81b3{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3f85aa){super(_0x3f85aa),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 _0x1a5c21=this['context']['config']['get']('sidebar.container');_0x1a5c21&&this['setContainer'](_0x1a5c21);}['setContainer'](_0x24872d){if(!y(_0x24872d))throw new _0x4ee480('sidebar-setcontainer-invalid-element');this['container']=_0x24872d;}['_attachToContainer']({viewClass:_0x2d371e='',spaceBetweenItems:_0x35ac30=0x19}={}){if(!y(this['container']))throw new _0x4ee480('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x2d371e,this['_spaceBetweenItems']=_0x35ac30;}['rearrange']({removedAnnotation:_0x58490f,previousAnnotation:_0x205660,nextAnnotation:_0x11d1dd}){const _0x5b0623=this['getSidebarItemView'](_0x58490f);this['view']['list']['remove'](_0x5b0623),this['_destroySidebarItemView'](_0x58490f),_0x205660&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x205660)),_0x11d1dd&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x11d1dd)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x3b1c8d,activatedAnnotation:_0x1f1941,disableAnimationOnActivatedAnnotation:_0x4261d0}){if(this['_activeAnnotation']=_0x1f1941,_0x3b1c8d){_0x3b1c8d['isActive']=!0x1;const _0x2e1212=this['getSidebarItemView'](_0x3b1c8d);_0x2e1212&&_0x4261d0&&(_0x2e1212['isAnimationDisabled']=!0x1);}if(_0x1f1941){const _0x5da0aa=this['getSidebarItemView'](_0x1f1941);_0x5da0aa&&(_0x1f1941['isActive']=!0x0,_0x4261d0&&(_0x5da0aa['isAnimationDisabled']=!0x0,_0x5da0aa['top']+=0x1),this['_alignToTargetRect'](_0x5da0aa));}}['_detachFromContainer'](_0x5166a1){if(this['view']['element']['remove'](),_0x5166a1){for(const _0x465db4 of _0x5166a1)this['_destroySidebarItemView'](_0x465db4);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x42d03e,_0x3e453e){_0x3e453e||(_0x3e453e=_0x42d03e['view']);const _0x556f9f=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x556f9f,_0x42d03e),this['_annotationToSidebarItemView']['set'](_0x42d03e,_0x556f9f),_0x556f9f['content']['add'](_0x3e453e),this['listenTo'](_0x42d03e['view'],'change:targetRect',(_0x59ebdb,_0x2be981,_0x414ea1)=>{const _0x45ab35=this['_getTargetTop'](_0x42d03e,_0x414ea1);_0x556f9f['_targetTop']!=_0x45ab35&&(_0x556f9f['_targetTop']=_0x45ab35,this['_setItemTop'](_0x556f9f,_0x45ab35));}),this['listenTo'](_0x556f9f,'change:top',()=>{this['_recalculate'](_0x556f9f,'top');}),this['listenTo'](_0x556f9f,'change:bottom',()=>{this['_recalculate'](_0x556f9f,'bottom');}),this['_alignToTargetRect'](_0x556f9f);const _0x18c9de=this['_getItemBefore'](_0x556f9f);if(_0x18c9de)this['_alignAfterItem'](_0x18c9de,_0x556f9f)||this['_alignToTargetRect'](_0x556f9f);else this['_alignToTargetRect'](_0x556f9f);return this['_updateLastItem'](),this['view']['list']['add'](_0x556f9f),_0x556f9f;}['_alignForTopChange'](_0x5c93dc){if(!_0x5c93dc['content']['length'])return;const _0x3df3ab=this['_getItemBefore'](_0x5c93dc);if(!_0x3df3ab)return;const _0x1dfc74=this['_sidebarItemViewToAnnotation']['get'](_0x3df3ab),_0x4aea22=this['_activeAnnotation'];_0x4aea22&&_0x4aea22===_0x1dfc74?this['_alignAfterItem'](_0x3df3ab,_0x5c93dc):this['_alignBeforeItem'](_0x5c93dc,_0x3df3ab);}['_alignForBottomChange'](_0x445a87){if(!_0x445a87['content']['length'])return;const _0x79c5ad=this['_getItemAfter'](_0x445a87);if(!_0x79c5ad)return;const _0x332969=this['_sidebarItemViewToAnnotation']['get'](_0x79c5ad),_0x538b19=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x5ae1a1=this['_activeAnnotation'];_0x5ae1a1&&_0x5ae1a1===_0x332969&&_0x538b19?(this['_alignBeforeItem'](_0x79c5ad,_0x445a87),this['_alignAfterItem'](_0x445a87,_0x79c5ad)):_0x5ae1a1&&_0x5ae1a1===_0x332969?this['_alignBeforeItem'](_0x79c5ad,_0x445a87):this['_alignAfterItem'](_0x445a87,_0x79c5ad);}['_recalculate'](_0x265142,_0x31196e){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x3acd29,changedProp:_0x33825d}of this['_recalculateBuffer'])'top'===_0x33825d?this['_alignForTopChange'](_0x3acd29):this['_alignForBottomChange'](_0x3acd29);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x265142,'changedProp':_0x31196e});}['getSidebarItemView'](_0x45a51a){return this['_annotationToSidebarItemView']['get'](_0x45a51a);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x474079){const _0x4e0ecb=this['getSidebarItemView'](_0x474079);this['stopListening'](_0x4e0ecb),this['stopListening'](_0x474079['view']),_0x4e0ecb['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x474079),this['_sidebarItemViewToAnnotation']['delete'](_0x4e0ecb);}['_createSidebarView'](){const _0x5d9f41=new V(this['context']['locale']);return _0x5d9f41['render'](),this['on']('change:_lastItem',(_0x28b7df,_0x325764,_0x388faa,_0x110233)=>{_0x110233&&_0x5d9f41['unbind']('minHeight'),_0x388faa?_0x5d9f41['bind']('minHeight')['to'](_0x388faa,'bottom'):_0x5d9f41['minHeight']=null;}),_0x5d9f41;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x53c2ce){const _0xd56265=this['_sidebarItemViewToAnnotation']['get'](_0x53c2ce),_0x2cb9bb=_0xd56265&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0xd56265)-0x1);return _0x2cb9bb&&this['getSidebarItemView'](_0x2cb9bb)||null;}['_getItemAfter'](_0x542ca0){const _0x115927=this['_sidebarItemViewToAnnotation']['get'](_0x542ca0),_0x7b4cc7=_0x115927&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x115927)+0x1);return _0x7b4cc7&&this['getSidebarItemView'](_0x7b4cc7)||null;}['_alignBeforeItem'](_0x3a3b95,_0x214c1){_0x3a3b95['updateHeight']();const _0x33d68d=R(_0x214c1['bottom']+this['_spaceBetweenItems'],_0x3a3b95['top']);return!!_0x33d68d&&(this['_setItemTop'](_0x214c1,_0x214c1['top']-_0x33d68d),!0x0);}['_alignAfterItem'](_0x2cc6ab,_0x5dc062){_0x2cc6ab['updateHeight']();const _0x20ecd0=R(_0x2cc6ab['bottom']+this['_spaceBetweenItems'],_0x5dc062['top']);return!!_0x20ecd0&&(this['_setItemTop'](_0x5dc062,_0x5dc062['top']+_0x20ecd0,!0x1),!0x0);}['_alignToTargetRect'](_0x443ec4){const _0xa4da5b=this['_sidebarItemViewToAnnotation']['get'](_0x443ec4);if(!_0xa4da5b||!_0xa4da5b['target']||!_0xa4da5b['targetRect'])return;const _0x35cb6a=this['_getTargetTop'](_0xa4da5b,_0xa4da5b['targetRect']);this['_setItemTop'](_0x443ec4,_0x35cb6a);}['_getTargetTop'](_0x48d92b,_0x5a15fc){if(null===_0x5a15fc)return 0x0;if(_0x48d92b['target']instanceof _0x3157f3)return _0x5a15fc['top'];{const _0x3f988c=new _0x3157f3(this['view']['element'])['top'];return _0x5a15fc['top']-_0x3f988c;}}['_setItemTop'](_0x5dbaed,_0x150149,_0x330a34=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x330a34&&(_0x150149=Math['max'](_0x150149,this['_getMaxAvailableTop'](_0x5dbaed))),_0x5dbaed['top']=_0x150149;}['_getMaxAvailableTop'](_0x515437){let _0x8e3902=this['_getItemBefore'](_0x515437),_0x4df5e0=0x0;for(;_0x8e3902;)_0x8e3902['updateHeight'](),_0x4df5e0+=this['_spaceBetweenItems']+_0x8e3902['height'],_0x8e3902=this['_getItemBefore'](_0x8e3902);return _0x4df5e0;}}function R(_0x287bc3,_0x74ba06){return Math['max'](_0x287bc3-_0x74ba06,0x0);}function y(_0x15f2e7){return null!==_0x15f2e7&&'object'==typeof _0x15f2e7&&0x1===_0x15f2e7['nodeType'];}class e extends _0xdb81b3{['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(_0x4927a4){super(_0x4927a4),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x4119ce(),this['_refreshPositioningDebounced']=_0x22076e(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x59c10d=this['context']['plugins']['get'](M),_0x32b413=this['context']['plugins']['get'](z);_0x59c10d['register']('wideSidebar',this),_0x32b413['container']&&_0x59c10d['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x32691e){if(_0x32691e===this['activeAnnotation'])return;const _0x13b9d4=this['context']['plugins']['get'](z);_0x13b9d4['_activeAnnotation']=_0x32691e;const _0x57cc86=this['activeAnnotation'];this['activeAnnotation']=_0x32691e,_0x13b9d4['refresh']({'blurredAnnotation':_0x57cc86,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x561767){this['annotations']=_0x561767;const _0x11c6ed=this['context']['plugins']['get'](z);if(_0x11c6ed['_annotations']=_0x561767,this['isAttached'])throw new _0x4ee480('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x11c6ed,'set:container',()=>{this['detach'](),this['listenTo'](_0x11c6ed,'change:container',_0x28b2cf=>{_0x28b2cf['off'](),this['attach'](_0x561767);});}),_0x11c6ed['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x3033c8=_0x4b3ca2=>{_0x4b3ca2['updateTargetRect'](),_0x11c6ed['addAnnotation'](_0x4b3ca2);};for(const _0x25293b of _0x561767)_0x3033c8(_0x25293b);this['listenTo'](_0x561767,'add',(_0x4ba4a6,_0x359a3c)=>{_0x3033c8(_0x359a3c);}),this['listenTo'](_0x561767,'remove',(_0x26c315,_0x4af86a,_0x2d716d)=>{_0x11c6ed['rearrange']({'removedAnnotation':_0x4af86a,'previousAnnotation':_0x561767['get'](_0x2d716d-0x1),'nextAnnotation':_0x561767['get'](_0x2d716d+0x1)}),_0x4af86a===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x561767,'focus',(_0x1a4437,_0x2a1c9f)=>{this['setActiveAnnotation'](_0x2a1c9f);}),this['listenTo'](_0x561767,'blur',()=>{this['setActiveAnnotation'](null);});const _0x1b6473=this['context']instanceof _0x4f0f63?this['context']['editors']:new _0x4119ce([this['context']]);for(const _0x4f72e9 of _0x1b6473)this['_integrateWithEditorAnnotations'](_0x4f72e9);this['listenTo'](_0x1b6473,'add',(_0x3efb2b,_0x26999e)=>{this['listenTo'](_0x26999e,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x26999e);});}),this['listenTo'](_0x1b6473,'remove',(_0x2a5123,_0x835602)=>{_0x835602['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x835602['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x4ee480('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x30978a=this['context']['plugins']['get'](z);_0x30978a['_detachFromContainer'](this['annotations']),this['stopListening'](_0x30978a),this['stopListening'](this['annotations']),this['context']instanceof _0x4f0f63&&this['stopListening'](this['context']['editors']);for(const _0x28695a of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x28695a);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x435390){if(!_0x435390['plugins']['has']('EditorAnnotations'))return;const _0x5a0285=_0x435390['plugins']['get']('EditorAnnotations'),_0x41b959=()=>{const _0x504525=_0x5a0285['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x504525[0x0]||null);};this['listenTo'](_0x5a0285,'refresh',_0x41b959),this['listenTo'](_0x5a0285,'blur',(_0x5828c7,{isAnnotationTracked:_0x5c7ac7})=>{this['activeAnnotation']&&_0x5c7ac7(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x5a0285,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x1d8b4d=>{_0x5a0285['hasDomSelection']()&&(_0x41b959(),_0x1d8b4d['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x5a0285);}['_destroyEditorAnnotationsIntegration'](_0x391c96){this['stopListening'](_0x391c96),this['_editorAnnotations']['remove'](_0x391c96);}}class D extends _0x436108{['counterView'];constructor(_0x3790f1){super(_0x3790f1);const _0x35ab9a=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x454205,_0x52fc27)=>_0x454205?'...':_0x52fc27['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',_0x35ab9a['to']('annotationType',_0x1808fa=>'ck-annotation-counter__badge--'+_0x1808fa),_0x35ab9a['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x35ab9a['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0xdb81b3{['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(_0x17d139){super(_0x17d139),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x256fef),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x4119ce(),this['_refreshPositioningDebounced']=_0x22076e(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0xeea49c(this['context']['locale']),this['balloonPanelView']=new _0x51b90d(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x574e6e){this['annotations']=_0x574e6e;const _0x19637b=this['context']['plugins']['get'](z),_0x55fe4a=this['balloonPanelView'];if(_0x19637b['_annotations']=_0x574e6e,this['isAttached'])throw new _0x4ee480('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x19637b,'set:container',()=>{this['detach'](),this['listenTo'](_0x19637b,'change:container',_0x4a15cc=>{_0x4a15cc['off'](),this['attach'](_0x574e6e);});}),_0x19637b['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x35b57a=_0x10c9a5=>{const _0xa46ab3=new D(this['context']['locale']);_0x19637b['addAnnotation'](_0x10c9a5,_0xa46ab3),this['_annotationToNarrowView']['set'](_0x10c9a5,_0xa46ab3),_0xa46ab3['bind']('isDirty','annotationType','number')['to'](_0x10c9a5['view'],'isDirty','type','length'),_0xa46ab3['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x55fe4a['content']['first']!==_0x10c9a5['view']?(this['_showBalloon'](_0x10c9a5),_0x10c9a5['view']['element']['focus'](),this['setActiveAnnotation'](_0x10c9a5)):this['setActiveAnnotation'](null);});};for(const _0x7d082c of _0x574e6e)_0x35b57a(_0x7d082c);this['listenTo'](_0x574e6e,'add',(_0x2fe30b,_0x1fb096)=>{_0x35b57a(_0x1fb096);}),this['listenTo'](_0x574e6e,'remove',(_0x30b530,_0x2f145f,_0x2bdab4)=>{this['_annotationToNarrowView']['get'](_0x2f145f)['destroy'](),this['_annotationToNarrowView']['delete'](_0x2f145f),_0x19637b['rearrange']({'removedAnnotation':_0x2f145f,'previousAnnotation':_0x574e6e['get'](_0x2bdab4-0x1),'nextAnnotation':_0x574e6e['get'](_0x2bdab4+0x1)}),_0x2f145f===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x574e6e,'focus',(_0x28d51a,_0x1dfc72)=>{this['setActiveAnnotation'](_0x1dfc72);}),this['listenTo'](_0x574e6e,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x2e7405,_0x20a0e8)=>{_0x20a0e8['keyCode']===_0x5d2a69['esc']&&_0x55fe4a['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x55fe4a['content']['first']),this['_hideBalloon'](),_0x20a0e8['stopPropagation'](),_0x20a0e8['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x1ea9c6,_0x67f194)=>{const _0x2f9ad2=_0x67f194['target'];_0x55fe4a['isVisible']&&_0x55fe4a['element']['contains'](_0x2f9ad2)||_0x19637b['view']['element']['contains'](_0x2f9ad2)||_0x1ea9c6['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x4dbf57=>_0x4dbf57['contains'](_0x2f9ad2))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x8ae65a=this['context']instanceof _0x4f0f63?this['context']['editors']:new _0x4119ce([this['context']]);for(const _0x3e6305 of _0x8ae65a)this['_integrateWithEditorAnnotations'](_0x3e6305);this['listenTo'](_0x8ae65a,'add',(_0x4d6178,_0x4b5b64)=>{this['listenTo'](_0x4b5b64,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x4b5b64);});}),this['listenTo'](_0x8ae65a,'remove',(_0x59b25a,_0x1197d1)=>{_0x1197d1['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x1197d1['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x28e8b3){if(_0x28e8b3===this['activeAnnotation'])return;const _0x23a5f1=this['context']['plugins']['get'](z);if(_0x23a5f1['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x28e8b3,'disableAnimationOnActivatedAnnotation':!0x0}),_0x28e8b3)_0x23a5f1['getSidebarItemView'](_0x28e8b3)?this['_showBalloon'](_0x28e8b3):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x28e8b3;}['detach'](){if(!this['isAttached'])throw new _0x4ee480('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x278cbc=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x171ee4=>_0x171ee4['destroy']()),this['_annotationToNarrowView']['clear'](),_0x278cbc['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x4f0f63&&this['stopListening'](this['context']['editors']);for(const _0x15a477 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x15a477);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'](_0x480d5a){if(!_0x480d5a['plugins']['has']('EditorAnnotations'))return;const _0x27f79e=_0x480d5a['plugins']['get']('EditorAnnotations'),_0x39b9ac=this['context']['plugins']['get'](z),_0x2b8ae0=this['annotations'],_0x3e2efc=this['balloonPanelView'],_0x275e05=()=>{const _0x41c5f2=_0x27f79e['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x41c5f2),this['setActiveAnnotation'](_0x41c5f2[0x0]||null);};this['listenTo'](_0x27f79e,'refresh',_0x275e05),this['listenTo'](_0x27f79e,'blur',(_0x4c8f99,{isAnnotationTracked:_0x49790a})=>{this['activeAnnotation']&&_0x49790a(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x27f79e,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x2b8ae0,'blur',_0x59e929=>{_0x27f79e['hasDomSelection']()&&_0x59e929['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x3154bf,_0x3213bf)=>{const _0x9e7611=_0x3213bf['target'];_0x3e2efc['isVisible']&&_0x3e2efc['element']['contains'](_0x9e7611)||_0x39b9ac['view']['element']['contains'](_0x9e7611)||this['activeAnnotation']&&_0x27f79e['hasDomSelection']()&&(_0x275e05(),_0x3154bf['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x27f79e);}['_destroyEditorAnnotationsIntegration'](_0x5a0690){_0x5a0690&&(this['stopListening'](_0x5a0690),this['_editorAnnotations']['remove'](_0x5a0690));}['_setSelectedAnnotations'](_0x30eebb){for(const _0x2b97dc of this['_selectedAnnotations'])_0x30eebb['includes'](_0x2b97dc)||this['_manuallyClosedAnnotationViews']['delete'](_0x2b97dc['view']);this['_selectedAnnotations']=_0x30eebb;}['_refreshPositioning'](){const _0x4ad7fb=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x4ad7fb['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x23df5a){if(this['_manuallyClosedAnnotationViews']['has'](_0x23df5a['view']))return;const _0x1a6a79=this['balloonPanelView']['content']['first'];_0x1a6a79!==_0x23df5a['view']?(_0x1a6a79&&this['_detachListeners'](_0x1a6a79),this['_attachListeners'](_0x23df5a['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x23df5a['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x5841d5=this['balloonPanelView']['content']['first'],_0x3168e0=_0x5841d5&&this['annotations']['getByView'](_0x5841d5);if(!_0x3168e0||!this['_annotationToNarrowView']['has'](_0x3168e0))return;const _0xd99fec=this['_annotationToNarrowView']['get'](_0x3168e0)['element'],_0x18261d=(function(){const _0x3160a5=_0x51b90d['defaultPositions'];return[_0x3160a5['southArrowNorthEast'],_0x3160a5['northArrowSouthEast'],_0x3160a5['southArrowNorth'],_0x3160a5['northArrowSouth'],_0x3160a5['southArrowNorthWest'],_0x3160a5['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0xd99fec,'positions':_0x18261d});}['_hideBalloon'](){const _0x3000b1=this['balloonPanelView'],_0x3b1528=_0x3000b1['content']['first'];_0x3b1528&&(this['_detachListeners'](_0x3b1528),_0x3000b1['unpin'](),_0x3000b1['content']['clear']());}['_attachListeners'](_0x2dd9e2){this['listenTo'](_0x2dd9e2,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x2dd9e2,'Esc',(_0x3c8c14,_0x43eb46)=>{this['_manuallyClosedAnnotationViews']['add'](_0x2dd9e2),this['_hideBalloon'](),_0x43eb46();});}['_detachListeners'](_0x34f2fb){this['stopListening'](_0x34f2fb);}}class c extends _0x2ee0ad{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x15b369,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b62c9){super(_0x5b62c9),_0x5b62c9['editing']['view']['addObserver'](_0x194408),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x5b62c9['plugins']['get'](_0x15b369),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x2974cf=this['editor']['plugins']['get'](M);_0x2974cf['context']===this['editor']&&(_0x2974cf['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x1b5688,_0x4233d1)=>{const _0x419bb1=this['_balloon'];if(this['isAttached']&&_0x419bb1['visibleView']){const _0x31e790=this['annotations']['getByView'](_0x419bb1['visibleView']);_0x31e790&&this['_closeAnnotation'](_0x31e790),_0x4233d1();}}));}['afterInit'](){const _0x1b4f57=this['editor']['plugins']['get'](M);_0x1b4f57['context']===this['editor']&&(_0x1b4f57['hasActive']()||_0x1b4f57['switchTo']('inline'));}['setActiveAnnotation'](_0x248da5){_0x248da5!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x248da5&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x248da5)&&this['_addAnnotationToBalloon'](_0x248da5,!0x0),_0x248da5['isActive']=!0x0),_0x248da5||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x248da5);}['attach'](_0x1eb1ab){this['annotations']=_0x1eb1ab;const _0xeff857=this['editor']['plugins']['get'](M),_0x5aa5ee=this['_balloon'];if(this['isAttached'])throw new _0x4ee480('inlineannotations-attach-already-attached',this);if(_0xeff857['context']!==this['editor'])throw new _0x4ee480('inlineannotations-not-allowed-with-context',this);const _0x2c32ca=this['editor']['plugins']['get'](P);this['listenTo'](_0x2c32ca,'refresh',()=>{const _0x9a427e=_0x2c32ca['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x29cc1a,_0xed03e2;!this['_forceRefresh']&&(_0x29cc1a=_0x9a427e,_0xed03e2=this['_selectedAnnotations'],_0x29cc1a['length']===_0xed03e2['length']&&_0x29cc1a['every'](_0x41760c=>_0xed03e2['includes'](_0x41760c)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x9a427e),this['setActiveAnnotation'](_0x9a427e[0x0]||null));}),this['listenTo'](_0x2c32ca,'blur',(_0x511a42,{isAnnotationTracked:_0x1cfa71})=>{this['activeAnnotation']&&_0x1cfa71(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x56ea47,_0x4e6cbe,_0x2fe88a)=>{_0x2fe88a||this['setActiveAnnotation'](null);}),this['listenTo'](_0x1eb1ab,'remove',(_0xd0dba9,_0x2f9e56)=>{this['_removeAnnotationFromBalloon'](_0x2f9e56),_0x2f9e56===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x5aa5ee,'change:visibleView',(_0x2c2022,_0x1e74f9,_0x5bae99,_0x178f1b)=>{_0x178f1b&&this['stopListening'](_0x178f1b);const _0x3b6aa0=_0x1eb1ab['getByView'](_0x5bae99);_0x5bae99&&_0x3b6aa0&&(this['listenTo'](_0x5bae99,'change:height',()=>{_0x5aa5ee['updatePosition']();}),this['listenTo'](_0x5bae99,'Esc',()=>{this['_closeAnnotation'](_0x3b6aa0),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x3b6aa0&&this['setActiveAnnotation'](_0x3b6aa0));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x5aa5ee['visibleView']&&(_0x1eb1ab['getByView'](_0x5aa5ee['visibleView'])&&_0x5aa5ee['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 _0x4ee480('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x347ed8 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x347ed8);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x36ba42){for(const _0x40f5ae of this['_selectedAnnotations'])_0x36ba42['includes'](_0x40f5ae)||this['_manuallyClosed']['delete'](_0x40f5ae);for(const _0x5f3a92 of this['annotations'])_0x36ba42['includes'](_0x5f3a92)||this['_removeAnnotationFromBalloon'](_0x5f3a92);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x4a8f9a of _0x36ba42)this['_addAnnotationToBalloon'](_0x4a8f9a);}this['_selectedAnnotations']=_0x36ba42;}['_addAnnotationToBalloon'](_0x1c1db6,_0x136879=!0x1){this['_manuallyClosed']['has'](_0x1c1db6)||(this['_addedAnnotations']['has'](_0x1c1db6)||this['_balloon']['hasView'](_0x1c1db6['view'])||(this['_addedAnnotations']['add'](_0x1c1db6),this['_balloon']['add']({'stackId':_0x1c1db6['view']['id'],'view':_0x1c1db6['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x1c1db6)}})),_0x136879&&this['_balloon']['showStack'](_0x1c1db6['view']['id']));}['_getBalloonTargetForAnnotation'](_0x30803b){const _0x63ea9e=_0x30803b['target'],_0x189332=this['editor']['editing']['view'],_0x593c6d=_0x189332['document']['selection']['getFirstRange'](),_0x29f085=_0x189332['domConverter']['viewRangeToDom'](_0x593c6d);if(_0x29f085['collapse'](!0x0),_0x63ea9e){if(_0x63ea9e instanceof _0x3157f3)return _0x63ea9e;let _0xfb89bf=[];for(const _0x7ddb05 of _0x63ea9e)_0xfb89bf['push'](...(_0x2ddbcf=_0x7ddb05['getClientRects'](),Array['from'](_0x2ddbcf)['map'](DOMRect['fromRect'])));_0xfb89bf=function(_0x3832a1){const _0x1c24f0=[];let _0x4867b9=_0x3832a1[0x0];for(let _0x16d09f=0x1;_0x16d09f<_0x3832a1['length'];_0x16d09f++)b(_0x4867b9,_0x3832a1[_0x16d09f])?_0x4867b9['width']+=_0x3832a1[_0x16d09f]['width']:(_0x1c24f0['push'](_0x4867b9),_0x4867b9=_0x3832a1[_0x16d09f]);return _0x1c24f0['push'](_0x4867b9),_0x1c24f0;}(_0xfb89bf);const _0x35bea4=_0x29f085['getBoundingClientRect']();return _0xfb89bf['find'](_0x371894=>_0x371894['top']<=_0x35bea4['top']&&_0x371894['bottom']>=_0x35bea4['bottom']&&_0x371894['left']<=_0x35bea4['left']&&_0x371894['right']>=_0x35bea4['right'])||_0xfb89bf[0x0];}var _0x2ddbcf;return _0x30803b['targetRect']||_0x29f085;}['_removeAnnotationFromBalloon'](_0x42c2cd){this['_addedAnnotations']['has'](_0x42c2cd)&&this['_balloon']['hasView'](_0x42c2cd['view'])&&(this['_addedAnnotations']['delete'](_0x42c2cd),this['_balloon']['remove'](_0x42c2cd['view']));}['_closeAnnotation'](_0xc0f150){this['_manuallyClosed']['add'](_0xc0f150),this['_removeAnnotationFromBalloon'](_0xc0f150);}}function b(_0xbe1693,_0x278790){return _0xbe1693['top']===_0x278790['top']&&_0xbe1693['bottom']===_0x278790['bottom']&&_0xbe1693['right']===_0x278790['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(_0x5a1136,_0x3b2801){super(_0x5a1136),this['set']('isEmpty',!_0x3b2801['length']),this['focusTracker']=new _0x490066(),this['_annotationViews']=_0x3b2801,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x3b2801,'focusTracker':this['focusTracker']}),this['listenTo'](_0x3b2801,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x3b2801,'remove',(_0x45f064,_0x2a5bb1)=>{_0x2a5bb1['isActive']&&this['focus'](),_0x3b2801['length']||(this['isEmpty']=!0x0);});const _0x53d21e=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x5a1136,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x3b2801},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x53d21e['if']('isEmpty','ck-hidden',_0x1e88a5=>!_0x1e88a5)]},'children':[{'text':S(_0x5a1136,'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 _0x57f0a7 of this['_annotationViews'])this['focusTracker']['add'](_0x57f0a7['element']);this['_annotationViews']['on']('change',(_0x35d737,{added:_0x478853,removed:_0x38c670})=>{for(const _0x5c3b8f of _0x478853)this['focusTracker']['add'](_0x5c3b8f['element']);for(const _0x509205 of _0x38c670)this['focusTracker']['remove'](_0x509205['element']);});}}class f extends _0xdb81b3{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x28eb96){super(_0x28eb96),this['archivedThreads']=new _0x4119ce();}['init'](){const _0x175e27=this['context'],_0x268e8f=_0x175e27['plugins']['get'](o),_0x1eba3c=_0x175e27['plugins']['get'](N);this['listenTo'](_0x268e8f,'addCommentThread',(_0x597043,{threadId:_0x4431fe})=>{const _0x49e719=_0x268e8f['getCommentThread'](_0x4431fe);_0x49e719['archivedAt']&&this['archivedThreads']['add'](_0x49e719,this['_calculatePosition'](_0x49e719['archivedAt'])),this['listenTo'](_0x49e719,'change:archivedAt',(_0x1042de,_0x3811cd,_0x1365bc)=>{_0x1365bc?this['archivedThreads']['has'](_0x49e719)||this['archivedThreads']['add'](_0x49e719,this['_calculatePosition'](_0x49e719['archivedAt'])):this['archivedThreads']['has'](_0x49e719)&&this['archivedThreads']['remove'](_0x49e719);});}),this['listenTo'](_0x268e8f,'removeCommentThread',(_0x31b7c7,{threadId:_0x212fd2})=>{const _0x3da615=_0x268e8f['getCommentThread'](_0x212fd2);this['stopListening'](_0x3da615),this['archivedThreads']['has'](_0x3da615)&&this['archivedThreads']['remove'](_0x3da615);},{'priority':'highest'}),this['listenTo'](_0x1eba3c['collection'],'focus',(_0x3a1ca3,_0x12c6e1)=>{_0x12c6e1['isVisible']||(_0x12c6e1['isActive']=!0x0,_0x1eba3c['activate'](_0x12c6e1));});}['_calculatePosition'](_0xe51c13){const _0x344255=[...this['archivedThreads']]['findIndex'](_0x812549=>_0x812549['archivedAt']<_0xe51c13);return _0x344255>-0x1?_0x344255:this['archivedThreads']['length'];}}class a extends _0x2ee0ad{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x24c683];}constructor(_0x463bda){super(_0x463bda),this['annotationViews']=new _0x3a98f9(),this['_pendingThreads']=[];}['init'](){const _0x442cc4=this['editor'],_0x234c82=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x442cc4['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x436108,!0x0)),_0x442cc4['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x14c73=this['_createCommentsArchiveButton'](_0x55a431);return _0x14c73['set']({'role':'menuitemcheckbox'}),_0x14c73;});const _0x1ff656=_0x442cc4['plugins']['get'](f),_0x52dae3=_0x442cc4['plugins']['get']('Annotations'),_0x31e079=_0x442cc4['plugins']['get']('CommentsRepository');this['listenTo'](_0x1ff656['archivedThreads'],'add',(_0x2a116e,_0x2c7d06)=>{const _0x42a984=_0x442cc4['config']['get']('collaboration.channelId');if(!_0x42a984||_0x2c7d06['channelId']===_0x42a984){const _0x39e0ed=_0x31e079['_threadToController']['get'](_0x2c7d06);if(!_0x39e0ed)return void this['_pendingThreads']['push'](_0x2c7d06);const _0x3de741=this['_calculatePosition'](_0x2c7d06['archivedAt']),_0x16996f=_0x52dae3['getByInnerView'](_0x39e0ed['view']);_0x16996f['isVisible']&&_0x52dae3['_visibleAnnotations']['remove'](_0x16996f),this['annotationViews']['add'](_0x16996f['view'],_0x3de741);}}),this['listenTo'](_0x52dae3['collection'],'add',(_0x399163,_0x422a46)=>{const _0x2e844a=this['_pendingThreads']['find'](_0x1be110=>{const _0x5f2664=_0x31e079['_threadToController']['get'](_0x1be110);return _0x5f2664&&_0x422a46['innerView']===_0x5f2664['view'];});if(_0x2e844a){const _0x33207d=this['_calculatePosition'](_0x2e844a['archivedAt']);this['annotationViews']['add'](_0x422a46['view'],_0x33207d),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x2e844a),0x1);}}),this['listenTo'](_0x1ff656['archivedThreads'],'remove',(_0x5ca53b,_0x3e6bbe)=>{const _0x4fc6b8=_0x442cc4['config']['get']('collaboration.channelId');if(!_0x4fc6b8||_0x3e6bbe['channelId']===_0x4fc6b8){const _0x1864ea=_0x31e079['_threadToController']['get'](_0x3e6bbe),_0x48132a=_0x52dae3['getByInnerView'](_0x1864ea['view']);this['annotationViews']['remove'](_0x48132a['view']),this['stopListening'](_0x48132a['focusableElements']);}}),this['listenTo'](_0x52dae3['collection'],'add',(_0x5bb0a1,_0x434d50)=>{this['listenTo'](_0x434d50,'escape',_0x234c82);}),this['listenTo'](_0x52dae3['collection'],'remove',(_0x3088f8,_0x30a882)=>{this['stopListening'](_0x30a882,'escape',_0x234c82);});}['_calculatePosition'](_0x5892f1){const _0x673284=this['editor']['config']['get']('collaboration.channelId'),_0x59cc33=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x152405=>_0x152405['channelId']===_0x673284)['findIndex'](_0xeb0877=>_0xeb0877['archivedAt']<_0x5892f1);return _0x59cc33<0x0||_0x59cc33>this['annotationViews']['length']?this['annotationViews']['length']:_0x59cc33-0x1;}['_toggleDialog'](){const _0xcd8e53=this['editor'],_0x254147=_0xcd8e53['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0xcd8e53['locale'],this['annotationViews'])),'commentsArchive'===_0x254147['id']?_0x254147['hide']():_0x254147['show']({'id':'commentsArchive','title':S(_0xcd8e53['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x4ca885['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x168acf,_0x517840=!0x1){const _0x261733=this['editor']['locale'],_0x3556eb=this['editor']['plugins']['get']('Dialog'),_0x906c8b=new _0x168acf(_0x261733);return _0x906c8b['bind']('isEnabled')['to'](this,'isEnabled'),_0x906c8b['bind']('isOn')['to'](_0x3556eb,'id',_0x56c55c=>'commentsArchive'===_0x56c55c),_0x906c8b['set']({'label':S(_0x261733,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x517840&&(_0x906c8b['tooltip']=!0x0),this['listenTo'](_0x906c8b,'execute',()=>this['_toggleDialog']()),_0x906c8b;}['_hideDialogOnAnnotationEscape']=_0x435be3=>{const _0x267e8d=_0x435be3['source'];if(!this['annotationViews']['has'](_0x267e8d['view']))return;const _0x4079f1=this['editor']['plugins']['get']('Dialog');_0x4079f1['isOpen']&&'commentsArchive'===_0x4079f1['id']&&(_0x4079f1['hide'](),_0x435be3['stop']());};}class p extends _0x2ee0ad{static get['requires'](){return[o,r,i,f,a,s,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{d as Annotation,x as AnnotationCollection,T as AnnotationView,N as Annotations,M as AnnotationsUIs,is as BaseCommentThreadView,rs as BaseCommentView,re as Comment,oe as CommentThread,Ct as CommentThreadController,ie as CommentThreadInputView,vt as CommentThreadView,gt as CommentView,p as Comments,f as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,e as WideSidebar};
|