@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
25 lines • 46 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 _0x3b9906=_0x1859;(function(_0x25b3eb,_0x3b7a6a){const _0x515f88=_0x1859,_0x23f695=_0x25b3eb();while(!![]){try{const _0x4ccbd7=-parseInt(_0x515f88(0x130))/0x1+-parseInt(_0x515f88(0x1af))/0x2+-parseInt(_0x515f88(0x17b))/0x3*(-parseInt(_0x515f88(0x1dc))/0x4)+parseInt(_0x515f88(0x125))/0x5+-parseInt(_0x515f88(0x1e5))/0x6+-parseInt(_0x515f88(0x110))/0x7*(-parseInt(_0x515f88(0x1c1))/0x8)+parseInt(_0x515f88(0x10f))/0x9;if(_0x4ccbd7===_0x3b7a6a)break;else _0x23f695['push'](_0x23f695['shift']());}catch(_0xbbd4fc){_0x23f695['push'](_0x23f695['shift']());}}}(_0x93ad,0x64d70));import{PendingActions as _0x14ed0f,ContextPlugin as _0x495984,Editor as _0x4a0e00}from'ckeditor5/src/core.js';import{Collection as _0x4dfe7b,uid as _0x25ba5d,CKEditorError as _0x429eee,ObservableMixin as _0x1dc4b2}from'ckeditor5/src/utils.js';import{getDateTimeFormatter as _0x1f38c1,hashObject as _0x26f74c,Users as _0x141c0c}from'ckeditor5-collaboration/src/collaboration-core.js';import{cloneDeep as _0x4494aa,isEqual as _0x57652f,set as _0xa121d8,unset as _0x5d9422}from'es-toolkit/compat';import{CommentThreadController as _0x1b2a11}from'./ui/commentthreadcontroller.js';import{CommentThreadView as _0xad9126}from'./ui/view/commentthreadview.js';import{CommentView as _0x26e66b}from'./ui/view/commentview.js';import{getTranslation as _0x43bf93}from'../utils/common-translations.js';import'../../theme/comment.css';import'../../theme/commentthread.css';import'../../theme/commentinput.css';function _0x93ad(){const _0x31392b=['threadId','_threadToController','adapter','switchReadOnly','set','commentsrepository-get-comment-invalid-id','commentsrepository-remove-missing-comment-thread','innerHTML','warn','commentUpdated','resolvedBy','CommentsRepository','isRemovable','fetchCommentThread','208776ZEcVaa','weight','setUnlinkedAt','getComment','_reopenCommentThread','channelId','commentsrepository-add-comment-thread-internal-error','commentsrepository-fetch-comment-thread','_addCommentThread','isResolved','requires','getCommentThreadForAnnotation','activeCommentThread','reduce','commentsrepository-invalid-comment-thread-id','_bindAnnotationToEditors','map','update','8ArSjKm','remove','deactivateAll','textContent','from','editorReady','createElement','commentsrepository-remove-comment-missing-comment-thread','trim','isDirty','refreshVisibility','commentId','function','removeAttribute','updateComment','comments.CommentThreadView','bind','push','comments','define','setContext','context','comment','comments.CommentView','authorName','pluginName','add','1152LmfHuE','_findOptimalIndex','_attachCommentThread','escape','commentsrepository-add-comment-internal-error','isReadOnly','plugins','openNewCommentThread','commentsrepository-active-not-attached','3920826CgxVAO','locale','commentsrepository-update-comment-invalid-content','_updateActiveAnnotation','then','noChannel','get','setActiveCommentThread','_removeCommentThread','commentsrepository-remove-comment-thread-internal-error','commentsrepository-resolve-comment-thread-internal-error','Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.','commentsrepository-add-comment-user-not-exists','commentsrepository-resolved-comment-thread','PendingActions','change:authoredAt','isEditable','10590300ImqHPU','477785QRkMbo','author','assign','PENDING_ACTION_COMMENT_THREAD','resolvedAt','isAttached','comments.copyMarkers','isActive','removeComment','submit','commentsrepository-update-comment-thread-internal-error','getUser','change:_permissions','attributes','_detachCommentThread','commentsrepository-duplicated-comment-thread-id','_threads','_submitCommentThread','commentsrepository-update-comment-missing-comment-thread','_getExternalAuthor','max','2240440aBmhQD','string','delete','catch','type','setAttribute','change:isDirty','values','commentsrepository-invalid-comment-authorid','external:','getByInnerView','790560ogfQAp','editorDestroyed','innerView','isVisible','admin','addCommentThread','commentsrepository-invalid-commentid','creator','reopen','isExternal','_readOnlyChannels','commentsListView','_permissions','getPermissions','commentsrepository-missing-thread-and-adapter-method','lowest','_remove','canComment','_updateComment','find','getIndex','_createNewComment','commentsrepository-missing-comment-thread','content','_viewToController','_unbindEditors','stopListening','getCommentThread','focus','_add','getAnnotationForCommentThread','getCommentThreads','_isAttached','init','archivedAt','hasCommentThread','has','_hasTargetInContent','@external','body','commentsrepository-missing-target','_removeActiveAnnotation','_isSubmitted','destroy','_repository','view','addComment','listenTo','setPermissions','createCommentThreadController','commentsrepository-add-comment-to-missing-comment-thread','_update','once','resolve','commentsrepository-invalid-comment-content','authoredAt','commentsrepository-active-missing-comment-thread','commentsrepository-attach-missing-comment-thread','commentsrepository-reopen-comment-thread-internal-error','commentsrepository-reopen-comment-thread','_updateCommentThread','resolveCommentThread','commentsrepository-update-missing-comment','model','_adapter','fire','div','_createCommentThreadView','_addComment','isFromAdapter','isOfficialPlugin','error','isResolvable','commentsrepository-remove-comment-internal-error','attachTo','2796KKWkRv','submitCommentThread','commentInputView','CommentThreadView','comments.maxCommentCharsWhenCollapsed','commentsrepository-remove-missing-comment','highest','_resolveCommentThread','_removeComment','bodyCollectionContainer','updateCommentThread','getTime','filter','activate','reopenCommentThread','isSubmitted','write','commentThreadInputView','comments.maxCommentsWhenCollapsed','config','isPremiumPlugin','commentsrepository-update-comment-internal-error','removeCommentThread','CommentView','comments.editorConfig','modifyAll','focusTracker','addUser','toJSON','change:_readOnlyChannels','length','unlinkedAt','change:activeAnnotations','focusableElements','comments.maxThreadTotalWeight','licenseKey','createdAt','commentsrepository-adapter-already-set'];_0x93ad=function(){return _0x31392b;};return _0x93ad();}import{AnnotationView as _0x556ce0}from'../annotations/view/annotationview.js';import{Annotation as _0x2ead26}from'../annotations/annotation.js';import{Annotations as _0x4bf395}from'../annotations/annotations.js';const Tt=Symbol(_0x3b9906(0x1ea)),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};export class CommentsRepository extends _0x495984{[_0x3b9906(0x120)];[_0x3b9906(0x1a2)];[_0x3b9906(0x148)];static get[_0x3b9906(0x1b9)](){return[_0x4bf395,_0x14ed0f,_0x141c0c];}static get[_0x3b9906(0x1da)](){const _0x5ec026=_0x3b9906;return _0x5ec026(0x1ac);}static get[_0x3b9906(0x176)](){return!0x0;}static get[_0x3b9906(0x18f)](){return!0x0;}constructor(_0x26a45a){const _0x35251e=_0x3b9906;super(_0x26a45a),this[_0x35251e(0x120)]=new Map(),this[_0x35251e(0x1a2)]=new Map(),this[_0x35251e(0x148)]=new Map(),this[_0x35251e(0x1a5)](_0x35251e(0x13a),new Set()),this[_0x35251e(0x1a5)](_0x35251e(0x13c),new Map());const _0x2b3d1a=this[_0x35251e(0x1d6)][_0x35251e(0x18e)];_0x2b3d1a[_0x35251e(0x1d4)](_0x35251e(0x18d),0x2),_0x2b3d1a[_0x35251e(0x1d4)](_0x35251e(0x19d),0x1f4),_0x2b3d1a[_0x35251e(0x1d4)](_0x35251e(0x17f),0x8c),_0x2b3d1a[_0x35251e(0x1d4)](_0x35251e(0x1d0),_0xad9126),_0x2b3d1a[_0x35251e(0x1d4)](_0x35251e(0x1d8),_0x26e66b),_0x2b3d1a[_0x35251e(0x1eb)](_0x35251e(0x193))||console[_0x35251e(0x1a9)](_0x35251e(0x1f0));}[_0x3b9906(0x151)](){const _0x1c8487=_0x3b9906,_0x4fb403=this[_0x1c8487(0x1d6)][_0x1c8487(0x1e2)][_0x1c8487(0x1eb)](_0x4bf395);this[_0x1c8487(0x1a5)](_0x1c8487(0x1bb),null),this['on'](_0x1c8487(0x135),(_0x458c8d,_0x4d9b97)=>this[_0x1c8487(0x1b7)](_0x4d9b97)),this['on'](_0x1c8487(0x17c),(_0x478a54,_0x4c0285)=>this[_0x1c8487(0x121)](_0x4c0285)),this['on'](_0x1c8487(0x16d),(_0x1e73ca,_0x48c1c2)=>this[_0x1c8487(0x182)](_0x48c1c2)),this['on'](_0x1c8487(0x16d),(_0x1031ab,_0x1498c1)=>this[_0x1c8487(0x1e8)](_0x1498c1),{'priority':_0x1c8487(0x13f)}),this['on'](_0x1c8487(0x189),(_0x2431fe,_0xf18f11)=>this[_0x1c8487(0x1b3)](_0xf18f11)),this['on'](_0x1c8487(0x189),(_0x53f237,_0x8acaf)=>this[_0x1c8487(0x1e8)](_0x8acaf),{'priority':_0x1c8487(0x13f)}),this['on'](_0x1c8487(0x191),(_0x14fa7e,_0x5a3b56)=>this[_0x1c8487(0x1ed)](_0x5a3b56)),this['on'](_0x1c8487(0x185),(_0xadbd88,_0x31a4b6)=>this[_0x1c8487(0x16c)](_0x31a4b6)),this['on'](_0x1c8487(0x185),(_0x462efa,_0x1dc2e0)=>this[_0x1c8487(0x1e8)](_0x1dc2e0),{'priority':_0x1c8487(0x13f)}),this['on'](_0x1c8487(0x15e),(_0x331022,_0x5b4715)=>this[_0x1c8487(0x174)](_0x5b4715)),this['on'](_0x1c8487(0x1cf),(_0x220ee9,_0x2f1448)=>this[_0x1c8487(0x142)](_0x2f1448)),this['on'](_0x1c8487(0x118),(_0x525ba5,_0x371b2a)=>this[_0x1c8487(0x183)](_0x371b2a)),this['on'](_0x1c8487(0x15e),(_0x3714e6,{threadId:_0x191e28,isFromAdapter:_0x46765b})=>{const _0xe61c99=_0x1c8487;if(_0x46765b)return;const _0x333f42=this[_0xe61c99(0x14b)](_0x191e28),_0x4d8327=_0x333f42&&this[_0xe61c99(0x1a2)][_0xe61c99(0x1eb)](_0x333f42);_0x4d8327&&_0x4d8327[_0xe61c99(0x15d)][_0xe61c99(0x13b)][_0xe61c99(0x14c)](-0x1);},{'priority':_0x1c8487(0x13f)}),this[_0x1c8487(0x15f)](_0x4fb403,_0x1c8487(0x19b),(_0x4b4e34,_0x3ed9b1,_0x3ca681)=>{const _0x2d9916=_0x1c8487,_0x50c44c=Array[_0x2d9916(0x1c5)](_0x3ca681)[_0x2d9916(0x1bf)](_0x3fd360=>this[_0x2d9916(0x148)][_0x2d9916(0x1eb)](_0x3fd360[_0x2d9916(0x132)]))[_0x2d9916(0x187)](Boolean)[0x0];this[_0x2d9916(0x1bb)]=_0x50c44c?_0x50c44c[_0x2d9916(0x16f)]:null;});}set[_0x3b9906(0x1a3)](_0x3a52c7){const _0x530c32=_0x3b9906;if(this[_0x530c32(0x170)])throw new _0x429eee(_0x530c32(0x1a0));this[_0x530c32(0x170)]=_0x3a52c7;}get[_0x3b9906(0x1a3)](){const _0x20e192=_0x3b9906;return this[_0x20e192(0x170)];}[_0x3b9906(0x135)]({channelId:_0x2a6895=Tt,threadId:_0x53e94d=_0x25ba5d(),comments:_0x4bebd6=[],unlinkedAt:_0x35e2d2=null,resolvedAt:_0x51f2bd=null,resolvedBy:_0x27e729=null,target:_0x26b275=null,context:_0x3be223=null,attributes:_0x307ea0={},isResolvable:_0x3877ee=!0x0,isSubmitted:_0xb28085=!0x1,isFromAdapter:_0x2a93d0=!0x1}={}){const _0x377ffe=_0x3b9906;return this[_0x377ffe(0x171)](bt(_0x377ffe(0x135),_0x2a6895),{'channelId':_0x2a6895,'threadId':_0x53e94d,'comments':_0x4bebd6,'unlinkedAt':_0x35e2d2,'resolvedAt':_0x51f2bd,'resolvedBy':_0x27e729,'target':_0x26b275,'context':_0x3be223,'attributes':_0x307ea0,'isFromAdapter':_0x2a93d0,'isResolvable':_0x3877ee,'isSubmitted':_0xb28085}),this[_0x377ffe(0x14b)](_0x53e94d);}[_0x3b9906(0x1e3)]({channelId:_0x21cbbe=Tt,threadId:_0x560431=_0x25ba5d(),target:_0x472099,context:_0x59c5ca=null,isResolvable:_0x220b6e=!0x0}){const _0x250296=_0x3b9906;if(this[_0x250296(0x13a)][_0x250296(0x154)](_0x21cbbe)||this[_0x250296(0x13a)][_0x250296(0x154)](void 0x0))return null;if(!_0x472099)throw new _0x429eee(_0x250296(0x158));const _0xa0d27b=this[_0x250296(0x135)]({'channelId':_0x21cbbe,'threadId':_0x560431,'target':_0x472099,'context':_0x59c5ca,'isResolvable':_0x220b6e});if(!_0xa0d27b)return null;const _0x2f5bee=this[_0x250296(0x1a2)][_0x250296(0x1eb)](_0xa0d27b),_0x892db5=_0x2f5bee[_0x250296(0x15d)][_0x250296(0x18c)][_0x250296(0x17d)],_0x4900d0=this[_0x250296(0x1d6)][_0x250296(0x1e2)][_0x250296(0x1eb)](_0x4bf395),_0x38df4b=_0x4900d0[_0x250296(0x12f)](_0x2f5bee[_0x250296(0x15d)]);return _0x4900d0[_0x250296(0x188)](_0x38df4b),_0x892db5[_0x250296(0x164)](_0x250296(0x1c6),()=>_0x892db5[_0x250296(0x14c)]()),_0xa0d27b;}[_0x3b9906(0x153)](_0x409882){const _0x16f09e=_0x3b9906;if(_0x16f09e(0x126)!=typeof _0x409882)throw new _0x429eee(_0x16f09e(0x1bd));return this[_0x16f09e(0x120)][_0x16f09e(0x154)](_0x409882);}[_0x3b9906(0x185)]({channelId:_0x401d1e=Tt,threadId:_0x48f8cf,context:_0x2f65b4,unlinkedAt:_0x926a3a,attributes:_0x4aa6c8,isFromAdapter:_0x59efca=!0x1}){const _0x2b6509=_0x3b9906;return this[_0x2b6509(0x171)](bt(_0x2b6509(0x185),_0x401d1e),{'channelId':_0x401d1e,'threadId':_0x48f8cf,'context':_0x2f65b4,'unlinkedAt':_0x926a3a,'attributes':_0x4aa6c8,'isFromAdapter':_0x59efca}),this[_0x2b6509(0x14b)](_0x48f8cf);}[_0x3b9906(0x14b)](_0x470984){const _0x354177=_0x3b9906;if(_0x354177(0x126)!=typeof _0x470984)throw new _0x429eee(_0x354177(0x1bd));return this[_0x354177(0x120)][_0x354177(0x1eb)](_0x470984);}[_0x3b9906(0x1ae)]({channelId:_0x2618e8,threadId:_0x5bc13}={}){const _0x1332d8=_0x3b9906,_0x381e3c=this[_0x1332d8(0x14b)](_0x5bc13);if(_0x381e3c)return Promise[_0x1332d8(0x165)](_0x381e3c);if(!this[_0x1332d8(0x1a3)])return Promise[_0x1332d8(0x165)](void 0x0);if(_0x1332d8(0x1cd)!=typeof this[_0x1332d8(0x1a3)][_0x1332d8(0x14b)])throw new _0x429eee(_0x1332d8(0x13e),this[_0x1332d8(0x1d6)]);return this[_0x1332d8(0x1a3)][_0x1332d8(0x14b)]({'channelId':_0x2618e8,'threadId':_0x5bc13})[_0x1332d8(0x1e9)](_0x1d45fd=>this[_0x1332d8(0x153)](_0x5bc13)?this[_0x1332d8(0x14b)](_0x5bc13):_0x1d45fd?this[_0x1332d8(0x135)](Object[_0x1332d8(0x112)]({'isFromAdapter':!0x0,'channelId':_0x2618e8},_0x1d45fd)):void 0x0)[_0x1332d8(0x128)](_0x214450=>{const _0x2cc686=_0x1332d8;throw console[_0x2cc686(0x177)](_0x214450),new _0x429eee(_0x2cc686(0x1b6),this[_0x2cc686(0x1d6)]);});}[_0x3b9906(0x14f)]({channelId:_0xf95e11,skipNotAttached:_0x509517=!0x1,skipEmpty:_0x48643c=!0x1,toJSON:_0x39fc3d=!0x1}={}){const _0x5e53a1=_0x3b9906,_0x15730b=[];for(const _0x581163 of this[_0x5e53a1(0x120)][_0x5e53a1(0x12c)]())_0xf95e11&&_0x581163[_0x5e53a1(0x1b4)]!==_0xf95e11||_0x509517&&!_0x581163[_0x5e53a1(0x115)]||_0x48643c&&0x0===_0x581163[_0x5e53a1(0x199)]||_0x15730b[_0x5e53a1(0x1d2)](_0x581163);return _0x39fc3d?_0x15730b[_0x5e53a1(0x1bf)](_0x453f02=>_0x453f02[_0x5e53a1(0x197)]()):_0x15730b;}[_0x3b9906(0x14e)](_0x15d3f2){const _0x33beeb=_0x3b9906,_0x4062b1=this[_0x33beeb(0x1a2)][_0x33beeb(0x1eb)](_0x15d3f2);if(!_0x4062b1)return null;return this[_0x33beeb(0x1d6)][_0x33beeb(0x1e2)][_0x33beeb(0x1eb)](_0x4bf395)[_0x33beeb(0x12f)](_0x4062b1[_0x33beeb(0x15d)])||null;}[_0x3b9906(0x1ba)](_0xadaf39){const _0x3fcbae=_0x3b9906,_0x3cef5e=this[_0x3fcbae(0x148)][_0x3fcbae(0x1eb)](_0xadaf39[_0x3fcbae(0x132)]);return _0x3cef5e?_0x3cef5e[_0x3fcbae(0x16f)]:null;}[_0x3b9906(0x1ec)](_0x2a72ae){const _0x1fdf04=_0x3b9906,_0x552b4e=this[_0x1fdf04(0x1d6)][_0x1fdf04(0x1e2)][_0x1fdf04(0x1eb)](_0x4bf395);if(!_0x2a72ae)return void(this[_0x1fdf04(0x1bb)]&&_0x552b4e[_0x1fdf04(0x1c3)]());const _0x517322=this[_0x1fdf04(0x14b)](_0x2a72ae);if(!_0x517322)throw new _0x429eee(_0x1fdf04(0x168),null,{'threadId':_0x2a72ae});if(!this[_0x1fdf04(0x1a2)][_0x1fdf04(0x154)](_0x517322))throw new _0x429eee(_0x1fdf04(0x1e4),null,{'threadId':_0x2a72ae});const _0x57f4ce=_0x552b4e[_0x1fdf04(0x12f)](this[_0x1fdf04(0x1a2)][_0x1fdf04(0x1eb)](_0x517322)[_0x1fdf04(0x15d)]);_0x552b4e[_0x1fdf04(0x188)](_0x57f4ce);}[_0x3b9906(0x1a4)](_0x310e96,_0xa440b1){const _0x5ba575=_0x3b9906;_0x310e96?this[_0x5ba575(0x13a)][_0x5ba575(0x1db)](_0xa440b1):this[_0x5ba575(0x13a)][_0x5ba575(0x127)](_0xa440b1),this[_0x5ba575(0x171)](_0x5ba575(0x198),_0x5ba575(0x13a),this[_0x5ba575(0x13a)],this[_0x5ba575(0x13a)]);}[_0x3b9906(0x1e1)](_0x3c46ca){const _0x56c697=_0x3b9906;return this[_0x56c697(0x13a)][_0x56c697(0x154)](_0x3c46ca)||this[_0x56c697(0x13a)][_0x56c697(0x154)](void 0x0);}[_0x3b9906(0x161)](_0xfa9744,_0xcb8908){return new _0x1b2a11(_0xfa9744,_0xcb8908);}[_0x3b9906(0x160)](_0xbd7107,_0x4f60f9=Tt){const _0x2b6283=_0x3b9906;this[_0x2b6283(0x13c)][_0x2b6283(0x1a5)](_0x4f60f9,_0xbd7107),this[_0x2b6283(0x171)](_0x2b6283(0x11c),_0x2b6283(0x13c),this[_0x2b6283(0x13c)],this[_0x2b6283(0x13c)]);}[_0x3b9906(0x13d)](_0x1a06dc=Tt){const _0x57ef0e=_0x3b9906;return this[_0x57ef0e(0x13c)][_0x57ef0e(0x154)](_0x1a06dc)?this[_0x57ef0e(0x13c)][_0x57ef0e(0x1eb)](_0x1a06dc):_t;}[_0x3b9906(0x1b7)]({channelId:_0x5acfb0,threadId:_0x2722b4,comments:_0x210aae,unlinkedAt:_0xdfc20d,resolvedAt:_0x577c3d,resolvedBy:_0x10d7e0,target:_0x398258,context:_0x142eef,attributes:_0x4afae8,isFromAdapter:_0x38ec2b,isResolvable:_0x382537,isSubmitted:_0x25849d}){const _0x6c5387=_0x3b9906;if(_0x6c5387(0x126)!=typeof _0x2722b4)throw new _0x429eee(_0x6c5387(0x1bd),null,{'threadId':_0x2722b4});if(this[_0x6c5387(0x153)](_0x2722b4))throw new _0x429eee(_0x6c5387(0x11f),null,{'threadId':_0x2722b4});const _0x1d9e3a=new CommentThread(this,{'channelId':_0x5acfb0,'id':_0x2722b4,'context':_0x142eef,'attributes':_0x4afae8,'unlinkedAt':_0xdfc20d,'resolvedAt':_0x577c3d,'resolvedBy':_0x10d7e0?this[_0x6c5387(0x1d6)][_0x6c5387(0x1e2)][_0x6c5387(0x1eb)](_0x141c0c)[_0x6c5387(0x11b)](_0x10d7e0):null,'isResolvable':_0x382537,'isSubmitted':_0x25849d||_0x38ec2b});this[_0x6c5387(0x120)][_0x6c5387(0x1a5)](_0x2722b4,_0x1d9e3a);for(const _0x2c2b1b of _0x210aae)_0x1d9e3a[_0x6c5387(0x14d)](this[_0x6c5387(0x145)]({'threadId':_0x2722b4,..._0x2c2b1b}));return _0x398258&&_0x1d9e3a[_0x6c5387(0x17a)](_0x398258),_0x38ec2b||!_0x1d9e3a[_0x6c5387(0x199)]?Promise[_0x6c5387(0x165)]():this[_0x6c5387(0x121)]({'channelId':_0x5acfb0,'threadId':_0x2722b4});}[_0x3b9906(0x121)]({channelId:_0x381ee4,threadId:_0x3cb2a0}){const _0x4e416d=_0x3b9906;if(!this[_0x4e416d(0x153)](_0x3cb2a0))throw new _0x429eee(_0x4e416d(0x146),this);const _0x383300=this[_0x4e416d(0x14b)](_0x3cb2a0);if(_0x383300[_0x4e416d(0x15a)]=!0x0,!this[_0x4e416d(0x1a3)]||_0x4e416d(0x1cd)!=typeof this[_0x4e416d(0x1a3)][_0x4e416d(0x135)])return Promise[_0x4e416d(0x165)]();const {id:_0x40f406,comments:_0x27b075,resolvedAt:_0x165186,resolvedBy:_0x54384b,context:_0x29c30a,attributes:_0x51de6e}=_0x383300,_0x138c91=this[_0x4e416d(0x1d6)][_0x4e416d(0x1e2)][_0x4e416d(0x1eb)](_0x4e416d(0x1f3)),_0x1429ae=_0x138c91[_0x4e416d(0x1db)](_0x43bf93(this[_0x4e416d(0x1d6)][_0x4e416d(0x1e6)],_0x4e416d(0x113)));return this[_0x4e416d(0x1a3)][_0x4e416d(0x135)]({'channelId':_0x381ee4,'threadId':_0x40f406,'comments':_0x27b075[_0x4e416d(0x1bf)](_0x25b70e=>_0x25b70e[_0x4e416d(0x197)]()),'resolvedAt':_0x165186,'resolvedBy':_0x54384b?_0x54384b['id']:_0x54384b,'context':_0x29c30a,'attributes':_0x51de6e})[_0x4e416d(0x1e9)](({comments:_0x3e00ba})=>{const _0x4296a3=_0x4e416d;_0x138c91[_0x4296a3(0x1c2)](_0x1429ae);for(const _0x13efe7 of _0x3e00ba)this[_0x4296a3(0x142)]({'channelId':_0x381ee4,'threadId':_0x3cb2a0,'commentId':_0x13efe7[_0x4296a3(0x1cc)],'createdAt':_0x13efe7[_0x4296a3(0x19f)],'isFromAdapter':!0x0});})[_0x4e416d(0x128)](_0x1998ae=>{const _0x418a20=_0x4e416d;throw console[_0x418a20(0x177)](_0x1998ae),new _0x429eee(_0x418a20(0x1b5),this);});}[_0x3b9906(0x1de)]({threadId:_0x120e6f,target:_0x4a5df5}){const _0x327525=_0x3b9906,_0x1d6d30=this[_0x327525(0x14b)](_0x120e6f);if(!_0x1d6d30)throw new _0x429eee(_0x327525(0x169),this);const _0x3bcf1c=this[_0x327525(0x1d6)][_0x327525(0x1e2)][_0x327525(0x1eb)](_0x327525(0x1f3)),_0x34b7a1=this[_0x327525(0x1d6)][_0x327525(0x1e2)][_0x327525(0x1eb)](_0x4bf395),_0x5dd3d8=this[_0x327525(0x173)](_0x1d6d30),_0x49f88d=new _0x1b2a11(_0x1d6d30,_0x5dd3d8);let _0x874f67=null;_0x5dd3d8['on'](_0x327525(0x12b),(_0x18dc45,_0x268af6,_0x58a299)=>{const _0x2daf48=_0x327525;_0x58a299?_0x874f67=_0x3bcf1c[_0x2daf48(0x1db)](_0x43bf93(this[_0x2daf48(0x1d6)][_0x2daf48(0x1e6)],_0x2daf48(0x113))):_0x874f67&&(_0x3bcf1c[_0x2daf48(0x1c2)](_0x874f67),_0x874f67=null);}),this[_0x327525(0x1a2)][_0x327525(0x1a5)](_0x1d6d30,_0x49f88d),this[_0x327525(0x148)][_0x327525(0x1a5)](_0x5dd3d8,_0x49f88d);const _0xbc959a=new _0x556ce0(this[_0x327525(0x1d6)][_0x327525(0x1e6)],_0x5dd3d8);_0xbc959a[_0x327525(0x1d1)](_0x327525(0x199))['to'](_0x5dd3d8),_0xbc959a[_0x327525(0x1d1)](_0x327525(0x1ca))['to'](_0x5dd3d8,_0x327525(0x1ca),_0x5dd3d8,_0x327525(0x199),(_0x27b207,_0x319170)=>_0x27b207||!_0x319170),_0xbc959a[_0x327525(0x1d1)](_0x327525(0x117))['to'](_0x5dd3d8),_0xbc959a[_0x327525(0x129)]=_0x327525(0x1d7);const _0x2ae2b0=new _0x2ead26({'view':_0xbc959a,'target':_0x4a5df5,'type':_0x327525(0x1d7),'isVisible':!_0x1d6d30[_0x327525(0x152)]});return _0x5dd3d8['on'](_0x327525(0x1df),()=>{const _0x247a60=_0x327525;_0x2ae2b0[_0x247a60(0x171)](_0x247a60(0x1df));}),this[_0x327525(0x1be)](_0x5dd3d8,_0x2ae2b0),_0x34b7a1[_0x327525(0x1db)](_0x2ae2b0),_0x2ae2b0;}[_0x3b9906(0x1be)](_0x45c2b4,_0x40bb15){const _0x341576=_0x3b9906;this[_0x341576(0x15f)](_0x45c2b4,_0x341576(0x1c6),(_0x90c5ac,_0x266bc7)=>{const _0x41f401=_0x341576,_0x1ae3fa=_0x266bc7['ui'][_0x41f401(0x15d)][_0x41f401(0x157)][_0x41f401(0x184)];_0x40bb15[_0x41f401(0x19c)][_0x41f401(0x1db)](_0x1ae3fa),this[_0x41f401(0x1d6)]instanceof _0x4a0e00&&this[_0x41f401(0x1d6)]['ui'][_0x41f401(0x195)][_0x41f401(0x1db)](_0x1ae3fa);},{'priority':_0x341576(0x181)}),this[_0x341576(0x15f)](_0x45c2b4,_0x341576(0x131),(_0x10b0cd,_0xd6a142)=>{const _0x7dc6a5=_0x341576,_0x599381=_0xd6a142['ui'][_0x7dc6a5(0x15d)][_0x7dc6a5(0x157)][_0x7dc6a5(0x184)];_0x40bb15[_0x7dc6a5(0x19c)][_0x7dc6a5(0x154)](_0x599381)&&_0x40bb15[_0x7dc6a5(0x19c)][_0x7dc6a5(0x1c2)](_0x599381),this[_0x7dc6a5(0x1d6)]instanceof _0x4a0e00&&this[_0x7dc6a5(0x1d6)]['ui'][_0x7dc6a5(0x195)][_0x7dc6a5(0x1c2)](_0x599381);});}[_0x3b9906(0x149)](_0x46c3b9){const _0x1cdb49=_0x3b9906;this[_0x1cdb49(0x14a)](_0x46c3b9,_0x1cdb49(0x1c6)),this[_0x1cdb49(0x14a)](_0x46c3b9,_0x1cdb49(0x131));}[_0x3b9906(0x173)](_0x4ee618){const _0x33a995=_0x3b9906,_0x3e0bd0=this[_0x33a995(0x1d6)][_0x33a995(0x1e2)][_0x33a995(0x1eb)](_0x141c0c),{config:_0x3546cc,locale:_0x4e93ec}=this[_0x33a995(0x1d6)],_0x6381a8=_0x1f38c1(_0x3546cc[_0x33a995(0x1eb)](_0x33a995(0x1e6)),_0x4e93ec);return new(0x0,(_0x3546cc[_0x33a995(0x1eb)](_0x33a995(0x1d3)))[(_0x33a995(0x17e))])(_0x4e93ec,_0x4ee618,_0x3e0bd0['me'],{'editorConfig':{..._0x3546cc[_0x33a995(0x1eb)](_0x33a995(0x193)),'licenseKey':this[_0x33a995(0x1d6)][_0x33a995(0x18e)][_0x33a995(0x1eb)](_0x33a995(0x19e))},'copyMarkers':_0x3546cc[_0x33a995(0x1eb)](_0x33a995(0x116)),'maxCommentsWhenCollapsed':_0x3546cc[_0x33a995(0x1eb)](_0x33a995(0x18d)),'maxThreadTotalWeight':_0x3546cc[_0x33a995(0x1eb)](_0x33a995(0x19d)),'maxCommentCharsWhenCollapsed':_0x3546cc[_0x33a995(0x1eb)](_0x33a995(0x17f)),'formatDateTime':_0x6381a8,'CommentView':_0x3546cc[_0x33a995(0x1eb)](_0x33a995(0x1d3))[_0x33a995(0x192)]});}[_0x3b9906(0x182)]({threadId:_0x4cecfc,channelId:_0x237071,resolvedAt:_0xdc7697,resolvedBy:_0x2aab82,isFromAdapter:_0x4a31c5}){const _0x8e3818=_0x3b9906;if(!this[_0x8e3818(0x153)](_0x4cecfc))throw new _0x429eee(_0x8e3818(0x146),null,{'threadId':_0x4cecfc});const _0x136c82=this[_0x8e3818(0x14b)](_0x4cecfc);if(_0x136c82[_0x8e3818(0x1b8)])throw new _0x429eee(_0x8e3818(0x1f2),null,{'threadId':_0x4cecfc});const _0x127916=this[_0x8e3818(0x1d6)][_0x8e3818(0x1e2)][_0x8e3818(0x1eb)](_0x141c0c);if(_0x136c82[_0x8e3818(0x1ab)]=_0x127916[_0x8e3818(0x11b)](_0x2aab82),_0x136c82[_0x8e3818(0x114)]=_0xdc7697,_0x4a31c5||!this[_0x8e3818(0x1a3)]||_0x8e3818(0x1cd)!=typeof this[_0x8e3818(0x1a3)][_0x8e3818(0x16d)])return Promise[_0x8e3818(0x165)]();const _0x2eb0e1=this[_0x8e3818(0x1d6)][_0x8e3818(0x1e2)][_0x8e3818(0x1eb)](_0x8e3818(0x1f3)),_0x40a07d=_0x2eb0e1[_0x8e3818(0x1db)](_0x43bf93(this[_0x8e3818(0x1d6)][_0x8e3818(0x1e6)],_0x8e3818(0x113)));return this[_0x8e3818(0x1a3)][_0x8e3818(0x16d)]({'channelId':_0x237071,'threadId':_0x4cecfc})[_0x8e3818(0x1e9)](({resolvedAt:_0x3f3bb1,resolvedBy:_0x4b9811})=>{const _0x167e83=_0x8e3818;_0x2eb0e1[_0x167e83(0x1c2)](_0x40a07d),_0x136c82[_0x167e83(0x1ab)]['id']!==_0x4b9811&&(_0x136c82[_0x167e83(0x1ab)]=_0x127916[_0x167e83(0x11b)](_0x4b9811)),_0x136c82[_0x167e83(0x114)]=_0x3f3bb1;})[_0x8e3818(0x128)](_0x2bff11=>{const _0x4145e7=_0x8e3818;throw console[_0x4145e7(0x177)](_0x2bff11),new _0x429eee(_0x4145e7(0x1ef),this);});}[_0x3b9906(0x1b3)]({threadId:_0xb58204,channelId:_0x4ce600,isFromAdapter:_0x4c9886}){const _0x2d33d7=_0x3b9906;if(!this[_0x2d33d7(0x153)](_0xb58204))throw new _0x429eee(_0x2d33d7(0x146),null,{'threadId':_0xb58204});const _0x4c94d4=this[_0x2d33d7(0x14b)](_0xb58204);if(!_0x4c94d4[_0x2d33d7(0x1b8)])throw new _0x429eee(_0x2d33d7(0x16b),null,{'threadId':_0xb58204});if(_0x4c94d4[_0x2d33d7(0x1ab)]=null,_0x4c94d4[_0x2d33d7(0x114)]=null,_0x4c9886||!this[_0x2d33d7(0x1a3)]||_0x2d33d7(0x1cd)!=typeof this[_0x2d33d7(0x1a3)][_0x2d33d7(0x189)])return Promise[_0x2d33d7(0x165)]();const _0x5ec43c=this[_0x2d33d7(0x1d6)][_0x2d33d7(0x1e2)][_0x2d33d7(0x1eb)](_0x2d33d7(0x1f3)),_0x203609=_0x5ec43c[_0x2d33d7(0x1db)](_0x43bf93(this[_0x2d33d7(0x1d6)][_0x2d33d7(0x1e6)],_0x2d33d7(0x113)));return this[_0x2d33d7(0x1a3)][_0x2d33d7(0x189)]({'channelId':_0x4ce600,'threadId':_0xb58204})[_0x2d33d7(0x1e9)](()=>_0x5ec43c[_0x2d33d7(0x1c2)](_0x203609))[_0x2d33d7(0x128)](_0x331b47=>{const _0x225bca=_0x2d33d7;throw console[_0x225bca(0x177)](_0x331b47),new _0x429eee(_0x225bca(0x16a),this);});}[_0x3b9906(0x1ed)]({threadId:_0x1deb7a,isFromAdapter:_0x24883a}){const _0x2f6e69=_0x3b9906,_0x10ff7c=this[_0x2f6e69(0x14b)](_0x1deb7a);if(!_0x10ff7c)throw new _0x429eee(_0x2f6e69(0x1a7),this);if(this[_0x2f6e69(0x11e)](_0x1deb7a),this[_0x2f6e69(0x120)][_0x2f6e69(0x127)](_0x1deb7a),!_0x10ff7c[_0x2f6e69(0x18a)]||_0x24883a||!this[_0x2f6e69(0x1a3)]||_0x2f6e69(0x1cd)!=typeof this[_0x2f6e69(0x1a3)][_0x2f6e69(0x191)])return Promise[_0x2f6e69(0x165)]();const _0x2844c8=this[_0x2f6e69(0x1d6)][_0x2f6e69(0x1e2)][_0x2f6e69(0x1eb)](_0x2f6e69(0x1f3)),{channelId:_0x84eaec}=_0x10ff7c,_0xcac7cc=_0x2844c8[_0x2f6e69(0x1db)](_0x43bf93(this[_0x2f6e69(0x1d6)][_0x2f6e69(0x1e6)],_0x2f6e69(0x113)));return this[_0x2f6e69(0x1a3)][_0x2f6e69(0x191)]({'channelId':_0x84eaec,'threadId':_0x1deb7a})[_0x2f6e69(0x1e9)](()=>_0x2844c8[_0x2f6e69(0x1c2)](_0xcac7cc))[_0x2f6e69(0x128)](_0x142b33=>{const _0x1fa219=_0x2f6e69;throw console[_0x1fa219(0x177)](_0x142b33),new _0x429eee(_0x1fa219(0x1ee),this);});}[_0x3b9906(0x16c)]({threadId:_0x5b8246,unlinkedAt:_0x522a31,context:_0x931dc,attributes:_0x57f6de,isFromAdapter:_0x68bed1}){const _0x2d28f9=_0x3b9906;if(_0x2d28f9(0x126)!=typeof _0x5b8246)throw new _0x429eee(_0x2d28f9(0x1bd),null,{'threadId':_0x5b8246});if(!this[_0x2d28f9(0x153)](_0x5b8246))throw new _0x429eee(_0x2d28f9(0x146),null,{'threadId':_0x5b8246});const _0x41968a=this[_0x2d28f9(0x14b)](_0x5b8246);let _0x133728=!0x1;if(void 0x0!==_0x931dc&&_0x41968a[_0x2d28f9(0x1d6)]!==_0x931dc&&(_0x41968a[_0x2d28f9(0x1d6)]=_0x931dc,_0x133728=!0x0),void 0x0!==_0x522a31&&_0x41968a[_0x2d28f9(0x19a)]!==_0x522a31&&(_0x41968a[_0x2d28f9(0x19a)]=_0x522a31,_0x133728=!0x0),_0x57f6de&&!_0x57652f(_0x57f6de,_0x41968a[_0x2d28f9(0x11d)])&&(_0x41968a[_0x2d28f9(0x11d)]=_0x57f6de,_0x133728=!0x0),!_0x133728)return Promise[_0x2d28f9(0x165)]();if(!_0x41968a[_0x2d28f9(0x18a)]||_0x68bed1||!this[_0x2d28f9(0x1a3)]||_0x2d28f9(0x1cd)!=typeof this[_0x2d28f9(0x1a3)][_0x2d28f9(0x185)])return Promise[_0x2d28f9(0x165)]();const _0xa9957a=this[_0x2d28f9(0x1d6)][_0x2d28f9(0x1e2)][_0x2d28f9(0x1eb)](_0x2d28f9(0x1f3)),{channelId:_0x436dfc}=_0x41968a,_0x309812=_0xa9957a[_0x2d28f9(0x1db)](_0x43bf93(this[_0x2d28f9(0x1d6)][_0x2d28f9(0x1e6)],_0x2d28f9(0x113)));return this[_0x2d28f9(0x1a3)][_0x2d28f9(0x185)]({'channelId':_0x436dfc,'threadId':_0x5b8246,'context':_0x931dc,'unlinkedAt':_0x522a31,'attributes':_0x57f6de})[_0x2d28f9(0x1e9)](()=>_0xa9957a[_0x2d28f9(0x1c2)](_0x309812))[_0x2d28f9(0x128)](_0x1c1b27=>{const _0x2eb36c=_0x2d28f9;throw console[_0x2eb36c(0x177)](_0x1c1b27),new _0x429eee(_0x2eb36c(0x11a),this);});}[_0x3b9906(0x11e)](_0x5ad61c){const _0x5e3283=_0x3b9906,_0x5e6264=this[_0x5e3283(0x1d6)][_0x5e3283(0x1e2)][_0x5e3283(0x1eb)](_0x4bf395),_0x5e2534=this[_0x5e3283(0x14b)](_0x5ad61c);if(_0x5e2534[_0x5e3283(0x150)]=!0x1,this[_0x5e3283(0x1a2)][_0x5e3283(0x154)](_0x5e2534)){const _0x7203b6=this[_0x5e3283(0x1a2)][_0x5e3283(0x1eb)](_0x5e2534),_0x48cbfd=_0x7203b6[_0x5e3283(0x15d)],_0xb70f9c=_0x5e6264[_0x5e3283(0x12f)](_0x48cbfd);this[_0x5e3283(0x1a2)][_0x5e3283(0x127)](_0x5e2534),this[_0x5e3283(0x148)][_0x5e3283(0x127)](_0x48cbfd),_0xb70f9c&&_0x5e6264[_0x5e3283(0x1c2)](_0xb70f9c),_0x7203b6[_0x5e3283(0x15b)](),_0x48cbfd[_0x5e3283(0x15b)]()[_0x5e3283(0x1e9)](()=>{const _0x588c66=_0x5e3283;this[_0x588c66(0x149)](_0x48cbfd);});}}[_0x3b9906(0x1e8)]({threadId:_0x5270e1,resolvedAt:_0x8cd966,unlinkedAt:_0xc4fdf8}){const _0x40a05a=_0x3b9906,_0x2b95c7=!!_0x8cd966,_0x3dfe1a=this[_0x40a05a(0x1d6)][_0x40a05a(0x1e2)][_0x40a05a(0x1eb)](_0x4bf395),_0x2635df=this[_0x40a05a(0x14b)](_0x5270e1);if(this[_0x40a05a(0x1a2)][_0x40a05a(0x154)](_0x2635df)){const _0x3e6630=this[_0x40a05a(0x1a2)][_0x40a05a(0x1eb)](_0x2635df)[_0x40a05a(0x15d)],_0x1f5852=_0x3dfe1a[_0x40a05a(0x12f)](_0x3e6630);_0x1f5852&&(_0x2b95c7&&_0x3dfe1a[_0x40a05a(0x159)](_0x1f5852),_0xc4fdf8?_0x1f5852[_0x40a05a(0x133)]=!0x1:_0x1f5852[_0x40a05a(0x1cb)]());}}[_0x3b9906(0x123)](_0x292c53){const _0x13f3e3=_0x3b9906,_0x11f49f=this[_0x13f3e3(0x1d6)][_0x13f3e3(0x1e2)][_0x13f3e3(0x1eb)](_0x141c0c),_0x273c66=_0x26f74c(_0x13f3e3(0x12e)+_0x292c53),_0x26a0ad=_0x11f49f[_0x13f3e3(0x11b)](_0x273c66);return _0x26a0ad||_0x11f49f[_0x13f3e3(0x196)]({'id':_0x273c66,'name':_0x292c53});}[_0x3b9906(0x145)]({threadId:_0x472cf8,commentId:_0x415f3b=_0x25ba5d(),content:_0xf3f792,authorId:_0x362cf8,createdAt:_0x557de1,attributes:_0x53f3bc}){const _0x10acae=_0x3b9906;if(_0x10acae(0x126)!=typeof _0x415f3b)throw new _0x429eee(_0x10acae(0x136));if(_0x10acae(0x126)!=typeof _0x362cf8)throw new _0x429eee(_0x10acae(0x12d));if(_0x10acae(0x126)!=typeof _0xf3f792||!_0xf3f792[_0x10acae(0x1c9)]())throw new _0x429eee(_0x10acae(0x166));const _0x5468d1=this[_0x10acae(0x1d6)][_0x10acae(0x1e2)][_0x10acae(0x1eb)](_0x141c0c)[_0x10acae(0x11b)](_0x362cf8);if(!_0x5468d1)throw new _0x429eee(_0x10acae(0x1f1),null,{'authorId':_0x362cf8});let _0x377bc8=null,_0x109993=_0x557de1;return _0x53f3bc?.[_0x10acae(0x156)]&&(_0x377bc8=this[_0x10acae(0x123)](_0x53f3bc[_0x10acae(0x156)][_0x10acae(0x1d9)]),_0x109993=new Date(_0x53f3bc[_0x10acae(0x156)][_0x10acae(0x19f)])),new Comment(this,{'threadId':_0x472cf8,'id':_0x415f3b,'author':_0x377bc8||_0x5468d1,'creator':_0x5468d1,'content':_0xf3f792,'createdAt':_0x557de1,'authoredAt':_0x109993,'attributes':_0x53f3bc});}[_0x3b9906(0x174)](_0x23c7ed){const _0x5e2b18=_0x3b9906;let {threadId:_0x15adc8,content:_0x246a8b,attributes:_0x4852f5,isFromAdapter:_0x5e1d0f}=_0x23c7ed;const _0x561a30=this[_0x5e2b18(0x14b)](_0x23c7ed[_0x5e2b18(0x1a1)]);if(!_0x561a30)throw new _0x429eee(_0x5e2b18(0x162),this);const _0x43fa0e=this[_0x5e2b18(0x145)](_0x23c7ed),{id:_0x58b179}=_0x43fa0e;if(_0x561a30[_0x5e2b18(0x14d)](_0x43fa0e),_0x5e1d0f||!this[_0x5e2b18(0x1a3)]||_0x5e2b18(0x1cd)!=typeof this[_0x5e2b18(0x1a3)][_0x5e2b18(0x15e)]||!_0x561a30[_0x5e2b18(0x18a)])return Promise[_0x5e2b18(0x165)]();const _0x17a4ec=this[_0x5e2b18(0x1d6)][_0x5e2b18(0x1e2)][_0x5e2b18(0x1eb)](_0x5e2b18(0x1f3)),{channelId:_0x4568bf}=_0x561a30,_0x46846b=_0x17a4ec[_0x5e2b18(0x1db)](_0x43bf93(this[_0x5e2b18(0x1d6)][_0x5e2b18(0x1e6)],_0x5e2b18(0x113)));return _0x4852f5||(_0x4852f5={}),this[_0x5e2b18(0x1a3)][_0x5e2b18(0x15e)]({'channelId':_0x4568bf,'threadId':_0x15adc8,'commentId':_0x58b179,'content':_0x246a8b,'attributes':_0x4852f5})[_0x5e2b18(0x1e9)](_0x6580ec=>{const _0x564315=_0x5e2b18;_0x17a4ec[_0x564315(0x1c2)](_0x46846b),_0x6580ec&&this[_0x564315(0x142)]({'channelId':_0x4568bf,'threadId':_0x15adc8,'commentId':_0x58b179,'createdAt':_0x6580ec[_0x564315(0x19f)],'isFromAdapter':!0x0});})[_0x5e2b18(0x128)](_0x27c10b=>{const _0x4a6bf7=_0x5e2b18;throw console[_0x4a6bf7(0x177)](_0x27c10b),new _0x429eee(_0x4a6bf7(0x1e0),this);});}[_0x3b9906(0x142)]({threadId:_0x37c0ca,commentId:_0x525b06,content:_0x5618e6,createdAt:_0x37df23,attributes:_0x280945,isFromAdapter:_0x2289a2}){const _0x1bfd5c=_0x3b9906;if(void 0x0!==_0x5618e6&&(_0x1bfd5c(0x126)!=typeof _0x5618e6||!_0x5618e6[_0x1bfd5c(0x1c9)]()[_0x1bfd5c(0x199)]))throw new _0x429eee(_0x1bfd5c(0x1e7));const _0x490cf9=this[_0x1bfd5c(0x14b)](_0x37c0ca),_0x1a2d17=_0x490cf9[_0x1bfd5c(0x1b2)](_0x525b06);if(!_0x1a2d17)throw new _0x429eee(_0x1bfd5c(0x16e),this);let _0x4f0d1b=!0x1;if(_0x5618e6&&_0x5618e6!==_0x1a2d17[_0x1bfd5c(0x147)]&&(_0x1a2d17[_0x1bfd5c(0x10e)]||_0x2289a2)&&(_0x1a2d17[_0x1bfd5c(0x147)]=_0x5618e6,_0x4f0d1b=!0x0),_0x37df23&&_0x37df23!==_0x1a2d17[_0x1bfd5c(0x19f)]&&(_0x1a2d17[_0x1bfd5c(0x19f)]=_0x37df23,_0x1a2d17[_0x1bfd5c(0x11d)]&&_0x1a2d17[_0x1bfd5c(0x11d)][_0x1bfd5c(0x156)]||(_0x1a2d17[_0x1bfd5c(0x167)]=_0x37df23),_0x4f0d1b=!0x0),_0x280945&&!_0x57652f(_0x280945,_0x1a2d17[_0x1bfd5c(0x11d)])&&(_0x1a2d17[_0x1bfd5c(0x11d)]=_0x280945,_0x4f0d1b=!0x0),!_0x4f0d1b)return Promise[_0x1bfd5c(0x165)]();if(_0x490cf9[_0x1bfd5c(0x171)](_0x1bfd5c(0x1aa)),_0x2289a2||!this[_0x1bfd5c(0x1a3)]||_0x1bfd5c(0x1cd)!=typeof this[_0x1bfd5c(0x1a3)][_0x1bfd5c(0x1cf)])return Promise[_0x1bfd5c(0x165)]();const _0x51d630=this[_0x1bfd5c(0x1d6)][_0x1bfd5c(0x1e2)][_0x1bfd5c(0x1eb)](_0x1bfd5c(0x1f3)),{channelId:_0x4f74db}=this[_0x1bfd5c(0x14b)](_0x1a2d17[_0x1bfd5c(0x1a1)]),_0x57b1f1=_0x51d630[_0x1bfd5c(0x1db)](_0x43bf93(this[_0x1bfd5c(0x1d6)][_0x1bfd5c(0x1e6)],_0x1bfd5c(0x113)));return this[_0x1bfd5c(0x1a3)][_0x1bfd5c(0x1cf)]({'channelId':_0x4f74db,'threadId':_0x37c0ca,'commentId':_0x525b06,'content':_0x5618e6,'attributes':_0x280945})[_0x1bfd5c(0x1e9)](()=>_0x51d630[_0x1bfd5c(0x1c2)](_0x57b1f1))[_0x1bfd5c(0x128)](_0x367548=>{const _0x52be4b=_0x1bfd5c;throw console[_0x52be4b(0x177)](_0x367548),new _0x429eee(_0x52be4b(0x190),this);});}[_0x3b9906(0x183)]({threadId:_0x35c165,commentId:_0x28e472,isFromAdapter:_0x45a97d}){const _0x59636d=_0x3b9906,_0x58f581=this[_0x59636d(0x14b)](_0x35c165),_0x1c69ae=_0x58f581[_0x59636d(0x1b2)](_0x28e472);if(!_0x1c69ae)throw new _0x429eee(_0x59636d(0x180),this);if(_0x58f581[_0x59636d(0x140)](_0x1c69ae),_0x45a97d||!this[_0x59636d(0x1a3)]||_0x59636d(0x1cd)!=typeof this[_0x59636d(0x1a3)][_0x59636d(0x118)])return Promise[_0x59636d(0x165)]();const _0x31f6b0=this[_0x59636d(0x1d6)][_0x59636d(0x1e2)][_0x59636d(0x1eb)](_0x59636d(0x1f3)),{channelId:_0x377a28}=_0x58f581,_0x1032f0=_0x31f6b0[_0x59636d(0x1db)](_0x43bf93(this[_0x59636d(0x1d6)][_0x59636d(0x1e6)],_0x59636d(0x113)));return this[_0x59636d(0x1a3)][_0x59636d(0x118)]({'channelId':_0x377a28,'threadId':_0x35c165,'commentId':_0x28e472})[_0x59636d(0x1e9)](()=>_0x31f6b0[_0x59636d(0x1c2)](_0x1032f0))[_0x59636d(0x128)](_0x46ab7a=>{const _0x3de115=_0x59636d;throw console[_0x3de115(0x177)](_0x46ab7a),new _0x429eee(_0x3de115(0x179),this);});}}function _0x1859(_0x13a640,_0x415d0a){const _0x93ad90=_0x93ad();return _0x1859=function(_0x1859ac,_0x21912d){_0x1859ac=_0x1859ac-0x10d;let _0x3bf0f2=_0x93ad90[_0x1859ac];return _0x3bf0f2;},_0x1859(_0x13a640,_0x415d0a);}export class CommentThread extends/* #__PURE__ -- */
_0x1dc4b2(){[_0x3b9906(0x1b4)];['id'];[_0x3b9906(0x150)];[_0x3b9906(0x15a)];[_0x3b9906(0x1d3)];[_0x3b9906(0x15c)];constructor(_0xe91810,_0x42646f){const _0x1982d2=_0x3b9906;super();const _0x3a046e=_0x42646f[_0x1982d2(0x178)];this[_0x1982d2(0x1b4)]=_0x42646f[_0x1982d2(0x1b4)],this['id']=_0x42646f['id'],this[_0x1982d2(0x1d3)]=new _0x4dfe7b(),this[_0x1982d2(0x15c)]=_0xe91810,this[_0x1982d2(0x150)]=!0x1,this[_0x1982d2(0x15a)]=_0x42646f[_0x1982d2(0x18a)],this[_0x1982d2(0x1a5)](_0x1982d2(0x155),!0x0),this[_0x1982d2(0x1d1)](_0x1982d2(0x1e1))['to'](_0xe91810,_0x1982d2(0x13c),_0xe91810,_0x1982d2(0x13a),()=>_0xe91810[_0x1982d2(0x1e1)](this[_0x1982d2(0x1b4)])),this[_0x1982d2(0x1d1)](_0x1982d2(0x1ad))['to'](_0xe91810,_0x1982d2(0x13c),()=>_0xe91810[_0x1982d2(0x13d)](this[_0x1982d2(0x1b4)])[_0x1982d2(0x134)]),this[_0x1982d2(0x1d1)](_0x1982d2(0x141))['to'](_0xe91810,_0x1982d2(0x13c),()=>{const _0x7a1afc=_0x1982d2,_0x24c029=_0xe91810[_0x7a1afc(0x13d)](this[_0x7a1afc(0x1b4)]);return _0x24c029[_0x7a1afc(0x18b)]||_0x24c029[_0x7a1afc(0x134)];}),this[_0x1982d2(0x1d1)](_0x1982d2(0x178))['to'](_0xe91810,_0x1982d2(0x13c),()=>_0x3a046e&&_0xe91810[_0x1982d2(0x13d)](this[_0x1982d2(0x1b4)])[_0x1982d2(0x165)]),this[_0x1982d2(0x1a5)](_0x1982d2(0x1d6),_0x42646f[_0x1982d2(0x1d6)]),this[_0x1982d2(0x1d1)](_0x1982d2(0x152))['to'](this,_0x1982d2(0x114),this,_0x1982d2(0x19a),(_0x48a4fc,_0xa77290)=>_0x48a4fc?_0xa77290?_0x48a4fc<_0xa77290?_0x48a4fc:_0xa77290:_0x48a4fc:_0xa77290),this[_0x1982d2(0x1a5)](_0x1982d2(0x19a),_0x42646f[_0x1982d2(0x19a)]||null),this[_0x1982d2(0x1a5)](_0x1982d2(0x114),_0x42646f[_0x1982d2(0x114)]||null),this[_0x1982d2(0x1a5)](_0x1982d2(0x1ab),_0x42646f[_0x1982d2(0x1ab)]||null),this[_0x1982d2(0x1d1)](_0x1982d2(0x1b8))['to'](this,_0x1982d2(0x114),_0x46c1ce=>!!_0x46c1ce),this[_0x1982d2(0x1a5)](_0x1982d2(0x11d),_0x42646f[_0x1982d2(0x11d)]||{});}get[_0x3b9906(0x1b0)](){const _0x307d14=_0x3b9906;return Array[_0x307d14(0x1c5)](this[_0x307d14(0x1d3)])[_0x307d14(0x1bc)]((_0x308a74,_0x4f0300)=>_0x308a74+_0x4f0300[_0x307d14(0x1b0)],0x0);}get[_0x3b9906(0x199)](){const _0x5ed3bf=_0x3b9906;return this[_0x5ed3bf(0x1d3)][_0x5ed3bf(0x199)];}get[_0x3b9906(0x115)](){const _0x587141=_0x3b9906;return this[_0x587141(0x150)];}get[_0x3b9906(0x18a)](){const _0x28fc8b=_0x3b9906;return this[_0x28fc8b(0x15a)];}[_0x3b9906(0x119)](){const _0x102027=_0x3b9906,{channelId:_0x2b090f,id:_0x5a3200}=this;this[_0x102027(0x15c)][_0x102027(0x171)](bt(_0x102027(0x17c),_0x2b090f),{'channelId':_0x2b090f,'threadId':_0x5a3200});}[_0x3b9906(0x1b1)](_0x3c4a11){const _0x5bb4b1=_0x3b9906;this[_0x5bb4b1(0x163)]({'unlinkedAt':_0x3c4a11});}[_0x3b9906(0x165)]({resolvedAt:_0xc95c7d=new Date(),resolvedBy:_0x161563=null,isFromAdapter:_0x4511c9=!0x1}={}){const _0x224adb=_0x3b9906,_0x1007e5=this[_0x224adb(0x15c)][_0x224adb(0x1d6)][_0x224adb(0x1e2)][_0x224adb(0x1eb)](_0x141c0c)['me'],{channelId:_0xaa6de,id:_0xa77cd8}=this;this[_0x224adb(0x15c)][_0x224adb(0x171)](bt(_0x224adb(0x16d),_0xaa6de),{'channelId':_0xaa6de,'threadId':_0xa77cd8,'resolvedAt':_0xc95c7d,'resolvedBy':_0x161563||_0x1007e5['id'],'isFromAdapter':_0x4511c9});}[_0x3b9906(0x138)]({isFromAdapter:_0x19dbfe=!0x1}={}){const _0x1e32bd=_0x3b9906,{channelId:_0xae02b6,id:_0x2f58fc}=this;this[_0x1e32bd(0x15c)][_0x1e32bd(0x171)](bt(_0x1e32bd(0x189),_0xae02b6),{'channelId':_0xae02b6,'threadId':_0x2f58fc,'isFromAdapter':_0x19dbfe});}[_0x3b9906(0x1d5)](_0x25b1f3){const _0x2e6143=_0x3b9906;this[_0x2e6143(0x1d6)]||this[_0x2e6143(0x163)]({'context':_0x25b1f3});}[_0x3b9906(0x12a)](_0x50bb5e,_0x15cdd6){const _0x5c1ef2=_0x3b9906,_0x36c732=_0x4494aa(this[_0x5c1ef2(0x11d)]);_0xa121d8(_0x36c732,_0x50bb5e,_0x15cdd6),this[_0x5c1ef2(0x163)]({'attributes':_0x36c732});}[_0x3b9906(0x1ce)](_0x33f02b){const _0xe15cd=_0x3b9906,_0x5affe6=_0x4494aa(this[_0xe15cd(0x11d)]);_0x5d9422(_0x5affe6,_0x33f02b),this[_0xe15cd(0x163)]({'attributes':_0x5affe6});}[_0x3b9906(0x1c2)]({isFromAdapter:_0x2e85e5=!0x1}={}){const _0x2e8e00=_0x3b9906,{channelId:_0x1b8795,id:_0x33874d}=this;this[_0x2e8e00(0x15c)][_0x2e8e00(0x171)](bt(_0x2e8e00(0x191),_0x1b8795),{'channelId':_0x1b8795,'threadId':_0x33874d,'isFromAdapter':_0x2e85e5});}[_0x3b9906(0x17a)](_0x506a08){const _0x3fd07d=_0x3b9906;return this[_0x3fd07d(0x15c)][_0x3fd07d(0x1de)]({'threadId':this['id'],'target':_0x506a08});}[_0x3b9906(0x15e)](_0x6a835b){const _0xf18cf4=_0x3b9906,{channelId:_0x2d0942,id:_0x464c31}=this;this[_0xf18cf4(0x15c)][_0xf18cf4(0x171)](bt(_0xf18cf4(0x15e),_0x2d0942,_0x464c31),Object[_0xf18cf4(0x112)]({'channelId':_0x2d0942,'threadId':_0x464c31},_0x6a835b));}[_0x3b9906(0x1b2)](_0x4abd67){const _0x5dec1c=_0x3b9906;if(_0x5dec1c(0x126)!=typeof _0x4abd67)throw new _0x429eee(_0x5dec1c(0x1a6),null,{'commentId':_0x4abd67});return this[_0x5dec1c(0x1d3)][_0x5dec1c(0x1eb)](_0x4abd67);}[_0x3b9906(0x197)](){const _0xde3eaa=_0x3b9906;return{'threadId':this['id'],'context':this[_0xde3eaa(0x1d6)],'unlinkedAt':this[_0xde3eaa(0x19a)],'resolvedAt':this[_0xde3eaa(0x114)],'resolvedBy':this[_0xde3eaa(0x1ab)]?this[_0xde3eaa(0x1ab)]['id']:null,'archivedAt':this[_0xde3eaa(0x152)],'comments':this[_0xde3eaa(0x1d3)][_0xde3eaa(0x1bf)](_0x28f131=>_0x28f131[_0xde3eaa(0x197)]()),'attributes':this[_0xde3eaa(0x11d)]};}[_0x3b9906(0x14d)](_0x4d044b){const _0x13917a=_0x3b9906;return this[_0x13917a(0x15f)](_0x4d044b,_0x13917a(0x10d),()=>{const _0x34c841=_0x13917a,_0x4b9bcb=this[_0x34c841(0x1dd)](_0x4d044b),_0x4deee1=this[_0x34c841(0x1d3)];_0x4b9bcb-0x1!=_0x4deee1[_0x34c841(0x144)](_0x4d044b)&&_0x4b9bcb+0x1!=_0x4deee1[_0x34c841(0x144)](_0x4d044b)&&(this[_0x34c841(0x140)](_0x4d044b),this[_0x34c841(0x14d)](_0x4d044b));}),this[_0x13917a(0x1d3)][_0x13917a(0x1db)](_0x4d044b,this[_0x13917a(0x1dd)](_0x4d044b));}[_0x3b9906(0x163)](_0x5d3e06){const _0xc625d3=_0x3b9906,{channelId:_0x2834fa,id:_0x3ca006}=this;this[_0xc625d3(0x15c)][_0xc625d3(0x171)](bt(_0xc625d3(0x185),_0x2834fa),{..._0x5d3e06,'channelId':_0x2834fa,'threadId':_0x3ca006});}[_0x3b9906(0x140)](_0x368be6){const _0x1dc5de=_0x3b9906;return this[_0x1dc5de(0x14a)](_0x368be6),_0x368be6[_0x1dc5de(0x15b)](),this[_0x1dc5de(0x1d3)][_0x1dc5de(0x1c2)](_0x368be6);}[_0x3b9906(0x1dd)](_0x15bb24){const _0x47fd77=_0x3b9906,_0x4bbfec=this[_0x47fd77(0x1d3)][_0x47fd77(0x143)](_0x35e192=>new Date(_0x35e192[_0x47fd77(0x167)])[_0x47fd77(0x186)]()>new Date(_0x15bb24[_0x47fd77(0x167)])[_0x47fd77(0x186)]());return _0x4bbfec?this[_0x47fd77(0x1d3)][_0x47fd77(0x144)](_0x4bbfec):this[_0x47fd77(0x199)];}}export class Comment extends/* #__PURE__ -- */
_0x1dc4b2(){['id'];[_0x3b9906(0x1a1)];[_0x3b9906(0x111)];[_0x3b9906(0x137)];[_0x3b9906(0x139)];[_0x3b9906(0x19f)];[_0x3b9906(0x15c)];constructor(_0xa8bdfc,_0x5b9e14){const _0xc0ef4f=_0x3b9906;super();const _0x260603=_0xa8bdfc[_0xc0ef4f(0x1d6)][_0xc0ef4f(0x1e2)][_0xc0ef4f(0x1eb)](_0x141c0c)['me'],_0x3b7e5e=_0xa8bdfc[_0xc0ef4f(0x14b)](_0x5b9e14[_0xc0ef4f(0x1a1)]),_0x975a31=0x0===_0x3b7e5e[_0xc0ef4f(0x1d3)][_0xc0ef4f(0x199)],_0x358e5d=_0x260603===_0x5b9e14[_0xc0ef4f(0x111)];this['id']=_0x5b9e14['id'],this[_0xc0ef4f(0x1a1)]=_0x5b9e14[_0xc0ef4f(0x1a1)],this[_0xc0ef4f(0x111)]=_0x5b9e14[_0xc0ef4f(0x111)],this[_0xc0ef4f(0x137)]=_0x5b9e14[_0xc0ef4f(0x137)],this[_0xc0ef4f(0x139)]=Boolean(_0x5b9e14[_0xc0ef4f(0x11d)]&&_0x5b9e14[_0xc0ef4f(0x11d)][_0xc0ef4f(0x156)]),this[_0xc0ef4f(0x1a5)](_0xc0ef4f(0x147),_0x5b9e14[_0xc0ef4f(0x147)]),this[_0xc0ef4f(0x19f)]=_0x5b9e14[_0xc0ef4f(0x19f)]||new Date(),this[_0xc0ef4f(0x1a5)](_0xc0ef4f(0x167),_0x5b9e14[_0xc0ef4f(0x167)]||new Date()),this[_0xc0ef4f(0x1d1)](_0xc0ef4f(0x114))['to'](_0x3b7e5e,_0xc0ef4f(0x114)),this[_0xc0ef4f(0x1a5)](_0xc0ef4f(0x11d),_0x5b9e14[_0xc0ef4f(0x11d)]||{}),this[_0xc0ef4f(0x1d1)](_0xc0ef4f(0x10e))['to'](_0xa8bdfc,_0xc0ef4f(0x13c),()=>{const _0x158361=_0xc0ef4f,_0x324d0d=_0xa8bdfc[_0x158361(0x13d)](_0x3b7e5e[_0x158361(0x1b4)])[_0x158361(0x18b)],_0x256443=_0xa8bdfc[_0x158361(0x13d)](_0x3b7e5e[_0x158361(0x1b4)])[_0x158361(0x194)];return _0x358e5d&&_0x324d0d||!_0x358e5d&&_0x256443;}),this[_0xc0ef4f(0x1d1)](_0xc0ef4f(0x1ad))['to'](_0x3b7e5e,_0xc0ef4f(0x1ad),_0xa8bdfc,_0xc0ef4f(0x13c),_0x39d457=>{const _0x3553d4=_0xc0ef4f,_0x540e5a=_0xa8bdfc[_0x3553d4(0x13d)](_0x3b7e5e[_0x3553d4(0x1b4)])[_0x3553d4(0x18b)],_0x547a4e=_0xa8bdfc[_0x3553d4(0x13d)](_0x3b7e5e[_0x3553d4(0x1b4)])[_0x3553d4(0x194)];return _0x358e5d&&_0x540e5a||_0x39d457&&_0x975a31||!_0x358e5d&&_0x547a4e&&!_0x975a31;}),this[_0xc0ef4f(0x1d1)](_0xc0ef4f(0x1e1))['to'](_0x3b7e5e,_0xc0ef4f(0x1e1)),this[_0xc0ef4f(0x15c)]=_0xa8bdfc;}get[_0x3b9906(0x1b0)](){const _0x36426d=_0x3b9906;return Math[_0x36426d(0x124)](function(_0x1bd345){const _0x2fb8c5=_0x36426d,_0x86c903=document[_0x2fb8c5(0x1c7)](_0x2fb8c5(0x172));return _0x86c903[_0x2fb8c5(0x1a8)]=_0x1bd345,_0x86c903[_0x2fb8c5(0x1c4)][_0x2fb8c5(0x199)];}(this[_0x36426d(0x147)]),0xc8);}[_0x3b9906(0x1c0)](_0x10054d){const _0x2e1945=_0x3b9906,{threadId:_0x2f0b20,id:_0x2ca23d}=this;if(!this[_0x2e1945(0x15c)][_0x2e1945(0x153)](_0x2f0b20))throw new _0x429eee(_0x2e1945(0x122),this);const {channelId:_0x321ebc}=this[_0x2e1945(0x15c)][_0x2e1945(0x14b)](_0x2f0b20);this[_0x2e1945(0x15c)][_0x2e1945(0x171)](bt(_0x2e1945(0x1cf),_0x321ebc,_0x2f0b20),{'channelId':_0x321ebc,'threadId':_0x2f0b20,'commentId':_0x2ca23d,..._0x10054d});}[_0x3b9906(0x12a)](_0x5a88e0,_0x4c67a3){const _0x3919cd=_0x3b9906,_0x41660f=_0x4494aa(this[_0x3919cd(0x11d)]);_0xa121d8(_0x41660f,_0x5a88e0,_0x4c67a3),this[_0x3919cd(0x1c0)]({'attributes':_0x41660f});}[_0x3b9906(0x1ce)](_0x7c87f6){const _0x213f47=_0x3b9906,_0x5edcf9=_0x4494aa(this[_0x213f47(0x11d)]);_0x5d9422(_0x5edcf9,_0x7c87f6),this[_0x213f47(0x1c0)]({'attributes':_0x5edcf9});}[_0x3b9906(0x1c2)](_0x37a54f={}){const _0x283b14=_0x3b9906;if(!_0x37a54f[_0x283b14(0x175)]&&!this[_0x283b14(0x1ad)])return;const {threadId:_0xb2fa0d,id:_0x12656e}=this;if(!this[_0x283b14(0x15c)][_0x283b14(0x153)](_0xb2fa0d))throw new _0x429eee(_0x283b14(0x1c8),this);const {channelId:_0xf35fde}=this[_0x283b14(0x15c)][_0x283b14(0x14b)](_0xb2fa0d);this[_0x283b14(0x15c)][_0x283b14(0x171)](bt(_0x283b14(0x118),_0xf35fde,_0xb2fa0d),{'channelId':_0xf35fde,'threadId':_0xb2fa0d,'commentId':_0x12656e,..._0x37a54f});}[_0x3b9906(0x197)](){const _0x558d84=_0x3b9906;return{'commentId':this['id'],'content':this[_0x558d84(0x147)],'createdAt':this[_0x558d84(0x19f)],'authorId':this[_0x558d84(0x137)]['id'],'attributes':this[_0x558d84(0x11d)]};}[_0x3b9906(0x15b)](){const _0x4425e0=_0x3b9906;this[_0x4425e0(0x14a)]();}}function bt(_0xdd071,..._0xaff4c){for(const _0x49fc47 of _0xaff4c)void 0x0!==_0x49fc47&&(_0xdd071+=':'+String(_0x49fc47));return _0xdd071;}