1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`7a58fa93a7a0f4bfe4323bd10ecc06c7f61b8211`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`ea31b43d-dcf0-42f6-871d-ae6d2fbb9da8`,e._sentryDebugIdIdentifier=`sentry-dbid-ea31b43d-dcf0-42f6-871d-ae6d2fbb9da8`)}catch{}})();import{a as e}from"./src-OUTKaAr6.js";import{n as t}from"./baseUrls-XBh6dyp2.js";import{ot as n,st as r}from"./types-CokcHS2F.js";var i=(e,t)=>!!e.members?.items?.some(e=>e.userId===t&&e.status===r.Confirmed),a=(e,t)=>!!e.members?.items?.some(e=>e.userId===t&&e.status===r.Confirmed&&e.role===n.Owner),o=(e,t)=>{if(t)return e.find(e=>a(e,t))?.id??e.find(e=>i(e,t))?.id},s=e=>e?!!e.match(`^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$`):!1;function c(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)r!==`__proto__`&&(e[r]=n[r])}return e}var l={read:function(e){return e[0]===`"`&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function u(e,t){function n(n,r,i){if(!(typeof document>`u`)){i=c({},t,i),typeof i.expires==`number`&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&=i.expires.toUTCString(),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a=``;for(var o in i)i[o]&&(a+=`; `+o,i[o]!==!0&&(a+=`=`+i[o].split(`;`)[0]));return document.cookie=n+`=`+e.write(r,n)+a}}function r(t){if(!(typeof document>`u`||arguments.length&&!t)){for(var n=document.cookie?document.cookie.split(`; `):[],r={},i=0;i<n.length;i++){var a=n[i].split(`=`),o=a.slice(1).join(`=`);try{var s=decodeURIComponent(a[0]);if(s in r||(r[s]=e.read(o,s)),t===s)break}catch{}}return t?r[t]:r}}return Object.create({set:n,get:r,remove:function(e,t){n(e,``,c({},t,{expires:-1}))},withAttributes:function(e){return u(this.converter,c({},this.attributes,e))},withConverter:function(e){return u(c({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var d=u(l,{path:`/`}),f=`latestWorkspaceId`,p=(e,t)=>{if(!t)try{return`.${new URL(e).hostname}`}catch{return}},m=()=>p(t,e()),h=e=>typeof e==`string`&&s(e),g=(e,t)=>{if(!e||e.length===0)return null;let n=d.get(f);if(!h(n))return n&&d.remove(f,{domain:m(),path:`/`}),null;let r=e.find(e=>e.id===n);return r&&(!t||i(r,t))?n:(d.remove(f,{domain:m(),path:`/`}),null)},_=e=>{h(e)&&d.set(f,e,{expires:365,sameSite:`Lax`,domain:m(),path:`/`})},v=()=>{d.remove(f,{domain:m(),path:`/`})};export{d as a,i as c,_ as i,h as n,s as o,v as r,o as s,g as t}; 2//# sourceMappingURL=lastUsedWorkspaceId-sQz9FvVb.js.map
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.