1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6299],{24866:function(e,n,t){"use strict";t.d(n,{M7:function(){return m},xr:function(){return y}});var r=t(4656),i=t(69616),o=t(7968),a=t(24821),s=t(69648),u=t(28839),c=t(73352),d=t.n(c),l=t(53235),f=t.n(l),v=t(73656),h=new WeakMap,p=new WeakMap,g=new WeakMap,w=new WeakMap,Z=new WeakMap,b=function(){function e(){(0,r.Z)(this,e),(0,o.Z)(this,h,{writable:!0,value:"pub-c-ef08ba03-f0ca-4ae2-82ef-736fa18cb650"}),(0,o.Z)(this,p,{writable:!0,value:"sub-c-56a96442-fff3-11eb-b0c0-62dfa3a98328"}),(0,o.Z)(this,g,{writable:!0,value:"virtualspace.vs.me"}),(0,o.Z)(this,w,{writable:!0,value:null}),(0,o.Z)(this,Z,{writable:!0,value:null}),this.channel=""}var n=e.prototype;return n.init=function(e,n){if((0,i.Z)(this,h)&&(0,i.Z)(this,p)&&null===(0,i.Z)(this,w)){var t={subscribeKey:(0,i.Z)(this,p),publishKey:(0,i.Z)(this,h),uuid:e,autoNetworkDetection:!0,restore:!0,ssl:!0,presenceTimeout:60,origin:v.env.NEXT_PUBLIC_PROXY_PUBNUB,heartbeatInterval:60,useRandomIVs:!1,listenToBrowserNetworkEvents:!0,suppressLeaveEvents:!0,keepAlive:!0};(0,a.Z)(this,w,new(f())((null===n||void 0===n?void 0:n.withProxy)?t:d()(t,["origin"])))}return(0,i.Z)(this,w)},n.setCurrentChannel=function(e){this.channel=e},n.decryptMessage=function(e){var n;if((0,i.Z)(this,w))return null===(n=(0,i.Z)(this,w))||void 0===n?void 0:n.decrypt(e,(0,i.Z)(this,g));throw"PubNub is not initiated yet (decrypt)"},n.encryptMessage=function(e){if((0,i.Z)(this,w)){var n="string"===typeof e?e:JSON.stringify(e);return(0,i.Z)(this,w).encrypt(n,(0,i.Z)(this,g))}throw"PubNub is not initiated yet (encrypt)"},n.decryptor=function(e,n){if(Array.isArray(e)){var t=[],r=!0,o=!1,a=void 0;try{for(var s,c=this,d=function(){var e,r,o=s.value,a=void 0;("string"===typeof(null===o||void 0===o?void 0:o.message)&&(a=c.decryptMessage(null===o||void 0===o?void 0:o.message)),"string"===typeof(null===o||void 0===o?void 0:o.message.message))&&(a=null===(e=(0,i.Z)(c,w))||void 0===e?void 0:e.decrypt(null===o||void 0===o||null===(r=o.message)||void 0===r?void 0:r.message,(0,i.Z)(c,g)));a?t.push((0,u.ZP)(o,(function(e){var t;(e.message=a,n)&&(e.isMe=(null===a||void 0===a||null===(t=a.user)||void 0===t?void 0:t.id)===n)}))):t.push(o)},l=e[Symbol.iterator]();!(r=(s=l.next()).done);r=!0)d()}catch(f){o=!0,a=f}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return t}return this.decryptMessage(e)},n.reset=function(){(0,a.Z)(this,w,null)},n.getOnlineUsers=function(e){var n;if(e)return null===(n=(0,i.Z)(this,w))||void 0===n?void 0:n.hereNow({channels:e,includeState:!0})},n.setToken=function(e){(0,i.Z)(this,w)&&((0,i.Z)(this,w).setToken(e),(0,a.Z)(this,Z,e))},(0,s.Z)(e,[{key:"currentChannel",get:function(){return this.channel}},{key:"instance",get:function(){return(0,i.Z)(this,w)}}]),e}(),m=new b,y=new b},44147:function(e,n,t){"use strict";t.d(n,{D$:function(){return m},M4:function(){return b},eu:function(){return p},fh:function(){return g},g2:function(){return T},hO:function(){return k},kS:function(){return M},kp:function(){return w},rp:function(){return Z},uj:function(){return y}});var r=t(36690),i=t(93089),o=t(27599),a=t.n(o),s=t(72118),u=t(60670),c=t(24866),d=t(16948),l=t(96365),f=t(61006),v=t(79425),h=t(80705),p=new RegExp("^(?=.*[a-zA-Z!@#$%^&*])(?=.*[0-9])(?=.{8,})"),g=function(e){return a()(e)},w=function(){return{token:s.Z.get(v.Fy.token)}},Z=function(){return{token:s.Z.get(v.Fy.refreshToken)}},b=function(){return{token:s.Z.get(v.Fy.authAccountToken)}},m=function(e,n){var t=(0,i.Z)((0,r.Z)({},u.fb),{expires:n||v.RY.expiresTokenCookie});return s.Z.set(v.Fy.token,e,t),e},y=function(e,n){var t=(0,i.Z)((0,r.Z)({},u.fb),{expires:n||v.RY.expiresRefreshTokenCookie});return s.Z.set(v.Fy.refreshToken,e,t),e},k=function(e,n){var t=(0,i.Z)((0,r.Z)({},u.fb),{expires:n||v.RY.expiresTokenCookie});return s.Z.set(v.Fy.authAccountToken,e,t),e},_=function(e){var n=(0,i.Z)((0,r.Z)({},u.fb),{expires:e||v.RY.expiresTokenCookie});s.Z.remove(v.Fy.token,n)},x=function(){Object.keys(s.Z.get()).forEach((function(e){s.Z.remove(e,{})}))},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h.y.MAIN;c.M7.reset(),c.xr.reset(),_(),d.t.cleanUp(),x(),localStorage.clear(),window.location.replace(e)},T=function(e){var n=(0,f.default)(e),t=Math.abs((0,l.Z)().diff(1e3*n.exp,"day"));return(0,i.Z)((0,r.Z)({},n),{expires:t+1,originalExpired:t})}},60670:function(e,n,t){"use strict";t.d(n,{Cb:function(){return s},LP:function(){return l},Xd:function(){return d},fb:function(){return u},hR:function(){return f},r0:function(){return c}});var r=t(60947),i=t(76398),o=(t(12866),t(79425)),a=t(44147),s="YYYY-MM-DD HH:mm:ss",u={expires:o.RY.expiresTokenCookie,path:"/",domain:".app.virtualspace.ai"},c=(function(){var e=(0,r.Z)((function(e,n){return(0,i.__generator)(this,(function(t){return(0,a.fh)(e).identity?n?[2,n()]:[2,{props:{}}]:[2,{redirect:{destination:"/account/signin",permanent:!1}}]}))}))}
1(),function(e,n){navigator.clipboard.writeText(e).then((function(){n?n():alert("Message copied")}))}),d=function(e){return new Promise((function(n,t){navigator.clipboard.writeText(e).then((function(){return n(!0)}),(function(){return t(!1)}))}))},l=function(e){return(null===e||void 0===e?void 0:e.includes("pdf"))?
1"ic-file-pdf.svg":(null===e||void 0===e?void 0:e.includes("excel"))||(null===e||void 0===e?void 0:e.includes("spreadsheet"))?
1"ic-xls.svg":(null===e||void 0===e?void 0:e.includes("word"))||(null===e||void 0===e?void 0:e.includes("word"))?
1"ic-doc.svg":(null===e||void 0===e?void 0:e.includes("ppt"))||(null===e||void 0===e?void 0:e.includes("presentation"))?
1"ic-ppt.svg":((null===e||void 0===e?void 0:e.includes("png"))||(null===e||void 0===e?void 0:e.includes("jpg"))||(null===e||void 0===e?void 0:e.includes("svg"))||(null===e||void 0===e?void 0:e.includes("jepg"))||null===e||void 0===e||e.includes("webp"),"ic-general.svg")
1},f=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=e.toFixed(n),r=(e/1024).toFixed(n),i=(e/1024/1024).toFixed(n),o=(e/1024/1024/1024).toFixed(n);return{relative:o>1?"".concat(o,"gb"):i>1?"".concat(i,"mb"):r>1?"".concat(r,"kb"):"".concat(t,"b"),b:t,kb:r,mb:i,gb:o}}},96365:function(e,n,t){"use strict";var r=t(15569),i=t.n(r),o=t(60670),a=function(e,n){var t=i()();return(null===n||void 0===n?void 0:n.unix)?i()(Number(e)/1e4):i()(e||t,o.Cb)};i().updateLocale("en",{relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"1 minute",mm:"%d minutes",h:"1 hour",hh:"%d hours",d:"1 day",dd:"%d days",w:"1 week",ww:"%d weeks",M:"1 month",MM:"%d months",y:"1 year",yy:"%d years"}});var s=a;s.fn=a,s.min=i().min,s.max=i().max,s.now=i().now,s.utc=i().utc,s.unix=i().unix,s.months=i().months,s.isDate=i().isDate,s.locale=i().locale,s.invalid=i().invalid,s.duration=i().duration,s.isMoment=i().isMoment,s.weekdays=i().weekdays,s.parseZone=i().parseZone,s.localeData=i().localeData,s.isDuration=i().isDuration,s.monthsShort=i().monthsShort,s.weekdaysMin=i().weekdaysMin,s.defineLocale=i().defineLocale,s.updateLocale=i().updateLocale,s.locales=i().locales,s.weekdaysShort=i().weekdaysShort,s.normalizeUnits=i().normalizeUnits,s.relativeTimeRounding=i().relativeTimeRounding,s.relativeTimeThreshold=i().relativeTimeThreshold,s.getCalendarFormat=i().calendarFormat,s.prototype=a,n.Z=s},83877:function(e,n,t){"use strict";t.d(n,{J:function(){return d}});var r=t(60947),i=t(4656),o=t(37705),a=t(76398),s=t(96785),u=t.n(s),c=t(12866),d=new(function(){function e(){(0,i.Z)(this,e)}var n=e.prototype;return n.signInGoogle=function(e){return(0,r.Z)((function(){var n,t;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:return n=u().MD5(navigator.userAgent),[4,c.od.post("/api/v2/sign_in/google",{token:e},{headers:{"mac-address":n.toString()}})];case 1:return[2,{data:(t=r.sent()).data,meta:t.meta}]}}))}))()},n.signIn=function(e){return(0,r.Z)((function(){var n;return(0,a.__generator)(this,(function(t){switch(t.label){case 0:return n=u().MD5(navigator.userAgent),[4,c.od.post("/api/v2/sign_in",e,{headers:{"mac-address":n.toString()}})];case 1:return[2,t.sent().data]}}))}))()},n.getProfile=function(e){return(0,r.Z)((function(){return(0,a.__generator)(this,(function(n){switch(n.label){case 0:return[4,c.od.get("/api/v1/members/profile",{headers:e?{Authorization:"Bearer ".concat(e)}:void 0})];case 1:return[2,n.sent().data]}}))}))()},n.getInvitations=function(){return(0,r.Z)((function(){return(0,a.__generator)(this,(function(e){switch(e.label){case 0:return[4,c.od.get("/api/v3/members/invitations")];case 1:return[2,e.sent().data]}}))}))()},n.selectSpace=function(e){return(0,r.Z)((function(){var n;return(0,a.__generator)(this,(function(t){switch(t.label){case 0:return[4,c.od.post("/api/v1/organizations/".concat(e,"/select"))];case 1:return n=t.sent(),[2,(0,o.Z)({data:n.data,onesignal:n.onesignal,pubnub:n.pubnub},"web-chat-version",n["web-chat-version"])]}}))}))()},n.joinSpace=function(e){return(0,r.Z)((function(){return(0,a.__generator)(this,(function(n){switch(n.label){case 0:return[4,c.od.post("/api/v2/invitations/".concat(e,"/join"))];case 1:return[2,n.sent().data]}}))}))()},n.signUp=function(e){return(0,r.Z)((function(){var n;return(0,a.__generator)(this,(function(t){switch(t.label){case 0:return n=u().MD5(navigator.userAgent),[4,c.od.post("/api/v2/sign_up",e,{headers:{"mac-address":n.toString()}})];case 1:return[2,t.sent().data]}}))}))()},n.updateProfile=function(e){return(0,r.Z)((function(){return(0,a.__generator)(this,(function(e){switch(e.label){case 0:return[4,c.od.put("/api/v1/members/update")];case 1:return[2,e.sent().data]}}))}))()},n.forgotPasswordEmail=function(e){return(0,r.Z)((function(){return(0,a.__generator)(this,(function(n){switch(n.label){case 0:return[4,c.od.post("/api/v2/passwords",{email:e})];case 1:return[2,n.sent().data]}}))}))()},n.forgotVerifyToken=function(e){return(0,r.Z)((function(){var n;return(0,a.__generator)(this,(function(t){switch(t.label){case 0:return n=u().MD5(navigator.userAgent),[4,c.od.get("/api/v2/passwords/edit?token=".concat(e),{headers:{"mac-address":n.toString()}})];case 1:return[2,t.sent().data]}}))}))()},n.forgotPassword=function(e){return(0,r.Z)((function(){var n;return(0,a.__generator)(this,(function(t){switch(t.label){case 0:return n=u().MD5(navigator.userAgent),[4,c.od.put("/api/v2/passwords",e,{headers:{"mac-address":n.toString()}})];case 1:return t.sent().data,[2]}}))}))()},n.updatePassword=function(e){return(0,r.Z)((function(){return(0,a.__generator)(this,(function(n){switch(n.label){case 0:return[4,c.od.put("/api/v1/members/update_password",e)];case 1:return[2,n.sent().data]}}))}))()},n.validateInvitation=function(e){return(0,r.Z)((function(){return(0,a.__generator)(this,(function(n){switch(n.label){case 0:return[4,c.od.get("/api/v2/invitations/".concat(e,"/validate"))];case 1:return[2,n.sent().data]}}))}))()},e}())},1342:function(){}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.