1import{r as l,j as b}from"./vendor-query-Cpjl6gpd.js";import{$ as k}from"./index--qLfkH1z.js";import{u as J}from"./index--qLfkH1z.js";import"./vendor-react-ClNFnALs.js";var p=["light","dark"],E="(prefers-color-scheme: dark)",j=l.createContext(void 0),T={setTheme:e=>{},themes:[]},w=()=>{var e;return(e=l.useContext(j))!=null?e:T};l.memo(({forcedTheme:e,storageKey:n,attribute:m,enableSystem:h,enableColorScheme:i,defaultTheme:s,value:t,attrs:x,nonce:y})=>{let g=s==="system",u=m==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${x.map(o=>`'${o}'`).join(",")})`};`:`var d=document.documentElement,n='${m}',s='setAttribute';`,$=i?p.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",r=(o,c=!1,S=!0)=>{let d=t?t[o]:o,f=c?o+"|| ''":`'${d}'`,a="";return i&&S&&!c&&p.includes(o)&&(a+=`d.style.colorScheme = '${o}';`),m==="class"?c||d?a+=`c.add(${f})`:a+="null":d&&(a+=`d[s](n,${f})`),a},v=e?`!function(){${u}${r(e)}}()`:h?`!function(){try{${u}var e=localStorage.getItem('${n}');if('system'===e||(!e&&${g})){var t='${E}',m=window.matchMedia(t);if(m.media!==t||m.matches){${r("dark")}}else{${r("light")}}}else if(e){${t?`var x=${JSON.stringify(t)};`:""}${r(t?"x[e]":"e",!0)}}${g?"":"else{"+r(s,!1,!1)+"}"}${$}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${n}');if(e){${t?`var x=${JSON.stringify(t)};`:""}${r(t?"x[e]":"e",!0)}}else{${r(s,!1,!1)};}${$}}catch(t){}}();`;return l.createElement("script",{nonce:y,dangerouslySetInnerHTML:{__html:v}})});const L=({...e})=>{const{theme:n="system"}=w();return b.jsx(k,{theme:n,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};export{L as Toaster,J as toast};
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.