@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
25 lines • 45.4 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 _0x2d403c=_0x48b6;(function(_0x706868,_0x3a8b23){const _0x31e508=_0x48b6,_0x1df1c2=_0x706868();while(!![]){try{const _0x361cb1=parseInt(_0x31e508(0x21e))/0x1*(-parseInt(_0x31e508(0x23f))/0x2)+parseInt(_0x31e508(0x1e7))/0x3*(-parseInt(_0x31e508(0x1de))/0x4)+parseInt(_0x31e508(0x211))/0x5+-parseInt(_0x31e508(0x21d))/0x6+-parseInt(_0x31e508(0x17f))/0x7+-parseInt(_0x31e508(0x20a))/0x8*(-parseInt(_0x31e508(0x1ac))/0x9)+-parseInt(_0x31e508(0x182))/0xa*(-parseInt(_0x31e508(0x1b0))/0xb);if(_0x361cb1===_0x3a8b23)break;else _0x1df1c2['push'](_0x1df1c2['shift']());}catch(_0x54aba3){_0x1df1c2['push'](_0x1df1c2['shift']());}}}(_0x1e7b,0xea281));import{PendingActions as _0x28a3b3,ContextPlugin as _0x541eb3,Editor as _0x3df0ad}from'ckeditor5/src/core.js';import{Collection as _0x520677,uid as _0xb51eb8,CKEditorError as _0x50caed,ObservableMixin as _0x384a2c}from'ckeditor5/src/utils.js';import{getDateTimeFormatter as _0xe08728,hashObject as _0x1c6a89,Users as _0x2223ba}from'ckeditor5-collaboration/src/collaboration-core.js';import{cloneDeep as _0x229498,isEqual as _0x55f733,set as _0x5dea92,unset as _0x1a2eda}from'es-toolkit/compat';import _0x4d2ab7 from'./ui/commentthreadcontroller.js';import _0x1d55ba from'./ui/view/commentthreadview.js';import _0x2ce584 from'./ui/view/commentview.js';function _0x48b6(_0x18b7d9,_0x4d38cd){const _0x1e7bf4=_0x1e7b();return _0x48b6=function(_0x48b680,_0x5b77e0){_0x48b680=_0x48b680-0x16c;let _0x43dc0d=_0x1e7bf4[_0x48b680];return _0x43dc0d;},_0x48b6(_0x18b7d9,_0x4d38cd);}import{getTranslation as _0x1c3c33}from'../utils/common-translations.js';import'../../theme/comment.css';import'../../theme/commentthread.css';import'../../theme/commentinput.css';import _0x431a16 from'../annotations/view/annotationview.js';function _0x1e7b(){const _0x3f2f1e=['change:activeAnnotations','modifyAll','_viewToController','commentsrepository-add-comment-user-not-exists','createElement','CommentThreadView','commentThreadInputView','commentId','commentsrepository-reopen-comment-thread-internal-error','resolvedAt','toJSON','commentsrepository-invalid-comment-content','_isAttached','fetchCommentThread','_updateComment','removeCommentThread','commentInputView','archivedAt','unlinkedAt','attributes','values','_submitCommentThread','resolve','channelId','addComment','comments.editorConfig','fire','20592nKfYzW','_removeComment','commentsrepository-missing-comment-thread','destroy','13715031hvPNxT','innerHTML','isVisible','hasCommentThread','bodyCollectionContainer','createdAt','lowest','change:authoredAt','getIndex','assign','PendingActions','editorDestroyed','setAttribute','type','author','licenseKey','getTime','write','isAttached','_hasTargetInContent','isResolved','isReadOnly','updateComment','comment','_createCommentThreadView','_adapter','PENDING_ACTION_COMMENT_THREAD','adapter','canComment','_detachCommentThread','_remove','commentsrepository-remove-comment-thread-internal-error','commentsListView','commentsrepository-update-comment-invalid-content','commentsrepository-missing-target','submitCommentThread','focus','editorReady','isOfficialPlugin','bind','set','remove','commentsrepository-add-comment-internal-error','setContext','length','has','4ryUYcC','_threadToController','comments.maxCommentCharsWhenCollapsed','_updateActiveAnnotation','removeComment','commentsrepository-add-comment-thread-internal-error','change:_permissions','_createNewComment','commentsrepository-remove-comment-missing-comment-thread','999807TLYWNO','_unbindEditors','switchReadOnly','get','body','setUnlinkedAt','delete','resolveCommentThread','isPremiumPlugin','resolvedBy','commentsrepository-adapter-already-set','CommentView','commentsrepository-invalid-comment-thread-id','commentsrepository-get-comment-invalid-id','find','isSubmitted','authorName','string','addUser','isEditable','_resolveCommentThread','comments.CommentThreadView','commentsrepository-invalid-commentid','add','once','trim','commentsrepository-remove-missing-comment','commentsrepository-resolve-comment-thread-internal-error','external:','_removeCommentThread','from','commentsrepository-invalid-comment-authorid','isDirty','reopenCommentThread','authoredAt','5224ynMauT','removeAttribute','_add','reduce','getCommentThread','_bindAnnotationToEditors','commentsrepository-add-comment-to-missing-comment-thread','6397100xOGHRy','commentsrepository-remove-missing-comment-thread','reopen','_findOptimalIndex','escape','submit','max','isExternal','_addCommentThread','commentsrepository-reopen-comment-thread','view','comments.copyMarkers','11398698zZtkro','1205vJdmtn','focusTracker','_update','admin','change:_readOnlyChannels','activeCommentThread','content','_isSubmitted','stopListening','creator','commentUpdated','commentsrepository-resolved-comment-thread','comments.maxCommentsWhenCollapsed','commentsrepository-duplicated-comment-thread-id','comments.maxThreadTotalWeight','context','Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.','commentsrepository-remove-comment-internal-error','init','refreshVisibility','createCommentThreadController','CommentsRepository','_permissions','textContent','_threads','define','listenTo','attachTo','_attachCommentThread','filter','function','div','innerView','1582mbBVCo','locale','_reopenCommentThread','highest','setActiveCommentThread','getPermissions','pluginName','updateCommentThread','isResolvable','config','commentsrepository-update-comment-thread-internal-error','commentsrepository-active-not-attached','warn','error','commentsrepository-update-comment-internal-error','_updateCommentThread','comments.CommentView','then','_removeActiveAnnotation','commentsrepository-update-missing-comment','getUser','@external','update','push','getByInnerView','change:isDirty','_getExternalAuthor','map','_repository','setPermissions','isRemovable','plugins','comments','getCommentThreads','noChannel','threadId','commentsrepository-missing-thread-and-adapter-method','isActive','model','7852698sjVujJ','deactivateAll','commentsrepository-attach-missing-comment-thread','20SUSuON','focusableElements','commentsrepository-active-missing-comment-thread','openNewCommentThread','getComment','commentsrepository-fetch-comment-thread','addCommentThread','activate','requires','isFromAdapter','_addComment','weight','commentsrepository-update-comment-missing-comment-thread','_readOnlyChannels','catch'];_0x1e7b=function(){return _0x3f2f1e;};return _0x1e7b();}import _0x1573ca from'../annotations/annotation.js';import _0x4db28f from'../annotations/annotations.js';const Tt=Symbol(_0x2d403c(0x17a)),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};export default class o extends _0x541eb3{[_0x2d403c(0x236)];[_0x2d403c(0x1df)];[_0x2d403c(0x193)];static get[_0x2d403c(0x18a)](){return[_0x4db28f,_0x28a3b3,_0x2223ba];}static get[_0x2d403c(0x245)](){const _0x41b450=_0x2d403c;return _0x41b450(0x233);}static get[_0x2d403c(0x1d6)](){return!0x0;}static get[_0x2d403c(0x1ef)](){return!0x0;}constructor(_0x3130af){const _0x4b8377=_0x2d403c;super(_0x3130af),this[_0x4b8377(0x236)]=new Map(),this[_0x4b8377(0x1df)]=new Map(),this[_0x4b8377(0x193)]=new Map(),this[_0x4b8377(0x1d8)](_0x4b8377(0x18f),new Set()),this[_0x4b8377(0x1d8)](_0x4b8377(0x234),new Map());const _0x650ff1=this[_0x4b8377(0x22d)][_0x4b8377(0x248)];_0x650ff1[_0x4b8377(0x237)](_0x4b8377(0x22a),0x2),_0x650ff1[_0x4b8377(0x237)](_0x4b8377(0x22c),0x1f4),_0x650ff1[_0x4b8377(0x237)](_0x4b8377(0x1e0),0x8c),_0x650ff1[_0x4b8377(0x237)](_0x4b8377(0x1fc),_0x1d55ba),_0x650ff1[_0x4b8377(0x237)](_0x4b8377(0x24f),_0x2ce584),_0x650ff1[_0x4b8377(0x1ea)](_0x4b8377(0x1aa))||console[_0x4b8377(0x24b)](_0x4b8377(0x22e));}[_0x2d403c(0x230)](){const _0x52c519=_0x2d403c,_0x13cba4=this[_0x52c519(0x22d)][_0x52c519(0x177)][_0x52c519(0x1ea)](_0x4db28f);this[_0x52c519(0x1d8)](_0x52c519(0x223),null),this['on'](_0x52c519(0x188),(_0x12e426,_0x478344)=>this[_0x52c519(0x219)](_0x478344)),this['on'](_0x52c519(0x1d3),(_0x5e2a52,_0x2adedb)=>this[_0x52c519(0x1a6)](_0x2adedb)),this['on'](_0x52c519(0x1ee),(_0x257bca,_0x35404d)=>this[_0x52c519(0x1fb)](_0x35404d)),this['on'](_0x52c519(0x1ee),(_0x278559,_0x55a803)=>this[_0x52c519(0x1e1)](_0x55a803),{'priority':_0x52c519(0x1b6)}),this['on'](_0x52c519(0x208),(_0x132115,_0xdde2ab)=>this[_0x52c519(0x241)](_0xdde2ab)),this['on'](_0x52c519(0x208),(_0x34517e,_0x38e348)=>this[_0x52c519(0x1e1)](_0x38e348),{'priority':_0x52c519(0x1b6)}),this['on'](_0x52c519(0x1a0),(_0x197332,_0x2cb811)=>this[_0x52c519(0x204)](_0x2cb811)),this['on'](_0x52c519(0x246),(_0x412e69,_0x4ae85a)=>this[_0x52c519(0x24e)](_0x4ae85a)),this['on'](_0x52c519(0x246),(_0x514dda,_0xcd00e9)=>this[_0x52c519(0x1e1)](_0xcd00e9),{'priority':_0x52c519(0x1b6)}),this['on'](_0x52c519(0x1a9),(_0x202b1f,_0x5c326)=>this[_0x52c519(0x18c)](_0x5c326)),this['on'](_0x52c519(0x1c6),(_0x429633,_0x2b4b45)=>this[_0x52c519(0x19f)](_0x2b4b45)),this['on'](_0x52c519(0x1e2),(_0x413b9b,_0x2f0a1f)=>this[_0x52c519(0x1ad)](_0x2f0a1f)),this['on'](_0x52c519(0x1a9),(_0x9ffcc6,{threadId:_0x1a1a1e,isFromAdapter:_0x55c472})=>{const _0x49e127=_0x52c519;if(_0x55c472)return;const _0x449f22=this[_0x49e127(0x20e)](_0x1a1a1e),_0x4b5106=_0x449f22&&this[_0x49e127(0x1df)][_0x49e127(0x1ea)](_0x449f22);_0x4b5106&&_0x4b5106[_0x49e127(0x21b)][_0x49e127(0x1d0)][_0x49e127(0x1d4)](-0x1);},{'priority':_0x52c519(0x1b6)}),this[_0x52c519(0x238)](_0x13cba4,_0x52c519(0x191),(_0x890677,_0x459fca,_0x19ed8e)=>{const _0x131758=_0x52c519,_0x18118b=Array[_0x131758(0x205)](_0x19ed8e)[_0x131758(0x173)](_0x381382=>this[_0x131758(0x193)][_0x131758(0x1ea)](_0x381382[_0x131758(0x23e)]))[_0x131758(0x23b)](Boolean)[0x0];this[_0x131758(0x223)]=_0x18118b?_0x18118b[_0x131758(0x17e)]:null;});}set[_0x2d403c(0x1cb)](_0x2904a0){const _0xcebc0b=_0x2d403c;if(this[_0xcebc0b(0x1c9)])throw new _0x50caed(_0xcebc0b(0x1f1));this[_0xcebc0b(0x1c9)]=_0x2904a0;}get[_0x2d403c(0x1cb)](){const _0x26e6a4=_0x2d403c;return this[_0x26e6a4(0x1c9)];}[_0x2d403c(0x188)]({channelId:_0x22c646=Tt,threadId:_0xcf109f=_0xb51eb8(),comments:_0x2ccf27=[],unlinkedAt:_0x2af9dc=null,resolvedAt:_0x25fcc8=null,resolvedBy:_0x53a001=null,target:_0x1a1fee=null,context:_0x3e12e3=null,attributes:_0x51deea={},isResolvable:_0xa4d440=!0x0,isSubmitted:_0x31cff2=!0x1,isFromAdapter:_0xe00888=!0x1}={}){const _0x190fa1=_0x2d403c;return this[_0x190fa1(0x1ab)](bt(_0x190fa1(0x188),_0x22c646),{'channelId':_0x22c646,'threadId':_0xcf109f,'comments':_0x2ccf27,'unlinkedAt':_0x2af9dc,'resolvedAt':_0x25fcc8,'resolvedBy':_0x53a001,'target':_0x1a1fee,'context':_0x3e12e3,'attributes':_0x51deea,'isFromAdapter':_0xe00888,'isResolvable':_0xa4d440,'isSubmitted':_0x31cff2}),this[_0x190fa1(0x20e)](_0xcf109f);}[_0x2d403c(0x185)]({channelId:_0x379fb1=Tt,threadId:_0x5f4abb=_0xb51eb8(),target:_0x32e9c2,context:_0x188976=null,isResolvable:_0x56a612=!0x0}){const _0x3d79ee=_0x2d403c;if(this[_0x3d79ee(0x18f)][_0x3d79ee(0x1dd)](_0x379fb1)||this[_0x3d79ee(0x18f)][_0x3d79ee(0x1dd)](void 0x0))return null;if(!_0x32e9c2)throw new _0x50caed(_0x3d79ee(0x1d2));const _0x348c1f=this[_0x3d79ee(0x188)]({'channelId':_0x379fb1,'threadId':_0x5f4abb,'target':_0x32e9c2,'context':_0x188976,'isResolvable':_0x56a612});if(!_0x348c1f)return null;const _0x399703=this[_0x3d79ee(0x1df)][_0x3d79ee(0x1ea)](_0x348c1f),_0x5699b0=_0x399703[_0x3d79ee(0x21b)][_0x3d79ee(0x197)][_0x3d79ee(0x1a1)],_0x367e2a=this[_0x3d79ee(0x22d)][_0x3d79ee(0x177)][_0x3d79ee(0x1ea)](_0x4db28f),_0x25b3e8=_0x367e2a[_0x3d79ee(0x170)](_0x399703[_0x3d79ee(0x21b)]);return _0x367e2a[_0x3d79ee(0x189)](_0x25b3e8),_0x5699b0[_0x3d79ee(0x1ff)](_0x3d79ee(0x1d5),()=>_0x5699b0[_0x3d79ee(0x1d4)]()),_0x348c1f;}[_0x2d403c(0x1b3)](_0x11a0f0){const _0x485a0e=_0x2d403c;if(_0x485a0e(0x1f8)!=typeof _0x11a0f0)throw new _0x50caed(_0x485a0e(0x1f3));return this[_0x485a0e(0x236)][_0x485a0e(0x1dd)](_0x11a0f0);}[_0x2d403c(0x246)]({channelId:_0x267b93=Tt,threadId:_0xca7e88,context:_0x444d00,unlinkedAt:_0x5b0c36,attributes:_0xd29420,isFromAdapter:_0x6b6992=!0x1}){const _0x1cbeb4=_0x2d403c;return this[_0x1cbeb4(0x1ab)](bt(_0x1cbeb4(0x246),_0x267b93),{'channelId':_0x267b93,'threadId':_0xca7e88,'context':_0x444d00,'unlinkedAt':_0x5b0c36,'attributes':_0xd29420,'isFromAdapter':_0x6b6992}),this[_0x1cbeb4(0x20e)](_0xca7e88);}[_0x2d403c(0x20e)](_0x3bc4c4){const _0x424891=_0x2d403c;if(_0x424891(0x1f8)!=typeof _0x3bc4c4)throw new _0x50caed(_0x424891(0x1f3));return this[_0x424891(0x236)][_0x424891(0x1ea)](_0x3bc4c4);}[_0x2d403c(0x19e)]({channelId:_0xf93f01,threadId:_0x52e018}={}){const _0x1d8248=_0x2d403c,_0x3e8186=this[_0x1d8248(0x20e)](_0x52e018);if(_0x3e8186)return Promise[_0x1d8248(0x1a7)](_0x3e8186);if(!this[_0x1d8248(0x1cb)])return Promise[_0x1d8248(0x1a7)](void 0x0);if(_0x1d8248(0x23c)!=typeof this[_0x1d8248(0x1cb)][_0x1d8248(0x20e)])throw new _0x50caed(_0x1d8248(0x17c),this[_0x1d8248(0x22d)]);return this[_0x1d8248(0x1cb)][_0x1d8248(0x20e)]({'channelId':_0xf93f01,'threadId':_0x52e018})[_0x1d8248(0x250)](_0x6d7ebe=>this[_0x1d8248(0x1b3)](_0x52e018)?this[_0x1d8248(0x20e)](_0x52e018):_0x6d7ebe?this[_0x1d8248(0x188)](Object[_0x1d8248(0x1b9)]({'isFromAdapter':!0x0,'channelId':_0xf93f01},_0x6d7ebe)):void 0x0)[_0x1d8248(0x190)](_0xb314fb=>{const _0x15b836=_0x1d8248;throw console[_0x15b836(0x24c)](_0xb314fb),new _0x50caed(_0x15b836(0x187),this[_0x15b836(0x22d)]);});}[_0x2d403c(0x179)]({channelId:_0x29aa22,skipNotAttached:_0x5bf461=!0x1,skipEmpty:_0x48317a=!0x1,toJSON:_0x418856=!0x1}={}){const _0x240c19=_0x2d403c,_0x4fcaaa=[];for(const _0x57d34a of this[_0x240c19(0x236)][_0x240c19(0x1a5)]())_0x29aa22&&_0x57d34a[_0x240c19(0x1a8)]!==_0x29aa22||_0x5bf461&&!_0x57d34a[_0x240c19(0x1c2)]||_0x48317a&&0x0===_0x57d34a[_0x240c19(0x1dc)]||_0x4fcaaa[_0x240c19(0x16f)](_0x57d34a);return _0x418856?_0x4fcaaa[_0x240c19(0x173)](_0x284f6c=>_0x284f6c[_0x240c19(0x19b)]()):_0x4fcaaa;}[_0x2d403c(0x243)](_0xf8095f){const _0x382a6b=_0x2d403c,_0x2b097a=this[_0x382a6b(0x22d)][_0x382a6b(0x177)][_0x382a6b(0x1ea)](_0x4db28f);if(!_0xf8095f)return void(this[_0x382a6b(0x223)]&&_0x2b097a[_0x382a6b(0x180)]());const _0x16eee0=this[_0x382a6b(0x20e)](_0xf8095f);if(!_0x16eee0)throw new _0x50caed(_0x382a6b(0x184),null,{'threadId':_0xf8095f});if(!this[_0x382a6b(0x1df)][_0x382a6b(0x1dd)](_0x16eee0))throw new _0x50caed(_0x382a6b(0x24a),null,{'threadId':_0xf8095f});const _0x521c6d=_0x2b097a[_0x382a6b(0x170)](this[_0x382a6b(0x1df)][_0x382a6b(0x1ea)](_0x16eee0)[_0x382a6b(0x21b)]);_0x2b097a[_0x382a6b(0x189)](_0x521c6d);}[_0x2d403c(0x1e9)](_0x43d85d,_0x463fa8){const _0x2684bd=_0x2d403c;_0x43d85d?this[_0x2684bd(0x18f)][_0x2684bd(0x1fe)](_0x463fa8):this[_0x2684bd(0x18f)][_0x2684bd(0x1ed)](_0x463fa8),this[_0x2684bd(0x1ab)](_0x2684bd(0x222),_0x2684bd(0x18f),this[_0x2684bd(0x18f)],this[_0x2684bd(0x18f)]);}[_0x2d403c(0x1c5)](_0x140bf9){const _0x2498b4=_0x2d403c;return this[_0x2498b4(0x18f)][_0x2498b4(0x1dd)](_0x140bf9)||this[_0x2498b4(0x18f)][_0x2498b4(0x1dd)](void 0x0);}[_0x2d403c(0x232)](_0x452c4f,_0x4bef6e){return new _0x4d2ab7(_0x452c4f,_0x4bef6e);}[_0x2d403c(0x175)](_0x350fdd,_0x266be9=Tt){const _0x39f538=_0x2d403c;this[_0x39f538(0x234)][_0x39f538(0x1d8)](_0x266be9,_0x350fdd),this[_0x39f538(0x1ab)](_0x39f538(0x1e4),_0x39f538(0x234),this[_0x39f538(0x234)],this[_0x39f538(0x234)]);}[_0x2d403c(0x244)](_0x3af3b3=Tt){const _0x80d310=_0x2d403c;return this[_0x80d310(0x234)][_0x80d310(0x1dd)](_0x3af3b3)?this[_0x80d310(0x234)][_0x80d310(0x1ea)](_0x3af3b3):_t;}[_0x2d403c(0x219)]({channelId:_0x39cfda,threadId:_0x5cd243,comments:_0x28f9f8,unlinkedAt:_0x1cc2dd,resolvedAt:_0x1d6669,resolvedBy:_0x373a89,target:_0x17682e,context:_0x2a4b81,attributes:_0xc94495,isFromAdapter:_0x4199ae,isResolvable:_0x183242,isSubmitted:_0x53287d}){const _0x28f627=_0x2d403c;if(_0x28f627(0x1f8)!=typeof _0x5cd243)throw new _0x50caed(_0x28f627(0x1f3),null,{'threadId':_0x5cd243});if(this[_0x28f627(0x1b3)](_0x5cd243))throw new _0x50caed(_0x28f627(0x22b),null,{'threadId':_0x5cd243});const _0x22eae=new CommentThread(this,{'channelId':_0x39cfda,'id':_0x5cd243,'context':_0x2a4b81,'attributes':_0xc94495,'unlinkedAt':_0x1cc2dd,'resolvedAt':_0x1d6669,'resolvedBy':_0x373a89?this[_0x28f627(0x22d)][_0x28f627(0x177)][_0x28f627(0x1ea)](_0x2223ba)[_0x28f627(0x16c)](_0x373a89):null,'isResolvable':_0x183242,'isSubmitted':_0x53287d||_0x4199ae});this[_0x28f627(0x236)][_0x28f627(0x1d8)](_0x5cd243,_0x22eae);for(const _0x1f337f of _0x28f9f8)_0x22eae[_0x28f627(0x20c)](this[_0x28f627(0x1e5)]({'threadId':_0x5cd243,..._0x1f337f}));return _0x17682e&&_0x22eae[_0x28f627(0x239)](_0x17682e),_0x4199ae||!_0x22eae[_0x28f627(0x1dc)]?Promise[_0x28f627(0x1a7)]():this[_0x28f627(0x1a6)]({'channelId':_0x39cfda,'threadId':_0x5cd243});}[_0x2d403c(0x1a6)]({channelId:_0x70dfea,threadId:_0x39aa06}){const _0x264d05=_0x2d403c;if(!this[_0x264d05(0x1b3)](_0x39aa06))throw new _0x50caed(_0x264d05(0x1ae),this);const _0x1c0c23=this[_0x264d05(0x20e)](_0x39aa06);if(_0x1c0c23[_0x264d05(0x225)]=!0x0,!this[_0x264d05(0x1cb)]||_0x264d05(0x23c)!=typeof this[_0x264d05(0x1cb)][_0x264d05(0x188)])return Promise[_0x264d05(0x1a7)]();const {id:_0x3b4e6e,comments:_0x4ae268,resolvedAt:_0x2f0049,resolvedBy:_0x16a3a3,context:_0x546784,attributes:_0x5a51ff}=_0x1c0c23,_0x545e56=this[_0x264d05(0x22d)][_0x264d05(0x177)][_0x264d05(0x1ea)](_0x264d05(0x1ba)),_0x7d17a5=_0x545e56[_0x264d05(0x1fe)](_0x1c3c33(this[_0x264d05(0x22d)][_0x264d05(0x240)],_0x264d05(0x1ca)));return this[_0x264d05(0x1cb)][_0x264d05(0x188)]({'channelId':_0x70dfea,'threadId':_0x3b4e6e,'comments':_0x4ae268[_0x264d05(0x173)](_0x458127=>_0x458127[_0x264d05(0x19b)]()),'resolvedAt':_0x2f0049,'resolvedBy':_0x16a3a3?_0x16a3a3['id']:_0x16a3a3,'context':_0x546784,'attributes':_0x5a51ff})[_0x264d05(0x250)](({comments:_0x45b8a4})=>{const _0x315457=_0x264d05;_0x545e56[_0x315457(0x1d9)](_0x7d17a5);for(const _0x1779d1 of _0x45b8a4)this[_0x315457(0x19f)]({'channelId':_0x70dfea,'threadId':_0x39aa06,'commentId':_0x1779d1[_0x315457(0x198)],'createdAt':_0x1779d1[_0x315457(0x1b5)],'isFromAdapter':!0x0});})[_0x264d05(0x190)](_0x40b0aa=>{const _0x5d7363=_0x264d05;throw console[_0x5d7363(0x24c)](_0x40b0aa),new _0x50caed(_0x5d7363(0x1e3),this);});}[_0x2d403c(0x23a)]({threadId:_0x1e61c3,target:_0x1a228c}){const _0x1fc340=_0x2d403c,_0x676597=this[_0x1fc340(0x20e)](_0x1e61c3);if(!_0x676597)throw new _0x50caed(_0x1fc340(0x181),this);const _0x3f68cf=this[_0x1fc340(0x22d)][_0x1fc340(0x177)][_0x1fc340(0x1ea)](_0x1fc340(0x1ba)),_0x38738e=this[_0x1fc340(0x22d)][_0x1fc340(0x177)][_0x1fc340(0x1ea)](_0x4db28f),_0x25bfbc=this[_0x1fc340(0x1c8)](_0x676597),_0x27fd6a=new _0x4d2ab7(_0x676597,_0x25bfbc);let _0x3cabf1=null;_0x25bfbc['on'](_0x1fc340(0x171),(_0x5b9636,_0x22f4f6,_0xfc108c)=>{const _0x5d47b2=_0x1fc340;_0xfc108c?_0x3cabf1=_0x3f68cf[_0x5d47b2(0x1fe)](_0x1c3c33(this[_0x5d47b2(0x22d)][_0x5d47b2(0x240)],_0x5d47b2(0x1ca))):_0x3cabf1&&(_0x3f68cf[_0x5d47b2(0x1d9)](_0x3cabf1),_0x3cabf1=null);}),this[_0x1fc340(0x1df)][_0x1fc340(0x1d8)](_0x676597,_0x27fd6a),this[_0x1fc340(0x193)][_0x1fc340(0x1d8)](_0x25bfbc,_0x27fd6a);const _0x598db8=new _0x431a16(this[_0x1fc340(0x22d)][_0x1fc340(0x240)],_0x25bfbc);_0x598db8[_0x1fc340(0x1d7)](_0x1fc340(0x1dc))['to'](_0x25bfbc),_0x598db8[_0x1fc340(0x1d7)](_0x1fc340(0x207))['to'](_0x25bfbc,_0x1fc340(0x207),_0x25bfbc,_0x1fc340(0x1dc),(_0x496d34,_0x133386)=>_0x496d34||!_0x133386),_0x598db8[_0x1fc340(0x1d7)](_0x1fc340(0x17d))['to'](_0x25bfbc),_0x598db8[_0x1fc340(0x1bd)]=_0x1fc340(0x1c7);const _0x2171da=new _0x1573ca({'view':_0x598db8,'target':_0x1a228c,'type':_0x1fc340(0x1c7),'isVisible':!_0x676597[_0x1fc340(0x1a2)]});return _0x25bfbc['on'](_0x1fc340(0x215),()=>{const _0x46641a=_0x1fc340;_0x2171da[_0x46641a(0x1ab)](_0x46641a(0x215));}),this[_0x1fc340(0x20f)](_0x25bfbc,_0x2171da),_0x38738e[_0x1fc340(0x1fe)](_0x2171da),_0x2171da;}[_0x2d403c(0x20f)](_0x21e7b5,_0x192fd9){const _0x2fb122=_0x2d403c;this[_0x2fb122(0x238)](_0x21e7b5,_0x2fb122(0x1d5),(_0x4410b0,_0x25bd53)=>{const _0x55c09b=_0x2fb122,_0x16922f=_0x25bd53['ui'][_0x55c09b(0x21b)][_0x55c09b(0x1eb)][_0x55c09b(0x1b4)];_0x192fd9[_0x55c09b(0x183)][_0x55c09b(0x1fe)](_0x16922f),this[_0x55c09b(0x22d)]instanceof _0x3df0ad&&this[_0x55c09b(0x22d)]['ui'][_0x55c09b(0x21f)][_0x55c09b(0x1fe)](_0x16922f);},{'priority':_0x2fb122(0x242)}),this[_0x2fb122(0x238)](_0x21e7b5,_0x2fb122(0x1bb),(_0x358190,_0x5059f1)=>{const _0x3c8634=_0x2fb122,_0x7ccc68=_0x5059f1['ui'][_0x3c8634(0x21b)][_0x3c8634(0x1eb)][_0x3c8634(0x1b4)];_0x192fd9[_0x3c8634(0x183)][_0x3c8634(0x1dd)](_0x7ccc68)&&_0x192fd9[_0x3c8634(0x183)][_0x3c8634(0x1d9)](_0x7ccc68),this[_0x3c8634(0x22d)]instanceof _0x3df0ad&&this[_0x3c8634(0x22d)]['ui'][_0x3c8634(0x21f)][_0x3c8634(0x1d9)](_0x7ccc68);});}[_0x2d403c(0x1e8)](_0x2434e0){const _0x4e4c07=_0x2d403c;this[_0x4e4c07(0x226)](_0x2434e0,_0x4e4c07(0x1d5)),this[_0x4e4c07(0x226)](_0x2434e0,_0x4e4c07(0x1bb));}[_0x2d403c(0x1c8)](_0x2390cd){const _0x292b3e=_0x2d403c,_0x33b8c8=this[_0x292b3e(0x22d)][_0x292b3e(0x177)][_0x292b3e(0x1ea)](_0x2223ba),{config:_0x3fb488,locale:_0x1afa0b}=this[_0x292b3e(0x22d)],_0x3d90ef=_0xe08728(_0x3fb488[_0x292b3e(0x1ea)](_0x292b3e(0x240)),_0x1afa0b);return new(0x0,(_0x3fb488[_0x292b3e(0x1ea)](_0x292b3e(0x178)))[(_0x292b3e(0x196))])(_0x1afa0b,_0x2390cd,_0x33b8c8['me'],{'editorConfig':{..._0x3fb488[_0x292b3e(0x1ea)](_0x292b3e(0x1aa)),'licenseKey':this[_0x292b3e(0x22d)][_0x292b3e(0x248)][_0x292b3e(0x1ea)](_0x292b3e(0x1bf))},'copyMarkers':_0x3fb488[_0x292b3e(0x1ea)](_0x292b3e(0x21c)),'maxCommentsWhenCollapsed':_0x3fb488[_0x292b3e(0x1ea)](_0x292b3e(0x22a)),'maxThreadTotalWeight':_0x3fb488[_0x292b3e(0x1ea)](_0x292b3e(0x22c)),'maxCommentCharsWhenCollapsed':_0x3fb488[_0x292b3e(0x1ea)](_0x292b3e(0x1e0)),'formatDateTime':_0x3d90ef,'CommentView':_0x3fb488[_0x292b3e(0x1ea)](_0x292b3e(0x178))[_0x292b3e(0x1f2)]});}[_0x2d403c(0x1fb)]({threadId:_0xe58236,channelId:_0x95bd5d,resolvedAt:_0x27fcab,resolvedBy:_0x159659,isFromAdapter:_0x547ad0}){const _0x2743a3=_0x2d403c;if(!this[_0x2743a3(0x1b3)](_0xe58236))throw new _0x50caed(_0x2743a3(0x1ae),null,{'threadId':_0xe58236});const _0x58db3e=this[_0x2743a3(0x20e)](_0xe58236);if(_0x58db3e[_0x2743a3(0x1c4)])throw new _0x50caed(_0x2743a3(0x229),null,{'threadId':_0xe58236});const _0x1fc613=this[_0x2743a3(0x22d)][_0x2743a3(0x177)][_0x2743a3(0x1ea)](_0x2223ba);if(_0x58db3e[_0x2743a3(0x1f0)]=_0x1fc613[_0x2743a3(0x16c)](_0x159659),_0x58db3e[_0x2743a3(0x19a)]=_0x27fcab,_0x547ad0||!this[_0x2743a3(0x1cb)]||_0x2743a3(0x23c)!=typeof this[_0x2743a3(0x1cb)][_0x2743a3(0x1ee)])return Promise[_0x2743a3(0x1a7)]();const _0x78fb82=this[_0x2743a3(0x22d)][_0x2743a3(0x177)][_0x2743a3(0x1ea)](_0x2743a3(0x1ba)),_0x5e205d=_0x78fb82[_0x2743a3(0x1fe)](_0x1c3c33(this[_0x2743a3(0x22d)][_0x2743a3(0x240)],_0x2743a3(0x1ca)));return this[_0x2743a3(0x1cb)][_0x2743a3(0x1ee)]({'channelId':_0x95bd5d,'threadId':_0xe58236})[_0x2743a3(0x250)](({resolvedAt:_0x3f71ff,resolvedBy:_0xd76b20})=>{const _0x431b5f=_0x2743a3;_0x78fb82[_0x431b5f(0x1d9)](_0x5e205d),_0x58db3e[_0x431b5f(0x1f0)]['id']!==_0xd76b20&&(_0x58db3e[_0x431b5f(0x1f0)]=_0x1fc613[_0x431b5f(0x16c)](_0xd76b20)),_0x58db3e[_0x431b5f(0x19a)]=_0x3f71ff;})[_0x2743a3(0x190)](_0x388e9f=>{const _0x5a83f3=_0x2743a3;throw console[_0x5a83f3(0x24c)](_0x388e9f),new _0x50caed(_0x5a83f3(0x202),this);});}[_0x2d403c(0x241)]({threadId:_0x1b11c5,channelId:_0x39db6e,isFromAdapter:_0x41a8ff}){const _0x97bedd=_0x2d403c;if(!this[_0x97bedd(0x1b3)](_0x1b11c5))throw new _0x50caed(_0x97bedd(0x1ae),null,{'threadId':_0x1b11c5});const _0x58ab90=this[_0x97bedd(0x20e)](_0x1b11c5);if(!_0x58ab90[_0x97bedd(0x1c4)])throw new _0x50caed(_0x97bedd(0x21a),null,{'threadId':_0x1b11c5});if(_0x58ab90[_0x97bedd(0x1f0)]=null,_0x58ab90[_0x97bedd(0x19a)]=null,_0x41a8ff||!this[_0x97bedd(0x1cb)]||_0x97bedd(0x23c)!=typeof this[_0x97bedd(0x1cb)][_0x97bedd(0x208)])return Promise[_0x97bedd(0x1a7)]();const _0x5b729f=this[_0x97bedd(0x22d)][_0x97bedd(0x177)][_0x97bedd(0x1ea)](_0x97bedd(0x1ba)),_0x6cbda9=_0x5b729f[_0x97bedd(0x1fe)](_0x1c3c33(this[_0x97bedd(0x22d)][_0x97bedd(0x240)],_0x97bedd(0x1ca)));return this[_0x97bedd(0x1cb)][_0x97bedd(0x208)]({'channelId':_0x39db6e,'threadId':_0x1b11c5})[_0x97bedd(0x250)](()=>_0x5b729f[_0x97bedd(0x1d9)](_0x6cbda9))[_0x97bedd(0x190)](_0x133c44=>{const _0x220759=_0x97bedd;throw console[_0x220759(0x24c)](_0x133c44),new _0x50caed(_0x220759(0x199),this);});}[_0x2d403c(0x204)]({threadId:_0xf01601,isFromAdapter:_0xcf2d5c}){const _0x6742b1=_0x2d403c,_0x579060=this[_0x6742b1(0x20e)](_0xf01601);if(!_0x579060)throw new _0x50caed(_0x6742b1(0x212),this);if(this[_0x6742b1(0x1cd)](_0xf01601),this[_0x6742b1(0x236)][_0x6742b1(0x1ed)](_0xf01601),!_0x579060[_0x6742b1(0x1f6)]||_0xcf2d5c||!this[_0x6742b1(0x1cb)]||_0x6742b1(0x23c)!=typeof this[_0x6742b1(0x1cb)][_0x6742b1(0x1a0)])return Promise[_0x6742b1(0x1a7)]();const _0x174a54=this[_0x6742b1(0x22d)][_0x6742b1(0x177)][_0x6742b1(0x1ea)](_0x6742b1(0x1ba)),{channelId:_0x447be0}=_0x579060,_0x43d3f2=_0x174a54[_0x6742b1(0x1fe)](_0x1c3c33(this[_0x6742b1(0x22d)][_0x6742b1(0x240)],_0x6742b1(0x1ca)));return this[_0x6742b1(0x1cb)][_0x6742b1(0x1a0)]({'channelId':_0x447be0,'threadId':_0xf01601})[_0x6742b1(0x250)](()=>_0x174a54[_0x6742b1(0x1d9)](_0x43d3f2))[_0x6742b1(0x190)](_0x591be4=>{const _0x5110ae=_0x6742b1;throw console[_0x5110ae(0x24c)](_0x591be4),new _0x50caed(_0x5110ae(0x1cf),this);});}[_0x2d403c(0x24e)]({threadId:_0x54a4a0,unlinkedAt:_0x353c5b,context:_0x3eb1ad,attributes:_0x57ddee,isFromAdapter:_0x2abf40}){const _0x2d7323=_0x2d403c;if(_0x2d7323(0x1f8)!=typeof _0x54a4a0)throw new _0x50caed(_0x2d7323(0x1f3),null,{'threadId':_0x54a4a0});if(!this[_0x2d7323(0x1b3)](_0x54a4a0))throw new _0x50caed(_0x2d7323(0x1ae),null,{'threadId':_0x54a4a0});const _0x458f1f=this[_0x2d7323(0x20e)](_0x54a4a0);let _0x44c5ff=!0x1;if(void 0x0!==_0x3eb1ad&&_0x458f1f[_0x2d7323(0x22d)]!==_0x3eb1ad&&(_0x458f1f[_0x2d7323(0x22d)]=_0x3eb1ad,_0x44c5ff=!0x0),void 0x0!==_0x353c5b&&_0x458f1f[_0x2d7323(0x1a3)]!==_0x353c5b&&(_0x458f1f[_0x2d7323(0x1a3)]=_0x353c5b,_0x44c5ff=!0x0),_0x57ddee&&!_0x55f733(_0x57ddee,_0x458f1f[_0x2d7323(0x1a4)])&&(_0x458f1f[_0x2d7323(0x1a4)]=_0x57ddee,_0x44c5ff=!0x0),!_0x44c5ff)return Promise[_0x2d7323(0x1a7)]();if(!_0x458f1f[_0x2d7323(0x1f6)]||_0x2abf40||!this[_0x2d7323(0x1cb)]||_0x2d7323(0x23c)!=typeof this[_0x2d7323(0x1cb)][_0x2d7323(0x246)])return Promise[_0x2d7323(0x1a7)]();const _0x30d45a=this[_0x2d7323(0x22d)][_0x2d7323(0x177)][_0x2d7323(0x1ea)](_0x2d7323(0x1ba)),{channelId:_0x230374}=_0x458f1f,_0x1168fb=_0x30d45a[_0x2d7323(0x1fe)](_0x1c3c33(this[_0x2d7323(0x22d)][_0x2d7323(0x240)],_0x2d7323(0x1ca)));return this[_0x2d7323(0x1cb)][_0x2d7323(0x246)]({'channelId':_0x230374,'threadId':_0x54a4a0,'context':_0x3eb1ad,'unlinkedAt':_0x353c5b,'attributes':_0x57ddee})[_0x2d7323(0x250)](()=>_0x30d45a[_0x2d7323(0x1d9)](_0x1168fb))[_0x2d7323(0x190)](_0x155f03=>{const _0x353ecb=_0x2d7323;throw console[_0x353ecb(0x24c)](_0x155f03),new _0x50caed(_0x353ecb(0x249),this);});}[_0x2d403c(0x1cd)](_0x4a2640){const _0x201160=_0x2d403c,_0x55a96e=this[_0x201160(0x22d)][_0x201160(0x177)][_0x201160(0x1ea)](_0x4db28f),_0x121477=this[_0x201160(0x20e)](_0x4a2640);if(_0x121477[_0x201160(0x19d)]=!0x1,this[_0x201160(0x1df)][_0x201160(0x1dd)](_0x121477)){const _0x51d070=this[_0x201160(0x1df)][_0x201160(0x1ea)](_0x121477),_0x4de0c8=_0x51d070[_0x201160(0x21b)],_0x97d27c=_0x55a96e[_0x201160(0x170)](_0x4de0c8);this[_0x201160(0x1df)][_0x201160(0x1ed)](_0x121477),this[_0x201160(0x193)][_0x201160(0x1ed)](_0x4de0c8),_0x97d27c&&_0x55a96e[_0x201160(0x1d9)](_0x97d27c),_0x51d070[_0x201160(0x1af)](),_0x4de0c8[_0x201160(0x1af)]()[_0x201160(0x250)](()=>{const _0x5dfd56=_0x201160;this[_0x5dfd56(0x1e8)](_0x4de0c8);});}}[_0x2d403c(0x1e1)]({threadId:_0x4ef34d,resolvedAt:_0x5474d1,unlinkedAt:_0x59e3d1}){const _0xe20aeb=_0x2d403c,_0x3547c2=!!_0x5474d1,_0x417f48=this[_0xe20aeb(0x22d)][_0xe20aeb(0x177)][_0xe20aeb(0x1ea)](_0x4db28f),_0x27fbd4=this[_0xe20aeb(0x20e)](_0x4ef34d);if(this[_0xe20aeb(0x1df)][_0xe20aeb(0x1dd)](_0x27fbd4)){const _0x537229=this[_0xe20aeb(0x1df)][_0xe20aeb(0x1ea)](_0x27fbd4)[_0xe20aeb(0x21b)],_0x51430e=_0x417f48[_0xe20aeb(0x170)](_0x537229);_0x51430e&&(_0x3547c2&&_0x417f48[_0xe20aeb(0x251)](_0x51430e),_0x59e3d1?_0x51430e[_0xe20aeb(0x1b2)]=!0x1:_0x51430e[_0xe20aeb(0x231)]());}}[_0x2d403c(0x172)](_0xa296c7){const _0x1f20c4=_0x2d403c,_0x1fd2c8=this[_0x1f20c4(0x22d)][_0x1f20c4(0x177)][_0x1f20c4(0x1ea)](_0x2223ba),_0x480dbe=_0x1c6a89(_0x1f20c4(0x203)+_0xa296c7),_0x522edb=_0x1fd2c8[_0x1f20c4(0x16c)](_0x480dbe);return _0x522edb||_0x1fd2c8[_0x1f20c4(0x1f9)]({'id':_0x480dbe,'name':_0xa296c7});}[_0x2d403c(0x1e5)]({threadId:_0x5a2bf5,commentId:_0x31f28e=_0xb51eb8(),content:_0x4569eb,authorId:_0x332212,createdAt:_0x47f07e,attributes:_0x59563b}){const _0x3ecca3=_0x2d403c;if(_0x3ecca3(0x1f8)!=typeof _0x31f28e)throw new _0x50caed(_0x3ecca3(0x1fd));if(_0x3ecca3(0x1f8)!=typeof _0x332212)throw new _0x50caed(_0x3ecca3(0x206));if(_0x3ecca3(0x1f8)!=typeof _0x4569eb||!_0x4569eb[_0x3ecca3(0x200)]())throw new _0x50caed(_0x3ecca3(0x19c));const _0x58daa7=this[_0x3ecca3(0x22d)][_0x3ecca3(0x177)][_0x3ecca3(0x1ea)](_0x2223ba)[_0x3ecca3(0x16c)](_0x332212);if(!_0x58daa7)throw new _0x50caed(_0x3ecca3(0x194),null,{'authorId':_0x332212});let _0x53baad=null,_0xe30ebe=_0x47f07e;return _0x59563b?.[_0x3ecca3(0x16d)]&&(_0x53baad=this[_0x3ecca3(0x172)](_0x59563b[_0x3ecca3(0x16d)][_0x3ecca3(0x1f7)]),_0xe30ebe=new Date(_0x59563b[_0x3ecca3(0x16d)][_0x3ecca3(0x1b5)])),new Comment(this,{'threadId':_0x5a2bf5,'id':_0x31f28e,'author':_0x53baad||_0x58daa7,'creator':_0x58daa7,'content':_0x4569eb,'createdAt':_0x47f07e,'authoredAt':_0xe30ebe,'attributes':_0x59563b});}[_0x2d403c(0x18c)](_0xfdec1){const _0x46e364=_0x2d403c;let {threadId:_0x1ad0b0,content:_0x468535,attributes:_0x3f9911,isFromAdapter:_0x528058}=_0xfdec1;const _0x34fb05=this[_0x46e364(0x20e)](_0xfdec1[_0x46e364(0x17b)]);if(!_0x34fb05)throw new _0x50caed(_0x46e364(0x210),this);const _0x541e9a=this[_0x46e364(0x1e5)](_0xfdec1),{id:_0x290d04}=_0x541e9a;if(_0x34fb05[_0x46e364(0x20c)](_0x541e9a),_0x528058||!this[_0x46e364(0x1cb)]||_0x46e364(0x23c)!=typeof this[_0x46e364(0x1cb)][_0x46e364(0x1a9)]||!_0x34fb05[_0x46e364(0x1f6)])return Promise[_0x46e364(0x1a7)]();const _0x1e7f31=this[_0x46e364(0x22d)][_0x46e364(0x177)][_0x46e364(0x1ea)](_0x46e364(0x1ba)),{channelId:_0x179ea5}=_0x34fb05,_0x530e4e=_0x1e7f31[_0x46e364(0x1fe)](_0x1c3c33(this[_0x46e364(0x22d)][_0x46e364(0x240)],_0x46e364(0x1ca)));return _0x3f9911||(_0x3f9911={}),this[_0x46e364(0x1cb)][_0x46e364(0x1a9)]({'channelId':_0x179ea5,'threadId':_0x1ad0b0,'commentId':_0x290d04,'content':_0x468535,'attributes':_0x3f9911})[_0x46e364(0x250)](_0x743652=>{const _0xbfef74=_0x46e364;_0x1e7f31[_0xbfef74(0x1d9)](_0x530e4e),_0x743652&&this[_0xbfef74(0x19f)]({'channelId':_0x179ea5,'threadId':_0x1ad0b0,'commentId':_0x290d04,'createdAt':_0x743652[_0xbfef74(0x1b5)],'isFromAdapter':!0x0});})[_0x46e364(0x190)](_0x5a7336=>{const _0xca4b7a=_0x46e364;throw console[_0xca4b7a(0x24c)](_0x5a7336),new _0x50caed(_0xca4b7a(0x1da),this);});}[_0x2d403c(0x19f)]({threadId:_0x4cce9b,commentId:_0x1893eb,content:_0xa30cd6,createdAt:_0x19453c,attributes:_0x198439,isFromAdapter:_0x23a4ac}){const _0x3fa856=_0x2d403c;if(void 0x0!==_0xa30cd6&&(_0x3fa856(0x1f8)!=typeof _0xa30cd6||!_0xa30cd6[_0x3fa856(0x200)]()[_0x3fa856(0x1dc)]))throw new _0x50caed(_0x3fa856(0x1d1));const _0x5c6965=this[_0x3fa856(0x20e)](_0x4cce9b),_0x360213=_0x5c6965[_0x3fa856(0x186)](_0x1893eb);if(!_0x360213)throw new _0x50caed(_0x3fa856(0x252),this);let _0x4078cf=!0x1;if(_0xa30cd6&&_0xa30cd6!==_0x360213[_0x3fa856(0x224)]&&(_0x360213[_0x3fa856(0x1fa)]||_0x23a4ac)&&(_0x360213[_0x3fa856(0x224)]=_0xa30cd6,_0x4078cf=!0x0),_0x19453c&&_0x19453c!==_0x360213[_0x3fa856(0x1b5)]&&(_0x360213[_0x3fa856(0x1b5)]=_0x19453c,_0x360213[_0x3fa856(0x1a4)]&&_0x360213[_0x3fa856(0x1a4)][_0x3fa856(0x16d)]||(_0x360213[_0x3fa856(0x209)]=_0x19453c),_0x4078cf=!0x0),_0x198439&&!_0x55f733(_0x198439,_0x360213[_0x3fa856(0x1a4)])&&(_0x360213[_0x3fa856(0x1a4)]=_0x198439,_0x4078cf=!0x0),!_0x4078cf)return Promise[_0x3fa856(0x1a7)]();if(_0x5c6965[_0x3fa856(0x1ab)](_0x3fa856(0x228)),_0x23a4ac||!this[_0x3fa856(0x1cb)]||_0x3fa856(0x23c)!=typeof this[_0x3fa856(0x1cb)][_0x3fa856(0x1c6)])return Promise[_0x3fa856(0x1a7)]();const _0x2d4f22=this[_0x3fa856(0x22d)][_0x3fa856(0x177)][_0x3fa856(0x1ea)](_0x3fa856(0x1ba)),{channelId:_0x174bc2}=this[_0x3fa856(0x20e)](_0x360213[_0x3fa856(0x17b)]),_0x5e7ee9=_0x2d4f22[_0x3fa856(0x1fe)](_0x1c3c33(this[_0x3fa856(0x22d)][_0x3fa856(0x240)],_0x3fa856(0x1ca)));return this[_0x3fa856(0x1cb)][_0x3fa856(0x1c6)]({'channelId':_0x174bc2,'threadId':_0x4cce9b,'commentId':_0x1893eb,'content':_0xa30cd6,'attributes':_0x198439})[_0x3fa856(0x250)](()=>_0x2d4f22[_0x3fa856(0x1d9)](_0x5e7ee9))[_0x3fa856(0x190)](_0x238233=>{const _0x135e10=_0x3fa856;throw console[_0x135e10(0x24c)](_0x238233),new _0x50caed(_0x135e10(0x24d),this);});}[_0x2d403c(0x1ad)]({threadId:_0x81209c,commentId:_0x398336,isFromAdapter:_0x385721}){const _0x14d08a=_0x2d403c,_0x2310ab=this[_0x14d08a(0x20e)](_0x81209c),_0x8844e4=_0x2310ab[_0x14d08a(0x186)](_0x398336);if(!_0x8844e4)throw new _0x50caed(_0x14d08a(0x201),this);if(_0x2310ab[_0x14d08a(0x1ce)](_0x8844e4),_0x385721||!this[_0x14d08a(0x1cb)]||_0x14d08a(0x23c)!=typeof this[_0x14d08a(0x1cb)][_0x14d08a(0x1e2)])return Promise[_0x14d08a(0x1a7)]();const _0x1b7d42=this[_0x14d08a(0x22d)][_0x14d08a(0x177)][_0x14d08a(0x1ea)](_0x14d08a(0x1ba)),{channelId:_0x1cee7a}=_0x2310ab,_0x10d9a7=_0x1b7d42[_0x14d08a(0x1fe)](_0x1c3c33(this[_0x14d08a(0x22d)][_0x14d08a(0x240)],_0x14d08a(0x1ca)));return this[_0x14d08a(0x1cb)][_0x14d08a(0x1e2)]({'channelId':_0x1cee7a,'threadId':_0x81209c,'commentId':_0x398336})[_0x14d08a(0x250)](()=>_0x1b7d42[_0x14d08a(0x1d9)](_0x10d9a7))[_0x14d08a(0x190)](_0x3235b7=>{const _0x2faf7f=_0x14d08a;throw console[_0x2faf7f(0x24c)](_0x3235b7),new _0x50caed(_0x2faf7f(0x22f),this);});}}export class CommentThread extends/* #__PURE__ -- */
_0x384a2c(){[_0x2d403c(0x1a8)];['id'];[_0x2d403c(0x19d)];[_0x2d403c(0x225)];[_0x2d403c(0x178)];[_0x2d403c(0x174)];constructor(_0x10fafc,_0x15575d){const _0x560638=_0x2d403c;super();const _0x41411c=_0x15575d[_0x560638(0x247)];this[_0x560638(0x1a8)]=_0x15575d[_0x560638(0x1a8)],this['id']=_0x15575d['id'],this[_0x560638(0x178)]=new _0x520677(),this[_0x560638(0x174)]=_0x10fafc,this[_0x560638(0x19d)]=!0x1,this[_0x560638(0x225)]=_0x15575d[_0x560638(0x1f6)],this[_0x560638(0x1d8)](_0x560638(0x1c3),!0x0),this[_0x560638(0x1d7)](_0x560638(0x1c5))['to'](_0x10fafc,_0x560638(0x234),_0x10fafc,_0x560638(0x18f),()=>_0x10fafc[_0x560638(0x1c5)](this[_0x560638(0x1a8)])),this[_0x560638(0x1d7)](_0x560638(0x176))['to'](_0x10fafc,_0x560638(0x234),()=>_0x10fafc[_0x560638(0x244)](this[_0x560638(0x1a8)])[_0x560638(0x221)]),this[_0x560638(0x1d7)](_0x560638(0x1cc))['to'](_0x10fafc,_0x560638(0x234),()=>{const _0x58490c=_0x560638,_0x39ed02=_0x10fafc[_0x58490c(0x244)](this[_0x58490c(0x1a8)]);return _0x39ed02[_0x58490c(0x1c1)]||_0x39ed02[_0x58490c(0x221)];}),this[_0x560638(0x1d7)](_0x560638(0x247))['to'](_0x10fafc,_0x560638(0x234),()=>_0x41411c&&_0x10fafc[_0x560638(0x244)](this[_0x560638(0x1a8)])[_0x560638(0x1a7)]),this[_0x560638(0x1d8)](_0x560638(0x22d),_0x15575d[_0x560638(0x22d)]),this[_0x560638(0x1d7)](_0x560638(0x1a2))['to'](this,_0x560638(0x19a),this,_0x560638(0x1a3),(_0x897b2e,_0x958923)=>_0x897b2e?_0x958923?_0x897b2e<_0x958923?_0x897b2e:_0x958923:_0x897b2e:_0x958923),this[_0x560638(0x1d8)](_0x560638(0x1a3),_0x15575d[_0x560638(0x1a3)]||null),this[_0x560638(0x1d8)](_0x560638(0x19a),_0x15575d[_0x560638(0x19a)]||null),this[_0x560638(0x1d8)](_0x560638(0x1f0),_0x15575d[_0x560638(0x1f0)]||null),this[_0x560638(0x1d7)](_0x560638(0x1c4))['to'](this,_0x560638(0x19a),_0x4f03db=>!!_0x4f03db),this[_0x560638(0x1d8)](_0x560638(0x1a4),_0x15575d[_0x560638(0x1a4)]||{});}get[_0x2d403c(0x18d)](){const _0x5f3bcf=_0x2d403c;return Array[_0x5f3bcf(0x205)](this[_0x5f3bcf(0x178)])[_0x5f3bcf(0x20d)]((_0x126ae0,_0x673d9e)=>_0x126ae0+_0x673d9e[_0x5f3bcf(0x18d)],0x0);}get[_0x2d403c(0x1dc)](){const _0x378fbb=_0x2d403c;return this[_0x378fbb(0x178)][_0x378fbb(0x1dc)];}get[_0x2d403c(0x1c2)](){const _0x1342fd=_0x2d403c;return this[_0x1342fd(0x19d)];}get[_0x2d403c(0x1f6)](){const _0xd8fa74=_0x2d403c;return this[_0xd8fa74(0x225)];}[_0x2d403c(0x216)](){const _0xdbb10b=_0x2d403c,{channelId:_0x7db8a,id:_0x3c082f}=this;this[_0xdbb10b(0x174)][_0xdbb10b(0x1ab)](bt(_0xdbb10b(0x1d3),_0x7db8a),{'channelId':_0x7db8a,'threadId':_0x3c082f});}[_0x2d403c(0x1ec)](_0x572063){const _0x5bbc88=_0x2d403c;this[_0x5bbc88(0x220)]({'unlinkedAt':_0x572063});}[_0x2d403c(0x1a7)]({resolvedAt:_0x3214ef=new Date(),resolvedBy:_0x4801f5=null,isFromAdapter:_0x59296a=!0x1}={}){const _0x578202=_0x2d403c,_0x45fd36=this[_0x578202(0x174)][_0x578202(0x22d)][_0x578202(0x177)][_0x578202(0x1ea)](_0x2223ba)['me'],{channelId:_0x2999d6,id:_0x20058f}=this;this[_0x578202(0x174)][_0x578202(0x1ab)](bt(_0x578202(0x1ee),_0x2999d6),{'channelId':_0x2999d6,'threadId':_0x20058f,'resolvedAt':_0x3214ef,'resolvedBy':_0x4801f5||_0x45fd36['id'],'isFromAdapter':_0x59296a});}[_0x2d403c(0x213)]({isFromAdapter:_0x20f43b=!0x1}={}){const _0x22ecb2=_0x2d403c,{channelId:_0x3dd5f1,id:_0x47cd0d}=this;this[_0x22ecb2(0x174)][_0x22ecb2(0x1ab)](bt(_0x22ecb2(0x208),_0x3dd5f1),{'channelId':_0x3dd5f1,'threadId':_0x47cd0d,'isFromAdapter':_0x20f43b});}[_0x2d403c(0x1db)](_0x2da2e4){const _0x210640=_0x2d403c;this[_0x210640(0x22d)]||this[_0x210640(0x220)]({'context':_0x2da2e4});}[_0x2d403c(0x1bc)](_0x169f55,_0x3614d2){const _0x24c625=_0x2d403c,_0x8c6b85=_0x229498(this[_0x24c625(0x1a4)]);_0x5dea92(_0x8c6b85,_0x169f55,_0x3614d2),this[_0x24c625(0x220)]({'attributes':_0x8c6b85});}[_0x2d403c(0x20b)](_0x4c4b90){const _0x424418=_0x2d403c,_0x13bbb4=_0x229498(this[_0x424418(0x1a4)]);_0x1a2eda(_0x13bbb4,_0x4c4b90),this[_0x424418(0x220)]({'attributes':_0x13bbb4});}[_0x2d403c(0x1d9)]({isFromAdapter:_0x196204=!0x1}={}){const _0x4a88ea=_0x2d403c,{channelId:_0x4b435f,id:_0x3c1c76}=this;this[_0x4a88ea(0x174)][_0x4a88ea(0x1ab)](bt(_0x4a88ea(0x1a0),_0x4b435f),{'channelId':_0x4b435f,'threadId':_0x3c1c76,'isFromAdapter':_0x196204});}[_0x2d403c(0x239)](_0x365e89){const _0x257323=_0x2d403c;return this[_0x257323(0x174)][_0x257323(0x23a)]({'threadId':this['id'],'target':_0x365e89});}[_0x2d403c(0x1a9)](_0x107e8a){const _0xb3c51d=_0x2d403c,{channelId:_0x46db98,id:_0x505fd4}=this;this[_0xb3c51d(0x174)][_0xb3c51d(0x1ab)](bt(_0xb3c51d(0x1a9),_0x46db98,_0x505fd4),Object[_0xb3c51d(0x1b9)]({'channelId':_0x46db98,'threadId':_0x505fd4},_0x107e8a));}[_0x2d403c(0x186)](_0x493d92){const _0x5c71ba=_0x2d403c;if(_0x5c71ba(0x1f8)!=typeof _0x493d92)throw new _0x50caed(_0x5c71ba(0x1f4),null,{'commentId':_0x493d92});return this[_0x5c71ba(0x178)][_0x5c71ba(0x1ea)](_0x493d92);}[_0x2d403c(0x19b)](){const _0xd800f1=_0x2d403c;return{'threadId':this['id'],'context':this[_0xd800f1(0x22d)],'unlinkedAt':this[_0xd800f1(0x1a3)],'resolvedAt':this[_0xd800f1(0x19a)],'resolvedBy':this[_0xd800f1(0x1f0)]?this[_0xd800f1(0x1f0)]['id']:null,'archivedAt':this[_0xd800f1(0x1a2)],'comments':this[_0xd800f1(0x178)][_0xd800f1(0x173)](_0x5873c7=>_0x5873c7[_0xd800f1(0x19b)]()),'attributes':this[_0xd800f1(0x1a4)]};}[_0x2d403c(0x20c)](_0x50735e){const _0x51a909=_0x2d403c;return this[_0x51a909(0x238)](_0x50735e,_0x51a909(0x1b7),()=>{const _0x4c42e9=_0x51a909,_0x4e8dd6=this[_0x4c42e9(0x214)](_0x50735e),_0x5d6645=this[_0x4c42e9(0x178)];_0x4e8dd6-0x1!=_0x5d6645[_0x4c42e9(0x1b8)](_0x50735e)&&_0x4e8dd6+0x1!=_0x5d6645[_0x4c42e9(0x1b8)](_0x50735e)&&(this[_0x4c42e9(0x1ce)](_0x50735e),this[_0x4c42e9(0x20c)](_0x50735e));}),this[_0x51a909(0x178)][_0x51a909(0x1fe)](_0x50735e,this[_0x51a909(0x214)](_0x50735e));}[_0x2d403c(0x220)](_0x138867){const _0x5cb895=_0x2d403c,{channelId:_0x302bdc,id:_0x556802}=this;this[_0x5cb895(0x174)][_0x5cb895(0x1ab)](bt(_0x5cb895(0x246),_0x302bdc),{..._0x138867,'channelId':_0x302bdc,'threadId':_0x556802});}[_0x2d403c(0x1ce)](_0x2808a6){const _0x567780=_0x2d403c;return this[_0x567780(0x226)](_0x2808a6),_0x2808a6[_0x567780(0x1af)](),this[_0x567780(0x178)][_0x567780(0x1d9)](_0x2808a6);}[_0x2d403c(0x214)](_0x443fd7){const _0x2b7a66=_0x2d403c,_0xa4d799=this[_0x2b7a66(0x178)][_0x2b7a66(0x1f5)](_0x4b6ea5=>new Date(_0x4b6ea5[_0x2b7a66(0x209)])[_0x2b7a66(0x1c0)]()>new Date(_0x443fd7[_0x2b7a66(0x209)])[_0x2b7a66(0x1c0)]());return _0xa4d799?this[_0x2b7a66(0x178)][_0x2b7a66(0x1b8)](_0xa4d799):this[_0x2b7a66(0x1dc)];}}export class Comment extends/* #__PURE__ -- */
_0x384a2c(){['id'];[_0x2d403c(0x17b)];[_0x2d403c(0x1be)];[_0x2d403c(0x227)];[_0x2d403c(0x218)];[_0x2d403c(0x1b5)];[_0x2d403c(0x174)];constructor(_0x3e7cd2,_0x3a7c4f){const _0xa34d80=_0x2d403c;super();const _0x35a3d8=_0x3e7cd2[_0xa34d80(0x22d)][_0xa34d80(0x177)][_0xa34d80(0x1ea)](_0x2223ba)['me'],_0x5efd54=_0x3e7cd2[_0xa34d80(0x20e)](_0x3a7c4f[_0xa34d80(0x17b)]),_0x2465e6=0x0===_0x5efd54[_0xa34d80(0x178)][_0xa34d80(0x1dc)],_0x31acb0=_0x35a3d8===_0x3a7c4f[_0xa34d80(0x1be)];this['id']=_0x3a7c4f['id'],this[_0xa34d80(0x17b)]=_0x3a7c4f[_0xa34d80(0x17b)],this[_0xa34d80(0x1be)]=_0x3a7c4f[_0xa34d80(0x1be)],this[_0xa34d80(0x227)]=_0x3a7c4f[_0xa34d80(0x227)],this[_0xa34d80(0x218)]=Boolean(_0x3a7c4f[_0xa34d80(0x1a4)]&&_0x3a7c4f[_0xa34d80(0x1a4)][_0xa34d80(0x16d)]),this[_0xa34d80(0x1d8)](_0xa34d80(0x224),_0x3a7c4f[_0xa34d80(0x224)]),this[_0xa34d80(0x1b5)]=_0x3a7c4f[_0xa34d80(0x1b5)]||new Date(),this[_0xa34d80(0x1d8)](_0xa34d80(0x209),_0x3a7c4f[_0xa34d80(0x209)]||new Date()),this[_0xa34d80(0x1d7)](_0xa34d80(0x19a))['to'](_0x5efd54,_0xa34d80(0x19a)),this[_0xa34d80(0x1d8)](_0xa34d80(0x1a4),_0x3a7c4f[_0xa34d80(0x1a4)]||{}),this[_0xa34d80(0x1d7)](_0xa34d80(0x1fa))['to'](_0x3e7cd2,_0xa34d80(0x234),()=>{const _0x2b5f8e=_0xa34d80,_0x495a68=_0x3e7cd2[_0x2b5f8e(0x244)](_0x5efd54[_0x2b5f8e(0x1a8)])[_0x2b5f8e(0x1c1)],_0x45391b=_0x3e7cd2[_0x2b5f8e(0x244)](_0x5efd54[_0x2b5f8e(0x1a8)])[_0x2b5f8e(0x192)];return _0x31acb0&&_0x495a68||!_0x31acb0&&_0x45391b;}),this[_0xa34d80(0x1d7)](_0xa34d80(0x176))['to'](_0x5efd54,_0xa34d80(0x176),_0x3e7cd2,_0xa34d80(0x234),_0xb53704=>{const _0x4711ea=_0xa34d80,_0x1bf3b4=_0x3e7cd2[_0x4711ea(0x244)](_0x5efd54[_0x4711ea(0x1a8)])[_0x4711ea(0x1c1)],_0x2c9deb=_0x3e7cd2[_0x4711ea(0x244)](_0x5efd54[_0x4711ea(0x1a8)])[_0x4711ea(0x192)];return _0x31acb0&&_0x1bf3b4||_0xb53704&&_0x2465e6||!_0x31acb0&&_0x2c9deb&&!_0x2465e6;}),this[_0xa34d80(0x1d7)](_0xa34d80(0x1c5))['to'](_0x5efd54,_0xa34d80(0x1c5)),this[_0xa34d80(0x174)]=_0x3e7cd2;}get[_0x2d403c(0x18d)](){const _0x15f733=_0x2d403c;return Math[_0x15f733(0x217)](function(_0x28c622){const _0x5472a5=_0x15f733,_0x1e822a=document[_0x5472a5(0x195)](_0x5472a5(0x23d));return _0x1e822a[_0x5472a5(0x1b1)]=_0x28c622,_0x1e822a[_0x5472a5(0x235)][_0x5472a5(0x1dc)];}(this[_0x15f733(0x224)]),0xc8);}[_0x2d403c(0x16e)](_0x35c0b3){const _0x3c5bc8=_0x2d403c,{threadId:_0x7cc73f,id:_0x1ec808}=this;if(!this[_0x3c5bc8(0x174)][_0x3c5bc8(0x1b3)](_0x7cc73f))throw new _0x50caed(_0x3c5bc8(0x18e),this);const {channelId:_0x3d2e95}=this[_0x3c5bc8(0x174)][_0x3c5bc8(0x20e)](_0x7cc73f);this[_0x3c5bc8(0x174)][_0x3c5bc8(0x1ab)](bt(_0x3c5bc8(0x1c6),_0x3d2e95,_0x7cc73f),{'channelId':_0x3d2e95,'threadId':_0x7cc73f,'commentId':_0x1ec808,..._0x35c0b3});}[_0x2d403c(0x1bc)](_0xa6fbeb,_0x4e132f){const _0x3956f4=_0x2d403c,_0x47e998=_0x229498(this[_0x3956f4(0x1a4)]);_0x5dea92(_0x47e998,_0xa6fbeb,_0x4e132f),this[_0x3956f4(0x16e)]({'attributes':_0x47e998});}[_0x2d403c(0x20b)](_0x5392ea){const _0xfe64c0=_0x2d403c,_0x30444e=_0x229498(this[_0xfe64c0(0x1a4)]);_0x1a2eda(_0x30444e,_0x5392ea),this[_0xfe64c0(0x16e)]({'attributes':_0x30444e});}[_0x2d403c(0x1d9)](_0x2fa57a={}){const _0x506d34=_0x2d403c;if(!_0x2fa57a[_0x506d34(0x18b)]&&!this[_0x506d34(0x176)])return;const {threadId:_0x5cc2c5,id:_0x5c6957}=this;if(!this[_0x506d34(0x174)][_0x506d34(0x1b3)](_0x5cc2c5))throw new _0x50caed(_0x506d34(0x1e6),this);const {channelId:_0x5414ab}=this[_0x506d34(0x174)][_0x506d34(0x20e)](_0x5cc2c5);this[_0x506d34(0x174)][_0x506d34(0x1ab)](bt(_0x506d34(0x1e2),_0x5414ab,_0x5cc2c5),{'channelId':_0x5414ab,'threadId':_0x5cc2c5,'commentId':_0x5c6957,..._0x2fa57a});}[_0x2d403c(0x19b)](){const _0x1326fe=_0x2d403c;return{'commentId':this['id'],'content':this[_0x1326fe(0x224)],'createdAt':this[_0x1326fe(0x1b5)],'authorId':this[_0x1326fe(0x227)]['id'],'attributes':this[_0x1326fe(0x1a4)]};}[_0x2d403c(0x1af)](){const _0x46a4a4=_0x2d403c;this[_0x46a4a4(0x226)]();}}function bt(_0x99c85c,..._0xebdd12){for(const _0x430e1f of _0xebdd12)void 0x0!==_0x430e1f&&(_0x99c85c+=':'+String(_0x430e1f));return _0x99c85c;}