From 85f873b099f379f3dbac4183da885e83ef482c28 Mon Sep 17 00:00:00 2001 From: lisb-jenkins Date: Thu, 10 Jul 2025 02:34:57 +0000 Subject: [PATCH 1/2] Update lib/*.js based on albero-client-web@direct-js@saas-202410-daab-hotfix2 --- lib/direct-node.min.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/direct-node.min.js b/lib/direct-node.min.js index a96b2b2..a593693 100755 --- a/lib/direct-node.min.js +++ b/lib/direct-node.min.js @@ -1 +1 @@ -!function(y,S){function s(){return G.__string_rec(this,"")}var t={};function e(e,t){function n(){}n.prototype=e;var i,r=new n;for(i in t)r[i]=t[i];return t.toString!==Object.prototype.toString&&(r.toString=t.toString),r}function v(e,t){this.r=new RegExp(e,t.split("u").join(""))}function T(){}function I(){}function N(){}function x(){}function A(){}function b(){}function M(){}function C(e){Rn.call(this,e)}function W(){}function K(){}function V(){}function q(){}function Q(){}function X(){}function J(){}function Z(){}function $(){}function ee(){}function te(){}function ne(){}function ie(){}function re(){}function oe(e,t,n){this.email=e,this.pass=t,this.accessToken=n}function se(e){null!=e&&(this.id=e.id,this.group=new Ai(e.group),this.profilePolicy=new bi(e.profile_policy))}function ae(e){null!=e&&(this.id=e.id,null!=e.group&&(this.group=new Ai(e.group)),null!=e.profile_policy)&&(this.profilePolicy=new bi(e.profile_policy))}function le(e){null!=e&&(this.id=D.fromIntOrInt64(e.id),this.groupName=e.group_name,this.groupOwnerName=e.group_owner_name,this.groupOwnerEmail=e.group_owner_email,this.hasDomainInvite=e.has_domain_invite,this.updatedAt=e.updated_at,this.version=e.version)}function ue(e){this.unreadCount=0,null!=e&&(this.domainId=e.domain_id,this.unreadCount=null!=e.unread_count?e.unread_count:0,this.maxAnnouncementId=e.max_announcement_id,null!=e.max_announcement&&(this.maxAnnouncement=new ki(e.max_announcement)),this.maxReadAnnouncementId=e.max_read_announcement_id,null==this.maxReadAnnouncementId)&&0==this.unreadCount&&(this.maxReadAnnouncementId=this.maxAnnouncementId)}function ce(e){null!=e&&(this.domainId=e.domain_id,this.readAnnouncementIds=e.read_announcement_ids)}function _e(e){if(this.notificationInvisibleTalkSound=!0,this.notificationInvisibleTalkPopup=!1,this.notificationVisibleTalkSound=!1,this.notificationVisibleTalkPopup=!1,this.notificationIncludingMessageContent=!0,this.notificationPopupTime=5,this.talkAutoScroll=1,this.legacyNoteEnabled=!1,this.leaveTalksEnabled=!1,this.talksSortMode="new_messages_first",this.talkRightPanelOpened=!0,this.talkRightPanelWidth=0,this.keywordWatchingText="",this.keywordWatchingEmphasis=!1,this.keywordWatchingSelfMessage=!1,this.keywordWatchingActionReply=!1,this.userDataContainer=[],this.language="ja",this.conferenceIncomingSound=!0,this.domainsSortMode="name_order_asc",this.appLeftPanelOpened=!1,this.appLeftPanelWidth=0,this.scheduledMessageDefaultTimeStr="09:00",null!=e){var t;if(null!=e.notificationInvisibleTalkSound&&(this.notificationInvisibleTalkSound=e.notificationInvisibleTalkSound),null!=e.notificationInvisibleTalkPopup&&(this.notificationInvisibleTalkPopup=e.notificationInvisibleTalkPopup),null!=e.notificationVisibleTalkSound&&(this.notificationVisibleTalkSound=e.notificationVisibleTalkSound),null!=e.notificationVisibleTalkPopup&&(this.notificationVisibleTalkPopup=e.notificationVisibleTalkPopup),null!=e.notificationIncludingMessageContent&&(this.notificationIncludingMessageContent=e.notificationIncludingMessageContent),null!=e.notificationPopupTime&&(this.notificationPopupTime=e.notificationPopupTime),null!=e.notificationVisibleTalkAutoScroll&&(this.talkAutoScroll=e.notificationVisibleTalkAutoScroll?1:3),null!=e.talkAutoScroll&&(this.talkAutoScroll=e.talkAutoScroll),null!=e.legacyNoteEnabled&&(this.legacyNoteEnabled=e.legacyNoteEnabled),null!=e.leaveTalksEnabled&&(this.leaveTalksEnabled=e.leaveTalksEnabled),null!=e.talksSortMode&&(this.talksSortMode=e.talksSortMode),this.talkRightPanelOpened=null!=e.talkRightPanelOpened?e.talkRightPanelOpened:null==o.getItem("right_panel_opened"),null!=e.talkRightPanelWidth?this.talkRightPanelWidth=e.talkRightPanelWidth:(t=P.parseInt(o.getItem("right_panel_width")),this.talkRightPanelWidth=null==t?0:t),null!=e.keywordWatchingText&&(this.keywordWatchingText=e.keywordWatchingText),null!=e.keywordWatchingEmphasis&&(this.keywordWatchingEmphasis=e.keywordWatchingEmphasis),null!=e.keywordWatchingSelfMessage&&(this.keywordWatchingSelfMessage=e.keywordWatchingSelfMessage),null!=e.keywordWatchingActionReply&&(this.keywordWatchingActionReply=e.keywordWatchingActionReply),null!=e.userDataContainer)for(var n=0,i=G.__cast(e.userDataContainer,Array);n=e.length);){if(!this.matchSub(e,n)){i+=P.string(U.substr(e,n,null));break}var r=this.matchedPos(),i=(i+=P.string(U.substr(e,n,r.pos-n)))+P.string(t(this)),n=0==r.len?(i+=P.string(U.substr(e,r.pos,1)),r.pos+1):r.pos+r.len;if(!this.r.global)break}return!this.r.global&&0r.interval)r.basetime=n,r.count=1;else{if(!(0").join(">"),t?e.split('"').join(""").split("'").join("'"):e},I.startsWith=function(e,t){return e.length>=t.length&&U.substr(e,0,t.length)==t},I.isSpace=function(e,t){e=U.cca(e,t);return 8>>=4););if(null!=t)for(;n.lengthn;){var t=U.substr(e,0,n);i.push(t),e=U.substr(e,n,null)}0n&&(t(r),r=""),0=this.length)throw new H("Invalid object");if(103==this.buf.charCodeAt(this.pos))break;var t=this.unserialize();if("string"!=typeof t)throw new H("Invalid object key");var n=this.unserialize();e[t]=n}this.pos++},unserializeEnum:function(e,t){if(58!=this.buf.charCodeAt(this.pos++))throw new H("Invalid enum format");var n=this.readDigits();if(0==n)return x.createEnum(e,t);for(var i=[];0=this.scache.length)throw new H("Invalid string reference");return this.scache[t];case 97:this.buf;var r=[];for(this.cache.push(r);;){var o=this.buf.charCodeAt(this.pos);if(104==o){this.pos++;break}117==o?(this.pos++,o=this.readDigits(),r[r.length+o-1]=null):r.push(this.unserialize())}return r;case 98:var s=new B;for(this.cache.push(s),this.buf;104!=this.buf.charCodeAt(this.pos);){var a=this.unserialize(),l=this.unserialize();null!=Y[a]?s.setReserved(a,l):s.h[a]=l}return this.pos++,s;case 99:e=this.unserialize(),t=this.resolver.resolveClass(e);if(null==t)throw new H("Class not found "+e);e=x.createEmptyInstance(t);return this.cache.push(e),this.unserializeObject(e),e;case 100:return this.readFloat();case 102:return!1;case 105:return this.readDigits();case 106:t=this.unserialize(),e=this.resolver.resolveEnum(t);if(null==e)throw new H("Enum not found "+t);this.pos++;var u=this.readDigits(),c=e.__constructs__.slice()[u];if(null==c)throw new H("Unknown enum index "+t+"@"+u);t=this.unserializeEnum(e,c);return this.cache.push(t),t;case 107:return NaN;case 108:var _=new Tn;for(this.cache.push(_),this.buf;104!=this.buf.charCodeAt(this.pos);)_.add(this.unserialize());return this.pos++,_;case 109:return-1/0;case 110:return null;case 111:u={};return this.cache.push(u),this.unserializeObject(u),u;case 112:return 1/0;case 113:for(var h=new Zs,d=(this.cache.push(h),this.buf,this.buf.charCodeAt(this.pos++));58==d;){var f=this.readDigits(),m=this.unserialize();h.h[f]=m,d=this.buf.charCodeAt(this.pos++)}if(104!=d)throw new H("Invalid IntMap format");return h;case 114:e=this.readDigits();if(e<0||e>=this.cache.length)throw new H("Invalid reference");return this.cache[e];case 115:var c=this.readDigits(),p=this.buf;if(58!=this.buf.charCodeAt(this.pos++)||this.length-this.pos>2)+(2<=t?t-1:0))),T=0;y>4),g[p.charCodeAt(y++)]),E=(v.b[T++]=255&(E<<4|I>>2),g[p.charCodeAt(y++)]);v.b[T++]=255&(I<<6|E)}return 2<=t&&(u=g[p.charCodeAt(y++)],e=g[p.charCodeAt(y++)],v.b[T++]=255&(u<<2|e>>4),3==t)&&(u=g[p.charCodeAt(y++)],v.b[T++]=255&(e<<4|u>>2)),this.pos+=c,this.cache.push(v),v;case 116:return!0;case 118:return 48<=this.buf.charCodeAt(this.pos)&&this.buf.charCodeAt(this.pos)<=57&&48<=this.buf.charCodeAt(this.pos+1)&&this.buf.charCodeAt(this.pos+1)<=57&&48<=this.buf.charCodeAt(this.pos+2)&&this.buf.charCodeAt(this.pos+2)<=57&&48<=this.buf.charCodeAt(this.pos+3)&&this.buf.charCodeAt(this.pos+3)<=57&&45==this.buf.charCodeAt(this.pos+4)?(w=U.strDate(U.substr(this.buf,this.pos,19)),this.pos+=19):(t=this.readFloat(),w=new Date(t)),this.cache.push(w),w;case 119:e=this.unserialize(),u=this.resolver.resolveEnum(e);if(null==u)throw new H("Enum not found "+e);c=this.unserializeEnum(u,this.unserialize());return this.cache.push(c),c;case 120:throw H.wrap(this.unserialize());case 121:t=this.readDigits();if(58!=this.buf.charCodeAt(this.pos++)||this.length-this.pos>>16,l=65535&n.low,u=n.low>>>16,c=w._mul(s,l),l=w._mul(a,l),s=w._mul(s,u),a=(w._mul(a,u)+(s>>>16)|0)+(l>>>16)|0,a=(s<<=16,w.ucompare(u=c+s|0,s)<0&&(a++,a|=0),l<<=16,w.ucompare(u=u+l|0,l)<0&&(a++,a|=0),a+(w._mul(t.low,n.high)+w._mul(t.high,n.low)|0)|0),c=new E(a,u),s=_.make(0,P.parseInt(e.charAt(o))),l=c.high+s.high|0,a=c.low+s.low|0;w.ucompare(a,c.low)<0&&(l++,l|=0);t=new E(l,a)}return t},D.getHigh=function(e){return e.high},D.getLow=function(e){return e.low},D.idStr=function(e){return"_"+e.high+"_"+e.low},D.makeFromIdStr=function(e){var t=new v("^_(-?\\d*)_(-?\\d*)$","");return t.match(e)?_.make(P.parseInt(t.matched(1)),P.parseInt(t.matched(2))):null},D.fromNullableIdStr=function(e){return null!=e?D.makeFromIdStr(e):null},D.toStr=function(e){return Ys.toString(e)},D.isNeg=function(e){return e.high<0},D.add=function(e,t){var n=e.high+t.high|0,t=e.low+t.low|0;return w.ucompare(t,e.low)<0&&(n++,n|=0),new E(n,t)},D.sub=function(e,t){var n=e.high-t.high|0,i=e.low-t.low|0;return w.ucompare(e.low,t.low)<0&&(n--,n|=0),new E(n,i)},D.compare=function(e,t){var n=e.high-t.high|0;return 0==n&&(n=w.ucompare(e.low,t.low)),e.high<0?t.high<0?n:-1:0<=t.high?n:1},D.eq=function(e,t){return null!=e&&null!=t&&e.high==t.high&&e.low==t.low},D.eqOrBothNull=function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.high==t.high&&e.low==t.low},D.toFloat=function(e){var t=4294967296,n=e.high,e=e.low;return n*t+(0<=e?e:e+t)},D.idStrToInt64=function(e){e=e.split("_");return 2>31,e))},D.eqArray=function(e,t){if(e!=t){if(null==e||null==t)return!1;if(e.length!=t.length)return!1;for(var n=0,i=e.length;n>31,t);return e.filter(function(e){var t=h.map(n.userPresences.getUserPresence(e),function(e){return e.isExpired(i,r)});switch(t[1]){case 0:return t[2];case 1:return!0}})},updateIfNeedPerSub:function(n,e){for(var i=this,t=Promise.resolve([]),r=D.splitUsingMaxCount(e,100),o=0;oe.version},isStampsetEnabled:function(e){return k.has(this.allowCreateMessageStampCategories,e)},isStampCategoriesEmpty:function(){return 0==this.allowCreateMessageStampCategories.length},getCategoryIndex:function(e){return this.allowCreateMessageStampCategories.indexOf(e)},__class__:xi},(t["albero.entity.Conference"]=he).__name__=["albero","entity","Conference"],he.prototype={isIncomingExpired:function(){var e=this.createdAt,t=4294967296,n=e.high,e=e.low;return n*t+(0<=e?e:e+t)+he.INCOMING_TIME<(new Date).getTime()},isExpired:function(){var e=this.expiredAt,t=4294967296,n=e.high,e=e.low;return n*t+(0<=e?e:e+t)<(new Date).getTime()},__class__:he},function(){this.conferencesMap=new B,this.talkIdConferenceIdMap=new B}),Li=((t["albero.entity.ConferenceStore"]=Ui).__name__=["albero","entity","ConferenceStore"],Ui.prototype={addConference:function(e){var t=e.id,t="_"+t.high+"_"+t.low,n=this.conferencesMap,n=(null!=Y[t]?n.setReserved(t,e):n.h[t]=e,e.talkId),e="_"+n.high+"_"+n.low,n=this.talkIdConferenceIdMap;null!=Y[e]?n.setReserved(e,t):n.h[e]=t},removeConference:function(e){var t=e.id,t="_"+t.high+"_"+t.low,e=(this.conferencesMap.remove(t),e.talkId),e="_"+e.high+"_"+e.low,n=this.talkIdConferenceIdMap;(null!=Y[e]?n.getReserved(e):n.h[e])==t&&this.talkIdConferenceIdMap.remove(e)},getConferences:function(){return X.toValueArray(this.conferencesMap)},getConference:function(e){var e="_"+e.high+"_"+e.low,t=this.conferencesMap;return null!=Y[e]?t.getReserved(e):t.h[e]},hasConferenceInTalk:function(e){var t;return null!=e&&(e="_"+e.high+"_"+e.low,t=this.talkIdConferenceIdMap,null!=Y[e]?t.existsReserved(e):t.h.hasOwnProperty(e))},getConferenceIdInTalk:function(e){var t;return null==e||(e="_"+e.high+"_"+e.low,t=this.talkIdConferenceIdMap,null==(t=null!=Y[e]?t.getReserved(e):t.h[e]))?null:D.makeFromIdStr(t)},getConferenceTalkIds:function(){return X.toKeyArray(this.talkIdConferenceIdMap).map(D.makeFromIdStr)},hasConference:function(){return this.talkIdConferenceIdMap.keys().hasNext()},__class__:Ui},function(e){null!=e&&(this.maxFriends=e.max_friends,this.maxTalks=e.max_talks,this.maxTalkers=e.max_talkers,this.maxMessageContentLength=e.max_message_content_length,this.botExpiredVersion=e.bot_expired_version,this.presenceExpiration=null!=e.presence_expiration?e.presence_expiration:Li.DEFAULT_PRESENCE_EXPIRATION,this.allowAttachmentType=Ci.fromInt(e.allow_attachment_type),this.imageSanitizationEnabled=!!e.image_sanitization_enabled,this.updateLastUsedAtInterval=null!=e.update_last_used_at_interval?e.update_last_used_at_interval:Li.DEFAULT_PRESENCE_EXPIRATION)}),Pi=((t["albero.entity.Configuration"]=Li).__name__=["albero","entity","Configuration"],Li.prototype={__class__:Li},function(e){this.contractConference=m.None,null!=e&&(this.id=e.contract_id,this.plan=new yr(e.plan),this.quota=new Rr(e.quota),this.solutionIds=e.solution_ids,null!=e.conference)&&(this.contractConference=m.Some(new Bi(e.conference)))}),Bi=((t["albero.entity.Contract"]=Pi).__name__=["albero","entity","Contract"],Pi.prototype={getMaxMessageContentLength:function(){return h.map(h.option(this.quota),function(e){return e.maxMessageContentLength})},getMaxTalkers:function(){return h.flatMap(h.option(this.quota),function(e){return h.option(e.maxTalkers)})},getMaxTalks:function(){return h.flatMap(h.option(this.quota),function(e){return h.option(e.maxTalks)})},isConferenceEnalbed:function(){return h.isDefined(this.contractConference)},isVideoEnalbed:function(){var e=h.map(this.contractConference,function(e){return e.videoEnabled});switch(e[1]){case 0:return e[2];case 1:return!1}},getConferenceTtl:function(){return h.map(this.contractConference,function(e){return e.ttl})},getConferenceMaxParticipants:function(){return h.map(this.contractConference,function(e){return e.maxConferenceParticipants})},isGroupConfenreceEnalbed:function(){var e=h.map(this.contractConference,function(e){return e.groupConferenceEnabled});switch(e[1]){case 0:return e[2];case 1:return!1}},isTargetOfPlanAd:function(){return null!=this.quota&&this.quota.withAd},isFreePlan:function(){return null!=this.plan&&this.plan.free},__class__:Pi},function(e){this.groupConferenceEnabled=!1,this.maxConferenceParticipants=Bi.DEFAULT_MAX_PARTICIPANTS,this.ttl=Bi.DEFAULT_TTL,this.videoEnabled=!1,null!=e&&(this.videoEnabled=e.video_enabled,this.ttl=e.ttl,this.maxConferenceParticipants=e.max_conference_participants,this.groupConferenceEnabled=e.group_conference_enabled)}),Hi=((t["albero.entity.ContractConference"]=Bi).__name__=["albero","entity","ContractConference"],Bi.prototype={__class__:Bi},function(e){if(null!=e){switch(this.id=e.department_id,this.order=e.order,this.parentId=e.parent,this.nodeType=null==e.node?Gi.Normal:this.parseDepartmentNodeType(e.node),this.nodeType[1]){case 0:this.name=e.name;break;case 1:this.name=Hi.getLabelRoot();break;case 2:this.name=Hi.getLabelFree()}this.depth=0,this.childrenIds=null,this.userCount=null,this.userIds=null,this.userCountLoading=!1}}),Gi=((t["albero.entity.Department"]=Hi).__name__=["albero","entity","Department"],Hi.getLabelFree=function(){return c.localize("Department.label_free")},Hi.getLabelRoot=function(){return c.localize("Department.label_root")},Hi.prototype={addChild:function(e){null==this.childrenIds&&(this.childrenIds=[]),this.childrenIds.push(e)},isRoot:function(){return this.nodeType==Gi.Root},isFree:function(){return this.nodeType==Gi.Free},parseDepartmentNodeType:function(e){switch(e){case 1:return Gi.Root;case 2:return Gi.Free;default:return Gi.Normal}},getChildIdStrList:function(){return null==this.childrenIds?[]:this.childrenIds.map(D.idStr)},__class__:Hi},(t["albero.entity.DepartmentHelper"]=de).__name__=["albero","entity","DepartmentHelper"],de.getName=function(e){return null==e?null:e.name},t["albero.entity.DepartmentNodeType"]={__ename__:["albero","entity","DepartmentNodeType"],__constructs__:["Normal","Root","Free"]}),ji=(Gi.Normal=["Normal",0],Gi.Normal.toString=s,(Gi.Normal.__enum__=Gi).Root=["Root",1],Gi.Root.toString=s,(Gi.Root.__enum__=Gi).Free=["Free",2],Gi.Free.toString=s,(Gi.Free.__enum__=Gi).__empty_constructs__=[Gi.Normal,Gi.Root,Gi.Free],(t["albero.entity.DepartmentList"]=fe).__name__=["albero","entity","DepartmentList"],fe.prototype={getDepartments:function(e){return null==e?[]:e.map(function(e){return new Hi(e)})},__class__:fe},function(){this.departmentMap=new B,this.rootDepartmentIdMap=new B}),zi=((t["albero.entity.DepartmentStore"]=ji).__name__=["albero","entity","DepartmentStore"],ji.prototype={getDepartment:function(e){var t;return null==e?null:(e="_"+e.high+"_"+e.low,t=this.departmentMap,null!=Y[e]?t.getReserved(e):t.h[e])},setDepartment:function(e){null!=e.parentId&&null!=(t=this.getDepartment(e.parentId))&&(t.addChild(e.id),e.depth=t.depth+1);var t=e.id,t="_"+t.high+"_"+t.low,n=this.departmentMap;null!=Y[t]?n.setReserved(t,e):n.h[t]=e},clearDomainDepartment:function(e){var t=this,e="_"+e.high+"_"+e.low,n=this.rootDepartmentIdMap,n=null!=Y[e]?n.getReserved(e):n.h[e];null!=n&&(k.iter(this.getDepartmentsDescendantOrSelf(n),function(e){e=e.id;t.departmentMap.remove("_"+e.high+"_"+e.low)}),this.rootDepartmentIdMap.remove(e))},getRootDepartmentId:function(e){var e="_"+e.high+"_"+e.low,t=this.rootDepartmentIdMap;return null!=Y[e]?t.getReserved(e):t.h[e]},setRootDepartmentId:function(e,t){var e="_"+e.high+"_"+e.low,n=this.rootDepartmentIdMap;null!=Y[e]?n.setReserved(e,t):n.h[e]=t},setDepartmentUserCount:function(e){var t=this.getDepartment(e.departmentId);null!=t&&(t.userCount=e,t.userCountLoading=!1)},setUserCountLoading:function(e,t){e=this.getDepartment(e);null!=e&&(e.userCountLoading=t)},isUserCountLoadingRequired:function(e){e=this.getDepartment(e);return null==e||null==e.userCount&&!e.userCountLoading},clearDomainDepartmentUsers:function(e){e=this.getRootDepartmentId(e);return null!=e&&(k.iter(this.getDepartmentsDescendantOrSelf(e),function(e){e.userCount=null,e.userIds=null,e.userCountLoading=!1}),!0)},setDepartmentUsers:function(e,t){e=this.getDepartment(e);null!=e&&(e.userIds=t)},isInDepartment:function(e){e=this.getDepartment(e);return null!=e&&!e.isFree()},getDepartmentPath:function(e){return this.getDepartmentsAncestorOrSelf(e)},getDepartmentPathWithoutRoot:function(e){return this.getDepartmentPath(e).filter(function(e){return!e.isRoot()})},getDepartmentPathSlashSeparatedIfNeeded:function(e){return this.getDepartmentPathWithoutRoot(e).map(de.getName).filter(xn.isNotEmpty).join("/")},getDepartmentsAncestorOrSelf:function(e){var t=[];return this._getDepartmentsAncestorOrSelf(e,t),t},_getDepartmentsAncestorOrSelf:function(e,t){e=this.getDepartment(e);null!=e&&(null!=e.parentId&&this._getDepartmentsAncestorOrSelf(e.parentId,t),t.push(e))},getDepartmentsDescendantOrSelf:function(e){var t=[];return this._getDepartmentsDescendantOrSelf(e,t),t},_getDepartmentsDescendantOrSelf:function(e,t){var n=this,e=this.getDepartment(e);null!=e&&(t.push(e),null!=e.childrenIds)&&k.iter(e.childrenIds,function(e){n._getDepartmentsDescendantOrSelf(e,t)})},__class__:ji},(t["albero.entity.DepartmentUserCount"]=me).__name__=["albero","entity","DepartmentUserCount"],me.prototype={__class__:me},(t["albero.entity.DepartmentUserCountList"]=pe).__name__=["albero","entity","DepartmentUserCountList"],pe.prototype={getDepartmentUserCounts:function(e){return null==e?[]:e.map(function(e){return new me(e)})},__class__:pe},(t["albero.entity.DirectApp"]=ge).__name__=["albero","entity","DirectApp"],ge.prototype={getLinkFeature:function(){return k.find(this.features,function(e){return e.isLink()})},getMessageExtensionFeature:function(){return k.find(this.features,function(e){return e.isMessageMenuExtension()})},getLocalizedLabel:function(e,t){var n=this.locales,n=null!=Y[t]?n.getReserved(t):n.h[t];return null==n||null==(t=n.getResourceText(e))?"":t},__class__:ge},function(e){this.map=new B;for(var t=0,n=L.fields(e);t>t,e.high<<32-t|e.low>>>t):new E(e.high>>31,e.high>>t-32)},Ae.subTimestampPart=function(e,t){var e=Ae.timestamp(e),t=Ae.timestamp(t),n=e.high-t.high|0,i=e.low-t.low|0;return w.ucompare(e.low,t.low)<0&&(n--,n|=0),new E(n,i)},Ae.createForTest=function(e){var t=Ae.TIMESTAMP_SHIFT;return 0==(t&=63)?new E(e.high,e.low):t<32?new E(e.high<>>32-t,e.low<this.content.response?this.content.options[this.content.response]:"";case 17:return[this.content.title,c.localize("MessageStringMaker.achieve"),c.localize("MessageStringMaker.remand")].join(" ");case 18:return e&&null!=this.content.done?this.content.done?c.localize("MessageStringMaker.achieve"):c.localize("MessageStringMaker.remand"):"";default:return""}},messageStringForCompactMessage:function(){switch(this.type[1]){case 1:return this.content;case 5:if(null!=this.content.text&&0>>16,a=65535&t.low,l=t.low>>>16,u=w._mul(o,a),a=w._mul(s,a),o=w._mul(o,l),s=(w._mul(s,l)+(o>>>16)|0)+(a>>>16)|0,s=(o<<=16,w.ucompare(l=u+o|0,o)<0&&(s++,s|=0),a<<=16,w.ucompare(l=l+a|0,a)<0&&(s++,s|=0),s+(w._mul(e.low,t.high)+w._mul(e.high,t.low)|0)|0),u=new E(s,l),o=_.make(0,P.parseInt(this.commonStampId.charAt(r))),a=u.high+o.high|0,s=u.low+o.low|0;w.ucompare(s,u.low)<0&&(a++,a|=0);e=new E(a,s)}return e},__class__:ze},(t["albero.entity.OriginalStamp"]=Ye).__name__=["albero","entity","OriginalStamp"],Ye.__interfaces__=[je],Ye.fromJson=function(e){var t,n;return null==e.originalStamp||null==(e=e.originalStamp).stampsetIdStr||null==e.stampIdStr?null:(t=D.makeFromIdStr(e.stampsetIdStr),n=D.makeFromIdStr(e.stampIdStr),new Ye(t,n,e.illust))},Ye.fromPropsAndStampsetId=function(e,t){return new Ye(t,D.fromIntOrInt64(e.id),e.illust)},Ye.createKey=function(e){return"original__"+e.high+"_"+e.low},Ye.prototype={getImageUrl:function(){return this.illust},getKey:function(){return Ye.createKey(this.id)},toJson:function(){var e=this.stampsetId,t=this.id;return{originalStamp:{stampsetIdStr:"_"+e.high+"_"+e.low,stampIdStr:"_"+t.high+"_"+t.low,illust:this.illust}}},createMessage:function(e,t){var n=new O;return n.talkId=e,n.type=d.originalStamp,n.content={stampset_id:this.stampsetId,stamp_id:this.id},null!=t&&0!=t.length&&(n.content.text=t),n},__class__:Ye},function(){this.stampsetStore=new B,this.stampStore=new B,this.stampKeyCategoryIdMap=new B}),zr=((t["albero.entity.StampStore"]=jr).__name__=["albero","entity","StampStore"],jr.prototype={addStampsets:function(e){for(var t=0;te.version},__class__:We},function(e){this.stampsetInfos=[],this.allowCreateMessageStampsetIds=[],this.version=0,null!=e&&(this.version=e.version,this.allowCreateMessageStampsetIds=e.allow_create_message_stampset_ids.map(D.fromIntOrInt64),this.stampsetInfos=this.getStampsetInfos(e.stampset_infos))}),a=((t["albero.entity.StampsetSetting"]=Yr).__name__=["albero","entity","StampsetSetting"],Yr.prototype={getStampsetInfos:function(e){return null==e?[]:e.map(function(e){return new We(e)})},isForwardForbidden:function(e){e=e.getContentsForOriginalStamp(),e=null==e?null:e.stampsetId;return null!=e&&!this.containSendableStampset(e)},containSendableStampset:function(t){return null!=this.allowCreateMessageStampsetIds&&k.exists(this.allowCreateMessageStampsetIds,function(e){return null!=t&&null!=e&&t.high==e.high&&t.low==e.low})},containVisibleStampset:function(t){return k.exists(this.stampsetInfos,function(e){e=e.stampsetId;return null!=t&&null!=e&&t.high==e.high&&t.low==e.low})},getSendableStampsetInfos:function(){var t=this;return null==this.stampsetInfos||null==this.allowCreateMessageStampsetIds?[]:this.stampsetInfos.filter(function(e){return t.containSendableStampset(e.stampsetId)})},isNewerThan:function(e){return this.version>e.version},updateStampsetInfo:function(t){this.stampsetInfos=this.stampsetInfos.map(function(e){return t.eqStampsetId(e)&&t.isNewerThan(e)?t:e})},deleteStampsetInfo:function(t){this.stampsetInfos=this.stampsetInfos.filter(function(e){e=e.stampsetId;return!(null!=e&&null!=t&&e.high==t.high&&e.low==t.low)}),this.allowCreateMessageStampsetIds=this.allowCreateMessageStampsetIds.filter(function(e){return!(null!=e&&null!=t&&e.high==t.high&&e.low==t.low)})},getStampsetIdsDiff:function(e){for(var t=new B,n=e.stampsetInfos.concat(this.stampsetInfos),i=0;ithis.pushNotificationSetting.version&&(this.pushNotificationSetting=wr.createWithParams(e.type,e.version),!0)},isMessageAcceptable:function(e,t){var n;return!!this.isUnread(e.id)||(0==(n=(e=Ae.subTimestampPart(this.maxReadMessageId,e.id)).high-t.high|0)&&(n=w.ucompare(e.low,t.low)),(e.high<0?t.high<0?n:-1:0<=t.high?n:1)<=0)},isUnread:function(e){var t,n;return null==this.maxReadMessageId||(0==(n=(t=this.maxReadMessageId).high-e.high|0)&&(n=w.ucompare(t.low,e.low)),(t.high<0?e.high<0?n:-1:0<=e.high?n:1)<0)},isMax:function(e){var t;return null!=this.maxMessageId&&null!=(t=this.maxMessageId)&&null!=e&&t.high==e.high&&t.low==e.low},isNewMax:function(e){var t,n;return null==this.maxMessageId||(0==(n=(t=this.maxMessageId).high-e.high|0)&&(n=w.ucompare(t.low,e.low)),(t.high<0?e.high<0?n:-1:0<=e.high?n:1)<0)},isNotificationDisabled:function(){return this.pushNotificationSetting.isDisabled()},getNotificationType:function(){return this.pushNotificationSetting.type},hasUnreadMessage:function(){return null!=this.maxMessage&&this.isUnread(this.maxMessage.id)},clearReadingMessages:function(){this.readingMessages=null},__class__:Xe},(t["albero.entity.TalkStatusHelper"]=Je).__name__=["albero","entity","TalkStatusHelper"],Je.isNotificationDisabled=function(e){return null!=e&&e.isNotificationDisabled()},Je.isFavoriteTalk=function(e){return null!=e&&null!=e.orderInFavorites},Je.isUnreadMesasgeExisted=function(e){return null!=e&&e.hasUnreadMessage()},(t["albero.entity.TalkStatusUpdate"]=Ze).__name__=["albero","entity","TalkStatusUpdate"],Ze.prototype={__class__:Ze},(t["albero.entity.ThumbInfo"]=$e).__name__=["albero","entity","ThumbInfo"],$e.prototype={setAuth:function(e){this.auth=e},__class__:$e},function(e){null!=e&&(this.width=e.width,this.height=e.height)}),u=((t["albero.entity.ThumbDimension"]=$r).__name__=["albero","entity","ThumbDimension"],$r.createWithSize=function(e,t){var n=new $r;return n.width=e,n.height=t,n},$r.prototype={toObject:function(){return{width:this.width,height:this.height}},__class__:$r},(t["albero.entity.UpdateDomainStampSettingEvent"]=et).__name__=["albero","entity","UpdateDomainStampSettingEvent"],et.prototype={isValid:function(){return this.newSetting.isNewerThan(this.oldSetting)},getStampsetIdsDiff:function(){return this.oldSetting.getStampsetIdsDiff(this.newSetting)},__class__:et},t["albero.entity.UploadUseType"]={__ename__:["albero","entity","UploadUseType"],__constructs__:["PROFILE_IMAGE","MESSAGE","TALK_ICON","THUMBNAIL","NOTE_ATTACHMENT","NOTE_THUMBNAIL","SCHEDULE_MESSAGE"]}),E=(u.PROFILE_IMAGE=["PROFILE_IMAGE",0],u.PROFILE_IMAGE.toString=s,(u.PROFILE_IMAGE.__enum__=u).MESSAGE=["MESSAGE",1],u.MESSAGE.toString=s,(u.MESSAGE.__enum__=u).TALK_ICON=["TALK_ICON",2],u.TALK_ICON.toString=s,(u.TALK_ICON.__enum__=u).THUMBNAIL=["THUMBNAIL",3],u.THUMBNAIL.toString=s,(u.THUMBNAIL.__enum__=u).NOTE_ATTACHMENT=["NOTE_ATTACHMENT",4],u.NOTE_ATTACHMENT.toString=s,(u.NOTE_ATTACHMENT.__enum__=u).NOTE_THUMBNAIL=["NOTE_THUMBNAIL",5],u.NOTE_THUMBNAIL.toString=s,(u.NOTE_THUMBNAIL.__enum__=u).SCHEDULE_MESSAGE=["SCHEDULE_MESSAGE",6],u.SCHEDULE_MESSAGE.toString=s,(u.SCHEDULE_MESSAGE.__enum__=u).__empty_constructs__=[u.PROFILE_IMAGE,u.MESSAGE,u.TALK_ICON,u.THUMBNAIL,u.NOTE_ATTACHMENT,u.NOTE_THUMBNAIL,u.SCHEDULE_MESSAGE],(t["albero.entity.UploadUseTypeHelper"]=tt).__name__=["albero","entity","UploadUseTypeHelper"],tt.getUseTypeInt=function(e){switch(e[1]){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 4;case 4:return 5;case 5:return 6;case 6:return 1}},(t["albero.entity.UserIdentifier"]=nt).__name__=["albero","entity","UserIdentifier"],nt.prototype={__class__:nt},function(e,t){this.high=e,this.low=t}),eo=((t["haxe._Int64.___Int64"]=E).__name__=["haxe","_Int64","___Int64"],E.prototype={__class__:E},(t["albero.entity.UserPresence"]=it).__name__=["albero","entity","UserPresence"],it.createUserPresenceState=function(e,t){var n=t.high-e.high|0,i=t.low-e.low|0;w.ucompare(t.low,e.low)<0&&(n--,n|=0);var t=new E(n,i),e=it.SIXTY_MINUTES,n=t.high-e.high|0;return 0==n&&(n=w.ucompare(t.low,e.low)),0<(t.high<0?e.high<0?n:-1:0<=e.high?n:1)?eo.GT_60:(0==(e=t.high-(i=it.FIFTEEN_MINUTES).high|0)&&(e=w.ucompare(t.low,i.low)),0<(t.high<0?i.high<0?e:-1:0<=i.high?e:1)?eo.LT_OR_EQ_60:eo.LT_OR_EQ_15)},it.prototype={toState:function(e){var t=e,n=h.map(this.lastUsedAtOpt,function(e){return it.createUserPresenceState(e,t)});switch(n[1]){case 0:return n[2];case 1:return eo.GT_60}},isExpired:function(e,t){var n=this.lastUpdatedAt,i=e.high-n.high|0,r=e.low-n.low|0;w.ucompare(e.low,n.low)<0&&(i--,i|=0);e=new E(i,r),n=e.high-t.high|0;return 0==n&&(n=w.ucompare(e.low,t.low)),0<(e.high<0?t.high<0?n:-1:0<=t.high?n:1)},__class__:it},t["albero.entity.UserPresenceState"]={__ename__:["albero","entity","UserPresenceState"],__constructs__:["LT_OR_EQ_15","LT_OR_EQ_60","GT_60"]}),to=(eo.LT_OR_EQ_15=["LT_OR_EQ_15",0],eo.LT_OR_EQ_15.toString=s,(eo.LT_OR_EQ_15.__enum__=eo).LT_OR_EQ_60=["LT_OR_EQ_60",1],eo.LT_OR_EQ_60.toString=s,(eo.LT_OR_EQ_60.__enum__=eo).GT_60=["GT_60",2],eo.GT_60.toString=s,(eo.GT_60.__enum__=eo).__empty_constructs__=[eo.LT_OR_EQ_15,eo.LT_OR_EQ_60,eo.GT_60],(t["albero.entity.api.message.AddFavoriteMessageResult"]=rt).__name__=["albero","entity","api","message","AddFavoriteMessageResult"],rt.prototype={__class__:rt},(t["albero.entity.api.message.DeleteFavoriteMessageResult"]=ot).__name__=["albero","entity","api","message","DeleteFavoriteMessageResult"],ot.prototype={__class__:ot},(t["albero.entity.api.message.GetFavoriteMessagesResultWithParams"]=st).__name__=["albero","entity","api","message","GetFavoriteMessagesResultWithParams"],st.prototype={getNextMarker:function(){return this.nextMarker},getMessages:function(){return this.messages},__class__:st},(t["albero.entity.api.message.GetScheduledMessagesResultWithParams"]=at).__name__=["albero","entity","api","message","GetScheduledMessagesResultWithParams"],at.prototype={__class__:at},(t["albero.entity.api.message.SearchMessagesAroundDateTimeResult"]=lt).__name__=["albero","entity","api","message","SearchMessagesAroundDateTimeResult"],lt.prototype={__class__:lt},function(e){this.messageId=e.message_id,this.createdAt=e.created_at}),no=((t["albero.entity.api.message.MessageCreatedAt"]=to).__name__=["albero","entity","api","message","MessageCreatedAt"],to.prototype={__class__:to},function(e){this.noteRaw=e}),io=((t["albero.entity.api.note.CompressedNote"]=no).__name__=["albero","entity","api","note","CompressedNote"],no.prototype={uncompress:function(){var n=this,e=this.getCompressedContentRaw();return(new Z).run(e).then(function(e){var t=L.copy(n.noteRaw.note_revision),e=(t.content=e,L.copy(n.noteRaw));return e.note_revision=t,e})},getCompressedContentRaw:function(){return null==this.noteRaw||null==this.noteRaw.note_revision?null:this.noteRaw.note_revision.content},__class__:no},(t["albero.entity.api.note.CreateNoteError"]=ut).__name__=["albero","entity","api","note","CreateNoteError"],ut.prototype={__class__:ut},(t["albero.entity.api.note.CreateNoteResult"]=ct).__name__=["albero","entity","api","note","CreateNoteResult"],ct.prototype={updateWithEmitterKey:function(e){var t=new ct;return t.note=this.note,t.emitterKey=e,t},__class__:ct},(t["albero.entity.api.note.CreateNoteResultCompressed"]=_t).__name__=["albero","entity","api","note","CreateNoteResultCompressed"],_t.prototype={uncompress:function(){return this.compressedNote.uncompress().then(function(e){return new ct(e)})},__class__:_t},(t["albero.entity.api.note.DeleteNoteResult"]=ht).__name__=["albero","entity","api","note","DeleteNoteResult"],ht.prototype={__class__:ht},(t["albero.entity.api.note.GetNoteResult"]=dt).__name__=["albero","entity","api","note","GetNoteResult"],dt.prototype={getNoteId:function(){return this.note.noteId},getNoteCreateUserId:function(){return this.note.createdBy},getRevisionCreateUserId:function(){return this.note.getRevisionCreateUserId()},getNoteCreateDate:function(){return this.note.createdAt},getRevisionCreateDate:function(){return this.note.getRevisionCreateDate()},getLockedUserIdWithoutSelf:function(e){return this.note.getLockedUserIdWithoutSelf(e)},__class__:dt},(t["albero.entity.api.note.GetNoteResultCompressed"]=ft).__name__=["albero","entity","api","note","GetNoteResultCompressed"],ft.prototype={uncompress:function(){return this.compressedNote.uncompress().then(function(e){return new dt(e)})},__class__:ft},(t["albero.entity.api.note.GetNoteStatusesResult"]=mt).__name__=["albero","entity","api","note","GetNoteStatusesResult"],mt.prototype={isNotEmptyNoteStatuses:function(){return 0=Oo.HIRAGANA_SMALL_A&&s<=Oo.HIRAGANA_NN&&(n=(n+=e.substring(t,o))+String.fromCharCode(s+(Oo.KATAKANA_SMALL_A-Oo.HIRAGANA_SMALL_A)),t=1+o)}return n+=e.substring(t,e.length)},Oo.katakanaToRoman=function(e){return(new jt).convert(e)},Oo.normalize=function(e){return new Fo(null).normalize(e)},Oo.normalizeForFile=function(e){return new Fo(null).normalizeForFile(e)},Oo.eraseInvisible=function(e){var t=new RegExp("[\\u0000-\\u0020 ]","g".split("u").join(""));return e.replace(t,"")},function(e){this.beforeTask=null,this.beforeTask=e}),xo=((t["albero.js.Normalizer"]=Fo).__name__=["albero","js","Normalizer"],Fo.prototype={normalize:function(e){try{return null!=this.beforeTask&&this.beforeTask(),e.normalize("NFKC")}catch(e){return e instanceof H&&(e=e.val),F.e("invalid character:",e),c.localize("TextCanonicalizer.invalid")}},normalizeForFile:function(e){try{return null!=this.beforeTask&&this.beforeTask(),e.normalize("NFC")}catch(e){return e instanceof H&&(e=e.val),F.e("invalid character:",e),c.localize("TextCanonicalizer.invalid")}},__class__:Fo},(t["albero.js.WebSocket"]=Kt).__name__=["albero","js","WebSocket"],Kt.prototype={__class__:Kt},(t["albero.js.WebSocketFactory"]=Vt).__name__=["albero","js","WebSocketFactory"],Vt.newInstance=function(e,t){return new xo(e,t)},function(e,t){var n=this,t=(this.onopen=t.onopen,this.onmessage=t.onmessage,this.onerror=null,this.onclose=t.onclose,this.onpong=t.onpong,Wa.wsConfig),i=require("websocket").client,i=(this.ws=new i(t),this.ws.on("connectFailed",z(this,this.onError)),this.ws.on("connect",function(e){(n.connection=e).on("error",z(n,n.onError)),e.on("close",z(n,n.onConnectionClose)),e.on("message",z(n,n.onMessage)),e.on("pong",z(n,n.onPong)),n.onOpen(null)}),null);null!=Wa.proxyURL&&(i={agent:Ro.createAgent(Wa.proxyURL)}),this.ws.connect(e,null,null,null,i)}),Uo=((t["albero.js.WebSocketForNodeJs"]=xo).__name__=["albero","js","WebSocketForNodeJs"],xo.__interfaces__=[Kt],xo.prototype={onOpen:function(e){F.i("WebSocket opened."),null!=this.onopen&&this.onopen()},onMessage:function(e){var t;null!=this.onmessage&&(t=null,t=this.getBinaryDataForHubot(e),this.onmessage(t))},getBinaryDataForHubot:function(e){return ta.ofData(e.binaryData)},onPong:function(e){null!=this.onpong&&this.onpong(e)},onError:function(e){F.e("WebSocket error. event:",e),null!=this.onerror&&this.onerror()},onClose:function(e){this.removeAllEventListenersForHubot(),F.i("WebSocket closed. "+P.string(e.code)+" "+P.string(e.reason)+" "+P.string(e.wasClean)),null!=this.onclose&&this.onclose(e.code,e.reason,e.wasClean)},removeAllEventListenersForHubot:function(){null!=this.ws&&(this.ws.removeAllListeners(),this.ws=null),null!=this.connection&&(this.connection.removeAllListeners(),this.connection=null)},onConnectionClose:function(e,t){this.onClose({code:e,reason:t})},close:function(){var e;this.onopen=null,this.onmessage=null,this.onerror=null,this.onclose=null,this.onpong=null,this.isClosed()||(e=this.connection,this.onConnectionClose(1e3,"Normal connection closure"),e.close())},send:function(e){this.isClosed()||this.connection.sendBytes(new fa(e.b.bufferValue))},ping:function(e){this.connection.ping(e)},isClosed:function(){return null==this.ws||null==this.connection||!this.connection.connected},__class__:xo},(t["puremvc.interfaces.IProxy"]=qt).__name__=["puremvc","interfaces","IProxy"],qt.prototype={__class__:qt},(t["albero.proxy.AccessTokenResolverProxy"]=Qt).__name__=["albero","proxy","AccessTokenResolverProxy"],Qt.__interfaces__=[qt],Qt.prototype={__class__:Qt},function(){}),l=((t["albero.proxy.AccessTokenResolverProxyFactory"]=Uo).__name__=["albero","proxy","AccessTokenResolverProxyFactory"],Uo.newInstance=function(){return new Lo("accessTokenResolver")},function(e,t){Ln.call(this),this.proxyName=null!=e?e:l.NAME,null!=t&&this.setData(t)}),Lo=((t["puremvc.patterns.proxy.Proxy"]=l).__name__=["puremvc","patterns","proxy","Proxy"],l.__interfaces__=[qt],l.__super__=Ln,l.prototype=e(Ln.prototype,{getProxyName:function(){return this.proxyName},setData:function(e){this.data=e},getData:function(){return this.data},onRegister:function(){},onRemove:function(){},__class__:l}),function(e){l.call(this,e)}),Po=((t["albero.proxy.AccessTokenResolverProxyForDirectJsHubot"]=Lo).__name__=["albero","proxy","AccessTokenResolverProxyForDirectJsHubot"],Lo.__interfaces__=[Qt],Lo.__super__=l,Lo.prototype=e(l.prototype,{asyncGetAccessToken:function(e,t){var n=this.settings.getAccessToken();null!=n?t(n):null!=(n=null!=Wa.account?Wa.account.split(":"):null)&&2==n.length?this.api.createAccessToken(n[0],n[1],t):null!=(e=null==e?this.accountLoader.load():e)&&(null!=e.accessToken?(this.settings.setAccessToken(e.accessToken),t(e.accessToken)):this.api.createAccessToken(e.email,e.pass,t))},__class__:Lo}),(t["albero.proxy.AccountLoaderProxy"]=Xt).__name__=["albero","proxy","AccountLoaderProxy"],Xt.__interfaces__=[qt],Xt.prototype={__class__:Xt},function(){}),Bo=((t["albero.proxy.AccountLoaderProxyFactory"]=Po).__name__=["albero","proxy","AccountLoaderProxyFactory"],Po.newInstance=function(){var e=x.resolveClass("albero.debug.proxy.AccountLoaderProxyImpl");return null!=e?x.createInstance(e,["accountLoader"]):new Bo("accountLoader")},function(e){l.call(this,e)}),Ho=((t["albero.proxy.AccountLoaderProxyForHubot"]=Bo).__name__=["albero","proxy","AccountLoaderProxyForHubot"],Bo.__interfaces__=[Xt],Bo.__super__=l,Bo.prototype=e(l.prototype,{load:function(){var i=this,t=require("read");return t({prompt:"Email: "},function(e,n){t({prompt:"Password: ",silent:!0},function(e,t){i.sendNotification("SignIn",new oe(n,t))})}),null},__class__:Bo}),function(){l.call(this,"broadcast")}),Go=((t["albero.proxy.AlberoBroadcastProxy"]=Ho).__name__=["albero","proxy","AlberoBroadcastProxy"],Ho.__super__=l,Ho.prototype=e(l.prototype,{handleNotification:function(e,t){var n=this;switch(F.v("Receive request from server. name:",e," body:",t),e){case"notify_add_account_control_request":var i=new le(t);this.dataStore.setAccountControlRequest(i),this.sendNotification(e,i);break;case"notify_add_acquaintance":var i=new ve(t[1]);this.dataStore.addAcquaintance(i),this.sendNotification(e,i);break;case"notify_add_acquaintances":i=t[1].map(function(e){return new ve(e)});k.iter(i,z(j=this.dataStore,j.addAcquaintance)),this.api.sendAddAcquaintanceNotifications(i),this.sendNotification(e,i);break;case"notify_add_domain_invite":i=new Se(t);this.dataStore.setDomainInvite(i),this.sendNotification(e,i);break;case"notify_add_favorite_message":i=new Mt(t);this.dataStore.addFavoriteMessage(i),this.sendNotification(e,i);break;case"notify_add_favorite_talk":i=new Ee(t);this.updateTalkStatusByFavoriteTalkEvent(i),this.sendNotification(e,i);break;case"notify_add_friend":i=new ve(t[1]);this.dataStore.addFriend(i),this.sendNotification(e,i);break;case"notify_add_talkers":i=new Kr(t);null==this.dataStore.getTalk(i.id)&&this.sendNotification("notify_add_talkers_including_me",i),this.dataStore.setTalk(i),this.sendNotification(e,i);break;case"notify_close_conference":i=new he(t);this.dataStore.removeConference(i),this.updateTalkStatusByConferenceClosedEvent(i),this.sendNotification(e,i);break;case"notify_conference_participant_join":var i=t[3],r=t[4],o=this.dataStore;null!=o.me&&null!=(o=o.me.id)&&null!=r&&o.high==r.high&&o.low==r.low&&this.dataStore.addReactedConfereceId(i),this.sendNotification(e,t);break;case"notify_conference_participant_reject":var o=t[3];this.dataStore.addReactedConfereceId(o),this.sendNotification(e,t);break;case"notify_create_announcement":var r=new ki(t);this.dataStore.setAnnouncement(r),this.keywordWatcher.onAnnouncementCreated(r),this.sendNotification("notify_update_announcement_status",this.newAnnouncementStatus(r)),this.sendNotification(e,r);break;case"notify_create_message":var s=new O(t),i=(this.dataStore.setMessage(s),this.keywordWatcher.onMessageCreated(s),this.newTalkStatusByMessage(s));switch(null!=i&&this.sendNotification("notify_update_local_talk_status",i),s.type[1]){case 0:var a=s.content,l=null;switch(a.type){case"delete_talker":l=a.deleted_user_id;break;case"hide_pair_talk":l=a.user_id}if(null==l)return void this.sendNotification(e,s);for(var u=s.talkId,c=this.dataStore.getQuestions(u,l),_=0;_t.favoriteVersion)&&(t.favoriteVersion=e.favoriteVersion,t.orderInFavorites=e.orderInFavorites,this.dataStore.setTalkStatus(t))},updateTalkStatusByConferenceClosedEvent:function(e){var t,n=this.dataStore.getTalkStatus(e.talkId);null!=n&&null!=n.maxMessage&&(t=n.maxMessage.id,e=e.messageId,null!=t)&&null!=e&&t.high==e.high&&t.low==e.low&&(n.maxMessage.content.closed=!0,this.dataStore.setTalkStatus(n))},updateTalkStatusByTalkPushNotificationEvent:function(e){var t=this.dataStore.getTalkStatus(e.talkId);if(null==t){var n=this.dataStore.getTalk(e.talkId);if(null==n)return void F.e("talk not found on change favorite talk.");(t=new Xe).id=e.talkId,t.talkOrderingTimestamp=n.updatedAt}t.updateByTalkPushNotificationEvent(e)&&this.dataStore.setTalkStatus(t)},newTalkStatusByTalk:function(e){var t=this.dataStore.getTalkStatus(e.id);return null==t&&((t=new Xe).id=e.id),null==t.talkOrderingTimestamp&&(t.talkOrderingTimestamp=e.updatedAt),this.dataStore.setTalkStatus(t),t},newTalkStatusByMessage:function(e){var t=this.dataStore.getTalkStatus(e.talkId),n=(null==t&&((t=new Xe).id=e.talkId),this.dataStore),i=e.userId;return n=null!=n.me&&null!=(n=n.me.id)&&null!=i&&n.high==i.high&&n.low==i.low,t.updateByMessage(e,n),this.dataStore.setTalkStatus(t),t},updateTalkStatusOnMessageDelete:function(e){var t=this.dataStore.getTalkStatus(e.talkId);return null!=t&&t.updateByMessageDeletion(e)&&this.dataStore.setTalkStatus(t),t},updateTalkStatus:function(e){var t,n=this;return k.exists(e.readUserIds,function(e){var t=n.dataStore;return null!=t.me&&null!=(t=t.me.id)&&null!=e&&t.high==e.high&&t.low==e.low})?null==(t=this.dataStore.getTalkStatus(e.talkId))?(F.e("talkStatus is not found."),null):(t.updateByMessageReadStatusesUpdate(e)&&this.dataStore.setTalkStatus(t),t):null},newAnnouncementStatus:function(e){var t=this.dataStore.getAnnouncementStatus(e.domainId);return null==t&&((t=new ue).domainId=e.domainId),t.updateByAnnouncement(e),this.dataStore.setAnnouncementStatus(t),t},assureAnnouncementStatus:function(e){var t=this.dataStore.getAnnouncementStatus(e);return null==t&&(t=ue.fromDomainId(e),this.dataStore.setAnnouncementStatus(t)),t},__class__:Ho}),function(){l.call(this,"api")}),jo=((t["albero.proxy.AlberoServiceProxy"]=Go).__name__=["albero","proxy","AlberoServiceProxy"],Go.__super__=l,Go.prototype=e(l.prototype,{getOSString:function(){return"bot"},createAccessToken:function(e,t,n){function i(e){F.v("access token:",e),o.settings.setAccessToken(e),n(e)}function r(e){o.sendNotification("Url",Ni.FORWARD(g.error))}var o=this,s=e.split("$"),a=this.settings.getOs(),l=this.settings.getIDFV();(-1==e.indexOf("@")&&2==s.length?this.wsApi.createAccessTokenById(s[1],s[0],t,l,a):this.wsApi.createAccessToken(e,t,l,a)).then(i,r)},authorizeDevice:function(e,t){var n=this,i=this.settings.getIDFV();this.wsApi.authorizeDevice(e,i).then(function(e){t()},function(e){n.apiCaller.handleServerErrorDefault(e)})},createSession:function(e,n){var i=this,t=this.getOSString();this.apiCaller.onSessionClear(),this.wsApi.createSession(e,"1.128",t).then(function(e){var t=W.nowAsInt64();e.passwordExpiration.isExpired(t)?i.sendNotification("password_expiration_overed"):(e.passwordExpiration.needWarning(t,i.settings.getPasswordWarningSkipUntil())&&(i.settings.setPasswordWarningSkipUntil(W.oneDayAfterAsInt64()),i.sendNotification("password_expiration_warned")),i.apiCaller.onSessionCreated(),n(e),i.apiCaller.fireCallbacksWaitingForSession())},function(e){if(null!=e){if(401==e.code&&"expired password"==e.message)return void i.sendNotification("password_expiration_overed");if(401==e.code&&"deleted account"==e.message)return void i.sendNotification("SignOut");if(401==e.code&&"unauthorized device"==e.message)return void i.sendNotification("Device",Yn.AUTHORIZE);(400==e.code&&"older version specified"==e.message||401==e.code&&"bad token"==e.message||401==e.code&&"invalid token"==e.message)&&i.settings.clearAccessToken(),i.apiCaller.handleServerErrorDefault(e)}i.sendNotification("Url",Ni.FORWARD(g.error))})},startNotification:function(){var t=this;this.wsApi.startNotification().then(function(e){e||(t.dataStore.clear(!0),t.sendNotification("start_notification_failed"))},function(e){t.apiCaller.handleServerErrorDefault(e)})},resetNotification:function(e){var t=this;this.wsApi.resetNotification().then(e,function(e){t.apiCaller.handleServerErrorDefault(e)})},sendDomainNotifications:function(e){for(var t=0;t=n.length||(e=n[i],r=t.id,o=this.dataFactory.newDummyMessage(r,e.type,e.content),this.sendNotification("create_message_start",o),this.wsApi.createMessage(r,e.type,e.content).then(function(e){s.dataStore.setMessage(e),s.sendNotification("create_message_complete",[e,o.id]),s.forwardMessages(t,n,i+1),s.dataStore.removeMessage(o.id)},function(e){var t;s.sendNotification("create_message_fail",[e,o]),null!=e&&409==e.code?(t=ls.toLocalError(R.SendingMessageConflicted,e),s.sendNotification("error_occurred",t)):s.sendNotification("error_occurred",e)}))},deleteMessage:function(e,t){var n=this;this.wsApi.deleteMessage(e,t).then(function(e){},function(e){var t;null!=e&&((403!=e.code||"frozen domain"!=e.message)&&409==e.code&&"conflict"==e.message?(t=ls.toLocalError(R.DeletingMessageConflicted,e),n.sendNotification("error_occurred",t)):n.sendNotification("error_occurred",e))})},updateReadStatuses:function(n,i){var r=this;this.wsApi.updateReadStatuses(n,i).then(function(e){var t=r.dataStore.getTalkStatus(n);null!=t&&(t.updateByReadingMessagesFinished(i),r.sendNotification("notify_update_local_talk_status",t))},function(e){var t=r.dataStore.getTalkStatus(n);null!=t&&(t.updateByReadingMessagesCanceled(i),r.dataStore.setTalkStatus(t),r.sendNotification("notify_update_local_talk_status",t)),r.apiCaller.handleServerErrorDefault(e)})},searchMessagesAroundDateTime:function(e,t){return this.wsApi.searchMessagesAroundDateTime(e,t)},uploadV2:function(e,t,n,i){var r=this,o=At.toFileInfoDynamic(n),s=this.dataFactory.newDummyMessage(t,d.file,o);this.sendNotification("create_message_start",s),this.prepareMessageFileAsync(n,e,!1).then(function(e){r._createMessage(t,d.file,e,s,i).catch(function(e){})},function(e){r.sendNotification("create_message_fail",[e,s],i)})},uploadForHubot:function(e,t,n){var i,r=this.dataStore.getTalk(e),t={file:t,thumb:null};null==r?(i=At.toFileInfoDynamic(t),e=this.dataFactory.newDummyMessage(e,d.file,i),F.w("WARNING method: upload",i={code:400,message:"invalid talk_id (deleted talk)"}),this.sendNotification("create_message_fail",[i,e],n)):this.uploadV2(r.domainId,r.id,t,n)},uploadMultiV2:function(e,t,n,i,r){var o=this,s=At.toFileInfoDynamicArray(i),a=this.dataFactory.newDummyMessage(t,d.textMultipleFile,{text:n,files:s});this.sendNotification("create_message_start",a),this.prepareMessageFilesAsync(e,n,i,!1).then(function(e){o._createMessage(t,d.textMultipleFile,e,a,r).catch(function(e){})},function(e){o.sendNotification("create_message_fail",[e,a],r)})},uploadMultiForHubot:function(e,t,n,i){var r,o=this.dataStore.getTalk(e),n=n.map(function(e){return{file:e,thumb:null}});null==o?(r=At.toFileInfoDynamicArray(n),e=this.dataFactory.newDummyMessage(e,d.textMultipleFile,{text:t,files:r}),F.w("WARNING method: uploadMulti",r={code:400,message:"invalid talk_id (deleted talk)"}),this.sendNotification("create_message_fail",[r,e],i)):this.uploadMultiV2(o.domainId,o.id,t,n,i)},validateFileName:function(t){var n=I.replace(t.name,"$","__");if(n==t.name)return t;try{return t.name=n,t}catch(e){var i=t.slice(0,t.size,t.type);return new File([i],n,{type:t.type})}},prepareMessageFilesAsync:function(n,t,i,r){for(var o=this,e=Promise.resolve([]),s=0;se.version?n:(n=this.accountControlRequests,null!=Y[t]?n.setReserved(t,e):n.h[t]=e,this.storage.setDirtyFlag(),e)},removeAccountControlRequest:function(e){e="_"+e.high+"_"+e.low;this.accountControlRequests.remove(e),this.storage.setDirtyFlag()},removeAccountControlRequests:function(){this.accountControlRequests=new B,this.storage.setDirtyFlag()},getAccountControlGroup:function(){return this.accountControlGroup},setAccountControlGroup:function(e){return this.accountControlGroup=e,this.storage.setDirtyFlag(),this.accountControlGroup},updateAccountControlGroup:function(e){var t,n,i;null!=this.accountControlGroup&&(n=this.accountControlGroup.id,t=e.id,null!=n)&&null!=t&&n.high==t.high&&n.low==t.low&&(null!=(n=e.group)&&this.accountControlGroup.group.versionr[s])return!0;if(o[s]p.MAX_CONTENT_BYTES?{ok:!1,errorType:"limit",message:"Content length must be less than or equal to "+p.MAX_CONTENT_BYTES+" bytes, but the actual length is "+e.length+" bytes."}:Ka.validateXml(e)},p.hasPathField=function(e){return k.foreach(e,function(e){return!p.isStringNullOrEmpty(e.path)})},p.validateUpdateNoteInput=function(e,t){if(0==Object.keys(e).length)return Xs.Left("'update' function must not be called with no update fields.");if(null!=e.note_title){if("string"!=typeof e.note_title)return Xs.Left("'note_title' must be specified as String type.");if(0==e.note_title.length)return Xs.Left("'note_title' must not be empty.")}if(null!=e.note_content_type)return Xs.Left("'note_content_type' must not be specified. It cannot be changed.");if(null!=e.note_content){if("string"!=typeof e.note_content)return Xs.Left("'note_content' must be specified as String type.");if(0==e.note_content.length)return Xs.Left("'note_content' must not be empty.");if(t==po.getValue(mo.RICH_TEXT)){t=p.validateXmlContent(e);if(0===t[1])return Xs.Left(t[2])}}t=null;if(null!=e.note_attachments){if(!(e.note_attachments instanceof Array&&null==e.note_attachments.__enum__&&p.all(e.note_attachments,p.isValidAsAttachment)))return Xs.Left("'note_attachments' is an invalid value: "+JSON.stringify(e.note_attachments));t=p.toUpdateNoteAttachmentArray(e.note_attachments)}return Xs.Right({title:e.note_title,content:e.note_content,attachments:t})},p.isValidAsAttachment=function(e){return p.isStringNullOrEmpty(e.url)?!p.isStringNullOrEmpty(e.path):!p.isStringNullOrEmpty(e.id)&&!p.isStringNullOrEmpty(e.name)&&null!=e.content_size&&!p.isStringNullOrEmpty(e.content_type)},p.toUpdateNoteAttachmentArray=function(e){var n=Bs.parseInt64;return k.array(k.map(e,function(e){var t;return p.isStringNullOrEmpty(e.url)?vs.LocalFileAttachment(e):((t=null==e?null:JSON.parse(JSON.stringify(e))).id=n(e.id),vs.RemoteFileAttachment(t))}))},p.validateUpdateNoteOptions=function(e){var t={notify_talk_members_of_update:!0};if(null!=e&&null!=e.notify_talk_members_of_update){if("boolean"!=typeof e.notify_talk_members_of_update)return Xs.Left("'notify_talk_members_of_update' must be of Bool type.");t.notify_talk_members_of_update=e.notify_talk_members_of_update}return Xs.Right(t)},p.all=function(e,t){return k.foreach(e,t)},p.isStringNullOrEmpty=function(e){return null==e||0==e.length},p.prototype={__class__:p},(t["albero_cli.INotes"]=$t).__name__=["albero_cli","INotes"],$t.prototype={__class__:$t},function(e,t){this.delegate=e;e=null!=t?t:{max:24,interval:12e4};this.ratelimit=new An(e.max,e.interval)}),Is=((t["albero_cli.LimitedNotes"]=Ts).__name__=["albero_cli","LimitedNotes"],Ts.__interfaces__=[$t],Ts.prototype={limit:function(e){return this.ratelimit.apply(e)},get:function(e){var t=this;return this.limit(function(){return t.delegate.get(e)})},update:function(e,t,n){var i=this;return this.limit(function(){return i.delegate.update(e,t,n)})},delete:function(e){var t=this;return this.limit(function(){return t.delegate.delete(e)})},validateXml:function(e){return this.delegate.validateXml(e)},on:function(e,t){return this.delegate.on(e,t)},off:function(e,t){return this.delegate.off(e,t)},__class__:Ts},function(e,t,n){this.utils=e,this.api=t,this.fileService=n}),Es=((t["albero_cli.Notes"]=Is).__name__=["albero_cli","Notes"],Is.__interfaces__=[$t],Is.prototype={toNoteId:function(e){return new go(this.utils.parseInt64(e.id))},handleResponse:function(n,i,r){return function(e,t){null!=e?(e=Ls.of(e),i(e)):(e=r(t),n(e))}},get:function(e){var i=this,r=this.toNoteId(e);return new Promise(function(e,t){var n=i.api,e=i.handleResponse(e,t,js.of);n.getNote(r,e)})},update:function(e,t,n){var i=p.validateUpdateNoteInput(t,e.noteRevision.contentType);switch(i[1]){case 0:return Promise.reject(Ls.createInvalidParameterError(i[2]));case 1:var r=i[2],o=p.validateUpdateNoteOptions(n);switch(o[1]){case 0:return Promise.reject(Ls.createInvalidParameterError(o[2]));case 1:return this.updateNote(e,r,o[2])}}},delete:function(e){var i=this,r=this.toNoteId(e);return new Promise(function(e,t){var n=i.api,e=i.handleResponse(e,t,Gs.of);n.deleteNote(r,e)})},updateNote:function(e,t,n){var r=this,i=e.talkId_i64,o=new go(e.id_i64),s=this.mergeNoteObject(e,t),a=this.createNoteLocalEdit(i,o,s,null),l=n.notify_talk_members_of_update;return new Promise(function(e,t){var n=r.api,i=s.currentRevision,e=r.handleResponse(e,t,zs.of);n.updateNoteV2(o,i,a,l,e)})},mergeNoteObject:function(e,t){e={title:e.noteRevision.title,contentType:e.noteRevision.contentType,content:e.noteRevision.contentText,attachments:p.toUpdateNoteAttachmentArray(e.get_attachments()),currentRevision:e.noteRevision.revision};return null!=t.title&&(e.title=t.title),null!=t.content&&(e.content=t.content),null!=t.attachments&&(e.attachments=t.attachments),e},createNoteLocalEdit:function(e,t,n,i){var r=this.createNoteAttachmentFileInfoList(n.attachments),o=n.contentType==po.getValue(mo.RICH_TEXT);return new yo(e,t,n.title,n.content,r,i,null,o)},createNoteAttachmentFileInfoList:function(e){for(var t=[],n=0;n>>31,t.low<<1);if(a=new E(a.high<<1|a.low>>>31,a.low<<1),0<=l)break}for(;;){var u=new E(0,0);if(a.high==u.high&&a.low==u.low)break;var c,u=w.ucompare(n.high,t.high);0<=(0!=u?u:w.ucompare(n.low,t.low))&&(s=new E(s.high|a.high,s.low|a.low),u=n.high-t.high|0,c=n.low-t.low|0,w.ucompare(n.low,t.low)<0&&(u--,u|=0),n=new E(u,c)),a=new E(a.high>>>1,a.high<<31|a.low>>>1);t=new E(t.high>>>1,t.high<<31|t.low>>>1)}return i&&(o=~s.high,0==(r=-s.low)&&(o++,o|=0),s=new E(o,r)),e.high<0&&(i=~n.high,0==(o=-n.low)&&(i++,i|=0),n=new E(i,o)),{quotient:s,modulus:n}},function(){}),Ks=((t["haxe.Int64Helper"]=Ws).__name__=["haxe","Int64Helper"],Ws.parseString=function(e){for(var t=new E(0,10),n=new E(0,0),i=new E(0,1),r=!1,o=I.trim(e),s=("-"==o.charAt(0)&&(r=!0,o=o.substring(1,o.length)),o.length),a=0,l=s;a>31,u);if(r){var c=65535&i.low,_=i.low>>>16,h=65535&u.low,d=u.low>>>16,f=w._mul(c,h),h=w._mul(_,h),c=w._mul(c,d),_=(w._mul(_,d)+(c>>>16)|0)+(h>>>16)|0,f=(c<<=16,w.ucompare(d=f+c|0,c)<0&&(_++,_|=0),h<<=16,w.ucompare(d=d+h|0,h)<0&&(_++,_|=0),_=_+(w._mul(i.low,u.high)+w._mul(i.high,u.low)|0)|0,new E(_,d)),c=n.high-f.high|0,h=n.low-f.low|0;if(w.ucompare(n.low,f.low)<0&&(c--,c|=0),!((n=new E(c,h)).high<0))throw new H("NumberFormatError: Underflow")}else{var _=65535&i.low,d=i.low>>>16,f=65535&u.low,c=u.low>>>16,h=w._mul(_,f),m=w._mul(d,f),p=w._mul(_,c),g=(w._mul(d,c)+(p>>>16)|0)+(m>>>16)|0,p=(p<<=16,w.ucompare(y=h+p|0,p)<0&&(g++,g|=0),m<<=16,w.ucompare(y=y+m|0,m)<0&&(g++,g|=0),g=g+(w._mul(i.low,u.high)+w._mul(i.high,u.low)|0)|0,new E(g,y)),m=n.high+p.high|0,u=n.low+p.low|0;if(w.ucompare(u,n.low)<0&&(m++,m|=0),(n=new E(m,u)).high<0)throw new H("NumberFormatError: Overflow")}var g=65535&i.low,y=i.low>>>16,p=65535&t.low,m=t.low>>>16,u=w._mul(g,p),S=w._mul(y,p),v=w._mul(g,m),T=(w._mul(y,m)+(v>>>16)|0)+(S>>>16)|0,T=(v<<=16,w.ucompare(u=u+v|0,v)<0&&(T++,T|=0),S<<=16,w.ucompare(u=u+S|0,S)<0&&(T++,T|=0),T+(w._mul(i.low,t.high)+w._mul(i.high,t.low)|0)|0),i=new E(T,u)}return n},function(){this.buf=new bn,this.cache=[],this.useCache=Ks.USE_CACHE,this.useEnumIndex=Ks.USE_ENUM_INDEX,this.shash=new B,this.scount=0}),Vs=((t["haxe.Serializer"]=Ks).__name__=["haxe","Serializer"],Ks.run=function(e){var t=new Ks;return t.serialize(e),t.toString()},Ks.prototype={toString:function(){return this.buf.b},serializeString:function(e){var t,n=this.shash,n=null!=Y[e]?n.getReserved(e):n.h[e];null!=n?(this.buf.b+="R",this.buf.b+=null==n?"null":""+n):(n=this.shash,t=this.scount++,null!=Y[e]?n.setReserved(e,t):n.h[e]=t,this.buf.b+="y",e=encodeURIComponent(e),this.buf.b+=P.string(e.length),this.buf.b+=":",this.buf.b+=null==e?"null":""+e)},serializeRef:function(e){for(var t=typeof e,n=0,i=this.cache.length;n>2]),this.buf.b+=String.fromCharCode(N[63&(C<<4|k>>4)]),this.buf.b+=String.fromCharCode(N[63&(k<<2|D>>6)]),this.buf.b+=String.fromCharCode(N[63&D])}E==w?(l=I.b[E++],T=I.b[E++],this.buf.b+=String.fromCharCode(N[l>>2]),this.buf.b+=String.fromCharCode(N[63&(l<<4|T>>4)]),this.buf.b+=String.fromCharCode(N[T<<2&63])):E==1+w&&(l=I.b[E++],this.buf.b+=String.fromCharCode(N[l>>2]),this.buf.b+=String.fromCharCode(N[l<<4&63]));break;default:this.useCache&&this.cache.pop(),null!=e.hxSerialize?(this.buf.b+="C",this.serializeString(x.getClassName(i)),this.useCache&&this.cache.push(e),e.hxSerialize(this),this.buf.b+="g"):(this.buf.b+="c",this.serializeString(x.getClassName(i)),this.useCache&&this.cache.push(e),this.serializeFields(e))}break;case 7:n=t[2];if(this.useCache){if(this.serializeRef(e))return;this.cache.pop()}this.buf.b+=P.string(this.useEnumIndex?"j":"w"),this.serializeString(x.getEnumName(n)),this.useEnumIndex?(this.buf.b+=":",this.buf.b+=P.string(e[1])):this.serializeString(e[0]),this.buf.b+=":";for(var n=e.length,R=(this.buf.b+=P.string(n-2),2),O=n;R=(null==(r=e.right)?0:r._height)?new Qs(e.left,e.key,e.value,new Qs(e.right,t,n,i)):new Qs(new Qs(e.left,e.key,e.value,e.right.left),e.right.key,e.right.value,new Qs(e.right.right,t,n,i)):o+2(null==(r=i.left)?0:r._height)?new Qs(new Qs(e,t,n,i.left),i.key,i.value,i.right):new Qs(new Qs(e,t,n,i.left.left),i.left.key,i.left.value,new Qs(i.left.right,i.key,i.value,i.right)):new Qs(e,t,n,i,(s(null==t?0:t._height)?null==(n=this.left)?0:n._height:null==(i=this.right)?0:i._height,this._height=e+1):this._height=r}),Xs=((t["haxe.ds.TreeNode"]=Qs).__name__=["haxe","ds","TreeNode"],Qs.prototype={__class__:Qs},t["haxe.ds.Either"]={__ename__:["haxe","ds","Either"],__constructs__:["Left","Right"]}),Js=(Xs.Left=function(e){e=["Left",0,e];return e.__enum__=Xs,e.toString=s,e},Xs.Right=function(e){e=["Right",1,e];return e.__enum__=Xs,e.toString=s,e},Xs.__empty_constructs__=[],function(){qs.call(this)}),Zs=((t["haxe.ds.EnumValueMap"]=Js).__name__=["haxe","ds","EnumValueMap"],Js.__interfaces__=[un],Js.__super__=qs,Js.prototype=e(qs.prototype,{compare:function(e,t){var n=e[1]-t[1];return 0!=n?n:(n=e.slice(2),e=t.slice(2),0==n.length&&0==e.length?0:this.compareArgs(n,e))},compareArgs:function(e,t){var n=e.length-t.length;if(0!=n)return n;for(var i=0,r=e.length;i>6):(i<=65535?t.push(224|i>>12):(t.push(240|i>>18),t.push(128|i>>12&63)),t.push(128|i>>6&63)),t.push(128|63&i))}return new ta(new Uint8Array(t).buffer)},ta.ofData=function(e){var t=e.hxBytes;return null!=t?t:new ta(e)},ta.fastGet=function(e,t){return e.bytes[t]},ta.prototype={getString:function(e,t){if(e<0||t<0||e+t>this.length)throw new H(sa.OutsideBounds);for(var n="",i=this.b,r=String.fromCharCode,o=e,s=e+t;o>10)))+r(1023&a|56320)}return n},toString:function(){return this.getString(0,this.length)},__class__:ta},function(){this.b=[]}),ia=((t["haxe.io.BytesBuffer"]=na).__name__=["haxe","io","BytesBuffer"],na.prototype={getBytes:function(){var e=new ta(new Uint8Array(this.b).buffer);return this.b=null,e},__class__:na},(t["haxe.io.Input"]=cn).__name__=["haxe","io","Input"],cn.prototype={readByte:function(){throw new H("Not implemented")},readBytes:function(e,t,n){var i=n,r=e.b;if(t<0||n<0||e.lengthe.length)throw new H(sa.OutsideBounds);this.b=e.b,this.pos=t,this.len=n,this.totlen=n}),ra=((t["haxe.io.BytesInput"]=ia).__name__=["haxe","io","BytesInput"],ia.__super__=cn,ia.prototype=e(cn.prototype,{readByte:function(){if(0==this.len)throw new H(new oa);return this.len--,this.b[this.pos++]},readBytes:function(e,t,n){if(t<0||n<0||t+n>e.length)throw new H(sa.OutsideBounds);if(0==this.len&&0e.length)throw new H(sa.OutsideBounds);for(var i=e.b,r=n;0>8),this.writeByte(255&e)):(this.writeByte(255&e),this.writeByte(e>>8))},writeInt32:function(e){this.bigEndian?(this.writeByte(e>>>24),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)):(this.writeByte(255&e),this.writeByte(e>>8&255),this.writeByte(e>>16&255),this.writeByte(e>>>24))},__class__:_n},function(){this.b=new na}),oa=((t["haxe.io.BytesOutput"]=ra).__name__=["haxe","io","BytesOutput"],ra.__super__=_n,ra.prototype=e(_n.prototype,{writeByte:function(e){this.b.b.push(e)},writeBytes:function(e,t,n){var i=this.b;if(t<0||n<0||t+n>e.length)throw new H(sa.OutsideBounds);i.b;for(var r=e.b,o=t,s=t+n;o>>23&255,n=8388607&e;return 0==n&&0==t?0:(1-(e>>>31<<1))*(1+Math.pow(2,-23)*n)*Math.pow(2,t-127)},aa.floatToI32=function(e){var t,n;return 0==e?0:(n=e<0?-e:e,(t=Math.floor(Math.log(n)/.6931471805599453))<-127?t=-127:128>20&2047)-1023,e=4294967296*(1048575&t)+2147483648*(e>>>31)+(2147483647&e);return 0==e&&-1023==n?0:(1-(t>>>31<<1))*(1+Math.pow(2,-52)*e)*Math.pow(2,n)},aa.doubleToI64=function(e){var t,n,i,r=aa.i64tmp;return 0==e?(r.low=0,r.high=0):isFinite(e)?(n=e<0?-e:e,t=Math.floor(Math.log(n)/.6931471805599453),i=(n=Math.round(4503599627370496*(n/Math.pow(2,t)-1)))/4294967296|0,r.low=0|n,r.high=(e<0?-2147483648:0)|t+1023<<20|i):0";var n=typeof e;switch(n="function"==n&&(e.__name__||e.__ename__)?"object":n){case"function":return"";case"object":if(e instanceof Array){if(e.__enum__){if(2==e.length)return e[0];for(var i=e[0]+"(",r=(t+="\t",2),o=e.length;r{for(var n in t)wa(e,n,{get:t[n],enumerable:!0})})(y={},{codePointCount:()=>Ca,extractMentionParts:()=>xa,findMentionSuggestionHint:()=>La,hasMentionPartForMeOrAll:()=>Da,invalidateManualMentionMarkup:()=>Oa,parseMessageMention:()=>Fa,removeMentionMarkup:()=>Ra}),Ma=e=>Array.from(e),Ca=e=>Ma(e).length,ka=/{@:(ALL|\d+),(\d+)}@/g,Da=e=>xa(e).some(({userIdNumStr:e})=>null===e||"ALL"===e),Ra=t=>Fa(t).map(e=>"mention"===e.type?e.mentionText:"normal"===e.type?t.substring(e.start,e.end):"").join(""),Oa=e=>e.replace(ka,e=>e.substring(0,e.length-1)+" "),Fa=e=>{let n=0;var t=xa(e).flatMap(e=>{var t=[];return n!==e.start&&t.push({type:"normal",start:n,end:e.start}),t.push(e),n=e.end,t});return e.length!==n&&t.push({type:"normal",start:n,end:e.length}),t},xa=o=>{let s=0;return Array.from(o.matchAll(ka)).flatMap(e=>{var t,n,i,r=null!=(r=e.index)?r:0;return r{e=e.match(Ua);return null===e?null:{prev:e[1],atMarks:e[2],keyword:e[3]}},y=y,((t,n,i,r)=>{if(n&&"object"==typeof n||"function"==typeof n)for(let e of Aa(n))ba.call(t,e)||e===i||wa(t,e,{get:()=>n[e],enumerable:!(r=Na(n,e))||r.enumerable});return t})(wa({},"__esModule",{value:!0}),y)),Jn.exports),Ba=((String.prototype.__class__=t.String=String).__name__=["String"],(t.Array=Array).__name__=["Array"],(Date.prototype.__class__=t.Date=Date).__name__=["Date"],t.Int={__name__:["Int"]}),Ha=t.Dynamic={__name__:["Dynamic"]},Ga=t.Float=Number,ja=(Ga.__name__=["Float"],t.Bool=Boolean),za=(ja.__ename__=["Bool"],t.Class={__name__:["Class"]}),Ya={},Wa={},y={},Ka=(y.exports=(()=>{var e=require("fs");let r=require("libxmljs");var t=require("path");let n=e=>e.namespace()?.href()??"",s=e=>`{${n(e)}}`+e.name();t=t.resolve(__dirname,"./note-richtext.v1.xsd"),e=r.parseXml(e.readFileSync(t,{encoding:"utf-8"}),{baseUrl:t});let i=new Map;function o(e){var t=Number(e.root().getAttribute("version")?.value()),n=i.get(t);return n?e.validate(n)?{ok:!0}:{ok:!1,errorType:"xsd",message:e.validationErrors.map(e=>e.message.trim()).join(" ")}:{ok:!1,errorType:"version",message:`The note version ${t} is not supported by this package. Please use one of the following values: `+Array.from(i.keys()).join(",")}}i.set(1,e);let a=new Map;function l(e){try{return function n(e,i,r){for(var o of e.childNodes())if("element"===o.type()){if(!i.includes(o.name()))throw new Error(`Element '${s(o)}': This element is not allowed at '${o.path()}'.`);{let t=r.get(o.name())??[],e=[...i].filter(e=>t.includes(e))??[];n(o,e,r)}}}(e.root(),a.get(e.root().name()),a),{ok:!0}}catch(e){return{ok:!1,errorType:"descendant",message:e.message}}}a.set("note",["textsize","color","b","link","u","strike","checkbox"]),a.set("textsize",["color","b","link","u","strike"]),a.set("color",["textsize","b","link","u","strike"]),a.set("b",["textsize","color","link","u","strike"]),a.set("link",["textsize","b","strike"]),a.set("u",["textsize","color","b","link","strike"]),a.set("strike",["textsize","color","b","link","u"]),a.set("checkbox",["color","b","link","u","strike"]);let u=e=>"element"===e.type(),c=e=>"element"===e.type()&&"checkbox"===e.name(),_=e=>"element"===e.type()&&"link"===e.name(),h=e=>"element"===e.type()&&["textsize","color","b","link","u","strike"].includes(e.name());function d(e,t,n,i){for(var r of e.childNodes())t(r)&&(n(r)&&i.push(r),d(r,t,n,i))}function f(e){var t=[];d(e.root(),u,_,t);try{for(var n of t){var i=n.text();if(null==i||""===i)throw new Error(`Element '${s(n)}': This element must not be empty. (element path: ${n.path()})`);if(/\r|\n/.test(i))throw new Error(`Element '${s(n)}': This element must not contain a new line. (element path: ${n.path()})`);var r=n.attrs().filter(e=>"url"===e.name())[0].value();if(!/^[\x20-\x7E]+$/.test(r))throw new Error(`Element '${s(n)}': The attribute 'url' must be URL-encoded or must be converted by Punycode if it's an IDN. (element path: ${n.path()})`)}return{ok:!0}}catch(e){return{ok:!1,errorType:"link",message:e.message}}}function m(e){var t=[];d(e.root(),u,c,t);try{for(var n of t)if(/\r|\n/.test(n.text()))throw new Error(`Element '${s(n)}': This element must not contain a new line. (element path: ${n.path()})`);return{ok:!0}}catch(e){return{ok:!1,errorType:"checkbox",message:e.message}}}function p(e){var t=[];d(e.root(),u,h,t);try{for(var n of t){var i=n.text();if(null==i||""===i)throw new Error(`Element '${s(n)}': This element must not be empty. (element path: ${n.path()})`)}return{ok:!0}}catch(e){return{ok:!1,errorType:"text-decorator",message:e.message}}}return{validateXml:function(e){let t;try{t=r.parseXml(e).doc()}catch(e){return{ok:!1,errorType:"parse",message:e.message}}let n={ok:!0};var i;for(i of[o,l,f,m,p])if(!(n=i(t)).ok)break;return n}}})(),y.exports),Y={};i.APP_STATE_CHANGED="app_state_changed",i.ACCESS_TOKEN_CHANGED="access_token_changed",i.CURRENT_USER_CHANGED="current_user_changed",i.CONFIGURATION_CHANGED="configuration_changed",i.DOMAIN_SELECTION_CHANGED="domain_selection_changed",i.TALK_SELECTION_CHANGED="talk_selection_changed",i.TALK_LIST_SCROLL_TO_TALK_TOP_NEEDED="talk_list_scroll_to_talk_top_needed",i.USER_SELECTION_NEEDED="user_selection_needed",i.USER_SELECTION_CHANGED="user_selection_changed",i.FRIEND_SELECTION_NEEDED="friend_selection_needed",i.COMMON_STAMP_SET_LOADED="common_stamp_set_loaded",i.STAMP_SELECTION_STARTED="stamp_selection_started",i.STAMP_SELECTION_ENDED="stamp_selection_ended",i.STAMP_SELECTION_CHANGED="stamp_selection_changed",i.ACTION_SELECTION_CHANGED="action_selection_changed",i.CURRENT_PAGE_CHANGED="current_page_changed",i.CURRENT_PAGE_REASSIGNED="current_page_reassgined",i.FILEINFO_SELECTION_CHANGED="fileinfo_selection_changed",i.NOTE_FILEINFO_SELECTION_CHANGED="note_fileinfo_selection_changed",i.MESSAGE_FILEINFO_SELECTION_CHANGED="message_fileinfo_selection_changed",i.STAGED_FILEINFO_SELECTION_CHANGED="staged_fileinfo_selection_changed",i.STAGED_FILEINFOS_ADDED="staged_fileinfos_added",i.STAGED_FILEINFOS_MOVED="staged_fileinfos_moved",i.CLOSE_FILEPREVIEW_MODAL="close_filepreview_modal",i.ERROR_OCCURRED="error_occurred",i.UNREAD_COUNT_CHANGED="brand_badge_changed",i.SEND_FORM_TOP_CHANGED="send_form_top_changed",i.SOLUTIONS_LOADED="solutions_loaded",i.RIGHT_PANE_OPENED="right_pane_opened",i.RIGHT_PANE_CLOSED="right_pane_closed",i.PASSWORD_EXPIRATION_OVERED="password_expiration_overed",i.PASSWORD_EXPIRATION_WARNED="password_expiration_warned",i.PHOTO_EDITOR_SAVED="photo_editor_saved",i.ICON_EDITOR_SAVED="icon_editor_saved",i.MC_AUTHENTICATED_USER_RECEIVED="mc_authenticated_user_received",i.KEYWORD_WATCHING_UPDATED="keyword_watching_updated",i.KEYWORD_DETECTION_UPDATED="keyword_detaction_updated",i.DEPARTMENT_SELECTION_CHANGED_FOR_MEMBERS_PAGE="department_selection_changed_for_members_page",i.PRESENCES_UPDATED="presences_updated",i.NOTEINFO_SELECTION_CHANGED="noteinfo_selection_changed",i.START_NOTE_EDITING="start_note_editing",i.OPEN_EXISTING_PAIR_TALK_COMPLETED="open_existing_pair_talk_completed",i.FIRST_ROUTING_WILL_START="first_routing_will_start",i.SIGNED_OUT="signed_out",i.ROUTUNG_TALK_FALLBACK="routing_talk_fallback",i.ROUTUNG_DOMAIN_FALLBACK="routing_domain_fallback",i.TALKS_SORT_MODE_CHANGED="talks_sort_mode_changed",i.RESERVE_SCHEDULED_MESSAGE_EDITING="reserve_scheduled_message_editing",i.DATA_RECOVERING="data_recovering",i.DATA_RECOVERED="data_recovered",i.NOTIFY_UPDATE_USER="notify_update_user",i.NOTIFY_ADD_FRIEND="notify_add_friend",i.NOTIFY_ADD_ACQUAINTANCE="notify_add_acquaintance",i.NOTIFY_ADD_ACQUAINTANCES="notify_add_acquaintances",i.NOTIFY_DELETE_FRIEND="notify_delete_friend",i.NOTIFY_DELETE_ACQUAINTANCE="notify_delete_acquaintance",i.NOTIFY_DELETE_ACQUAINTANCES="notify_delete_acquaintances",i.NOTIFY_UPDATE_DOMAIN_USERS="notify_update_domain_users",i.GET_DOMAIN_USERS_RESPONSED="get_domain_users_responsed",i.GET_USERS_RESPONSED="get_users_responsed",i.GET_PROFILE_RESPONSED="get_profile_responsed",i.GET_PROFILE_ERRORED="get_profile_errored",i.UPDATE_USER_RESPONSED="update_user_responsed",i.UPDATE_USER_ERRORED="update_user_errored",i.UPDATE_PROFILE_RESPONSED="update_profile_responsed",i.UPDATE_PROFILE_ERRORED="update_profile_errored",i.NOTIFY_UPDATE_DEPARTMENT_TREE="notify_update_department_tree",i.NOTIFY_UPDATE_DEPARTMENT_USERS="notify_update_department_users",i.GET_DEPARTMENT_TREE_RESPONSED="get_department_tree_responsed",i.GET_DEPARTMENT_TREE_CANCELED="get_department_tree_canceled",i.GET_DEPARTMENT_USERS_RESPONSED="get_department_users_responsed",i.GET_DEPARTMENT_USERS_CANCELED="get_department_users_canceled",i.GET_DEPARTMENT_USER_COUNT_RESPONSED="get_department_user_count_responsed",i.GET_ME_RESPONSED="get_me_responsed",i.DEPARTMENT_USER_COUNT_CLEARED="department_user_count_cleared",i.DEPARTMENT_USER_IDS_PREPARED="department_user_ids_prepared",i.NOTIFY_ADD_DOMAIN_INVITE="notify_add_domain_invite",i.NOTIFY_ACCEPT_DOMAIN_INVITE="notify_accept_domain_invite",i.NOTIFY_DELETE_DOMAIN_INVITE="notify_delete_domain_invite",i.NOTIFY_JOIN_DOMAIN="notify_join_domain",i.NOTIFY_UPDATE_DOMAIN="notify_update_domain",i.NOTIFY_LEAVE_DOMAIN="notify_leave_domain",i.NOTIFY_ADD_DOMAIN_MEMBERS="notify_add_domain_members",i.NOTIFY_CREATE_PAIR_TALK="notify_create_pair_talk",i.CREATE_PAIR_TALK_COMPLETE="create_pair_talk_complete",i.CREATE_PAIR_TALK_FAIL="create_pair_talk_fail",i.NOTIFY_CREATE_GROUP_TALK="notify_create_group_talk",i.CREATE_GROUP_TALK_COMPLETE="create_group_talk_complete",i.CREATE_GROUP_TALK_FAIL="create_group_talk_fail",i.NOTIFY_UPDATE_GROUP_TALK="notify_update_group_talk",i.UPDATE_GROUP_TALK_COMPLETE="update_group_talk_complete",i.UPDATE_GROUP_TALK_FAIL="update_group_talk_fail",i.NOTIFY_ADD_TALKERS="notify_add_talkers",i.NOTIFY_ADD_TALKERS_INCLUDING_ME="notify_add_talkers_including_me",i.NOTIFY_DELETE_TALKER="notify_delete_talker",i.NOTIFY_DELETE_TALK="notify_delete_talk",i.NOTIFY_UPDATE_READ_STATUSES="notify_update_read_statuses",i.NOTIFY_UPDATE_TALK_STATUS="notify_update_talk_status",i.NOTIFY_UPDATE_LOCAL_TALK_STATUS="notify_update_local_talk_status",i.NOTIFY_ADD_FAVORITE_TALK="notify_add_favorite_talk",i.NOTIFY_DELETE_FAVORITE_TALK="notify_delete_favorite_talk",i.NOTIFY_DISABLE_PUSH_NOTIFICATION="notify_disable_push_notification",i.NOTIFY_ENABLE_PUSH_NOTIFICATION="notify_enable_push_notification",i.ADD_TALKERS_SUCCEEDED="add_talkers_succeeded",i.ADD_TALKERS_FAILED="add_talkers_failed",i.NOTIFY_CREATE_MESSAGE="notify_create_message",i.NOTIFY_DELETE_MESSAGE="notify_delete_message",i.NOTIFY_GET_MESSAGES="notify_get_messages",i.NOTIFY_GET_MESSAGE_READ_STATUS="notify_get_message_status",i.CREATE_MESSAGE_START="create_message_start",i.CREATE_MESSAGE_COMPLETE="create_message_complete",i.CREATE_MESSAGE_FAIL="create_message_fail",i.ADD_FAVORITE_MESSAGE_COMPLETED="add_favorite_message_completed",i.DELETE_FAVORITE_MESSAGE_COMPLETED="delete_favorite_message_completed",i.GET_FAVORITE_MESSAGES_COMPLETED="get_favorite_messages_completed",i.NOTIFY_ADD_FAVORITE_MESSAGE="notify_add_favorite_message",i.NOTIFY_DELETE_FAVORITE_MESSAGE="notify_delete_favorite_message",i.NOTIFY_SCHEDULE_MESSAGE="notify_schedule_message",i.NOTIFY_PROCESSED_SCHEDULED_MESSAGE="notify_processed_scheduled_message",i.NOTIFY_DELETE_SCHEDULED_MESSAGE="notify_delete_scheduled_message",i.GET_SCHEDULED_MESSAGES_COMPLETED="get_scheduled_messages_completed",i.GET_SCHEDULED_MESSAGES_FAILED="get_scheduled_messages_failed",i.DELETE_SCHEDULED_MESSAGES_COMPLETED="delete_scheduled_messages_completed",i.SCHEDULE_MESSAGE_STARTED="schedule_message_started",i.SCHEDULE_MESSAGE_COMPLETED="schedule_message_completed",i.SCHEDULE_MESSAGE_FAILED="schedule_message_faileed",i.RESCHEDULE_MESSAGE_STARTED="reschedule_message_started",i.RESCHEDULE_MESSAGE_COMPLETED="reschedule_message_completed",i.RESCHEDULE_MESSAGE_FAILED="reschedule_message_failed",i.NOTIFY_UPDATE_MESSAGE_REACTIONS="notify_update_message_reactions",i.GET_MESSAGE_REACTION_SUMMARIES_COMPLETED="get_message_reaction_summaries_completed",i.GET_MESSAGE_REACTION_SUMMARIES_FAILED="get_message_reaction_summaries_failed",i.SET_MESSAGE_REACTION_COMPLETED="set_message_reaction_completed",i.SET_MESSAGE_REACTION_FAILED="set_message_reaction_failed",i.RESET_MESSAGE_REACTION_COMPLETED="reset_message_reaction_completed",i.RESET_MESSAGE_REACTION_FAILED="reset_message_reaction_failed",i.NOTIFY_CREATE_ANNOUNCEMENT="notify_create_announcement",i.NOTIFY_DELETE_ANNOUNCEMENT="notify_delete_announcement",i.NOTIFY_UPDATE_ANNOUNCEMENT_STATUS="notify_update_announcement_status",i.NOTIFY_GET_ANNOUNCEMENTS="notify_get_announcements",i.CREATE_ANNOUNCEMENT_START="create_announcement_start",i.CREATE_ANNOUNCEMENT_COMPLETE="create_announcement_complete",i.CREATE_ANNOUNCEMENT_FAIL="create_announcement_fail",i.NOTIFY_UPDATE_QUESTION="notify_update_question",i.NOTIFY_GET_QUESTIONS="get_questions_responsed",i.NOTIFY_CREATE_ATTACHMENT="notify_create_attachment",i.NOTIFY_DELETE_ATTACHMENT="notify_delete_attachment",i.GET_FILE_RESPONSED="get_file_responsed",i.GET_FILE_PREVIEW="get_file_preview",i.CREATE_FILE_PREVIEW="create_file_preview",i.GET_NOTE_STATUSES_LOADED="get_note_statuses_loaded",i.GET_NOTE_LOADED="get_note_loaded",i.GET_NOTE_FAILED_BY_NOTE_NOT_FOUND="get_note_failed_by_note_not_found",i.CREATE_NOTE_COMPLETED="create_note_completed",i.CREATE_NOTE_FAILED="create_note_failed",i.UPDATE_NOTE_LOCAL_EDIT="update_note_local_edit",i.CLEAR_NOTE_LOCAL_EDIT="clear_note_local_edit",i.UPDATE_NOTE_SETTING_COMPLETED="update_note_setting_completed",i.UPDATE_NOTE_SETTING_FAILED_BY_NOT_FOUND="update_note_setting_failed_by_not_found",i.UPDATE_NOTE_SETTING_FAILED_BY_CONFLICT="update_note_setting_failed_by_conflict",i.UPDATE_NOTE_SETTING_FAILED_BY_EDITING="update_note_setting_failed_by_editing",i.UPDATE_NOTE_COMPLETED="update_note_completed",i.DELETE_NOTE_COMPLETED="delete_note_completed",i.NOTIFY_CREATE_NOTE="notify_create_note",i.NOTIFY_UPDATE_NOTE_PARTIALLY="notify_update_note_partially",i.NOTIFY_DELETE_NOTE="notify_delete_note",i.NOTIFY_UPDATE_NOTE_FOR_SETTING="notify_update_note_for_setting",i.NOTIFY_UPDATE_NOTE_FOR_SUMMARY="notify_update_note_for_revision",i.CREATE_NOTE_BUTTON_CLICKED="create_note_button_clicked",i.NOTIFY_LOCK_NOTE="notify_lock_note",i.NOTIFY_UNLOCK_NOTE="notify_unlock_note",i.NOTIFY_SEARCH_MESSAGES="notify_search_messages",i.NOTIFY_SEARCH_ATTACHMENTS="notify_search_attachments",i.NOTIFY_SEARCH_MESSAGES_FAIL="notify_search_messages_fail",i.NOTIFY_SEARCH_ATTACHMENTS_FAIL="notify_search_attachments_fail",i.NOTIFY_SEARCH_PREPARE="notify_search_prepare",i.NOTIFY_SEARCH_CLEAR="notify_search_clear",i.NOTIFY_FILTER_BOX_TEXT_CHANGED="notify_filter_box_text_changed",i.NOTIFY_SEARCH_BOX_POPUP="notify_search_box_popup",i.NOTIFY_ADD_ACCOUNT_CONTROL_REQUEST="notify_add_account_control_request",i.NOTIFY_DELETE_ACCOUNT_CONTROL_REQUEST="notify_delete_account_control_request",i.NOTIFY_JOIN_ACCOUNT_CONTROL_GROUP="notify_join_account_control_group",i.NOTIFY_UPDATE_ACCOUNT_CONTROL_GROUP_PARTIALLY="notify_update_account_control_group_partially",i.NOTIFY_LEAVE_ACCOUNT_CONTROL_GROUP="notify_leave_account_control_group",i.PREPARE_CONFERENCE_FROM_MESSAGE="prepare_conference_from_message",i.JOIN_CONFERENCE_RESPONSED="join_conference_responsed",i.JOIN_CONFERENCE_CANCELED="join_conference_canceled",i.GET_CONFERENCE_PARTICIPANTS_RESPONSED="get_conference_participants_responsed",i.NOTIFY_OPEN_CONFERENCE="notify_open_conference",i.NOTIFY_CLOSE_CONFERENCE="notify_close_conference",i.NOTIFY_CONFERENCE_PARTICIPANT_JOIN="notify_conference_participant_join",i.NOTIFY_CONFERENCE_PARTICIPANT_LIMIT="notify_conference_participant_limit",i.NOTIFY_CONFERENCE_PARTICIPANT_REJECT="notify_conference_participant_reject",i.NOTIFY_ALL_TALK_MEMBERS_REJECTED_CONFERENCE="notify_all_talk_members_rejected_conference",i.NOTIFY_UPDATE_DOMAIN_STAMP_SETTING="notify_update_domain_stampsetting",i.NOTIFY_UPDATE_STAMPSET="notify_update_stampset",i.NOTIFY_DELETE_STAMPSET="notify_delete_stampset",i.NOTIFY_UPDATE_DOMAIN_BUILTIN_STAMP_SETTING="notify_update_domain_builtin_stampsetting",i.NOTIFY_FLOW_NOTIFICATION_BADGE="notify_flow_notification_badge",i.GET_FLOW_NOTIFICATION_BADGES_COMPLETED="get_flow_notification_badges_completed",i.GET_FLOW_NOTIFICATION_BADGES_FAILED="get_flow_notification_badges_failed",i.GET_DIRECT_APPS_COMPLETED="get_direct_apps_completed",i.GET_DIRECT_APPS_FAILED="get_direct_apps_failed",i.START_NOTIFICATION_FAILED="start_notification_failed",Rn.DEFAULT_RESOLVER=new Dn,Rn.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:",_.accessMode=On.Disabled,te.ANNOUNCEMENTS_KEY="-1",Bn.__meta__={fields:{api:{inject:null}}},Bn.NAME="AccountControlRequest",Gn.__meta__={fields:{api:{inject:null},dataStore:{inject:null}}},Gn.NAME="Conference",zn.__meta__={fields:{api:{inject:null}}},zn.NAME="Device",Wn.__meta__={fields:{api:{inject:null}}},Wn.NAME="Domain",Vn.__meta__={fields:{api:{inject:null},dataStore:{inject:null},fileService:{inject:null}}},Vn.NAME="FilePath",Qn.__meta__={fields:{api:{inject:null}}},Qn.NAME="FilePreview",Xn.__meta__={fields:{api:{inject:null},dataStore:{inject:null}}},Xn.NAME="LoadStampset",$n.__meta__={fields:{api:{inject:null}}},$n.NAME="ManageFriends",ei.__meta__={fields:{api:{inject:null}}},ei.NAME="Message",ni.__meta__={fields:{dataStore:{inject:null},api:{inject:null}}},ni.NAME="MessageReaction",ri.__meta__={fields:{api:{inject:null},dataStore:{inject:null},fileService:{inject:null}}},ri.NAME="Note",si.__meta__={fields:{api:{inject:null},keywordWatcher:{inject:null},readStatusUpdater:{inject:null}}},si.NAME="Read",li.__meta__={fields:{api:{inject:null}}},li.NAME="ReloadData",ci.__meta__={fields:{dataStore:{inject:null},api:{inject:null}}},ci.NAME="ScheduleMessage",hi.__meta__={fields:{api:{inject:null},searchService:{inject:null}}},hi.NAME="Search",fi.__meta__={fields:{dataStore:{inject:null},settings:{inject:null}}},fi.NAME="SelectTalk",pi.__meta__={fields:{api:{inject:null}}},pi.NAME="Send",gi.__meta__={fields:{accessTokenResolver:{inject:null},session:{inject:null}}},gi.NAME="SignIn",yi.__meta__={fields:{api:{inject:null},settings:{inject:null},dataStore:{inject:null}}},yi.NAME="SignOut",Si.__meta__={fields:{api:{inject:null},dataStore:{inject:null}}},Si.NAME="Talk",Ti.__meta__={fields:{api:{inject:null},dataStore:{inject:null}}},Ti.NAME="UpdateProfile",Ii.__meta__={fields:{api:{inject:null}}},Ii.NAME="UpdateUser",Ei.__meta__={fields:{userPresences:{inject:null},api:{inject:null},settings:{inject:null}}},Ei.NAME="UpdateUserPresences",Ei.MAX_USERS_PER_API=100,wi.__meta__={fields:{routing:{inject:null}}},wi.NAME="Url",_e.TalkAutoScrollDelay=1,_e.TalkAutoScrollImmediately=2,_e.TalkAutoScrollNone=3,_e.NotificationPopupTime5Sec=5,_e.TalksSortModeNewMessagesFirst="new_messages_first",_e.TalksSortModeUnreadMessagesFirst="unread_messages_first",_e.TalksSortModeOldMessagesFirst="old_messages_first",_e.DomainsSortModeNameOrderAsc="name_order_asc",_e.OLD_KEY_RIGHT_PANEL_OPENED="right_panel_opened",_e.OLD_KEY_RIGHT_PANEL_WIDTH="right_panel_width",_e.OLD_KEY_APP_LEFT_PANEL_OPENED="app_left_panel_opened",_e.NAME="browser_settings",Fi.MAX_SIZE=72,he.INCOMING_TIME=6e4,Li.DEFAULT_PRESENCE_EXPIRATION=3e5,Li.DEFAULT_UPDATE_LAST_USED_AT_INTERVAL=6e5,Bi.DEFAULT_TTL=3600,Bi.DEFAULT_MAX_PARTICIPANTS=8,rr.stagedFileInfosMaxId=0,Ae.TIMESTAMP_SHIFT=22,O.MAX_READ_USER_IDS_COUNT=16,Pe.QUERY_DATE_TODAY="t",Pe.QUERY_DATE_YESTERDAY="-1d",Pe.QUERY_DATE_THREE_DAYS_BEFORE="-3d",zr.HISTORY_TAB_NAME="stamp-history",it.SIXTY_MINUTES=new E(0,36e5),it.FIFTEEN_MINUTES=new E(0,9e5),go.PREFIX="note-",go.nextDummyId=new E(-1,-1),Ot.CONTINUE_MARGIN_RATE=.1,Pt.CHEKBOX_UNCHECKED="- [ ] ",Pt.CHEKBOX_CHECKED="- [x] ",jt.TU_REG=new v("ッ([BCDFGHIJKLMNOPQRSTUVWYZ])","gm"),jt.XTU_REG=new v("ッ","gm"),F.EMERGENCY=0,F.ALERT=1,F.CRITICAL=2,F.ERROR=3,F.WARNING=4,F.NOTICE=5,F.INFO=6,F.DEBUG=7,F.level=F.getLogLevel(process.env.HUBOT_LOG_LEVEL),F._d=7<=F.level&&null!=console?console.log.bind(console):F._nop,F._i=6<=F.level&&null!=console?console.info.bind(console):F._nop,F._w=4<=F.level&&null!=console?console.warn.bind(console):F._nop,F._e=3<=F.level&&null!=console?console.error.bind(console):F._nop,Oo.HIRAGANA_SMALL_A=12353,Oo.HIRAGANA_NN=12435,Oo.KATAKANA_SMALL_A=12449,Uo.NAME="accessTokenResolver",l.NAME="Proxy",Lo.__meta__={fields:{settings:{inject:null},accountLoader:{inject:null},api:{inject:null}}},Po.NAME="accountLoader",Ho.__meta__={fields:{api:{inject:null},dataStore:{inject:null},settings:{inject:null},keywordWatcher:{inject:null}}},Ho.NAME="broadcast",Go.__meta__={fields:{wsApi:{inject:null},apiCaller:{inject:null},apiNote:{inject:null},settings:{inject:null},dataStore:{inject:null},dataFactory:{inject:null},fileService:{inject:null},searchService:{inject:null},lastUsedAtUpdater:{inject:null}}},Go.NAME="api",Go.API_VERSION="1.128",Go.UPDATE_VERSION="1.128_0",Go.ACTIONS_COUNT_PER_API=20,jo.__meta__={fields:{rpc:{inject:null}}},jo.NAME="apiCaller",jo.DELAY_FOR_DB_REPLICATION=500,jo.DELAY_FOR_DB_REPLICATION_FOR_RETRY=1e3,jo.API_TRY_COUNT=3,zo.__meta__={fields:{dataStore:{inject:null},settings:{inject:null},wsApi:{inject:null}}},zo.NAME="apiNote",Yo.NAME="appState",Wo.__meta__={fields:{dataStore:{inject:null}}},Wo.NAME="dataFactory",Ko.NAME="dataStore",Ko.STORAGE_KEY_FOR_GENERAL="dataStore",Ko.STORAGE_KEY_FOR_TALKS="dataStoreTalks",Ko.STORAGE_KEY_FOR_TALK_STATUSES="dataStoreTalkStatuses",Ko.STORAGE_KEY_FOR_USERS="dataStoreUsers",Ko.TYPE_FRIEND=0,Ko.TYPE_ACQUAINSTANCE=1,Ko.TYPE_NONE=2,Vo.__meta__={fields:{settings:{inject:null},dataStore:{inject:null}}},Vo.NAME="features",Qo.NAME="fileService",Xo.__meta__={fields:{settings:{inject:null}}},Jo.__meta__={fields:{settings:{inject:null},features:{inject:null},dataStore:{inject:null}}},Jo.NAME="keywordWatcher",Jo.TALK_KEY_PREFIX="talk_",Jo.ANNOUNCEMENT_KEY_PREFIX="announcement_",Zo.TEMP_HALF_SPACE="&SPACE",Zo.TEMP_FULL_SPACE="&FULL_PITCH_SPACE",ns.__meta__={fields:{settings:{inject:null}}},ns.NAME="lastUsedAtUpdater",is.__meta__={fields:{settings:{inject:null},dataStore:{inject:null}}},is.NAME="limitations",rs.__meta__={fields:{broadcast:{inject:null},lastUsedAtUpdater:{inject:null}}},rs.NAME="rpc",rs.lastMsgId=0,os.PING_INTERVAL_ON_CONNECTED=45e3,cs.__meta__={fields:{dataStore:{inject:null},api:{inject:null}}},cs.NAME="readStatusUpdater",_s.__meta__={fields:{settings:{inject:null},dataStore:{inject:null}}},_s.NAME="routing",fs.__meta__={fields:{settings:{inject:null}}},fs.NAME="searchService",fs.LOAD_SIZE=20,fs.DUMMY_VALUE_FOR_SET=1,ms.__meta__={fields:{settings:{inject:null},dataStore:{inject:null},api:{inject:null}}},ms.NAME="session",ps.NAME="settings",ps.KEY_ACCESS_TOKEN="access_token",ps.KEY_SELECTED_DOMAIN_ID_H="selected_domain_id_h",ps.KEY_SELECTED_DOMAIN_ID_L="selected_domain_id_l",ps.KEY_SELECTED_STAMP_TAB_ID="selected_stamp_tab_id",ps.KEY_INPUT_TEXT="input_text",ps.KEY_COPY_PROFILE_TO_ALL_DOMAINS="copy_profile_to_all_domains",ps.KEY_SELECTED_DEPARTMENT_IDS="selected_department_ids",ps.KEY_SEARCH_HISTORIES="search_histories",ps.KEY_MULTI_VIEW_MODE="multi_view_mode",ps.KEY_PASSWORD_WARNING_SKIP_UNTIL="password_warning_skip_until",ps.KEY_LAST_USED_EXPIRED_AT="last_used_expired_at",ps.KEY_IDFV="idfv",gs.__meta__={fields:{dataStore:{inject:null}}},gs.NAME="talksService",ys.__meta__={fields:{dataStore:{inject:null}}},ys.NAME="userPresences",Ss.__meta__={fields:{apiCaller:{inject:null}}},Ss.NAME="wsApi",p.MAX_CONTENT_BYTES=1e5,p.NOTE_EVENT_NAMES=["created","updated","deleted"],Ns.CONTENT_TYPE_XML="xml",Ns.CONTENT_TYPE_TEXT="text",Ms.NAME="Mediator",Cs.__meta__={fields:{dataStore:{inject:null},api:{inject:null},hubotObject:{inject:null},messageEvent:{inject:null},sendQueue:{inject:null}}},Cs.NAME="commandline",Cs.DATA_SAVE_SPAN=5e3,Rs.__meta__={fields:{dataStore:{inject:null}}},Rs.NAME="hubotObject",Os.__meta__={fields:{dataStore:{inject:null},hubotObject:{inject:null}}},Os.NAME="messageEvent",Fs.minWaitMinute=1,Fs.maxWaitMinute=1440,Fs.SEND_EVENT_NAME="send",xs.__meta__={fields:{messageEvent:{inject:null}}},xs.NAME="sendQueue",xs.MIN_SEND_SPAN_MESSAGE=550,xs.MIN_SEND_SPAN_ANNOUNCE=5050,xs.MAX_TEXT_LENGTH=1024,xs.MAX_FIELD_COUNT=9,xs.MAX_FIELD_LENGTH=64,Ps.INVALID_PARAMETER="INVALID_PARAMETER",Ps.FORBIDDEN="FORBIDDEN",Ps.NOT_FOUND="NOT_FOUND",Ps.LOCKED_BY_ANOTHER_USER="LOCKED_BY_ANOTHER_USER",Ps.CONFLICT="CONFLICT",Ps.TOO_MANY_REQUESTS="TOO_MANY_REQUESTS",Ps.CLIENT_UPGRADE_REQUIRED="CLIENT_UPGRADE_REQUIRED",Ps.UNKNOWN="UNKNOWN",w._mul=null!=Math.imul?Math.imul:function(e,t){return e*(65535&t)+(e*(t>>>16)<<16|0)|0},Ks.USE_CACHE=!1,Ks.USE_ENUM_INDEX=!1,Ks.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:",$s.count=0,aa.i64tmp=new E(0,0),G.__toStr={}.toString,pa.FLOAT_SINGLE_MIN=1401298464324817e-60,pa.FLOAT_SINGLE_MAX=34028234663852886e22,pa.FLOAT_DOUBLE_MIN=5e-324,pa.FLOAT_DOUBLE_MAX=17976931348623157e292,yn.main()}("undefined"!=typeof exports?exports:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this,"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this); \ No newline at end of file +!function(y,S){function a(){return G.__string_rec(this,"")}var t={};function e(e,t){function n(){}n.prototype=e;var i,r=new n;for(i in t)r[i]=t[i];return t.toString!==Object.prototype.toString&&(r.toString=t.toString),r}function v(e,t){this.r=new RegExp(e,t.split("u").join(""))}function T(){}function I(){}function N(){}function x(){}function A(){}function b(){}function M(){}function C(e){Fn.call(this,e)}function W(){}function K(){}function V(){}function q(){}function Q(){}function X(){}function J(){}function Z(){}function $(){}function ee(){}function te(){}function ne(){}function ie(){}function re(){}function oe(e,t,n){this.email=e,this.pass=t,this.accessToken=n}function ae(e){null!=e&&(this.id=e.id,this.group=new Mi(e.group),this.profilePolicy=new Ci(e.profile_policy))}function se(e){null!=e&&(this.id=e.id,null!=e.group&&(this.group=new Mi(e.group)),null!=e.profile_policy)&&(this.profilePolicy=new Ci(e.profile_policy))}function le(e){null!=e&&(this.id=D.fromIntOrInt64(e.id),this.groupName=e.group_name,this.groupOwnerName=e.group_owner_name,this.groupOwnerEmail=e.group_owner_email,this.hasDomainInvite=e.has_domain_invite,this.updatedAt=e.updated_at,this.version=e.version)}function ue(e){this.unreadCount=0,null!=e&&(this.domainId=e.domain_id,this.unreadCount=null!=e.unread_count?e.unread_count:0,this.maxAnnouncementId=e.max_announcement_id,null!=e.max_announcement&&(this.maxAnnouncement=new Ri(e.max_announcement)),this.maxReadAnnouncementId=e.max_read_announcement_id,null==this.maxReadAnnouncementId)&&0==this.unreadCount&&(this.maxReadAnnouncementId=this.maxAnnouncementId)}function ce(e){null!=e&&(this.domainId=e.domain_id,this.readAnnouncementIds=e.read_announcement_ids)}function _e(e){if(this.notificationInvisibleTalkSound=!0,this.notificationInvisibleTalkPopup=!1,this.notificationVisibleTalkSound=!1,this.notificationVisibleTalkPopup=!1,this.notificationIncludingMessageContent=!0,this.notificationPopupTime=5,this.talkAutoScroll=1,this.legacyNoteEnabled=!1,this.leaveTalksEnabled=!1,this.talksSortMode="new_messages_first",this.talkRightPanelOpened=!0,this.talkRightPanelWidth=0,this.keywordWatchingText="",this.keywordWatchingEmphasis=!1,this.keywordWatchingSelfMessage=!1,this.keywordWatchingActionReply=!1,this.userDataContainer=[],this.language="ja",this.conferenceIncomingSound=!0,this.domainsSortMode="name_order_asc",this.appLeftPanelOpened=!1,this.appLeftPanelWidth=0,this.scheduledMessageDefaultTimeStr="09:00",null!=e){var t;if(null!=e.notificationInvisibleTalkSound&&(this.notificationInvisibleTalkSound=e.notificationInvisibleTalkSound),null!=e.notificationInvisibleTalkPopup&&(this.notificationInvisibleTalkPopup=e.notificationInvisibleTalkPopup),null!=e.notificationVisibleTalkSound&&(this.notificationVisibleTalkSound=e.notificationVisibleTalkSound),null!=e.notificationVisibleTalkPopup&&(this.notificationVisibleTalkPopup=e.notificationVisibleTalkPopup),null!=e.notificationIncludingMessageContent&&(this.notificationIncludingMessageContent=e.notificationIncludingMessageContent),null!=e.notificationPopupTime&&(this.notificationPopupTime=e.notificationPopupTime),null!=e.notificationVisibleTalkAutoScroll&&(this.talkAutoScroll=e.notificationVisibleTalkAutoScroll?1:3),null!=e.talkAutoScroll&&(this.talkAutoScroll=e.talkAutoScroll),null!=e.legacyNoteEnabled&&(this.legacyNoteEnabled=e.legacyNoteEnabled),null!=e.leaveTalksEnabled&&(this.leaveTalksEnabled=e.leaveTalksEnabled),null!=e.talksSortMode&&(this.talksSortMode=e.talksSortMode),this.talkRightPanelOpened=null!=e.talkRightPanelOpened?e.talkRightPanelOpened:null==o.getItem("right_panel_opened"),null!=e.talkRightPanelWidth?this.talkRightPanelWidth=e.talkRightPanelWidth:(t=P.parseInt(o.getItem("right_panel_width")),this.talkRightPanelWidth=null==t?0:t),null!=e.keywordWatchingText&&(this.keywordWatchingText=e.keywordWatchingText),null!=e.keywordWatchingEmphasis&&(this.keywordWatchingEmphasis=e.keywordWatchingEmphasis),null!=e.keywordWatchingSelfMessage&&(this.keywordWatchingSelfMessage=e.keywordWatchingSelfMessage),null!=e.keywordWatchingActionReply&&(this.keywordWatchingActionReply=e.keywordWatchingActionReply),null!=e.userDataContainer)for(var n=0,i=G.__cast(e.userDataContainer,Array);n=e.length);){if(!this.matchSub(e,n)){i+=P.string(U.substr(e,n,null));break}var r=this.matchedPos(),i=(i+=P.string(U.substr(e,n,r.pos-n)))+P.string(t(this)),n=0==r.len?(i+=P.string(U.substr(e,r.pos,1)),r.pos+1):r.pos+r.len;if(!this.r.global)break}return!this.r.global&&0r.interval)r.basetime=n,r.count=1;else{if(!(0").join(">"),t?e.split('"').join(""").split("'").join("'"):e},I.startsWith=function(e,t){return e.length>=t.length&&U.substr(e,0,t.length)==t},I.isSpace=function(e,t){e=U.cca(e,t);return 8>>=4););if(null!=t)for(;n.lengthn;){var t=U.substr(e,0,n);i.push(t),e=U.substr(e,n,null)}0n&&(t(r),r=""),0=this.length)throw new H("Invalid object");if(103==this.buf.charCodeAt(this.pos))break;var t=this.unserialize();if("string"!=typeof t)throw new H("Invalid object key");var n=this.unserialize();e[t]=n}this.pos++},unserializeEnum:function(e,t){if(58!=this.buf.charCodeAt(this.pos++))throw new H("Invalid enum format");var n=this.readDigits();if(0==n)return x.createEnum(e,t);for(var i=[];0=this.scache.length)throw new H("Invalid string reference");return this.scache[t];case 97:this.buf;var r=[];for(this.cache.push(r);;){var o=this.buf.charCodeAt(this.pos);if(104==o){this.pos++;break}117==o?(this.pos++,o=this.readDigits(),r[r.length+o-1]=null):r.push(this.unserialize())}return r;case 98:var a=new B;for(this.cache.push(a),this.buf;104!=this.buf.charCodeAt(this.pos);){var s=this.unserialize(),l=this.unserialize();null!=Y[s]?a.setReserved(s,l):a.h[s]=l}return this.pos++,a;case 99:e=this.unserialize(),t=this.resolver.resolveClass(e);if(null==t)throw new H("Class not found "+e);e=x.createEmptyInstance(t);return this.cache.push(e),this.unserializeObject(e),e;case 100:return this.readFloat();case 102:return!1;case 105:return this.readDigits();case 106:t=this.unserialize(),e=this.resolver.resolveEnum(t);if(null==e)throw new H("Enum not found "+t);this.pos++;var u=this.readDigits(),c=e.__constructs__.slice()[u];if(null==c)throw new H("Unknown enum index "+t+"@"+u);t=this.unserializeEnum(e,c);return this.cache.push(t),t;case 107:return NaN;case 108:var _=new En;for(this.cache.push(_),this.buf;104!=this.buf.charCodeAt(this.pos);)_.add(this.unserialize());return this.pos++,_;case 109:return-1/0;case 110:return null;case 111:u={};return this.cache.push(u),this.unserializeObject(u),u;case 112:return 1/0;case 113:for(var h=new ts,d=(this.cache.push(h),this.buf,this.buf.charCodeAt(this.pos++));58==d;){var f=this.readDigits(),m=this.unserialize();h.h[f]=m,d=this.buf.charCodeAt(this.pos++)}if(104!=d)throw new H("Invalid IntMap format");return h;case 114:e=this.readDigits();if(e<0||e>=this.cache.length)throw new H("Invalid reference");return this.cache[e];case 115:var c=this.readDigits(),p=this.buf;if(58!=this.buf.charCodeAt(this.pos++)||this.length-this.pos>2)+(2<=t?t-1:0))),T=0;y>4),g[p.charCodeAt(y++)]),E=(v.b[T++]=255&(E<<4|I>>2),g[p.charCodeAt(y++)]);v.b[T++]=255&(I<<6|E)}return 2<=t&&(u=g[p.charCodeAt(y++)],e=g[p.charCodeAt(y++)],v.b[T++]=255&(u<<2|e>>4),3==t)&&(u=g[p.charCodeAt(y++)],v.b[T++]=255&(e<<4|u>>2)),this.pos+=c,this.cache.push(v),v;case 116:return!0;case 118:return 48<=this.buf.charCodeAt(this.pos)&&this.buf.charCodeAt(this.pos)<=57&&48<=this.buf.charCodeAt(this.pos+1)&&this.buf.charCodeAt(this.pos+1)<=57&&48<=this.buf.charCodeAt(this.pos+2)&&this.buf.charCodeAt(this.pos+2)<=57&&48<=this.buf.charCodeAt(this.pos+3)&&this.buf.charCodeAt(this.pos+3)<=57&&45==this.buf.charCodeAt(this.pos+4)?(w=U.strDate(U.substr(this.buf,this.pos,19)),this.pos+=19):(t=this.readFloat(),w=new Date(t)),this.cache.push(w),w;case 119:e=this.unserialize(),u=this.resolver.resolveEnum(e);if(null==u)throw new H("Enum not found "+e);c=this.unserializeEnum(u,this.unserialize());return this.cache.push(c),c;case 120:throw H.wrap(this.unserialize());case 121:t=this.readDigits();if(58!=this.buf.charCodeAt(this.pos++)||this.length-this.pos>>16,l=65535&n.low,u=n.low>>>16,c=w._mul(a,l),l=w._mul(s,l),a=w._mul(a,u),s=(w._mul(s,u)+(a>>>16)|0)+(l>>>16)|0,s=(a<<=16,w.ucompare(u=c+a|0,a)<0&&(s++,s|=0),l<<=16,w.ucompare(u=u+l|0,l)<0&&(s++,s|=0),s+(w._mul(t.low,n.high)+w._mul(t.high,n.low)|0)|0),c=new E(s,u),a=_.make(0,P.parseInt(e.charAt(o))),l=c.high+a.high|0,s=c.low+a.low|0;w.ucompare(s,c.low)<0&&(l++,l|=0);t=new E(l,s)}return t},D.getHigh=function(e){return e.high},D.getLow=function(e){return e.low},D.idStr=function(e){return"_"+e.high+"_"+e.low},D.makeFromIdStr=function(e){var t=new v("^_(-?\\d*)_(-?\\d*)$","");return t.match(e)?_.make(P.parseInt(t.matched(1)),P.parseInt(t.matched(2))):null},D.fromNullableIdStr=function(e){return null!=e?D.makeFromIdStr(e):null},D.toStr=function(e){return Va.toString(e)},D.isNeg=function(e){return e.high<0},D.add=function(e,t){var n=e.high+t.high|0,t=e.low+t.low|0;return w.ucompare(t,e.low)<0&&(n++,n|=0),new E(n,t)},D.sub=function(e,t){var n=e.high-t.high|0,i=e.low-t.low|0;return w.ucompare(e.low,t.low)<0&&(n--,n|=0),new E(n,i)},D.compare=function(e,t){var n=e.high-t.high|0;return 0==n&&(n=w.ucompare(e.low,t.low)),e.high<0?t.high<0?n:-1:0<=t.high?n:1},D.eq=function(e,t){return null!=e&&null!=t&&e.high==t.high&&e.low==t.low},D.eqOrBothNull=function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.high==t.high&&e.low==t.low},D.toFloat=function(e){var t=4294967296,n=e.high,e=e.low;return n*t+(0<=e?e:e+t)},D.idStrToInt64=function(e){e=e.split("_");return 2>31,e))},D.eqArray=function(e,t){if(e!=t){if(null==e||null==t)return!1;if(e.length!=t.length)return!1;for(var n=0,i=e.length;n>31,t);return e.filter(function(e){var t=h.map(n.userPresences.getUserPresence(e),function(e){return e.isExpired(i,r)});switch(t[1]){case 0:return t[2];case 1:return!0}})},updateIfNeedPerSub:function(n,e){for(var i=this,t=Promise.resolve([]),r=D.splitUsingMaxCount(e,100),o=0;oe.version},isStampsetEnabled:function(e){return k.has(this.allowCreateMessageStampCategories,e)},isStampCategoriesEmpty:function(){return 0==this.allowCreateMessageStampCategories.length},getCategoryIndex:function(e){return this.allowCreateMessageStampCategories.indexOf(e)},__class__:Li},(t["albero.entity.Conference"]=he).__name__=["albero","entity","Conference"],he.prototype={isIncomingExpired:function(){var e=this.createdAt,t=4294967296,n=e.high,e=e.low;return n*t+(0<=e?e:e+t)+he.INCOMING_TIME<(new Date).getTime()},isExpired:function(){var e=this.expiredAt,t=4294967296,n=e.high,e=e.low;return n*t+(0<=e?e:e+t)<(new Date).getTime()},__class__:he},function(){this.conferencesMap=new B,this.talkIdConferenceIdMap=new B}),Bi=((t["albero.entity.ConferenceStore"]=Pi).__name__=["albero","entity","ConferenceStore"],Pi.prototype={addConference:function(e){var t=e.id,t="_"+t.high+"_"+t.low,n=this.conferencesMap,n=(null!=Y[t]?n.setReserved(t,e):n.h[t]=e,e.talkId),e="_"+n.high+"_"+n.low,n=this.talkIdConferenceIdMap;null!=Y[e]?n.setReserved(e,t):n.h[e]=t},removeConference:function(e){var t=e.id,t="_"+t.high+"_"+t.low,e=(this.conferencesMap.remove(t),e.talkId),e="_"+e.high+"_"+e.low,n=this.talkIdConferenceIdMap;(null!=Y[e]?n.getReserved(e):n.h[e])==t&&this.talkIdConferenceIdMap.remove(e)},getConferences:function(){return X.toValueArray(this.conferencesMap)},getConference:function(e){var e="_"+e.high+"_"+e.low,t=this.conferencesMap;return null!=Y[e]?t.getReserved(e):t.h[e]},hasConferenceInTalk:function(e){var t;return null!=e&&(e="_"+e.high+"_"+e.low,t=this.talkIdConferenceIdMap,null!=Y[e]?t.existsReserved(e):t.h.hasOwnProperty(e))},getConferenceIdInTalk:function(e){var t;return null==e||(e="_"+e.high+"_"+e.low,t=this.talkIdConferenceIdMap,null==(t=null!=Y[e]?t.getReserved(e):t.h[e]))?null:D.makeFromIdStr(t)},getConferenceTalkIds:function(){return X.toKeyArray(this.talkIdConferenceIdMap).map(D.makeFromIdStr)},hasConference:function(){return this.talkIdConferenceIdMap.keys().hasNext()},__class__:Pi},function(e){null!=e&&(this.maxFriends=e.max_friends,this.maxTalks=e.max_talks,this.maxTalkers=e.max_talkers,this.maxMessageContentLength=e.max_message_content_length,this.botExpiredVersion=e.bot_expired_version,this.presenceExpiration=null!=e.presence_expiration?e.presence_expiration:Bi.DEFAULT_PRESENCE_EXPIRATION,this.allowAttachmentType=Di.fromInt(e.allow_attachment_type),this.imageSanitizationEnabled=!!e.image_sanitization_enabled,this.updateLastUsedAtInterval=null!=e.update_last_used_at_interval?e.update_last_used_at_interval:Bi.DEFAULT_PRESENCE_EXPIRATION)}),Hi=((t["albero.entity.Configuration"]=Bi).__name__=["albero","entity","Configuration"],Bi.prototype={__class__:Bi},function(e){this.contractConference=m.None,null!=e&&(this.id=e.contract_id,this.plan=new vr(e.plan),this.quota=new Fr(e.quota),this.solutionIds=e.solution_ids,null!=e.conference)&&(this.contractConference=m.Some(new Gi(e.conference)))}),Gi=((t["albero.entity.Contract"]=Hi).__name__=["albero","entity","Contract"],Hi.prototype={getMaxMessageContentLength:function(){return h.map(h.option(this.quota),function(e){return e.maxMessageContentLength})},getMaxTalkers:function(){return h.flatMap(h.option(this.quota),function(e){return h.option(e.maxTalkers)})},getMaxTalks:function(){return h.flatMap(h.option(this.quota),function(e){return h.option(e.maxTalks)})},isConferenceEnalbed:function(){return h.isDefined(this.contractConference)},isVideoEnalbed:function(){var e=h.map(this.contractConference,function(e){return e.videoEnabled});switch(e[1]){case 0:return e[2];case 1:return!1}},getConferenceTtl:function(){return h.map(this.contractConference,function(e){return e.ttl})},getConferenceMaxParticipants:function(){return h.map(this.contractConference,function(e){return e.maxConferenceParticipants})},isGroupConfenreceEnalbed:function(){var e=h.map(this.contractConference,function(e){return e.groupConferenceEnabled});switch(e[1]){case 0:return e[2];case 1:return!1}},isTargetOfPlanAd:function(){return null!=this.quota&&this.quota.withAd},isFreePlan:function(){return null!=this.plan&&this.plan.free},__class__:Hi},function(e){this.groupConferenceEnabled=!1,this.maxConferenceParticipants=Gi.DEFAULT_MAX_PARTICIPANTS,this.ttl=Gi.DEFAULT_TTL,this.videoEnabled=!1,null!=e&&(this.videoEnabled=e.video_enabled,this.ttl=e.ttl,this.maxConferenceParticipants=e.max_conference_participants,this.groupConferenceEnabled=e.group_conference_enabled)}),ji=((t["albero.entity.ContractConference"]=Gi).__name__=["albero","entity","ContractConference"],Gi.prototype={__class__:Gi},function(e){if(null!=e){switch(this.id=e.department_id,this.order=e.order,this.parentId=e.parent,this.nodeType=null==e.node?zi.Normal:this.parseDepartmentNodeType(e.node),this.nodeType[1]){case 0:this.name=e.name;break;case 1:this.name=ji.getLabelRoot();break;case 2:this.name=ji.getLabelFree()}this.depth=0,this.childrenIds=null,this.userCount=null,this.userIds=null,this.userCountLoading=!1}}),zi=((t["albero.entity.Department"]=ji).__name__=["albero","entity","Department"],ji.getLabelFree=function(){return c.localize("Department.label_free")},ji.getLabelRoot=function(){return c.localize("Department.label_root")},ji.prototype={addChild:function(e){null==this.childrenIds&&(this.childrenIds=[]),this.childrenIds.push(e)},isRoot:function(){return this.nodeType==zi.Root},isFree:function(){return this.nodeType==zi.Free},parseDepartmentNodeType:function(e){switch(e){case 1:return zi.Root;case 2:return zi.Free;default:return zi.Normal}},getChildIdStrList:function(){return null==this.childrenIds?[]:this.childrenIds.map(D.idStr)},__class__:ji},(t["albero.entity.DepartmentHelper"]=de).__name__=["albero","entity","DepartmentHelper"],de.getName=function(e){return null==e?null:e.name},t["albero.entity.DepartmentNodeType"]={__ename__:["albero","entity","DepartmentNodeType"],__constructs__:["Normal","Root","Free"]}),Yi=(zi.Normal=["Normal",0],zi.Normal.toString=a,(zi.Normal.__enum__=zi).Root=["Root",1],zi.Root.toString=a,(zi.Root.__enum__=zi).Free=["Free",2],zi.Free.toString=a,(zi.Free.__enum__=zi).__empty_constructs__=[zi.Normal,zi.Root,zi.Free],(t["albero.entity.DepartmentList"]=fe).__name__=["albero","entity","DepartmentList"],fe.prototype={getDepartments:function(e){return null==e?[]:e.map(function(e){return new ji(e)})},__class__:fe},function(){this.departmentMap=new B,this.rootDepartmentIdMap=new B}),Wi=((t["albero.entity.DepartmentStore"]=Yi).__name__=["albero","entity","DepartmentStore"],Yi.prototype={getDepartment:function(e){var t;return null==e?null:(e="_"+e.high+"_"+e.low,t=this.departmentMap,null!=Y[e]?t.getReserved(e):t.h[e])},setDepartment:function(e){null!=e.parentId&&null!=(t=this.getDepartment(e.parentId))&&(t.addChild(e.id),e.depth=t.depth+1);var t=e.id,t="_"+t.high+"_"+t.low,n=this.departmentMap;null!=Y[t]?n.setReserved(t,e):n.h[t]=e},clearDomainDepartment:function(e){var t=this,e="_"+e.high+"_"+e.low,n=this.rootDepartmentIdMap,n=null!=Y[e]?n.getReserved(e):n.h[e];null!=n&&(k.iter(this.getDepartmentsDescendantOrSelf(n),function(e){e=e.id;t.departmentMap.remove("_"+e.high+"_"+e.low)}),this.rootDepartmentIdMap.remove(e))},getRootDepartmentId:function(e){var e="_"+e.high+"_"+e.low,t=this.rootDepartmentIdMap;return null!=Y[e]?t.getReserved(e):t.h[e]},setRootDepartmentId:function(e,t){var e="_"+e.high+"_"+e.low,n=this.rootDepartmentIdMap;null!=Y[e]?n.setReserved(e,t):n.h[e]=t},setDepartmentUserCount:function(e){var t=this.getDepartment(e.departmentId);null!=t&&(t.userCount=e,t.userCountLoading=!1)},setUserCountLoading:function(e,t){e=this.getDepartment(e);null!=e&&(e.userCountLoading=t)},isUserCountLoadingRequired:function(e){e=this.getDepartment(e);return null==e||null==e.userCount&&!e.userCountLoading},clearDomainDepartmentUsers:function(e){e=this.getRootDepartmentId(e);return null!=e&&(k.iter(this.getDepartmentsDescendantOrSelf(e),function(e){e.userCount=null,e.userIds=null,e.userCountLoading=!1}),!0)},setDepartmentUsers:function(e,t){e=this.getDepartment(e);null!=e&&(e.userIds=t)},isInDepartment:function(e){e=this.getDepartment(e);return null!=e&&!e.isFree()},getDepartmentPath:function(e){return this.getDepartmentsAncestorOrSelf(e)},getDepartmentPathWithoutRoot:function(e){return this.getDepartmentPath(e).filter(function(e){return!e.isRoot()})},getDepartmentPathSlashSeparatedIfNeeded:function(e){return this.getDepartmentPathWithoutRoot(e).map(de.getName).filter(Ln.isNotEmpty).join("/")},getDepartmentsAncestorOrSelf:function(e){var t=[];return this._getDepartmentsAncestorOrSelf(e,t),t},_getDepartmentsAncestorOrSelf:function(e,t){e=this.getDepartment(e);null!=e&&(null!=e.parentId&&this._getDepartmentsAncestorOrSelf(e.parentId,t),t.push(e))},getDepartmentsDescendantOrSelf:function(e){var t=[];return this._getDepartmentsDescendantOrSelf(e,t),t},_getDepartmentsDescendantOrSelf:function(e,t){var n=this,e=this.getDepartment(e);null!=e&&(t.push(e),null!=e.childrenIds)&&k.iter(e.childrenIds,function(e){n._getDepartmentsDescendantOrSelf(e,t)})},__class__:Yi},(t["albero.entity.DepartmentUserCount"]=me).__name__=["albero","entity","DepartmentUserCount"],me.prototype={__class__:me},(t["albero.entity.DepartmentUserCountList"]=pe).__name__=["albero","entity","DepartmentUserCountList"],pe.prototype={getDepartmentUserCounts:function(e){return null==e?[]:e.map(function(e){return new me(e)})},__class__:pe},(t["albero.entity.DirectApp"]=ge).__name__=["albero","entity","DirectApp"],ge.prototype={getLinkFeature:function(){return k.find(this.features,function(e){return e.isLink()})},getMessageExtensionFeature:function(){return k.find(this.features,function(e){return e.isMessageMenuExtension()})},getLocalizedLabel:function(e,t){var n=this.locales,n=null!=Y[t]?n.getReserved(t):n.h[t];return null==n||null==(t=n.getResourceText(e))?"":t},__class__:ge},function(e){this.map=new B;for(var t=0,n=L.fields(e);t>t,e.high<<32-t|e.low>>>t):new E(e.high>>31,e.high>>t-32)},Me.subTimestampPart=function(e,t){var e=Me.timestamp(e),t=Me.timestamp(t),n=e.high-t.high|0,i=e.low-t.low|0;return w.ucompare(e.low,t.low)<0&&(n--,n|=0),new E(n,i)},Me.createForTest=function(e){var t=Me.TIMESTAMP_SHIFT;return 0==(t&=63)?new E(e.high,e.low):t<32?new E(e.high<>>32-t,e.low<this.content.response?this.content.options[this.content.response]:"";case 17:return[this.content.title,c.localize("MessageStringMaker.achieve"),c.localize("MessageStringMaker.remand")].join(" ");case 18:return e&&null!=this.content.done?this.content.done?c.localize("MessageStringMaker.achieve"):c.localize("MessageStringMaker.remand"):"";default:return""}},messageStringForCompactMessage:function(){switch(this.type[1]){case 1:return this.content;case 5:if(null!=this.content.text&&0>>16,s=65535&t.low,l=t.low>>>16,u=w._mul(o,s),s=w._mul(a,s),o=w._mul(o,l),a=(w._mul(a,l)+(o>>>16)|0)+(s>>>16)|0,a=(o<<=16,w.ucompare(l=u+o|0,o)<0&&(a++,a|=0),s<<=16,w.ucompare(l=l+s|0,s)<0&&(a++,a|=0),a+(w._mul(e.low,t.high)+w._mul(e.high,t.low)|0)|0),u=new E(a,l),o=_.make(0,P.parseInt(this.commonStampId.charAt(r))),s=u.high+o.high|0,a=u.low+o.low|0;w.ucompare(a,u.low)<0&&(s++,s|=0);e=new E(s,a)}return e},__class__:We},(t["albero.entity.OriginalStamp"]=Ke).__name__=["albero","entity","OriginalStamp"],Ke.__interfaces__=[Ye],Ke.fromJson=function(e){var t,n;return null==e.originalStamp||null==(e=e.originalStamp).stampsetIdStr||null==e.stampIdStr?null:(t=D.makeFromIdStr(e.stampsetIdStr),n=D.makeFromIdStr(e.stampIdStr),new Ke(t,n,e.illust))},Ke.fromPropsAndStampsetId=function(e,t){return new Ke(t,D.fromIntOrInt64(e.id),e.illust)},Ke.createKey=function(e){return"original__"+e.high+"_"+e.low},Ke.prototype={getImageUrl:function(){return this.illust},getKey:function(){return Ke.createKey(this.id)},toJson:function(){var e=this.stampsetId,t=this.id;return{originalStamp:{stampsetIdStr:"_"+e.high+"_"+e.low,stampIdStr:"_"+t.high+"_"+t.low,illust:this.illust}}},createMessage:function(e,t){var n=new O;return n.talkId=e,n.type=d.originalStamp,n.content={stampset_id:this.stampsetId,stamp_id:this.id},null!=t&&0!=t.length&&(n.content.text=t),n},__class__:Ke},function(){this.stampsetStore=new B,this.stampStore=new B,this.stampKeyCategoryIdMap=new B}),Wr=((t["albero.entity.StampStore"]=Yr).__name__=["albero","entity","StampStore"],Yr.prototype={addStampsets:function(e){for(var t=0;te.version},__class__:Ve},function(e){this.stampsetInfos=[],this.allowCreateMessageStampsetIds=[],this.version=0,null!=e&&(this.version=e.version,this.allowCreateMessageStampsetIds=e.allow_create_message_stampset_ids.map(D.fromIntOrInt64),this.stampsetInfos=this.getStampsetInfos(e.stampset_infos))}),s=((t["albero.entity.StampsetSetting"]=Kr).__name__=["albero","entity","StampsetSetting"],Kr.prototype={getStampsetInfos:function(e){return null==e?[]:e.map(function(e){return new Ve(e)})},isForwardForbidden:function(e){e=e.getContentsForOriginalStamp(),e=null==e?null:e.stampsetId;return null!=e&&!this.containSendableStampset(e)},containSendableStampset:function(t){return null!=this.allowCreateMessageStampsetIds&&k.exists(this.allowCreateMessageStampsetIds,function(e){return null!=t&&null!=e&&t.high==e.high&&t.low==e.low})},containVisibleStampset:function(t){return k.exists(this.stampsetInfos,function(e){e=e.stampsetId;return null!=t&&null!=e&&t.high==e.high&&t.low==e.low})},getSendableStampsetInfos:function(){var t=this;return null==this.stampsetInfos||null==this.allowCreateMessageStampsetIds?[]:this.stampsetInfos.filter(function(e){return t.containSendableStampset(e.stampsetId)})},isNewerThan:function(e){return this.version>e.version},updateStampsetInfo:function(t){this.stampsetInfos=this.stampsetInfos.map(function(e){return t.eqStampsetId(e)&&t.isNewerThan(e)?t:e})},deleteStampsetInfo:function(t){this.stampsetInfos=this.stampsetInfos.filter(function(e){e=e.stampsetId;return!(null!=e&&null!=t&&e.high==t.high&&e.low==t.low)}),this.allowCreateMessageStampsetIds=this.allowCreateMessageStampsetIds.filter(function(e){return!(null!=e&&null!=t&&e.high==t.high&&e.low==t.low)})},getStampsetIdsDiff:function(e){for(var t=new B,n=e.stampsetInfos.concat(this.stampsetInfos),i=0;ithis.pushNotificationSetting.version&&(this.pushNotificationSetting=Ar.createWithParams(e.type,e.version),!0)},isMessageAcceptable:function(e,t){var n;return!!this.isUnread(e.id)||(0==(n=(e=Me.subTimestampPart(this.maxReadMessageId,e.id)).high-t.high|0)&&(n=w.ucompare(e.low,t.low)),(e.high<0?t.high<0?n:-1:0<=t.high?n:1)<=0)},isUnread:function(e){var t,n;return null==this.maxReadMessageId||(0==(n=(t=this.maxReadMessageId).high-e.high|0)&&(n=w.ucompare(t.low,e.low)),(t.high<0?e.high<0?n:-1:0<=e.high?n:1)<0)},isMax:function(e){var t;return null!=this.maxMessageId&&null!=(t=this.maxMessageId)&&null!=e&&t.high==e.high&&t.low==e.low},isNewMax:function(e){var t,n;return null==this.maxMessageId||(0==(n=(t=this.maxMessageId).high-e.high|0)&&(n=w.ucompare(t.low,e.low)),(t.high<0?e.high<0?n:-1:0<=e.high?n:1)<0)},isNotificationDisabled:function(){return this.pushNotificationSetting.isDisabled()},getNotificationType:function(){return this.pushNotificationSetting.type},hasUnreadMessage:function(){return null!=this.maxMessage&&this.isUnread(this.maxMessage.id)},clearReadingMessages:function(){this.readingMessages=null},__class__:Ze},(t["albero.entity.TalkStatusHelper"]=$e).__name__=["albero","entity","TalkStatusHelper"],$e.isNotificationDisabled=function(e){return null!=e&&e.isNotificationDisabled()},$e.isFavoriteTalk=function(e){return null!=e&&null!=e.orderInFavorites},$e.isUnreadMesasgeExisted=function(e){return null!=e&&e.hasUnreadMessage()},(t["albero.entity.TalkStatusUpdate"]=et).__name__=["albero","entity","TalkStatusUpdate"],et.prototype={__class__:et},(t["albero.entity.ThumbInfo"]=tt).__name__=["albero","entity","ThumbInfo"],tt.prototype={setAuth:function(e){this.auth=e},__class__:tt},function(e){null!=e&&(this.width=e.width,this.height=e.height)}),u=((t["albero.entity.ThumbDimension"]=to).__name__=["albero","entity","ThumbDimension"],to.createWithSize=function(e,t){var n=new to;return n.width=e,n.height=t,n},to.prototype={toObject:function(){return{width:this.width,height:this.height}},__class__:to},(t["albero.entity.UpdateDomainStampSettingEvent"]=nt).__name__=["albero","entity","UpdateDomainStampSettingEvent"],nt.prototype={isValid:function(){return this.newSetting.isNewerThan(this.oldSetting)},getStampsetIdsDiff:function(){return this.oldSetting.getStampsetIdsDiff(this.newSetting)},__class__:nt},t["albero.entity.UploadUseType"]={__ename__:["albero","entity","UploadUseType"],__constructs__:["PROFILE_IMAGE","MESSAGE","TALK_ICON","THUMBNAIL","NOTE_ATTACHMENT","NOTE_THUMBNAIL","SCHEDULE_MESSAGE"]}),E=(u.PROFILE_IMAGE=["PROFILE_IMAGE",0],u.PROFILE_IMAGE.toString=a,(u.PROFILE_IMAGE.__enum__=u).MESSAGE=["MESSAGE",1],u.MESSAGE.toString=a,(u.MESSAGE.__enum__=u).TALK_ICON=["TALK_ICON",2],u.TALK_ICON.toString=a,(u.TALK_ICON.__enum__=u).THUMBNAIL=["THUMBNAIL",3],u.THUMBNAIL.toString=a,(u.THUMBNAIL.__enum__=u).NOTE_ATTACHMENT=["NOTE_ATTACHMENT",4],u.NOTE_ATTACHMENT.toString=a,(u.NOTE_ATTACHMENT.__enum__=u).NOTE_THUMBNAIL=["NOTE_THUMBNAIL",5],u.NOTE_THUMBNAIL.toString=a,(u.NOTE_THUMBNAIL.__enum__=u).SCHEDULE_MESSAGE=["SCHEDULE_MESSAGE",6],u.SCHEDULE_MESSAGE.toString=a,(u.SCHEDULE_MESSAGE.__enum__=u).__empty_constructs__=[u.PROFILE_IMAGE,u.MESSAGE,u.TALK_ICON,u.THUMBNAIL,u.NOTE_ATTACHMENT,u.NOTE_THUMBNAIL,u.SCHEDULE_MESSAGE],(t["albero.entity.UploadUseTypeHelper"]=it).__name__=["albero","entity","UploadUseTypeHelper"],it.getUseTypeInt=function(e){switch(e[1]){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 4;case 4:return 5;case 5:return 6;case 6:return 1}},(t["albero.entity.UserIdentifier"]=rt).__name__=["albero","entity","UserIdentifier"],rt.prototype={__class__:rt},function(e,t){this.high=e,this.low=t}),no=((t["haxe._Int64.___Int64"]=E).__name__=["haxe","_Int64","___Int64"],E.prototype={__class__:E},(t["albero.entity.UserPresence"]=ot).__name__=["albero","entity","UserPresence"],ot.createUserPresenceState=function(e,t){var n=t.high-e.high|0,i=t.low-e.low|0;w.ucompare(t.low,e.low)<0&&(n--,n|=0);var t=new E(n,i),e=ot.SIXTY_MINUTES,n=t.high-e.high|0;return 0==n&&(n=w.ucompare(t.low,e.low)),0<(t.high<0?e.high<0?n:-1:0<=e.high?n:1)?no.GT_60:(0==(e=t.high-(i=ot.FIFTEEN_MINUTES).high|0)&&(e=w.ucompare(t.low,i.low)),0<(t.high<0?i.high<0?e:-1:0<=i.high?e:1)?no.LT_OR_EQ_60:no.LT_OR_EQ_15)},ot.prototype={toState:function(e){var t=e,n=h.map(this.lastUsedAtOpt,function(e){return ot.createUserPresenceState(e,t)});switch(n[1]){case 0:return n[2];case 1:return no.GT_60}},isExpired:function(e,t){var n=this.lastUpdatedAt,i=e.high-n.high|0,r=e.low-n.low|0;w.ucompare(e.low,n.low)<0&&(i--,i|=0);e=new E(i,r),n=e.high-t.high|0;return 0==n&&(n=w.ucompare(e.low,t.low)),0<(e.high<0?t.high<0?n:-1:0<=t.high?n:1)},__class__:ot},t["albero.entity.UserPresenceState"]={__ename__:["albero","entity","UserPresenceState"],__constructs__:["LT_OR_EQ_15","LT_OR_EQ_60","GT_60"]}),io=(no.LT_OR_EQ_15=["LT_OR_EQ_15",0],no.LT_OR_EQ_15.toString=a,(no.LT_OR_EQ_15.__enum__=no).LT_OR_EQ_60=["LT_OR_EQ_60",1],no.LT_OR_EQ_60.toString=a,(no.LT_OR_EQ_60.__enum__=no).GT_60=["GT_60",2],no.GT_60.toString=a,(no.GT_60.__enum__=no).__empty_constructs__=[no.LT_OR_EQ_15,no.LT_OR_EQ_60,no.GT_60],(t["albero.entity.api.message.AddFavoriteMessageResult"]=at).__name__=["albero","entity","api","message","AddFavoriteMessageResult"],at.prototype={__class__:at},(t["albero.entity.api.message.DeleteFavoriteMessageResult"]=st).__name__=["albero","entity","api","message","DeleteFavoriteMessageResult"],st.prototype={__class__:st},(t["albero.entity.api.message.GetFavoriteMessagesResultWithParams"]=lt).__name__=["albero","entity","api","message","GetFavoriteMessagesResultWithParams"],lt.prototype={getNextMarker:function(){return this.nextMarker},getMessages:function(){return this.messages},__class__:lt},(t["albero.entity.api.message.GetScheduledMessagesResultWithParams"]=ut).__name__=["albero","entity","api","message","GetScheduledMessagesResultWithParams"],ut.prototype={__class__:ut},(t["albero.entity.api.message.SearchMessagesAroundDateTimeResult"]=ct).__name__=["albero","entity","api","message","SearchMessagesAroundDateTimeResult"],ct.prototype={__class__:ct},function(e){this.messageId=e.message_id,this.createdAt=e.created_at}),ro=((t["albero.entity.api.message.MessageCreatedAt"]=io).__name__=["albero","entity","api","message","MessageCreatedAt"],io.prototype={__class__:io},function(e){this.noteRaw=e}),oo=((t["albero.entity.api.note.CompressedNote"]=ro).__name__=["albero","entity","api","note","CompressedNote"],ro.prototype={uncompress:function(){var n=this,e=this.getCompressedContentRaw();return(new Z).run(e).then(function(e){var t=L.copy(n.noteRaw.note_revision),e=(t.content=e,L.copy(n.noteRaw));return e.note_revision=t,e})},getCompressedContentRaw:function(){return null==this.noteRaw||null==this.noteRaw.note_revision?null:this.noteRaw.note_revision.content},__class__:ro},(t["albero.entity.api.note.CreateNoteError"]=_t).__name__=["albero","entity","api","note","CreateNoteError"],_t.prototype={__class__:_t},(t["albero.entity.api.note.CreateNoteResult"]=ht).__name__=["albero","entity","api","note","CreateNoteResult"],ht.prototype={updateWithEmitterKey:function(e){var t=new ht;return t.note=this.note,t.emitterKey=e,t},__class__:ht},(t["albero.entity.api.note.CreateNoteResultCompressed"]=dt).__name__=["albero","entity","api","note","CreateNoteResultCompressed"],dt.prototype={uncompress:function(){return this.compressedNote.uncompress().then(function(e){return new ht(e)})},__class__:dt},(t["albero.entity.api.note.DeleteNoteResult"]=ft).__name__=["albero","entity","api","note","DeleteNoteResult"],ft.prototype={__class__:ft},(t["albero.entity.api.note.GetNoteResult"]=mt).__name__=["albero","entity","api","note","GetNoteResult"],mt.prototype={getNoteId:function(){return this.note.noteId},getNoteCreateUserId:function(){return this.note.createdBy},getRevisionCreateUserId:function(){return this.note.getRevisionCreateUserId()},getNoteCreateDate:function(){return this.note.createdAt},getRevisionCreateDate:function(){return this.note.getRevisionCreateDate()},getLockedUserIdWithoutSelf:function(e){return this.note.getLockedUserIdWithoutSelf(e)},__class__:mt},(t["albero.entity.api.note.GetNoteResultCompressed"]=pt).__name__=["albero","entity","api","note","GetNoteResultCompressed"],pt.prototype={uncompress:function(){return this.compressedNote.uncompress().then(function(e){return new mt(e)})},__class__:pt},(t["albero.entity.api.note.GetNoteStatusesResult"]=gt).__name__=["albero","entity","api","note","GetNoteStatusesResult"],gt.prototype={isNotEmptyNoteStatuses:function(){return 0=xo.HIRAGANA_SMALL_A&&a<=xo.HIRAGANA_NN&&(n=(n+=e.substring(t,o))+String.fromCharCode(a+(xo.KATAKANA_SMALL_A-xo.HIRAGANA_SMALL_A)),t=1+o)}return n+=e.substring(t,e.length)},xo.katakanaToRoman=function(e){return(new Yt).convert(e)},xo.normalize=function(e){return new Uo(null).normalize(e)},xo.normalizeForFile=function(e){return new Uo(null).normalizeForFile(e)},xo.eraseInvisible=function(e){var t=new RegExp("[\\u0000-\\u0020 ]","g".split("u").join(""));return e.replace(t,"")},function(e){this.beforeTask=null,this.beforeTask=e}),Lo=((t["albero.js.Normalizer"]=Uo).__name__=["albero","js","Normalizer"],Uo.prototype={normalize:function(e){try{return null!=this.beforeTask&&this.beforeTask(),e.normalize("NFKC")}catch(e){return e instanceof H&&(e=e.val),F.e("invalid character:",e),c.localize("TextCanonicalizer.invalid")}},normalizeForFile:function(e){try{return null!=this.beforeTask&&this.beforeTask(),e.normalize("NFC")}catch(e){return e instanceof H&&(e=e.val),F.e("invalid character:",e),c.localize("TextCanonicalizer.invalid")}},__class__:Uo},(t["albero.js.WebSocket"]=qt).__name__=["albero","js","WebSocket"],qt.prototype={__class__:qt},(t["albero.js.WebSocketFactory"]=Qt).__name__=["albero","js","WebSocketFactory"],Qt.newInstance=function(e,t){return new Lo(e,t)},function(e,t){var n=this,t=(this.onopen=t.onopen,this.onmessage=t.onmessage,this.onerror=null,this.onclose=t.onclose,this.onpong=t.onpong,qs.wsConfig),i=require("websocket").client,i=(this.ws=new i(t),this.ws.on("connectFailed",z(this,this.onError)),this.ws.on("connect",function(e){(n.connection=e).on("error",z(n,n.onError)),e.on("close",z(n,n.onConnectionClose)),e.on("message",z(n,n.onMessage)),e.on("pong",z(n,n.onPong)),n.onOpen(null)}),null);null!=qs.proxyURL&&(i={agent:Fo.createAgent(qs.proxyURL)}),this.ws.connect(e,null,null,null,i)}),Po=((t["albero.js.WebSocketForNodeJs"]=Lo).__name__=["albero","js","WebSocketForNodeJs"],Lo.__interfaces__=[qt],Lo.prototype={onOpen:function(e){F.i("WebSocket opened."),null!=this.onopen&&this.onopen()},onMessage:function(e){var t;null!=this.onmessage&&(t=null,t=this.getBinaryDataForHubot(e),this.onmessage(t))},getBinaryDataForHubot:function(e){return rs.ofData(e.binaryData)},onPong:function(e){null!=this.onpong&&this.onpong(e)},onError:function(e){F.e("WebSocket error. event:",e),null!=this.onerror&&this.onerror()},onClose:function(e){this.removeAllEventListenersForHubot(),F.i("WebSocket closed. "+P.string(e.code)+" "+P.string(e.reason)+" "+P.string(e.wasClean)),null!=this.onclose&&this.onclose(e.code,e.reason,e.wasClean)},removeAllEventListenersForHubot:function(){null!=this.ws&&(this.ws.removeAllListeners(),this.ws=null),null!=this.connection&&(this.connection.removeAllListeners(),this.connection=null)},onConnectionClose:function(e,t){this.onClose({code:e,reason:t})},close:function(){var e;this.onopen=null,this.onmessage=null,this.onerror=null,this.onclose=null,this.onpong=null,this.isClosed()||(e=this.connection,this.onConnectionClose(1e3,"Normal connection closure"),e.close())},send:function(e){this.isClosed()||this.connection.sendBytes(new gs(e.b.bufferValue))},ping:function(e){this.connection.ping(e)},isClosed:function(){return null==this.ws||null==this.connection||!this.connection.connected},__class__:Lo},(t["puremvc.interfaces.IProxy"]=Xt).__name__=["puremvc","interfaces","IProxy"],Xt.prototype={__class__:Xt},(t["albero.proxy.AccessTokenResolverProxy"]=Jt).__name__=["albero","proxy","AccessTokenResolverProxy"],Jt.__interfaces__=[Xt],Jt.prototype={__class__:Jt},function(){}),l=((t["albero.proxy.AccessTokenResolverProxyFactory"]=Po).__name__=["albero","proxy","AccessTokenResolverProxyFactory"],Po.newInstance=function(){return new Bo("accessTokenResolver")},function(e,t){Bn.call(this),this.proxyName=null!=e?e:l.NAME,null!=t&&this.setData(t)}),Bo=((t["puremvc.patterns.proxy.Proxy"]=l).__name__=["puremvc","patterns","proxy","Proxy"],l.__interfaces__=[Xt],l.__super__=Bn,l.prototype=e(Bn.prototype,{getProxyName:function(){return this.proxyName},setData:function(e){this.data=e},getData:function(){return this.data},onRegister:function(){},onRemove:function(){},__class__:l}),function(e){l.call(this,e)}),Ho=((t["albero.proxy.AccessTokenResolverProxyForDirectJsHubot"]=Bo).__name__=["albero","proxy","AccessTokenResolverProxyForDirectJsHubot"],Bo.__interfaces__=[Jt],Bo.__super__=l,Bo.prototype=e(l.prototype,{asyncGetAccessToken:function(e,t){var n=this.settings.getAccessToken();null!=n?t(n):null!=(n=null!=qs.account?qs.account.split(":"):null)&&2==n.length?this.api.createAccessToken(n[0],n[1],t):null!=(e=null==e?this.accountLoader.load():e)&&(null!=e.accessToken?(this.settings.setAccessToken(e.accessToken),t(e.accessToken)):this.api.createAccessToken(e.email,e.pass,t))},__class__:Bo}),(t["albero.proxy.AccountLoaderProxy"]=Zt).__name__=["albero","proxy","AccountLoaderProxy"],Zt.__interfaces__=[Xt],Zt.prototype={__class__:Zt},function(){}),Go=((t["albero.proxy.AccountLoaderProxyFactory"]=Ho).__name__=["albero","proxy","AccountLoaderProxyFactory"],Ho.newInstance=function(){var e=x.resolveClass("albero.debug.proxy.AccountLoaderProxyImpl");return null!=e?x.createInstance(e,["accountLoader"]):new Go("accountLoader")},function(e){l.call(this,e)}),jo=((t["albero.proxy.AccountLoaderProxyForHubot"]=Go).__name__=["albero","proxy","AccountLoaderProxyForHubot"],Go.__interfaces__=[Zt],Go.__super__=l,Go.prototype=e(l.prototype,{load:function(){var i=this,t=require("read");return t({prompt:"Email: "},function(e,n){t({prompt:"Password: ",silent:!0},function(e,t){i.sendNotification("SignIn",new oe(n,t))})}),null},__class__:Go}),function(){l.call(this,"broadcast")}),zo=((t["albero.proxy.AlberoBroadcastProxy"]=jo).__name__=["albero","proxy","AlberoBroadcastProxy"],jo.__super__=l,jo.prototype=e(l.prototype,{handleNotification:function(e,t){var n=this;switch(F.v("Receive request from server. name:",e," body:",t),e){case"notify_add_account_control_request":var i=new le(t);this.dataStore.setAccountControlRequest(i),this.sendNotification(e,i);break;case"notify_add_acquaintance":var i=new ve(t[1]);this.dataStore.addAcquaintance(i),this.sendNotification(e,i);break;case"notify_add_acquaintances":i=t[1].map(function(e){return new ve(e)});k.iter(i,z(j=this.dataStore,j.addAcquaintance)),this.api.sendAddAcquaintanceNotifications(i),this.sendNotification(e,i);break;case"notify_add_domain_invite":i=new Se(t);this.dataStore.setDomainInvite(i),this.sendNotification(e,i);break;case"notify_add_favorite_message":i=new kt(t);this.dataStore.addFavoriteMessage(i),this.sendNotification(e,i);break;case"notify_add_favorite_talk":i=new Ne(t);this.updateTalkStatusByFavoriteTalkEvent(i),this.sendNotification(e,i);break;case"notify_add_friend":i=new ve(t[1]);this.dataStore.addFriend(i),this.sendNotification(e,i);break;case"notify_add_talkers":i=new qr(t);null==this.dataStore.getTalk(i.id)&&this.sendNotification("notify_add_talkers_including_me",i),this.dataStore.setTalk(i),this.sendNotification(e,i);break;case"notify_close_conference":i=new he(t);this.dataStore.removeConference(i),this.updateTalkStatusByConferenceClosedEvent(i),this.sendNotification(e,i);break;case"notify_conference_participant_join":var i=t[3],r=t[4],o=this.dataStore;null!=o.me&&null!=(o=o.me.id)&&null!=r&&o.high==r.high&&o.low==r.low&&this.dataStore.addReactedConfereceId(i),this.sendNotification(e,t);break;case"notify_conference_participant_reject":var o=t[3];this.dataStore.addReactedConfereceId(o),this.sendNotification(e,t);break;case"notify_create_announcement":var r=new Ri(t);this.dataStore.setAnnouncement(r),this.keywordWatcher.onAnnouncementCreated(r),this.sendNotification("notify_update_announcement_status",this.newAnnouncementStatus(r)),this.sendNotification(e,r);break;case"notify_create_message":var a=new O(t),i=(this.dataStore.setMessage(a),this.keywordWatcher.onMessageCreated(a),this.newTalkStatusByMessage(a));switch(null!=i&&this.sendNotification("notify_update_local_talk_status",i),a.type[1]){case 0:var s=a.content,l=null;switch(s.type){case"delete_talker":l=s.deleted_user_id;break;case"hide_pair_talk":l=s.user_id}if(null==l)return void this.sendNotification(e,a);for(var u=a.talkId,c=this.dataStore.getQuestions(u,l),_=0;_t.favoriteVersion)&&(t.favoriteVersion=e.favoriteVersion,t.orderInFavorites=e.orderInFavorites,this.dataStore.setTalkStatus(t))},updateTalkStatusByConferenceClosedEvent:function(e){var t,n=this.dataStore.getTalkStatus(e.talkId);null!=n&&null!=n.maxMessage&&(t=n.maxMessage.id,e=e.messageId,null!=t)&&null!=e&&t.high==e.high&&t.low==e.low&&(n.maxMessage.content.closed=!0,this.dataStore.setTalkStatus(n))},updateTalkStatusByTalkPushNotificationEvent:function(e){var t=this.dataStore.getTalkStatus(e.talkId);if(null==t){var n=this.dataStore.getTalk(e.talkId);if(null==n)return void F.e("talk not found on change favorite talk.");(t=new Ze).id=e.talkId,t.talkOrderingTimestamp=n.updatedAt}t.updateByTalkPushNotificationEvent(e)&&this.dataStore.setTalkStatus(t)},newTalkStatusByTalk:function(e){var t=this.dataStore.getTalkStatus(e.id);return null==t&&((t=new Ze).id=e.id),null==t.talkOrderingTimestamp&&(t.talkOrderingTimestamp=e.updatedAt),this.dataStore.setTalkStatus(t),t},newTalkStatusByMessage:function(e){var t=this.dataStore.getTalkStatus(e.talkId),n=(null==t&&((t=new Ze).id=e.talkId),this.dataStore),i=e.userId;return n=null!=n.me&&null!=(n=n.me.id)&&null!=i&&n.high==i.high&&n.low==i.low,t.updateByMessage(e,n),this.dataStore.setTalkStatus(t),t},updateTalkStatusOnMessageDelete:function(e){var t=this.dataStore.getTalkStatus(e.talkId);return null!=t&&t.updateByMessageDeletion(e)&&this.dataStore.setTalkStatus(t),t},updateTalkStatus:function(e){var t,n=this;return k.exists(e.readUserIds,function(e){var t=n.dataStore;return null!=t.me&&null!=(t=t.me.id)&&null!=e&&t.high==e.high&&t.low==e.low})?null==(t=this.dataStore.getTalkStatus(e.talkId))?(F.e("talkStatus is not found."),null):(t.updateByMessageReadStatusesUpdate(e)&&this.dataStore.setTalkStatus(t),t):null},newAnnouncementStatus:function(e){var t=this.dataStore.getAnnouncementStatus(e.domainId);return null==t&&((t=new ue).domainId=e.domainId),t.updateByAnnouncement(e),this.dataStore.setAnnouncementStatus(t),t},assureAnnouncementStatus:function(e){var t=this.dataStore.getAnnouncementStatus(e);return null==t&&(t=ue.fromDomainId(e),this.dataStore.setAnnouncementStatus(t)),t},__class__:jo}),function(){l.call(this,"api")}),Yo=((t["albero.proxy.AlberoServiceProxy"]=zo).__name__=["albero","proxy","AlberoServiceProxy"],zo.__super__=l,zo.prototype=e(l.prototype,{getOSString:function(){return"bot"},createAccessToken:function(e,t,n){function i(e){F.v("access token:",e),o.settings.setAccessToken(e),n(e)}function r(e){o.sendNotification("Url",bi.FORWARD(g.error))}var o=this,a=e.split("$"),s=this.settings.getOs(),l=this.settings.getIDFV();(-1==e.indexOf("@")&&2==a.length?this.wsApi.createAccessTokenById(a[1],a[0],t,l,s):this.wsApi.createAccessToken(e,t,l,s)).then(i,r)},authorizeDevice:function(e,t){var n=this,i=this.settings.getIDFV();this.wsApi.authorizeDevice(e,i).then(function(e){t()},function(e){n.apiCaller.handleServerErrorDefault(e)})},createSession:function(e,n){var i=this,t=this.getOSString();this.apiCaller.onSessionClear(),this.wsApi.createSession(e,"1.128",t).then(function(e){var t=W.nowAsInt64();e.passwordExpiration.isExpired(t)?i.sendNotification("password_expiration_overed"):(e.passwordExpiration.needWarning(t,i.settings.getPasswordWarningSkipUntil())&&(i.settings.setPasswordWarningSkipUntil(W.oneDayAfterAsInt64()),i.sendNotification("password_expiration_warned")),i.apiCaller.onSessionCreated(),n(e),i.apiCaller.fireCallbacksWaitingForSession())},function(e){if(null!=e){if(401==e.code&&"expired password"==e.message)return void i.sendNotification("password_expiration_overed");if(401==e.code&&"deleted account"==e.message)return void i.sendNotification("SignOut");if(401==e.code&&"unauthorized device"==e.message)return void i.sendNotification("Device",Kn.AUTHORIZE);(400==e.code&&"older version specified"==e.message||401==e.code&&"bad token"==e.message||401==e.code&&"invalid token"==e.message)&&i.settings.clearAccessToken(),i.apiCaller.handleServerErrorDefault(e)}i.sendNotification("Url",bi.FORWARD(g.error))})},startNotification:function(){var t=this;this.wsApi.startNotification().then(function(e){e||(t.dataStore.clear(!0),t.sendNotification("start_notification_failed"))},function(e){t.apiCaller.handleServerErrorDefault(e)})},resetNotification:function(e){var t=this;this.wsApi.resetNotification().then(e,function(e){t.apiCaller.handleServerErrorDefault(e)})},sendDomainNotifications:function(e){for(var t=0;t=n.length||(e=n[i],r=t.id,o=this.dataFactory.newDummyMessage(r,e.type,e.content),this.sendNotification("create_message_start",o),this.wsApi.createMessage(r,e.type,e.content).then(function(e){a.dataStore.setMessage(e),a.sendNotification("create_message_complete",[e,o.id]),a.forwardMessages(t,n,i+1),a.dataStore.removeMessage(o.id)},function(e){var t;a.sendNotification("create_message_fail",[e,o]),null!=e&&409==e.code?(t=_a.toLocalError(R.SendingMessageConflicted,e),a.sendNotification("error_occurred",t)):a.sendNotification("error_occurred",e)}))},deleteMessage:function(e,t){var n=this;this.wsApi.deleteMessage(e,t).then(function(e){},function(e){var t;null!=e&&((403!=e.code||"frozen domain"!=e.message)&&409==e.code&&"conflict"==e.message?(t=_a.toLocalError(R.DeletingMessageConflicted,e),n.sendNotification("error_occurred",t)):n.sendNotification("error_occurred",e))})},updateReadStatuses:function(n,i){var r=this;this.wsApi.updateReadStatuses(n,i).then(function(e){var t=r.dataStore.getTalkStatus(n);null!=t&&(t.updateByReadingMessagesFinished(i),r.sendNotification("notify_update_local_talk_status",t))},function(e){var t=r.dataStore.getTalkStatus(n);null!=t&&(t.updateByReadingMessagesCanceled(i),r.dataStore.setTalkStatus(t),r.sendNotification("notify_update_local_talk_status",t)),r.apiCaller.handleServerErrorDefault(e)})},searchMessagesAroundDateTime:function(e,t){return this.wsApi.searchMessagesAroundDateTime(e,t)},uploadV2:function(e,t,n,i){var r=this,o=Mt.toFileInfoDynamic(n),a=this.dataFactory.newDummyMessage(t,d.file,o);this.sendNotification("create_message_start",a),this.prepareMessageFileAsync(n,e,!1).then(function(e){r._createMessage(t,d.file,e,a,i).catch(function(e){})},function(e){r.sendNotification("create_message_fail",[e,a],i)})},uploadForHubot:function(e,t,n){var i,r=this.dataStore.getTalk(e),t={file:t,thumb:null};null==r?(i=Mt.toFileInfoDynamic(t),e=this.dataFactory.newDummyMessage(e,d.file,i),F.w("WARNING method: upload",i={code:400,message:"invalid talk_id (deleted talk)"}),this.sendNotification("create_message_fail",[i,e],n)):this.uploadV2(r.domainId,r.id,t,n)},uploadMultiV2:function(e,t,n,i,r){var o=this,a=Mt.toFileInfoDynamicArray(i),s=this.dataFactory.newDummyMessage(t,d.textMultipleFile,{text:n,files:a});this.sendNotification("create_message_start",s),this.prepareMessageFilesAsync(e,n,i,!1).then(function(e){o._createMessage(t,d.textMultipleFile,e,s,r).catch(function(e){})},function(e){o.sendNotification("create_message_fail",[e,s],r)})},uploadMultiForHubot:function(e,t,n,i){var r,o=this.dataStore.getTalk(e),n=n.map(function(e){return{file:e,thumb:null}});null==o?(r=Mt.toFileInfoDynamicArray(n),e=this.dataFactory.newDummyMessage(e,d.textMultipleFile,{text:t,files:r}),F.w("WARNING method: uploadMulti",r={code:400,message:"invalid talk_id (deleted talk)"}),this.sendNotification("create_message_fail",[r,e],i)):this.uploadMultiV2(o.domainId,o.id,t,n,i)},validateFileName:function(t){var n=I.replace(t.name,"$","__");if(n==t.name)return t;try{return t.name=n,t}catch(e){var i=t.slice(0,t.size,t.type);return new File([i],n,{type:t.type})}},prepareMessageFilesAsync:function(n,t,i,r){for(var o=this,e=Promise.resolve([]),a=0;ae.version?n:(n=this.accountControlRequests,null!=Y[t]?n.setReserved(t,e):n.h[t]=e,this.storage.setDirtyFlag(),e)},removeAccountControlRequest:function(e){e="_"+e.high+"_"+e.low;this.accountControlRequests.remove(e),this.storage.setDirtyFlag()},removeAccountControlRequests:function(){this.accountControlRequests=new B,this.storage.setDirtyFlag()},getAccountControlGroup:function(){return this.accountControlGroup},setAccountControlGroup:function(e){return this.accountControlGroup=e,this.storage.setDirtyFlag(),this.accountControlGroup},updateAccountControlGroup:function(e){var t,n,i;null!=this.accountControlGroup&&(n=this.accountControlGroup.id,t=e.id,null!=n)&&null!=t&&n.high==t.high&&n.low==t.low&&(null!=(n=e.group)&&this.accountControlGroup.group.versionr[a])return!0;if(o[a]p.MAX_CONTENT_BYTES?{ok:!1,errorType:"limit",message:"Content length must be less than or equal to "+p.MAX_CONTENT_BYTES+" bytes, but the actual length is "+e.length+" bytes."}:Qs.validateXml(e)},p.hasPathField=function(e){return k.foreach(e,function(e){return!p.isStringNullOrEmpty(e.path)})},p.validateUpdateNoteInput=function(e,t){if(0==Object.keys(e).length)return $a.Left("'update' function must not be called with no update fields.");if(null!=e.note_title){if("string"!=typeof e.note_title)return $a.Left("'note_title' must be specified as String type.");if(0==e.note_title.length)return $a.Left("'note_title' must not be empty.")}if(null!=e.note_content_type)return $a.Left("'note_content_type' must not be specified. It cannot be changed.");if(null!=e.note_content){if("string"!=typeof e.note_content)return $a.Left("'note_content' must be specified as String type.");if(0==e.note_content.length)return $a.Left("'note_content' must not be empty.");if(t==yo.getValue(go.RICH_TEXT)){t=p.validateXmlContent(e);if(0===t[1])return $a.Left(t[2])}}t=null;if(null!=e.note_attachments){if(!(e.note_attachments instanceof Array&&null==e.note_attachments.__enum__&&p.all(e.note_attachments,p.isValidAsAttachment)))return $a.Left("'note_attachments' is an invalid value: "+JSON.stringify(e.note_attachments));t=p.toUpdateNoteAttachmentArray(e.note_attachments)}return $a.Right({title:e.note_title,content:e.note_content,attachments:t})},p.isValidAsAttachment=function(e){return p.isStringNullOrEmpty(e.url)?!p.isStringNullOrEmpty(e.path):!p.isStringNullOrEmpty(e.id)&&!p.isStringNullOrEmpty(e.name)&&null!=e.content_size&&!p.isStringNullOrEmpty(e.content_type)},p.toUpdateNoteAttachmentArray=function(e){var n=ja.parseInt64;return k.array(k.map(e,function(e){var t;return p.isStringNullOrEmpty(e.url)?Ea.LocalFileAttachment(e):((t=null==e?null:JSON.parse(JSON.stringify(e))).id=n(e.id),Ea.RemoteFileAttachment(t))}))},p.validateUpdateNoteOptions=function(e){var t={notify_talk_members_of_update:!0};if(null!=e&&null!=e.notify_talk_members_of_update){if("boolean"!=typeof e.notify_talk_members_of_update)return $a.Left("'notify_talk_members_of_update' must be of Bool type.");t.notify_talk_members_of_update=e.notify_talk_members_of_update}return $a.Right(t)},p.all=function(e,t){return k.foreach(e,t)},p.isStringNullOrEmpty=function(e){return null==e||0==e.length},p.prototype={__class__:p},(t["albero_cli.INotes"]=tn).__name__=["albero_cli","INotes"],tn.prototype={__class__:tn},function(e,t){this.delegate=e;e=null!=t?t:{max:24,interval:12e4};this.ratelimit=new Mn(e.max,e.interval)}),Na=((t["albero_cli.LimitedNotes"]=wa).__name__=["albero_cli","LimitedNotes"],wa.__interfaces__=[tn],wa.prototype={limit:function(e){return this.ratelimit.apply(e)},get:function(e){var t=this;return this.limit(function(){return t.delegate.get(e)})},update:function(e,t,n){var i=this;return this.limit(function(){return i.delegate.update(e,t,n)})},delete:function(e){var t=this;return this.limit(function(){return t.delegate.delete(e)})},validateXml:function(e){return this.delegate.validateXml(e)},on:function(e,t){return this.delegate.on(e,t)},off:function(e,t){return this.delegate.off(e,t)},__class__:wa},function(e,t,n){this.utils=e,this.api=t,this.fileService=n}),Aa=((t["albero_cli.Notes"]=Na).__name__=["albero_cli","Notes"],Na.__interfaces__=[tn],Na.prototype={toNoteId:function(e){return new So(this.utils.parseInt64(e.id))},handleResponse:function(n,i,r){return function(e,t){null!=e?(e=Ha.of(e),i(e)):(e=r(t),n(e))}},get:function(e){var i=this,r=this.toNoteId(e);return new Promise(function(e,t){var n=i.api,e=i.handleResponse(e,t,Wa.of);n.getNote(r,e)})},update:function(e,t,n){var i=p.validateUpdateNoteInput(t,e.noteRevision.contentType);switch(i[1]){case 0:return Promise.reject(Ha.createInvalidParameterError(i[2]));case 1:var r=i[2],o=p.validateUpdateNoteOptions(n);switch(o[1]){case 0:return Promise.reject(Ha.createInvalidParameterError(o[2]));case 1:return this.updateNote(e,r,o[2])}}},delete:function(e){var i=this,r=this.toNoteId(e);return new Promise(function(e,t){var n=i.api,e=i.handleResponse(e,t,Ya.of);n.deleteNote(r,e)})},updateNote:function(e,t,n){var r=this,i=e.talkId_i64,o=new So(e.id_i64),a=this.mergeNoteObject(e,t),s=this.createNoteLocalEdit(i,o,a,null),l=n.notify_talk_members_of_update;return new Promise(function(e,t){var n=r.api,i=a.currentRevision,e=r.handleResponse(e,t,Ka.of);n.updateNoteV2(o,i,s,l,e)})},mergeNoteObject:function(e,t){e={title:e.noteRevision.title,contentType:e.noteRevision.contentType,content:e.noteRevision.contentText,attachments:p.toUpdateNoteAttachmentArray(e.get_attachments()),currentRevision:e.noteRevision.revision};return null!=t.title&&(e.title=t.title),null!=t.content&&(e.content=t.content),null!=t.attachments&&(e.attachments=t.attachments),e},createNoteLocalEdit:function(e,t,n,i){var r=this.createNoteAttachmentFileInfoList(n.attachments),o=n.contentType==yo.getValue(go.RICH_TEXT);return new vo(e,t,n.title,n.content,r,i,null,o)},createNoteAttachmentFileInfoList:function(e){for(var t=[],n=0;n>>31,t.low<<1);if(s=new E(s.high<<1|s.low>>>31,s.low<<1),0<=l)break}for(;;){var u=new E(0,0);if(s.high==u.high&&s.low==u.low)break;var c,u=w.ucompare(n.high,t.high);0<=(0!=u?u:w.ucompare(n.low,t.low))&&(a=new E(a.high|s.high,a.low|s.low),u=n.high-t.high|0,c=n.low-t.low|0,w.ucompare(n.low,t.low)<0&&(u--,u|=0),n=new E(u,c)),s=new E(s.high>>>1,s.high<<31|s.low>>>1);t=new E(t.high>>>1,t.high<<31|t.low>>>1)}return i&&(o=~a.high,0==(r=-a.low)&&(o++,o|=0),a=new E(o,r)),e.high<0&&(i=~n.high,0==(o=-n.low)&&(i++,i|=0),n=new E(i,o)),{quotient:a,modulus:n}},function(){}),Qa=((t["haxe.Int64Helper"]=qa).__name__=["haxe","Int64Helper"],qa.parseString=function(e){for(var t=new E(0,10),n=new E(0,0),i=new E(0,1),r=!1,o=I.trim(e),a=("-"==o.charAt(0)&&(r=!0,o=o.substring(1,o.length)),o.length),s=0,l=a;s>31,u);if(r){var c=65535&i.low,_=i.low>>>16,h=65535&u.low,d=u.low>>>16,f=w._mul(c,h),h=w._mul(_,h),c=w._mul(c,d),_=(w._mul(_,d)+(c>>>16)|0)+(h>>>16)|0,f=(c<<=16,w.ucompare(d=f+c|0,c)<0&&(_++,_|=0),h<<=16,w.ucompare(d=d+h|0,h)<0&&(_++,_|=0),_=_+(w._mul(i.low,u.high)+w._mul(i.high,u.low)|0)|0,new E(_,d)),c=n.high-f.high|0,h=n.low-f.low|0;if(w.ucompare(n.low,f.low)<0&&(c--,c|=0),!((n=new E(c,h)).high<0))throw new H("NumberFormatError: Underflow")}else{var _=65535&i.low,d=i.low>>>16,f=65535&u.low,c=u.low>>>16,h=w._mul(_,f),m=w._mul(d,f),p=w._mul(_,c),g=(w._mul(d,c)+(p>>>16)|0)+(m>>>16)|0,p=(p<<=16,w.ucompare(y=h+p|0,p)<0&&(g++,g|=0),m<<=16,w.ucompare(y=y+m|0,m)<0&&(g++,g|=0),g=g+(w._mul(i.low,u.high)+w._mul(i.high,u.low)|0)|0,new E(g,y)),m=n.high+p.high|0,u=n.low+p.low|0;if(w.ucompare(u,n.low)<0&&(m++,m|=0),(n=new E(m,u)).high<0)throw new H("NumberFormatError: Overflow")}var g=65535&i.low,y=i.low>>>16,p=65535&t.low,m=t.low>>>16,u=w._mul(g,p),S=w._mul(y,p),v=w._mul(g,m),T=(w._mul(y,m)+(v>>>16)|0)+(S>>>16)|0,T=(v<<=16,w.ucompare(u=u+v|0,v)<0&&(T++,T|=0),S<<=16,w.ucompare(u=u+S|0,S)<0&&(T++,T|=0),T+(w._mul(i.low,t.high)+w._mul(i.high,t.low)|0)|0),i=new E(T,u)}return n},function(){this.buf=new Cn,this.cache=[],this.useCache=Qa.USE_CACHE,this.useEnumIndex=Qa.USE_ENUM_INDEX,this.shash=new B,this.scount=0}),Xa=((t["haxe.Serializer"]=Qa).__name__=["haxe","Serializer"],Qa.run=function(e){var t=new Qa;return t.serialize(e),t.toString()},Qa.prototype={toString:function(){return this.buf.b},serializeString:function(e){var t,n=this.shash,n=null!=Y[e]?n.getReserved(e):n.h[e];null!=n?(this.buf.b+="R",this.buf.b+=null==n?"null":""+n):(n=this.shash,t=this.scount++,null!=Y[e]?n.setReserved(e,t):n.h[e]=t,this.buf.b+="y",e=encodeURIComponent(e),this.buf.b+=P.string(e.length),this.buf.b+=":",this.buf.b+=null==e?"null":""+e)},serializeRef:function(e){for(var t=typeof e,n=0,i=this.cache.length;n>2]),this.buf.b+=String.fromCharCode(N[63&(C<<4|k>>4)]),this.buf.b+=String.fromCharCode(N[63&(k<<2|D>>6)]),this.buf.b+=String.fromCharCode(N[63&D])}E==w?(l=I.b[E++],T=I.b[E++],this.buf.b+=String.fromCharCode(N[l>>2]),this.buf.b+=String.fromCharCode(N[63&(l<<4|T>>4)]),this.buf.b+=String.fromCharCode(N[T<<2&63])):E==1+w&&(l=I.b[E++],this.buf.b+=String.fromCharCode(N[l>>2]),this.buf.b+=String.fromCharCode(N[l<<4&63]));break;default:this.useCache&&this.cache.pop(),null!=e.hxSerialize?(this.buf.b+="C",this.serializeString(x.getClassName(i)),this.useCache&&this.cache.push(e),e.hxSerialize(this),this.buf.b+="g"):(this.buf.b+="c",this.serializeString(x.getClassName(i)),this.useCache&&this.cache.push(e),this.serializeFields(e))}break;case 7:n=t[2];if(this.useCache){if(this.serializeRef(e))return;this.cache.pop()}this.buf.b+=P.string(this.useEnumIndex?"j":"w"),this.serializeString(x.getEnumName(n)),this.useEnumIndex?(this.buf.b+=":",this.buf.b+=P.string(e[1])):this.serializeString(e[0]),this.buf.b+=":";for(var n=e.length,R=(this.buf.b+=P.string(n-2),2),O=n;R=(null==(r=e.right)?0:r._height)?new Za(e.left,e.key,e.value,new Za(e.right,t,n,i)):new Za(new Za(e.left,e.key,e.value,e.right.left),e.right.key,e.right.value,new Za(e.right.right,t,n,i)):o+2(null==(r=i.left)?0:r._height)?new Za(new Za(e,t,n,i.left),i.key,i.value,i.right):new Za(new Za(e,t,n,i.left.left),i.left.key,i.left.value,new Za(i.left.right,i.key,i.value,i.right)):new Za(e,t,n,i,(a(null==t?0:t._height)?null==(n=this.left)?0:n._height:null==(i=this.right)?0:i._height,this._height=e+1):this._height=r}),$a=((t["haxe.ds.TreeNode"]=Za).__name__=["haxe","ds","TreeNode"],Za.prototype={__class__:Za},t["haxe.ds.Either"]={__ename__:["haxe","ds","Either"],__constructs__:["Left","Right"]}),es=($a.Left=function(e){e=["Left",0,e];return e.__enum__=$a,e.toString=a,e},$a.Right=function(e){e=["Right",1,e];return e.__enum__=$a,e.toString=a,e},$a.__empty_constructs__=[],function(){Ja.call(this)}),ts=((t["haxe.ds.EnumValueMap"]=es).__name__=["haxe","ds","EnumValueMap"],es.__interfaces__=[_n],es.__super__=Ja,es.prototype=e(Ja.prototype,{compare:function(e,t){var n=e[1]-t[1];return 0!=n?n:(n=e.slice(2),e=t.slice(2),0==n.length&&0==e.length?0:this.compareArgs(n,e))},compareArgs:function(e,t){var n=e.length-t.length;if(0!=n)return n;for(var i=0,r=e.length;i>6):(i<=65535?t.push(224|i>>12):(t.push(240|i>>18),t.push(128|i>>12&63)),t.push(128|i>>6&63)),t.push(128|63&i))}return new rs(new Uint8Array(t).buffer)},rs.ofData=function(e){var t=e.hxBytes;return null!=t?t:new rs(e)},rs.fastGet=function(e,t){return e.bytes[t]},rs.prototype={getString:function(e,t){if(e<0||t<0||e+t>this.length)throw new H(us.OutsideBounds);for(var n="",i=this.b,r=String.fromCharCode,o=e,a=e+t;o>10)))+r(1023&s|56320)}return n},toString:function(){return this.getString(0,this.length)},__class__:rs},function(){this.b=[]}),as=((t["haxe.io.BytesBuffer"]=os).__name__=["haxe","io","BytesBuffer"],os.prototype={getBytes:function(){var e=new rs(new Uint8Array(this.b).buffer);return this.b=null,e},__class__:os},(t["haxe.io.Input"]=hn).__name__=["haxe","io","Input"],hn.prototype={readByte:function(){throw new H("Not implemented")},readBytes:function(e,t,n){var i=n,r=e.b;if(t<0||n<0||e.lengthe.length)throw new H(us.OutsideBounds);this.b=e.b,this.pos=t,this.len=n,this.totlen=n}),ss=((t["haxe.io.BytesInput"]=as).__name__=["haxe","io","BytesInput"],as.__super__=hn,as.prototype=e(hn.prototype,{readByte:function(){if(0==this.len)throw new H(new ls);return this.len--,this.b[this.pos++]},readBytes:function(e,t,n){if(t<0||n<0||t+n>e.length)throw new H(us.OutsideBounds);if(0==this.len&&0e.length)throw new H(us.OutsideBounds);for(var i=e.b,r=n;0>8),this.writeByte(255&e)):(this.writeByte(255&e),this.writeByte(e>>8))},writeInt32:function(e){this.bigEndian?(this.writeByte(e>>>24),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)):(this.writeByte(255&e),this.writeByte(e>>8&255),this.writeByte(e>>16&255),this.writeByte(e>>>24))},__class__:dn},function(){this.b=new os}),ls=((t["haxe.io.BytesOutput"]=ss).__name__=["haxe","io","BytesOutput"],ss.__super__=dn,ss.prototype=e(dn.prototype,{writeByte:function(e){this.b.b.push(e)},writeBytes:function(e,t,n){var i=this.b;if(t<0||n<0||t+n>e.length)throw new H(us.OutsideBounds);i.b;for(var r=e.b,o=t,a=t+n;o>>23&255,n=8388607&e;return 0==n&&0==t?0:(1-(e>>>31<<1))*(1+Math.pow(2,-23)*n)*Math.pow(2,t-127)},cs.floatToI32=function(e){var t,n;return 0==e?0:(n=e<0?-e:e,(t=Math.floor(Math.log(n)/.6931471805599453))<-127?t=-127:128>20&2047)-1023,e=4294967296*(1048575&t)+2147483648*(e>>>31)+(2147483647&e);return 0==e&&-1023==n?0:(1-(t>>>31<<1))*(1+Math.pow(2,-52)*e)*Math.pow(2,n)},cs.doubleToI64=function(e){var t,n,i,r=cs.i64tmp;return 0==e?(r.low=0,r.high=0):isFinite(e)?(n=e<0?-e:e,t=Math.floor(Math.log(n)/.6931471805599453),i=(n=Math.round(4503599627370496*(n/Math.pow(2,t)-1)))/4294967296|0,r.low=0|n,r.high=(e<0?-2147483648:0)|t+1023<<20|i):0";var n=typeof e;switch(n="function"==n&&(e.__name__||e.__ename__)?"object":n){case"function":return"";case"object":if(e instanceof Array){if(e.__enum__){if(2==e.length)return e[0];for(var i=e[0]+"(",r=(t+="\t",2),o=e.length;r{for(var n in t)bs(e,n,{get:t[n],enumerable:!0})})(y={},{codePointCount:()=>Rs,extractMentionParts:()=>Ps,findMentionSuggestionHint:()=>Hs,hasMentionPartForMeOrAll:()=>Fs,invalidateManualMentionMarkup:()=>Us,parseMessageMention:()=>Ls,removeMentionMarkup:()=>xs}),Ds=e=>Array.from(e),Rs=e=>Ds(e).length,Os=/{@:(ALL|\d+),(\d+)}@/g,Fs=e=>Ps(e).some(({userIdNumStr:e})=>null===e||"ALL"===e),xs=t=>Ls(t).map(e=>"mention"===e.type?e.mentionText:"normal"===e.type?t.substring(e.start,e.end):"").join(""),Us=e=>e.replace(Os,e=>e.substring(0,e.length-1)+" "),Ls=e=>{let n=0;var t=Ps(e).flatMap(e=>{var t=[];return n!==e.start&&t.push({type:"normal",start:n,end:e.start}),t.push(e),n=e.end,t});return e.length!==n&&t.push({type:"normal",start:n,end:e.length}),t},Ps=o=>{let a=0;return Array.from(o.matchAll(Os)).flatMap(e=>{var t,n,i,r=null!=(r=e.index)?r:0;return r{e=e.match(Bs);return null===e?null:{prev:e[1],atMarks:e[2],keyword:e[3]}},y=y,((t,n,i,r)=>{if(n&&"object"==typeof n||"function"==typeof n)for(let e of Cs(n))ks.call(t,e)||e===i||bs(t,e,{get:()=>n[e],enumerable:!(r=Ms(n,e))||r.enumerable});return t})(bs({},"__esModule",{value:!0}),y)),$n.exports),js=((String.prototype.__class__=t.String=String).__name__=["String"],(t.Array=Array).__name__=["Array"],(Date.prototype.__class__=t.Date=Date).__name__=["Date"],t.Int={__name__:["Int"]}),zs=t.Dynamic={__name__:["Dynamic"]},Ys=t.Float=Number,Ws=(Ys.__name__=["Float"],t.Bool=Boolean),Ks=(Ws.__ename__=["Bool"],t.Class={__name__:["Class"]}),Vs={},qs={},y={},Qs=(y.exports=(()=>{var e=require("fs");let r=require("libxmljs");var t=require("path");let n=e=>e.namespace()?.href()??"",a=e=>`{${n(e)}}`+e.name();t=t.resolve(__dirname,"./note-richtext.v1.xsd"),e=r.parseXml(e.readFileSync(t,{encoding:"utf-8"}),{baseUrl:t});let i=new Map;function o(e){var t=Number(e.root().getAttribute("version")?.value()),n=i.get(t);return n?e.validate(n)?{ok:!0}:{ok:!1,errorType:"xsd",message:e.validationErrors.map(e=>e.message.trim()).join(" ")}:{ok:!1,errorType:"version",message:`The note version ${t} is not supported by this package. Please use one of the following values: `+Array.from(i.keys()).join(",")}}i.set(1,e);let s=new Map;function l(e){try{return function n(e,i,r){for(var o of e.childNodes())if("element"===o.type()){if(!i.includes(o.name()))throw new Error(`Element '${a(o)}': This element is not allowed at '${o.path()}'.`);{let t=r.get(o.name())??[],e=[...i].filter(e=>t.includes(e))??[];n(o,e,r)}}}(e.root(),s.get(e.root().name()),s),{ok:!0}}catch(e){return{ok:!1,errorType:"descendant",message:e.message}}}s.set("note",["textsize","color","b","link","u","strike","checkbox"]),s.set("textsize",["color","b","link","u","strike"]),s.set("color",["textsize","b","link","u","strike"]),s.set("b",["textsize","color","link","u","strike"]),s.set("link",["textsize","b","strike"]),s.set("u",["textsize","color","b","link","strike"]),s.set("strike",["textsize","color","b","link","u"]),s.set("checkbox",["color","b","link","u","strike"]);let u=e=>"element"===e.type(),c=e=>"element"===e.type()&&"checkbox"===e.name(),_=e=>"element"===e.type()&&"link"===e.name(),h=e=>"element"===e.type()&&["textsize","color","b","link","u","strike"].includes(e.name());function d(e,t,n,i){for(var r of e.childNodes())t(r)&&(n(r)&&i.push(r),d(r,t,n,i))}function f(e){var t=[];d(e.root(),u,_,t);try{for(var n of t){var i=n.text();if(null==i||""===i)throw new Error(`Element '${a(n)}': This element must not be empty. (element path: ${n.path()})`);if(/\r|\n/.test(i))throw new Error(`Element '${a(n)}': This element must not contain a new line. (element path: ${n.path()})`);var r=n.attrs().filter(e=>"url"===e.name())[0].value();if(!/^[\x20-\x7E]+$/.test(r))throw new Error(`Element '${a(n)}': The attribute 'url' must be URL-encoded or must be converted by Punycode if it's an IDN. (element path: ${n.path()})`)}return{ok:!0}}catch(e){return{ok:!1,errorType:"link",message:e.message}}}function m(e){var t=[];d(e.root(),u,c,t);try{for(var n of t)if(/\r|\n/.test(n.text()))throw new Error(`Element '${a(n)}': This element must not contain a new line. (element path: ${n.path()})`);return{ok:!0}}catch(e){return{ok:!1,errorType:"checkbox",message:e.message}}}function p(e){var t=[];d(e.root(),u,h,t);try{for(var n of t){var i=n.text();if(null==i||""===i)throw new Error(`Element '${a(n)}': This element must not be empty. (element path: ${n.path()})`)}return{ok:!0}}catch(e){return{ok:!1,errorType:"text-decorator",message:e.message}}}return{validateXml:function(e){let t;try{t=r.parseXml(e).doc()}catch(e){return{ok:!1,errorType:"parse",message:e.message}}let n={ok:!0};var i;for(i of[o,l,f,m,p])if(!(n=i(t)).ok)break;return n}}})(),y.exports),Y={};i.APP_STATE_CHANGED="app_state_changed",i.ACCESS_TOKEN_CHANGED="access_token_changed",i.CURRENT_USER_CHANGED="current_user_changed",i.CONFIGURATION_CHANGED="configuration_changed",i.DOMAIN_SELECTION_CHANGED="domain_selection_changed",i.TALK_SELECTION_CHANGED="talk_selection_changed",i.TALK_LIST_SCROLL_TO_TALK_TOP_NEEDED="talk_list_scroll_to_talk_top_needed",i.USER_SELECTION_NEEDED="user_selection_needed",i.USER_SELECTION_CHANGED="user_selection_changed",i.FRIEND_SELECTION_NEEDED="friend_selection_needed",i.COMMON_STAMP_SET_LOADED="common_stamp_set_loaded",i.STAMP_SELECTION_STARTED="stamp_selection_started",i.STAMP_SELECTION_ENDED="stamp_selection_ended",i.STAMP_SELECTION_CHANGED="stamp_selection_changed",i.ACTION_SELECTION_CHANGED="action_selection_changed",i.CURRENT_PAGE_CHANGED="current_page_changed",i.CURRENT_PAGE_REASSIGNED="current_page_reassgined",i.FILEINFO_SELECTION_CHANGED="fileinfo_selection_changed",i.NOTE_FILEINFO_SELECTION_CHANGED="note_fileinfo_selection_changed",i.MESSAGE_FILEINFO_SELECTION_CHANGED="message_fileinfo_selection_changed",i.STAGED_FILEINFO_SELECTION_CHANGED="staged_fileinfo_selection_changed",i.STAGED_FILEINFOS_ADDED="staged_fileinfos_added",i.STAGED_FILEINFOS_MOVED="staged_fileinfos_moved",i.CLOSE_FILEPREVIEW_MODAL="close_filepreview_modal",i.ERROR_OCCURRED="error_occurred",i.UNREAD_COUNT_CHANGED="brand_badge_changed",i.SEND_FORM_TOP_CHANGED="send_form_top_changed",i.SOLUTIONS_LOADED="solutions_loaded",i.RIGHT_PANE_OPENED="right_pane_opened",i.RIGHT_PANE_CLOSED="right_pane_closed",i.PASSWORD_EXPIRATION_OVERED="password_expiration_overed",i.PASSWORD_EXPIRATION_WARNED="password_expiration_warned",i.PHOTO_EDITOR_SAVED="photo_editor_saved",i.ICON_EDITOR_SAVED="icon_editor_saved",i.MC_AUTHENTICATED_USER_RECEIVED="mc_authenticated_user_received",i.KEYWORD_WATCHING_UPDATED="keyword_watching_updated",i.KEYWORD_DETECTION_UPDATED="keyword_detaction_updated",i.DEPARTMENT_SELECTION_CHANGED_FOR_MEMBERS_PAGE="department_selection_changed_for_members_page",i.PRESENCES_UPDATED="presences_updated",i.NOTEINFO_SELECTION_CHANGED="noteinfo_selection_changed",i.START_NOTE_EDITING="start_note_editing",i.OPEN_EXISTING_PAIR_TALK_COMPLETED="open_existing_pair_talk_completed",i.FIRST_ROUTING_WILL_START="first_routing_will_start",i.SIGNED_OUT="signed_out",i.ROUTUNG_TALK_FALLBACK="routing_talk_fallback",i.ROUTUNG_DOMAIN_FALLBACK="routing_domain_fallback",i.TALKS_SORT_MODE_CHANGED="talks_sort_mode_changed",i.RESERVE_SCHEDULED_MESSAGE_EDITING="reserve_scheduled_message_editing",i.DATA_RECOVERING="data_recovering",i.DATA_RECOVERED="data_recovered",i.NOTIFY_UPDATE_USER="notify_update_user",i.NOTIFY_ADD_FRIEND="notify_add_friend",i.NOTIFY_ADD_ACQUAINTANCE="notify_add_acquaintance",i.NOTIFY_ADD_ACQUAINTANCES="notify_add_acquaintances",i.NOTIFY_DELETE_FRIEND="notify_delete_friend",i.NOTIFY_DELETE_ACQUAINTANCE="notify_delete_acquaintance",i.NOTIFY_DELETE_ACQUAINTANCES="notify_delete_acquaintances",i.NOTIFY_UPDATE_DOMAIN_USERS="notify_update_domain_users",i.GET_DOMAIN_USERS_RESPONSED="get_domain_users_responsed",i.GET_USERS_RESPONSED="get_users_responsed",i.GET_PROFILE_RESPONSED="get_profile_responsed",i.GET_PROFILE_ERRORED="get_profile_errored",i.UPDATE_USER_RESPONSED="update_user_responsed",i.UPDATE_USER_ERRORED="update_user_errored",i.UPDATE_PROFILE_RESPONSED="update_profile_responsed",i.UPDATE_PROFILE_ERRORED="update_profile_errored",i.NOTIFY_UPDATE_DEPARTMENT_TREE="notify_update_department_tree",i.NOTIFY_UPDATE_DEPARTMENT_USERS="notify_update_department_users",i.GET_DEPARTMENT_TREE_RESPONSED="get_department_tree_responsed",i.GET_DEPARTMENT_TREE_CANCELED="get_department_tree_canceled",i.GET_DEPARTMENT_USERS_RESPONSED="get_department_users_responsed",i.GET_DEPARTMENT_USERS_CANCELED="get_department_users_canceled",i.GET_DEPARTMENT_USER_COUNT_RESPONSED="get_department_user_count_responsed",i.GET_ME_RESPONSED="get_me_responsed",i.DEPARTMENT_USER_COUNT_CLEARED="department_user_count_cleared",i.DEPARTMENT_USER_IDS_PREPARED="department_user_ids_prepared",i.NOTIFY_ADD_DOMAIN_INVITE="notify_add_domain_invite",i.NOTIFY_ACCEPT_DOMAIN_INVITE="notify_accept_domain_invite",i.NOTIFY_DELETE_DOMAIN_INVITE="notify_delete_domain_invite",i.NOTIFY_JOIN_DOMAIN="notify_join_domain",i.NOTIFY_UPDATE_DOMAIN="notify_update_domain",i.NOTIFY_LEAVE_DOMAIN="notify_leave_domain",i.NOTIFY_ADD_DOMAIN_MEMBERS="notify_add_domain_members",i.NOTIFY_CREATE_PAIR_TALK="notify_create_pair_talk",i.CREATE_PAIR_TALK_COMPLETE="create_pair_talk_complete",i.CREATE_PAIR_TALK_FAIL="create_pair_talk_fail",i.NOTIFY_CREATE_GROUP_TALK="notify_create_group_talk",i.CREATE_GROUP_TALK_COMPLETE="create_group_talk_complete",i.CREATE_GROUP_TALK_FAIL="create_group_talk_fail",i.NOTIFY_UPDATE_GROUP_TALK="notify_update_group_talk",i.UPDATE_GROUP_TALK_COMPLETE="update_group_talk_complete",i.UPDATE_GROUP_TALK_FAIL="update_group_talk_fail",i.NOTIFY_ADD_TALKERS="notify_add_talkers",i.NOTIFY_ADD_TALKERS_INCLUDING_ME="notify_add_talkers_including_me",i.NOTIFY_DELETE_TALKER="notify_delete_talker",i.NOTIFY_DELETE_TALK="notify_delete_talk",i.NOTIFY_UPDATE_READ_STATUSES="notify_update_read_statuses",i.NOTIFY_UPDATE_TALK_STATUS="notify_update_talk_status",i.NOTIFY_UPDATE_LOCAL_TALK_STATUS="notify_update_local_talk_status",i.NOTIFY_ADD_FAVORITE_TALK="notify_add_favorite_talk",i.NOTIFY_DELETE_FAVORITE_TALK="notify_delete_favorite_talk",i.NOTIFY_DISABLE_PUSH_NOTIFICATION="notify_disable_push_notification",i.NOTIFY_ENABLE_PUSH_NOTIFICATION="notify_enable_push_notification",i.ADD_TALKERS_SUCCEEDED="add_talkers_succeeded",i.ADD_TALKERS_FAILED="add_talkers_failed",i.NOTIFY_CREATE_MESSAGE="notify_create_message",i.NOTIFY_DELETE_MESSAGE="notify_delete_message",i.NOTIFY_GET_MESSAGES="notify_get_messages",i.NOTIFY_GET_MESSAGE_READ_STATUS="notify_get_message_status",i.CREATE_MESSAGE_START="create_message_start",i.CREATE_MESSAGE_COMPLETE="create_message_complete",i.CREATE_MESSAGE_FAIL="create_message_fail",i.ADD_FAVORITE_MESSAGE_COMPLETED="add_favorite_message_completed",i.DELETE_FAVORITE_MESSAGE_COMPLETED="delete_favorite_message_completed",i.GET_FAVORITE_MESSAGES_COMPLETED="get_favorite_messages_completed",i.NOTIFY_ADD_FAVORITE_MESSAGE="notify_add_favorite_message",i.NOTIFY_DELETE_FAVORITE_MESSAGE="notify_delete_favorite_message",i.NOTIFY_SCHEDULE_MESSAGE="notify_schedule_message",i.NOTIFY_PROCESSED_SCHEDULED_MESSAGE="notify_processed_scheduled_message",i.NOTIFY_DELETE_SCHEDULED_MESSAGE="notify_delete_scheduled_message",i.GET_SCHEDULED_MESSAGES_COMPLETED="get_scheduled_messages_completed",i.GET_SCHEDULED_MESSAGES_FAILED="get_scheduled_messages_failed",i.DELETE_SCHEDULED_MESSAGES_COMPLETED="delete_scheduled_messages_completed",i.SCHEDULE_MESSAGE_STARTED="schedule_message_started",i.SCHEDULE_MESSAGE_COMPLETED="schedule_message_completed",i.SCHEDULE_MESSAGE_FAILED="schedule_message_faileed",i.RESCHEDULE_MESSAGE_STARTED="reschedule_message_started",i.RESCHEDULE_MESSAGE_COMPLETED="reschedule_message_completed",i.RESCHEDULE_MESSAGE_FAILED="reschedule_message_failed",i.NOTIFY_UPDATE_MESSAGE_REACTIONS="notify_update_message_reactions",i.GET_MESSAGE_REACTION_SUMMARIES_COMPLETED="get_message_reaction_summaries_completed",i.GET_MESSAGE_REACTION_SUMMARIES_FAILED="get_message_reaction_summaries_failed",i.SET_MESSAGE_REACTION_COMPLETED="set_message_reaction_completed",i.SET_MESSAGE_REACTION_FAILED="set_message_reaction_failed",i.RESET_MESSAGE_REACTION_COMPLETED="reset_message_reaction_completed",i.RESET_MESSAGE_REACTION_FAILED="reset_message_reaction_failed",i.NOTIFY_CREATE_ANNOUNCEMENT="notify_create_announcement",i.NOTIFY_DELETE_ANNOUNCEMENT="notify_delete_announcement",i.NOTIFY_UPDATE_ANNOUNCEMENT_STATUS="notify_update_announcement_status",i.NOTIFY_GET_ANNOUNCEMENTS="notify_get_announcements",i.CREATE_ANNOUNCEMENT_START="create_announcement_start",i.CREATE_ANNOUNCEMENT_COMPLETE="create_announcement_complete",i.CREATE_ANNOUNCEMENT_FAIL="create_announcement_fail",i.NOTIFY_UPDATE_QUESTION="notify_update_question",i.NOTIFY_GET_QUESTIONS="get_questions_responsed",i.NOTIFY_CREATE_ATTACHMENT="notify_create_attachment",i.NOTIFY_DELETE_ATTACHMENT="notify_delete_attachment",i.GET_FILE_RESPONSED="get_file_responsed",i.GET_FILE_PREVIEW="get_file_preview",i.CREATE_FILE_PREVIEW="create_file_preview",i.GET_NOTE_STATUSES_LOADED="get_note_statuses_loaded",i.GET_NOTE_LOADED="get_note_loaded",i.GET_NOTE_FAILED_BY_NOTE_NOT_FOUND="get_note_failed_by_note_not_found",i.CREATE_NOTE_COMPLETED="create_note_completed",i.CREATE_NOTE_FAILED="create_note_failed",i.UPDATE_NOTE_LOCAL_EDIT="update_note_local_edit",i.CLEAR_NOTE_LOCAL_EDIT="clear_note_local_edit",i.UPDATE_NOTE_SETTING_COMPLETED="update_note_setting_completed",i.UPDATE_NOTE_SETTING_FAILED_BY_NOT_FOUND="update_note_setting_failed_by_not_found",i.UPDATE_NOTE_SETTING_FAILED_BY_CONFLICT="update_note_setting_failed_by_conflict",i.UPDATE_NOTE_SETTING_FAILED_BY_EDITING="update_note_setting_failed_by_editing",i.UPDATE_NOTE_COMPLETED="update_note_completed",i.DELETE_NOTE_COMPLETED="delete_note_completed",i.NOTIFY_CREATE_NOTE="notify_create_note",i.NOTIFY_UPDATE_NOTE_PARTIALLY="notify_update_note_partially",i.NOTIFY_DELETE_NOTE="notify_delete_note",i.NOTIFY_UPDATE_NOTE_FOR_SETTING="notify_update_note_for_setting",i.NOTIFY_UPDATE_NOTE_FOR_SUMMARY="notify_update_note_for_revision",i.CREATE_NOTE_BUTTON_CLICKED="create_note_button_clicked",i.NOTIFY_LOCK_NOTE="notify_lock_note",i.NOTIFY_UNLOCK_NOTE="notify_unlock_note",i.NOTIFY_SEARCH_MESSAGES="notify_search_messages",i.NOTIFY_SEARCH_ATTACHMENTS="notify_search_attachments",i.NOTIFY_SEARCH_MESSAGES_FAIL="notify_search_messages_fail",i.NOTIFY_SEARCH_ATTACHMENTS_FAIL="notify_search_attachments_fail",i.NOTIFY_SEARCH_PREPARE="notify_search_prepare",i.NOTIFY_SEARCH_CLEAR="notify_search_clear",i.NOTIFY_FILTER_BOX_TEXT_CHANGED="notify_filter_box_text_changed",i.NOTIFY_SEARCH_BOX_POPUP="notify_search_box_popup",i.NOTIFY_ADD_ACCOUNT_CONTROL_REQUEST="notify_add_account_control_request",i.NOTIFY_DELETE_ACCOUNT_CONTROL_REQUEST="notify_delete_account_control_request",i.NOTIFY_JOIN_ACCOUNT_CONTROL_GROUP="notify_join_account_control_group",i.NOTIFY_UPDATE_ACCOUNT_CONTROL_GROUP_PARTIALLY="notify_update_account_control_group_partially",i.NOTIFY_LEAVE_ACCOUNT_CONTROL_GROUP="notify_leave_account_control_group",i.PREPARE_CONFERENCE_FROM_MESSAGE="prepare_conference_from_message",i.JOIN_CONFERENCE_RESPONSED="join_conference_responsed",i.JOIN_CONFERENCE_CANCELED="join_conference_canceled",i.GET_CONFERENCE_PARTICIPANTS_RESPONSED="get_conference_participants_responsed",i.NOTIFY_OPEN_CONFERENCE="notify_open_conference",i.NOTIFY_CLOSE_CONFERENCE="notify_close_conference",i.NOTIFY_CONFERENCE_PARTICIPANT_JOIN="notify_conference_participant_join",i.NOTIFY_CONFERENCE_PARTICIPANT_LIMIT="notify_conference_participant_limit",i.NOTIFY_CONFERENCE_PARTICIPANT_REJECT="notify_conference_participant_reject",i.NOTIFY_ALL_TALK_MEMBERS_REJECTED_CONFERENCE="notify_all_talk_members_rejected_conference",i.NOTIFY_UPDATE_DOMAIN_STAMP_SETTING="notify_update_domain_stampsetting",i.NOTIFY_UPDATE_STAMPSET="notify_update_stampset",i.NOTIFY_DELETE_STAMPSET="notify_delete_stampset",i.NOTIFY_UPDATE_DOMAIN_BUILTIN_STAMP_SETTING="notify_update_domain_builtin_stampsetting",i.NOTIFY_FLOW_NOTIFICATION_BADGE="notify_flow_notification_badge",i.GET_FLOW_NOTIFICATION_BADGES_COMPLETED="get_flow_notification_badges_completed",i.GET_FLOW_NOTIFICATION_BADGES_FAILED="get_flow_notification_badges_failed",i.GET_DIRECT_APPS_COMPLETED="get_direct_apps_completed",i.GET_DIRECT_APPS_FAILED="get_direct_apps_failed",i.START_NOTIFICATION_FAILED="start_notification_failed",Fn.DEFAULT_RESOLVER=new On,Fn.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:",_.accessMode=xn.Disabled,te.ANNOUNCEMENTS_KEY="-1",Gn.__meta__={fields:{api:{inject:null}}},Gn.NAME="AccountControlRequest",zn.__meta__={fields:{api:{inject:null},dataStore:{inject:null}}},zn.NAME="Conference",Wn.__meta__={fields:{api:{inject:null}}},Wn.NAME="Device",Vn.__meta__={fields:{api:{inject:null}}},Vn.NAME="Domain",Qn.__meta__={fields:{api:{inject:null},dataStore:{inject:null},fileService:{inject:null}}},Qn.NAME="FilePath",Jn.__meta__={fields:{api:{inject:null}}},Jn.NAME="FilePreview",Zn.__meta__={fields:{api:{inject:null},dataStore:{inject:null}}},Zn.NAME="LoadStampset",ti.__meta__={fields:{api:{inject:null}}},ti.NAME="ManageFriends",ni.__meta__={fields:{api:{inject:null}}},ni.NAME="Message",ri.__meta__={fields:{dataStore:{inject:null},api:{inject:null}}},ri.NAME="MessageReaction",ai.__meta__={fields:{api:{inject:null},dataStore:{inject:null},fileService:{inject:null}}},ai.NAME="Note",li.__meta__={fields:{api:{inject:null},keywordWatcher:{inject:null},readStatusUpdater:{inject:null}}},li.NAME="Read",ci.__meta__={fields:{api:{inject:null}}},ci.NAME="ReloadData",hi.__meta__={fields:{dataStore:{inject:null},api:{inject:null}}},hi.NAME="ScheduleMessage",fi.__meta__={fields:{api:{inject:null},searchService:{inject:null}}},fi.NAME="Search",pi.__meta__={fields:{dataStore:{inject:null},settings:{inject:null}}},pi.NAME="SelectTalk",yi.__meta__={fields:{api:{inject:null}}},yi.NAME="Send",Si.__meta__={fields:{accessTokenResolver:{inject:null},session:{inject:null}}},Si.NAME="SignIn",vi.__meta__={fields:{api:{inject:null},settings:{inject:null},dataStore:{inject:null}}},vi.NAME="SignOut",Ti.__meta__={fields:{api:{inject:null},dataStore:{inject:null}}},Ti.NAME="Talk",Ei.__meta__={fields:{api:{inject:null},dataStore:{inject:null}}},Ei.NAME="UpdateProfile",wi.__meta__={fields:{api:{inject:null}}},wi.NAME="UpdateUser",Ni.__meta__={fields:{userPresences:{inject:null},api:{inject:null},settings:{inject:null}}},Ni.NAME="UpdateUserPresences",Ni.MAX_USERS_PER_API=100,Ai.__meta__={fields:{routing:{inject:null}}},Ai.NAME="Url",_e.TalkAutoScrollDelay=1,_e.TalkAutoScrollImmediately=2,_e.TalkAutoScrollNone=3,_e.NotificationPopupTime5Sec=5,_e.TalksSortModeNewMessagesFirst="new_messages_first",_e.TalksSortModeUnreadMessagesFirst="unread_messages_first",_e.TalksSortModeOldMessagesFirst="old_messages_first",_e.DomainsSortModeNameOrderAsc="name_order_asc",_e.OLD_KEY_RIGHT_PANEL_OPENED="right_panel_opened",_e.OLD_KEY_RIGHT_PANEL_WIDTH="right_panel_width",_e.OLD_KEY_APP_LEFT_PANEL_OPENED="app_left_panel_opened",_e.NAME="browser_settings",Ui.MAX_SIZE=72,he.INCOMING_TIME=6e4,Bi.DEFAULT_PRESENCE_EXPIRATION=3e5,Bi.DEFAULT_UPDATE_LAST_USED_AT_INTERVAL=6e5,Gi.DEFAULT_TTL=3600,Gi.DEFAULT_MAX_PARTICIPANTS=8,ar.stagedFileInfosMaxId=0,Me.TIMESTAMP_SHIFT=22,O.MAX_READ_USER_IDS_COUNT=16,He.QUERY_DATE_TODAY="t",He.QUERY_DATE_YESTERDAY="-1d",He.QUERY_DATE_THREE_DAYS_BEFORE="-3d",Wr.HISTORY_TAB_NAME="stamp-history",ot.SIXTY_MINUTES=new E(0,36e5),ot.FIFTEEN_MINUTES=new E(0,9e5),So.PREFIX="note-",So.nextDummyId=new E(-1,-1),xt.CONTINUE_MARGIN_RATE=.1,Ht.CHEKBOX_UNCHECKED="- [ ] ",Ht.CHEKBOX_CHECKED="- [x] ",Yt.TU_REG=new v("ッ([BCDFGHIJKLMNOPQRSTUVWYZ])","gm"),Yt.XTU_REG=new v("ッ","gm"),F.EMERGENCY=0,F.ALERT=1,F.CRITICAL=2,F.ERROR=3,F.WARNING=4,F.NOTICE=5,F.INFO=6,F.DEBUG=7,F.level=F.getLogLevel(process.env.HUBOT_LOG_LEVEL),F._d=7<=F.level&&null!=console?console.log.bind(console):F._nop,F._i=6<=F.level&&null!=console?console.info.bind(console):F._nop,F._w=4<=F.level&&null!=console?console.warn.bind(console):F._nop,F._e=3<=F.level&&null!=console?console.error.bind(console):F._nop,xo.HIRAGANA_SMALL_A=12353,xo.HIRAGANA_NN=12435,xo.KATAKANA_SMALL_A=12449,Po.NAME="accessTokenResolver",l.NAME="Proxy",Bo.__meta__={fields:{settings:{inject:null},accountLoader:{inject:null},api:{inject:null}}},Ho.NAME="accountLoader",jo.__meta__={fields:{api:{inject:null},dataStore:{inject:null},settings:{inject:null},keywordWatcher:{inject:null}}},jo.NAME="broadcast",zo.__meta__={fields:{wsApi:{inject:null},apiCaller:{inject:null},apiNote:{inject:null},settings:{inject:null},dataStore:{inject:null},dataFactory:{inject:null},fileService:{inject:null},searchService:{inject:null},lastUsedAtUpdater:{inject:null}}},zo.NAME="api",zo.API_VERSION="1.128",zo.UPDATE_VERSION="1.128_0",zo.ACTIONS_COUNT_PER_API=20,Yo.__meta__={fields:{rpc:{inject:null}}},Yo.NAME="apiCaller",Yo.DELAY_FOR_DB_REPLICATION=500,Yo.DELAY_FOR_DB_REPLICATION_FOR_RETRY=1e3,Yo.API_TRY_COUNT=3,Wo.__meta__={fields:{dataStore:{inject:null},settings:{inject:null},wsApi:{inject:null}}},Wo.NAME="apiNote",Ko.NAME="appState",Vo.__meta__={fields:{dataStore:{inject:null}}},Vo.NAME="dataFactory",qo.NAME="dataStore",qo.STORAGE_KEY_FOR_GENERAL="dataStore",qo.STORAGE_KEY_FOR_TALKS="dataStoreTalks",qo.STORAGE_KEY_FOR_TALK_STATUSES="dataStoreTalkStatuses",qo.STORAGE_KEY_FOR_USERS="dataStoreUsers",qo.TYPE_FRIEND=0,qo.TYPE_ACQUAINSTANCE=1,qo.TYPE_NONE=2,Qo.__meta__={fields:{settings:{inject:null},dataStore:{inject:null}}},Qo.NAME="features",Jo.NAME="fileService",Zo.__meta__={fields:{settings:{inject:null}}},ea.__meta__={fields:{settings:{inject:null},features:{inject:null},dataStore:{inject:null}}},ea.NAME="keywordWatcher",ea.TALK_KEY_PREFIX="talk_",ea.ANNOUNCEMENT_KEY_PREFIX="announcement_",ta.TEMP_HALF_SPACE="&SPACE",ta.TEMP_FULL_SPACE="&FULL_PITCH_SPACE",oa.__meta__={fields:{settings:{inject:null}}},oa.NAME="lastUsedAtUpdater",aa.__meta__={fields:{settings:{inject:null},dataStore:{inject:null}}},aa.NAME="limitations",sa.__meta__={fields:{broadcast:{inject:null},lastUsedAtUpdater:{inject:null}}},sa.NAME="rpc",sa.lastMsgId=0,la.PING_INTERVAL_ON_CONNECTED=45e3,da.__meta__={fields:{dataStore:{inject:null},api:{inject:null}}},da.NAME="readStatusUpdater",fa.__meta__={fields:{settings:{inject:null},dataStore:{inject:null}}},fa.NAME="routing",ga.__meta__={fields:{settings:{inject:null}}},ga.NAME="searchService",ga.LOAD_SIZE=20,ga.DUMMY_VALUE_FOR_SET=1,ya.__meta__={fields:{settings:{inject:null},dataStore:{inject:null},api:{inject:null}}},ya.NAME="session",Sa.NAME="settings",Sa.KEY_ACCESS_TOKEN="access_token",Sa.KEY_SELECTED_DOMAIN_ID_H="selected_domain_id_h",Sa.KEY_SELECTED_DOMAIN_ID_L="selected_domain_id_l",Sa.KEY_SELECTED_STAMP_TAB_ID="selected_stamp_tab_id",Sa.KEY_INPUT_TEXT="input_text",Sa.KEY_COPY_PROFILE_TO_ALL_DOMAINS="copy_profile_to_all_domains",Sa.KEY_SELECTED_DEPARTMENT_IDS="selected_department_ids",Sa.KEY_SEARCH_HISTORIES="search_histories",Sa.KEY_MULTI_VIEW_MODE="multi_view_mode",Sa.KEY_PASSWORD_WARNING_SKIP_UNTIL="password_warning_skip_until",Sa.KEY_LAST_USED_EXPIRED_AT="last_used_expired_at",Sa.KEY_IDFV="idfv",va.__meta__={fields:{dataStore:{inject:null}}},va.NAME="talksService",Ta.__meta__={fields:{dataStore:{inject:null}}},Ta.NAME="userPresences",Ia.__meta__={fields:{apiCaller:{inject:null}}},Ia.NAME="wsApi",p.MAX_CONTENT_BYTES=1e5,p.NOTE_EVENT_NAMES=["created","updated","deleted"],Ma.CONTENT_TYPE_XML="xml",Ma.CONTENT_TYPE_TEXT="text",Da.NAME="Mediator",Ra.__meta__={fields:{dataStore:{inject:null},api:{inject:null},hubotObject:{inject:null},messageEvent:{inject:null},sendQueue:{inject:null}}},Ra.NAME="commandline",Ra.DATA_SAVE_SPAN=5e3,xa.__meta__={fields:{dataStore:{inject:null}}},xa.NAME="hubotObject",Ua.__meta__={fields:{dataStore:{inject:null},hubotObject:{inject:null}}},Ua.NAME="messageEvent",La.minWaitMinute=1,La.maxWaitMinute=1440,La.SEND_EVENT_NAME="send",Pa.__meta__={fields:{messageEvent:{inject:null}}},Pa.NAME="sendQueue",Pa.MIN_SEND_SPAN_MESSAGE=550,Pa.MIN_SEND_SPAN_ANNOUNCE=5050,Pa.MAX_TEXT_LENGTH=1024,Pa.MAX_FIELD_COUNT=9,Pa.MAX_FIELD_LENGTH=64,Ga.INVALID_PARAMETER="INVALID_PARAMETER",Ga.FORBIDDEN="FORBIDDEN",Ga.NOT_FOUND="NOT_FOUND",Ga.LOCKED_BY_ANOTHER_USER="LOCKED_BY_ANOTHER_USER",Ga.CONFLICT="CONFLICT",Ga.TOO_MANY_REQUESTS="TOO_MANY_REQUESTS",Ga.CLIENT_UPGRADE_REQUIRED="CLIENT_UPGRADE_REQUIRED",Ga.UNKNOWN="UNKNOWN",w._mul=null!=Math.imul?Math.imul:function(e,t){return e*(65535&t)+(e*(t>>>16)<<16|0)|0},Qa.USE_CACHE=!1,Qa.USE_ENUM_INDEX=!1,Qa.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:",ns.count=0,cs.i64tmp=new E(0,0),G.__toStr={}.toString,Ss.FLOAT_SINGLE_MIN=1401298464324817e-60,Ss.FLOAT_SINGLE_MAX=34028234663852886e22,Ss.FLOAT_DOUBLE_MIN=5e-324,Ss.FLOAT_DOUBLE_MAX=17976931348623157e292,vn.main()}("undefined"!=typeof exports?exports:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this,"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this); \ No newline at end of file From 5c449bbbbdd90d3c7b09de6dac7104ee25567359 Mon Sep 17 00:00:00 2001 From: "sho.kuroda" Date: Fri, 11 Jul 2025 11:34:33 +0900 Subject: [PATCH 2/2] chore: bump up package version to 3.2.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 26bdbc5..7a3487c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "direct-js", - "version": "3.1.0", + "version": "3.2.0", "description": "Low-level javascript library for direct", "author": "L is B corp.", "license": "MIT",