(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[755],{542:function(e,t,r){"use strict";r.d(t,{G:function(){return m}});var o=r(281),s=r(9087),n=r(7449),l=r.n(n),i=r(2265);let a=["light","dark"],u="(prefers-color-scheme: dark)",h=(e,t)=>{let r;if(!(typeof window>"u")){try{r=localStorage.getItem(e)||void 0}catch{}return r||t}},d=e=>(e||(e=window.matchMedia(u)),e.matches?"dark":"light");var c=r(1636),f=r(2281);let m=(0,i.memo)(({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:n=!0,storageKey:l="theme",themes:m=a,defaultTheme:g=r?"system":"light",attribute:b="class",skipNextHead:v,onChangeTheme:y,value:k={dark:"t_dark",light:"t_light"},children:w})=>{let[_,S]=(0,i.useState)(()=>h(l,g)),[C,$]=(0,i.useState)(()=>h(l)),j=k?Object.values(k):m,O=(0,s.z)(r=>{let o=d(r),s=()=>$(o);t?s():i.startTransition(()=>s()),"system"!==_||e||T(o,!1)}),T=(0,s.z)((e,t=!0,o=!0)=>{let s=k?.[e]||e;if(t)try{localStorage.setItem(l,e)}catch{}if("system"===e&&r){let e=d();s=k?.[e]||e}if(y?.(s.replace("t_","")),o){let e=document.documentElement;"class"===b?(e.classList.remove(...j),e.classList.add(s)):e.setAttribute(b,s)}});(0,o.LI)(()=>{let e=window.matchMedia(u);return e.addListener(O),O(e),()=>{e.removeListener(O)}},[]);let E=(0,s.z)(t=>{e?T(t,!0,!1):T(t),S(t)});(0,i.useEffect)(()=>{let e=e=>{e.key===l&&E(e.newValue||g)};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}},[g,E,l]),(0,o.LI)(()=>{if(!n)return;let t=e&&a.includes(e)?e:_&&a.includes(_)?_:"system"===_&&C||null;("u">typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")!==(t||"light")&&document.documentElement.style.setProperty("color-scheme",t)},[n,_,C,e]);let x=(0,s.z)(()=>{let e="dark"===C?["system","light","dark"]:["system","dark","light"];E(e[(e.indexOf(_)+1)%e.length])}),F=r?C:void 0,R=(0,i.useMemo)(()=>({theme:_,current:_,set:E,toggle:x,forcedTheme:e,resolvedTheme:"system"===_?C:_,themes:r?[...m,"system"]:m,systemTheme:F}),[_,E,x,e,C,r,m,F]);return(0,f.jsxs)(c.m.Provider,{value:R,children:[(0,f.jsx)(p,{forcedTheme:e,storageKey:l,systemTheme:C,attribute:b,value:k,enableSystem:r,defaultTheme:g,attrs:j,skipNextHead:v}),(0,i.useMemo)(()=>w,[w])]})}),p=(0,i.memo)(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:o,defaultTheme:s,value:n,attrs:i,skipNextHead:a})=>{let h="class"===r?`var d=document.documentElement.classList;${i.map(e=>`d.remove('${e}')`).join(";")};`:"var d=document.documentElement;",d=(e,t)=>{e=n?.[e]||e;let o=t?e:`'${e}'`;return"class"===r?`d.add(${o})`:`d.setAttribute('${r}', ${o})`},c="system"===s,m=(0,f.jsx)(f.Fragment,{children:e?(0,f.jsx)("script",{dangerouslySetInnerHTML:{__html:`!function(){${h}${d(e)}}()`}},"next-themes-script"):o?(0,f.jsx)("script",{dangerouslySetInnerHTML:{__html:`!function(){try {${h}var e=localStorage.getItem('${t}');${c?"":d(s)+";"}if("system"===e||(!e&&${c})){var t="${u}",m=window.matchMedia(t);m.media!==t||m.matches?${d("dark")}:${d("light")}}else if(e) ${n?`var x=${JSON.stringify(n)};`:""}${d(n?"x[e]":"e",!0)}}catch(e){}}()`}},"next-themes-script"):(0,f.jsx)("script",{dangerouslySetInnerHTML:{__html:`!function(){try{${h}var e=localStorage.getItem("${t}");if(e){${n?`var x=${JSON.stringify(n)};`:""}${d(n?"x[e]":"e",!0)}}else{${d(s)};}}catch(t){}}();`}},"next-themes-script")});return a?m:(0,f.jsx)(l(),{children:m})},(e,t)=>e.forcedTheme===t.forcedTheme)},1636:function(e,t,r){"use strict";r.d(t,{m:function(){return o}});let o=(0,r(2265).createContext)({toggle:()=>{},set:e=>{},themes:[]})},9010:function(e,t,r){"use strict";r.d(t,{U:function(){return n}});var o=r(281),s=r(2265);let n=({fallback:e="light"}={})=>{let t=e;if(o.C5){let r=[...document.documentElement.classList];t=r.includes("t_dark")?"dark":r.includes("t_light")?"light":e}return(0,s.useState)(t)}},1542:function(e,t,r){"use strict";r.d(t,{P:function(){return n}});var o=r(2265),s=r(1636);let n=()=>(0,o.useContext)(s.m)},6463:function(e,t,r){"use strict";var o=r(1169);r.o(o,"permanentRedirect")&&r.d(t,{permanentRedirect:function(){return o.permanentRedirect}}),r.o(o,"useParams")&&r.d(t,{useParams:function(){return o.useParams}}),r.o(o,"usePathname")&&r.d(t,{usePathname:function(){return o.usePathname}}),r.o(o,"useSearchParams")&&r.d(t,{useSearchParams:function(){return o.useSearchParams}}),r.o(o,"useServerInsertedHTML")&&r.d(t,{useServerInsertedHTML:function(){return o.useServerInsertedHTML}})},7449:function(e,t){"use strict";function r(){return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},622:function(){},3398:function(e,t,r){"use strict";var o=r(357);r(622);var s=r(2265),n=s&&"object"==typeof s&&"default"in s?s:{default:s},l=void 0!==o&&o.env&&!0,i=function(e){return"[object String]"===Object.prototype.toString.call(e)},a=function(){function e(e){var t=void 0===e?{}:e,r=t.name,o=void 0===r?"stylesheet":r,s=t.optimizeForSpeed,n=void 0===s?l:s;u(i(o),"`name` must be a string"),this._name=o,this._deletedRulePlaceholder="#"+o+"-deleted-rule____{}",u("boolean"==typeof n,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=n,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var a="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=a?a.getAttribute("content"):null}var t=e.prototype;return t.setOptimizeForSpeed=function(e){u("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},t.isOptimizeForSpeed=function(){return this._optimizeForSpeed},t.inject=function(){var e=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(l||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},t.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t>>0},d={};function c(e,t){if(!t)return"jsx-"+e;var r=String(t),o=e+r;return d[o]||(d[o]="jsx-"+h(e+"-"+r)),d[o]}function f(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var r=e+t;return d[r]||(d[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[r]}var m=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,o=void 0===r?null:r,s=t.optimizeForSpeed,n=void 0!==s&&s;this._sheet=o||new a({name:"styled-jsx",optimizeForSpeed:n}),this._sheet.inject(),o&&"boolean"==typeof n&&(this._sheet.setOptimizeForSpeed(n),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),o=r.styleId,s=r.rules;if(o in this._instancesCounts){this._instancesCounts[o]+=1;return}var n=s.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[o]=n,this._instancesCounts[o]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var o=this._fromServer&&this._fromServer[r];o?(o.parentNode.removeChild(o),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],o=e[1];return n.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:o}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,o=e.id;if(r){var s=c(o,r);return{styleId:s,rules:Array.isArray(t)?t.map(function(e){return f(s,e)}):[f(s,t)]}}return{styleId:c(o),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),p=s.createContext(null);p.displayName="StyleSheetContext";var g=n.default.useInsertionEffect||n.default.useLayoutEffect,b="undefined"!=typeof window?new m:void 0;function v(e){var t=b||s.useContext(p);return t&&("undefined"==typeof window?t.add(e):g(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}v.dynamic=function(e){return e.map(function(e){return c(e[0],e[1])}).join(" ")},t.style=v},8059:function(e,t,r){"use strict";e.exports=r(3398).style},7376:function(e,t,r){"use strict";r.d(t,{vc:function(){return ek}});let o={ussel:"userSelect",cur:"cursor",pe:"pointerEvents",col:"color",ff:"fontFamily",fos:"fontSize",fost:"fontStyle",fow:"fontWeight",ls:"letterSpacing",lh:"lineHeight",ta:"textAlign",tt:"textTransform",ww:"wordWrap",ac:"alignContent",ai:"alignItems",als:"alignSelf",b:"bottom",bg:"backgroundColor",bbc:"borderBottomColor",bblr:"borderBottomLeftRadius",bbrr:"borderBottomRightRadius",bbw:"borderBottomWidth",blc:"borderLeftColor",blw:"borderLeftWidth",bc:"borderColor",br:"borderRadius",bs:"borderStyle",brw:"borderRightWidth",brc:"borderRightColor",btc:"borderTopColor",btlr:"borderTopLeftRadius",btrr:"borderTopRightRadius",btw:"borderTopWidth",bw:"borderWidth",dsp:"display",f:"flex",fb:"flexBasis",fd:"flexDirection",fg:"flexGrow",fs:"flexShrink",fw:"flexWrap",h:"height",jc:"justifyContent",l:"left",m:"margin",mah:"maxHeight",maw:"maxWidth",mb:"marginBottom",mih:"minHeight",miw:"minWidth",ml:"marginLeft",mr:"marginRight",mt:"marginTop",mx:"marginHorizontal",my:"marginVertical",o:"opacity",ov:"overflow",p:"padding",pb:"paddingBottom",pl:"paddingLeft",pos:"position",pr:"paddingRight",pt:"paddingTop",px:"paddingHorizontal",py:"paddingVertical",r:"right",shac:"shadowColor",shar:"shadowRadius",shof:"shadowOffset",shop:"shadowOpacity",t:"top",w:"width",zi:"zIndex"};function s(e){return Object.entries(e)}function n(e){return Object.fromEntries(e)}function l(e){return 1/e===Number.NEGATIVE_INFINITY}o.bls="borderLeftStyle",o.brs="borderRightStyle",o.bts="borderTopStyle",o.bbs="borderBottomStyle",o.bxs="boxSizing",o.bxsh="boxShadow",o.ox="overflowX",o.oy="overflowY";let i=e=>"function"==typeof e?{name:e.name||"unnamed",mask:e}:e,a=(e,t)=>{let{skip:r}=t;return Object.fromEntries(Object.entries(e).filter(([e])=>!r||!(e in r)).map(([e,r])=>[e,function(e,t,r){let o,s=r.overrideStrategy,n=r.overrideSwap?.[e];if("u">typeof n)o=n,s="swap";else{let t=r.overrideShift?.[e];if("u">typeof t)o=t,s="shift";else{let t=r.override?.[e];"u">typeof t&&(o=t,s=r.overrideStrategy)}}return typeof o>"u"||"string"==typeof o?t:"swap"===s?o:t}(e,r,t)]))},u=()=>({name:"inverse-mask",mask:(e,t)=>a(n(s(e).map(([e,t])=>[e,-t])),t)}),h=({inverse:e}={},t)=>({name:"shift-mask",mask:(r,o)=>{let{override:s,overrideStrategy:n="shift",max:i,palette:u,min:h=0,strength:d=1}={...t,...o},c=Object.entries(r),f=i??(u?Object.values(u).length-1:Number.POSITIVE_INFINITY),m={};for(let[t,r]of c){if("string"==typeof r)continue;if("number"==typeof s?.[t]){let e=s[t];m[t]="shift"===n?r+e:e;continue}if("string"==typeof s?.[t]){m[t]=s[t];continue}let o=0===r?!l(r):r>=0,i=r+d*(o?1:-1)*(e?-1:1),a=o?Math.max(h,Math.min(f,i)):Math.min(-h,Math.max(-f,i));m[t]=a}return a(m,o)}}),d=e=>({name:"soften-mask",mask:h({},e).mask}),c=e=>({name:"strengthen-mask",mask:h({inverse:!0},e).mask}),f=new Map,m=(e,t)=>f.get(t||JSON.stringify(e)),p=(e,t)=>{let r={...t,cache:new Map};f.set(t.name||JSON.stringify(e),r),f.set(JSON.stringify(t.definition),r)},g=new Map;function b(e,t,r,o,s=!1){let n=s?"":JSON.stringify([o,e,t,r]);if(!s&&g.has(n))return g.get(n);let l={...Object.fromEntries(Object.entries(t).map(([t,r])=>[t,v(e,r)])),...r?.nonInheritedValues};return p(l,{palette:e,definition:t,options:r,name:o}),n&&g.set(n,l),l}let v=(e,t)=>{if(!e)throw Error("No palette!");if("string"==typeof t)return t;let r=e.length-1;return e[Math.min(Math.max(0,(0===t?!l(t):t>=0)?t:r+t),r)]};function y(e,t,r={},o){let s={...r.skip};if(e.options?.nonInheritedValues)for(let t in e.options.nonInheritedValues)s[t]=1;let n={parentName:o,palette:e.palette,...r,skip:s},l=t.mask(e.definition,n),i=b(e.palette,l);return{...e,cache:new Map,definition:l,theme:i}}class k{constructor(e){this.state=e}addPalettes(e){return this.state.palettes={...this.state.palettes,...e},this}addTemplates(e){return this.state.templates={...this.state.templates,...e},this}addMasks(e){return this.state.masks={...this.state.masks,...n(s(e).map(([e,t])=>[e,i(t)]))},this}_addedThemes=[];addThemes(e){return this._addedThemes.push({type:"themes",args:[e]}),this.state.themes={...this.state.themes,...e},this}addComponentThemes(e,t){return this.addChildThemes(e,t),this}addChildThemes(e,t){let r=this.state.themes;if(!r)throw Error("No themes defined yet, use addThemes first to set your base themes");this._addedThemes.push({type:"childThemes",args:[e,t]});let o=Object.keys(r),s=Object.keys(e),n=Object.fromEntries(o.flatMap(r=>{let o=t?.avoidNestingWithin;return o&&o.some(e=>r.startsWith(e)||r.endsWith(e))?[]:s.map(t=>{let o=`${r}_${t}`,s=e[t];return"avoidNestingWithin"in s&&s.avoidNestingWithin.some(e=>r.startsWith(e)||r.endsWith(e))?null:[o,s]}).filter(Boolean)})),l={...this.state.themes,...n};return this.state.themes=l,this}build(){if(!this.state.themes)return{};let e={},t=[];for(let r in this.state.themes){let o=r.split("_"),s=o.slice(0,o.length-1).join("_"),n=this.state.themes[r],l=Array.isArray(n)?n.find(e=>!e.parent||s.endsWith(e.parent)||s.startsWith(e.parent))||null:n;if(l){if("theme"in l)e[r]=l.theme;else if("mask"in l)t.push({parentName:s,themeName:r,mask:l});else{let{palette:t="",template:n,...i}=l;if(this.state.themes[s],!this.state.palettes)throw Error(`No palettes defined for theme with palette expected: ${r}`);let a=this.state.palettes[t||""],u=`${s}_${t}`;for(;!a&&u;)u in this.state.palettes?(a=this.state.palettes[u],t=u):u=u.split("_").slice(0,-1).join("_");if(!a)throw Error("No palette for theme");let h=this.state.templates?.[n]??this.state.templates?.[`${o[0]}_${n}`];if(!h)throw Error(`No template for theme ${r}: ${n}`);e[r]=function(e,t,r,o,s,n=!1){if(!e[t])throw Error(`No pallete: ${t}`);let l={...r};for(let o in r){let s=r[o];if("string"==typeof s&&"$"===s[0]){let[r,n]=s.split("."),i=r.slice(1),a=t.split("_")[0],u=e[i]||e[`${a}_${i}`];if(u){let e=v(u,+n);"u">typeof e&&(l[o]=e)}}}return b(e[t],l,o,s,n)}(this.state.palettes,t,h,i,r,!0)}}}for(let{mask:r,themeName:o,parentName:s}of t){let t=e[s];if(!t)continue;let{mask:n,...l}=r,i=this.state.masks?.[n];if(!i)throw Error(`No mask ${n}`);let a=this.state.themes[s];if(a&&"childOptions"in a){let{mask:e,...t}=a.childOptions;e&&(i=this.state.masks?.[e]),Object.assign(l,t)}e[o]=function(e,t,r={},o,s){let n=m(e,o);if(!n)throw Error("❌ Err2");let l=y(n,t,r,o);return p(l.theme,{definition:l.definition,palette:n.palette,name:s}),l.theme}(t,i,l,s,o)}return e}}let w=(...e)=>({name:"combine-mask",mask:(t,r)=>{let o=m(t,r.parentName),s;for(let n of e){if(!o)throw Error(`Nothing returned from mask: ${o}, for template: ${t} and mask: ${n.toString()}, given opts ${JSON.stringify(r,null,2)}`);let e=y(o,n,r);o=e,s=e.theme}return s}});d(),d({strength:2}),d({strength:3}),c(),u(),w(u(),d({strength:2})),w(u(),d({strength:3})),w(u(),d({strength:4})),w(u(),c({strength:2})),i((e,t)=>{let r=c().mask(e,t),o=d().mask(e,t);return{...r,borderColor:o.borderColor,borderColorHover:o.borderColorHover,borderColorPress:o.borderColorPress,borderColorFocus:o.borderColorFocus}}),i((e,t)=>{let r=d({strength:2}).mask(e,t),o=d({strength:1}).mask(e,t);return{...r,borderColor:o.borderColor,borderColorHover:o.borderColorHover,borderColorPress:o.borderColorPress,borderColorFocus:o.borderColorFocus}}),i((e,t)=>{let r=d({strength:2}).mask(e,t);return{...d({strength:3}).mask(e,t),borderColor:r.borderColor,borderColorHover:r.borderColorHover,borderColorPress:r.borderColorPress,borderColorFocus:r.borderColorFocus}}),i((e,t)=>{let r=a(e,t),o=d().mask(e,t);return{...r,borderColor:o.borderColor,borderColorHover:o.borderColorHover,borderColorPress:o.borderColorPress,borderColorFocus:o.borderColorFocus}}),i((e,t)=>{let r=a(e,t),o=d({strength:2}).mask(e,t);return{...r,borderColor:o.borderColor,borderColorHover:o.borderColorHover,borderColorPress:o.borderColorPress,borderColorFocus:o.borderColorFocus}});var _,S,C=r(7104);let $={blue:{blue1:"hsl(206, 100%, 99.2%)",blue2:"hsl(210, 100%, 98.0%)",blue3:"hsl(209, 100%, 96.5%)",blue4:"hsl(210, 98.8%, 94.0%)",blue5:"hsl(209, 95.0%, 90.1%)",blue6:"hsl(209, 81.2%, 84.5%)",blue7:"hsl(208, 77.5%, 76.9%)",blue8:"hsl(206, 81.9%, 65.3%)",blue9:"hsl(206, 100%, 50.0%)",blue10:"hsl(208, 100%, 47.3%)",blue11:"hsl(211, 100%, 43.2%)",blue12:"hsl(211, 100%, 15.0%)"},gray:{gray1:"hsl(0, 0%, 99.0%)",gray2:"hsl(0, 0%, 97.3%)",gray3:"hsl(0, 0%, 95.1%)",gray4:"hsl(0, 0%, 93.0%)",gray5:"hsl(0, 0%, 90.9%)",gray6:"hsl(0, 0%, 88.7%)",gray7:"hsl(0, 0%, 85.8%)",gray8:"hsl(0, 0%, 78.0%)",gray9:"hsl(0, 0%, 56.1%)",gray10:"hsl(0, 0%, 52.3%)",gray11:"hsl(0, 0%, 43.5%)",gray12:"hsl(0, 0%, 9.0%)"},green:{green1:"hsl(136, 50.0%, 98.9%)",green2:"hsl(138, 62.5%, 96.9%)",green3:"hsl(139, 55.2%, 94.5%)",green4:"hsl(140, 48.7%, 91.0%)",green5:"hsl(141, 43.7%, 86.0%)",green6:"hsl(143, 40.3%, 79.0%)",green7:"hsl(146, 38.5%, 69.0%)",green8:"hsl(151, 40.2%, 54.1%)",green9:"hsl(151, 55.0%, 41.5%)",green10:"hsl(152, 57.5%, 37.6%)",green11:"hsl(153, 67.0%, 28.5%)",green12:"hsl(155, 40.0%, 14.0%)"},orange:{orange1:"hsl(24, 70.0%, 99.0%)",orange2:"hsl(24, 83.3%, 97.6%)",orange3:"hsl(24, 100%, 95.3%)",orange4:"hsl(25, 100%, 92.2%)",orange5:"hsl(25, 100%, 88.2%)",orange6:"hsl(25, 100%, 82.8%)",orange7:"hsl(24, 100%, 75.3%)",orange8:"hsl(24, 94.5%, 64.3%)",orange9:"hsl(24, 94.0%, 50.0%)",orange10:"hsl(24, 100%, 46.5%)",orange11:"hsl(24, 100%, 37.0%)",orange12:"hsl(15, 60.0%, 17.0%)"},pink:{pink1:"hsl(322, 100%, 99.4%)",pink2:"hsl(323, 100%, 98.4%)",pink3:"hsl(323, 86.3%, 96.5%)",pink4:"hsl(323, 78.7%, 94.2%)",pink5:"hsl(323, 72.2%, 91.1%)",pink6:"hsl(323, 66.3%, 86.6%)",pink7:"hsl(323, 62.0%, 80.1%)",pink8:"hsl(323, 60.3%, 72.4%)",pink9:"hsl(322, 65.0%, 54.5%)",pink10:"hsl(322, 63.9%, 50.7%)",pink11:"hsl(322, 75.0%, 46.0%)",pink12:"hsl(320, 70.0%, 13.5%)"},purple:{purple1:"hsl(280, 65.0%, 99.4%)",purple2:"hsl(276, 100%, 99.0%)",purple3:"hsl(276, 83.1%, 97.0%)",purple4:"hsl(275, 76.4%, 94.7%)",purple5:"hsl(275, 70.8%, 91.8%)",purple6:"hsl(274, 65.4%, 87.8%)",purple7:"hsl(273, 61.0%, 81.7%)",purple8:"hsl(272, 60.0%, 73.5%)",purple9:"hsl(272, 51.0%, 54.0%)",purple10:"hsl(272, 46.8%, 50.3%)",purple11:"hsl(272, 50.0%, 45.8%)",purple12:"hsl(272, 66.0%, 16.0%)"},red:{red1:"hsl(359, 100%, 99.4%)",red2:"hsl(359, 100%, 98.6%)",red3:"hsl(360, 100%, 96.8%)",red4:"hsl(360, 97.9%, 94.8%)",red5:"hsl(360, 90.2%, 91.9%)",red6:"hsl(360, 81.7%, 87.8%)",red7:"hsl(359, 74.2%, 81.7%)",red8:"hsl(359, 69.5%, 74.3%)",red9:"hsl(358, 75.0%, 59.0%)",red10:"hsl(358, 69.4%, 55.2%)",red11:"hsl(358, 65.0%, 48.7%)",red12:"hsl(354, 50.0%, 14.6%)"},yellow:{yellow1:"hsl(60, 54.0%, 98.5%)",yellow2:"hsl(52, 100%, 95.5%)",yellow3:"hsl(55, 100%, 90.9%)",yellow4:"hsl(54, 100%, 86.6%)",yellow5:"hsl(52, 97.9%, 82.0%)",yellow6:"hsl(50, 89.4%, 76.1%)",yellow7:"hsl(47, 80.4%, 68.0%)",yellow8:"hsl(48, 100%, 46.1%)",yellow9:"hsl(53, 92.0%, 50.0%)",yellow10:"hsl(50, 100%, 48.5%)",yellow11:"hsl(42, 100%, 29.0%)",yellow12:"hsl(40, 55.0%, 13.5%)"}},j={blue:{blue1:"hsl(212, 35.0%, 9.2%)",blue2:"hsl(216, 50.0%, 11.8%)",blue3:"hsl(214, 59.4%, 15.3%)",blue4:"hsl(214, 65.8%, 17.9%)",blue5:"hsl(213, 71.2%, 20.2%)",blue6:"hsl(212, 77.4%, 23.1%)",blue7:"hsl(211, 85.1%, 27.4%)",blue8:"hsl(211, 89.7%, 34.1%)",blue9:"hsl(206, 100%, 50.0%)",blue10:"hsl(209, 100%, 60.6%)",blue11:"hsl(210, 100%, 66.1%)",blue12:"hsl(206, 98.0%, 95.8%)"},gray:{gray1:"hsl(0, 0%, 8.5%)",gray2:"hsl(0, 0%, 11.0%)",gray3:"hsl(0, 0%, 13.6%)",gray4:"hsl(0, 0%, 15.8%)",gray5:"hsl(0, 0%, 17.9%)",gray6:"hsl(0, 0%, 20.5%)",gray7:"hsl(0, 0%, 24.3%)",gray8:"hsl(0, 0%, 31.2%)",gray9:"hsl(0, 0%, 43.9%)",gray10:"hsl(0, 0%, 49.4%)",gray11:"hsl(0, 0%, 62.8%)",gray12:"hsl(0, 0%, 93.0%)"},green:{green1:"hsl(146, 30.0%, 7.4%)",green2:"hsl(155, 44.2%, 8.4%)",green3:"hsl(155, 46.7%, 10.9%)",green4:"hsl(154, 48.4%, 12.9%)",green5:"hsl(154, 49.7%, 14.9%)",green6:"hsl(154, 50.9%, 17.6%)",green7:"hsl(153, 51.8%, 21.8%)",green8:"hsl(151, 51.7%, 28.4%)",green9:"hsl(151, 55.0%, 41.5%)",green10:"hsl(151, 49.3%, 46.5%)",green11:"hsl(151, 50.0%, 53.2%)",green12:"hsl(137, 72.0%, 94.0%)"},orange:{orange1:"hsl(30, 70.0%, 7.2%)",orange2:"hsl(28, 100%, 8.4%)",orange3:"hsl(26, 91.1%, 11.6%)",orange4:"hsl(25, 88.3%, 14.1%)",orange5:"hsl(24, 87.6%, 16.6%)",orange6:"hsl(24, 88.6%, 19.8%)",orange7:"hsl(24, 92.4%, 24.0%)",orange8:"hsl(25, 100%, 29.0%)",orange9:"hsl(24, 94.0%, 50.0%)",orange10:"hsl(24, 100%, 58.5%)",orange11:"hsl(24, 100%, 62.2%)",orange12:"hsl(24, 97.0%, 93.2%)"},pink:{pink1:"hsl(318, 25.0%, 9.6%)",pink2:"hsl(319, 32.2%, 11.6%)",pink3:"hsl(319, 41.0%, 16.0%)",pink4:"hsl(320, 45.4%, 18.7%)",pink5:"hsl(320, 49.0%, 21.1%)",pink6:"hsl(321, 53.6%, 24.4%)",pink7:"hsl(321, 61.1%, 29.7%)",pink8:"hsl(322, 74.9%, 37.5%)",pink9:"hsl(322, 65.0%, 54.5%)",pink10:"hsl(323, 72.8%, 59.2%)",pink11:"hsl(325, 90.0%, 66.4%)",pink12:"hsl(322, 90.0%, 95.8%)"},purple:{purple1:"hsl(284, 20.0%, 9.6%)",purple2:"hsl(283, 30.0%, 11.8%)",purple3:"hsl(281, 37.5%, 16.5%)",purple4:"hsl(280, 41.2%, 20.0%)",purple5:"hsl(279, 43.8%, 23.3%)",purple6:"hsl(277, 46.4%, 27.5%)",purple7:"hsl(275, 49.3%, 34.6%)",purple8:"hsl(272, 52.1%, 45.9%)",purple9:"hsl(272, 51.0%, 54.0%)",purple10:"hsl(273, 57.3%, 59.1%)",purple11:"hsl(275, 80.0%, 71.0%)",purple12:"hsl(279, 75.0%, 95.7%)"},red:{red1:"hsl(353, 23.0%, 9.8%)",red2:"hsl(357, 34.4%, 12.0%)",red3:"hsl(356, 43.4%, 16.4%)",red4:"hsl(356, 47.6%, 19.2%)",red5:"hsl(356, 51.1%, 21.9%)",red6:"hsl(356, 55.2%, 25.9%)",red7:"hsl(357, 60.2%, 31.8%)",red8:"hsl(358, 65.0%, 40.4%)",red9:"hsl(358, 75.0%, 59.0%)",red10:"hsl(358, 85.3%, 64.0%)",red11:"hsl(358, 100%, 69.5%)",red12:"hsl(351, 89.0%, 96.0%)"},yellow:{yellow1:"hsl(45, 100%, 5.5%)",yellow2:"hsl(46, 100%, 6.7%)",yellow3:"hsl(45, 100%, 8.7%)",yellow4:"hsl(45, 100%, 10.4%)",yellow5:"hsl(47, 100%, 12.1%)",yellow6:"hsl(49, 100%, 14.3%)",yellow7:"hsl(49, 90.3%, 18.4%)",yellow8:"hsl(50, 100%, 22.0%)",yellow9:"hsl(53, 92.0%, 50.0%)",yellow10:"hsl(54, 100%, 68.0%)",yellow11:"hsl(48, 100%, 47.0%)",yellow12:"hsl(53, 100%, 91.0%)"}},O="rgba(0,0,0,0.04)",T="rgba(0,0,0,0.085)",E="rgba(0,0,0,0.2)",x="rgba(0,0,0,0.3)",F={...j.blue,...j.gray,...j.green,...j.orange,...j.pink,...j.purple,...j.red,...j.yellow},R={...$.blue,...$.gray,...$.green,...$.orange,...$.pink,...$.purple,...$.red,...$.yellow},P={white0:"rgba(255,255,255,0)",white075:"rgba(255,255,255,0.75)",white05:"rgba(255,255,255,0.5)",white025:"rgba(255,255,255,0.25)",black0:"rgba(10,10,10,0)",black075:"rgba(10,10,10,0.75)",black05:"rgba(10,10,10,0.5)",black025:"rgba(10,10,10,0.25)",white1:"#fff",white2:"#f8f8f8",white3:"hsl(0, 0%, 96.3%)",white4:"hsl(0, 0%, 94.1%)",white5:"hsl(0, 0%, 92.0%)",white6:"hsl(0, 0%, 90.0%)",white7:"hsl(0, 0%, 88.5%)",white8:"hsl(0, 0%, 81.0%)",white9:"hsl(0, 0%, 56.1%)",white10:"hsl(0, 0%, 50.3%)",white11:"hsl(0, 0%, 42.5%)",white12:"hsl(0, 0%, 9.0%)",black1:"#050505",black2:"#151515",black3:"#191919",black4:"#232323",black5:"#282828",black6:"#323232",black7:"#424242",black8:"#494949",black9:"#545454",black10:"#626262",black11:"#a5a5a5",black12:"#fff",...X(R,"Light"),...X(F,"Dark")},I=(()=>{let e=(e,t=0)=>e.replace("%)",`%, ${t})`).replace("hsl(","hsla("),t=(t,r)=>{let o=Object.values(t),s=o.length-4,n=Object.values(r),l=n[0],i=n[n.length-1];return[l,e(o[0],0),e(o[0],.25),e(o[0],.5),e(o[0],.75),...o,e(o[s],.75),e(o[s],.5),e(o[s],.25),e(o[s],0),i]},r={light:P.blue4Light,dark:P.blue4Dark},o=[r.light,P.white0,P.white025,P.white05,P.white075,P.white1,P.white2,P.white3,P.white4,P.white5,P.white6,P.white7,P.white8,P.white9,P.white10,P.white11,P.white12,P.black075,P.black05,P.black025,P.black0,r.dark],s=[r.dark,P.black0,P.black025,P.black05,P.black075,P.black1,P.black2,P.black3,P.black4,P.black5,P.black6,P.black7,P.black8,P.black9,P.black10,P.black11,P.black12,P.white075,P.white05,P.white025,P.white0,r.light],n=K($),l=Y(n.map((e,r)=>[`light_${e}`,t($[e],$[n[(r+1)%n.length]])])),i=K(j),a=Y(i.map((e,r)=>[`dark_${e}`,t(j[e],$[i[(r+1)%i.length]])]));return{light:o,dark:s,...{...l,...a}}})(),M=e=>{let t="light"===e?-1:1,r=-t,o={accentBackground:0,accentColor:-0,background0:1,background025:2,background05:3,background075:4,color1:5,color2:6,color3:7,color4:8,color5:9,color6:10,color7:11,color8:12,color9:13,color10:14,color11:15,color12:16,color0:-1,color025:-2,color05:-3,color075:-4,background:5,backgroundHover:5+t,backgroundPress:5+r,backgroundFocus:5+r,borderColor:8,borderColorHover:8+t,borderColorPress:8+r,borderColorFocus:8,color:-5,colorHover:-6,colorPress:-5,colorFocus:-6,colorTransparent:-1,placeholderColor:-8,outlineColor:-2},s={background:o.background+1,backgroundHover:o.backgroundHover+1,backgroundPress:o.backgroundPress+1,backgroundFocus:o.backgroundFocus+1,borderColor:o.borderColor+1,borderColorHover:o.borderColorHover+1,borderColorFocus:o.borderColorFocus+1,borderColorPress:o.borderColorPress+1},n={background:o.background+2,backgroundHover:o.backgroundHover+2,backgroundPress:o.backgroundPress+2,backgroundFocus:o.backgroundFocus+2,borderColor:o.borderColor+2,borderColorHover:o.borderColorHover+2,borderColorFocus:o.borderColorFocus+2,borderColorPress:o.borderColorPress+2},l={background:o.background+3,backgroundHover:o.backgroundHover+3,backgroundPress:o.backgroundPress+3,backgroundFocus:o.backgroundFocus+3,borderColor:o.borderColor+3,borderColorHover:o.borderColorHover+3,borderColorFocus:o.borderColorFocus+3,borderColorPress:o.borderColorPress+3},i={background:o.background+5,backgroundHover:o.background+5,backgroundPress:o.backgroundPress+5,backgroundFocus:o.backgroundFocus+5},a={...i,borderColor:i.background,borderColorHover:i.backgroundHover,borderColorFocus:i.backgroundFocus,borderColorPress:i.backgroundPress},u={color:s.background,colorHover:s.backgroundHover,colorPress:s.backgroundPress,colorFocus:s.backgroundFocus,background:o.color,backgroundHover:o.colorHover,backgroundPress:o.colorPress,backgroundFocus:o.colorFocus,borderColor:o.color-2,borderColorHover:o.color-3,borderColorFocus:o.color-4,borderColorPress:o.color-5},h={...u,background:o.color-2,backgroundHover:o.colorHover-2,backgroundPress:o.colorPress-2,backgroundFocus:o.colorFocus-2,borderColor:o.color-2-2,borderColorHover:o.color-3-2,borderColorFocus:o.color-4-2,borderColorPress:o.color-5-2},d={color:o.color-1,colorHover:o.colorHover-1,colorPress:o.colorPress-1,colorFocus:o.colorFocus-1},c={color:o.color-2,colorHover:o.colorHover-2,colorPress:o.colorPress-2,colorFocus:o.colorFocus-2};return{base:o,alt1:d,alt2:c,surface1:s,surface2:n,surface3:l,inverseSurface1:u,inverseActive:h,surfaceActive:a}},z=M("light"),A=M("dark"),H={...Y(K(z).map(e=>[`light_${e}`,z[e]])),...Y(K(A).map(e=>[`dark_${e}`,A[e]]))},L={light:{...R,shadowColor:T,shadowColorHover:T,shadowColorPress:O,shadowColorFocus:O},dark:{...F,shadowColor:x,shadowColorHover:x,shadowColorPress:E,shadowColorFocus:E}},N=[{parent:"light",theme:{background:"rgba(0,0,0,0.5)"}},{parent:"dark",theme:{background:"rgba(0,0,0,0.8)"}}],W=[{parent:"active",template:"inverseActive"},{parent:"",template:"inverseSurface1"}],B=[{parent:"active",template:"surfaceActive"},{parent:"",template:"surface1"}],D=[{parent:"active",template:"surfaceActive"},{parent:"",template:"surface2"}],V=new k({}).addPalettes(I).addTemplates(H).addThemes({light:{template:"base",palette:"light",nonInheritedValues:L.light},dark:{template:"base",palette:"dark",nonInheritedValues:L.dark}}).addChildThemes({orange:{palette:"orange",template:"base"},yellow:{palette:"yellow",template:"base"},green:{palette:"green",template:"base"},blue:{palette:"blue",template:"base"},purple:{palette:"purple",template:"base"},pink:{palette:"pink",template:"base"},red:{palette:"red",template:"base"},gray:{palette:"gray",template:"base"}}).addChildThemes({alt1:{template:"alt1"},alt2:{template:"alt2"},active:{template:"surface3"},surface1:{template:"surface1"},surface2:{template:"surface2"},surface3:{template:"surface3"},surface4:{template:"surfaceActive"}}).addComponentThemes({ListItem:{template:"surface1"},SelectTrigger:B,Card:B,Button:[{parent:"active",template:"surfaceActive"},{parent:"",template:"surface3"}],Checkbox:D,Switch:D,SwitchThumb:W,TooltipContent:D,Progress:{template:"surface1"},RadioGroupItem:D,TooltipArrow:{template:"surface1"},SliderTrackActive:{template:"surface3"},SliderTrack:{template:"surface1"},SliderThumb:W,Tooltip:W,ProgressIndicator:W,SheetOverlay:N,DialogOverlay:N,ModalOverlay:N,Input:B,TextArea:B},{avoidNestingWithin:["alt1","alt2","surface1","surface2","surface3","surface4"]}).build(),G={$0:0,"$0.25":2,"$0.5":4,"$0.75":8,$1:20,"$1.5":24,$2:28,"$2.5":32,$3:36,"$3.5":40,$4:44,$true:44,"$4.5":48,$5:52,$6:64,$7:74,$8:84,$9:94,$10:104,$11:124,$12:144,$13:164,$14:184,$15:204,$16:224,$17:224,$18:244,$19:264,$20:284},U=Object.entries(G).map(([e,t])=>[e,0===t?0:2===t?.5:4===t?1:8===t?1.5:t<=16?Math.round(.333*t):Math.floor(.7*t-12)]),J=U.slice(1).map(([e,t])=>[`-${e.slice(1)}`,-t]),q=(_={color:P,radius:{0:0,1:3,2:5,3:7,4:9,true:9,5:10,6:16,7:19,8:22,9:26,10:34,11:42,12:50},zIndex:{0:0,1:100,2:200,3:300,4:400,5:500},space:{...Object.fromEntries(U),...Object.fromEntries(J)},size:G},(0,C.D)(_));function X(e,t){return Object.fromEntries(Object.entries(e).map(([e,r])=>[`${e}${t}`,r]))}function Y(e){return Object.fromEntries(e)}function K(e){return Object.keys(e)}var Q=r(281),Z=r(1333),ee=r(5390),et=r(2265);let er="cubic-bezier(0.215, 0.610, 0.355, 1.000)",eo=function(e){let t=new WeakMap;return{animations:e,usePresence:ee.oO,ResetPresence:ee.il,supportsCSSVars:!0,useAnimatedNumber(e){let[r,o]=(0,et.useState)(e);return{getInstance:()=>o,getValue:()=>r,setValue(e,r,s){o(e);let n=t.get(o);n&&n.forEach(t=>t(e)),s?.()},stop(){}}},useAnimatedNumberReaction({value:e},r){(0,et.useEffect)(()=>{let o=e.getInstance(),s=t.get(o);if(!s){let e=new Set;t.set(o,e),s=e}return s.add(r),()=>{s?.delete(r)}},[])},useAnimatedNumberStyle:(e,t)=>t(e.getValue()),useAnimations:({props:t,presence:r,style:o,componentState:s,stateRef:n})=>{s.unmounted;let l=r?.[0]===!1,i=r?.[1],[a,u]=[].concat(t.animation),h=e[a],d=t.animateOnly??["all"];return(0,Q.LI)(()=>{let e=n.current.host;if(!i||!l||!e)return;let t=()=>{i?.()};return e.addEventListener("transitionend",t),e.addEventListener("transitioncancel",t),()=>{e.removeEventListener("transitionend",t),e.removeEventListener("transitioncancel",t)}},[i,l]),h?(Array.isArray(o.transform)&&(o.transform=(0,Z.m)(o.transform)),o.transition=d.map(t=>{let r=e[u?.[t]]??h;return`${t} ${r}`}).join(", "),{style:o}):null}}}({"75ms":"ease-in 75ms","100ms":"ease-in 100ms","200ms":"ease-in 200ms",bouncy:"ease-in 200ms",superBouncy:"ease-in 500ms",lazy:"ease-in 1000ms",medium:"ease-in 300ms",slow:"ease-in 500ms",quick:`${er} 400ms`,quicker:`${er} 300ms`,quickest:`${er} 200ms`,tooltip:"ease-in 400ms"}),es=["100","200","300","400","500","600","700","800","900"],en=(e,t,r)=>{if("string"==typeof e)return e;let o=Object.keys(e),s=e[o[0]];return Object.fromEntries([...new Set([...t,...o])].map(t=>{let o=e[t]??r??s;return s=o,r=o,[t,o]}))},el=e=>{let t=Object.keys(e.size);return Object.freeze(Object.fromEntries(Object.entries(e).map(([r,o])=>[r,en(o,"face"===r?es:t,"face"===r?{normal:e.family}:void 0)])))};var ei=r(2202);let ea=(e={},{sizeLineHeight:t=e=>e+10,sizeSize:r=e=>1*e}={})=>{let o=Object.fromEntries(Object.entries({...eu,...e.size}).map(([e,t])=>[e,r(+t)]));return el({family:Q.$L?'Inter, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif':"Inter",lineHeight:Object.fromEntries(Object.entries(o).map(([e,r])=>[e,t((0,ei.Ve)(r))])),weight:{4:"300"},letterSpacing:{4:0},...e,size:o})},eu={1:11,2:12,3:13,4:14,true:14,5:16,6:18,7:20,8:23,9:30,10:46,11:55,12:62,13:72,14:92,15:114,16:134},eh={1:11,2:12,3:13,4:14,5:15,6:16,7:18,8:21,9:28,10:42,11:52,12:62,13:72,14:92,15:114,16:124},ed={1:10,2:11,3:12,4:14,5:15,6:16,7:20,8:22,9:30,10:42,11:52,12:62,13:72,14:92,15:114,16:124},ec=((e={})=>el({family:Q.$L?"Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace":"Silkscreen",size:eh,lineHeight:Object.fromEntries(Object.entries(e.size||eh).map(([e,t])=>[e,"number"==typeof t?Math.round(1.2*t+6):t])),weight:{4:"300"},letterSpacing:{4:1,5:3,6:3,9:-2,10:-3,12:-4},...e}))(),ef=ea({size:{5:13,6:15,9:32,10:44},transform:{6:"uppercase",7:"none"},weight:{6:"400",7:"700"},color:{6:"$colorFocus",7:"$color"},letterSpacing:{5:2,6:1,7:0,8:0,9:-1,10:-1.5,12:-2,14:-3,15:-4},face:{700:{normal:"InterBold"},800:{normal:"InterBold"},900:{normal:"InterBold"}}},{sizeLineHeight:e=>Math.round(1.1*e+(e<30?10:5))}),em=ea({weight:{1:"400",7:"600"}},{sizeSize:e=>Math.round(e),sizeLineHeight:e=>Math.round(1.1*e+(e>=12?8:4))}),ep=function(e,t={},{sizeLineHeight:r=e=>1.35*e}={}){let o=t.size||ed;return el({family:e,size:o,lineHeight:Object.fromEntries(Object.entries(o).map(([e,t])=>[e,r(+t)])),weight:{0:"300"},letterSpacing:{4:0},...t})}('"ui-monospace", "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace',{weight:{1:"500"},size:{1:11,2:12,3:13,4:14,5:16,6:18,7:20,8:22,9:30,10:42,11:52,12:62,13:72,14:92,15:114,16:124}},{sizeLineHeight:e=>1.5*e});var eg=r(9533);let eb=globalThis.matchMedia,ev=(S={xl:{maxWidth:1650},lg:{maxWidth:1280},md:{maxWidth:1020},sm:{maxWidth:800},xs:{maxWidth:660},xxs:{maxWidth:390},gtXs:{minWidth:661},gtSm:{minWidth:801},gtMd:{minWidth:1021},gtLg:{minWidth:1281},gtXl:{minWidth:1651}},(0,eg.D)(eb),S);var ey=r(357);globalThis.global||=globalThis;let ek={animations:eo,defaultFont:"body",shouldAddPrefersColorThemes:!0,themeClassNameOnRoot:!0,themes:"true"===ey.env.TAMAGUI_OPTIMIZE_THEMES?{}:V,media:ev,shorthands:o,tokens:q,fonts:{heading:ef,body:em,mono:ep,silkscreen:ec},mediaQueryDefaultActive:{xl:!0,lg:!0,md:!0,sm:!0,xs:!0,xxs:!1},selectionStyles:e=>e.color5?{backgroundColor:e.color5,color:e.color11}:null}},7104:function(e,t,r){"use strict";r.d(t,{D:function(){return l}});var o=r(2145),s=r(2202);let n=new WeakMap,l=(e,t="",r=!1)=>{if(n.has(e))return e;let i={},a=0;for(let n in e){a++;let u=e[n],h="$"===n[0],d=h?n:`$${n}`,c=h?d.slice(1):n;if((0,s.cG)(u)){i[c]=u;continue}let f=(0,o.M)(c),m=r?f.slice(0,2):a;if(m=t?`${t}-${m}`:f,u&&"object"==typeof u){i[c]=l(e[c],m,!1);continue}let p=(0,s.cG)(u)?u:(0,s.Os)({val:u,name:m,key:d});i[c]=p}return n.set(i,!0),i}},3742:function(e,t,r){"use strict";r.d(t,{KO:function(){return u}});var o=r(2265),s=r(9910);let n=(0,o.createContext)(void 0),l=e=>{let t=(0,o.useContext)(n);return(null==e?void 0:e.store)||t||(0,s.K7)()},i=e=>"function"==typeof(null==e?void 0:e.then),a=o.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e});function u(e,t){return[function(e,t){let r=l(t),[[s,n,u],h]=(0,o.useReducer)(t=>{let o=r.get(e);return Object.is(t[0],o)&&t[1]===r&&t[2]===e?t:[o,r,e]},void 0,()=>[r.get(e),r,e]),d=s;(n!==r||u!==e)&&(h(),d=r.get(e));let c=null==t?void 0:t.delay;return(0,o.useEffect)(()=>{let t=r.sub(e,()=>{if("number"==typeof c){setTimeout(h,c);return}h()});return h(),t},[r,e,c]),(0,o.useDebugValue)(d),i(d)?a(d):d}(e,t),function(e,t){let r=l(t);return(0,o.useCallback)(function(){for(var t=arguments.length,o=Array(t),s=0;sr};return"function"==typeof e?o.read=e:(o.init=e,o.read=l,o.write=i),t&&(o.write=t),o}function l(e){return e(this)}function i(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}let a=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,u=e=>"init"in e,h=e=>!!e.write,d=new WeakMap,c=(e,t)=>{d.set(e,t),e.catch(()=>{}).finally(()=>d.delete(e))},f=(e,t)=>{let r=d.get(e);r&&(d.delete(e),r(t))},m=(e,t)=>{e.status="fulfilled",e.value=t},p=(e,t)=>{e.status="rejected",e.reason=t},g=e=>"function"==typeof(null==e?void 0:e.then),b=(e,t)=>!!e&&"v"in e&&"v"in t&&Object.is(e.v,t.v),v=(e,t)=>!!e&&"e"in e&&"e"in t&&Object.is(e.e,t.e),y=e=>!!e&&"v"in e&&e.v instanceof Promise,k=(e,t)=>"v"in e&&"v"in t&&e.v.orig&&e.v.orig===t.v.orig,w=e=>{if("e"in e)throw e.e;return e.v},_=()=>{let e,t;let r=new WeakMap,o=new WeakMap,s=[],n=new WeakMap;e=new Set,t=new Set;let l=e=>r.get(e),i=(e,t)=>{t.d.forEach((t,r)=>{if(!n.has(r)){let e=l(r);n.set(r,[e,new Set]),e&&i(r,e)}n.get(r)[1].add(e)})},d=(e,t)=>{var o;Object.freeze(t);let a=l(e);if(r.set(e,t),null==(o=s[s.length-1])||o.add(e),n.has(e)||(n.set(e,[a,new Set]),i(e,t)),y(a)){let e="v"in t?t.v instanceof Promise?t.v:Promise.resolve(t.v):Promise.reject(t.e);a.v!==e&&f(a.v,e)}},_=(e,t,r,o)=>{let s=new Map(o?t.d:null),n=!1;r.forEach((r,o)=>{!r&&a(e,o)&&(r=t),r?(s.set(o,r),t.d.get(o)!==r&&(n=!0)):console.warn("[Bug] atom state not found")}),(n||t.d.size!==s.size)&&(t.d=s)},S=(e,t,r,o)=>{let s=l(e),n={d:(null==s?void 0:s.d)||new Map,v:t};if(r&&_(e,n,r,o),b(s,n)&&s.d===n.d)return s;if(y(s)&&y(n)&&k(s,n)){if(s.d===n.d)return s;n.v=s.v}return d(e,n),n},C=(e,t,r,s)=>{if(g(t)){let n;let i=()=>{let t=l(e);if(!y(t)||t.v!==a)return;let s=S(e,a,r);o.has(e)&&t.d!==s.d&&P(e,s,t.d)},a=new Promise((e,r)=>{let o=!1;t.then(t=>{o||(o=!0,m(a,t),e(t),i())},e=>{o||(o=!0,p(a,e),r(e),i())}),n=t=>{o||(o=!0,t.then(e=>m(a,e),e=>p(a,e)),e(t))}});return a.orig=t,a.status="pending",c(a,e=>{e&&(n(e),null==s||s())}),S(e,a,r,!0)}return S(e,t,r)},$=(e,t,r)=>{let o=l(e),s={d:(null==o?void 0:o.d)||new Map,e:t};return(r&&_(e,s,r),v(o,s)&&o.d===s.d)?o:(d(e,s),s)},j=(e,t)=>{let r,s;let n=l(e);if(!(null==t?void 0:t(e))&&n&&(o.has(e)||Array.from(n.d).every(([r,o])=>{if(r===e)return!0;let s=j(r,t);return s===o||b(s,o)})))return n;let i=new Map,d=!0;try{let o=e.read(r=>{if(a(e,r)){let e=l(r);if(e)return i.set(r,e),w(e);if(u(r))return i.set(r,void 0),r.init;throw Error("no atom init")}let o=j(r,t);return i.set(r,o),w(o)},{get signal(){return r||(r=new AbortController),r.signal},get setSelf(){return h(e)||console.warn("setSelf function cannot be used with read-only atom"),!s&&h(e)&&(s=(...t)=>{if(d&&console.warn("setSelf function cannot be called in sync"),!d)return E(e,...t)}),s}});return C(e,o,i,()=>null==r?void 0:r.abort())}catch(t){return $(e,t,i)}finally{d=!1}},O=e=>{let t=e=>{var t,r;let s=new Set(null==(t=o.get(e))?void 0:t.t);return null==(r=n.get(e))||r[1].forEach(e=>{s.add(e)}),s},r=[],s=new Set,a=e=>{if(!s.has(e)){for(let r of(s.add(e),t(e)))e!==r&&a(r);r.push(e)}};a(e);let u=new Set([e]),h=e=>s.has(e);for(let e=r.length-1;e>=0;--e){let t=r[e],o=l(t);if(!o)continue;let n=!1;for(let e of o.d.keys())if(e!==t&&u.has(e)){n=!0;break}if(n){let e=j(t,h);i(t,e),b(o,e)||u.add(t)}s.delete(t)}},T=(t,...r)=>t.write(e=>w(j(e)),(r,...o)=>{let n;let i=s.length>0;if(i||s.push(new Set([r])),a(t,r)){if(!u(r))throw Error("atom not writable");b(l(r),C(r,o[0]))||O(r)}else n=T(r,...o);if(!i){let t=I(s.pop());e.forEach(e=>e({type:"async-write",flushed:t}))}return n},...r),E=(t,...r)=>{s.push(new Set([t]));let o=T(t,...r),n=I(s.pop());return e.forEach(e=>e({type:"write",flushed:n})),o},x=(e,r,s)=>{var n;let i=o.get(e);if(i)return r&&i.t.add(r),i;let a=s||[];null==(n=l(e))||n.d.forEach((t,r)=>{r!==e&&x(r,e,a)}),j(e);let u={t:new Set(r&&[r]),l:new Set};if(o.set(e,u),t.add(e),h(e)&&e.onMount){let{onMount:t}=e;a.push(()=>{let r=t((...t)=>E(e,...t));r&&(u.u=r)})}return s||a.forEach(e=>e()),u},F=(e,t)=>!t.l.size&&(!t.t.size||1===t.t.size&&t.t.has(e)),R=(e,r)=>{if(!F(e,r))return;let s=r.u;s&&s(),o.delete(e),t.delete(e);let n=l(e);n?(y(n)&&f(n.v),n.d.forEach((t,r)=>{if(r!==e){let t=o.get(r);t&&(t.t.delete(e),R(r,t))}})):console.warn("[Bug] could not find atom state to unmount",e)},P=(e,t,r)=>{let s=new Set(t.d.keys()),n=new Set;null==r||r.forEach((t,r)=>{if(s.has(r)){s.delete(r);return}n.add(r);let l=o.get(r);l&&l.t.delete(e)}),s.forEach(t=>{x(t,e)}),n.forEach(e=>{let t=o.get(e);t&&R(e,t)})},I=e=>{let t;t=new Set;let r=[],s=e=>{var t;if(!n.has(e))return;let[o,i]=n.get(e);n.delete(e),r.push([e,o]),i.forEach(s),null==(t=l(e))||t.d.forEach((e,t)=>s(t))};return e.forEach(s),r.forEach(([e,r])=>{let s=l(e);if(!s){console.warn("[Bug] no atom state to flush");return}if(s!==r){let n=o.get(e);n&&s.d!==(null==r?void 0:r.d)&&P(e,s,null==r?void 0:r.d),n&&!(!y(r)&&(b(r,s)||v(r,s)))&&(n.l.forEach(e=>e()),t.add(e))}}),t};return{get:e=>w(j(e)),set:E,sub:(t,r)=>{let o=x(t),s=I([t]),n=o.l;return n.add(r),e.forEach(e=>e({type:"sub",flushed:s})),()=>{n.delete(r),R(t,o),e.forEach(e=>e({type:"unsub"}))}},dev_subscribe_store:t=>(e.add(t),()=>{e.delete(t)}),dev_get_mounted_atoms:()=>t.values(),dev_get_atom_state:e=>r.get(e),dev_get_mounted:e=>o.get(e),dev_restore_atoms:t=>{for(let[e,r]of(s.push(new Set),t))u(e)&&(C(e,r),O(e));let r=I(s.pop());e.forEach(e=>e({type:"restore",flushed:r}))}}};Symbol("CONTINUE_PROMISE");let S=()=>(o||(o=_(),globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=o),globalThis.__JOTAI_DEFAULT_STORE__!==o&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044")),o)},1564:function(e,t,r){"use strict";r.d(t,{_:function(){return w}});var o=r(281),s=r(5986),n=r(7104),l=r(2145),i=r(9242),a=r(2202),u=r(357);let h=e=>{c.set((0,a.Ve)(e),e)},d=(e,t=!1)=>`--${u.env.TAMAGUI_CSS_VARIABLE_PREFIX||""}${(0,a.bK)(e.name,!1)}:${t||"number"!=typeof e.val?e.val:`${e.val}px`}`,c=new Map;var f=r(357);let m=".t_dark",p=".t_light",g=e=>e===m||e===p||e.startsWith(".t_dark ")||e.startsWith(".t_light ");var b=r(7393);let v={};var y=r(9097);let k=new WeakMap,w=function(e){let t;if(k.has(e))return e;let r={},u=(0,n.D)(e.tokens||{});if(e.tokens){let e={};for(let t in u){r[t]={},e[t]={};let o=u[t];for(let s in o){let n=o[s],l=`$${s}`;r[t][l]=n,e[t][l]=n,e[t][s]=n}}(0,s.d0)(e)}if(e.themes){let o=0===Object.keys(e.themes).length;t=(0,b.jc)(o,r)}(0,b.OJ)();let w=null,_;if(e.fonts){let t=Object.fromEntries(Object.entries(e.fonts).map(([e,t])=>[e,(0,n.D)(t,"f",!0)]));_=(()=>{let e={};for(let r in t){let o=function(e){let t={};for(let r in e){let o=e[r];if("family"===r||"face"===r)t[r]=o;else for(let e in t[r]={},o){let s=o[e];s.val?.[0]==="$"&&(s=s.val),t[r][`$${e}`]=s}}return t}(t[r]);e[`$${r}`]=o,!w&&o.size&&(w=new Set(Object.keys(o.size)))}return e})()}let S={},C=(()=>{let r=[],n=[],b={};for(let e in u)for(let t in u[e]){let r=u[e][t];S[`$${e}.${t}`]=r,o.$L&&(h(r),n.push(d(r,"zIndex"===e)))}if(o.$L){let t=function(e,t=""){return`:root${t} {${o}${[...e].join(`;${o}`)}${o}}`};for(let e in _){let t=_[e],[r,o]=e.includes("_")?e.split("_"):[e],s=function(e){let t=[];for(let r in e)if("face"!==r){if("family"===r){let o=e[r];h(o),t.push(d(o))}else for(let o in e[r])if("string"!=typeof e[r][o]){let s=e[r][o];h(s),t.push(d(s))}}return t}(t);b[e]={name:r.slice(1),declarations:s,language:o}}let o=e.cssStyleSeparator||"";if(r.push(t(n)),b)for(let e in b){let{name:o,declarations:s,language:n="default"}=b[e],l=`.font_${o}`,i=`:root .t_lang-${o}-${n} ${l}`,a=t(s,"default"===n?` ${l}, ${i}`:i);r.push(a)}}let y={...e.themes},k=t??function(e){let t=[],r=new Map;for(let o in e){let s=o.startsWith("dark")?"dark":o.startsWith("light")?"light":"",n=e[o],l=s+JSON.stringify(n);if(r.has(l)){r.get(l).names.push(o);continue}let i={...n};for(let e in i)!function(e,t){let r=e[t];(0,a.cG)(r)?r.name!==t&&(e[t]=(0,a.Os)({key:r.name,name:t,val:r.val})):e[t]=(0,a.Os)({key:t,name:t,val:r})}(i,e);let u={names:[o],theme:i};t.push(u),r.set(l,u)}return t}(y);return{themes:function(e){for(let{names:t,theme:r}of e)for(let e of t)v[e]=r;let t={};for(let{names:r,theme:o}of e)for(let e of r){let r=function(e,t){let r=[],o=e.split("_").slice(0,-1).map(e=>(r.push(e),r.join("_"))),n=o.length;return new Proxy(t,{get(e,t){if(!t||"undefined"==t||Reflect.has(e,t))return Reflect.get(e,t);for(let e=n-1;e>=0;e--){let r=v[o[e]];if(r&&Reflect.has(r,t))return Reflect.get(r,t)}return(0,s.p_)(t)}})}(e,o);t[e]=r}return t}(k),cssRuleSets:r,getThemeRulesSets(){let t=[];if(o.$L)for(let{names:r,theme:o}of k)t=[...t,...function(e){let t=[];if(!f.env.TAMAGUI_DOES_SSR_CSS||"mutates-themes"===f.env.TAMAGUI_DOES_SSR_CSS||"false"===f.env.TAMAGUI_DOES_SSR_CSS){let{config:r,themeName:o,theme:s,names:n}=e,u=e.hasDarkLight??(r.themes&&("light"in r.themes||"dark"in r.themes)),h=`.${i.nx}`,d="";for(let e in s){let t=s[e],r=null;r=c.has(t.val)?c.get(t.val).variable:t.val,d+=`--${f.env.TAMAGUI_CSS_VARIABLE_PREFIX||""}${(0,l.M)(e,40)}:${r};`}let b="dark"===o,v="light"===o,y=n.map(e=>`${h}${e}`),k=new Set(b||v?y:[]);if(u){let e=r.maxDarkLightNesting??3;for(let t of n){let r=b||t.startsWith("dark_"),o=!r&&(v||t.startsWith("light_"));if(!(r||o)){k.add(`${h}${t}`);continue}let s=`${h}${t.replace(/^(dark|light)_/,"")}`,[n,l]=r?["dark","light"]:["light","dark"],i=Math.round(1.5*e);for(let e=0;e`${h}${t%2==0?n:l}`),o=r.length>1?r.slice(1):r;if(t){let[e,t,...r]=o;o=[t,...r,t]}let i=s===o[o.length-1]?"":s;k.add(`${o.join(" ")} ${i}`.trim())}}}let w=[...k].sort((e,t)=>e.localeCompare(t)),_=`${w.map(e=>`:root${g(e)&&r.themeClassNameOnRoot?"":" "}${e}`).join(", ")} {${d}}`;if(t.push(_),r.shouldAddPrefersColorThemes){let e=s.background?`background:${(0,a.lk)(s.background)};`:"",r=s.color?`color:${(0,a.lk)(s.color)}`:"",n=`body{${e}${r}}`,l=o.startsWith("dark"),i=`${w.map(e=>e==m||e===p?":root":l&&e.startsWith(p)||!l&&e.startsWith(m)?void 0:e.replace(/^\.t_(dark|light) /,"").trim()).filter(Boolean).join(", ")} {${d}}`,u=`@media(prefers-color-scheme:${l?"dark":"light"}){ ${n} ${i} }`;t.push(u)}if(r.selectionStyles){let e=r.selectionStyles(s);if(e){let r=y.map(e=>`${e} ::selection`).join(", "),o=Object.entries(e).flatMap(([e,t])=>t?`${"backgroundColor"===e?"background":e}:${(0,a.lk)(t)}`:[]).join(";");if(o){let e=`${r}{${o}}`;t.push(e)}}}}return t}({config:e,themeName:r[0],names:r,theme:o})];return t}}})(),$=e.shorthands||{},j=-1,O=(e={})=>{let{separator:t=` `,sinceLastCall:r,exclude:o}=e;if(r&&j>=0){let e=(0,b.UY)();return j=e.length,e.slice(j).join(t)}j=0;let s=(0,b.UY)().join(t);return"design-system"===o?s:`._ovs-contain {overscroll-behavior:contain;} .is_Text .is_Text {display:inline-flex;} ._dsp_contents {display:contents;} ${C.cssRuleSets.join(t)} ${o?"":C.getThemeRulesSets().join(t)} ${s}`},T=e.defaultFont||e.fonts&&("body"in e.fonts?"body":"");!T&&e.fonts&&(T=Object.keys(e.fonts)[0]),T?.[0]==="$"&&(T=T.slice(1));let E=`$${T}`,x={fonts:{},onlyAllowShorthands:!1,fontLanguages:[],animations:{},media:{},...e,unset:{fontFamily:e.defaultFont?E:void 0,...e.unset},settings:{webContainerType:"inline-size",...e.settings},tokens:u,shorthands:$,inverseShorthands:$?Object.fromEntries(Object.entries($).map(([e,t])=>[t,e])):{},themes:C.themes,fontsParsed:_||{},themeConfig:C,tokensParsed:r,parsed:!0,getNewCSS:e=>O({...e,sinceLastCall:!0}),getCSS:O,defaultFont:E,fontSizeTokens:w||new Set,specificTokens:S};return(0,y.jl)(x),(0,s.v6)(x),k.set(x,!0),s.zG.size&&(s.zG.forEach(e=>e(x)),s.zG.clear()),x}},6608:function(e,t,r){"use strict";r.d(t,{r:function(){return m}});var o=r(281),s=r(2265),n=r(7562),l=r(9097),i=r(9242),a=r(1130),u=r(2281);let h=e=>(o.C5&&(0,s.useLayoutEffect)(()=>{if(e.disableRootThemeClass)return;let t=`${i.nx}${e.defaultTheme}`,r=e.themeClassNameOnRoot?document.documentElement:document.body;return r.classList.add(t),()=>{r.classList.remove(t)}},[e.defaultTheme,e.disableRootThemeClass,e.themeClassNameOnRoot]),(0,u.jsx)(a.Q,{className:e.className,name:e.defaultTheme,forceClassName:!e.disableRootThemeClass,_isRoot:!0,children:e.children}));var d=r(6962);function c({children:e,disableInjectCSS:t,config:r,...i}){return(0,l.yL)(),o.C5&&((0,d.U)(),s.useInsertionEffect(()=>{if(r&&(r.disableSSR||document.documentElement.classList.contains("t_unmounted")&&document.documentElement.classList.remove("t_unmounted"),!t)){let e=document.createElement("style");return e.appendChild(document.createTextNode(r.getCSS())),document.head.appendChild(e),()=>{document.head.removeChild(e)}}},[r,t])),(0,u.jsx)(n.s.Provider,{animationDriver:r?.animations,children:(0,u.jsx)(h,{themeClassNameOnRoot:r?.themeClassNameOnRoot,disableRootThemeClass:r?.disableRootThemeClass,...i,defaultTheme:i.defaultTheme??(r?Object.keys(r.themes)[0]:""),children:e})})}c.displayName="TamaguiProvider";var f=r(4624);let m=({children:e,...t})=>(0,u.jsx)(c,{...t,children:(0,u.jsx)(f.Xp,{shouldAddRootHost:!0,children:e})})}}]);