InvokeAI/invokeai/frontend/web/dist/assets/ThemeLocaleProvider-bc3e6f20.js
2023-08-14 22:59:26 -04:00

311 lines
77 KiB
JavaScript

import{B as m,g7 as Je,A as y,a5 as Ka,g8 as Xa,af as va,aj as d,g9 as b,ga as t,gb as Ya,gc as h,gd as ua,ge as Ja,gf as Qa,aL as Za,gg as et,ad as rt,gh as at}from"./index-2c171c8f.js";import{s as fa,n as o,t as tt,o as ha,p as ot,q as ma,v as ga,w as ya,x as it,y as Sa,z as pa,A as xr,B as nt,D as lt,E as st,F as xa,G as $a,H as ka,J as dt,K as _a,L as ct,M as bt,N as vt,O as ut,Q as wa,R as ft,S as ht,T as mt,U as gt,V as yt,W as St,e as pt,X as xt}from"./menu-971c0572.js";var za=String.raw,Ca=za`
:root,
:host {
--chakra-vh: 100vh;
}
@supports (height: -webkit-fill-available) {
:root,
:host {
--chakra-vh: -webkit-fill-available;
}
}
@supports (height: -moz-fill-available) {
:root,
:host {
--chakra-vh: -moz-fill-available;
}
}
@supports (height: 100dvh) {
:root,
:host {
--chakra-vh: 100dvh;
}
}
`,$t=()=>m.jsx(Je,{styles:Ca}),kt=({scope:e=""})=>m.jsx(Je,{styles:za`
html {
line-height: 1.5;
-webkit-text-size-adjust: 100%;
font-family: system-ui, sans-serif;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
-moz-osx-font-smoothing: grayscale;
touch-action: manipulation;
}
body {
position: relative;
min-height: 100%;
margin: 0;
font-feature-settings: "kern";
}
${e} :where(*, *::before, *::after) {
border-width: 0;
border-style: solid;
box-sizing: border-box;
word-wrap: break-word;
}
main {
display: block;
}
${e} hr {
border-top-width: 1px;
box-sizing: content-box;
height: 0;
overflow: visible;
}
${e} :where(pre, code, kbd,samp) {
font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 1em;
}
${e} a {
background-color: transparent;
color: inherit;
text-decoration: inherit;
}
${e} abbr[title] {
border-bottom: none;
text-decoration: underline;
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
}
${e} :where(b, strong) {
font-weight: bold;
}
${e} small {
font-size: 80%;
}
${e} :where(sub,sup) {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
${e} sub {
bottom: -0.25em;
}
${e} sup {
top: -0.5em;
}
${e} img {
border-style: none;
}
${e} :where(button, input, optgroup, select, textarea) {
font-family: inherit;
font-size: 100%;
line-height: 1.15;
margin: 0;
}
${e} :where(button, input) {
overflow: visible;
}
${e} :where(button, select) {
text-transform: none;
}
${e} :where(
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner
) {
border-style: none;
padding: 0;
}
${e} fieldset {
padding: 0.35em 0.75em 0.625em;
}
${e} legend {
box-sizing: border-box;
color: inherit;
display: table;
max-width: 100%;
padding: 0;
white-space: normal;
}
${e} progress {
vertical-align: baseline;
}
${e} textarea {
overflow: auto;
}
${e} :where([type="checkbox"], [type="radio"]) {
box-sizing: border-box;
padding: 0;
}
${e} input[type="number"]::-webkit-inner-spin-button,
${e} input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none !important;
}
${e} input[type="number"] {
-moz-appearance: textfield;
}
${e} input[type="search"] {
-webkit-appearance: textfield;
outline-offset: -2px;
}
${e} input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none !important;
}
${e} ::-webkit-file-upload-button {
-webkit-appearance: button;
font: inherit;
}
${e} details {
display: block;
}
${e} summary {
display: list-item;
}
template {
display: none;
}
[hidden] {
display: none !important;
}
${e} :where(
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre
) {
margin: 0;
}
${e} button {
background: transparent;
padding: 0;
}
${e} fieldset {
margin: 0;
padding: 0;
}
${e} :where(ol, ul) {
margin: 0;
padding: 0;
}
${e} textarea {
resize: vertical;
}
${e} :where(button, [role="button"]) {
cursor: pointer;
}
${e} button::-moz-focus-inner {
border: 0 !important;
}
${e} table {
border-collapse: collapse;
}
${e} :where(h1, h2, h3, h4, h5, h6) {
font-size: inherit;
font-weight: inherit;
}
${e} :where(button, input, optgroup, select, textarea) {
padding: 0;
line-height: inherit;
color: inherit;
}
${e} :where(img, svg, video, canvas, audio, iframe, embed, object) {
display: block;
}
${e} :where(img, video) {
max-width: 100%;
height: auto;
}
[data-js-focus-visible]
:focus:not([data-focus-visible-added]):not(
[data-focus-visible-disabled]
) {
outline: none;
box-shadow: none;
}
${e} select::-ms-expand {
display: none;
}
${Ca}
`}),Ce={light:"chakra-ui-light",dark:"chakra-ui-dark"};function _t(e={}){const{preventTransition:r=!0}=e,a={setDataset:i=>{const n=r?a.preventTransition():void 0;document.documentElement.dataset.theme=i,document.documentElement.style.colorScheme=i,n==null||n()},setClassName(i){document.body.classList.add(i?Ce.dark:Ce.light),document.body.classList.remove(i?Ce.light:Ce.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(i){var n;return((n=a.query().matches)!=null?n:i==="dark")?"dark":"light"},addListener(i){const n=a.query(),l=s=>{i(s.matches?"dark":"light")};return typeof n.addListener=="function"?n.addListener(l):n.addEventListener("change",l),()=>{typeof n.removeListener=="function"?n.removeListener(l):n.removeEventListener("change",l)}},preventTransition(){const i=document.createElement("style");return i.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(i),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(i)})})}}};return a}var wt="chakra-ui-color-mode";function Aa(e){return{ssr:!1,type:"localStorage",get(r){if(!(globalThis!=null&&globalThis.document))return r;let a;try{a=localStorage.getItem(e)||r}catch{}return a||r},set(r){try{localStorage.setItem(e,r)}catch{}}}}var zt=Aa(wt),Pr=()=>{};function Ir(e,r){return e.type==="cookie"&&e.ssr?e.get(r):r}function Pa(e){const{value:r,children:a,options:{useSystemColorMode:i,initialColorMode:n,disableTransitionOnChange:l}={},colorModeManager:s=zt}=e,c=n==="dark"?"dark":"light",[v,x]=y.useState(()=>Ir(s,c)),[I,O]=y.useState(()=>Ir(s)),{getSystemTheme:oe,setClassName:_e,setDataset:zr,addListener:Cr}=y.useMemo(()=>_t({preventTransition:l}),[l]),we=n==="system"&&!v?I:v,C=y.useCallback(ie=>{const ze=ie==="system"?oe():ie;x(ze),_e(ze==="dark"),zr(ze),s.set(ze)},[s,oe,_e,zr]);Ka(()=>{n==="system"&&O(oe())},[]),y.useEffect(()=>{const ie=s.get();if(ie){C(ie);return}if(n==="system"){C("system");return}C(c)},[s,c,n,C]);const Ar=y.useCallback(()=>{C(we==="dark"?"light":"dark")},[we,C]);y.useEffect(()=>{if(i)return Cr(C)},[i,Cr,C]);const Ua=y.useMemo(()=>({colorMode:r??we,toggleColorMode:r?Pr:Ar,setColorMode:r?Pr:C,forced:r!==void 0}),[we,Ar,C,r]);return m.jsx(Xa.Provider,{value:Ua,children:a})}Pa.displayName="ColorModeProvider";var Ct=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function At(e){return va(e)?Ct.every(r=>Object.prototype.hasOwnProperty.call(e,r)):!1}var Pt={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},It={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},Ft={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},Tt={property:Pt,easing:It,duration:Ft},Mt=Tt,Bt={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},Et=Bt,Dt={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},Rt=Dt,jt={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},Ht=jt,Wt={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},Vt=Wt,Lt={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},qt=Lt,Ot={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},Nt=Ot,Gt={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Ut=Gt,Kt={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},Ia=Kt,Fa={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},Xt={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},Yt={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},Jt={...Fa,...Xt,container:Yt},Ta=Jt,Qt={breakpoints:Ht,zIndices:Et,radii:qt,blur:Ut,colors:Vt,...Ia,sizes:Ta,shadows:Nt,space:Fa,borders:Rt,transition:Mt},{defineMultiStyleConfig:Zt,definePartsStyle:de}=b(["stepper","step","title","description","indicator","separator","icon","number"]),F=d("stepper-indicator-size"),G=d("stepper-icon-size"),U=d("stepper-title-font-size"),ce=d("stepper-description-font-size"),ne=d("stepper-accent-color"),eo=de(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[ne.variable]:`colors.${e}.500`,_dark:{[ne.variable]:`colors.${e}.200`}},title:{fontSize:U.reference,fontWeight:"medium"},description:{fontSize:ce.reference,color:"chakra-subtle-text"},number:{fontSize:U.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:G.reference,height:G.reference},indicator:{flexShrink:0,borderRadius:"full",width:F.reference,height:F.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:ne.reference},"&[data-status=complete]":{bg:ne.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:ne.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${F.reference} - 8px)`,top:`calc(${F.reference} + 4px)`,insetStart:`calc(${F.reference} / 2 - 1px)`}}})),ro=Zt({baseStyle:eo,sizes:{xs:de({stepper:{[F.variable]:"sizes.4",[G.variable]:"sizes.3",[U.variable]:"fontSizes.xs",[ce.variable]:"fontSizes.xs"}}),sm:de({stepper:{[F.variable]:"sizes.6",[G.variable]:"sizes.4",[U.variable]:"fontSizes.sm",[ce.variable]:"fontSizes.xs"}}),md:de({stepper:{[F.variable]:"sizes.8",[G.variable]:"sizes.5",[U.variable]:"fontSizes.md",[ce.variable]:"fontSizes.sm"}}),lg:de({stepper:{[F.variable]:"sizes.10",[G.variable]:"sizes.6",[U.variable]:"fontSizes.lg",[ce.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function W(e,r,a){return Math.min(Math.max(e,a),r)}class ao extends Error{constructor(r){super(`Failed to parse color: "${r}"`)}}var be=ao;function $r(e){if(typeof e!="string")throw new be(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let r=e.trim();r=bo.test(e)?io(e):e;const a=no.exec(r);if(a){const s=Array.from(a).slice(1);return[...s.slice(0,3).map(c=>parseInt(Se(c,2),16)),parseInt(Se(s[3]||"f",2),16)/255]}const i=lo.exec(r);if(i){const s=Array.from(i).slice(1);return[...s.slice(0,3).map(c=>parseInt(c,16)),parseInt(s[3]||"ff",16)/255]}const n=so.exec(r);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(c=>parseInt(c,10)),parseFloat(s[3]||"1")]}const l=co.exec(r);if(l){const[s,c,v,x]=Array.from(l).slice(1).map(parseFloat);if(W(0,100,c)!==c)throw new be(e);if(W(0,100,v)!==v)throw new be(e);return[...vo(s,c,v),Number.isNaN(x)?1:x]}throw new be(e)}function to(e){let r=5381,a=e.length;for(;a;)r=r*33^e.charCodeAt(--a);return(r>>>0)%2341}const Fr=e=>parseInt(e.replace(/_/g,""),36),oo="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,r)=>{const a=Fr(r.substring(0,3)),i=Fr(r.substring(3)).toString(16);let n="";for(let l=0;l<6-i.length;l++)n+="0";return e[a]=`${n}${i}`,e},{});function io(e){const r=e.toLowerCase().trim(),a=oo[to(r)];if(!a)throw new be(e);return`#${a}`}const Se=(e,r)=>Array.from(Array(r)).map(()=>e).join(""),no=new RegExp(`^#${Se("([a-f0-9])",3)}([a-f0-9])?$`,"i"),lo=new RegExp(`^#${Se("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),so=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Se(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),co=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,bo=/^[a-z]+$/i,Tr=e=>Math.round(e*255),vo=(e,r,a)=>{let i=a/100;if(r===0)return[i,i,i].map(Tr);const n=(e%360+360)%360/60,l=(1-Math.abs(2*i-1))*(r/100),s=l*(1-Math.abs(n%2-1));let c=0,v=0,x=0;n>=0&&n<1?(c=l,v=s):n>=1&&n<2?(c=s,v=l):n>=2&&n<3?(v=l,x=s):n>=3&&n<4?(v=s,x=l):n>=4&&n<5?(c=s,x=l):n>=5&&n<6&&(c=l,x=s);const I=i-l/2,O=c+I,oe=v+I,_e=x+I;return[O,oe,_e].map(Tr)};function uo(e,r,a,i){return`rgba(${W(0,255,e).toFixed()}, ${W(0,255,r).toFixed()}, ${W(0,255,a).toFixed()}, ${parseFloat(W(0,1,i).toFixed(3))})`}function fo(e,r){const[a,i,n,l]=$r(e);return uo(a,i,n,l-r)}function ho(e){const[r,a,i,n]=$r(e);let l=s=>{const c=W(0,255,s).toString(16);return c.length===1?`0${c}`:c};return`#${l(r)}${l(a)}${l(i)}${n<1?l(Math.round(n*255)):""}`}function mo(e,r,a,i,n){for(r=r.split?r.split("."):r,i=0;i<r.length;i++)e=e?e[r[i]]:n;return e===n?a:e}var go=e=>Object.keys(e).length===0,S=(e,r,a)=>{const i=mo(e,`colors.${r}`,r);try{return ho(i),i}catch{return a??"#000000"}},yo=e=>{const[r,a,i]=$r(e);return(r*299+a*587+i*114)/1e3},So=e=>r=>{const a=S(r,e);return yo(a)<128?"dark":"light"},po=e=>r=>So(e)(r)==="dark",ae=(e,r)=>a=>{const i=S(a,e);return fo(i,1-r)};function Mr(e="1rem",r="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
45deg,
${r} 25%,
transparent 25%,
transparent 50%,
${r} 50%,
${r} 75%,
transparent 75%,
transparent
)`,backgroundSize:`${e} ${e}`}}var xo=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function $o(e){const r=xo();return!e||go(e)?r:e.string&&e.colors?_o(e.string,e.colors):e.string&&!e.colors?ko(e.string):e.colors&&!e.string?wo(e.colors):r}function ko(e){let r=0;if(e.length===0)return r.toString();for(let i=0;i<e.length;i+=1)r=e.charCodeAt(i)+((r<<5)-r),r=r&r;let a="#";for(let i=0;i<3;i+=1){const n=r>>i*8&255;a+=`00${n.toString(16)}`.substr(-2)}return a}function _o(e,r){let a=0;if(e.length===0)return r[0];for(let i=0;i<e.length;i+=1)a=e.charCodeAt(i)+((a<<5)-a),a=a&a;return a=(a%r.length+r.length)%r.length,r[a]}function wo(e){return e[Math.floor(Math.random()*e.length)]}function Ma(e){return va(e)&&e.reference?e.reference:String(e)}var Qe=(e,...r)=>r.map(Ma).join(` ${e} `).replace(/calc/g,""),Br=(...e)=>`calc(${Qe("+",...e)})`,Er=(...e)=>`calc(${Qe("-",...e)})`,gr=(...e)=>`calc(${Qe("*",...e)})`,Dr=(...e)=>`calc(${Qe("/",...e)})`,Rr=e=>{const r=Ma(e);return r!=null&&!Number.isNaN(parseFloat(r))?String(r).startsWith("-")?String(r).slice(1):`-${r}`:gr(r,-1)},T=Object.assign(e=>({add:(...r)=>T(Br(e,...r)),subtract:(...r)=>T(Er(e,...r)),multiply:(...r)=>T(gr(e,...r)),divide:(...r)=>T(Dr(e,...r)),negate:()=>T(Rr(e)),toString:()=>e.toString()}),{add:Br,subtract:Er,multiply:gr,divide:Dr,negate:Rr});function zo(e){return!Number.isInteger(parseFloat(e.toString()))}function Co(e,r="-"){return e.replace(/\s+/g,r)}function Ba(e){const r=Co(e.toString());return r.includes("\\.")?e:zo(e)?r.replace(".","\\."):e}function Ao(e,r=""){return[r,Ba(e)].filter(Boolean).join("-")}function Po(e,r){return`var(${Ba(e)}${r?`, ${r}`:""})`}function Io(e,r=""){return`--${Ao(e,r)}`}function f(e,r){const a=Io(e,r==null?void 0:r.prefix);return{variable:a,reference:Po(a,Fo(r==null?void 0:r.fallback))}}function Fo(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:To,definePartsStyle:We}=b(fa.keys),fe=f("switch-track-width"),V=f("switch-track-height"),rr=f("switch-track-diff"),Mo=T.subtract(fe,V),yr=f("switch-thumb-x"),le=f("switch-bg"),Bo=t(e=>{const{colorScheme:r}=e;return{borderRadius:"full",p:"0.5",width:[fe.reference],height:[V.reference],transitionProperty:"common",transitionDuration:"fast",[le.variable]:"colors.gray.300",_dark:{[le.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[le.variable]:`colors.${r}.500`,_dark:{[le.variable]:`colors.${r}.200`}},bg:le.reference}}),Eo=t({bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[V.reference],height:[V.reference],_checked:{transform:`translateX(${yr.reference})`}}),Do=We(e=>({container:{[rr.variable]:Mo,[yr.variable]:rr.reference,_rtl:{[yr.variable]:T(rr).negate().toString()}},track:Bo(e),thumb:Eo})),Ro={sm:We({container:{[fe.variable]:"1.375rem",[V.variable]:"sizes.3"}}),md:We({container:{[fe.variable]:"1.875rem",[V.variable]:"sizes.4"}}),lg:We({container:{[fe.variable]:"2.875rem",[V.variable]:"sizes.6"}})},jo=To({baseStyle:Do,sizes:Ro,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Ho,definePartsStyle:Q}=b(tt.keys),Wo=Q({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),Ke=t({"&[data-is-numeric=true]":{textAlign:"end"}}),Vo=Q(e=>{const{colorScheme:r}=e;return{th:{color:o("gray.600","gray.400")(e),borderBottom:"1px",borderColor:o(`${r}.100`,`${r}.700`)(e),...Ke},td:{borderBottom:"1px",borderColor:o(`${r}.100`,`${r}.700`)(e),...Ke},caption:{color:o("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Lo=Q(e=>{const{colorScheme:r}=e;return{th:{color:o("gray.600","gray.400")(e),borderBottom:"1px",borderColor:o(`${r}.100`,`${r}.700`)(e),...Ke},td:{borderBottom:"1px",borderColor:o(`${r}.100`,`${r}.700`)(e),...Ke},caption:{color:o("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:o(`${r}.100`,`${r}.700`)(e)},td:{background:o(`${r}.100`,`${r}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),qo={simple:Vo,striped:Lo,unstyled:t({})},Oo={sm:Q({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:Q({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Q({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},No=Ho({baseStyle:Wo,variants:qo,sizes:Oo,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),$=d("tabs-color"),z=d("tabs-bg"),Ae=d("tabs-border-color"),{defineMultiStyleConfig:Go,definePartsStyle:P}=b(ha.keys),Uo=t(e=>{const{orientation:r}=e;return{display:r==="vertical"?"flex":"block"}}),Ko=t(e=>{const{isFitted:r}=e;return{flex:r?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}}),Xo=t(e=>{const{align:r="start",orientation:a}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[r],flexDirection:a==="vertical"?"column":"row"}}),Yo=t({p:4}),Jo=P(e=>({root:Uo(e),tab:Ko(e),tablist:Xo(e),tabpanel:Yo})),Qo={sm:P({tab:{py:1,px:4,fontSize:"sm"}}),md:P({tab:{fontSize:"md",py:2,px:4}}),lg:P({tab:{fontSize:"lg",py:3,px:4}})},Zo=P(e=>{const{colorScheme:r,orientation:a}=e,i=a==="vertical",n=i?"borderStart":"borderBottom",l=i?"marginStart":"marginBottom";return{tablist:{[n]:"2px solid",borderColor:"inherit"},tab:{[n]:"2px solid",borderColor:"transparent",[l]:"-2px",_selected:{[$.variable]:`colors.${r}.600`,_dark:{[$.variable]:`colors.${r}.300`},borderColor:"currentColor"},_active:{[z.variable]:"colors.gray.200",_dark:{[z.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:$.reference,bg:z.reference}}}),ei=P(e=>{const{colorScheme:r}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Ae.variable]:"transparent",_selected:{[$.variable]:`colors.${r}.600`,[Ae.variable]:"colors.white",_dark:{[$.variable]:`colors.${r}.300`,[Ae.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Ae.reference},color:$.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),ri=P(e=>{const{colorScheme:r}=e;return{tab:{border:"1px solid",borderColor:"inherit",[z.variable]:"colors.gray.50",_dark:{[z.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[z.variable]:"colors.white",[$.variable]:`colors.${r}.600`,_dark:{[z.variable]:"colors.gray.800",[$.variable]:`colors.${r}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:$.reference,bg:z.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),ai=P(e=>{const{colorScheme:r,theme:a}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:S(a,`${r}.700`),bg:S(a,`${r}.100`)}}}}),ti=P(e=>{const{colorScheme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[$.variable]:"colors.gray.600",_dark:{[$.variable]:"inherit"},_selected:{[$.variable]:"colors.white",[z.variable]:`colors.${r}.600`,_dark:{[$.variable]:"colors.gray.800",[z.variable]:`colors.${r}.300`}},color:$.reference,bg:z.reference}}}),oi=P({}),ii={line:Zo,enclosed:ei,"enclosed-colored":ri,"soft-rounded":ai,"solid-rounded":ti,unstyled:oi},ni=Go({baseStyle:Jo,sizes:Qo,variants:ii,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),g=Ya("badge",["bg","color","shadow"]),li=t({px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:g.bg.reference,color:g.color.reference,boxShadow:g.shadow.reference}),si=t(e=>{const{colorScheme:r,theme:a}=e,i=ae(`${r}.500`,.6)(a);return{[g.bg.variable]:`colors.${r}.500`,[g.color.variable]:"colors.white",_dark:{[g.bg.variable]:i,[g.color.variable]:"colors.whiteAlpha.800"}}}),di=t(e=>{const{colorScheme:r,theme:a}=e,i=ae(`${r}.200`,.16)(a);return{[g.bg.variable]:`colors.${r}.100`,[g.color.variable]:`colors.${r}.800`,_dark:{[g.bg.variable]:i,[g.color.variable]:`colors.${r}.200`}}}),ci=t(e=>{const{colorScheme:r,theme:a}=e,i=ae(`${r}.200`,.8)(a);return{[g.color.variable]:`colors.${r}.500`,_dark:{[g.color.variable]:i},[g.shadow.variable]:`inset 0 0 0px 1px ${g.color.reference}`}}),bi={solid:si,subtle:di,outline:ci},he=h({baseStyle:li,variants:bi,defaultProps:{variant:"subtle",colorScheme:"gray"}}),{defineMultiStyleConfig:vi,definePartsStyle:L}=b(ot.keys),jr=d("tag-bg"),Hr=d("tag-color"),ar=d("tag-shadow"),Ve=d("tag-min-height"),Le=d("tag-min-width"),qe=d("tag-font-size"),Oe=d("tag-padding-inline"),ui=t({fontWeight:"medium",lineHeight:1.2,outline:0,[Hr.variable]:g.color.reference,[jr.variable]:g.bg.reference,[ar.variable]:g.shadow.reference,color:Hr.reference,bg:jr.reference,boxShadow:ar.reference,borderRadius:"md",minH:Ve.reference,minW:Le.reference,fontSize:qe.reference,px:Oe.reference,_focusVisible:{[ar.variable]:"shadows.outline"}}),fi=t({lineHeight:1.2,overflow:"visible"}),hi=t({fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}}),mi=L({container:ui,label:fi,closeButton:hi}),gi={sm:L({container:{[Ve.variable]:"sizes.5",[Le.variable]:"sizes.5",[qe.variable]:"fontSizes.xs",[Oe.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:L({container:{[Ve.variable]:"sizes.6",[Le.variable]:"sizes.6",[qe.variable]:"fontSizes.sm",[Oe.variable]:"space.2"}}),lg:L({container:{[Ve.variable]:"sizes.8",[Le.variable]:"sizes.8",[qe.variable]:"fontSizes.md",[Oe.variable]:"space.3"}})},yi={subtle:L(e=>{var r;return{container:(r=he.variants)==null?void 0:r.subtle(e)}}),solid:L(e=>{var r;return{container:(r=he.variants)==null?void 0:r.solid(e)}}),outline:L(e=>{var r;return{container:(r=he.variants)==null?void 0:r.outline(e)}})},Si=vi({variants:yi,baseStyle:mi,sizes:gi,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:M,defineMultiStyleConfig:pi}=b(ma.keys),K=d("input-height"),X=d("input-font-size"),Y=d("input-padding"),J=d("input-border-radius"),xi=M({addon:{height:K.reference,fontSize:X.reference,px:Y.reference,borderRadius:J.reference},field:{width:"100%",height:K.reference,fontSize:X.reference,px:Y.reference,borderRadius:J.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),D={lg:t({[X.variable]:"fontSizes.lg",[Y.variable]:"space.4",[J.variable]:"radii.md",[K.variable]:"sizes.12"}),md:t({[X.variable]:"fontSizes.md",[Y.variable]:"space.4",[J.variable]:"radii.md",[K.variable]:"sizes.10"}),sm:t({[X.variable]:"fontSizes.sm",[Y.variable]:"space.3",[J.variable]:"radii.sm",[K.variable]:"sizes.8"}),xs:t({[X.variable]:"fontSizes.xs",[Y.variable]:"space.2",[J.variable]:"radii.sm",[K.variable]:"sizes.6"})},$i={lg:M({field:D.lg,group:D.lg}),md:M({field:D.md,group:D.md}),sm:M({field:D.sm,group:D.sm}),xs:M({field:D.xs,group:D.xs})};function kr(e){const{focusBorderColor:r,errorBorderColor:a}=e;return{focusBorderColor:r||o("blue.500","blue.300")(e),errorBorderColor:a||o("red.500","red.300")(e)}}var ki=M(e=>{const{theme:r}=e,{focusBorderColor:a,errorBorderColor:i}=kr(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:o("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:S(r,i),boxShadow:`0 0 0 1px ${S(r,i)}`},_focusVisible:{zIndex:1,borderColor:S(r,a),boxShadow:`0 0 0 1px ${S(r,a)}`}},addon:{border:"1px solid",borderColor:o("inherit","whiteAlpha.50")(e),bg:o("gray.100","whiteAlpha.300")(e)}}}),_i=M(e=>{const{theme:r}=e,{focusBorderColor:a,errorBorderColor:i}=kr(e);return{field:{border:"2px solid",borderColor:"transparent",bg:o("gray.100","whiteAlpha.50")(e),_hover:{bg:o("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:S(r,i)},_focusVisible:{bg:"transparent",borderColor:S(r,a)}},addon:{border:"2px solid",borderColor:"transparent",bg:o("gray.100","whiteAlpha.50")(e)}}}),wi=M(e=>{const{theme:r}=e,{focusBorderColor:a,errorBorderColor:i}=kr(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:S(r,i),boxShadow:`0px 1px 0px 0px ${S(r,i)}`},_focusVisible:{borderColor:S(r,a),boxShadow:`0px 1px 0px 0px ${S(r,a)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),zi=M({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),Ci={outline:ki,filled:_i,flushed:wi,unstyled:zi},u=pi({baseStyle:xi,sizes:$i,variants:Ci,defaultProps:{size:"md",variant:"outline"}}),Wr,Ai=t({...(Wr=u.baseStyle)==null?void 0:Wr.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"}),Vr,Lr,Pi={outline:t(e=>{var r,a;return(a=(r=u.variants)==null?void 0:r.outline(e).field)!=null?a:{}}),flushed:t(e=>{var r,a;return(a=(r=u.variants)==null?void 0:r.flushed(e).field)!=null?a:{}}),filled:t(e=>{var r,a;return(a=(r=u.variants)==null?void 0:r.filled(e).field)!=null?a:{}}),unstyled:(Lr=(Vr=u.variants)==null?void 0:Vr.unstyled.field)!=null?Lr:{}},qr,Or,Nr,Gr,Ur,Kr,Xr,Yr,Ii={xs:(Or=(qr=u.sizes)==null?void 0:qr.xs.field)!=null?Or:{},sm:(Gr=(Nr=u.sizes)==null?void 0:Nr.sm.field)!=null?Gr:{},md:(Kr=(Ur=u.sizes)==null?void 0:Ur.md.field)!=null?Kr:{},lg:(Yr=(Xr=u.sizes)==null?void 0:Xr.lg.field)!=null?Yr:{}},Fi=h({baseStyle:Ai,sizes:Ii,variants:Pi,defaultProps:{size:"md",variant:"outline"}}),Pe=f("tooltip-bg"),tr=f("tooltip-fg"),Ti=f("popper-arrow-bg"),Mi=t({bg:Pe.reference,color:tr.reference,[Pe.variable]:"colors.gray.700",[tr.variable]:"colors.whiteAlpha.900",_dark:{[Pe.variable]:"colors.gray.300",[tr.variable]:"colors.gray.900"},[Ti.variable]:Pe.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}),Bi=h({baseStyle:Mi}),{defineMultiStyleConfig:Ei,definePartsStyle:ve}=b(ga.keys),Di=t(e=>{const{colorScheme:r,theme:a,isIndeterminate:i,hasStripe:n}=e,l=o(Mr(),Mr("1rem","rgba(0,0,0,0.1)"))(e),s=o(`${r}.500`,`${r}.200`)(e),c=`linear-gradient(
to right,
transparent 0%,
${S(a,s)} 50%,
transparent 100%
)`;return{...!i&&n&&l,...i?{bgImage:c}:{bgColor:s}}}),Ri=t({lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"}),ji=t(e=>({bg:o("gray.100","whiteAlpha.300")(e)})),Hi=t(e=>({transitionProperty:"common",transitionDuration:"slow",...Di(e)})),Wi=ve(e=>({label:Ri,filledTrack:Hi(e),track:ji(e)})),Vi={xs:ve({track:{h:"1"}}),sm:ve({track:{h:"2"}}),md:ve({track:{h:"3"}}),lg:ve({track:{h:"4"}})},Li=Ei({sizes:Vi,baseStyle:Wi,defaultProps:{size:"md",colorScheme:"blue"}}),qi=e=>typeof e=="function";function p(e,...r){return qi(e)?e(...r):e}var{definePartsStyle:Ne,defineMultiStyleConfig:Oi}=b(ya.keys),me=d("checkbox-size"),Ni=t(e=>{const{colorScheme:r}=e;return{w:me.reference,h:me.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:o(`${r}.500`,`${r}.200`)(e),borderColor:o(`${r}.500`,`${r}.200`)(e),color:o("white","gray.900")(e),_hover:{bg:o(`${r}.600`,`${r}.300`)(e),borderColor:o(`${r}.600`,`${r}.300`)(e)},_disabled:{borderColor:o("gray.200","transparent")(e),bg:o("gray.200","whiteAlpha.300")(e),color:o("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:o(`${r}.500`,`${r}.200`)(e),borderColor:o(`${r}.500`,`${r}.200`)(e),color:o("white","gray.900")(e)},_disabled:{bg:o("gray.100","whiteAlpha.100")(e),borderColor:o("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:o("red.500","red.300")(e)}}}),Gi=t({_disabled:{cursor:"not-allowed"}}),Ui=t({userSelect:"none",_disabled:{opacity:.4}}),Ki=t({transitionProperty:"transform",transitionDuration:"normal"}),Xi=Ne(e=>({icon:Ki,container:Gi,control:p(Ni,e),label:Ui})),Yi={sm:Ne({control:{[me.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Ne({control:{[me.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Ne({control:{[me.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Xe=Oi({baseStyle:Xi,sizes:Yi,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Ji,definePartsStyle:Ge}=b(it.keys),Qi=t(e=>{var r;const a=(r=p(Xe.baseStyle,e))==null?void 0:r.control;return{...a,borderRadius:"full",_checked:{...a==null?void 0:a._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}}),Zi=Ge(e=>{var r,a,i,n;return{label:(a=(r=Xe).baseStyle)==null?void 0:a.call(r,e).label,container:(n=(i=Xe).baseStyle)==null?void 0:n.call(i,e).container,control:Qi(e)}}),en={md:Ge({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Ge({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Ge({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},rn=Ji({baseStyle:Zi,sizes:en,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:an,definePartsStyle:tn}=b(Sa.keys),Ie=d("select-bg"),Jr,on=t({...(Jr=u.baseStyle)==null?void 0:Jr.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Ie.reference,[Ie.variable]:"colors.white",_dark:{[Ie.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Ie.reference}}),nn=t({width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}}),ln=tn({field:on,icon:nn}),Fe=t({paddingInlineEnd:"8"}),Qr,Zr,ea,ra,aa,ta,oa,ia,sn={lg:{...(Qr=u.sizes)==null?void 0:Qr.lg,field:{...(Zr=u.sizes)==null?void 0:Zr.lg.field,...Fe}},md:{...(ea=u.sizes)==null?void 0:ea.md,field:{...(ra=u.sizes)==null?void 0:ra.md.field,...Fe}},sm:{...(aa=u.sizes)==null?void 0:aa.sm,field:{...(ta=u.sizes)==null?void 0:ta.sm.field,...Fe}},xs:{...(oa=u.sizes)==null?void 0:oa.xs,field:{...(ia=u.sizes)==null?void 0:ia.xs.field,...Fe},icon:{insetEnd:"1"}}},dn=an({baseStyle:ln,sizes:sn,variants:u.variants,defaultProps:u.defaultProps}),or=d("skeleton-start-color"),ir=d("skeleton-end-color"),cn=t({[or.variable]:"colors.gray.100",[ir.variable]:"colors.gray.400",_dark:{[or.variable]:"colors.gray.800",[ir.variable]:"colors.gray.600"},background:or.reference,borderColor:ir.reference,opacity:.7,borderRadius:"sm"}),bn=h({baseStyle:cn}),nr=d("skip-link-bg"),vn=t({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[nr.variable]:"colors.white",_dark:{[nr.variable]:"colors.gray.700"},bg:nr.reference}}),un=h({baseStyle:vn}),{defineMultiStyleConfig:fn,definePartsStyle:Ze}=b(pa.keys),pe=d("slider-thumb-size"),xe=d("slider-track-size"),j=d("slider-bg"),hn=t(e=>{const{orientation:r}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...xr({orientation:r,vertical:{h:"100%"},horizontal:{w:"100%"}})}}),mn=t(e=>({...xr({orientation:e.orientation,horizontal:{h:xe.reference},vertical:{w:xe.reference}}),overflow:"hidden",borderRadius:"sm",[j.variable]:"colors.gray.200",_dark:{[j.variable]:"colors.whiteAlpha.200"},_disabled:{[j.variable]:"colors.gray.300",_dark:{[j.variable]:"colors.whiteAlpha.300"}},bg:j.reference})),gn=t(e=>{const{orientation:r}=e;return{...xr({orientation:r,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:pe.reference,h:pe.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}}),yn=t(e=>{const{colorScheme:r}=e;return{width:"inherit",height:"inherit",[j.variable]:`colors.${r}.500`,_dark:{[j.variable]:`colors.${r}.200`},bg:j.reference}}),Sn=Ze(e=>({container:hn(e),track:mn(e),thumb:gn(e),filledTrack:yn(e)})),pn=Ze({container:{[pe.variable]:"sizes.4",[xe.variable]:"sizes.1"}}),xn=Ze({container:{[pe.variable]:"sizes.3.5",[xe.variable]:"sizes.1"}}),$n=Ze({container:{[pe.variable]:"sizes.2.5",[xe.variable]:"sizes.0.5"}}),kn={lg:pn,md:xn,sm:$n},_n=fn({baseStyle:Sn,sizes:kn,defaultProps:{size:"md",colorScheme:"blue"}}),H=f("spinner-size"),wn=t({width:[H.reference],height:[H.reference]}),zn={xs:t({[H.variable]:"sizes.3"}),sm:t({[H.variable]:"sizes.4"}),md:t({[H.variable]:"sizes.6"}),lg:t({[H.variable]:"sizes.8"}),xl:t({[H.variable]:"sizes.12"})},Cn=h({baseStyle:wn,sizes:zn,defaultProps:{size:"md"}}),{defineMultiStyleConfig:An,definePartsStyle:Ea}=b(nt.keys),Pn=t({fontWeight:"medium"}),In=t({opacity:.8,marginBottom:"2"}),Fn=t({verticalAlign:"baseline",fontWeight:"semibold"}),Tn=t({marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"}),Mn=Ea({container:{},label:Pn,helpText:In,number:Fn,icon:Tn}),Bn={md:Ea({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},En=An({baseStyle:Mn,sizes:Bn,defaultProps:{size:"md"}}),lr=d("kbd-bg"),Dn=t({[lr.variable]:"colors.gray.100",_dark:{[lr.variable]:"colors.whiteAlpha.100"},bg:lr.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),Rn=h({baseStyle:Dn}),jn=t({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}),Hn=h({baseStyle:jn}),{defineMultiStyleConfig:Wn,definePartsStyle:Vn}=b(lt.keys),Ln=t({marginEnd:"2",display:"inline",verticalAlign:"text-bottom"}),qn=Vn({icon:Ln}),On=Wn({baseStyle:qn}),{defineMultiStyleConfig:Nn,definePartsStyle:Gn}=b(st.keys),A=d("menu-bg"),sr=d("menu-shadow"),Un=t({[A.variable]:"#fff",[sr.variable]:"shadows.sm",_dark:{[A.variable]:"colors.gray.700",[sr.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:A.reference,boxShadow:sr.reference}),Kn=t({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[A.variable]:"colors.gray.100",_dark:{[A.variable]:"colors.whiteAlpha.100"}},_active:{[A.variable]:"colors.gray.200",_dark:{[A.variable]:"colors.whiteAlpha.200"}},_expanded:{[A.variable]:"colors.gray.100",_dark:{[A.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:A.reference}),Xn=t({mx:4,my:2,fontWeight:"semibold",fontSize:"sm"}),Yn=t({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0}),Jn=t({opacity:.6}),Qn=t({border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}),Zn=t({transitionProperty:"common",transitionDuration:"normal"}),el=Gn({button:Zn,list:Un,item:Kn,groupTitle:Xn,icon:Yn,command:Jn,divider:Qn}),rl=Nn({baseStyle:el}),{defineMultiStyleConfig:al,definePartsStyle:Sr}=b(xa.keys),dr=d("modal-bg"),cr=d("modal-shadow"),tl=t({bg:"blackAlpha.600",zIndex:"modal"}),ol=t(e=>{const{isCentered:r,scrollBehavior:a}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:r?"center":"flex-start",overflow:a==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}}),il=t(e=>{const{isCentered:r,scrollBehavior:a}=e;return{borderRadius:"md",color:"inherit",my:r?"auto":"16",mx:r?"auto":void 0,zIndex:"modal",maxH:a==="inside"?"calc(100% - 7.5rem)":void 0,[dr.variable]:"colors.white",[cr.variable]:"shadows.lg",_dark:{[dr.variable]:"colors.gray.700",[cr.variable]:"shadows.dark-lg"},bg:dr.reference,boxShadow:cr.reference}}),nl=t({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),ll=t({position:"absolute",top:"2",insetEnd:"3"}),sl=t(e=>{const{scrollBehavior:r}=e;return{px:"6",py:"2",flex:"1",overflow:r==="inside"?"auto":void 0}}),dl=t({px:"6",py:"4"}),cl=Sr(e=>({overlay:tl,dialogContainer:p(ol,e),dialog:p(il,e),header:nl,closeButton:ll,body:p(sl,e),footer:dl}));function w(e){return Sr(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var bl={xs:w("xs"),sm:w("sm"),md:w("md"),lg:w("lg"),xl:w("xl"),"2xl":w("2xl"),"3xl":w("3xl"),"4xl":w("4xl"),"5xl":w("5xl"),"6xl":w("6xl"),full:w("full")},vl=al({baseStyle:cl,sizes:bl,defaultProps:{size:"md"}}),{defineMultiStyleConfig:ul,definePartsStyle:Da}=b($a.keys),_r=f("number-input-stepper-width"),Ra=f("number-input-input-padding"),fl=T(_r).add("0.5rem").toString(),br=f("number-input-bg"),vr=f("number-input-color"),ur=f("number-input-border-color"),hl=t({[_r.variable]:"sizes.6",[Ra.variable]:fl}),ml=t(e=>{var r,a;return(a=(r=p(u.baseStyle,e))==null?void 0:r.field)!=null?a:{}}),gl=t({width:_r.reference}),yl=t({borderStart:"1px solid",borderStartColor:ur.reference,color:vr.reference,bg:br.reference,[vr.variable]:"colors.chakra-body-text",[ur.variable]:"colors.chakra-border-color",_dark:{[vr.variable]:"colors.whiteAlpha.800",[ur.variable]:"colors.whiteAlpha.300"},_active:{[br.variable]:"colors.gray.200",_dark:{[br.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}}),Sl=Da(e=>{var r;return{root:hl,field:(r=p(ml,e))!=null?r:{},stepperGroup:gl,stepper:yl}});function Te(e){var r,a,i;const n=(r=u.sizes)==null?void 0:r[e],l={lg:"md",md:"md",sm:"sm",xs:"sm"},s=(i=(a=n.field)==null?void 0:a.fontSize)!=null?i:"md",c=Ia.fontSizes[s];return Da({field:{...n.field,paddingInlineEnd:Ra.reference,verticalAlign:"top"},stepper:{fontSize:T(c).multiply(.75).toString(),_first:{borderTopEndRadius:l[e]},_last:{borderBottomEndRadius:l[e],mt:"-1px",borderTopWidth:1}}})}var pl={xs:Te("xs"),sm:Te("sm"),md:Te("md"),lg:Te("lg")},xl=ul({baseStyle:Sl,sizes:pl,variants:u.variants,defaultProps:u.defaultProps}),na,$l=t({...(na=u.baseStyle)==null?void 0:na.field,textAlign:"center"}),kl={lg:t({fontSize:"lg",w:12,h:12,borderRadius:"md"}),md:t({fontSize:"md",w:10,h:10,borderRadius:"md"}),sm:t({fontSize:"sm",w:8,h:8,borderRadius:"sm"}),xs:t({fontSize:"xs",w:6,h:6,borderRadius:"sm"})},la,sa,_l={outline:t(e=>{var r,a,i;return(i=(a=p((r=u.variants)==null?void 0:r.outline,e))==null?void 0:a.field)!=null?i:{}}),flushed:t(e=>{var r,a,i;return(i=(a=p((r=u.variants)==null?void 0:r.flushed,e))==null?void 0:a.field)!=null?i:{}}),filled:t(e=>{var r,a,i;return(i=(a=p((r=u.variants)==null?void 0:r.filled,e))==null?void 0:a.field)!=null?i:{}}),unstyled:(sa=(la=u.variants)==null?void 0:la.unstyled.field)!=null?sa:{}},wl=h({baseStyle:$l,sizes:kl,variants:_l,defaultProps:u.defaultProps}),{defineMultiStyleConfig:zl,definePartsStyle:Cl}=b(ka.keys),Me=f("popper-bg"),Al=f("popper-arrow-bg"),da=f("popper-arrow-shadow-color"),Pl=t({zIndex:10}),Il=t({[Me.variable]:"colors.white",bg:Me.reference,[Al.variable]:Me.reference,[da.variable]:"colors.gray.200",_dark:{[Me.variable]:"colors.gray.700",[da.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}),Fl=t({px:3,py:2,borderBottomWidth:"1px"}),Tl=t({px:3,py:2}),Ml=t({px:3,py:2,borderTopWidth:"1px"}),Bl=t({position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2}),El=Cl({popper:Pl,content:Il,header:Fl,body:Tl,footer:Ml,closeButton:Bl}),Dl=zl({baseStyle:El}),{definePartsStyle:pr,defineMultiStyleConfig:Rl}=b(dt.keys),fr=d("drawer-bg"),hr=d("drawer-box-shadow");function N(e){return pr(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var jl=t({bg:"blackAlpha.600",zIndex:"overlay"}),Hl=t({display:"flex",zIndex:"modal",justifyContent:"center"}),Wl=t(e=>{const{isFullHeight:r}=e;return{...r&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[fr.variable]:"colors.white",[hr.variable]:"shadows.lg",_dark:{[fr.variable]:"colors.gray.700",[hr.variable]:"shadows.dark-lg"},bg:fr.reference,boxShadow:hr.reference}}),Vl=t({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),Ll=t({position:"absolute",top:"2",insetEnd:"3"}),ql=t({px:"6",py:"2",flex:"1",overflow:"auto"}),Ol=t({px:"6",py:"4"}),Nl=pr(e=>({overlay:jl,dialogContainer:Hl,dialog:p(Wl,e),header:Vl,closeButton:Ll,body:ql,footer:Ol})),Gl={xs:N("xs"),sm:N("md"),md:N("lg"),lg:N("2xl"),xl:N("4xl"),full:N("full")},Ul=Rl({baseStyle:Nl,sizes:Gl,defaultProps:{size:"xs"}}),{definePartsStyle:Kl,defineMultiStyleConfig:Xl}=b(_a.keys),Yl=t({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"}),Jl=t({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}),Ql=t({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}),Zl=Kl({preview:Yl,input:Jl,textarea:Ql}),es=Xl({baseStyle:Zl}),{definePartsStyle:rs,defineMultiStyleConfig:as}=b(ct.keys),Z=d("form-control-color"),ts=t({marginStart:"1",[Z.variable]:"colors.red.500",_dark:{[Z.variable]:"colors.red.300"},color:Z.reference}),os=t({mt:"2",[Z.variable]:"colors.gray.600",_dark:{[Z.variable]:"colors.whiteAlpha.600"},color:Z.reference,lineHeight:"normal",fontSize:"sm"}),is=rs({container:{width:"100%",position:"relative"},requiredIndicator:ts,helperText:os}),ns=as({baseStyle:is}),{definePartsStyle:ls,defineMultiStyleConfig:ss}=b(bt.keys),ee=d("form-error-color"),ds=t({[ee.variable]:"colors.red.500",_dark:{[ee.variable]:"colors.red.300"},color:ee.reference,mt:"2",fontSize:"sm",lineHeight:"normal"}),cs=t({marginEnd:"0.5em",[ee.variable]:"colors.red.500",_dark:{[ee.variable]:"colors.red.300"},color:ee.reference}),bs=ls({text:ds,icon:cs}),vs=ss({baseStyle:bs}),us=t({fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}),fs=h({baseStyle:us}),hs=t({fontFamily:"heading",fontWeight:"bold"}),ms={"4xl":t({fontSize:["6xl",null,"7xl"],lineHeight:1}),"3xl":t({fontSize:["5xl",null,"6xl"],lineHeight:1}),"2xl":t({fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]}),xl:t({fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]}),lg:t({fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]}),md:t({fontSize:"xl",lineHeight:1.2}),sm:t({fontSize:"md",lineHeight:1.2}),xs:t({fontSize:"sm",lineHeight:1.2})},gs=h({baseStyle:hs,sizes:ms,defaultProps:{size:"xl"}}),{defineMultiStyleConfig:ys,definePartsStyle:Ss}=b(vt.keys),mr=d("breadcrumb-link-decor"),ps=t({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:mr.reference,[mr.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[mr.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}}),xs=Ss({link:ps}),$s=ys({baseStyle:xs}),ks=t({lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}}),ja=t(e=>{const{colorScheme:r,theme:a}=e;if(r==="gray")return{color:o("gray.800","whiteAlpha.900")(e),_hover:{bg:o("gray.100","whiteAlpha.200")(e)},_active:{bg:o("gray.200","whiteAlpha.300")(e)}};const i=ae(`${r}.200`,.12)(a),n=ae(`${r}.200`,.24)(a);return{color:o(`${r}.600`,`${r}.200`)(e),bg:"transparent",_hover:{bg:o(`${r}.50`,i)(e)},_active:{bg:o(`${r}.100`,n)(e)}}}),_s=t(e=>{const{colorScheme:r}=e,a=o("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:r==="gray"?a:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...p(ja,e)}}),ws={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},zs=t(e=>{var r;const{colorScheme:a}=e;if(a==="gray"){const v=o("gray.100","whiteAlpha.200")(e);return{bg:v,color:o("gray.800","whiteAlpha.900")(e),_hover:{bg:o("gray.200","whiteAlpha.300")(e),_disabled:{bg:v}},_active:{bg:o("gray.300","whiteAlpha.400")(e)}}}const{bg:i=`${a}.500`,color:n="white",hoverBg:l=`${a}.600`,activeBg:s=`${a}.700`}=(r=ws[a])!=null?r:{},c=o(i,`${a}.200`)(e);return{bg:c,color:o(n,"gray.800")(e),_hover:{bg:o(l,`${a}.300`)(e),_disabled:{bg:c}},_active:{bg:o(s,`${a}.400`)(e)}}}),Cs=t(e=>{const{colorScheme:r}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:o(`${r}.500`,`${r}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:o(`${r}.700`,`${r}.500`)(e)}}}),As=t({bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}),Ps={ghost:ja,outline:_s,solid:zs,link:Cs,unstyled:As},Is={lg:t({h:"12",minW:"12",fontSize:"lg",px:"6"}),md:t({h:"10",minW:"10",fontSize:"md",px:"4"}),sm:t({h:"8",minW:"8",fontSize:"sm",px:"3"}),xs:t({h:"6",minW:"6",fontSize:"xs",px:"2"})},Fs=h({baseStyle:ks,variants:Ps,sizes:Is,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}}),{definePartsStyle:q,defineMultiStyleConfig:Ts}=b(ut.keys),Ye=d("card-bg"),B=d("card-padding"),Ha=d("card-shadow"),Ue=d("card-radius"),Wa=d("card-border-width","0"),Va=d("card-border-color"),Ms=q({container:{[Ye.variable]:"colors.chakra-body-bg",backgroundColor:Ye.reference,boxShadow:Ha.reference,borderRadius:Ue.reference,color:"chakra-body-text",borderWidth:Wa.reference,borderColor:Va.reference},body:{padding:B.reference,flex:"1 1 0%"},header:{padding:B.reference},footer:{padding:B.reference}}),Bs={sm:q({container:{[Ue.variable]:"radii.base",[B.variable]:"space.3"}}),md:q({container:{[Ue.variable]:"radii.md",[B.variable]:"space.5"}}),lg:q({container:{[Ue.variable]:"radii.xl",[B.variable]:"space.7"}})},Es={elevated:q({container:{[Ha.variable]:"shadows.base",_dark:{[Ye.variable]:"colors.gray.700"}}}),outline:q({container:{[Wa.variable]:"1px",[Va.variable]:"colors.chakra-border-color"}}),filled:q({container:{[Ye.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[B.variable]:0},header:{[B.variable]:0},footer:{[B.variable]:0}}},Ds=Ts({baseStyle:Ms,variants:Es,sizes:Bs,defaultProps:{variant:"elevated",size:"md"}}),ge=f("close-button-size"),se=f("close-button-bg"),Rs=t({w:[ge.reference],h:[ge.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[se.variable]:"colors.blackAlpha.100",_dark:{[se.variable]:"colors.whiteAlpha.100"}},_active:{[se.variable]:"colors.blackAlpha.200",_dark:{[se.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:se.reference}),js={lg:t({[ge.variable]:"sizes.10",fontSize:"md"}),md:t({[ge.variable]:"sizes.8",fontSize:"xs"}),sm:t({[ge.variable]:"sizes.6",fontSize:"2xs"})},Hs=h({baseStyle:Rs,sizes:js,defaultProps:{size:"md"}}),{variants:Ws,defaultProps:Vs}=he,Ls=t({fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:g.bg.reference,color:g.color.reference,boxShadow:g.shadow.reference}),qs=h({baseStyle:Ls,variants:Ws,defaultProps:Vs}),Os=t({w:"100%",mx:"auto",maxW:"prose",px:"4"}),Ns=h({baseStyle:Os}),Gs=t({opacity:.6,borderColor:"inherit"}),Us=t({borderStyle:"solid"}),Ks=t({borderStyle:"dashed"}),Xs={solid:Us,dashed:Ks},Ys=h({baseStyle:Gs,variants:Xs,defaultProps:{variant:"solid"}}),{definePartsStyle:Js,defineMultiStyleConfig:Qs}=b(wa.keys),Zs=t({borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}}),e0=t({transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"}),r0=t({pt:"2",px:"4",pb:"5"}),a0=t({fontSize:"1.25em"}),t0=Js({container:Zs,button:e0,panel:r0,icon:a0}),o0=Qs({baseStyle:t0}),{definePartsStyle:ke,defineMultiStyleConfig:i0}=b(ft.keys),k=d("alert-fg"),E=d("alert-bg"),n0=ke({container:{bg:E.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:k.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:k.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function wr(e){const{theme:r,colorScheme:a}=e,i=ae(`${a}.200`,.16)(r);return{light:`colors.${a}.100`,dark:i}}var l0=ke(e=>{const{colorScheme:r}=e,a=wr(e);return{container:{[k.variable]:`colors.${r}.500`,[E.variable]:a.light,_dark:{[k.variable]:`colors.${r}.200`,[E.variable]:a.dark}}}}),s0=ke(e=>{const{colorScheme:r}=e,a=wr(e);return{container:{[k.variable]:`colors.${r}.500`,[E.variable]:a.light,_dark:{[k.variable]:`colors.${r}.200`,[E.variable]:a.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:k.reference}}}),d0=ke(e=>{const{colorScheme:r}=e,a=wr(e);return{container:{[k.variable]:`colors.${r}.500`,[E.variable]:a.light,_dark:{[k.variable]:`colors.${r}.200`,[E.variable]:a.dark},pt:"2",borderTopWidth:"4px",borderTopColor:k.reference}}}),c0=ke(e=>{const{colorScheme:r}=e;return{container:{[k.variable]:"colors.white",[E.variable]:`colors.${r}.500`,_dark:{[k.variable]:"colors.gray.900",[E.variable]:`colors.${r}.200`},color:k.reference}}}),b0={subtle:l0,"left-accent":s0,"top-accent":d0,solid:c0},v0=i0({baseStyle:n0,variants:b0,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:La,defineMultiStyleConfig:u0}=b(ht.keys),re=d("avatar-border-color"),ye=d("avatar-bg"),$e=d("avatar-font-size"),te=d("avatar-size"),f0=t({borderRadius:"full",border:"0.2em solid",borderColor:re.reference,[re.variable]:"white",_dark:{[re.variable]:"colors.gray.800"}}),h0=t({bg:ye.reference,fontSize:$e.reference,width:te.reference,height:te.reference,lineHeight:"1",[ye.variable]:"colors.gray.200",_dark:{[ye.variable]:"colors.whiteAlpha.400"}}),m0=t(e=>{const{name:r,theme:a}=e,i=r?$o({string:r}):"colors.gray.400",n=po(i)(a);let l="white";return n||(l="gray.800"),{bg:ye.reference,fontSize:$e.reference,color:l,borderColor:re.reference,verticalAlign:"top",width:te.reference,height:te.reference,"&:not([data-loaded])":{[ye.variable]:i},[re.variable]:"colors.white",_dark:{[re.variable]:"colors.gray.800"}}}),g0=t({fontSize:$e.reference,lineHeight:"1"}),y0=La(e=>({badge:p(f0,e),excessLabel:p(h0,e),container:p(m0,e),label:g0}));function R(e){const r=e!=="100%"?Ta[e]:void 0;return La({container:{[te.variable]:r??e,[$e.variable]:`calc(${r??e} / 2.5)`},excessLabel:{[te.variable]:r??e,[$e.variable]:`calc(${r??e} / 2.5)`}})}var S0={"2xs":R(4),xs:R(6),sm:R(8),md:R(12),lg:R(16),xl:R(24),"2xl":R(32),full:R("100%")},p0=u0({baseStyle:y0,sizes:S0,defaultProps:{size:"md"}}),x0={Accordion:o0,Alert:v0,Avatar:p0,Badge:he,Breadcrumb:$s,Button:Fs,Checkbox:Xe,CloseButton:Hs,Code:qs,Container:Ns,Divider:Ys,Drawer:Ul,Editable:es,Form:ns,FormError:vs,FormLabel:fs,Heading:gs,Input:u,Kbd:Rn,Link:Hn,List:On,Menu:rl,Modal:vl,NumberInput:xl,PinInput:wl,Popover:Dl,Progress:Li,Radio:rn,Select:dn,Skeleton:bn,SkipLink:un,Slider:_n,Spinner:Cn,Stat:En,Switch:jo,Table:No,Tabs:ni,Tag:Si,Textarea:Fi,Tooltip:Bi,Card:Ds,Stepper:ro},$0={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},k0={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},_0="ltr",w0={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},qa={semanticTokens:$0,direction:_0,...Qt,components:x0,styles:k0,config:w0};function ue(e){return typeof e=="function"}function z0(...e){return r=>e.reduce((a,i)=>i(a),r)}var C0=e=>function(...a){let i=[...a],n=a[a.length-1];return At(n)&&i.length>1?i=i.slice(0,i.length-1):n=e,z0(...i.map(l=>s=>ue(l)?l(s):P0(s,l)))(n)},A0=C0(qa);function P0(...e){return ua({},...e,Oa)}function Oa(e,r,a,i){if((ue(e)||ue(r))&&Object.prototype.hasOwnProperty.call(i,a))return(...n)=>{const l=ue(e)?e(...n):e,s=ue(r)?r(...n):r;return ua({},l,s,Oa)}}function I0(e={}){const{strict:r=!0,errorMessage:a="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:i}=e,n=y.createContext(void 0);n.displayName=i;function l(){var s;const c=y.useContext(n);if(!c&&r){const v=new Error(a);throw v.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,v,l),v}return c}return[n.Provider,l,n]}function F0(e){const{cssVarsRoot:r,theme:a,children:i}=e,n=y.useMemo(()=>Ja(a),[a]);return m.jsxs(Qa,{theme:n,children:[m.jsx(T0,{root:r}),i]})}function T0({root:e=":host, :root"}){const r=[e,"[data-theme]"].join(",");return m.jsx(Je,{styles:a=>({[r]:a.__cssVars})})}I0({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function M0(){const{colorMode:e}=Za();return m.jsx(Je,{styles:r=>{const a=et(r,"styles.global"),i=rt(a,{theme:r,colorMode:e});return i?at(i)(r):void 0}})}var Na=y.createContext({getDocument(){return document},getWindow(){return window}});Na.displayName="EnvironmentContext";function Ga(e){const{children:r,environment:a,disabled:i}=e,n=y.useRef(null),l=y.useMemo(()=>a||{getDocument:()=>{var c,v;return(v=(c=n.current)==null?void 0:c.ownerDocument)!=null?v:document},getWindow:()=>{var c,v;return(v=(c=n.current)==null?void 0:c.ownerDocument.defaultView)!=null?v:window}},[a]),s=!i||!a;return m.jsxs(Na.Provider,{value:l,children:[r,s&&m.jsx("span",{id:"__chakra_env",hidden:!0,ref:n})]})}Ga.displayName="EnvironmentProvider";var B0=e=>{const{children:r,colorModeManager:a,portalZIndex:i,resetScope:n,resetCSS:l=!0,theme:s={},environment:c,cssVarsRoot:v,disableEnvironment:x,disableGlobalStyle:I}=e,O=m.jsx(Ga,{environment:c,disabled:x,children:r});return m.jsx(F0,{theme:s,cssVarsRoot:v,children:m.jsxs(Pa,{colorModeManager:a,options:s.config,children:[l?m.jsx(kt,{scope:n}):m.jsx($t,{}),!I&&m.jsx(M0,{}),i?m.jsx(mt,{zIndex:i,children:O}):O]})})},E0=e=>function({children:a,theme:i=e,toastOptions:n,...l}){return m.jsxs(B0,{theme:i,...l,children:[m.jsx(gt,{value:n==null?void 0:n.defaultOptions,children:a}),m.jsx(yt,{...n})]})},D0=E0(qa);function _(e,r,a=!1){e=String(e),r=String(r);const i=Array.from({length:21},(s,c)=>c*50),n=[0,5,10,15,20,25,30,35,40,45,50,55,59,64,68,73,77,82,86,95,100];return i.reduce((s,c,v)=>{const x=a?n[v]/100:1,I=a?50:n[i.length-1-v];return s[c]=`hsl(${e} ${r}% ${I}% / ${x})`,s},{})}const Be={H:220,S:16},Ee={H:250,S:42},De={H:47,S:42},Re={H:28,S:42},je={H:113,S:42},He={H:0,S:42},R0={base:_(Be.H,Be.S),baseAlpha:_(Be.H,Be.S,!0),accent:_(Ee.H,Ee.S),accentAlpha:_(Ee.H,Ee.S,!0),working:_(De.H,De.S),workingAlpha:_(De.H,De.S,!0),warning:_(Re.H,Re.S),warningAlpha:_(Re.H,Re.S,!0),ok:_(je.H,je.S),okAlpha:_(je.H,je.S,!0),error:_(He.H,He.S),errorAlpha:_(He.H,He.S,!0)},{definePartsStyle:j0,defineMultiStyleConfig:H0}=b(wa.keys),W0=t({border:"none"}),V0=t(e=>{const{colorScheme:r}=e;return{fontWeight:"600",fontSize:"sm",border:"none",borderRadius:"base",bg:o(`${r}.200`,`${r}.700`)(e),color:o(`${r}.900`,`${r}.100`)(e),_hover:{bg:o(`${r}.250`,`${r}.650`)(e)},_expanded:{bg:o(`${r}.250`,`${r}.650`)(e),borderBottomRadius:"none",_hover:{bg:o(`${r}.300`,`${r}.600`)(e)}}}}),L0=t(e=>{const{colorScheme:r}=e;return{bg:o(`${r}.100`,`${r}.800`)(e),borderRadius:"base",borderTopRadius:"none"}}),q0=t({}),O0=j0(e=>({container:W0,button:V0(e),panel:L0(e),icon:q0})),N0=H0({variants:{invokeAI:O0},defaultProps:{variant:"invokeAI",colorScheme:"base"}}),G0=t(e=>{const{colorScheme:r}=e;if(r==="base"){const i={bg:o("base.150","base.700")(e),color:o("base.500","base.500")(e),svg:{fill:o("base.500","base.500")(e)},opacity:1};return{bg:o("base.250","base.600")(e),color:o("base.850","base.100")(e),borderRadius:"base",svg:{fill:o("base.850","base.100")(e)},_hover:{bg:o("base.300","base.500")(e),color:o("base.900","base.50")(e),svg:{fill:o("base.900","base.50")(e)},_disabled:i},_disabled:i}}const a={bg:o(`${r}.250`,`${r}.700`)(e),color:o(`${r}.50`,`${r}.500`)(e),svg:{fill:o(`${r}.50`,`${r}.500`)(e),filter:"unset"},opacity:1,filter:o(void 0,"saturate(65%)")(e)};return{bg:o(`${r}.400`,`${r}.600`)(e),color:o("base.50","base.100")(e),borderRadius:"base",svg:{fill:o("base.50","base.100")(e)},_disabled:a,_hover:{bg:o(`${r}.500`,`${r}.500`)(e),color:o("white","base.50")(e),svg:{fill:o("white","base.50")(e)},_disabled:a}}}),U0=t(e=>{const{colorScheme:r}=e,a=o("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:r==="gray"?a:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"}}}),K0=h({variants:{invokeAI:G0,invokeAIOutline:U0},defaultProps:{variant:"invokeAI",colorScheme:"base"}}),{definePartsStyle:X0,defineMultiStyleConfig:Y0}=b(ya.keys),J0=t(e=>{const{colorScheme:r}=e;return{bg:o("base.200","base.700")(e),borderColor:o("base.200","base.700")(e),color:o("base.900","base.100")(e),_checked:{bg:o(`${r}.300`,`${r}.600`)(e),borderColor:o(`${r}.300`,`${r}.600`)(e),color:o(`${r}.900`,`${r}.100`)(e),_hover:{bg:o(`${r}.400`,`${r}.500`)(e),borderColor:o(`${r}.400`,`${r}.500`)(e)},_disabled:{borderColor:"transparent",bg:"whiteAlpha.300",color:"whiteAlpha.500"}},_indeterminate:{bg:o(`${r}.300`,`${r}.600`)(e),borderColor:o(`${r}.300`,`${r}.600`)(e),color:o(`${r}.900`,`${r}.100`)(e)},_disabled:{bg:"whiteAlpha.100",borderColor:"transparent"},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:o("error.600","error.300")(e)}}}),Q0=X0(e=>({control:J0(e)})),Z0=Y0({variants:{invokeAI:Q0},defaultProps:{variant:"invokeAI",colorScheme:"accent"}}),{definePartsStyle:ed,defineMultiStyleConfig:rd}=b(_a.keys),ad=t({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"}),td=t(e=>({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6},"::selection":{color:o("accent.900","accent.50")(e),bg:o("accent.200","accent.400")(e)}})),od=t({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}),id=ed(e=>({preview:ad,input:td(e),textarea:od})),nd=rd({variants:{invokeAI:id},defaultProps:{size:"sm",variant:"invokeAI"}}),ld=t(e=>({fontSize:"sm",marginEnd:0,mb:1,fontWeight:"400",transitionProperty:"common",transitionDuration:"normal",whiteSpace:"nowrap",_disabled:{opacity:.4},color:o("base.700","base.300")(e)})),sd=h({variants:{invokeAI:ld},defaultProps:{variant:"invokeAI"}}),er=e=>({outline:"none",borderWidth:2,borderStyle:"solid",borderColor:o("base.200","base.800")(e),bg:o("base.50","base.900")(e),borderRadius:"base",color:o("base.900","base.100")(e),boxShadow:"none",_hover:{borderColor:o("base.300","base.600")(e)},_focus:{borderColor:o("accent.200","accent.600")(e),boxShadow:"none",_hover:{borderColor:o("accent.300","accent.500")(e)}},_invalid:{borderColor:o("error.300","error.600")(e),boxShadow:"none",_hover:{borderColor:o("error.400","error.500")(e)}},_disabled:{borderColor:o("base.300","base.700")(e),bg:o("base.300","base.700")(e),color:o("base.600","base.400")(e),_hover:{borderColor:o("base.300","base.700")(e)}},_placeholder:{color:o("base.700","base.400")(e)},"::selection":{bg:o("accent.200","accent.400")(e)}}),{definePartsStyle:dd,defineMultiStyleConfig:cd}=b(ma.keys),bd=dd(e=>({field:er(e)})),vd=cd({variants:{invokeAI:bd},defaultProps:{size:"sm",variant:"invokeAI"}}),{defineMultiStyleConfig:ud,definePartsStyle:fd}=b(xa.keys),hd=t(e=>({bg:o("blackAlpha.700","blackAlpha.700")(e)})),md=t({}),gd=t(()=>({layerStyle:"first",maxH:"80vh"})),yd=t(()=>({fontWeight:"600",fontSize:"lg",layerStyle:"first",borderTopRadius:"base",borderInlineEndRadius:"base"})),Sd=t({}),pd=t({overflowY:"scroll"}),xd=t({}),$d=fd(e=>({overlay:hd(e),dialogContainer:md,dialog:gd(),header:yd(),closeButton:Sd,body:pd,footer:xd})),kd=ud({variants:{invokeAI:$d},defaultProps:{variant:"invokeAI",size:"lg"}}),{defineMultiStyleConfig:_d,definePartsStyle:wd}=b($a.keys),zd=t(e=>({height:8})),Cd=t(e=>({border:"none",fontWeight:"600",height:"auto",py:1,ps:2,pe:6,...er(e)})),Ad=t(e=>({display:"flex"})),Pd=t(e=>({border:"none",px:2,py:0,mx:-2,my:0,svg:{color:o("base.700","base.300")(e),width:2.5,height:2.5,_hover:{color:o("base.900","base.100")(e)}}})),Id=wd(e=>({root:zd(e),field:Cd(e),stepperGroup:Ad(e),stepper:Pd(e)})),Fd=_d({variants:{invokeAI:Id},defaultProps:{size:"sm",variant:"invokeAI"}}),{defineMultiStyleConfig:Td,definePartsStyle:Md}=b(ka.keys),Bd=f("popper-bg"),Ed=f("popper-arrow-bg"),Dd=f("popper-arrow-shadow-color"),Rd=t(e=>({[Ed.variable]:o("colors.base.100","colors.base.800")(e),[Bd.variable]:o("colors.base.100","colors.base.800")(e),[Dd.variable]:o("colors.base.400","colors.base.600")(e),minW:"unset",width:"unset",p:4,bg:o("base.100","base.800")(e),border:"none",shadow:"dark-lg"})),jd=Md(e=>({content:Rd(e)})),Hd=Td({variants:{invokeAI:jd},defaultProps:{variant:"invokeAI"}}),{defineMultiStyleConfig:Wd,definePartsStyle:Vd}=b(ga.keys),Ld=t(e=>({bg:"accentAlpha.500"})),qd=t(e=>{const{colorScheme:r}=e;return{bg:o(`${r}.200`,`${r}.700`)(e)}}),Od=Vd(e=>({filledTrack:Ld(e),track:qd(e)})),Nd=Wd({variants:{invokeAI:Od},defaultProps:{variant:"invokeAI"}}),Gd={"::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"},{definePartsStyle:Ud,defineMultiStyleConfig:Kd}=b(Sa.keys),Xd=t(e=>({color:o("base.200","base.300")(e)})),Yd=t(e=>({fontWeight:"600",...er(e)})),Jd=Ud(e=>({field:Yd(e),icon:Xd(e)})),Qd=Kd({variants:{invokeAI:Jd},defaultProps:{size:"sm",variant:"invokeAI"}}),ca=d("skeleton-start-color"),ba=d("skeleton-end-color"),Zd=t({borderRadius:"base",maxW:"full",maxH:"full",_light:{[ca.variable]:"colors.base.250",[ba.variable]:"colors.base.450"},_dark:{[ca.variable]:"colors.base.700",[ba.variable]:"colors.base.500"}}),ec=h({variants:{invokeAI:Zd},defaultProps:{variant:"invokeAI"}}),{definePartsStyle:rc,defineMultiStyleConfig:ac}=b(pa.keys),tc=t(e=>({bg:o("base.400","base.600")(e),h:1.5})),oc=t(e=>{const{colorScheme:r}=e;return{bg:o(`${r}.400`,`${r}.600`)(e),h:1.5}}),ic=t(e=>({w:2,h:4,bg:o("base.50","base.100")(e)})),nc=t(e=>({fontSize:"2xs",fontWeight:"500",color:o("base.700","base.400")(e),mt:2,insetInlineStart:"unset"})),lc=rc(e=>({container:{_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"}},track:tc(e),filledTrack:oc(e),thumb:ic(e),mark:nc(e)})),sc=ac({variants:{invokeAI:lc},defaultProps:{variant:"invokeAI",colorScheme:"accent"}}),{defineMultiStyleConfig:dc,definePartsStyle:cc}=b(fa.keys),bc=t(e=>{const{colorScheme:r}=e;return{bg:o("base.300","base.600")(e),_focusVisible:{boxShadow:"none"},_checked:{bg:o(`${r}.400`,`${r}.500`)(e)}}}),vc=t(e=>{const{colorScheme:r}=e;return{bg:o(`${r}.50`,`${r}.50`)(e)}}),uc=cc(e=>({container:{},track:bc(e),thumb:vc(e)})),fc=dc({variants:{invokeAI:uc},defaultProps:{size:"md",variant:"invokeAI",colorScheme:"accent"}}),{defineMultiStyleConfig:hc,definePartsStyle:mc}=b(ha.keys),gc=t(e=>({display:"flex",columnGap:4})),yc=t(e=>({})),Sc=t(e=>{const{colorScheme:r}=e;return{display:"flex",flexDirection:"column",gap:1,color:o("base.700","base.400")(e),button:{fontSize:"sm",padding:2,borderRadius:"base",textShadow:o("0 0 0.3rem var(--invokeai-colors-accent-100)","0 0 0.3rem var(--invokeai-colors-accent-900)")(e),svg:{fill:o("base.700","base.300")(e)},_selected:{bg:o("accent.400","accent.600")(e),color:o("base.50","base.100")(e),svg:{fill:o("base.50","base.100")(e),filter:o(`drop-shadow(0px 0px 0.3rem var(--invokeai-colors-${r}-600))`,`drop-shadow(0px 0px 0.3rem var(--invokeai-colors-${r}-800))`)(e)},_hover:{bg:o("accent.500","accent.500")(e),color:o("white","base.50")(e),svg:{fill:o("white","base.50")(e)}}},_hover:{bg:o("base.100","base.800")(e),color:o("base.900","base.50")(e),svg:{fill:o("base.800","base.100")(e)}}}}}),pc=t(e=>({padding:0,height:"100%"})),xc=mc(e=>({root:gc(e),tab:yc(e),tablist:Sc(e),tabpanel:pc(e)})),$c=hc({variants:{invokeAI:xc},defaultProps:{variant:"invokeAI",colorScheme:"accent"}}),kc=t(e=>({color:o("base.500","base.400")(e)})),_c=h({variants:{subtext:kc}}),wc=t(e=>({...er(e),"::-webkit-scrollbar":{display:"initial"},"::-webkit-resizer":{backgroundImage:`linear-gradient(135deg,
var(--invokeai-colors-base-50) 0%,
var(--invokeai-colors-base-50) 70%,
var(--invokeai-colors-base-200) 70%,
var(--invokeai-colors-base-200) 100%)`},_disabled:{"::-webkit-resizer":{backgroundImage:`linear-gradient(135deg,
var(--invokeai-colors-base-50) 0%,
var(--invokeai-colors-base-50) 70%,
var(--invokeai-colors-base-200) 70%,
var(--invokeai-colors-base-200) 100%)`}},_dark:{"::-webkit-resizer":{backgroundImage:`linear-gradient(135deg,
var(--invokeai-colors-base-900) 0%,
var(--invokeai-colors-base-900) 70%,
var(--invokeai-colors-base-800) 70%,
var(--invokeai-colors-base-800) 100%)`},_disabled:{"::-webkit-resizer":{backgroundImage:`linear-gradient(135deg,
var(--invokeai-colors-base-900) 0%,
var(--invokeai-colors-base-900) 70%,
var(--invokeai-colors-base-800) 70%,
var(--invokeai-colors-base-800) 100%)`}}}})),zc=h({variants:{invokeAI:wc},defaultProps:{size:"md",variant:"invokeAI"}}),Cc=f("popper-arrow-bg"),Ac=t(e=>({borderRadius:"base",shadow:"dark-lg",bg:o("base.700","base.200")(e),[Cc.variable]:o("colors.base.700","colors.base.200")(e),pb:1.5})),Pc=h({baseStyle:Ac}),Ic={config:{cssVarPrefix:"invokeai",initialColorMode:"dark",useSystemColorMode:!1},layerStyles:{body:{bg:"base.50",color:"base.900",".chakra-ui-dark &":{bg:"base.900",color:"base.50"}},first:{bg:"base.100",color:"base.900",".chakra-ui-dark &":{bg:"base.850",color:"base.100"}},second:{bg:"base.200",color:"base.900",".chakra-ui-dark &":{bg:"base.800",color:"base.100"}}},styles:{global:()=>({layerStyle:"body","*":{...Gd}})},direction:"ltr",fonts:{body:"'Inter Variable', sans-serif"},shadows:{light:{accent:"0 0 10px 0 var(--invokeai-colors-accent-300)",accentHover:"0 0 10px 0 var(--invokeai-colors-accent-400)",ok:"0 0 7px var(--invokeai-colors-ok-600)",working:"0 0 7px var(--invokeai-colors-working-600)",error:"0 0 7px var(--invokeai-colors-error-600)"},dark:{accent:"0 0 10px 0 var(--invokeai-colors-accent-600)",accentHover:"0 0 10px 0 var(--invokeai-colors-accent-500)",ok:"0 0 7px var(--invokeai-colors-ok-400)",working:"0 0 7px var(--invokeai-colors-working-400)",error:"0 0 7px var(--invokeai-colors-error-400)"},selected:{light:"0px 0px 0px 1px var(--invokeai-colors-base-150), 0px 0px 0px 4px var(--invokeai-colors-accent-400)",dark:"0px 0px 0px 1px var(--invokeai-colors-base-900), 0px 0px 0px 4px var(--invokeai-colors-accent-500)"},hoverSelected:{light:"0px 0px 0px 1px var(--invokeai-colors-base-150), 0px 0px 0px 4px var(--invokeai-colors-accent-500)",dark:"0px 0px 0px 1px var(--invokeai-colors-base-900), 0px 0px 0px 4px var(--invokeai-colors-accent-400)"},hoverUnselected:{light:"0px 0px 0px 1px var(--invokeai-colors-base-150), 0px 0px 0px 3px var(--invokeai-colors-accent-500)",dark:"0px 0px 0px 1px var(--invokeai-colors-base-900), 0px 0px 0px 3px var(--invokeai-colors-accent-400)"},nodeSelectedOutline:"0 0 0 2px var(--invokeai-colors-accent-450)"},colors:R0,components:{Button:K0,Input:vd,Editable:nd,Textarea:zc,Tabs:$c,Progress:Nd,Accordion:N0,FormLabel:sd,Switch:fc,NumberInput:Fd,Select:Qd,Skeleton:ec,Slider:sc,Popover:Hd,Modal:kd,Checkbox:Z0,Menu:St,Text:_c,Tooltip:Pc}};const Fc=()=>y.useMemo(()=>({colorScheme:"dark",fontFamily:"'Inter Variable', sans-serif",components:{ScrollArea:{defaultProps:{scrollbarSize:10},styles:{scrollbar:{"&:hover":{backgroundColor:"var(--invokeai-colors-baseAlpha-300)"}},thumb:{backgroundColor:"var(--invokeai-colors-baseAlpha-300)"}}}}}),[]),Tc=Aa("@@invokeai-color-mode");function Ec({children:e}){const{i18n:r}=pt(),a=r.dir(),i=y.useMemo(()=>A0({...Ic,direction:a}),[a]);y.useEffect(()=>{document.body.dir=a},[a]);const n=Fc();return m.jsx(xt,{theme:n,children:m.jsx(D0,{theme:i,colorModeManager:Tc,children:e})})}export{Ec as default};