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:`784f47d7a9770ec98c3f2c03ffd32ecd90682eed`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`ceaa20d3-d07a-48fb-a8a9-c2ee5b86e27a`,e._sentryDebugIdIdentifier=`sentry-dbid-ceaa20d3-d07a-48fb-a8a9-c2ee5b86e27a`)}catch{}})();import{S as e,_ as t,c as n,g as r,o as i,p as a,r as o,u as s,v as c,x as l}from"./schemas-D7isG28f.js";import{t as u}from"./defineProperty-B3rXD4Jv.js";var d=class{constructor({emitLocalChanges:e=!1,getStorage:t}={}){this.listeners=new Map,this.emitLocalChanges=e,this.getStorageSource=t??(()=>typeof window>`u`?null:window.localStorage)}getString(e){try{var t;return((t=this.getStorage())==null?void 0:t.getItem(e))??null}catch(t){return console.warn(`Failed to read localStorage item "${e}":`,t),null}}setString(e,t){let n=this.getStorage();if(n)try{let r=this.emitLocalChanges?n.getItem(e):null;n.setItem(e,t),this.emitLocalChanges&&this.emitStorageChange(e,t,r)}catch(t){throw console.error(`Failed to set localStorage item "${e}":`,t),t}}getJson(e,t){let n=this.getString(e);return t?this.parseJsonValue(e,n,t):this.parseJsonValue(e,n)}setJson(e,t){this.setString(e,JSON.stringify(t))}remove(e){let t=this.getStorage();if(t)try{let n=this.emitLocalChanges?t.getItem(e):null;t.removeItem(e),this.emitLocalChanges&&this.emitStorageChange(e,null,n)}catch(t){throw console.error(`Failed to remove localStorage item "${e}":`,t),t}}has(e){let t=this.getStorage();if(!t)return!1;try{return t.getItem(e)!==null}catch(t){return console.warn(`Failed to read localStorage item "${e}":`,t),!1}}getStoredKeys(e){let t=this.getStorage();if(!t)return[];let n=e?new Set(e):void 0,r=[];try{for(let e=0;e<t.length;e++){let i=t.key(e);i&&(!n||n.has(i))&&r.push(i)}}catch(e){console.warn(`Failed to enumerate localStorage keys:`,e)}return r}clear(e){e.forEach(e=>this.remove(e))}getSize(e){var t;return((t=this.getString(e))==null?void 0:t.length)??0}getTotalSize(e){return this.getStoredKeys(e).reduce((e,t)=>e+this.getSize(t),0)}onStringChange(e,t){let n=this.listeners.get(e)??new Set;n.add(t),this.listeners.set(e,n);let r=this.getStorage();if(!r||typeof window>`u`)return()=>this.unregisterStorageListener(e,t);let i=n=>{n.key===e&&n.storageArea===r&&t(n.newValue,n.oldValue)};return window.addEventListener(`storage`,i),()=>{window.removeEventListener(`storage`,i),this.unregisterStorageListener(e,t)}}onJsonChange(e,t){return this.onStringChange(e,(n,r)=>{t(this.parseJsonValue(e,n),this.parseJsonValue(e,r))})}getStorage(){try{return this.getStorageSource()}catch(e){return console.warn(`localStorage is unavailable:`,e),null}}parseJsonValue(e,t,n){if(t===null)return null;try{let e=JSON.parse(t);return n&&!n(e)?null:e}catch(t){return console.warn(`Failed to parse localStorage item "${e}":`,t),null}}emitStorageChange(e,t,n){var r;(r=this.listeners.get(e))==null||r.forEach(e=>e(t,n))}unregisterStorageListener(e,t){let n=this.listeners.get(e);n&&(n.delete(t),n.size===0&&this.listeners.delete(e))}},f=c().min(1),p=r({essential:a(!0),functional:n(),marketing:n()}),m={"user-theme":o([`light`,`dark`,`system`]),"guide-editor-preview-theme":o([`light`,`dark`,`system`]),"auth-token":f,"sidebar-state":o([`collapsed`,`expanded`]),"chat-sidebar-state":o([`collapsed`,`expanded`]),"things-view-mode-state":o([`grid`,`list`]),"guides-view-mode-state":o([`grid`,`list`]),"tickets-view-mode-state":o([`grid`,`list`]),"embeds-view-mode-state":o([`grid`,`list`]),"qr-codes-view-mode-state":o([`grid`,`list`]),"teams-view-mode-state":o([`grid`,`list`]),"teams-demo-filter-state":o([`all`,`demo`,`non-demo`]),"ops-incognito-mode":o([`enabled`,`disabled`]),"i18next-language":f,"last-opened-team":f,"last-opened-guide":f,"last-opened-ticket":f,"guide-editor-preview-aspect":f,"page-preview-visibility":o([`shown`,`hidden`]),"page-preview-placement":o([`docked`,`floating`]),"studio-redesign-splash":o([`pending`,`dismissed`])},h={"link-domain-by-team":t(c(),s(`kind`,[r({kind:a(`official`),origin:l()}),r({kind:a(`custom`),domainId:e()})])),"search-history":i(c()),"user-consent-accepted":n().nullable(),"user-consent-banner-dismissed":n().nullable(),"user-consent-settings":p.nullable(),"entitlements-override-enabled":n().nullable(),"last-opened-chat-sessions":t(c(),c()).nullable()};function g(e){return Object.keys(e)}var _=[...g(m),...g(h)],v=new Set(_);function y(e,t){if(t===null)return null;let n=m[e].safeParse(t);return n.success?n.data:null}function b(e,t){let n=h[e].safeParse(t);return n.success?n.data:null}function x(e,t){return m[e].parse(t)}function S(e,t){return h[e].parse(t)}function C(e){return v.has(e)}var w=new class{constructor(){u(this,`store`,new d({emitLocalChanges:!0}))}getString(e){return y(e,this.store.getString(e))}setString(e,t){this.store.setString(e,x(e,t))}getObject(e){return b(e,this.store.getJson(e))}setObject(e,t){this.store.setJson(e,S(e,t))}remove(e){this.store.remove(e)}has(e){return this.store.has(e)}updateObject(e,t){this.setObject(e,t(this.getObject(e)))}getStoredKeys(){return this.store.getStoredKeys(_).filter(C)}clear(e){this.store.clear(e??_)}getSize(e){return this.store.getSize(e)}getTotalSize(){return this.store.getTotalSize(_)}onStringStorageChange(e,t){return this.store.onStringChange(e,(n,r)=>{t(y(e,n),y(e,r))})}onObjectStorageChange(e,t){return this.store.onJsonChange(e,(n,r)=>{t(b(e,n),b(e,r))})}};export{w as t};
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.