@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
25 lines • 44.9 kB
JavaScript
/*
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
*
*
*
*
* +---------------------------------------------------------------------------------+
* | |
* | Hello stranger! |
* | |
* | |
* | What you're currently looking at is the source code of a legally protected, |
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
* | are forbidden and will result in legal consequences. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
const _0x43e45d=_0x6839;(function(_0x28a3a0,_0x1e0685){const _0x300cba=_0x6839,_0x5ba742=_0x28a3a0();while(!![]){try{const _0x4e91cc=parseInt(_0x300cba(0xb4))/0x1+parseInt(_0x300cba(0x16d))/0x2*(-parseInt(_0x300cba(0x134))/0x3)+-parseInt(_0x300cba(0x170))/0x4*(-parseInt(_0x300cba(0xfb))/0x5)+parseInt(_0x300cba(0x13d))/0x6*(parseInt(_0x300cba(0xbf))/0x7)+-parseInt(_0x300cba(0xcf))/0x8+-parseInt(_0x300cba(0x18f))/0x9*(parseInt(_0x300cba(0xfc))/0xa)+parseInt(_0x300cba(0xf4))/0xb;if(_0x4e91cc===_0x1e0685)break;else _0x5ba742['push'](_0x5ba742['shift']());}catch(_0x296942){_0x5ba742['push'](_0x5ba742['shift']());}}}(_0x563f,0x527b4));import{PendingActions as _0x7c74c,ContextPlugin as _0x500df0,Editor as _0x17f7a1}from'ckeditor5/src/core.js';import{Collection as _0x59e28d,uid as _0x545b9f,CKEditorError as _0x2aa787,ObservableMixin as _0x434787}from'ckeditor5/src/utils.js';import{getDateTimeFormatter as _0x596005,hashObject as _0x18fe46,Users as _0x2d4f15}from'ckeditor5-collaboration/src/collaboration-core.js';import{cloneDeep as _0x2051f8,isEqual as _0x5ab1d6,set as _0x153a17,unset as _0x270c9a}from'lodash-es';import _0x5ca1ba from'./ui/commentthreadcontroller.js';import _0x27bb74 from'./ui/view/commentthreadview.js';import _0xcbc0ed from'./ui/view/commentview.js';import{getTranslation as _0x36d08e}from'../utils/common-translations.js';function _0x6839(_0x13f212,_0x8a1629){const _0x563f4b=_0x563f();return _0x6839=function(_0x6839c9,_0x2e1bf2){_0x6839c9=_0x6839c9-0xb4;let _0x499034=_0x563f4b[_0x6839c9];return _0x499034;},_0x6839(_0x13f212,_0x8a1629);}import'../../theme/comment.css';import'../../theme/commentthread.css';import'../../theme/commentinput.css';import _0x4569d8 from'../annotations/view/annotationview.js';import _0x2575b4 from'../annotations/annotation.js';import _0x132b93 from'../annotations/annotations.js';const Tt=Symbol(_0x43e45d(0xd1)),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};function _0x563f(){const _0x832c2=['9szMPnF','licenseKey','hasCommentThread','commentsrepository-add-comment-internal-error','update','setActiveCommentThread','change:_readOnlyChannels','reopen','isResolvable','126vooXCX','_resolveCommentThread','_readOnlyChannels','refreshVisibility','stopListening','focusTracker','editorDestroyed','createdAt','isReadOnly','commentsrepository-resolve-comment-thread-internal-error','_getExternalAuthor','CommentsRepository','plugins','addComment','find','context','comments.copyMarkers','getUser','submit','attributes','max','isActive','isOfficialPlugin','commentsrepository-missing-comment-thread','_createCommentThreadView','Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.','commentsrepository-add-comment-user-not-exists','comments.CommentThreadView','fetchCommentThread','commentsrepository-reopen-comment-thread-internal-error','deactivateAll','isVisible','body','error','destroy','admin','change:authoredAt','_isAttached','commentsrepository-remove-comment-missing-comment-thread','escape','getCommentThread','getPermissions','commentsrepository-invalid-comment-thread-id','updateCommentThread','commentsrepository-remove-missing-comment','_addComment','add','unlinkedAt','373304bmhxPx','isFromAdapter','_update','164hTtvxK','_updateActiveAnnotation','resolvedAt','set','createCommentThreadController','commentUpdated','type','comments','_threadToController','_createNewComment','editorReady','commentsrepository-invalid-comment-content','commentsrepository-active-missing-comment-thread','setPermissions','commentsrepository-missing-target','attachTo','resolve','once','from','commentThreadInputView','init','commentsrepository-remove-missing-comment-thread','isDirty','channelId','_removeComment','submitCommentThread','_removeActiveAnnotation','commentsrepository-update-missing-comment','fire','commentsrepository-get-comment-invalid-id','commentsrepository-active-not-attached','9FaLyTj','_removeCommentThread','creator','write','CommentThreadView','isExternal','textContent','_addCommentThread','setAttribute','commentsrepository-resolved-comment-thread','setUnlinkedAt','commentsrepository-fetch-comment-thread','209813ywxbKt','trim','_updateCommentThread','map','authorName','commentsrepository-add-comment-to-missing-comment-thread','config','commentsListView','updateComment','innerView','_bindAnnotationToEditors','225218mvXfkt','values','PendingActions','string','requires','reduce','comments.maxCommentCharsWhenCollapsed','isResolved','filter','_findOptimalIndex','commentsrepository-remove-comment-thread-internal-error','isRemovable','setContext','commentsrepository-attach-missing-comment-thread','PENDING_ACTION_COMMENT_THREAD','remove','3805040BjnaMN','_submitCommentThread','noChannel','_remove','warn','resolveCommentThread','change:activeAnnotations','toJSON','archivedAt','isPremiumPlugin','view','isSubmitted','change:_permissions','comment','_isSubmitted','removeAttribute','getByInnerView','openNewCommentThread','commentsrepository-duplicated-comment-thread-id','bodyCollectionContainer','switchReadOnly','removeComment','getComment','innerHTML','pluginName','_updateComment','bind','commentsrepository-update-comment-invalid-content','comments.CommentView','_detachCommentThread','comments.maxThreadTotalWeight','commentInputView','isAttached','external:','commentId','div','commentsrepository-update-comment-internal-error','6600594uUmisR','comments.maxCommentsWhenCollapsed','getCommentThreads','content','listenTo','locale','createElement','11555ytaQVW','2068420pZvmrb','authoredAt','focusableElements','_adapter','getIndex','activeCommentThread','commentsrepository-add-comment-thread-internal-error','has','commentsrepository-remove-comment-internal-error','comments.editorConfig','catch','commentsrepository-update-comment-thread-internal-error','addUser','then','focus','assign','function','model','_permissions','_viewToController','reopenCommentThread','_unbindEditors','adapter','addCommentThread','resolvedBy','commentsrepository-reopen-comment-thread','activate','_repository','commentsrepository-invalid-comment-authorid','change:isDirty','canComment','highest','define','getTime','_threads','commentsrepository-missing-thread-and-adapter-method','weight','isEditable','commentsrepository-adapter-already-set','commentsrepository-update-comment-missing-comment-thread','_hasTargetInContent','CommentView','author','_add','threadId','push','_attachCommentThread','_reopenCommentThread','commentsrepository-invalid-commentid','lowest','modifyAll','@external','removeCommentThread','get','length','delete'];_0x563f=function(){return _0x832c2;};return _0x563f();}export default class o extends _0x500df0{static get[_0x43e45d(0xc3)](){return[_0x132b93,_0x7c74c,_0x2d4f15];}static get[_0x43e45d(0xe7)](){const _0x2d64ad=_0x43e45d;return _0x2d64ad(0x148);}static get[_0x43e45d(0x153)](){return!0x0;}static get[_0x43e45d(0xd8)](){return!0x0;}constructor(_0x4d25b5){const _0x2fb5eb=_0x43e45d;super(_0x4d25b5),this[_0x2fb5eb(0x11e)]=new Map(),this[_0x2fb5eb(0x178)]=new Map(),this[_0x2fb5eb(0x10f)]=new Map(),this[_0x2fb5eb(0x173)](_0x2fb5eb(0x13f),new Set()),this[_0x2fb5eb(0x173)](_0x2fb5eb(0x10e),new Map());const _0x35ab5a=this[_0x2fb5eb(0x14c)][_0x2fb5eb(0xba)];_0x35ab5a[_0x2fb5eb(0x11c)](_0x2fb5eb(0xf5),0x2),_0x35ab5a[_0x2fb5eb(0x11c)](_0x2fb5eb(0xed),0x1f4),_0x35ab5a[_0x2fb5eb(0x11c)](_0x2fb5eb(0xc5),0x8c),_0x35ab5a[_0x2fb5eb(0x11c)](_0x2fb5eb(0x158),_0x27bb74),_0x35ab5a[_0x2fb5eb(0x11c)](_0x2fb5eb(0xeb),_0xcbc0ed),_0x35ab5a[_0x2fb5eb(0x131)](_0x2fb5eb(0x105))||console[_0x2fb5eb(0xd3)](_0x2fb5eb(0x156));}[_0x43e45d(0x184)](){const _0x36ce34=_0x43e45d,_0x3c7b35=this[_0x36ce34(0x14c)][_0x36ce34(0x149)][_0x36ce34(0x131)](_0x132b93);this[_0x36ce34(0x173)](_0x36ce34(0x101),null),this['on'](_0x36ce34(0x113),(_0x44ff23,_0x4bdbc5)=>this[_0x36ce34(0x196)](_0x4bdbc5)),this['on'](_0x36ce34(0x189),(_0x505de7,_0x5aea3c)=>this[_0x36ce34(0xd0)](_0x5aea3c)),this['on'](_0x36ce34(0xd4),(_0x4c53c7,_0x48a4dc)=>this[_0x36ce34(0x13e)](_0x48a4dc)),this['on'](_0x36ce34(0xd4),(_0x10533b,_0x3b8976)=>this[_0x36ce34(0x171)](_0x3b8976),{'priority':_0x36ce34(0x12d)}),this['on'](_0x36ce34(0x110),(_0x1c134d,_0x1dd795)=>this[_0x36ce34(0x12b)](_0x1dd795)),this['on'](_0x36ce34(0x110),(_0x2d5ea7,_0x25d90c)=>this[_0x36ce34(0x171)](_0x25d90c),{'priority':_0x36ce34(0x12d)}),this['on'](_0x36ce34(0x130),(_0x31bb74,_0x2792ff)=>this[_0x36ce34(0x190)](_0x2792ff)),this['on'](_0x36ce34(0x168),(_0x21a7b8,_0x5d9b79)=>this[_0x36ce34(0xb6)](_0x5d9b79)),this['on'](_0x36ce34(0x168),(_0x408b87,_0x551cfb)=>this[_0x36ce34(0x171)](_0x551cfb),{'priority':_0x36ce34(0x12d)}),this['on'](_0x36ce34(0x14a),(_0x3d511f,_0x52bfa1)=>this[_0x36ce34(0x16a)](_0x52bfa1)),this['on'](_0x36ce34(0xbc),(_0x28f59f,_0x12a127)=>this[_0x36ce34(0xe8)](_0x12a127)),this['on'](_0x36ce34(0xe4),(_0x199991,_0x428bd4)=>this[_0x36ce34(0x188)](_0x428bd4)),this['on'](_0x36ce34(0x14a),(_0xefaf0b,{threadId:_0x40afb7,isFromAdapter:_0x39d20a})=>{const _0x558c41=_0x36ce34;if(_0x39d20a)return;const _0x410d40=this[_0x558c41(0x165)](_0x40afb7),_0x1d064d=_0x410d40&&this[_0x558c41(0x178)][_0x558c41(0x131)](_0x410d40);_0x1d064d&&_0x1d064d[_0x558c41(0xd9)][_0x558c41(0xbb)][_0x558c41(0x10a)](-0x1);},{'priority':_0x36ce34(0x12d)}),this[_0x36ce34(0xf8)](_0x3c7b35,_0x36ce34(0xd5),(_0x45b4ec,_0x4ce838,_0x27f154)=>{const _0x2152cf=_0x36ce34,_0x35ab7e=Array[_0x2152cf(0x182)](_0x27f154)[_0x2152cf(0xb7)](_0x20132b=>this[_0x2152cf(0x10f)][_0x2152cf(0x131)](_0x20132b[_0x2152cf(0xbd)]))[_0x2152cf(0xc7)](Boolean)[0x0];this[_0x2152cf(0x101)]=_0x35ab7e?_0x35ab7e[_0x2152cf(0x10d)]:null;});}set[_0x43e45d(0x112)](_0x208f8b){const _0x1425fc=_0x43e45d;if(this[_0x1425fc(0xff)])throw new _0x2aa787(_0x1425fc(0x122));this[_0x1425fc(0xff)]=_0x208f8b;}get[_0x43e45d(0x112)](){const _0x348f44=_0x43e45d;return this[_0x348f44(0xff)];}[_0x43e45d(0x113)]({channelId:_0x3f5d11=Tt,threadId:_0x2e9aa6=_0x545b9f(),comments:_0x215707=[],unlinkedAt:_0x2a3cc0=null,resolvedAt:_0x545473=null,resolvedBy:_0x5831e0=null,target:_0x57129e=null,context:_0x37b27d=null,attributes:_0x3d1cb3={},isResolvable:_0xab8e4b=!0x0,isSubmitted:_0x526b4f=!0x1,isFromAdapter:_0x34b44b=!0x1}={}){const _0x183a65=_0x43e45d;return this[_0x183a65(0x18c)](bt(_0x183a65(0x113),_0x3f5d11),{'channelId':_0x3f5d11,'threadId':_0x2e9aa6,'comments':_0x215707,'unlinkedAt':_0x2a3cc0,'resolvedAt':_0x545473,'resolvedBy':_0x5831e0,'target':_0x57129e,'context':_0x37b27d,'attributes':_0x3d1cb3,'isFromAdapter':_0x34b44b,'isResolvable':_0xab8e4b,'isSubmitted':_0x526b4f}),this[_0x183a65(0x165)](_0x2e9aa6);}[_0x43e45d(0xe0)]({channelId:_0x491482=Tt,threadId:_0x385a5f=_0x545b9f(),target:_0xe19307,context:_0x3257cc=null,isResolvable:_0x64117=!0x0}){const _0x2b7237=_0x43e45d;if(this[_0x2b7237(0x13f)][_0x2b7237(0x103)](_0x491482)||this[_0x2b7237(0x13f)][_0x2b7237(0x103)](void 0x0))return null;if(!_0xe19307)throw new _0x2aa787(_0x2b7237(0x17e));const _0x11f7cb=this[_0x2b7237(0x113)]({'channelId':_0x491482,'threadId':_0x385a5f,'target':_0xe19307,'context':_0x3257cc,'isResolvable':_0x64117});if(!_0x11f7cb)return null;const _0x156849=this[_0x2b7237(0x178)][_0x2b7237(0x131)](_0x11f7cb),_0x43b2be=_0x156849[_0x2b7237(0xd9)][_0x2b7237(0x183)][_0x2b7237(0xee)],_0x171529=this[_0x2b7237(0x14c)][_0x2b7237(0x149)][_0x2b7237(0x131)](_0x132b93),_0x4836e6=_0x171529[_0x2b7237(0xdf)](_0x156849[_0x2b7237(0xd9)]);return _0x171529[_0x2b7237(0x116)](_0x4836e6),_0x43b2be[_0x2b7237(0x181)](_0x2b7237(0x17a),()=>_0x43b2be[_0x2b7237(0x10a)]()),_0x11f7cb;}[_0x43e45d(0x136)](_0x4dae36){const _0x4916c8=_0x43e45d;if(_0x4916c8(0xc2)!=typeof _0x4dae36)throw new _0x2aa787(_0x4916c8(0x167));return this[_0x4916c8(0x11e)][_0x4916c8(0x103)](_0x4dae36);}[_0x43e45d(0x168)]({channelId:_0x2c262c=Tt,threadId:_0x342393,context:_0x28f138,unlinkedAt:_0x3e3528,attributes:_0x3ce47a,isFromAdapter:_0x329b67=!0x1}){const _0xa46ec2=_0x43e45d;return this[_0xa46ec2(0x18c)](bt(_0xa46ec2(0x168),_0x2c262c),{'channelId':_0x2c262c,'threadId':_0x342393,'context':_0x28f138,'unlinkedAt':_0x3e3528,'attributes':_0x3ce47a,'isFromAdapter':_0x329b67}),this[_0xa46ec2(0x165)](_0x342393);}[_0x43e45d(0x165)](_0x4f208c){const _0x153c89=_0x43e45d;if(_0x153c89(0xc2)!=typeof _0x4f208c)throw new _0x2aa787(_0x153c89(0x167));return this[_0x153c89(0x11e)][_0x153c89(0x131)](_0x4f208c);}[_0x43e45d(0x159)]({channelId:_0x9b988d,threadId:_0x4c6cbf}={}){const _0x178be8=_0x43e45d,_0x1ccb9b=this[_0x178be8(0x165)](_0x4c6cbf);if(_0x1ccb9b)return Promise[_0x178be8(0x180)](_0x1ccb9b);if(!this[_0x178be8(0x112)])return Promise[_0x178be8(0x180)](void 0x0);if(_0x178be8(0x10c)!=typeof this[_0x178be8(0x112)][_0x178be8(0x165)])throw new _0x2aa787(_0x178be8(0x11f),this[_0x178be8(0x14c)]);return this[_0x178be8(0x112)][_0x178be8(0x165)]({'channelId':_0x9b988d,'threadId':_0x4c6cbf})[_0x178be8(0x109)](_0x39d281=>this[_0x178be8(0x136)](_0x4c6cbf)?this[_0x178be8(0x165)](_0x4c6cbf):_0x39d281?this[_0x178be8(0x113)](Object[_0x178be8(0x10b)]({'isFromAdapter':!0x0,'channelId':_0x9b988d},_0x39d281)):void 0x0)[_0x178be8(0x106)](_0x268284=>{const _0x38f9b6=_0x178be8;throw console[_0x38f9b6(0x15e)](_0x268284),new _0x2aa787(_0x38f9b6(0x19a),this[_0x38f9b6(0x14c)]);});}[_0x43e45d(0xf6)]({channelId:_0x1c4746,skipNotAttached:_0x24bc24=!0x1,skipEmpty:_0x414093=!0x1,toJSON:_0x37dd08=!0x1}={}){const _0x25b148=_0x43e45d,_0xeb5050=[];for(const _0x3208ac of this[_0x25b148(0x11e)][_0x25b148(0xc0)]())_0x1c4746&&_0x3208ac[_0x25b148(0x187)]!==_0x1c4746||_0x24bc24&&!_0x3208ac[_0x25b148(0xef)]||_0x414093&&0x0===_0x3208ac[_0x25b148(0x132)]||_0xeb5050[_0x25b148(0x129)](_0x3208ac);return _0x37dd08?_0xeb5050[_0x25b148(0xb7)](_0x238d6f=>_0x238d6f[_0x25b148(0xd6)]()):_0xeb5050;}[_0x43e45d(0x139)](_0x5d6bc2){const _0x4018ea=_0x43e45d,_0x26b4c9=this[_0x4018ea(0x14c)][_0x4018ea(0x149)][_0x4018ea(0x131)](_0x132b93);if(!_0x5d6bc2)return void(this[_0x4018ea(0x101)]&&_0x26b4c9[_0x4018ea(0x15b)]());const _0x46e30d=this[_0x4018ea(0x165)](_0x5d6bc2);if(!_0x46e30d)throw new _0x2aa787(_0x4018ea(0x17c),null,{'threadId':_0x5d6bc2});if(!this[_0x4018ea(0x178)][_0x4018ea(0x103)](_0x46e30d))throw new _0x2aa787(_0x4018ea(0x18e),null,{'threadId':_0x5d6bc2});const _0x4bbbe4=_0x26b4c9[_0x4018ea(0xdf)](this[_0x4018ea(0x178)][_0x4018ea(0x131)](_0x46e30d)[_0x4018ea(0xd9)]);_0x26b4c9[_0x4018ea(0x116)](_0x4bbbe4);}[_0x43e45d(0xe3)](_0x485b9d,_0x99e64b){const _0x10bf6b=_0x43e45d;_0x485b9d?this[_0x10bf6b(0x13f)][_0x10bf6b(0x16b)](_0x99e64b):this[_0x10bf6b(0x13f)][_0x10bf6b(0x133)](_0x99e64b),this[_0x10bf6b(0x18c)](_0x10bf6b(0x13a),_0x10bf6b(0x13f),this[_0x10bf6b(0x13f)],this[_0x10bf6b(0x13f)]);}[_0x43e45d(0x145)](_0x48d0df){const _0x8ce661=_0x43e45d;return this[_0x8ce661(0x13f)][_0x8ce661(0x103)](_0x48d0df)||this[_0x8ce661(0x13f)][_0x8ce661(0x103)](void 0x0);}[_0x43e45d(0x174)](_0x15905d,_0x2ad8a9){return new _0x5ca1ba(_0x15905d,_0x2ad8a9);}[_0x43e45d(0x17d)](_0x8d9969,_0x454c1e=Tt){const _0x4112cd=_0x43e45d;this[_0x4112cd(0x10e)][_0x4112cd(0x173)](_0x454c1e,_0x8d9969),this[_0x4112cd(0x18c)](_0x4112cd(0xdb),_0x4112cd(0x10e),this[_0x4112cd(0x10e)],this[_0x4112cd(0x10e)]);}[_0x43e45d(0x166)](_0x149208=Tt){const _0x1dffd5=_0x43e45d;return this[_0x1dffd5(0x10e)][_0x1dffd5(0x103)](_0x149208)?this[_0x1dffd5(0x10e)][_0x1dffd5(0x131)](_0x149208):_t;}[_0x43e45d(0x196)]({channelId:_0x49355b,threadId:_0x195f34,comments:_0x43e7c3,unlinkedAt:_0x2d63ca,resolvedAt:_0x580e77,resolvedBy:_0x39c280,target:_0x4cd5be,context:_0x3a39a4,attributes:_0x9e05fd,isFromAdapter:_0x2c4eaa,isResolvable:_0x1261fa,isSubmitted:_0xb0f7fd}){const _0x19dcd0=_0x43e45d;if(_0x19dcd0(0xc2)!=typeof _0x195f34)throw new _0x2aa787(_0x19dcd0(0x167),null,{'threadId':_0x195f34});if(this[_0x19dcd0(0x136)](_0x195f34))throw new _0x2aa787(_0x19dcd0(0xe1),null,{'threadId':_0x195f34});const _0x3a959f=new CommentThread(this,{'channelId':_0x49355b,'id':_0x195f34,'context':_0x3a39a4,'attributes':_0x9e05fd,'unlinkedAt':_0x2d63ca,'resolvedAt':_0x580e77,'resolvedBy':_0x39c280?this[_0x19dcd0(0x14c)][_0x19dcd0(0x149)][_0x19dcd0(0x131)](_0x2d4f15)[_0x19dcd0(0x14e)](_0x39c280):null,'isResolvable':_0x1261fa,'isSubmitted':_0xb0f7fd||_0x2c4eaa});this[_0x19dcd0(0x11e)][_0x19dcd0(0x173)](_0x195f34,_0x3a959f);for(const _0x21cc13 of _0x43e7c3)_0x3a959f[_0x19dcd0(0x127)](this[_0x19dcd0(0x179)]({'threadId':_0x195f34,..._0x21cc13}));return _0x4cd5be&&_0x3a959f[_0x19dcd0(0x17f)](_0x4cd5be),_0x2c4eaa||!_0x3a959f[_0x19dcd0(0x132)]?Promise[_0x19dcd0(0x180)]():this[_0x19dcd0(0xd0)]({'channelId':_0x49355b,'threadId':_0x195f34});}[_0x43e45d(0xd0)]({channelId:_0x533b08,threadId:_0x3568b3}){const _0x586c37=_0x43e45d;if(!this[_0x586c37(0x136)](_0x3568b3))throw new _0x2aa787(_0x586c37(0x154),this);const _0x3e3b2e=this[_0x586c37(0x165)](_0x3568b3);if(_0x3e3b2e[_0x586c37(0xdd)]=!0x0,!this[_0x586c37(0x112)]||_0x586c37(0x10c)!=typeof this[_0x586c37(0x112)][_0x586c37(0x113)])return Promise[_0x586c37(0x180)]();const {id:_0x1c10e5,comments:_0x3ae955,resolvedAt:_0x2f2345,resolvedBy:_0x3827e6,context:_0x39354c,attributes:_0x429c3f}=_0x3e3b2e,_0xb4b8b4=this[_0x586c37(0x14c)][_0x586c37(0x149)][_0x586c37(0x131)](_0x586c37(0xc1)),_0x3c3516=_0xb4b8b4[_0x586c37(0x16b)](_0x36d08e(this[_0x586c37(0x14c)][_0x586c37(0xf9)],_0x586c37(0xcd)));return this[_0x586c37(0x112)][_0x586c37(0x113)]({'channelId':_0x533b08,'threadId':_0x1c10e5,'comments':_0x3ae955[_0x586c37(0xb7)](_0x4b2729=>_0x4b2729[_0x586c37(0xd6)]()),'resolvedAt':_0x2f2345,'resolvedBy':_0x3827e6?_0x3827e6['id']:_0x3827e6,'context':_0x39354c,'attributes':_0x429c3f})[_0x586c37(0x109)](({comments:_0x56964c})=>{const _0x5d8c36=_0x586c37;_0xb4b8b4[_0x5d8c36(0xce)](_0x3c3516);for(const _0x50c98 of _0x56964c)this[_0x5d8c36(0xe8)]({'channelId':_0x533b08,'threadId':_0x3568b3,'commentId':_0x50c98[_0x5d8c36(0xf1)],'createdAt':_0x50c98[_0x5d8c36(0x144)],'isFromAdapter':!0x0});})[_0x586c37(0x106)](_0x57606c=>{const _0x2280ee=_0x586c37;throw console[_0x2280ee(0x15e)](_0x57606c),new _0x2aa787(_0x2280ee(0x102),this);});}[_0x43e45d(0x12a)]({threadId:_0x5e6bbb,target:_0x3a7a28}){const _0x691133=_0x43e45d,_0x8833b6=this[_0x691133(0x165)](_0x5e6bbb);if(!_0x8833b6)throw new _0x2aa787(_0x691133(0xcc),this);const _0x4c087a=this[_0x691133(0x14c)][_0x691133(0x149)][_0x691133(0x131)](_0x691133(0xc1)),_0xd97cb4=this[_0x691133(0x14c)][_0x691133(0x149)][_0x691133(0x131)](_0x132b93),_0x2b6c9b=this[_0x691133(0x155)](_0x8833b6),_0x46980e=new _0x5ca1ba(_0x8833b6,_0x2b6c9b);let _0x34ecf7=null;_0x2b6c9b['on'](_0x691133(0x119),(_0x2391d9,_0x26168a,_0x397d60)=>{const _0x5e5980=_0x691133;_0x397d60?_0x34ecf7=_0x4c087a[_0x5e5980(0x16b)](_0x36d08e(this[_0x5e5980(0x14c)][_0x5e5980(0xf9)],_0x5e5980(0xcd))):_0x34ecf7&&(_0x4c087a[_0x5e5980(0xce)](_0x34ecf7),_0x34ecf7=null);}),this[_0x691133(0x178)][_0x691133(0x173)](_0x8833b6,_0x46980e),this[_0x691133(0x10f)][_0x691133(0x173)](_0x2b6c9b,_0x46980e);const _0x1d6b89=new _0x4569d8(this[_0x691133(0x14c)][_0x691133(0xf9)],_0x2b6c9b);_0x1d6b89[_0x691133(0xe9)](_0x691133(0x132))['to'](_0x2b6c9b),_0x1d6b89[_0x691133(0xe9)](_0x691133(0x186))['to'](_0x2b6c9b,_0x691133(0x186),_0x2b6c9b,_0x691133(0x132),(_0x9b0d27,_0x26b495)=>_0x9b0d27||!_0x26b495),_0x1d6b89[_0x691133(0xe9)](_0x691133(0x152))['to'](_0x2b6c9b),_0x1d6b89[_0x691133(0x176)]=_0x691133(0xdc);const _0xd09e6e=new _0x2575b4({'view':_0x1d6b89,'target':_0x3a7a28,'type':_0x691133(0xdc),'isVisible':!_0x8833b6[_0x691133(0xd7)]});return _0x2b6c9b['on'](_0x691133(0x164),()=>{const _0x4bf35f=_0x691133;_0xd09e6e[_0x4bf35f(0x18c)](_0x4bf35f(0x164));}),this[_0x691133(0xbe)](_0x2b6c9b,_0xd09e6e),_0xd97cb4[_0x691133(0x16b)](_0xd09e6e),_0xd09e6e;}[_0x43e45d(0xbe)](_0x196c26,_0x5927d4){const _0x484a04=_0x43e45d;this[_0x484a04(0xf8)](_0x196c26,_0x484a04(0x17a),(_0x5688b7,_0x2daba0)=>{const _0x5df566=_0x484a04,_0x548e6f=_0x2daba0['ui'][_0x5df566(0xd9)][_0x5df566(0x15d)][_0x5df566(0xe2)];_0x5927d4[_0x5df566(0xfe)][_0x5df566(0x16b)](_0x548e6f),this[_0x5df566(0x14c)]instanceof _0x17f7a1&&this[_0x5df566(0x14c)]['ui'][_0x5df566(0x142)][_0x5df566(0x16b)](_0x548e6f);},{'priority':_0x484a04(0x11b)}),this[_0x484a04(0xf8)](_0x196c26,_0x484a04(0x143),(_0x3adae1,_0x1081b4)=>{const _0x5f51d7=_0x484a04,_0x3a8068=_0x1081b4['ui'][_0x5f51d7(0xd9)][_0x5f51d7(0x15d)][_0x5f51d7(0xe2)];_0x5927d4[_0x5f51d7(0xfe)][_0x5f51d7(0x103)](_0x3a8068)&&_0x5927d4[_0x5f51d7(0xfe)][_0x5f51d7(0xce)](_0x3a8068),this[_0x5f51d7(0x14c)]instanceof _0x17f7a1&&this[_0x5f51d7(0x14c)]['ui'][_0x5f51d7(0x142)][_0x5f51d7(0xce)](_0x3a8068);});}[_0x43e45d(0x111)](_0x45219d){const _0x16e5e2=_0x43e45d;this[_0x16e5e2(0x141)](_0x45219d,_0x16e5e2(0x17a)),this[_0x16e5e2(0x141)](_0x45219d,_0x16e5e2(0x143));}[_0x43e45d(0x155)](_0x4bed81){const _0x11291e=_0x43e45d,_0x476e09=this[_0x11291e(0x14c)][_0x11291e(0x149)][_0x11291e(0x131)](_0x2d4f15),{config:_0x4f0c1a,locale:_0x55c2ea}=this[_0x11291e(0x14c)],_0x1506b3=_0x596005(_0x4f0c1a[_0x11291e(0x131)](_0x11291e(0xf9)));return new(0x0,(_0x4f0c1a[_0x11291e(0x131)](_0x11291e(0x177)))[(_0x11291e(0x193))])(_0x55c2ea,_0x4bed81,_0x476e09['me'],{'editorConfig':{..._0x4f0c1a[_0x11291e(0x131)](_0x11291e(0x105)),'licenseKey':this[_0x11291e(0x14c)][_0x11291e(0xba)][_0x11291e(0x131)](_0x11291e(0x135))},'copyMarkers':_0x4f0c1a[_0x11291e(0x131)](_0x11291e(0x14d)),'maxCommentsWhenCollapsed':_0x4f0c1a[_0x11291e(0x131)](_0x11291e(0xf5)),'maxThreadTotalWeight':_0x4f0c1a[_0x11291e(0x131)](_0x11291e(0xed)),'maxCommentCharsWhenCollapsed':_0x4f0c1a[_0x11291e(0x131)](_0x11291e(0xc5)),'formatDateTime':_0x1506b3,'CommentView':_0x4f0c1a[_0x11291e(0x131)](_0x11291e(0x177))[_0x11291e(0x125)]});}[_0x43e45d(0x13e)]({threadId:_0xd79729,channelId:_0x5b719b,resolvedAt:_0x495249,resolvedBy:_0xca331c,isFromAdapter:_0x44d175}){const _0x518526=_0x43e45d;if(!this[_0x518526(0x136)](_0xd79729))throw new _0x2aa787(_0x518526(0x154),null,{'threadId':_0xd79729});const _0x420a78=this[_0x518526(0x165)](_0xd79729);if(_0x420a78[_0x518526(0xc6)])throw new _0x2aa787(_0x518526(0x198),null,{'threadId':_0xd79729});const _0x105a8c=this[_0x518526(0x14c)][_0x518526(0x149)][_0x518526(0x131)](_0x2d4f15);if(_0x420a78[_0x518526(0x114)]=_0x105a8c[_0x518526(0x14e)](_0xca331c),_0x420a78[_0x518526(0x172)]=_0x495249,_0x44d175||!this[_0x518526(0x112)]||_0x518526(0x10c)!=typeof this[_0x518526(0x112)][_0x518526(0xd4)])return Promise[_0x518526(0x180)]();const _0x4c0182=this[_0x518526(0x14c)][_0x518526(0x149)][_0x518526(0x131)](_0x518526(0xc1)),_0x18f4b4=_0x4c0182[_0x518526(0x16b)](_0x36d08e(this[_0x518526(0x14c)][_0x518526(0xf9)],_0x518526(0xcd)));return this[_0x518526(0x112)][_0x518526(0xd4)]({'channelId':_0x5b719b,'threadId':_0xd79729})[_0x518526(0x109)](({resolvedAt:_0x325262,resolvedBy:_0x587855})=>{const _0x57cdbc=_0x518526;_0x4c0182[_0x57cdbc(0xce)](_0x18f4b4),_0x420a78[_0x57cdbc(0x114)]['id']!==_0x587855&&(_0x420a78[_0x57cdbc(0x114)]=_0x105a8c[_0x57cdbc(0x14e)](_0x587855)),_0x420a78[_0x57cdbc(0x172)]=_0x325262;})[_0x518526(0x106)](_0x4ab97a=>{const _0x3bc0ec=_0x518526;throw console[_0x3bc0ec(0x15e)](_0x4ab97a),new _0x2aa787(_0x3bc0ec(0x146),this);});}[_0x43e45d(0x12b)]({threadId:_0x331ea3,channelId:_0x426a47,isFromAdapter:_0x12bba3}){const _0x17c3c1=_0x43e45d;if(!this[_0x17c3c1(0x136)](_0x331ea3))throw new _0x2aa787(_0x17c3c1(0x154),null,{'threadId':_0x331ea3});const _0x520e11=this[_0x17c3c1(0x165)](_0x331ea3);if(!_0x520e11[_0x17c3c1(0xc6)])throw new _0x2aa787(_0x17c3c1(0x115),null,{'threadId':_0x331ea3});if(_0x520e11[_0x17c3c1(0x114)]=null,_0x520e11[_0x17c3c1(0x172)]=null,_0x12bba3||!this[_0x17c3c1(0x112)]||_0x17c3c1(0x10c)!=typeof this[_0x17c3c1(0x112)][_0x17c3c1(0x110)])return Promise[_0x17c3c1(0x180)]();const _0x410ccd=this[_0x17c3c1(0x14c)][_0x17c3c1(0x149)][_0x17c3c1(0x131)](_0x17c3c1(0xc1)),_0x5a0d89=_0x410ccd[_0x17c3c1(0x16b)](_0x36d08e(this[_0x17c3c1(0x14c)][_0x17c3c1(0xf9)],_0x17c3c1(0xcd)));return this[_0x17c3c1(0x112)][_0x17c3c1(0x110)]({'channelId':_0x426a47,'threadId':_0x331ea3})[_0x17c3c1(0x109)](()=>_0x410ccd[_0x17c3c1(0xce)](_0x5a0d89))[_0x17c3c1(0x106)](_0x48b624=>{const _0x580040=_0x17c3c1;throw console[_0x580040(0x15e)](_0x48b624),new _0x2aa787(_0x580040(0x15a),this);});}[_0x43e45d(0x190)]({threadId:_0x1a68d1,isFromAdapter:_0x459815}){const _0x3cfc2f=_0x43e45d,_0x2ecb8b=this[_0x3cfc2f(0x165)](_0x1a68d1);if(!_0x2ecb8b)throw new _0x2aa787(_0x3cfc2f(0x185),this);if(this[_0x3cfc2f(0xec)](_0x1a68d1),this[_0x3cfc2f(0x11e)][_0x3cfc2f(0x133)](_0x1a68d1),!_0x2ecb8b[_0x3cfc2f(0xda)]||_0x459815||!this[_0x3cfc2f(0x112)]||_0x3cfc2f(0x10c)!=typeof this[_0x3cfc2f(0x112)][_0x3cfc2f(0x130)])return Promise[_0x3cfc2f(0x180)]();const _0x1539ba=this[_0x3cfc2f(0x14c)][_0x3cfc2f(0x149)][_0x3cfc2f(0x131)](_0x3cfc2f(0xc1)),{channelId:_0x859dc3}=_0x2ecb8b,_0x48483f=_0x1539ba[_0x3cfc2f(0x16b)](_0x36d08e(this[_0x3cfc2f(0x14c)][_0x3cfc2f(0xf9)],_0x3cfc2f(0xcd)));return this[_0x3cfc2f(0x112)][_0x3cfc2f(0x130)]({'channelId':_0x859dc3,'threadId':_0x1a68d1})[_0x3cfc2f(0x109)](()=>_0x1539ba[_0x3cfc2f(0xce)](_0x48483f))[_0x3cfc2f(0x106)](_0x14e68d=>{const _0x115ab4=_0x3cfc2f;throw console[_0x115ab4(0x15e)](_0x14e68d),new _0x2aa787(_0x115ab4(0xc9),this);});}[_0x43e45d(0xb6)]({threadId:_0x3434f0,unlinkedAt:_0x59e116,context:_0x2996ae,attributes:_0x597ff0,isFromAdapter:_0x3ec2f2}){const _0x71b881=_0x43e45d;if(_0x71b881(0xc2)!=typeof _0x3434f0)throw new _0x2aa787(_0x71b881(0x167),null,{'threadId':_0x3434f0});if(!this[_0x71b881(0x136)](_0x3434f0))throw new _0x2aa787(_0x71b881(0x154),null,{'threadId':_0x3434f0});const _0x2c01e1=this[_0x71b881(0x165)](_0x3434f0);let _0x53bba7=!0x1;if(void 0x0!==_0x2996ae&&_0x2c01e1[_0x71b881(0x14c)]!==_0x2996ae&&(_0x2c01e1[_0x71b881(0x14c)]=_0x2996ae,_0x53bba7=!0x0),void 0x0!==_0x59e116&&_0x2c01e1[_0x71b881(0x16c)]!==_0x59e116&&(_0x2c01e1[_0x71b881(0x16c)]=_0x59e116,_0x53bba7=!0x0),_0x597ff0&&!_0x5ab1d6(_0x597ff0,_0x2c01e1[_0x71b881(0x150)])&&(_0x2c01e1[_0x71b881(0x150)]=_0x597ff0,_0x53bba7=!0x0),!_0x53bba7)return Promise[_0x71b881(0x180)]();if(!_0x2c01e1[_0x71b881(0xda)]||_0x3ec2f2||!this[_0x71b881(0x112)]||_0x71b881(0x10c)!=typeof this[_0x71b881(0x112)][_0x71b881(0x168)])return Promise[_0x71b881(0x180)]();const _0x44c181=this[_0x71b881(0x14c)][_0x71b881(0x149)][_0x71b881(0x131)](_0x71b881(0xc1)),{channelId:_0x50112b}=_0x2c01e1,_0x22a0c1=_0x44c181[_0x71b881(0x16b)](_0x36d08e(this[_0x71b881(0x14c)][_0x71b881(0xf9)],_0x71b881(0xcd)));return this[_0x71b881(0x112)][_0x71b881(0x168)]({'channelId':_0x50112b,'threadId':_0x3434f0,'context':_0x2996ae,'unlinkedAt':_0x59e116,'attributes':_0x597ff0})[_0x71b881(0x109)](()=>_0x44c181[_0x71b881(0xce)](_0x22a0c1))[_0x71b881(0x106)](_0x921963=>{const _0x39c188=_0x71b881;throw console[_0x39c188(0x15e)](_0x921963),new _0x2aa787(_0x39c188(0x107),this);});}[_0x43e45d(0xec)](_0x6db779){const _0x4b894b=_0x43e45d,_0xbc0f90=this[_0x4b894b(0x14c)][_0x4b894b(0x149)][_0x4b894b(0x131)](_0x132b93),_0x1c2f05=this[_0x4b894b(0x165)](_0x6db779);if(_0x1c2f05[_0x4b894b(0x162)]=!0x1,this[_0x4b894b(0x178)][_0x4b894b(0x103)](_0x1c2f05)){const _0x344a96=this[_0x4b894b(0x178)][_0x4b894b(0x131)](_0x1c2f05),_0x3de7b2=_0x344a96[_0x4b894b(0xd9)],_0x3b254b=_0xbc0f90[_0x4b894b(0xdf)](_0x3de7b2);this[_0x4b894b(0x178)][_0x4b894b(0x133)](_0x1c2f05),this[_0x4b894b(0x10f)][_0x4b894b(0x133)](_0x3de7b2),_0x3b254b&&_0xbc0f90[_0x4b894b(0xce)](_0x3b254b),_0x344a96[_0x4b894b(0x15f)](),_0x3de7b2[_0x4b894b(0x15f)]()[_0x4b894b(0x109)](()=>{const _0x342e51=_0x4b894b;this[_0x342e51(0x111)](_0x3de7b2);});}}[_0x43e45d(0x171)]({threadId:_0x4a2eec,resolvedAt:_0x1f400b,unlinkedAt:_0x1728a9}){const _0x2214ef=_0x43e45d,_0x385db0=!!_0x1f400b,_0x40e3df=this[_0x2214ef(0x14c)][_0x2214ef(0x149)][_0x2214ef(0x131)](_0x132b93),_0x9638=this[_0x2214ef(0x165)](_0x4a2eec);if(this[_0x2214ef(0x178)][_0x2214ef(0x103)](_0x9638)){const _0x2a9bdf=this[_0x2214ef(0x178)][_0x2214ef(0x131)](_0x9638)[_0x2214ef(0xd9)],_0x199626=_0x40e3df[_0x2214ef(0xdf)](_0x2a9bdf);_0x199626&&(_0x385db0&&_0x40e3df[_0x2214ef(0x18a)](_0x199626),_0x1728a9?_0x199626[_0x2214ef(0x15c)]=!0x1:_0x199626[_0x2214ef(0x140)]());}}[_0x43e45d(0x147)](_0x4261d4){const _0x218cc7=_0x43e45d,_0x2e2dd9=this[_0x218cc7(0x14c)][_0x218cc7(0x149)][_0x218cc7(0x131)](_0x2d4f15),_0x16f644=_0x18fe46(_0x218cc7(0xf0)+_0x4261d4),_0x5397f3=_0x2e2dd9[_0x218cc7(0x14e)](_0x16f644);return _0x5397f3||_0x2e2dd9[_0x218cc7(0x108)]({'id':_0x16f644,'name':_0x4261d4});}[_0x43e45d(0x179)]({threadId:_0x46d3f0,commentId:_0x43e943=_0x545b9f(),content:_0x1a4763,authorId:_0x5d36e9,createdAt:_0x5a9727,attributes:_0x17997b}){const _0x187c07=_0x43e45d;if(_0x187c07(0xc2)!=typeof _0x43e943)throw new _0x2aa787(_0x187c07(0x12c));if(_0x187c07(0xc2)!=typeof _0x5d36e9)throw new _0x2aa787(_0x187c07(0x118));if(_0x187c07(0xc2)!=typeof _0x1a4763||!_0x1a4763[_0x187c07(0xb5)]())throw new _0x2aa787(_0x187c07(0x17b));const _0x23b974=this[_0x187c07(0x14c)][_0x187c07(0x149)][_0x187c07(0x131)](_0x2d4f15)[_0x187c07(0x14e)](_0x5d36e9);if(!_0x23b974)throw new _0x2aa787(_0x187c07(0x157),null,{'authorId':_0x5d36e9});let _0x1e243d=null,_0x1e8871=_0x5a9727;return _0x17997b&&_0x17997b[_0x187c07(0x12f)]&&(_0x1e243d=this[_0x187c07(0x147)](_0x17997b[_0x187c07(0x12f)][_0x187c07(0xb8)]),_0x1e8871=new Date(_0x17997b[_0x187c07(0x12f)][_0x187c07(0x144)])),new Comment(this,{'threadId':_0x46d3f0,'id':_0x43e943,'author':_0x1e243d||_0x23b974,'creator':_0x23b974,'content':_0x1a4763,'createdAt':_0x5a9727,'authoredAt':_0x1e8871,'attributes':_0x17997b});}[_0x43e45d(0x16a)](_0x28536a){const _0x21d362=_0x43e45d;let {threadId:_0x103b5d,content:_0x14675e,attributes:_0x4b92a0,isFromAdapter:_0x232e9e}=_0x28536a;const _0x14f7a3=this[_0x21d362(0x165)](_0x28536a[_0x21d362(0x128)]);if(!_0x14f7a3)throw new _0x2aa787(_0x21d362(0xb9),this);const _0x5319c6=this[_0x21d362(0x179)](_0x28536a),{id:_0x334909}=_0x5319c6;if(_0x14f7a3[_0x21d362(0x127)](_0x5319c6),_0x232e9e||!this[_0x21d362(0x112)]||_0x21d362(0x10c)!=typeof this[_0x21d362(0x112)][_0x21d362(0x14a)]||!_0x14f7a3[_0x21d362(0xda)])return Promise[_0x21d362(0x180)]();const _0x538e07=this[_0x21d362(0x14c)][_0x21d362(0x149)][_0x21d362(0x131)](_0x21d362(0xc1)),{channelId:_0x1e8b9d}=_0x14f7a3,_0x364aaf=_0x538e07[_0x21d362(0x16b)](_0x36d08e(this[_0x21d362(0x14c)][_0x21d362(0xf9)],_0x21d362(0xcd)));return _0x4b92a0||(_0x4b92a0={}),this[_0x21d362(0x112)][_0x21d362(0x14a)]({'channelId':_0x1e8b9d,'threadId':_0x103b5d,'commentId':_0x334909,'content':_0x14675e,'attributes':_0x4b92a0})[_0x21d362(0x109)](_0x96b2a4=>{const _0x1cc5a7=_0x21d362;_0x538e07[_0x1cc5a7(0xce)](_0x364aaf),_0x96b2a4&&this[_0x1cc5a7(0xe8)]({'channelId':_0x1e8b9d,'threadId':_0x103b5d,'commentId':_0x334909,'createdAt':_0x96b2a4[_0x1cc5a7(0x144)],'isFromAdapter':!0x0});})[_0x21d362(0x106)](_0x55cd0c=>{const _0x313a72=_0x21d362;throw console[_0x313a72(0x15e)](_0x55cd0c),new _0x2aa787(_0x313a72(0x137),this);});}[_0x43e45d(0xe8)]({threadId:_0x1cd2d8,commentId:_0x53f932,content:_0x5de75a,createdAt:_0x29adc9,attributes:_0x435885,isFromAdapter:_0x3a5e3f}){const _0x48255a=_0x43e45d;if(void 0x0!==_0x5de75a&&(_0x48255a(0xc2)!=typeof _0x5de75a||!_0x5de75a[_0x48255a(0xb5)]()[_0x48255a(0x132)]))throw new _0x2aa787(_0x48255a(0xea));const _0x33844c=this[_0x48255a(0x165)](_0x1cd2d8),_0x920636=_0x33844c[_0x48255a(0xe5)](_0x53f932);if(!_0x920636)throw new _0x2aa787(_0x48255a(0x18b),this);let _0x45235d=!0x1;if(_0x5de75a&&_0x5de75a!==_0x920636[_0x48255a(0xf7)]&&(_0x920636[_0x48255a(0x121)]||_0x3a5e3f)&&(_0x920636[_0x48255a(0xf7)]=_0x5de75a,_0x45235d=!0x0),_0x29adc9&&_0x29adc9!==_0x920636[_0x48255a(0x144)]&&(_0x920636[_0x48255a(0x144)]=_0x29adc9,_0x920636[_0x48255a(0x150)]&&_0x920636[_0x48255a(0x150)][_0x48255a(0x12f)]||(_0x920636[_0x48255a(0xfd)]=_0x29adc9),_0x45235d=!0x0),_0x435885&&!_0x5ab1d6(_0x435885,_0x920636[_0x48255a(0x150)])&&(_0x920636[_0x48255a(0x150)]=_0x435885,_0x45235d=!0x0),!_0x45235d)return Promise[_0x48255a(0x180)]();if(_0x33844c[_0x48255a(0x18c)](_0x48255a(0x175)),_0x3a5e3f||!this[_0x48255a(0x112)]||_0x48255a(0x10c)!=typeof this[_0x48255a(0x112)][_0x48255a(0xbc)])return Promise[_0x48255a(0x180)]();const _0x3adf42=this[_0x48255a(0x14c)][_0x48255a(0x149)][_0x48255a(0x131)](_0x48255a(0xc1)),{channelId:_0x2d6231}=this[_0x48255a(0x165)](_0x920636[_0x48255a(0x128)]),_0x2d797c=_0x3adf42[_0x48255a(0x16b)](_0x36d08e(this[_0x48255a(0x14c)][_0x48255a(0xf9)],_0x48255a(0xcd)));return this[_0x48255a(0x112)][_0x48255a(0xbc)]({'channelId':_0x2d6231,'threadId':_0x1cd2d8,'commentId':_0x53f932,'content':_0x5de75a,'attributes':_0x435885})[_0x48255a(0x109)](()=>_0x3adf42[_0x48255a(0xce)](_0x2d797c))[_0x48255a(0x106)](_0x24bd66=>{const _0x42cedb=_0x48255a;throw console[_0x42cedb(0x15e)](_0x24bd66),new _0x2aa787(_0x42cedb(0xf3),this);});}[_0x43e45d(0x188)]({threadId:_0x5301cc,commentId:_0x2c04ff,isFromAdapter:_0x477e89}){const _0x3fd9e7=_0x43e45d,_0x476713=this[_0x3fd9e7(0x165)](_0x5301cc),_0x292483=_0x476713[_0x3fd9e7(0xe5)](_0x2c04ff);if(!_0x292483)throw new _0x2aa787(_0x3fd9e7(0x169),this);if(_0x476713[_0x3fd9e7(0xd2)](_0x292483),_0x477e89||!this[_0x3fd9e7(0x112)]||_0x3fd9e7(0x10c)!=typeof this[_0x3fd9e7(0x112)][_0x3fd9e7(0xe4)])return Promise[_0x3fd9e7(0x180)]();const _0x515330=this[_0x3fd9e7(0x14c)][_0x3fd9e7(0x149)][_0x3fd9e7(0x131)](_0x3fd9e7(0xc1)),{channelId:_0xd72ec6}=_0x476713,_0x492973=_0x515330[_0x3fd9e7(0x16b)](_0x36d08e(this[_0x3fd9e7(0x14c)][_0x3fd9e7(0xf9)],_0x3fd9e7(0xcd)));return this[_0x3fd9e7(0x112)][_0x3fd9e7(0xe4)]({'channelId':_0xd72ec6,'threadId':_0x5301cc,'commentId':_0x2c04ff})[_0x3fd9e7(0x109)](()=>_0x515330[_0x3fd9e7(0xce)](_0x492973))[_0x3fd9e7(0x106)](_0x30f6f3=>{const _0x53a553=_0x3fd9e7;throw console[_0x53a553(0x15e)](_0x30f6f3),new _0x2aa787(_0x53a553(0x104),this);});}}export class CommentThread extends/* #__PURE__ -- */
_0x434787(){constructor(_0x66781f,_0x568d24){const _0x1af7dc=_0x43e45d;super();const _0x7660f0=_0x568d24[_0x1af7dc(0x13c)];this[_0x1af7dc(0x187)]=_0x568d24[_0x1af7dc(0x187)],this['id']=_0x568d24['id'],this[_0x1af7dc(0x177)]=new _0x59e28d(),this[_0x1af7dc(0x117)]=_0x66781f,this[_0x1af7dc(0x162)]=!0x1,this[_0x1af7dc(0xdd)]=_0x568d24[_0x1af7dc(0xda)],this[_0x1af7dc(0x173)](_0x1af7dc(0x124),!0x0),this[_0x1af7dc(0xe9)](_0x1af7dc(0x145))['to'](_0x66781f,_0x1af7dc(0x10e),_0x66781f,_0x1af7dc(0x13f),()=>_0x66781f[_0x1af7dc(0x145)](this[_0x1af7dc(0x187)])),this[_0x1af7dc(0xe9)](_0x1af7dc(0xca))['to'](_0x66781f,_0x1af7dc(0x10e),()=>_0x66781f[_0x1af7dc(0x166)](this[_0x1af7dc(0x187)])[_0x1af7dc(0x160)]),this[_0x1af7dc(0xe9)](_0x1af7dc(0x11a))['to'](_0x66781f,_0x1af7dc(0x10e),()=>{const _0x2aacd5=_0x1af7dc,_0x1656b8=_0x66781f[_0x2aacd5(0x166)](this[_0x2aacd5(0x187)]);return _0x1656b8[_0x2aacd5(0x192)]||_0x1656b8[_0x2aacd5(0x160)];}),this[_0x1af7dc(0xe9)](_0x1af7dc(0x13c))['to'](_0x66781f,_0x1af7dc(0x10e),()=>_0x7660f0&&_0x66781f[_0x1af7dc(0x166)](this[_0x1af7dc(0x187)])[_0x1af7dc(0x180)]),this[_0x1af7dc(0x173)](_0x1af7dc(0x14c),_0x568d24[_0x1af7dc(0x14c)]),this[_0x1af7dc(0xe9)](_0x1af7dc(0xd7))['to'](this,_0x1af7dc(0x172),this,_0x1af7dc(0x16c),(_0x524141,_0x27a586)=>_0x524141?_0x27a586?_0x524141<_0x27a586?_0x524141:_0x27a586:_0x524141:_0x27a586),this[_0x1af7dc(0x173)](_0x1af7dc(0x16c),_0x568d24[_0x1af7dc(0x16c)]||null),this[_0x1af7dc(0x173)](_0x1af7dc(0x172),_0x568d24[_0x1af7dc(0x172)]||null),this[_0x1af7dc(0x173)](_0x1af7dc(0x114),_0x568d24[_0x1af7dc(0x114)]||null),this[_0x1af7dc(0xe9)](_0x1af7dc(0xc6))['to'](this,_0x1af7dc(0x172),_0x396351=>!!_0x396351),this[_0x1af7dc(0x173)](_0x1af7dc(0x150),_0x568d24[_0x1af7dc(0x150)]||{});}get[_0x43e45d(0x120)](){const _0x512828=_0x43e45d;return Array[_0x512828(0x182)](this[_0x512828(0x177)])[_0x512828(0xc4)]((_0x2f3138,_0x4e7238)=>_0x2f3138+_0x4e7238[_0x512828(0x120)],0x0);}get[_0x43e45d(0x132)](){const _0x3abd0f=_0x43e45d;return this[_0x3abd0f(0x177)][_0x3abd0f(0x132)];}get[_0x43e45d(0xef)](){const _0x3d423c=_0x43e45d;return this[_0x3d423c(0x162)];}get[_0x43e45d(0xda)](){const _0xf5f965=_0x43e45d;return this[_0xf5f965(0xdd)];}[_0x43e45d(0x14f)](){const _0x316907=_0x43e45d,{channelId:_0x1f7215,id:_0x304a11}=this;this[_0x316907(0x117)][_0x316907(0x18c)](bt(_0x316907(0x189),_0x1f7215),{'channelId':_0x1f7215,'threadId':_0x304a11});}[_0x43e45d(0x199)](_0x3a3c08){const _0x108598=_0x43e45d;this[_0x108598(0x16f)]({'unlinkedAt':_0x3a3c08});}[_0x43e45d(0x180)]({resolvedAt:_0x1b5e52=new Date(),resolvedBy:_0x28cfa4=null,isFromAdapter:_0x1f7f7b=!0x1}={}){const _0x28287d=_0x43e45d,_0x2021b7=this[_0x28287d(0x117)][_0x28287d(0x14c)][_0x28287d(0x149)][_0x28287d(0x131)](_0x2d4f15)['me'],{channelId:_0x4eb1ea,id:_0x58dcde}=this;this[_0x28287d(0x117)][_0x28287d(0x18c)](bt(_0x28287d(0xd4),_0x4eb1ea),{'channelId':_0x4eb1ea,'threadId':_0x58dcde,'resolvedAt':_0x1b5e52,'resolvedBy':_0x28cfa4||_0x2021b7['id'],'isFromAdapter':_0x1f7f7b});}[_0x43e45d(0x13b)]({isFromAdapter:_0x55cfab=!0x1}={}){const _0x16166c=_0x43e45d,{channelId:_0x5d3edb,id:_0x21dc89}=this;this[_0x16166c(0x117)][_0x16166c(0x18c)](bt(_0x16166c(0x110),_0x5d3edb),{'channelId':_0x5d3edb,'threadId':_0x21dc89,'isFromAdapter':_0x55cfab});}[_0x43e45d(0xcb)](_0x2e0d11){const _0x302b8a=_0x43e45d;this[_0x302b8a(0x14c)]||this[_0x302b8a(0x16f)]({'context':_0x2e0d11});}[_0x43e45d(0x197)](_0x5ef19e,_0x497170){const _0xe68416=_0x43e45d,_0x591ae1=_0x2051f8(this[_0xe68416(0x150)]);_0x153a17(_0x591ae1,_0x5ef19e,_0x497170),this[_0xe68416(0x16f)]({'attributes':_0x591ae1});}[_0x43e45d(0xde)](_0x6b7628){const _0x24466e=_0x43e45d,_0x49530a=_0x2051f8(this[_0x24466e(0x150)]);_0x270c9a(_0x49530a,_0x6b7628),this[_0x24466e(0x16f)]({'attributes':_0x49530a});}[_0x43e45d(0xce)]({isFromAdapter:_0x2a8eb1=!0x1}={}){const _0x48106e=_0x43e45d,{channelId:_0x5851cc,id:_0x13e86a}=this;this[_0x48106e(0x117)][_0x48106e(0x18c)](bt(_0x48106e(0x130),_0x5851cc),{'channelId':_0x5851cc,'threadId':_0x13e86a,'isFromAdapter':_0x2a8eb1});}[_0x43e45d(0x17f)](_0x45998a){const _0x1f4fad=_0x43e45d;return this[_0x1f4fad(0x117)][_0x1f4fad(0x12a)]({'threadId':this['id'],'target':_0x45998a});}[_0x43e45d(0x14a)](_0x15ff7c){const _0x405a1b=_0x43e45d,{channelId:_0x5d1336,id:_0x1f4d5e}=this;this[_0x405a1b(0x117)][_0x405a1b(0x18c)](bt(_0x405a1b(0x14a),_0x5d1336,_0x1f4d5e),Object[_0x405a1b(0x10b)]({'channelId':_0x5d1336,'threadId':_0x1f4d5e},_0x15ff7c));}[_0x43e45d(0xe5)](_0x358406){const _0x5556d6=_0x43e45d;if(_0x5556d6(0xc2)!=typeof _0x358406)throw new _0x2aa787(_0x5556d6(0x18d),null,{'commentId':_0x358406});return this[_0x5556d6(0x177)][_0x5556d6(0x131)](_0x358406);}[_0x43e45d(0xd6)](){const _0x391e9a=_0x43e45d;return{'threadId':this['id'],'context':this[_0x391e9a(0x14c)],'unlinkedAt':this[_0x391e9a(0x16c)],'resolvedAt':this[_0x391e9a(0x172)],'resolvedBy':this[_0x391e9a(0x114)]?this[_0x391e9a(0x114)]['id']:null,'archivedAt':this[_0x391e9a(0xd7)],'comments':this[_0x391e9a(0x177)][_0x391e9a(0xb7)](_0x2548d6=>_0x2548d6[_0x391e9a(0xd6)]()),'attributes':this[_0x391e9a(0x150)]};}[_0x43e45d(0x127)](_0xe65286){const _0xc03b34=_0x43e45d;return this[_0xc03b34(0xf8)](_0xe65286,_0xc03b34(0x161),()=>{const _0x1731cd=_0xc03b34,_0x1718c2=this[_0x1731cd(0xc8)](_0xe65286),_0x1ea25c=this[_0x1731cd(0x177)];_0x1718c2-0x1!=_0x1ea25c[_0x1731cd(0x100)](_0xe65286)&&_0x1718c2+0x1!=_0x1ea25c[_0x1731cd(0x100)](_0xe65286)&&(this[_0x1731cd(0xd2)](_0xe65286),this[_0x1731cd(0x127)](_0xe65286));}),this[_0xc03b34(0x177)][_0xc03b34(0x16b)](_0xe65286,this[_0xc03b34(0xc8)](_0xe65286));}[_0x43e45d(0x16f)](_0x548f4a){const _0x263d0e=_0x43e45d,{channelId:_0xf4c93c,id:_0x5737d3}=this;this[_0x263d0e(0x117)][_0x263d0e(0x18c)](bt(_0x263d0e(0x168),_0xf4c93c),{..._0x548f4a,'channelId':_0xf4c93c,'threadId':_0x5737d3});}[_0x43e45d(0xd2)](_0x41d41c){const _0x3ec700=_0x43e45d;return this[_0x3ec700(0x141)](_0x41d41c),_0x41d41c[_0x3ec700(0x15f)](),this[_0x3ec700(0x177)][_0x3ec700(0xce)](_0x41d41c);}[_0x43e45d(0xc8)](_0x51bbd7){const _0x37ad24=_0x43e45d,_0x3844ee=this[_0x37ad24(0x177)][_0x37ad24(0x14b)](_0x55f3ba=>new Date(_0x55f3ba[_0x37ad24(0xfd)])[_0x37ad24(0x11d)]()>new Date(_0x51bbd7[_0x37ad24(0xfd)])[_0x37ad24(0x11d)]());return _0x3844ee?this[_0x37ad24(0x177)][_0x37ad24(0x100)](_0x3844ee):this[_0x37ad24(0x132)];}}export class Comment extends/* #__PURE__ -- */
_0x434787(){constructor(_0x51c3d3,_0x11fd86){const _0x32bd9a=_0x43e45d;super();const _0x4224bb=_0x51c3d3[_0x32bd9a(0x14c)][_0x32bd9a(0x149)][_0x32bd9a(0x131)](_0x2d4f15)['me'],_0x5941c1=_0x51c3d3[_0x32bd9a(0x165)](_0x11fd86[_0x32bd9a(0x128)]),_0x2aa848=0x0===_0x5941c1[_0x32bd9a(0x177)][_0x32bd9a(0x132)],_0x219454=_0x4224bb===_0x11fd86[_0x32bd9a(0x126)];this['id']=_0x11fd86['id'],this[_0x32bd9a(0x128)]=_0x11fd86[_0x32bd9a(0x128)],this[_0x32bd9a(0x126)]=_0x11fd86[_0x32bd9a(0x126)],this[_0x32bd9a(0x191)]=_0x11fd86[_0x32bd9a(0x191)],this[_0x32bd9a(0x194)]=Boolean(_0x11fd86[_0x32bd9a(0x150)]&&_0x11fd86[_0x32bd9a(0x150)][_0x32bd9a(0x12f)]),this[_0x32bd9a(0x173)](_0x32bd9a(0xf7),_0x11fd86[_0x32bd9a(0xf7)]),this[_0x32bd9a(0x144)]=_0x11fd86[_0x32bd9a(0x144)]||new Date(),this[_0x32bd9a(0x173)](_0x32bd9a(0xfd),_0x11fd86[_0x32bd9a(0xfd)]||new Date()),this[_0x32bd9a(0xe9)](_0x32bd9a(0x172))['to'](_0x5941c1,_0x32bd9a(0x172)),this[_0x32bd9a(0x173)](_0x32bd9a(0x150),_0x11fd86[_0x32bd9a(0x150)]||{}),this[_0x32bd9a(0xe9)](_0x32bd9a(0x121))['to'](_0x51c3d3,_0x32bd9a(0x10e),()=>{const _0x5e3df7=_0x32bd9a,_0x4504dd=_0x51c3d3[_0x5e3df7(0x166)](_0x5941c1[_0x5e3df7(0x187)])[_0x5e3df7(0x192)],_0x5216c4=_0x51c3d3[_0x5e3df7(0x166)](_0x5941c1[_0x5e3df7(0x187)])[_0x5e3df7(0x12e)];return _0x219454&&_0x4504dd||!_0x219454&&_0x5216c4;}),this[_0x32bd9a(0xe9)](_0x32bd9a(0xca))['to'](_0x5941c1,_0x32bd9a(0xca),_0x51c3d3,_0x32bd9a(0x10e),_0x27cb2f=>{const _0x5304d3=_0x32bd9a,_0x30d577=_0x51c3d3[_0x5304d3(0x166)](_0x5941c1[_0x5304d3(0x187)])[_0x5304d3(0x192)],_0x397168=_0x51c3d3[_0x5304d3(0x166)](_0x5941c1[_0x5304d3(0x187)])[_0x5304d3(0x12e)];return _0x219454&&_0x30d577||_0x27cb2f&&_0x2aa848||!_0x219454&&_0x397168&&!_0x2aa848;}),this[_0x32bd9a(0xe9)](_0x32bd9a(0x145))['to'](_0x5941c1,_0x32bd9a(0x145)),this[_0x32bd9a(0x117)]=_0x51c3d3;}get[_0x43e45d(0x120)](){const _0x3a3189=_0x43e45d;return Math[_0x3a3189(0x151)](function(_0x2f3fb1){const _0x238cb4=_0x3a3189,_0x856359=document[_0x238cb4(0xfa)](_0x238cb4(0xf2));return _0x856359[_0x238cb4(0xe6)]=_0x2f3fb1,_0x856359[_0x238cb4(0x195)][_0x238cb4(0x132)];}(this[_0x3a3189(0xf7)]),0xc8);}[_0x43e45d(0x138)](_0x525e67){const _0x202cda=_0x43e45d,{threadId:_0x30d2d5,id:_0x34a5d5}=this;if(!this[_0x202cda(0x117)][_0x202cda(0x136)](_0x30d2d5))throw new _0x2aa787(_0x202cda(0x123),this);const {channelId:_0xd24140}=this[_0x202cda(0x117)][_0x202cda(0x165)](_0x30d2d5);this[_0x202cda(0x117)][_0x202cda(0x18c)](bt(_0x202cda(0xbc),_0xd24140,_0x30d2d5),{'channelId':_0xd24140,'threadId':_0x30d2d5,'commentId':_0x34a5d5,..._0x525e67});}[_0x43e45d(0x197)](_0x355907,_0x4981e6){const _0x5b62af=_0x43e45d,_0xce4fdf=_0x2051f8(this[_0x5b62af(0x150)]);_0x153a17(_0xce4fdf,_0x355907,_0x4981e6),this[_0x5b62af(0x138)]({'attributes':_0xce4fdf});}[_0x43e45d(0xde)](_0x2e8bc8){const _0x1cdd4f=_0x43e45d,_0x2036cf=_0x2051f8(this[_0x1cdd4f(0x150)]);_0x270c9a(_0x2036cf,_0x2e8bc8),this[_0x1cdd4f(0x138)]({'attributes':_0x2036cf});}[_0x43e45d(0xce)](_0xb37596={}){const _0x5227cd=_0x43e45d;if(!_0xb37596[_0x5227cd(0x16e)]&&!this[_0x5227cd(0xca)])return;const {threadId:_0x3f166a,id:_0x5d1e76}=this;if(!this[_0x5227cd(0x117)][_0x5227cd(0x136)](_0x3f166a))throw new _0x2aa787(_0x5227cd(0x163),this);const {channelId:_0x1152d0}=this[_0x5227cd(0x117)][_0x5227cd(0x165)](_0x3f166a);this[_0x5227cd(0x117)][_0x5227cd(0x18c)](bt(_0x5227cd(0xe4),_0x1152d0,_0x3f166a),{'channelId':_0x1152d0,'threadId':_0x3f166a,'commentId':_0x5d1e76,..._0xb37596});}[_0x43e45d(0xd6)](){const _0x3a46e3=_0x43e45d;return{'commentId':this['id'],'content':this[_0x3a46e3(0xf7)],'createdAt':this[_0x3a46e3(0x144)],'authorId':this[_0x3a46e3(0x191)]['id'],'attributes':this[_0x3a46e3(0x150)]};}[_0x43e45d(0x15f)](){const _0x59296f=_0x43e45d;this[_0x59296f(0x141)]();}}function bt(_0x33f8c0,..._0x164bb9){for(const _0x164593 of _0x164bb9)void 0x0!==_0x164593&&(_0x33f8c0+=':'+String(_0x164593));return _0x33f8c0;}