UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

25 lines • 46.1 kB
/* * Copyright (c) 2003-2026, 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 _0x34f716=_0x38a4;(function(_0x26dcf9,_0x3a1438){const _0xcee6c4=_0x38a4,_0xbd477b=_0x26dcf9();while(!![]){try{const _0x46790f=parseInt(_0xcee6c4(0x265))/0x1+-parseInt(_0xcee6c4(0x1e2))/0x2+parseInt(_0xcee6c4(0x214))/0x3*(parseInt(_0xcee6c4(0x22d))/0x4)+parseInt(_0xcee6c4(0x1c8))/0x5+parseInt(_0xcee6c4(0x1a1))/0x6*(-parseInt(_0xcee6c4(0x257))/0x7)+-parseInt(_0xcee6c4(0x1dd))/0x8*(parseInt(_0xcee6c4(0x1fa))/0x9)+-parseInt(_0xcee6c4(0x24e))/0xa*(-parseInt(_0xcee6c4(0x246))/0xb);if(_0x46790f===_0x3a1438)break;else _0xbd477b['push'](_0xbd477b['shift']());}catch(_0x3b3a60){_0xbd477b['push'](_0xbd477b['shift']());}}}(_0x2fb0,0x43f80));import{PendingActions as _0x2be6d8,ContextPlugin as _0x223ef5,Editor as _0x44f3fb}from'ckeditor5/src/core.js';import{Collection as _0x16b5d4,uid as _0x4293c1,CKEditorError as _0x4080e6,ObservableMixin as _0x735bad}from'ckeditor5/src/utils.js';import{getDateTimeFormatter as _0x35e7ae,hashObject as _0x304caf,Users as _0x4af60c}from'ckeditor5-collaboration/src/collaboration-core.js';import{cloneDeep as _0x3b5c91,isEqual as _0x3dad6e,set as _0x548ac5,unset as _0x1108db}from'es-toolkit/compat';import{CommentThreadController as _0xcddcc1}from'./ui/commentthreadcontroller.js';import{CommentThreadView as _0x4da988}from'./ui/view/commentthreadview.js';function _0x2fb0(){const _0x511fcf=['trim','add','_add','openNewCommentThread','_remove','change:isDirty','_repository','attachTo','getIndex','commentsrepository-update-comment-missing-comment-thread','225972EkNixa','_bindAnnotationToEditors','external:','commentsrepository-invalid-comment-content','getPermissions','commentsListView','commentsrepository-adapter-already-set','warn','submit','commentsrepository-invalid-commentid','_adapter','PENDING_ACTION_COMMENT_THREAD','focusableElements','plugins','CommentThreadView','toJSON','isDirty','createCommentThreadController','_addCommentThread','filter','focusTracker','delete','setContext','activate','removeAttribute','16PblCqo','comment','getByInnerView','lowest','_update','isVisible','PendingActions','commentsrepository-active-not-attached','isPremiumPlugin','fetchCommentThread','creator','remove','editorDestroyed','isExternal','setPermissions','deactivateAll','fire','unlinkedAt','addComment','commentsrepository-add-comment-internal-error','switchReadOnly','change:activeAnnotations','comments.maxCommentCharsWhenCollapsed','assign','from','925342heDEum','CommentsRepository','commentsrepository-active-missing-comment-thread','isActive','createElement','getCommentThread','change:authoredAt','activeCommentThread','60wjZUgZ','_isSubmitted','_isAttached','commentsrepository-duplicated-comment-thread-id','resolve','Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.','commentsrepository-missing-target','innerHTML','commentsrepository-get-comment-invalid-id','1795577XbUlMh','commentsrepository-invalid-comment-authorid','_updateActiveAnnotation','_removeActiveAnnotation','getTime','isResolvable','getCommentThreads','pluginName','listenTo','isResolved','createdAt','bind','attributes','body','898voEpCd','commentsrepository-remove-comment-thread-internal-error','_unbindEditors','div','_updateComment','_hasTargetInContent','addUser','canComment','_findOptimalIndex','string','commentsrepository-remove-missing-comment','comments.maxThreadTotalWeight','catch','isOfficialPlugin','highest','_submitCommentThread','comments.CommentView','threadId','admin','config','comments','isSubmitted','reduce','length','max','model','_readOnlyChannels','commentId','push','authorName','_createNewComment','commentsrepository-update-comment-thread-internal-error','_removeCommentThread','change:_permissions','isEditable','_updateCommentThread','author','12eUepto','addCommentThread','commentsrepository-remove-comment-missing-comment-thread','CommentView','set','channelId','hasCommentThread','comments.copyMarkers','error','authoredAt','escape','innerView','commentsrepository-update-comment-invalid-content','type','commentsrepository-attach-missing-comment-thread','getComment','resolvedBy','submitCommentThread','update','comments.CommentThreadView','_resolveCommentThread','comments.editorConfig','_removeComment','commentThreadInputView','adapter','setAttribute','commentsrepository-remove-comment-internal-error','commentsrepository-fetch-comment-thread','values','_reopenCommentThread','requires','locale','_addComment','define','commentsrepository-add-comment-to-missing-comment-thread','commentsrepository-reopen-comment-thread','_threads','focus','get','1242660VGuFgy','map','function','_detachCommentThread','resolveCommentThread','destroy','modifyAll','isRemovable','commentsrepository-remove-missing-comment-thread','_threadToController','isReadOnly','getCommentThreadForAnnotation','setUnlinkedAt','commentsrepository-resolve-comment-thread-internal-error','textContent','commentsrepository-reopen-comment-thread-internal-error','context','resolvedAt','isAttached','removeComment','weight','960skDsXz','_permissions','@external','reopen','content','315192eeyqIR','view','commentsrepository-resolved-comment-thread','commentsrepository-update-comment-internal-error','change:_readOnlyChannels','find','getUser','_createCommentThreadView','editorReady','removeCommentThread','write','stopListening','refreshVisibility','_getExternalAuthor','commentsrepository-update-missing-comment','commentsrepository-add-comment-thread-internal-error','once','commentUpdated','isFromAdapter','getAnnotationForCommentThread','comments.maxCommentsWhenCollapsed','reopenCommentThread','licenseKey','setActiveCommentThread','7983LCifJS','commentsrepository-add-comment-user-not-exists','commentInputView','noChannel','updateComment','commentsrepository-invalid-comment-thread-id','updateCommentThread','commentsrepository-missing-comment-thread','init','then','_attachCommentThread','archivedAt','has','commentsrepository-missing-thread-and-adapter-method','_viewToController','bodyCollectionContainer'];_0x2fb0=function(){return _0x511fcf;};return _0x2fb0();}import{CommentView as _0x4309f8}from'./ui/view/commentview.js';import{getTranslation as _0x3a16c3}from'../utils/common-translations.js';import'../../theme/comment.css';import'../../theme/commentthread.css';import'../../theme/commentinput.css';import{AnnotationView as _0x146f56}from'../annotations/view/annotationview.js';import{Annotation as _0x5a8a14}from'../annotations/annotation.js';import{Annotations as _0x96d1f8}from'../annotations/annotations.js';const _t=Symbol(_0x34f716(0x1fd)),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};export class CommentsRepository extends _0x223ef5{[_0x34f716(0x1c5)];[_0x34f716(0x1d1)];[_0x34f716(0x208)];static get[_0x34f716(0x1bf)](){return[_0x96d1f8,_0x2be6d8,_0x4af60c];}static get[_0x34f716(0x25e)](){const _0x26f3b7=_0x34f716;return _0x26f3b7(0x247);}static get[_0x34f716(0x272)](){return!0x0;}static get[_0x34f716(0x235)](){return!0x0;}constructor(_0x110f45){const _0x2a24cc=_0x34f716;super(_0x110f45),this[_0x2a24cc(0x1c5)]=new Map(),this[_0x2a24cc(0x1d1)]=new Map(),this[_0x2a24cc(0x208)]=new Map(),this[_0x2a24cc(0x1a5)](_0x2a24cc(0x27f),new Set()),this[_0x2a24cc(0x1a5)](_0x2a24cc(0x1de),new Map());const _0x99f7d8=this[_0x2a24cc(0x1d8)][_0x2a24cc(0x278)];_0x99f7d8[_0x2a24cc(0x1c2)](_0x2a24cc(0x1f6),0x2),_0x99f7d8[_0x2a24cc(0x1c2)](_0x2a24cc(0x270),0x1f4),_0x99f7d8[_0x2a24cc(0x1c2)](_0x2a24cc(0x243),0x8c),_0x99f7d8[_0x2a24cc(0x1c2)](_0x2a24cc(0x1b4),_0x4da988),_0x99f7d8[_0x2a24cc(0x1c2)](_0x2a24cc(0x275),_0x4309f8),_0x99f7d8[_0x2a24cc(0x1c7)](_0x2a24cc(0x1b6))||console[_0x2a24cc(0x21b)](_0x2a24cc(0x253));}[_0x34f716(0x202)](){const _0x3d18e6=_0x34f716,_0x391047=this[_0x3d18e6(0x1d8)][_0x3d18e6(0x221)][_0x3d18e6(0x1c7)](_0x96d1f8);this[_0x3d18e6(0x1a5)](_0x3d18e6(0x24d),null),this['on'](_0x3d18e6(0x1a2),(_0x2ce3fc,_0x3d4f18)=>this[_0x3d18e6(0x226)](_0x3d4f18)),this['on'](_0x3d18e6(0x1b2),(_0x2145be,_0x2b924c)=>this[_0x3d18e6(0x274)](_0x2b924c)),this['on'](_0x3d18e6(0x1cc),(_0x22a45f,_0x58ea54)=>this[_0x3d18e6(0x1b5)](_0x58ea54)),this['on'](_0x3d18e6(0x1cc),(_0x355b76,_0x211511)=>this[_0x3d18e6(0x259)](_0x211511),{'priority':_0x3d18e6(0x230)}),this['on'](_0x3d18e6(0x1f7),(_0x3daf75,_0x3bf7d7)=>this[_0x3d18e6(0x1be)](_0x3bf7d7)),this['on'](_0x3d18e6(0x1f7),(_0x3aabbd,_0x4e416d)=>this[_0x3d18e6(0x259)](_0x4e416d),{'priority':_0x3d18e6(0x230)}),this['on'](_0x3d18e6(0x1eb),(_0x39d133,_0x3a762c)=>this[_0x3d18e6(0x19c)](_0x3a762c)),this['on'](_0x3d18e6(0x200),(_0x3c9ac5,_0x4f963c)=>this[_0x3d18e6(0x19f)](_0x4f963c)),this['on'](_0x3d18e6(0x200),(_0x4267f4,_0x22c0f7)=>this[_0x3d18e6(0x259)](_0x22c0f7),{'priority':_0x3d18e6(0x230)}),this['on'](_0x3d18e6(0x23f),(_0x1252b4,_0x6ff55e)=>this[_0x3d18e6(0x1c1)](_0x6ff55e)),this['on'](_0x3d18e6(0x1fe),(_0x359a97,_0x4fd802)=>this[_0x3d18e6(0x269)](_0x4fd802)),this['on'](_0x3d18e6(0x1db),(_0x3459e6,_0x26b052)=>this[_0x3d18e6(0x1b7)](_0x26b052)),this['on'](_0x3d18e6(0x23f),(_0x617b4e,{threadId:_0x5bee9b,isFromAdapter:_0x1c4ed9})=>{const _0x5319e4=_0x3d18e6;if(_0x1c4ed9)return;const _0x423505=this[_0x5319e4(0x24b)](_0x5bee9b),_0x2ea506=_0x423505&&this[_0x5319e4(0x1d1)][_0x5319e4(0x1c7)](_0x423505);_0x2ea506&&_0x2ea506[_0x5319e4(0x1e3)][_0x5319e4(0x219)][_0x5319e4(0x1c6)](-0x1);},{'priority':_0x3d18e6(0x230)}),this[_0x3d18e6(0x25f)](_0x391047,_0x3d18e6(0x242),(_0x1ccab1,_0x5081c3,_0x3beec9)=>{const _0x2a9592=_0x3d18e6,_0x149389=Array[_0x2a9592(0x245)](_0x3beec9)[_0x2a9592(0x1c9)](_0x58e4d6=>this[_0x2a9592(0x208)][_0x2a9592(0x1c7)](_0x58e4d6[_0x2a9592(0x1ac)]))[_0x2a9592(0x227)](Boolean)[0x0];this[_0x2a9592(0x24d)]=_0x149389?_0x149389[_0x2a9592(0x27e)]:null;});}set[_0x34f716(0x1b9)](_0x4486eb){const _0xee31b1=_0x34f716;if(this[_0xee31b1(0x21e)])throw new _0x4080e6(_0xee31b1(0x21a));this[_0xee31b1(0x21e)]=_0x4486eb;}get[_0x34f716(0x1b9)](){const _0x5eccb8=_0x34f716;return this[_0x5eccb8(0x21e)];}[_0x34f716(0x1a2)]({channelId:_0x324a47=_t,threadId:_0xb8bc3a=_0x4293c1(),comments:_0x2eddb4=[],unlinkedAt:_0x1f3278=null,resolvedAt:_0x3fe914=null,resolvedBy:_0x4b78f3=null,target:_0x4a1ccc=null,context:_0x122ff9=null,attributes:_0x15e872={},isResolvable:_0x2cb17f=!0x0,isSubmitted:_0x68da12=!0x1,isFromAdapter:_0x2588bb=!0x1}={}){const _0x89f975=_0x34f716;return this[_0x89f975(0x23d)](Nt(_0x89f975(0x1a2),_0x324a47),{'channelId':_0x324a47,'threadId':_0xb8bc3a,'comments':_0x2eddb4,'unlinkedAt':_0x1f3278,'resolvedAt':_0x3fe914,'resolvedBy':_0x4b78f3,'target':_0x4a1ccc,'context':_0x122ff9,'attributes':_0x15e872,'isFromAdapter':_0x2588bb,'isResolvable':_0x2cb17f,'isSubmitted':_0x68da12}),this[_0x89f975(0x24b)](_0xb8bc3a);}[_0x34f716(0x20d)]({channelId:_0x6a0b70=_t,threadId:_0x374ac6=_0x4293c1(),target:_0x19fdb2,context:_0x281309=null,isResolvable:_0x35174d=!0x0}){const _0x4911f3=_0x34f716;if(this[_0x4911f3(0x27f)][_0x4911f3(0x206)](_0x6a0b70)||this[_0x4911f3(0x27f)][_0x4911f3(0x206)](void 0x0))return null;if(!_0x19fdb2)throw new _0x4080e6(_0x4911f3(0x254));const _0x49c673=this[_0x4911f3(0x1a2)]({'channelId':_0x6a0b70,'threadId':_0x374ac6,'target':_0x19fdb2,'context':_0x281309,'isResolvable':_0x35174d});if(!_0x49c673)return null;const _0x29c757=this[_0x4911f3(0x1d1)][_0x4911f3(0x1c7)](_0x49c673),_0xa9b127=_0x29c757[_0x4911f3(0x1e3)][_0x4911f3(0x1b8)][_0x4911f3(0x1fc)],_0x194c36=this[_0x4911f3(0x1d8)][_0x4911f3(0x221)][_0x4911f3(0x1c7)](_0x96d1f8),_0x2041a7=_0x194c36[_0x4911f3(0x22f)](_0x29c757[_0x4911f3(0x1e3)]);return _0x194c36[_0x4911f3(0x22b)](_0x2041a7),_0xa9b127[_0x4911f3(0x1f2)](_0x4911f3(0x1ea),()=>_0xa9b127[_0x4911f3(0x1c6)]()),_0x49c673;}[_0x34f716(0x1a7)](_0x4290ed){const _0x58cb84=_0x34f716;if(_0x58cb84(0x26e)!=typeof _0x4290ed)throw new _0x4080e6(_0x58cb84(0x1ff));return this[_0x58cb84(0x1c5)][_0x58cb84(0x206)](_0x4290ed);}[_0x34f716(0x200)]({channelId:_0x4ac0a6=_t,threadId:_0x143cd4,context:_0x4d8a45,unlinkedAt:_0x4c5360,attributes:_0x3279f9,isFromAdapter:_0x62ab6e=!0x1}){const _0x3e70da=_0x34f716;return this[_0x3e70da(0x23d)](Nt(_0x3e70da(0x200),_0x4ac0a6),{'channelId':_0x4ac0a6,'threadId':_0x143cd4,'context':_0x4d8a45,'unlinkedAt':_0x4c5360,'attributes':_0x3279f9,'isFromAdapter':_0x62ab6e}),this[_0x3e70da(0x24b)](_0x143cd4);}[_0x34f716(0x24b)](_0x1b274c){const _0x37bcf4=_0x34f716;if(_0x37bcf4(0x26e)!=typeof _0x1b274c)throw new _0x4080e6(_0x37bcf4(0x1ff));return this[_0x37bcf4(0x1c5)][_0x37bcf4(0x1c7)](_0x1b274c);}[_0x34f716(0x236)]({channelId:_0x33ab67,threadId:_0x4088b2}={}){const _0x1c0edd=_0x34f716,_0x541272=this[_0x1c0edd(0x24b)](_0x4088b2);if(_0x541272)return Promise[_0x1c0edd(0x252)](_0x541272);if(!this[_0x1c0edd(0x1b9)])return Promise[_0x1c0edd(0x252)](void 0x0);if(_0x1c0edd(0x1ca)!=typeof this[_0x1c0edd(0x1b9)][_0x1c0edd(0x24b)])throw new _0x4080e6(_0x1c0edd(0x207),this[_0x1c0edd(0x1d8)]);return this[_0x1c0edd(0x1b9)][_0x1c0edd(0x24b)]({'channelId':_0x33ab67,'threadId':_0x4088b2})[_0x1c0edd(0x203)](_0xed511=>this[_0x1c0edd(0x1a7)](_0x4088b2)?this[_0x1c0edd(0x24b)](_0x4088b2):_0xed511?this[_0x1c0edd(0x1a2)](Object[_0x1c0edd(0x244)]({'isFromAdapter':!0x0,'channelId':_0x33ab67},_0xed511)):void 0x0)[_0x1c0edd(0x271)](_0x143120=>{const _0x3019f3=_0x1c0edd;throw console[_0x3019f3(0x1a9)](_0x143120),new _0x4080e6(_0x3019f3(0x1bc),this[_0x3019f3(0x1d8)]);});}[_0x34f716(0x25d)]({channelId:_0x3fa558,skipNotAttached:_0x1e4cce=!0x1,skipEmpty:_0x1c0a32=!0x1,toJSON:_0x2fb9fc=!0x1}={}){const _0x5d80a6=_0x34f716,_0x4eb6d0=[];for(const _0x4e0a7a of this[_0x5d80a6(0x1c5)][_0x5d80a6(0x1bd)]())_0x3fa558&&_0x4e0a7a[_0x5d80a6(0x1a6)]!==_0x3fa558||_0x1e4cce&&!_0x4e0a7a[_0x5d80a6(0x1da)]||_0x1c0a32&&0x0===_0x4e0a7a[_0x5d80a6(0x27c)]||_0x4eb6d0[_0x5d80a6(0x281)](_0x4e0a7a);return _0x2fb9fc?_0x4eb6d0[_0x5d80a6(0x1c9)](_0x2bb79f=>_0x2bb79f[_0x5d80a6(0x223)]()):_0x4eb6d0;}[_0x34f716(0x1f5)](_0x485940){const _0x197726=_0x34f716,_0x38f1bd=this[_0x197726(0x1d1)][_0x197726(0x1c7)](_0x485940);if(!_0x38f1bd)return null;return this[_0x197726(0x1d8)][_0x197726(0x221)][_0x197726(0x1c7)](_0x96d1f8)[_0x197726(0x22f)](_0x38f1bd[_0x197726(0x1e3)])||null;}[_0x34f716(0x1d3)](_0x3fc7aa){const _0x7d7879=_0x34f716,_0x582c5e=this[_0x7d7879(0x208)][_0x7d7879(0x1c7)](_0x3fc7aa[_0x7d7879(0x1ac)]);return _0x582c5e?_0x582c5e[_0x7d7879(0x27e)]:null;}[_0x34f716(0x1f9)](_0x1232b9){const _0x1e2712=_0x34f716,_0x449f75=this[_0x1e2712(0x1d8)][_0x1e2712(0x221)][_0x1e2712(0x1c7)](_0x96d1f8);if(!_0x1232b9)return void(this[_0x1e2712(0x24d)]&&_0x449f75[_0x1e2712(0x23c)]());const _0x31fe05=this[_0x1e2712(0x24b)](_0x1232b9);if(!_0x31fe05)throw new _0x4080e6(_0x1e2712(0x248),null,{'threadId':_0x1232b9});if(!this[_0x1e2712(0x1d1)][_0x1e2712(0x206)](_0x31fe05))throw new _0x4080e6(_0x1e2712(0x234),null,{'threadId':_0x1232b9});const _0x36640b=_0x449f75[_0x1e2712(0x22f)](this[_0x1e2712(0x1d1)][_0x1e2712(0x1c7)](_0x31fe05)[_0x1e2712(0x1e3)]);_0x449f75[_0x1e2712(0x22b)](_0x36640b);}[_0x34f716(0x241)](_0x11826d,_0x5810e9){const _0x494653=_0x34f716;_0x11826d?this[_0x494653(0x27f)][_0x494653(0x20b)](_0x5810e9):this[_0x494653(0x27f)][_0x494653(0x229)](_0x5810e9),this[_0x494653(0x23d)](_0x494653(0x1e6),_0x494653(0x27f),this[_0x494653(0x27f)],this[_0x494653(0x27f)]);}[_0x34f716(0x1d2)](_0x31c14d){const _0xe7d8cf=_0x34f716;return this[_0xe7d8cf(0x27f)][_0xe7d8cf(0x206)](_0x31c14d)||this[_0xe7d8cf(0x27f)][_0xe7d8cf(0x206)](void 0x0);}[_0x34f716(0x225)](_0xad999,_0x58c207){return new _0xcddcc1(_0xad999,_0x58c207);}[_0x34f716(0x23b)](_0x27630c,_0x56d888=_t){const _0x36c23d=_0x34f716;this[_0x36c23d(0x1de)][_0x36c23d(0x1a5)](_0x56d888,_0x27630c),this[_0x36c23d(0x23d)](_0x36c23d(0x19d),_0x36c23d(0x1de),this[_0x36c23d(0x1de)],this[_0x36c23d(0x1de)]);}[_0x34f716(0x218)](_0x5d0122=_t){const _0x1b8747=_0x34f716;return this[_0x1b8747(0x1de)][_0x1b8747(0x206)](_0x5d0122)?this[_0x1b8747(0x1de)][_0x1b8747(0x1c7)](_0x5d0122):bt;}[_0x34f716(0x226)]({channelId:_0x43bd6e,threadId:_0x5df71a,comments:_0x26282c,unlinkedAt:_0x4c5f16,resolvedAt:_0x47c0ec,resolvedBy:_0xebf773,target:_0x5bfd8b,context:_0x3a525d,attributes:_0x165e72,isFromAdapter:_0x5e49ce,isResolvable:_0x574dd7,isSubmitted:_0x51bf6c}){const _0x43a4f7=_0x34f716;if(_0x43a4f7(0x26e)!=typeof _0x5df71a)throw new _0x4080e6(_0x43a4f7(0x1ff),null,{'threadId':_0x5df71a});if(this[_0x43a4f7(0x1a7)](_0x5df71a))throw new _0x4080e6(_0x43a4f7(0x251),null,{'threadId':_0x5df71a});const _0x42f184=new CommentThread(this,{'channelId':_0x43bd6e,'id':_0x5df71a,'context':_0x3a525d,'attributes':_0x165e72,'unlinkedAt':_0x4c5f16,'resolvedAt':_0x47c0ec,'resolvedBy':_0xebf773?this[_0x43a4f7(0x1d8)][_0x43a4f7(0x221)][_0x43a4f7(0x1c7)](_0x4af60c)[_0x43a4f7(0x1e8)](_0xebf773):null,'isResolvable':_0x574dd7,'isSubmitted':_0x51bf6c||_0x5e49ce});this[_0x43a4f7(0x1c5)][_0x43a4f7(0x1a5)](_0x5df71a,_0x42f184);for(const _0x29e2f3 of _0x26282c)_0x42f184[_0x43a4f7(0x20c)](this[_0x43a4f7(0x19a)]({'threadId':_0x5df71a,..._0x29e2f3}));return _0x5bfd8b&&_0x42f184[_0x43a4f7(0x211)](_0x5bfd8b),_0x5e49ce||!_0x42f184[_0x43a4f7(0x27c)]?Promise[_0x43a4f7(0x252)]():this[_0x43a4f7(0x274)]({'channelId':_0x43bd6e,'threadId':_0x5df71a});}[_0x34f716(0x274)]({channelId:_0x11c382,threadId:_0x37e3e5}){const _0x347f73=_0x34f716;if(!this[_0x347f73(0x1a7)](_0x37e3e5))throw new _0x4080e6(_0x347f73(0x201),this);const _0x39db69=this[_0x347f73(0x24b)](_0x37e3e5);if(_0x39db69[_0x347f73(0x24f)]=!0x0,!this[_0x347f73(0x1b9)]||_0x347f73(0x1ca)!=typeof this[_0x347f73(0x1b9)][_0x347f73(0x1a2)])return Promise[_0x347f73(0x252)]();const {id:_0x48c6f7,comments:_0x4619b0,resolvedAt:_0x7ab194,resolvedBy:_0x3d9e4,context:_0x2eec16,attributes:_0x1b7ee4}=_0x39db69,_0x119e7c=this[_0x347f73(0x1d8)][_0x347f73(0x221)][_0x347f73(0x1c7)](_0x347f73(0x233)),_0x131f2b=_0x119e7c[_0x347f73(0x20b)](_0x3a16c3(this[_0x347f73(0x1d8)][_0x347f73(0x1c0)],_0x347f73(0x21f)));return this[_0x347f73(0x1b9)][_0x347f73(0x1a2)]({'channelId':_0x11c382,'threadId':_0x48c6f7,'comments':_0x4619b0[_0x347f73(0x1c9)](_0x40deaf=>_0x40deaf[_0x347f73(0x223)]()),'resolvedAt':_0x7ab194,'resolvedBy':_0x3d9e4?_0x3d9e4['id']:_0x3d9e4,'context':_0x2eec16,'attributes':_0x1b7ee4})[_0x347f73(0x203)](({comments:_0x45c25a})=>{const _0x888136=_0x347f73;_0x119e7c[_0x888136(0x238)](_0x131f2b);for(const _0x53e9e8 of _0x45c25a)this[_0x888136(0x269)]({'channelId':_0x11c382,'threadId':_0x37e3e5,'commentId':_0x53e9e8[_0x888136(0x280)],'createdAt':_0x53e9e8[_0x888136(0x261)],'isFromAdapter':!0x0});})[_0x347f73(0x271)](_0x3a7b58=>{const _0x1d6fb7=_0x347f73;throw console[_0x1d6fb7(0x1a9)](_0x3a7b58),new _0x4080e6(_0x1d6fb7(0x1f1),this);});}[_0x34f716(0x204)]({threadId:_0x2a3069,target:_0x398b95}){const _0x26f879=_0x34f716,_0x1ec011=this[_0x26f879(0x24b)](_0x2a3069);if(!_0x1ec011)throw new _0x4080e6(_0x26f879(0x1af),this);const _0x5aa859=this[_0x26f879(0x1d8)][_0x26f879(0x221)][_0x26f879(0x1c7)](_0x26f879(0x233)),_0xb6e0dc=this[_0x26f879(0x1d8)][_0x26f879(0x221)][_0x26f879(0x1c7)](_0x96d1f8),_0x6b0192=this[_0x26f879(0x1e9)](_0x1ec011),_0x17f3ca=new _0xcddcc1(_0x1ec011,_0x6b0192);let _0x4c3387=null;_0x6b0192['on'](_0x26f879(0x20f),(_0x14164a,_0x3c7dbb,_0x2a9d9d)=>{const _0x14f16e=_0x26f879;_0x2a9d9d?_0x4c3387=_0x5aa859[_0x14f16e(0x20b)](_0x3a16c3(this[_0x14f16e(0x1d8)][_0x14f16e(0x1c0)],_0x14f16e(0x21f))):_0x4c3387&&(_0x5aa859[_0x14f16e(0x238)](_0x4c3387),_0x4c3387=null);}),this[_0x26f879(0x1d1)][_0x26f879(0x1a5)](_0x1ec011,_0x17f3ca),this[_0x26f879(0x208)][_0x26f879(0x1a5)](_0x6b0192,_0x17f3ca);const _0x55e4cf=new _0x146f56(this[_0x26f879(0x1d8)][_0x26f879(0x1c0)],_0x6b0192);_0x55e4cf[_0x26f879(0x262)](_0x26f879(0x27c))['to'](_0x6b0192),_0x55e4cf[_0x26f879(0x262)](_0x26f879(0x224))['to'](_0x6b0192,_0x26f879(0x224),_0x6b0192,_0x26f879(0x27c),(_0x2bb6ee,_0x2e4655)=>_0x2bb6ee||!_0x2e4655),_0x55e4cf[_0x26f879(0x262)](_0x26f879(0x249))['to'](_0x6b0192),_0x55e4cf[_0x26f879(0x1ae)]=_0x26f879(0x22e);const _0x5d188f=new _0x5a8a14({'view':_0x55e4cf,'target':_0x398b95,'type':_0x26f879(0x22e),'isVisible':!_0x1ec011[_0x26f879(0x205)]&&!!(_0x26f879(0x1ca)==typeof _0x398b95?_0x398b95():_0x398b95)});return _0x6b0192['on'](_0x26f879(0x1ab),()=>{const _0x2426b2=_0x26f879;_0x5d188f[_0x2426b2(0x23d)](_0x2426b2(0x1ab));}),this[_0x26f879(0x215)](_0x6b0192,_0x5d188f),_0xb6e0dc[_0x26f879(0x20b)](_0x5d188f),_0x5d188f;}[_0x34f716(0x215)](_0x1bc253,_0x3502bf){const _0x11a4c3=_0x34f716;this[_0x11a4c3(0x25f)](_0x1bc253,_0x11a4c3(0x1ea),(_0xcd9dd9,_0x45068d)=>{const _0x634ba3=_0x11a4c3,_0x26ac67=_0x45068d['ui'][_0x634ba3(0x1e3)][_0x634ba3(0x264)][_0x634ba3(0x209)];_0x3502bf[_0x634ba3(0x220)][_0x634ba3(0x20b)](_0x26ac67),this[_0x634ba3(0x1d8)]instanceof _0x44f3fb&&this[_0x634ba3(0x1d8)]['ui'][_0x634ba3(0x228)][_0x634ba3(0x20b)](_0x26ac67);},{'priority':_0x11a4c3(0x273)}),this[_0x11a4c3(0x25f)](_0x1bc253,_0x11a4c3(0x239),(_0x181aae,_0xcebc3c)=>{const _0x121fae=_0x11a4c3,_0x3125e8=_0xcebc3c['ui'][_0x121fae(0x1e3)][_0x121fae(0x264)][_0x121fae(0x209)];_0x3502bf[_0x121fae(0x220)][_0x121fae(0x206)](_0x3125e8)&&_0x3502bf[_0x121fae(0x220)][_0x121fae(0x238)](_0x3125e8),this[_0x121fae(0x1d8)]instanceof _0x44f3fb&&this[_0x121fae(0x1d8)]['ui'][_0x121fae(0x228)][_0x121fae(0x238)](_0x3125e8);});}[_0x34f716(0x267)](_0x4ccf93){const _0x285bda=_0x34f716;this[_0x285bda(0x1ed)](_0x4ccf93,_0x285bda(0x1ea)),this[_0x285bda(0x1ed)](_0x4ccf93,_0x285bda(0x239));}[_0x34f716(0x1e9)](_0x2c42b2){const _0x1ef816=_0x34f716,_0x2a7ed0=this[_0x1ef816(0x1d8)][_0x1ef816(0x221)][_0x1ef816(0x1c7)](_0x4af60c),{config:_0x13a2d5,locale:_0x427716}=this[_0x1ef816(0x1d8)],_0x4f1201=_0x35e7ae(_0x13a2d5[_0x1ef816(0x1c7)](_0x1ef816(0x1c0)),_0x427716);return new(0x0,(_0x13a2d5[_0x1ef816(0x1c7)](_0x1ef816(0x279)))[(_0x1ef816(0x222))])(_0x427716,_0x2c42b2,_0x2a7ed0['me'],{'editorConfig':{..._0x13a2d5[_0x1ef816(0x1c7)](_0x1ef816(0x1b6)),'licenseKey':this[_0x1ef816(0x1d8)][_0x1ef816(0x278)][_0x1ef816(0x1c7)](_0x1ef816(0x1f8))},'copyMarkers':_0x13a2d5[_0x1ef816(0x1c7)](_0x1ef816(0x1a8)),'maxCommentsWhenCollapsed':_0x13a2d5[_0x1ef816(0x1c7)](_0x1ef816(0x1f6)),'maxThreadTotalWeight':_0x13a2d5[_0x1ef816(0x1c7)](_0x1ef816(0x270)),'maxCommentCharsWhenCollapsed':_0x13a2d5[_0x1ef816(0x1c7)](_0x1ef816(0x243)),'formatDateTime':_0x4f1201,'CommentView':_0x13a2d5[_0x1ef816(0x1c7)](_0x1ef816(0x279))[_0x1ef816(0x1a4)]});}[_0x34f716(0x1b5)]({threadId:_0x1eddba,channelId:_0x25beba,resolvedAt:_0x565d9b,resolvedBy:_0x2f2ac4,isFromAdapter:_0x3bdfda}){const _0x392762=_0x34f716;if(!this[_0x392762(0x1a7)](_0x1eddba))throw new _0x4080e6(_0x392762(0x201),null,{'threadId':_0x1eddba});const _0x2b155d=this[_0x392762(0x24b)](_0x1eddba);if(_0x2b155d[_0x392762(0x260)])throw new _0x4080e6(_0x392762(0x1e4),null,{'threadId':_0x1eddba});const _0x34ea0f=this[_0x392762(0x1d8)][_0x392762(0x221)][_0x392762(0x1c7)](_0x4af60c);if(_0x2b155d[_0x392762(0x1b1)]=_0x34ea0f[_0x392762(0x1e8)](_0x2f2ac4),_0x2b155d[_0x392762(0x1d9)]=_0x565d9b,_0x3bdfda||!this[_0x392762(0x1b9)]||_0x392762(0x1ca)!=typeof this[_0x392762(0x1b9)][_0x392762(0x1cc)])return Promise[_0x392762(0x252)]();const _0x4a073a=this[_0x392762(0x1d8)][_0x392762(0x221)][_0x392762(0x1c7)](_0x392762(0x233)),_0x1bcdb0=_0x4a073a[_0x392762(0x20b)](_0x3a16c3(this[_0x392762(0x1d8)][_0x392762(0x1c0)],_0x392762(0x21f)));return this[_0x392762(0x1b9)][_0x392762(0x1cc)]({'channelId':_0x25beba,'threadId':_0x1eddba})[_0x392762(0x203)](({resolvedAt:_0x278790,resolvedBy:_0x193b41})=>{const _0x2a759e=_0x392762;_0x4a073a[_0x2a759e(0x238)](_0x1bcdb0),_0x2b155d[_0x2a759e(0x1b1)]['id']!==_0x193b41&&(_0x2b155d[_0x2a759e(0x1b1)]=_0x34ea0f[_0x2a759e(0x1e8)](_0x193b41)),_0x2b155d[_0x2a759e(0x1d9)]=_0x278790;})[_0x392762(0x271)](_0x5aee48=>{const _0x4a06f2=_0x392762;throw console[_0x4a06f2(0x1a9)](_0x5aee48),new _0x4080e6(_0x4a06f2(0x1d5),this);});}[_0x34f716(0x1be)]({threadId:_0x3a8baf,channelId:_0x5f5477,isFromAdapter:_0x518fd8}){const _0x541d2d=_0x34f716;if(!this[_0x541d2d(0x1a7)](_0x3a8baf))throw new _0x4080e6(_0x541d2d(0x201),null,{'threadId':_0x3a8baf});const _0x1c371c=this[_0x541d2d(0x24b)](_0x3a8baf);if(!_0x1c371c[_0x541d2d(0x260)])throw new _0x4080e6(_0x541d2d(0x1c4),null,{'threadId':_0x3a8baf});if(_0x1c371c[_0x541d2d(0x1b1)]=null,_0x1c371c[_0x541d2d(0x1d9)]=null,_0x518fd8||!this[_0x541d2d(0x1b9)]||_0x541d2d(0x1ca)!=typeof this[_0x541d2d(0x1b9)][_0x541d2d(0x1f7)])return Promise[_0x541d2d(0x252)]();const _0x4ed0b4=this[_0x541d2d(0x1d8)][_0x541d2d(0x221)][_0x541d2d(0x1c7)](_0x541d2d(0x233)),_0x1b1ba1=_0x4ed0b4[_0x541d2d(0x20b)](_0x3a16c3(this[_0x541d2d(0x1d8)][_0x541d2d(0x1c0)],_0x541d2d(0x21f)));return this[_0x541d2d(0x1b9)][_0x541d2d(0x1f7)]({'channelId':_0x5f5477,'threadId':_0x3a8baf})[_0x541d2d(0x203)](()=>_0x4ed0b4[_0x541d2d(0x238)](_0x1b1ba1))[_0x541d2d(0x271)](_0x16213c=>{const _0x36a325=_0x541d2d;throw console[_0x36a325(0x1a9)](_0x16213c),new _0x4080e6(_0x36a325(0x1d7),this);});}[_0x34f716(0x19c)]({threadId:_0x5625ab,isFromAdapter:_0xbecdcc}){const _0x48dfa9=_0x34f716,_0x5085a0=this[_0x48dfa9(0x24b)](_0x5625ab);if(!_0x5085a0)throw new _0x4080e6(_0x48dfa9(0x1d0),this);if(this[_0x48dfa9(0x1cb)](_0x5625ab),this[_0x48dfa9(0x1c5)][_0x48dfa9(0x229)](_0x5625ab),!_0x5085a0[_0x48dfa9(0x27a)]||_0xbecdcc||!this[_0x48dfa9(0x1b9)]||_0x48dfa9(0x1ca)!=typeof this[_0x48dfa9(0x1b9)][_0x48dfa9(0x1eb)])return Promise[_0x48dfa9(0x252)]();const _0x2bacda=this[_0x48dfa9(0x1d8)][_0x48dfa9(0x221)][_0x48dfa9(0x1c7)](_0x48dfa9(0x233)),{channelId:_0x399ff6}=_0x5085a0,_0x193996=_0x2bacda[_0x48dfa9(0x20b)](_0x3a16c3(this[_0x48dfa9(0x1d8)][_0x48dfa9(0x1c0)],_0x48dfa9(0x21f)));return this[_0x48dfa9(0x1b9)][_0x48dfa9(0x1eb)]({'channelId':_0x399ff6,'threadId':_0x5625ab})[_0x48dfa9(0x203)](()=>_0x2bacda[_0x48dfa9(0x238)](_0x193996))[_0x48dfa9(0x271)](_0x3560b0=>{const _0x3ebd31=_0x48dfa9;throw console[_0x3ebd31(0x1a9)](_0x3560b0),new _0x4080e6(_0x3ebd31(0x266),this);});}[_0x34f716(0x19f)]({threadId:_0x50f5da,unlinkedAt:_0x27f552,context:_0x169e0a,attributes:_0xfe37bf,isFromAdapter:_0x342137}){const _0xa0ac5b=_0x34f716;if(_0xa0ac5b(0x26e)!=typeof _0x50f5da)throw new _0x4080e6(_0xa0ac5b(0x1ff),null,{'threadId':_0x50f5da});if(!this[_0xa0ac5b(0x1a7)](_0x50f5da))throw new _0x4080e6(_0xa0ac5b(0x201),null,{'threadId':_0x50f5da});const _0x5889ca=this[_0xa0ac5b(0x24b)](_0x50f5da);let _0x5b92b6=!0x1;if(void 0x0!==_0x169e0a&&_0x5889ca[_0xa0ac5b(0x1d8)]!==_0x169e0a&&(_0x5889ca[_0xa0ac5b(0x1d8)]=_0x169e0a,_0x5b92b6=!0x0),void 0x0!==_0x27f552&&_0x5889ca[_0xa0ac5b(0x23e)]!==_0x27f552&&(_0x5889ca[_0xa0ac5b(0x23e)]=_0x27f552,_0x5b92b6=!0x0),_0xfe37bf&&!_0x3dad6e(_0xfe37bf,_0x5889ca[_0xa0ac5b(0x263)])&&(_0x5889ca[_0xa0ac5b(0x263)]=_0xfe37bf,_0x5b92b6=!0x0),!_0x5b92b6)return Promise[_0xa0ac5b(0x252)]();if(!_0x5889ca[_0xa0ac5b(0x27a)]||_0x342137||!this[_0xa0ac5b(0x1b9)]||_0xa0ac5b(0x1ca)!=typeof this[_0xa0ac5b(0x1b9)][_0xa0ac5b(0x200)])return Promise[_0xa0ac5b(0x252)]();const _0x1158ca=this[_0xa0ac5b(0x1d8)][_0xa0ac5b(0x221)][_0xa0ac5b(0x1c7)](_0xa0ac5b(0x233)),{channelId:_0x127ab5}=_0x5889ca,_0x487095=_0x1158ca[_0xa0ac5b(0x20b)](_0x3a16c3(this[_0xa0ac5b(0x1d8)][_0xa0ac5b(0x1c0)],_0xa0ac5b(0x21f)));return this[_0xa0ac5b(0x1b9)][_0xa0ac5b(0x200)]({'channelId':_0x127ab5,'threadId':_0x50f5da,'context':_0x169e0a,'unlinkedAt':_0x27f552,'attributes':_0xfe37bf})[_0xa0ac5b(0x203)](()=>_0x1158ca[_0xa0ac5b(0x238)](_0x487095))[_0xa0ac5b(0x271)](_0x130f4d=>{const _0x32f03c=_0xa0ac5b;throw console[_0x32f03c(0x1a9)](_0x130f4d),new _0x4080e6(_0x32f03c(0x19b),this);});}[_0x34f716(0x1cb)](_0x447123){const _0x40d980=_0x34f716,_0x297173=this[_0x40d980(0x1d8)][_0x40d980(0x221)][_0x40d980(0x1c7)](_0x96d1f8),_0x3af147=this[_0x40d980(0x24b)](_0x447123);if(_0x3af147[_0x40d980(0x250)]=!0x1,this[_0x40d980(0x1d1)][_0x40d980(0x206)](_0x3af147)){const _0x250c16=this[_0x40d980(0x1d1)][_0x40d980(0x1c7)](_0x3af147),_0x14ba0c=_0x250c16[_0x40d980(0x1e3)],_0x1ca64d=_0x297173[_0x40d980(0x22f)](_0x14ba0c);this[_0x40d980(0x1d1)][_0x40d980(0x229)](_0x3af147),this[_0x40d980(0x208)][_0x40d980(0x229)](_0x14ba0c),_0x1ca64d&&_0x297173[_0x40d980(0x238)](_0x1ca64d),_0x250c16[_0x40d980(0x1cd)](),_0x14ba0c[_0x40d980(0x1cd)]()[_0x40d980(0x203)](()=>{const _0xa4e904=_0x40d980;this[_0xa4e904(0x267)](_0x14ba0c);});}}[_0x34f716(0x259)]({threadId:_0x15028c,resolvedAt:_0x9aa37d,unlinkedAt:_0x2d1b79}){const _0x2674d2=_0x34f716,_0x2597b2=!!_0x9aa37d,_0x5ddc46=this[_0x2674d2(0x1d8)][_0x2674d2(0x221)][_0x2674d2(0x1c7)](_0x96d1f8),_0x507300=this[_0x2674d2(0x24b)](_0x15028c);if(this[_0x2674d2(0x1d1)][_0x2674d2(0x206)](_0x507300)){const _0x99359f=this[_0x2674d2(0x1d1)][_0x2674d2(0x1c7)](_0x507300)[_0x2674d2(0x1e3)],_0x4e09ee=_0x5ddc46[_0x2674d2(0x22f)](_0x99359f);_0x4e09ee&&(_0x2597b2&&_0x5ddc46[_0x2674d2(0x25a)](_0x4e09ee),_0x2d1b79?_0x4e09ee[_0x2674d2(0x232)]=!0x1:_0x4e09ee[_0x2674d2(0x1ee)]());}}[_0x34f716(0x1ef)](_0x56ab3b){const _0x3ed6e6=_0x34f716,_0x36596c=this[_0x3ed6e6(0x1d8)][_0x3ed6e6(0x221)][_0x3ed6e6(0x1c7)](_0x4af60c),_0x17b06b=_0x304caf(_0x3ed6e6(0x216)+_0x56ab3b),_0x35a1d5=_0x36596c[_0x3ed6e6(0x1e8)](_0x17b06b);return _0x35a1d5||_0x36596c[_0x3ed6e6(0x26b)]({'id':_0x17b06b,'name':_0x56ab3b});}[_0x34f716(0x19a)]({threadId:_0x19291a,commentId:_0x105338=_0x4293c1(),content:_0x14ca47,authorId:_0x3d3be4,createdAt:_0x111319,attributes:_0x9f8c2a}){const _0x51130b=_0x34f716;if(_0x51130b(0x26e)!=typeof _0x105338)throw new _0x4080e6(_0x51130b(0x21d));if(_0x51130b(0x26e)!=typeof _0x3d3be4)throw new _0x4080e6(_0x51130b(0x258));if(_0x51130b(0x26e)!=typeof _0x14ca47||!_0x14ca47[_0x51130b(0x20a)]())throw new _0x4080e6(_0x51130b(0x217));const _0x50c373=this[_0x51130b(0x1d8)][_0x51130b(0x221)][_0x51130b(0x1c7)](_0x4af60c)[_0x51130b(0x1e8)](_0x3d3be4);if(!_0x50c373)throw new _0x4080e6(_0x51130b(0x1fb),null,{'authorId':_0x3d3be4});let _0x12d469=null,_0x502ed3=_0x111319;return _0x9f8c2a?.[_0x51130b(0x1df)]&&(_0x12d469=this[_0x51130b(0x1ef)](_0x9f8c2a[_0x51130b(0x1df)][_0x51130b(0x282)]),_0x502ed3=new Date(_0x9f8c2a[_0x51130b(0x1df)][_0x51130b(0x261)])),new Comment(this,{'threadId':_0x19291a,'id':_0x105338,'author':_0x12d469||_0x50c373,'creator':_0x50c373,'content':_0x14ca47,'createdAt':_0x111319,'authoredAt':_0x502ed3,'attributes':_0x9f8c2a});}[_0x34f716(0x1c1)](_0x1ec1d5){const _0x98b21=_0x34f716;let {threadId:_0x5bfbf0,content:_0x49c227,attributes:_0x24a9e8,isFromAdapter:_0xfd96d5}=_0x1ec1d5;const _0x55638e=this[_0x98b21(0x24b)](_0x1ec1d5[_0x98b21(0x276)]);if(!_0x55638e)throw new _0x4080e6(_0x98b21(0x1c3),this);const _0x4a749e=this[_0x98b21(0x19a)](_0x1ec1d5),{id:_0x4230da}=_0x4a749e;if(_0x55638e[_0x98b21(0x20c)](_0x4a749e),_0xfd96d5||!this[_0x98b21(0x1b9)]||_0x98b21(0x1ca)!=typeof this[_0x98b21(0x1b9)][_0x98b21(0x23f)]||!_0x55638e[_0x98b21(0x27a)])return Promise[_0x98b21(0x252)]();const _0x32337f=this[_0x98b21(0x1d8)][_0x98b21(0x221)][_0x98b21(0x1c7)](_0x98b21(0x233)),{channelId:_0x4a2f77}=_0x55638e,_0x571902=_0x32337f[_0x98b21(0x20b)](_0x3a16c3(this[_0x98b21(0x1d8)][_0x98b21(0x1c0)],_0x98b21(0x21f)));return _0x24a9e8||(_0x24a9e8={}),this[_0x98b21(0x1b9)][_0x98b21(0x23f)]({'channelId':_0x4a2f77,'threadId':_0x5bfbf0,'commentId':_0x4230da,'content':_0x49c227,'attributes':_0x24a9e8})[_0x98b21(0x203)](_0x4d771b=>{const _0x570471=_0x98b21;_0x32337f[_0x570471(0x238)](_0x571902),_0x4d771b&&this[_0x570471(0x269)]({'channelId':_0x4a2f77,'threadId':_0x5bfbf0,'commentId':_0x4230da,'createdAt':_0x4d771b[_0x570471(0x261)],'isFromAdapter':!0x0});})[_0x98b21(0x271)](_0x261ed0=>{const _0x14167f=_0x98b21;throw console[_0x14167f(0x1a9)](_0x261ed0),new _0x4080e6(_0x14167f(0x240),this);});}[_0x34f716(0x269)]({threadId:_0x18f7e7,commentId:_0x139f64,content:_0x320dba,createdAt:_0x580d8a,attributes:_0xdc0050,isFromAdapter:_0x26ebdd}){const _0x331531=_0x34f716;if(void 0x0!==_0x320dba&&(_0x331531(0x26e)!=typeof _0x320dba||!_0x320dba[_0x331531(0x20a)]()[_0x331531(0x27c)]))throw new _0x4080e6(_0x331531(0x1ad));const _0x2702fe=this[_0x331531(0x24b)](_0x18f7e7),_0x5263de=_0x2702fe[_0x331531(0x1b0)](_0x139f64);if(!_0x5263de)throw new _0x4080e6(_0x331531(0x1f0),this);let _0x4c54a3=!0x1;if(_0x320dba&&_0x320dba!==_0x5263de[_0x331531(0x1e1)]&&(_0x5263de[_0x331531(0x19e)]||_0x26ebdd)&&(_0x5263de[_0x331531(0x1e1)]=_0x320dba,_0x4c54a3=!0x0),_0x580d8a&&_0x580d8a!==_0x5263de[_0x331531(0x261)]&&(_0x5263de[_0x331531(0x261)]=_0x580d8a,_0x5263de[_0x331531(0x263)]&&_0x5263de[_0x331531(0x263)][_0x331531(0x1df)]||(_0x5263de[_0x331531(0x1aa)]=_0x580d8a),_0x4c54a3=!0x0),_0xdc0050&&!_0x3dad6e(_0xdc0050,_0x5263de[_0x331531(0x263)])&&(_0x5263de[_0x331531(0x263)]=_0xdc0050,_0x4c54a3=!0x0),!_0x4c54a3)return Promise[_0x331531(0x252)]();if(_0x2702fe[_0x331531(0x23d)](_0x331531(0x1f3)),_0x26ebdd||!this[_0x331531(0x1b9)]||_0x331531(0x1ca)!=typeof this[_0x331531(0x1b9)][_0x331531(0x1fe)])return Promise[_0x331531(0x252)]();const _0x34154f=this[_0x331531(0x1d8)][_0x331531(0x221)][_0x331531(0x1c7)](_0x331531(0x233)),{channelId:_0x3be61b}=this[_0x331531(0x24b)](_0x5263de[_0x331531(0x276)]),_0x5b0bf7=_0x34154f[_0x331531(0x20b)](_0x3a16c3(this[_0x331531(0x1d8)][_0x331531(0x1c0)],_0x331531(0x21f)));return this[_0x331531(0x1b9)][_0x331531(0x1fe)]({'channelId':_0x3be61b,'threadId':_0x18f7e7,'commentId':_0x139f64,'content':_0x320dba,'attributes':_0xdc0050})[_0x331531(0x203)](()=>_0x34154f[_0x331531(0x238)](_0x5b0bf7))[_0x331531(0x271)](_0x1fdf40=>{const _0x525b54=_0x331531;throw console[_0x525b54(0x1a9)](_0x1fdf40),new _0x4080e6(_0x525b54(0x1e5),this);});}[_0x34f716(0x1b7)]({threadId:_0x375a9a,commentId:_0x195633,isFromAdapter:_0x4aff33}){const _0x23e6c6=_0x34f716,_0x897afd=this[_0x23e6c6(0x24b)](_0x375a9a),_0x4893bb=_0x897afd[_0x23e6c6(0x1b0)](_0x195633);if(!_0x4893bb)throw new _0x4080e6(_0x23e6c6(0x26f),this);if(_0x897afd[_0x23e6c6(0x20e)](_0x4893bb),_0x4aff33||!this[_0x23e6c6(0x1b9)]||_0x23e6c6(0x1ca)!=typeof this[_0x23e6c6(0x1b9)][_0x23e6c6(0x1db)])return Promise[_0x23e6c6(0x252)]();const _0x47b34a=this[_0x23e6c6(0x1d8)][_0x23e6c6(0x221)][_0x23e6c6(0x1c7)](_0x23e6c6(0x233)),{channelId:_0x20bc5d}=_0x897afd,_0x3d70bc=_0x47b34a[_0x23e6c6(0x20b)](_0x3a16c3(this[_0x23e6c6(0x1d8)][_0x23e6c6(0x1c0)],_0x23e6c6(0x21f)));return this[_0x23e6c6(0x1b9)][_0x23e6c6(0x1db)]({'channelId':_0x20bc5d,'threadId':_0x375a9a,'commentId':_0x195633})[_0x23e6c6(0x203)](()=>_0x47b34a[_0x23e6c6(0x238)](_0x3d70bc))[_0x23e6c6(0x271)](_0x304631=>{const _0x58ee71=_0x23e6c6;throw console[_0x58ee71(0x1a9)](_0x304631),new _0x4080e6(_0x58ee71(0x1bb),this);});}}function _0x38a4(_0x5e5fc1,_0x65e00){const _0x2fb095=_0x2fb0();return _0x38a4=function(_0x38a42c,_0x328662){_0x38a42c=_0x38a42c-0x19a;let _0x2cebcd=_0x2fb095[_0x38a42c];return _0x2cebcd;},_0x38a4(_0x5e5fc1,_0x65e00);}export class CommentThread extends/* #__PURE__ -- @preserve */ _0x735bad(){[_0x34f716(0x1a6)];['id'];[_0x34f716(0x250)];[_0x34f716(0x24f)];[_0x34f716(0x279)];[_0x34f716(0x210)];constructor(_0x20ac54,_0x5136c8){const _0x160722=_0x34f716;super();const _0x4e3af9=_0x5136c8[_0x160722(0x25c)];this[_0x160722(0x1a6)]=_0x5136c8[_0x160722(0x1a6)],this['id']=_0x5136c8['id'],this[_0x160722(0x279)]=new _0x16b5d4(),this[_0x160722(0x210)]=_0x20ac54,this[_0x160722(0x250)]=!0x1,this[_0x160722(0x24f)]=_0x5136c8[_0x160722(0x27a)],this[_0x160722(0x1a5)](_0x160722(0x26a),!0x0),this[_0x160722(0x262)](_0x160722(0x1d2))['to'](_0x20ac54,_0x160722(0x1de),_0x20ac54,_0x160722(0x27f),()=>_0x20ac54[_0x160722(0x1d2)](this[_0x160722(0x1a6)])),this[_0x160722(0x262)](_0x160722(0x1cf))['to'](_0x20ac54,_0x160722(0x1de),()=>_0x20ac54[_0x160722(0x218)](this[_0x160722(0x1a6)])[_0x160722(0x277)]),this[_0x160722(0x262)](_0x160722(0x26c))['to'](_0x20ac54,_0x160722(0x1de),()=>{const _0x2456b8=_0x160722,_0x22c9c6=_0x20ac54[_0x2456b8(0x218)](this[_0x2456b8(0x1a6)]);return _0x22c9c6[_0x2456b8(0x1ec)]||_0x22c9c6[_0x2456b8(0x277)];}),this[_0x160722(0x262)](_0x160722(0x25c))['to'](_0x20ac54,_0x160722(0x1de),()=>_0x4e3af9&&_0x20ac54[_0x160722(0x218)](this[_0x160722(0x1a6)])[_0x160722(0x252)]),this[_0x160722(0x1a5)](_0x160722(0x1d8),_0x5136c8[_0x160722(0x1d8)]),this[_0x160722(0x262)](_0x160722(0x205))['to'](this,_0x160722(0x1d9),this,_0x160722(0x23e),(_0x623b49,_0x6885ae)=>_0x623b49?_0x6885ae?_0x623b49<_0x6885ae?_0x623b49:_0x6885ae:_0x623b49:_0x6885ae),this[_0x160722(0x1a5)](_0x160722(0x23e),_0x5136c8[_0x160722(0x23e)]||null),this[_0x160722(0x1a5)](_0x160722(0x1d9),_0x5136c8[_0x160722(0x1d9)]||null),this[_0x160722(0x1a5)](_0x160722(0x1b1),_0x5136c8[_0x160722(0x1b1)]||null),this[_0x160722(0x262)](_0x160722(0x260))['to'](this,_0x160722(0x1d9),_0x7179e1=>!!_0x7179e1),this[_0x160722(0x1a5)](_0x160722(0x263),_0x5136c8[_0x160722(0x263)]||{});}get[_0x34f716(0x1dc)](){const _0x3c11a3=_0x34f716;return Array[_0x3c11a3(0x245)](this[_0x3c11a3(0x279)])[_0x3c11a3(0x27b)]((_0x55385a,_0x2e9b62)=>_0x55385a+_0x2e9b62[_0x3c11a3(0x1dc)],0x0);}get[_0x34f716(0x27c)](){const _0x281d6a=_0x34f716;return this[_0x281d6a(0x279)][_0x281d6a(0x27c)];}get[_0x34f716(0x1da)](){const _0x32ece5=_0x34f716;return this[_0x32ece5(0x250)];}get[_0x34f716(0x27a)](){const _0x35d937=_0x34f716;return this[_0x35d937(0x24f)];}[_0x34f716(0x21c)](){const _0x4b691e=_0x34f716,{channelId:_0x31d25f,id:_0x2db760}=this;this[_0x4b691e(0x210)][_0x4b691e(0x23d)](Nt(_0x4b691e(0x1b2),_0x31d25f),{'channelId':_0x31d25f,'threadId':_0x2db760});}[_0x34f716(0x1d4)](_0x13be35){const _0x3fe252=_0x34f716;this[_0x3fe252(0x231)]({'unlinkedAt':_0x13be35});}[_0x34f716(0x252)]({resolvedAt:_0x1c21f8=new Date(),resolvedBy:_0x70db55='',isFromAdapter:_0x58724f=!0x1}={}){const _0x597ce4=_0x34f716,_0x559a6b=this[_0x597ce4(0x210)][_0x597ce4(0x1d8)][_0x597ce4(0x221)][_0x597ce4(0x1c7)](_0x4af60c)['me'],{channelId:_0x579692,id:_0x3a7b12}=this;this[_0x597ce4(0x210)][_0x597ce4(0x23d)](Nt(_0x597ce4(0x1cc),_0x579692),{'channelId':_0x579692,'threadId':_0x3a7b12,'resolvedAt':_0x1c21f8,'resolvedBy':_0x70db55||_0x559a6b['id'],'isFromAdapter':_0x58724f});}[_0x34f716(0x1e0)]({isFromAdapter:_0x5d85bc=!0x1}={}){const _0x3975c3=_0x34f716,{channelId:_0x408813,id:_0xf1d6e6}=this;this[_0x3975c3(0x210)][_0x3975c3(0x23d)](Nt(_0x3975c3(0x1f7),_0x408813),{'channelId':_0x408813,'threadId':_0xf1d6e6,'isFromAdapter':_0x5d85bc});}[_0x34f716(0x22a)](_0xc760fd){const _0x2b5b1e=_0x34f716;this[_0x2b5b1e(0x1d8)]||this[_0x2b5b1e(0x231)]({'context':_0xc760fd});}[_0x34f716(0x1ba)](_0x406f78,_0x5495ac){const _0x272d60=_0x34f716,_0x4d92d6=_0x3b5c91(this[_0x272d60(0x263)]);_0x548ac5(_0x4d92d6,_0x406f78,_0x5495ac),this[_0x272d60(0x231)]({'attributes':_0x4d92d6});}[_0x34f716(0x22c)](_0x3cb717){const _0x11e4be=_0x34f716,_0x1170f0=_0x3b5c91(this[_0x11e4be(0x263)]);_0x1108db(_0x1170f0,_0x3cb717),this[_0x11e4be(0x231)]({'attributes':_0x1170f0});}[_0x34f716(0x238)]({isFromAdapter:_0x4015e3=!0x1}={}){const _0x4e15a8=_0x34f716,{channelId:_0x38f70c,id:_0x5e50e7}=this;this[_0x4e15a8(0x210)][_0x4e15a8(0x23d)](Nt(_0x4e15a8(0x1eb),_0x38f70c),{'channelId':_0x38f70c,'threadId':_0x5e50e7,'isFromAdapter':_0x4015e3});}[_0x34f716(0x211)](_0x3de57c){const _0x58a0ee=_0x34f716;return this[_0x58a0ee(0x210)][_0x58a0ee(0x204)]({'threadId':this['id'],'target':_0x3de57c});}[_0x34f716(0x23f)](_0x285a99){const _0x339a1f=_0x34f716,{channelId:_0x2224c8,id:_0x116363}=this;this[_0x339a1f(0x210)][_0x339a1f(0x23d)](Nt(_0x339a1f(0x23f),_0x2224c8,_0x116363),Object[_0x339a1f(0x244)]({'channelId':_0x2224c8,'threadId':_0x116363},_0x285a99));}[_0x34f716(0x1b0)](_0x73b2e7){const _0x42f73e=_0x34f716;if(_0x42f73e(0x26e)!=typeof _0x73b2e7)throw new _0x4080e6(_0x42f73e(0x256),null,{'commentId':_0x73b2e7});return this[_0x42f73e(0x279)][_0x42f73e(0x1c7)](_0x73b2e7);}[_0x34f716(0x223)](){const _0xf6e0f4=_0x34f716;return{'threadId':this['id'],'context':this[_0xf6e0f4(0x1d8)],'unlinkedAt':this[_0xf6e0f4(0x23e)],'resolvedAt':this[_0xf6e0f4(0x1d9)],'resolvedBy':this[_0xf6e0f4(0x1b1)]?this[_0xf6e0f4(0x1b1)]['id']:null,'archivedAt':this[_0xf6e0f4(0x205)],'comments':this[_0xf6e0f4(0x279)][_0xf6e0f4(0x1c9)](_0x32ed39=>_0x32ed39[_0xf6e0f4(0x223)]()),'attributes':this[_0xf6e0f4(0x263)]};}[_0x34f716(0x20c)](_0x2d2186){const _0x39d405=_0x34f716;return this[_0x39d405(0x25f)](_0x2d2186,_0x39d405(0x24c),()=>{const _0x152367=_0x39d405,_0x93e18c=this[_0x152367(0x26d)](_0x2d2186),_0x32dd52=this[_0x152367(0x279)];_0x93e18c-0x1!=_0x32dd52[_0x152367(0x212)](_0x2d2186)&&_0x93e18c+0x1!=_0x32dd52[_0x152367(0x212)](_0x2d2186)&&(this[_0x152367(0x20e)](_0x2d2186),this[_0x152367(0x20c)](_0x2d2186));}),this[_0x39d405(0x279)][_0x39d405(0x20b)](_0x2d2186,this[_0x39d405(0x26d)](_0x2d2186));}[_0x34f716(0x231)](_0x310f94){const _0x4649c1=_0x34f716,{channelId:_0x4a4d84,id:_0x11a4c4}=this;this[_0x4649c1(0x210)][_0x4649c1(0x23d)](Nt(_0x4649c1(0x200),_0x4a4d84),{..._0x310f94,'channelId':_0x4a4d84,'threadId':_0x11a4c4});}[_0x34f716(0x20e)](_0x16efae){const _0x4842d6=_0x34f716;return this[_0x4842d6(0x1ed)](_0x16efae),_0x16efae[_0x4842d6(0x1cd)](),this[_0x4842d6(0x279)][_0x4842d6(0x238)](_0x16efae);}[_0x34f716(0x26d)](_0x3bdd53){const _0x5d2dbf=_0x34f716,_0x4a4ff7=this[_0x5d2dbf(0x279)][_0x5d2dbf(0x1e7)](_0x1415a7=>new Date(_0x1415a7[_0x5d2dbf(0x1aa)])[_0x5d2dbf(0x25b)]()>new Date(_0x3bdd53[_0x5d2dbf(0x1aa)])[_0x5d2dbf(0x25b)]());return _0x4a4ff7?this[_0x5d2dbf(0x279)][_0x5d2dbf(0x212)](_0x4a4ff7):this[_0x5d2dbf(0x27c)];}}export class Comment extends/* #__PURE__ -- @preserve */ _0x735bad(){['id'];[_0x34f716(0x276)];[_0x34f716(0x1a0)];[_0x34f716(0x237)];[_0x34f716(0x23a)];[_0x34f716(0x261)];[_0x34f716(0x210)];constructor(_0x2bbe7d,_0x375dc5){const _0x59d425=_0x34f716;super();const _0x1d4398=_0x2bbe7d[_0x59d425(0x1d8)][_0x59d425(0x221)][_0x59d425(0x1c7)](_0x4af60c)['me'],_0x29d8aa=_0x2bbe7d[_0x59d425(0x24b)](_0x375dc5[_0x59d425(0x276)]),_0x4a4eda=0x0===_0x29d8aa[_0x59d425(0x279)][_0x59d425(0x27c)],_0x25ac1f=_0x1d4398===_0x375dc5[_0x59d425(0x1a0)];this['id']=_0x375dc5['id'],this[_0x59d425(0x276)]=_0x375dc5[_0x59d425(0x276)],this[_0x59d425(0x1a0)]=_0x375dc5[_0x59d425(0x1a0)],this[_0x59d425(0x237)]=_0x375dc5[_0x59d425(0x237)],this[_0x59d425(0x23a)]=Boolean(_0x375dc5[_0x59d425(0x263)]&&_0x375dc5[_0x59d425(0x263)][_0x59d425(0x1df)]),this[_0x59d425(0x1a5)](_0x59d425(0x1e1),_0x375dc5[_0x59d425(0x1e1)]),this[_0x59d425(0x261)]=_0x375dc5[_0x59d425(0x261)]||new Date(),this[_0x59d425(0x1a5)](_0x59d425(0x1aa),_0x375dc5[_0x59d425(0x1aa)]||new Date()),this[_0x59d425(0x262)](_0x59d425(0x1d9))['to'](_0x29d8aa,_0x59d425(0x1d9)),this[_0x59d425(0x1a5)](_0x59d425(0x263),_0x375dc5[_0x59d425(0x263)]||{}),this[_0x59d425(0x262)](_0x59d425(0x19e))['to'](_0x2bbe7d,_0x59d425(0x1de),()=>{const _0x3f4fd9=_0x59d425,_0x3359b8=_0x2bbe7d[_0x3f4fd9(0x218)](_0x29d8aa[_0x3f4fd9(0x1a6)])[_0x3f4fd9(0x1ec)],_0x2772b8=_0x2bbe7d[_0x3f4fd9(0x218)](_0x29d8aa[_0x3f4fd9(0x1a6)])[_0x3f4fd9(0x1ce)];return _0x25ac1f&&_0x3359b8||!_0x25ac1f&&_0x2772b8;}),this[_0x59d425(0x262)](_0x59d425(0x1cf))['to'](_0x29d8aa,_0x59d425(0x1cf),_0x2bbe7d,_0x59d425(0x1de),_0x2209a2=>{const _0x252842=_0x59d425,_0xb7186a=_0x2bbe7d[_0x252842(0x218)](_0x29d8aa[_0x252842(0x1a6)])[_0x252842(0x1ec)],_0x433e86=_0x2bbe7d[_0x252842(0x218)](_0x29d8aa[_0x252842(0x1a6)])[_0x252842(0x1ce)];return _0x25ac1f&&_0xb7186a||_0x2209a2&&_0x4a4eda||!_0x25ac1f&&_0x433e86&&!_0x4a4eda;}),this[_0x59d425(0x262)](_0x59d425(0x1d2))['to'](_0x29d8aa,_0x59d425(0x1d2)),this[_0x59d425(0x210)]=_0x2bbe7d;}get[_0x34f716(0x1dc)](){const _0x494191=_0x34f716;return Math[_0x494191(0x27d)](function(_0x16a9b9){const _0x146603=_0x494191,_0x41ff9e=document[_0x146603(0x24a)](_0x146603(0x268));return _0x41ff9e[_0x146603(0x255)]=_0x16a9b9,_0x41ff9e[_0x146603(0x1d6)][_0x146603(0x27c)];}(this[_0x494191(0x1e1)]),0xc8);}[_0x34f716(0x1b3)](_0x5cd86e){const _0x317bd2=_0x34f716,{threadId:_0x437707,id:_0xac8a7e}=this;if(!this[_0x317bd2(0x210)][_0x317bd2(0x1a7)](_0x437707))throw new _0x4080e6(_0x317bd2(0x213),this);const {channelId:_0x17a256}=this[_0x317bd2(0x210)][_0x317bd2(0x24b)](_0x437707);this[_0x317bd2(0x210)][_0x317bd2(0x23d)](Nt(_0x317bd2(0x1fe),_0x17a256,_0x437707),{'channelId':_0x17a256,'threadId':_0x437707,'commentId':_0xac8a7e,..._0x5cd86e});}[_0x34f716(0x1ba)](_0x58bd54,_0x5e3070){const _0x3e2233=_0x34f716,_0x43a9c4=_0x3b5c91(this[_0x3e2233(0x263)]);_0x548ac5(_0x43a9c4,_0x58bd54,_0x5e3070),this[_0x3e2233(0x1b3)]({'attributes':_0x43a9c4});}[_0x34f716(0x22c)](_0x593d75){const _0x52023d=_0x34f716,_0x345d98=_0x3b5c91(this[_0x52023d(0x263)]);_0x1108db(_0x345d98,_0x593d75),this[_0x52023d(0x1b3)]({'attributes':_0x345d98});}[_0x34f716(0x238)](_0x119fdf={}){const _0x138384=_0x34f716;if(!_0x119fdf[_0x138384(0x1f4)]&&!this[_0x138384(0x1cf)])return;const {threadId:_0x798514,id:_0x394ab7}=this;if(!this[_0x138384(0x210)][_0x138384(0x1a7)](_0x798514))throw new _0x4080e6(_0x138384(0x1a3),this);const {channelId:_0x1d499f}=this[_0x138384(0x210)][_0x138384(0x24b)](_0x798514);this[_0x138384(0x210)][_0x138384(0x23d)](Nt(_0x138384(0x1db),_0x1d499f,_0x798514),{'channelId':_0x1d499f,'threadId':_0x798514,'commentId':_0x394ab7,..._0x119fdf});}[_0x34f716(0x223)](){const _0x4ff524=_0x34f716;return{'commentId':this['id'],'content':this[_0x4ff524(0x1e1)],'createdAt':this[_0x4ff524(0x261)],'authorId':this[_0x4ff524(0x237)]['id'],'attributes':this[_0x4ff524(0x263)]};}[_0x34f716(0x1cd)](){const _0x267498=_0x34f716;this[_0x267498(0x1ed)]();}}function Nt(_0x5712b0,..._0x199dd5){for(const _0x48797a of _0x199dd5)void 0x0!==_0x48797a&&(_0x5712b0+=':'+String(_0x48797a));return _0x5712b0;}