mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
316 lines
73 KiB
JavaScript
316 lines
73 KiB
JavaScript
import{j as y,cN as Ie,r as _,cO as bt,q as Lr,cP as o,cQ as b,cR as v,cS as S,cT as Vr,cU as ut,cV as vt,cM as ft,cW as mt,n as gt,cX as ht,E as pt}from"./index-d64f4654.js";import{d as yt,i as St,T as xt,j as $t,h as kt}from"./storeHooks-0eed8e9f.js";var Or=`
|
|
:root {
|
|
--chakra-vh: 100vh;
|
|
}
|
|
|
|
@supports (height: -webkit-fill-available) {
|
|
:root {
|
|
--chakra-vh: -webkit-fill-available;
|
|
}
|
|
}
|
|
|
|
@supports (height: -moz-fill-available) {
|
|
:root {
|
|
--chakra-vh: -moz-fill-available;
|
|
}
|
|
}
|
|
|
|
@supports (height: 100dvh) {
|
|
:root {
|
|
--chakra-vh: 100dvh;
|
|
}
|
|
}
|
|
`,_t=()=>y.jsx(Ie,{styles:Or}),wt=()=>y.jsx(Ie,{styles:`
|
|
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%;
|
|
font-feature-settings: 'kern';
|
|
}
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
border-width: 0;
|
|
border-style: solid;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
main {
|
|
display: block;
|
|
}
|
|
|
|
hr {
|
|
border-top-width: 1px;
|
|
box-sizing: content-box;
|
|
height: 0;
|
|
overflow: visible;
|
|
}
|
|
|
|
pre,
|
|
code,
|
|
kbd,
|
|
samp {
|
|
font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
font-size: 1em;
|
|
}
|
|
|
|
a {
|
|
background-color: transparent;
|
|
color: inherit;
|
|
text-decoration: inherit;
|
|
}
|
|
|
|
abbr[title] {
|
|
border-bottom: none;
|
|
text-decoration: underline;
|
|
-webkit-text-decoration: underline dotted;
|
|
text-decoration: underline dotted;
|
|
}
|
|
|
|
b,
|
|
strong {
|
|
font-weight: bold;
|
|
}
|
|
|
|
small {
|
|
font-size: 80%;
|
|
}
|
|
|
|
sub,
|
|
sup {
|
|
font-size: 75%;
|
|
line-height: 0;
|
|
position: relative;
|
|
vertical-align: baseline;
|
|
}
|
|
|
|
sub {
|
|
bottom: -0.25em;
|
|
}
|
|
|
|
sup {
|
|
top: -0.5em;
|
|
}
|
|
|
|
img {
|
|
border-style: none;
|
|
}
|
|
|
|
button,
|
|
input,
|
|
optgroup,
|
|
select,
|
|
textarea {
|
|
font-family: inherit;
|
|
font-size: 100%;
|
|
line-height: 1.15;
|
|
margin: 0;
|
|
}
|
|
|
|
button,
|
|
input {
|
|
overflow: visible;
|
|
}
|
|
|
|
button,
|
|
select {
|
|
text-transform: none;
|
|
}
|
|
|
|
button::-moz-focus-inner,
|
|
[type="button"]::-moz-focus-inner,
|
|
[type="reset"]::-moz-focus-inner,
|
|
[type="submit"]::-moz-focus-inner {
|
|
border-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
fieldset {
|
|
padding: 0.35em 0.75em 0.625em;
|
|
}
|
|
|
|
legend {
|
|
box-sizing: border-box;
|
|
color: inherit;
|
|
display: table;
|
|
max-width: 100%;
|
|
padding: 0;
|
|
white-space: normal;
|
|
}
|
|
|
|
progress {
|
|
vertical-align: baseline;
|
|
}
|
|
|
|
textarea {
|
|
overflow: auto;
|
|
}
|
|
|
|
[type="checkbox"],
|
|
[type="radio"] {
|
|
box-sizing: border-box;
|
|
padding: 0;
|
|
}
|
|
|
|
[type="number"]::-webkit-inner-spin-button,
|
|
[type="number"]::-webkit-outer-spin-button {
|
|
-webkit-appearance: none !important;
|
|
}
|
|
|
|
input[type="number"] {
|
|
-moz-appearance: textfield;
|
|
}
|
|
|
|
[type="search"] {
|
|
-webkit-appearance: textfield;
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
[type="search"]::-webkit-search-decoration {
|
|
-webkit-appearance: none !important;
|
|
}
|
|
|
|
::-webkit-file-upload-button {
|
|
-webkit-appearance: button;
|
|
font: inherit;
|
|
}
|
|
|
|
details {
|
|
display: block;
|
|
}
|
|
|
|
summary {
|
|
display: list-item;
|
|
}
|
|
|
|
template {
|
|
display: none;
|
|
}
|
|
|
|
[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
body,
|
|
blockquote,
|
|
dl,
|
|
dd,
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6,
|
|
hr,
|
|
figure,
|
|
p,
|
|
pre {
|
|
margin: 0;
|
|
}
|
|
|
|
button {
|
|
background: transparent;
|
|
padding: 0;
|
|
}
|
|
|
|
fieldset {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
ol,
|
|
ul {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
textarea {
|
|
resize: vertical;
|
|
}
|
|
|
|
button,
|
|
[role="button"] {
|
|
cursor: pointer;
|
|
}
|
|
|
|
button::-moz-focus-inner {
|
|
border: 0 !important;
|
|
}
|
|
|
|
table {
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
font-size: inherit;
|
|
font-weight: inherit;
|
|
}
|
|
|
|
button,
|
|
input,
|
|
optgroup,
|
|
select,
|
|
textarea {
|
|
padding: 0;
|
|
line-height: inherit;
|
|
color: inherit;
|
|
}
|
|
|
|
img,
|
|
svg,
|
|
video,
|
|
canvas,
|
|
audio,
|
|
iframe,
|
|
embed,
|
|
object {
|
|
display: block;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
select::-ms-expand {
|
|
display: none;
|
|
}
|
|
|
|
${Or}
|
|
`}),pe={light:"chakra-ui-light",dark:"chakra-ui-dark"};function Ct(e={}){const{preventTransition:r=!0}=e,t={setDataset:a=>{const n=r?t.preventTransition():void 0;document.documentElement.dataset.theme=a,document.documentElement.style.colorScheme=a,n==null||n()},setClassName(a){document.body.classList.add(a?pe.dark:pe.light),document.body.classList.remove(a?pe.light:pe.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(a){var n;return((n=t.query().matches)!=null?n:a==="dark")?"dark":"light"},addListener(a){const n=t.query(),i=l=>{a(l.matches?"dark":"light")};return typeof n.addListener=="function"?n.addListener(i):n.addEventListener("change",i),()=>{typeof n.removeListener=="function"?n.removeListener(i):n.removeEventListener("change",i)}},preventTransition(){const a=document.createElement("style");return a.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(a),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(a)})})}}};return t}var zt="chakra-ui-color-mode";function At(e){return{ssr:!1,type:"localStorage",get(r){if(!(globalThis!=null&&globalThis.document))return r;let t;try{t=localStorage.getItem(e)||r}catch{}return t||r},set(r){try{localStorage.setItem(e,r)}catch{}}}}var Pt=At(zt),lr=()=>{};function sr(e,r){return e.type==="cookie"&&e.ssr?e.get(r):r}function qr(e){const{value:r,children:t,options:{useSystemColorMode:a,initialColorMode:n,disableTransitionOnChange:i}={},colorModeManager:l=Pt}=e,d=n==="dark"?"dark":"light",[c,$]=_.useState(()=>sr(l,d)),[g,h]=_.useState(()=>sr(l)),{getSystemTheme:k,setClassName:F,setDataset:me,addListener:nr}=_.useMemo(()=>Ct({preventTransition:i}),[i]),ge=n==="system"&&!c?g:c,I=_.useCallback(re=>{const he=re==="system"?k():re;$(he),F(he==="dark"),me(he),l.set(he)},[l,k,F,me]);yt(()=>{n==="system"&&h(k())},[]),_.useEffect(()=>{const re=l.get();if(re){I(re);return}if(n==="system"){I("system");return}I(d)},[l,d,n,I]);const ir=_.useCallback(()=>{I(ge==="dark"?"light":"dark")},[ge,I]);_.useEffect(()=>{if(a)return nr(I)},[a,nr,I]);const ct=_.useMemo(()=>({colorMode:r??ge,toggleColorMode:r?lr:ir,setColorMode:r?lr:I,forced:r!==void 0}),[ge,ir,I,r]);return y.jsx(bt.Provider,{value:ct,children:t})}qr.displayName="ColorModeProvider";var Tt=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function Ft(e){return Lr(e)?Tt.every(r=>Object.prototype.hasOwnProperty.call(e,r)):!1}var It={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},Bt=It,Mt={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},Et=Mt,Dt={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"}},jt=Dt,Rt={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Wt=Rt,Ht={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"},Lt=Ht,Vt={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"},Ot={"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)"},qt={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},Nt={property:Vt,easing:Ot,duration:qt},Gt=Nt,Ut={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Yt=Ut,Xt={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},Kt=Xt,Qt={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"}},Nr=Qt,Gr={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"},Zt={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"},Jt={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},eo={...Gr,...Zt,container:Jt},Ur=eo,ro={breakpoints:Et,zIndices:Bt,radii:Wt,blur:Yt,colors:jt,...Nr,sizes:Ur,shadows:Lt,space:Gr,borders:Kt,transition:Gt};function f(e,r={}){let t=!1;function a(){if(!t){t=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function n(...g){a();for(const h of g)r[h]=c(h);return f(e,r)}function i(...g){for(const h of g)h in r||(r[h]=c(h));return f(e,r)}function l(){return Object.fromEntries(Object.entries(r).map(([h,k])=>[h,k.selector]))}function d(){return Object.fromEntries(Object.entries(r).map(([h,k])=>[h,k.className]))}function c(g){const F=`chakra-${(["container","root"].includes(g??"")?[e]:[e,g]).filter(Boolean).join("__")}`;return{className:F,selector:`.${F}`,toString:()=>g}}return{parts:n,toPart:c,extend:i,selectors:l,classnames:d,get keys(){return Object.keys(r)},__type:{}}}var to=f("accordion").parts("root","container","button","panel").extend("icon"),oo=f("alert").parts("title","description","container").extend("icon","spinner"),ao=f("avatar").parts("label","badge","container").extend("excessLabel","group"),no=f("breadcrumb").parts("link","item","container").extend("separator");f("button").parts();var io=f("checkbox").parts("control","icon","container").extend("label");f("progress").parts("track","filledTrack").extend("label");var lo=f("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),so=f("editable").parts("preview","input","textarea"),co=f("form").parts("container","requiredIndicator","helperText"),bo=f("formError").parts("text","icon"),uo=f("input").parts("addon","field","element"),vo=f("list").parts("container","item","icon"),fo=f("menu").parts("button","list","item").extend("groupTitle","command","divider"),mo=f("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),go=f("numberinput").parts("root","field","stepperGroup","stepper");f("pininput").parts("field");var ho=f("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),po=f("progress").parts("label","filledTrack","track"),yo=f("radio").parts("container","control","label"),So=f("select").parts("field","icon"),xo=f("slider").parts("container","track","thumb","filledTrack","mark"),$o=f("stat").parts("container","label","helpText","number","icon"),ko=f("switch").parts("container","track","thumb"),_o=f("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),wo=f("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),Co=f("tag").parts("container","label","closeButton"),zo=f("card").parts("container","header","body","footer");function q(e,r,t){return Math.min(Math.max(e,t),r)}class Ao extends Error{constructor(r){super(`Failed to parse color: "${r}"`)}}var ae=Ao;function Je(e){if(typeof e!="string")throw new ae(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let r=e.trim();r=Do.test(e)?Fo(e):e;const t=Io.exec(r);if(t){const l=Array.from(t).slice(1);return[...l.slice(0,3).map(d=>parseInt(be(d,2),16)),parseInt(be(l[3]||"f",2),16)/255]}const a=Bo.exec(r);if(a){const l=Array.from(a).slice(1);return[...l.slice(0,3).map(d=>parseInt(d,16)),parseInt(l[3]||"ff",16)/255]}const n=Mo.exec(r);if(n){const l=Array.from(n).slice(1);return[...l.slice(0,3).map(d=>parseInt(d,10)),parseFloat(l[3]||"1")]}const i=Eo.exec(r);if(i){const[l,d,c,$]=Array.from(i).slice(1).map(parseFloat);if(q(0,100,d)!==d)throw new ae(e);if(q(0,100,c)!==c)throw new ae(e);return[...jo(l,d,c),Number.isNaN($)?1:$]}throw new ae(e)}function Po(e){let r=5381,t=e.length;for(;t;)r=r*33^e.charCodeAt(--t);return(r>>>0)%2341}const dr=e=>parseInt(e.replace(/_/g,""),36),To="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 t=dr(r.substring(0,3)),a=dr(r.substring(3)).toString(16);let n="";for(let i=0;i<6-a.length;i++)n+="0";return e[t]=`${n}${a}`,e},{});function Fo(e){const r=e.toLowerCase().trim(),t=To[Po(r)];if(!t)throw new ae(e);return`#${t}`}const be=(e,r)=>Array.from(Array(r)).map(()=>e).join(""),Io=new RegExp(`^#${be("([a-f0-9])",3)}([a-f0-9])?$`,"i"),Bo=new RegExp(`^#${be("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),Mo=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${be(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),Eo=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,Do=/^[a-z]+$/i,cr=e=>Math.round(e*255),jo=(e,r,t)=>{let a=t/100;if(r===0)return[a,a,a].map(cr);const n=(e%360+360)%360/60,i=(1-Math.abs(2*a-1))*(r/100),l=i*(1-Math.abs(n%2-1));let d=0,c=0,$=0;n>=0&&n<1?(d=i,c=l):n>=1&&n<2?(d=l,c=i):n>=2&&n<3?(c=i,$=l):n>=3&&n<4?(c=l,$=i):n>=4&&n<5?(d=l,$=i):n>=5&&n<6&&(d=i,$=l);const g=a-i/2,h=d+g,k=c+g,F=$+g;return[h,k,F].map(cr)};function Ro(e,r,t,a){return`rgba(${q(0,255,e).toFixed()}, ${q(0,255,r).toFixed()}, ${q(0,255,t).toFixed()}, ${parseFloat(q(0,1,a).toFixed(3))})`}function Wo(e,r){const[t,a,n,i]=Je(e);return Ro(t,a,n,i-r)}function Ho(e){const[r,t,a,n]=Je(e);let i=l=>{const d=q(0,255,l).toString(16);return d.length===1?`0${d}`:d};return`#${i(r)}${i(t)}${i(a)}${n<1?i(Math.round(n*255)):""}`}function Lo(e,r,t,a,n){for(r=r.split?r.split("."):r,a=0;a<r.length;a++)e=e?e[r[a]]:n;return e===n?t:e}var Vo=e=>Object.keys(e).length===0,w=(e,r,t)=>{const a=Lo(e,`colors.${r}`,r);try{return Ho(a),a}catch{return t??"#000000"}},Oo=e=>{const[r,t,a]=Je(e);return(r*299+t*587+a*114)/1e3},qo=e=>r=>{const t=w(r,e);return Oo(t)<128?"dark":"light"},No=e=>r=>qo(e)(r)==="dark",ee=(e,r)=>t=>{const a=w(t,e);return Wo(a,1-r)};function br(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 Go=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function Uo(e){const r=Go();return!e||Vo(e)?r:e.string&&e.colors?Xo(e.string,e.colors):e.string&&!e.colors?Yo(e.string):e.colors&&!e.string?Ko(e.colors):r}function Yo(e){let r=0;if(e.length===0)return r.toString();for(let a=0;a<e.length;a+=1)r=e.charCodeAt(a)+((r<<5)-r),r=r&r;let t="#";for(let a=0;a<3;a+=1){const n=r>>a*8&255;t+=`00${n.toString(16)}`.substr(-2)}return t}function Xo(e,r){let t=0;if(e.length===0)return r[0];for(let a=0;a<e.length;a+=1)t=e.charCodeAt(a)+((t<<5)-t),t=t&t;return t=(t%r.length+r.length)%r.length,r[t]}function Ko(e){return e[Math.floor(Math.random()*e.length)]}function s(e,r){return t=>t.colorMode==="dark"?r:e}function er(e){const{orientation:r,vertical:t,horizontal:a}=e;return r?r==="vertical"?t:a:{}}function Yr(e){return Lr(e)&&e.reference?e.reference:String(e)}var Be=(e,...r)=>r.map(Yr).join(` ${e} `).replace(/calc/g,""),ur=(...e)=>`calc(${Be("+",...e)})`,vr=(...e)=>`calc(${Be("-",...e)})`,Xe=(...e)=>`calc(${Be("*",...e)})`,fr=(...e)=>`calc(${Be("/",...e)})`,mr=e=>{const r=Yr(e);return r!=null&&!Number.isNaN(parseFloat(r))?String(r).startsWith("-")?String(r).slice(1):`-${r}`:Xe(r,-1)},D=Object.assign(e=>({add:(...r)=>D(ur(e,...r)),subtract:(...r)=>D(vr(e,...r)),multiply:(...r)=>D(Xe(e,...r)),divide:(...r)=>D(fr(e,...r)),negate:()=>D(mr(e)),toString:()=>e.toString()}),{add:ur,subtract:vr,multiply:Xe,divide:fr,negate:mr});function Qo(e){return!Number.isInteger(parseFloat(e.toString()))}function Zo(e,r="-"){return e.replace(/\s+/g,r)}function Xr(e){const r=Zo(e.toString());return r.includes("\\.")?e:Qo(e)?r.replace(".","\\."):e}function Jo(e,r=""){return[r,Xr(e)].filter(Boolean).join("-")}function ea(e,r){return`var(${Xr(e)}${r?`, ${r}`:""})`}function ra(e,r=""){return`--${Jo(e,r)}`}function x(e,r){const t=ra(e,r==null?void 0:r.prefix);return{variable:t,reference:ea(t,ta(r==null?void 0:r.fallback))}}function ta(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:oa,definePartsStyle:we}=b(ko.keys),le=x("switch-track-width"),N=x("switch-track-height"),De=x("switch-track-diff"),aa=D.subtract(le,N),Ke=x("switch-thumb-x"),te=x("switch-bg"),na=o(e=>{const{colorScheme:r}=e;return{borderRadius:"full",p:"0.5",width:[le.reference],height:[N.reference],transitionProperty:"common",transitionDuration:"fast",[te.variable]:"colors.gray.300",_dark:{[te.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[te.variable]:`colors.${r}.500`,_dark:{[te.variable]:`colors.${r}.200`}},bg:te.reference}}),ia=o({bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[N.reference],height:[N.reference],_checked:{transform:`translateX(${Ke.reference})`}}),la=we(e=>({container:{[De.variable]:aa,[Ke.variable]:De.reference,_rtl:{[Ke.variable]:D(De).negate().toString()}},track:na(e),thumb:ia})),sa={sm:we({container:{[le.variable]:"1.375rem",[N.variable]:"sizes.3"}}),md:we({container:{[le.variable]:"1.875rem",[N.variable]:"sizes.4"}}),lg:we({container:{[le.variable]:"2.875rem",[N.variable]:"sizes.6"}})},da=oa({baseStyle:la,sizes:sa,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ca,definePartsStyle:X}=b(_o.keys),ba=X({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"}}),Pe=o({"&[data-is-numeric=true]":{textAlign:"end"}}),ua=X(e=>{const{colorScheme:r}=e;return{th:{color:s("gray.600","gray.400")(e),borderBottom:"1px",borderColor:s(`${r}.100`,`${r}.700`)(e),...Pe},td:{borderBottom:"1px",borderColor:s(`${r}.100`,`${r}.700`)(e),...Pe},caption:{color:s("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),va=X(e=>{const{colorScheme:r}=e;return{th:{color:s("gray.600","gray.400")(e),borderBottom:"1px",borderColor:s(`${r}.100`,`${r}.700`)(e),...Pe},td:{borderBottom:"1px",borderColor:s(`${r}.100`,`${r}.700`)(e),...Pe},caption:{color:s("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:s(`${r}.100`,`${r}.700`)(e)},td:{background:s(`${r}.100`,`${r}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),fa={simple:ua,striped:va,unstyled:o({})},ma={sm:X({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:X({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:X({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},ga=ca({baseStyle:ba,variants:fa,sizes:ma,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),z=v("tabs-color"),T=v("tabs-bg"),ye=v("tabs-border-color"),{defineMultiStyleConfig:ha,definePartsStyle:E}=b(wo.keys),pa=o(e=>{const{orientation:r}=e;return{display:r==="vertical"?"flex":"block"}}),ya=o(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}}}),Sa=o(e=>{const{align:r="start",orientation:t}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[r],flexDirection:t==="vertical"?"column":"row"}}),xa=o({p:4}),$a=E(e=>({root:pa(e),tab:ya(e),tablist:Sa(e),tabpanel:xa})),ka={sm:E({tab:{py:1,px:4,fontSize:"sm"}}),md:E({tab:{fontSize:"md",py:2,px:4}}),lg:E({tab:{fontSize:"lg",py:3,px:4}})},_a=E(e=>{const{colorScheme:r,orientation:t}=e,a=t==="vertical",n=t==="vertical"?"borderStart":"borderBottom",i=a?"marginStart":"marginBottom";return{tablist:{[n]:"2px solid",borderColor:"inherit"},tab:{[n]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[z.variable]:`colors.${r}.600`,_dark:{[z.variable]:`colors.${r}.300`},borderColor:"currentColor"},_active:{[T.variable]:"colors.gray.200",_dark:{[T.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:z.reference,bg:T.reference}}}),wa=E(e=>{const{colorScheme:r}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[ye.variable]:"transparent",_selected:{[z.variable]:`colors.${r}.600`,[ye.variable]:"colors.white",_dark:{[z.variable]:`colors.${r}.300`,[ye.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:ye.reference},color:z.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),Ca=E(e=>{const{colorScheme:r}=e;return{tab:{border:"1px solid",borderColor:"inherit",[T.variable]:"colors.gray.50",_dark:{[T.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[T.variable]:"colors.white",[z.variable]:`colors.${r}.600`,_dark:{[T.variable]:"colors.gray.800",[z.variable]:`colors.${r}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:z.reference,bg:T.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),za=E(e=>{const{colorScheme:r,theme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:w(t,`${r}.700`),bg:w(t,`${r}.100`)}}}}),Aa=E(e=>{const{colorScheme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[z.variable]:"colors.gray.600",_dark:{[z.variable]:"inherit"},_selected:{[z.variable]:"colors.white",[T.variable]:`colors.${r}.600`,_dark:{[z.variable]:"colors.gray.800",[T.variable]:`colors.${r}.300`}},color:z.reference,bg:T.reference}}}),Pa=E({}),Ta={line:_a,enclosed:wa,"enclosed-colored":Ca,"soft-rounded":za,"solid-rounded":Aa,unstyled:Pa},Fa=ha({baseStyle:$a,sizes:ka,variants:Ta,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Ia=o({px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"}),K=v("badge-bg"),M=v("badge-color"),Ba=o(e=>{const{colorScheme:r,theme:t}=e,a=ee(`${r}.500`,.6)(t);return{[K.variable]:`colors.${r}.500`,[M.variable]:"colors.white",_dark:{[K.variable]:a,[M.variable]:"colors.whiteAlpha.800"},bg:K.reference,color:M.reference}}),Ma=o(e=>{const{colorScheme:r,theme:t}=e,a=ee(`${r}.200`,.16)(t);return{[K.variable]:`colors.${r}.100`,[M.variable]:`colors.${r}.800`,_dark:{[K.variable]:a,[M.variable]:`colors.${r}.200`},bg:K.reference,color:M.reference}}),Ea=o(e=>{const{colorScheme:r,theme:t}=e,a=ee(`${r}.200`,.8)(t);return{[M.variable]:`colors.${r}.500`,_dark:{[M.variable]:a},color:M.reference,boxShadow:`inset 0 0 0px 1px ${M.reference}`}}),Da={solid:Ba,subtle:Ma,outline:Ea},se=S({baseStyle:Ia,variants:Da,defaultProps:{variant:"subtle",colorScheme:"gray"}}),{defineMultiStyleConfig:ja,definePartsStyle:G}=b(Co.keys),Ra=o({fontWeight:"medium",lineHeight:1.2,outline:0,borderRadius:"md",_focusVisible:{boxShadow:"outline"}}),Wa=o({lineHeight:1.2,overflow:"visible"}),Ha=o({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}}),La=G({container:Ra,label:Wa,closeButton:Ha}),Va={sm:G({container:{minH:"5",minW:"5",fontSize:"xs",px:"2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:G({container:{minH:"6",minW:"6",fontSize:"sm",px:"2"}}),lg:G({container:{minH:"8",minW:"8",fontSize:"md",px:"3"}})},Oa={subtle:G(e=>{var r;return{container:(r=se.variants)==null?void 0:r.subtle(e)}}),solid:G(e=>{var r;return{container:(r=se.variants)==null?void 0:r.solid(e)}}),outline:G(e=>{var r;return{container:(r=se.variants)==null?void 0:r.outline(e)}})},qa=ja({variants:Oa,baseStyle:La,sizes:Va,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:j,defineMultiStyleConfig:Na}=b(uo.keys),Ga=j({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),H={lg:o({fontSize:"lg",px:"4",h:"12",borderRadius:"md"}),md:o({fontSize:"md",px:"4",h:"10",borderRadius:"md"}),sm:o({fontSize:"sm",px:"3",h:"8",borderRadius:"sm"}),xs:o({fontSize:"xs",px:"2",h:"6",borderRadius:"sm"})},Ua={lg:j({field:H.lg,addon:H.lg}),md:j({field:H.md,addon:H.md}),sm:j({field:H.sm,addon:H.sm}),xs:j({field:H.xs,addon:H.xs})};function rr(e){const{focusBorderColor:r,errorBorderColor:t}=e;return{focusBorderColor:r||s("blue.500","blue.300")(e),errorBorderColor:t||s("red.500","red.300")(e)}}var Ya=j(e=>{const{theme:r}=e,{focusBorderColor:t,errorBorderColor:a}=rr(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:s("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:w(r,a),boxShadow:`0 0 0 1px ${w(r,a)}`},_focusVisible:{zIndex:1,borderColor:w(r,t),boxShadow:`0 0 0 1px ${w(r,t)}`}},addon:{border:"1px solid",borderColor:s("inherit","whiteAlpha.50")(e),bg:s("gray.100","whiteAlpha.300")(e)}}}),Xa=j(e=>{const{theme:r}=e,{focusBorderColor:t,errorBorderColor:a}=rr(e);return{field:{border:"2px solid",borderColor:"transparent",bg:s("gray.100","whiteAlpha.50")(e),_hover:{bg:s("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:w(r,a)},_focusVisible:{bg:"transparent",borderColor:w(r,t)}},addon:{border:"2px solid",borderColor:"transparent",bg:s("gray.100","whiteAlpha.50")(e)}}}),Ka=j(e=>{const{theme:r}=e,{focusBorderColor:t,errorBorderColor:a}=rr(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:w(r,a),boxShadow:`0px 1px 0px 0px ${w(r,a)}`},_focusVisible:{borderColor:w(r,t),boxShadow:`0px 1px 0px 0px ${w(r,t)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),Qa=j({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),Za={outline:Ya,filled:Xa,flushed:Ka,unstyled:Qa},u=Na({baseStyle:Ga,sizes:Ua,variants:Za,defaultProps:{size:"md",variant:"outline"}}),gr,Ja=o({...(gr=u.baseStyle)==null?void 0:gr.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"}),hr,pr,en={outline:o(e=>{var r,t;return(t=(r=u.variants)==null?void 0:r.outline(e).field)!=null?t:{}}),flushed:o(e=>{var r,t;return(t=(r=u.variants)==null?void 0:r.flushed(e).field)!=null?t:{}}),filled:o(e=>{var r,t;return(t=(r=u.variants)==null?void 0:r.filled(e).field)!=null?t:{}}),unstyled:(pr=(hr=u.variants)==null?void 0:hr.unstyled.field)!=null?pr:{}},yr,Sr,xr,$r,kr,_r,wr,Cr,rn={xs:(Sr=(yr=u.sizes)==null?void 0:yr.xs.field)!=null?Sr:{},sm:($r=(xr=u.sizes)==null?void 0:xr.sm.field)!=null?$r:{},md:(_r=(kr=u.sizes)==null?void 0:kr.md.field)!=null?_r:{},lg:(Cr=(wr=u.sizes)==null?void 0:wr.lg.field)!=null?Cr:{}},tn=S({baseStyle:Ja,sizes:rn,variants:en,defaultProps:{size:"md",variant:"outline"}}),Se=x("tooltip-bg"),je=x("tooltip-fg"),on=x("popper-arrow-bg"),an=o({bg:Se.reference,color:je.reference,[Se.variable]:"colors.gray.700",[je.variable]:"colors.whiteAlpha.900",_dark:{[Se.variable]:"colors.gray.300",[je.variable]:"colors.gray.900"},[on.variable]:Se.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}),nn=S({baseStyle:an}),{defineMultiStyleConfig:ln,definePartsStyle:ne}=b(po.keys),sn=o(e=>{const{colorScheme:r,theme:t,isIndeterminate:a,hasStripe:n}=e,i=s(br(),br("1rem","rgba(0,0,0,0.1)"))(e),l=s(`${r}.500`,`${r}.200`)(e),d=`linear-gradient(
|
|
to right,
|
|
transparent 0%,
|
|
${w(t,l)} 50%,
|
|
transparent 100%
|
|
)`;return{...!a&&n&&i,...a?{bgImage:d}:{bgColor:l}}}),dn=o({lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"}),cn=o(e=>({bg:s("gray.100","whiteAlpha.300")(e)})),bn=o(e=>({transitionProperty:"common",transitionDuration:"slow",...sn(e)})),un=ne(e=>({label:dn,filledTrack:bn(e),track:cn(e)})),vn={xs:ne({track:{h:"1"}}),sm:ne({track:{h:"2"}}),md:ne({track:{h:"3"}}),lg:ne({track:{h:"4"}})},fn=ln({sizes:vn,baseStyle:un,defaultProps:{size:"md",colorScheme:"blue"}}),mn=e=>typeof e=="function";function C(e,...r){return mn(e)?e(...r):e}var{definePartsStyle:Ce,defineMultiStyleConfig:gn}=b(io.keys),de=v("checkbox-size"),hn=o(e=>{const{colorScheme:r}=e;return{w:de.reference,h:de.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:s(`${r}.500`,`${r}.200`)(e),borderColor:s(`${r}.500`,`${r}.200`)(e),color:s("white","gray.900")(e),_hover:{bg:s(`${r}.600`,`${r}.300`)(e),borderColor:s(`${r}.600`,`${r}.300`)(e)},_disabled:{borderColor:s("gray.200","transparent")(e),bg:s("gray.200","whiteAlpha.300")(e),color:s("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:s(`${r}.500`,`${r}.200`)(e),borderColor:s(`${r}.500`,`${r}.200`)(e),color:s("white","gray.900")(e)},_disabled:{bg:s("gray.100","whiteAlpha.100")(e),borderColor:s("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:s("red.500","red.300")(e)}}}),pn=o({_disabled:{cursor:"not-allowed"}}),yn=o({userSelect:"none",_disabled:{opacity:.4}}),Sn=o({transitionProperty:"transform",transitionDuration:"normal"}),xn=Ce(e=>({icon:Sn,container:pn,control:C(hn,e),label:yn})),$n={sm:Ce({control:{[de.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Ce({control:{[de.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Ce({control:{[de.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Te=gn({baseStyle:xn,sizes:$n,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:kn,definePartsStyle:ze}=b(yo.keys),_n=o(e=>{var r;const t=(r=C(Te.baseStyle,e))==null?void 0:r.control;return{...t,borderRadius:"full",_checked:{...t==null?void 0:t._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}}),wn=ze(e=>{var r,t,a,n;return{label:(t=(r=Te).baseStyle)==null?void 0:t.call(r,e).label,container:(n=(a=Te).baseStyle)==null?void 0:n.call(a,e).container,control:_n(e)}}),Cn={md:ze({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:ze({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:ze({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},zn=kn({baseStyle:wn,sizes:Cn,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:An,definePartsStyle:Pn}=b(So.keys),xe=v("select-bg"),zr,Tn=o({...(zr=u.baseStyle)==null?void 0:zr.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:xe.reference,[xe.variable]:"colors.white",_dark:{[xe.variable]:"colors.gray.700"},"> option, > optgroup":{bg:xe.reference}}),Fn=o({width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}}),In=Pn({field:Tn,icon:Fn}),$e=o({paddingInlineEnd:"8"}),Ar,Pr,Tr,Fr,Ir,Br,Mr,Er,Bn={lg:{...(Ar=u.sizes)==null?void 0:Ar.lg,field:{...(Pr=u.sizes)==null?void 0:Pr.lg.field,...$e}},md:{...(Tr=u.sizes)==null?void 0:Tr.md,field:{...(Fr=u.sizes)==null?void 0:Fr.md.field,...$e}},sm:{...(Ir=u.sizes)==null?void 0:Ir.sm,field:{...(Br=u.sizes)==null?void 0:Br.sm.field,...$e}},xs:{...(Mr=u.sizes)==null?void 0:Mr.xs,field:{...(Er=u.sizes)==null?void 0:Er.xs.field,...$e},icon:{insetEnd:"1"}}},Mn=An({baseStyle:In,sizes:Bn,variants:u.variants,defaultProps:u.defaultProps}),Re=v("skeleton-start-color"),We=v("skeleton-end-color"),En=o({[Re.variable]:"colors.gray.100",[We.variable]:"colors.gray.400",_dark:{[Re.variable]:"colors.gray.800",[We.variable]:"colors.gray.600"},background:Re.reference,borderColor:We.reference,opacity:.7,borderRadius:"sm"}),Dn=S({baseStyle:En}),He=v("skip-link-bg"),jn=o({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[He.variable]:"colors.white",_dark:{[He.variable]:"colors.gray.700"},bg:He.reference}}),Rn=S({baseStyle:jn}),{defineMultiStyleConfig:Wn,definePartsStyle:Me}=b(xo.keys),ue=v("slider-thumb-size"),ve=v("slider-track-size"),V=v("slider-bg"),Hn=o(e=>{const{orientation:r}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...er({orientation:r,vertical:{h:"100%"},horizontal:{w:"100%"}})}}),Ln=o(e=>({...er({orientation:e.orientation,horizontal:{h:ve.reference},vertical:{w:ve.reference}}),overflow:"hidden",borderRadius:"sm",[V.variable]:"colors.gray.200",_dark:{[V.variable]:"colors.whiteAlpha.200"},_disabled:{[V.variable]:"colors.gray.300",_dark:{[V.variable]:"colors.whiteAlpha.300"}},bg:V.reference})),Vn=o(e=>{const{orientation:r}=e;return{...er({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:ue.reference,h:ue.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"}}}),On=o(e=>{const{colorScheme:r}=e;return{width:"inherit",height:"inherit",[V.variable]:`colors.${r}.500`,_dark:{[V.variable]:`colors.${r}.200`},bg:V.reference}}),qn=Me(e=>({container:Hn(e),track:Ln(e),thumb:Vn(e),filledTrack:On(e)})),Nn=Me({container:{[ue.variable]:"sizes.4",[ve.variable]:"sizes.1"}}),Gn=Me({container:{[ue.variable]:"sizes.3.5",[ve.variable]:"sizes.1"}}),Un=Me({container:{[ue.variable]:"sizes.2.5",[ve.variable]:"sizes.0.5"}}),Yn={lg:Nn,md:Gn,sm:Un},Xn=Wn({baseStyle:qn,sizes:Yn,defaultProps:{size:"md",colorScheme:"blue"}}),O=x("spinner-size"),Kn=o({width:[O.reference],height:[O.reference]}),Qn={xs:o({[O.variable]:"sizes.3"}),sm:o({[O.variable]:"sizes.4"}),md:o({[O.variable]:"sizes.6"}),lg:o({[O.variable]:"sizes.8"}),xl:o({[O.variable]:"sizes.12"})},Zn=S({baseStyle:Kn,sizes:Qn,defaultProps:{size:"md"}}),{defineMultiStyleConfig:Jn,definePartsStyle:Kr}=b($o.keys),ei=o({fontWeight:"medium"}),ri=o({opacity:.8,marginBottom:"2"}),ti=o({verticalAlign:"baseline",fontWeight:"semibold"}),oi=o({marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"}),ai=Kr({container:{},label:ei,helpText:ri,number:ti,icon:oi}),ni={md:Kr({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},ii=Jn({baseStyle:ai,sizes:ni,defaultProps:{size:"md"}}),Le=v("kbd-bg"),li=o({[Le.variable]:"colors.gray.100",_dark:{[Le.variable]:"colors.whiteAlpha.100"},bg:Le.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),si=S({baseStyle:li}),di=o({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}),ci=S({baseStyle:di}),{defineMultiStyleConfig:bi,definePartsStyle:ui}=b(vo.keys),vi=o({marginEnd:"2",display:"inline",verticalAlign:"text-bottom"}),fi=ui({icon:vi}),mi=bi({baseStyle:fi}),{defineMultiStyleConfig:gi,definePartsStyle:hi}=b(fo.keys),B=v("menu-bg"),Ve=v("menu-shadow"),pi=o({[B.variable]:"#fff",[Ve.variable]:"shadows.sm",_dark:{[B.variable]:"colors.gray.700",[Ve.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:B.reference,boxShadow:Ve.reference}),yi=o({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[B.variable]:"colors.gray.100",_dark:{[B.variable]:"colors.whiteAlpha.100"}},_active:{[B.variable]:"colors.gray.200",_dark:{[B.variable]:"colors.whiteAlpha.200"}},_expanded:{[B.variable]:"colors.gray.100",_dark:{[B.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:B.reference}),Si=o({mx:4,my:2,fontWeight:"semibold",fontSize:"sm"}),xi=o({opacity:.6}),$i=o({border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}),ki=o({transitionProperty:"common",transitionDuration:"normal"}),_i=hi({button:ki,list:pi,item:yi,groupTitle:Si,command:xi,divider:$i}),wi=gi({baseStyle:_i}),{defineMultiStyleConfig:Ci,definePartsStyle:Qe}=b(mo.keys),zi=o({bg:"blackAlpha.600",zIndex:"modal"}),Ai=o(e=>{const{isCentered:r,scrollBehavior:t}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:r?"center":"flex-start",overflow:t==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}}),Pi=o(e=>{const{scrollBehavior:r}=e;return{borderRadius:"md",bg:s("white","gray.700")(e),color:"inherit",my:"16",zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,boxShadow:s("lg","dark-lg")(e)}}),Ti=o({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),Fi=o({position:"absolute",top:"2",insetEnd:"3"}),Ii=o(e=>{const{scrollBehavior:r}=e;return{px:"6",py:"2",flex:"1",overflow:r==="inside"?"auto":void 0}}),Bi=o({px:"6",py:"4"}),Mi=Qe(e=>({overlay:zi,dialogContainer:C(Ai,e),dialog:C(Pi,e),header:Ti,closeButton:Fi,body:C(Ii,e),footer:Bi}));function P(e){return Qe(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var Ei={xs:P("xs"),sm:P("sm"),md:P("md"),lg:P("lg"),xl:P("xl"),"2xl":P("2xl"),"3xl":P("3xl"),"4xl":P("4xl"),"5xl":P("5xl"),"6xl":P("6xl"),full:P("full")},Di=Ci({baseStyle:Mi,sizes:Ei,defaultProps:{size:"md"}}),{defineMultiStyleConfig:ji,definePartsStyle:Qr}=b(go.keys),tr=x("number-input-stepper-width"),Zr=x("number-input-input-padding"),Ri=D(tr).add("0.5rem").toString(),Oe=x("number-input-bg"),qe=x("number-input-color"),Ne=x("number-input-border-color"),Wi=o({[tr.variable]:"sizes.6",[Zr.variable]:Ri}),Hi=o(e=>{var r,t;return(t=(r=C(u.baseStyle,e))==null?void 0:r.field)!=null?t:{}}),Li=o({width:tr.reference}),Vi=o({borderStart:"1px solid",borderStartColor:Ne.reference,color:qe.reference,bg:Oe.reference,[qe.variable]:"colors.chakra-body-text",[Ne.variable]:"colors.chakra-border-color",_dark:{[qe.variable]:"colors.whiteAlpha.800",[Ne.variable]:"colors.whiteAlpha.300"},_active:{[Oe.variable]:"colors.gray.200",_dark:{[Oe.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}}),Oi=Qr(e=>{var r;return{root:Wi,field:(r=C(Hi,e))!=null?r:{},stepperGroup:Li,stepper:Vi}});function ke(e){var r,t,a;const n=(r=u.sizes)==null?void 0:r[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},l=(a=(t=n.field)==null?void 0:t.fontSize)!=null?a:"md",d=Nr.fontSizes[l];return Qr({field:{...n.field,paddingInlineEnd:Zr.reference,verticalAlign:"top"},stepper:{fontSize:D(d).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var qi={xs:ke("xs"),sm:ke("sm"),md:ke("md"),lg:ke("lg")},Ni=ji({baseStyle:Oi,sizes:qi,variants:u.variants,defaultProps:u.defaultProps}),Dr,Gi=o({...(Dr=u.baseStyle)==null?void 0:Dr.field,textAlign:"center"}),Ui={lg:o({fontSize:"lg",w:12,h:12,borderRadius:"md"}),md:o({fontSize:"md",w:10,h:10,borderRadius:"md"}),sm:o({fontSize:"sm",w:8,h:8,borderRadius:"sm"}),xs:o({fontSize:"xs",w:6,h:6,borderRadius:"sm"})},jr,Rr,Yi={outline:o(e=>{var r,t,a;return(a=(t=C((r=u.variants)==null?void 0:r.outline,e))==null?void 0:t.field)!=null?a:{}}),flushed:o(e=>{var r,t,a;return(a=(t=C((r=u.variants)==null?void 0:r.flushed,e))==null?void 0:t.field)!=null?a:{}}),filled:o(e=>{var r,t,a;return(a=(t=C((r=u.variants)==null?void 0:r.filled,e))==null?void 0:t.field)!=null?a:{}}),unstyled:(Rr=(jr=u.variants)==null?void 0:jr.unstyled.field)!=null?Rr:{}},Xi=S({baseStyle:Gi,sizes:Ui,variants:Yi,defaultProps:u.defaultProps}),{defineMultiStyleConfig:Ki,definePartsStyle:Qi}=b(ho.keys),_e=x("popper-bg"),Zi=x("popper-arrow-bg"),Wr=x("popper-arrow-shadow-color"),Ji=o({zIndex:10}),el=o({[_e.variable]:"colors.white",bg:_e.reference,[Zi.variable]:_e.reference,[Wr.variable]:"colors.gray.200",_dark:{[_e.variable]:"colors.gray.700",[Wr.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}),rl=o({px:3,py:2,borderBottomWidth:"1px"}),tl=o({px:3,py:2}),ol=o({px:3,py:2,borderTopWidth:"1px"}),al=o({position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2}),nl=Qi({popper:Ji,content:el,header:rl,body:tl,footer:ol,closeButton:al}),il=Ki({baseStyle:nl}),{definePartsStyle:Ze,defineMultiStyleConfig:ll}=b(lo.keys),Ge=v("drawer-bg"),Ue=v("drawer-box-shadow");function Y(e){return Ze(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var sl=o({bg:"blackAlpha.600",zIndex:"overlay"}),dl=o({display:"flex",zIndex:"modal",justifyContent:"center"}),cl=o(e=>{const{isFullHeight:r}=e;return{...r&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Ge.variable]:"colors.white",[Ue.variable]:"shadows.lg",_dark:{[Ge.variable]:"colors.gray.700",[Ue.variable]:"shadows.dark-lg"},bg:Ge.reference,boxShadow:Ue.reference}}),bl=o({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),ul=o({position:"absolute",top:"2",insetEnd:"3"}),vl=o({px:"6",py:"2",flex:"1",overflow:"auto"}),fl=o({px:"6",py:"4"}),ml=Ze(e=>({overlay:sl,dialogContainer:dl,dialog:C(cl,e),header:bl,closeButton:ul,body:vl,footer:fl})),gl={xs:Y("xs"),sm:Y("md"),md:Y("lg"),lg:Y("2xl"),xl:Y("4xl"),full:Y("full")},hl=ll({baseStyle:ml,sizes:gl,defaultProps:{size:"xs"}}),{definePartsStyle:pl,defineMultiStyleConfig:yl}=b(so.keys),Sl=o({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"}),xl=o({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}),$l=o({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}),kl=pl({preview:Sl,input:xl,textarea:$l}),_l=yl({baseStyle:kl}),{definePartsStyle:wl,defineMultiStyleConfig:Cl}=b(co.keys),Q=v("form-control-color"),zl=o({marginStart:"1",[Q.variable]:"colors.red.500",_dark:{[Q.variable]:"colors.red.300"},color:Q.reference}),Al=o({mt:"2",[Q.variable]:"colors.gray.600",_dark:{[Q.variable]:"colors.whiteAlpha.600"},color:Q.reference,lineHeight:"normal",fontSize:"sm"}),Pl=wl({container:{width:"100%",position:"relative"},requiredIndicator:zl,helperText:Al}),Tl=Cl({baseStyle:Pl}),{definePartsStyle:Fl,defineMultiStyleConfig:Il}=b(bo.keys),Z=v("form-error-color"),Bl=o({[Z.variable]:"colors.red.500",_dark:{[Z.variable]:"colors.red.300"},color:Z.reference,mt:"2",fontSize:"sm",lineHeight:"normal"}),Ml=o({marginEnd:"0.5em",[Z.variable]:"colors.red.500",_dark:{[Z.variable]:"colors.red.300"},color:Z.reference}),El=Fl({text:Bl,icon:Ml}),Dl=Il({baseStyle:El}),jl=o({fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}),Rl=S({baseStyle:jl}),Wl=o({fontFamily:"heading",fontWeight:"bold"}),Hl={"4xl":o({fontSize:["6xl",null,"7xl"],lineHeight:1}),"3xl":o({fontSize:["5xl",null,"6xl"],lineHeight:1}),"2xl":o({fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]}),xl:o({fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]}),lg:o({fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]}),md:o({fontSize:"xl",lineHeight:1.2}),sm:o({fontSize:"md",lineHeight:1.2}),xs:o({fontSize:"sm",lineHeight:1.2})},Ll=S({baseStyle:Wl,sizes:Hl,defaultProps:{size:"xl"}}),{defineMultiStyleConfig:Vl,definePartsStyle:Ol}=b(no.keys),ql=o({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}),Nl=Ol({link:ql}),Gl=Vl({baseStyle:Nl}),Ul=o({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"}}}),Jr=o(e=>{const{colorScheme:r,theme:t}=e;if(r==="gray")return{color:s("inherit","whiteAlpha.900")(e),_hover:{bg:s("gray.100","whiteAlpha.200")(e)},_active:{bg:s("gray.200","whiteAlpha.300")(e)}};const a=ee(`${r}.200`,.12)(t),n=ee(`${r}.200`,.24)(t);return{color:s(`${r}.600`,`${r}.200`)(e),bg:"transparent",_hover:{bg:s(`${r}.50`,a)(e)},_active:{bg:s(`${r}.100`,n)(e)}}}),Yl=o(e=>{const{colorScheme:r}=e,t=s("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:r==="gray"?t:"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"},...C(Jr,e)}}),Xl={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Kl=o(e=>{var r;const{colorScheme:t}=e;if(t==="gray"){const c=s("gray.100","whiteAlpha.200")(e);return{bg:c,_hover:{bg:s("gray.200","whiteAlpha.300")(e),_disabled:{bg:c}},_active:{bg:s("gray.300","whiteAlpha.400")(e)}}}const{bg:a=`${t}.500`,color:n="white",hoverBg:i=`${t}.600`,activeBg:l=`${t}.700`}=(r=Xl[t])!=null?r:{},d=s(a,`${t}.200`)(e);return{bg:d,color:s(n,"gray.800")(e),_hover:{bg:s(i,`${t}.300`)(e),_disabled:{bg:d}},_active:{bg:s(l,`${t}.400`)(e)}}}),Ql=o(e=>{const{colorScheme:r}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:s(`${r}.500`,`${r}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:s(`${r}.700`,`${r}.500`)(e)}}}),Zl=o({bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}),Jl={ghost:Jr,outline:Yl,solid:Kl,link:Ql,unstyled:Zl},es={lg:o({h:"12",minW:"12",fontSize:"lg",px:"6"}),md:o({h:"10",minW:"10",fontSize:"md",px:"4"}),sm:o({h:"8",minW:"8",fontSize:"sm",px:"3"}),xs:o({h:"6",minW:"6",fontSize:"xs",px:"2"})},rs=S({baseStyle:Ul,variants:Jl,sizes:es,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}}),{definePartsStyle:U,defineMultiStyleConfig:ts}=b(zo.keys),Fe=v("card-bg"),R=v("card-padding"),et=v("card-shadow"),Ae=v("card-radius"),rt=v("card-border-width","0"),tt=v("card-border-color"),os=U({container:{[Fe.variable]:"colors.chakra-body-bg",backgroundColor:Fe.reference,boxShadow:et.reference,borderRadius:Ae.reference,color:"chakra-body-text",borderWidth:rt.reference,borderColor:tt.reference},body:{padding:R.reference,flex:"1 1 0%"},header:{padding:R.reference},footer:{padding:R.reference}}),as={sm:U({container:{[Ae.variable]:"radii.base",[R.variable]:"space.3"}}),md:U({container:{[Ae.variable]:"radii.md",[R.variable]:"space.5"}}),lg:U({container:{[Ae.variable]:"radii.xl",[R.variable]:"space.7"}})},ns={elevated:U({container:{[et.variable]:"shadows.base",_dark:{[Fe.variable]:"colors.gray.700"}}}),outline:U({container:{[rt.variable]:"1px",[tt.variable]:"colors.chakra-border-color"}}),filled:U({container:{[Fe.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[R.variable]:0},header:{[R.variable]:0},footer:{[R.variable]:0}}},is=ts({baseStyle:os,variants:ns,sizes:as,defaultProps:{variant:"elevated",size:"md"}}),ce=x("close-button-size"),oe=x("close-button-bg"),ls=o({w:[ce.reference],h:[ce.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[oe.variable]:"colors.blackAlpha.100",_dark:{[oe.variable]:"colors.whiteAlpha.100"}},_active:{[oe.variable]:"colors.blackAlpha.200",_dark:{[oe.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:oe.reference}),ss={lg:o({[ce.variable]:"sizes.10",fontSize:"md"}),md:o({[ce.variable]:"sizes.8",fontSize:"xs"}),sm:o({[ce.variable]:"sizes.6",fontSize:"2xs"})},ds=S({baseStyle:ls,sizes:ss,defaultProps:{size:"md"}}),{variants:cs,defaultProps:bs}=se,us=o({fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"}),vs=S({baseStyle:us,variants:cs,defaultProps:bs}),fs=o({w:"100%",mx:"auto",maxW:"prose",px:"4"}),ms=S({baseStyle:fs}),gs=o({opacity:.6,borderColor:"inherit"}),hs=o({borderStyle:"solid"}),ps=o({borderStyle:"dashed"}),ys={solid:hs,dashed:ps},Ss=S({baseStyle:gs,variants:ys,defaultProps:{variant:"solid"}}),{definePartsStyle:xs,defineMultiStyleConfig:$s}=b(to.keys),ks=o({borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}}),_s=o({transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"}),ws=o({pt:"2",px:"4",pb:"5"}),Cs=o({fontSize:"1.25em"}),zs=xs({container:ks,button:_s,panel:ws,icon:Cs}),As=$s({baseStyle:zs}),{definePartsStyle:fe,defineMultiStyleConfig:Ps}=b(oo.keys),A=v("alert-fg"),W=v("alert-bg"),Ts=fe({container:{bg:W.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:A.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:A.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function or(e){const{theme:r,colorScheme:t}=e,a=ee(`${t}.200`,.16)(r);return{light:`colors.${t}.100`,dark:a}}var Fs=fe(e=>{const{colorScheme:r}=e,t=or(e);return{container:{[A.variable]:`colors.${r}.500`,[W.variable]:t.light,_dark:{[A.variable]:`colors.${r}.200`,[W.variable]:t.dark}}}}),Is=fe(e=>{const{colorScheme:r}=e,t=or(e);return{container:{[A.variable]:`colors.${r}.500`,[W.variable]:t.light,_dark:{[A.variable]:`colors.${r}.200`,[W.variable]:t.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:A.reference}}}),Bs=fe(e=>{const{colorScheme:r}=e,t=or(e);return{container:{[A.variable]:`colors.${r}.500`,[W.variable]:t.light,_dark:{[A.variable]:`colors.${r}.200`,[W.variable]:t.dark},pt:"2",borderTopWidth:"4px",borderTopColor:A.reference}}}),Ms=fe(e=>{const{colorScheme:r}=e;return{container:{[A.variable]:"colors.white",[W.variable]:`colors.${r}.500`,_dark:{[A.variable]:"colors.gray.900",[W.variable]:`colors.${r}.200`},color:A.reference}}}),Es={subtle:Fs,"left-accent":Is,"top-accent":Bs,solid:Ms},Ds=Ps({baseStyle:Ts,variants:Es,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:ot,defineMultiStyleConfig:js}=b(ao.keys),J=v("avatar-border-color"),Ye=v("avatar-bg"),Rs=o({borderRadius:"full",border:"0.2em solid",[J.variable]:"white",_dark:{[J.variable]:"colors.gray.800"},borderColor:J.reference}),Ws=o({[Ye.variable]:"colors.gray.200",_dark:{[Ye.variable]:"colors.whiteAlpha.400"},bgColor:Ye.reference}),Hr=v("avatar-background"),Hs=o(e=>{const{name:r,theme:t}=e,a=r?Uo({string:r}):"colors.gray.400",n=No(a)(t);let i="white";return n||(i="gray.800"),{bg:Hr.reference,"&:not([data-loaded])":{[Hr.variable]:a},color:i,[J.variable]:"colors.white",_dark:{[J.variable]:"colors.gray.800"},borderColor:J.reference,verticalAlign:"top"}}),Ls=ot(e=>({badge:C(Rs,e),excessLabel:C(Ws,e),container:C(Hs,e)}));function L(e){const r=e!=="100%"?Ur[e]:void 0;return ot({container:{width:e,height:e,fontSize:`calc(${r??e} / 2.5)`},excessLabel:{width:e,height:e},label:{fontSize:`calc(${r??e} / 2.5)`,lineHeight:e!=="100%"?r??e:void 0}})}var Vs={"2xs":L(4),xs:L(6),sm:L(8),md:L(12),lg:L(16),xl:L(24),"2xl":L(32),full:L("100%")},Os=js({baseStyle:Ls,sizes:Vs,defaultProps:{size:"md"}}),qs={Accordion:As,Alert:Ds,Avatar:Os,Badge:se,Breadcrumb:Gl,Button:rs,Checkbox:Te,CloseButton:ds,Code:vs,Container:ms,Divider:Ss,Drawer:hl,Editable:_l,Form:Tl,FormError:Dl,FormLabel:Rl,Heading:Ll,Input:u,Kbd:si,Link:ci,List:mi,Menu:wi,Modal:Di,NumberInput:Ni,PinInput:Xi,Popover:il,Progress:fn,Radio:zn,Select:Mn,Skeleton:Dn,SkipLink:Rn,Slider:Xn,Spinner:Zn,Stat:ii,Switch:da,Table:ga,Tabs:Fa,Tag:qa,Textarea:tn,Tooltip:nn,Card:is},Ns={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-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},Gs={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",wordWrap:"break-word"}}},Us="ltr",Ys={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},at={semanticTokens:Ns,direction:Us,...ro,components:qs,styles:Gs,config:Ys};function ie(e){return typeof e=="function"}function Xs(...e){return r=>e.reduce((t,a)=>a(t),r)}var Ks=e=>function(...t){let a=[...t],n=t[t.length-1];return Ft(n)&&a.length>1?a=a.slice(0,a.length-1):n=e,Xs(...a.map(i=>l=>ie(i)?i(l):Zs(l,i)))(n)},Qs=Ks(at);function Zs(...e){return Vr({},...e,nt)}function nt(e,r,t,a){if((ie(e)||ie(r))&&Object.prototype.hasOwnProperty.call(a,t))return(...n)=>{const i=ie(e)?e(...n):e,l=ie(r)?r(...n):r;return Vr({},i,l,nt)}}function Js(e={}){const{strict:r=!0,errorMessage:t="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:a}=e,n=_.createContext(void 0);n.displayName=a;function i(){var l;const d=_.useContext(n);if(!d&&r){const c=new Error(t);throw c.name="ContextError",(l=Error.captureStackTrace)==null||l.call(Error,c,i),c}return d}return[n.Provider,i,n]}function ed(e){const{cssVarsRoot:r,theme:t,children:a}=e,n=_.useMemo(()=>ut(t),[t]);return y.jsxs(vt,{theme:n,children:[y.jsx(rd,{root:r}),a]})}function rd({root:e=":host, :root"}){const r=[e,"[data-theme]"].join(",");return y.jsx(Ie,{styles:t=>({[r]:t.__cssVars})})}Js({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function td(){const{colorMode:e}=ft();return y.jsx(Ie,{styles:r=>{const t=mt(r,"styles.global"),a=gt(t,{theme:r,colorMode:e});return a?ht(a)(r):void 0}})}var it=_.createContext({getDocument(){return document},getWindow(){return window}});it.displayName="EnvironmentContext";function lt(e){const{children:r,environment:t,disabled:a}=e,n=_.useRef(null),i=_.useMemo(()=>t||{getDocument:()=>{var d,c;return(c=(d=n.current)==null?void 0:d.ownerDocument)!=null?c:document},getWindow:()=>{var d,c;return(c=(d=n.current)==null?void 0:d.ownerDocument.defaultView)!=null?c:window}},[t]),l=!a||!t;return y.jsxs(it.Provider,{value:i,children:[r,l&&y.jsx("span",{id:"__chakra_env",hidden:!0,ref:n})]})}lt.displayName="EnvironmentProvider";var od=e=>{const{children:r,colorModeManager:t,portalZIndex:a,resetCSS:n=!0,theme:i={},environment:l,cssVarsRoot:d,disableEnvironment:c}=e,$=y.jsx(lt,{environment:l,disabled:c,children:r});return y.jsx(ed,{theme:i,cssVarsRoot:d,children:y.jsxs(qr,{colorModeManager:t,options:i.config,children:[n?y.jsx(wt,{}):y.jsx(_t,{}),y.jsx(td,{}),a?y.jsx(St,{zIndex:a,children:$}):$]})})},ad=e=>function({children:t,theme:a=e,toastOptions:n,...i}){return y.jsxs(od,{theme:a,...i,children:[y.jsx(xt,{value:n==null?void 0:n.defaultOptions,children:t}),y.jsx($t,{...n})]})},nd=ad(at);function p(e,r,t=!1){e=String(e),r=String(r);const a=Array.from({length:21},(d,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"],i={},l={};return a.forEach((d,c)=>{i[d]=`hsl(${e}, ${r}%, ${n[a.length-1-c]}%)`,l[d]=`hsl(${e}, ${r}%, ${n[c]}%)`}),t?l:i}const st={base:p(225,15),accent:p(250,50),working:p(47,67),warning:p(28,75),ok:p(113,70),error:p(0,76),gridLineColor:"rgba(255, 255, 255, 0.2)"};function m(e,r={}){let t=!1;function a(){if(!t){t=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function n(...g){a();for(const h of g)r[h]=c(h);return m(e,r)}function i(...g){for(const h of g)h in r||(r[h]=c(h));return m(e,r)}function l(){return Object.fromEntries(Object.entries(r).map(([h,k])=>[h,k.selector]))}function d(){return Object.fromEntries(Object.entries(r).map(([h,k])=>[h,k.className]))}function c(g){const F=`chakra-${(["container","root"].includes(g??"")?[e]:[e,g]).filter(Boolean).join("__")}`;return{className:F,selector:`.${F}`,toString:()=>g}}return{parts:n,toPart:c,extend:i,selectors:l,classnames:d,get keys(){return Object.keys(r)},__type:{}}}var id=m("accordion").parts("root","container","button","panel").extend("icon");m("alert").parts("title","description","container").extend("icon","spinner");m("avatar").parts("label","badge","container").extend("excessLabel","group");m("breadcrumb").parts("link","item","container").extend("separator");m("button").parts();var ld=m("checkbox").parts("control","icon","container").extend("label");m("progress").parts("track","filledTrack").extend("label");m("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer");m("editable").parts("preview","input","textarea");m("form").parts("container","requiredIndicator","helperText");m("formError").parts("text","icon");var sd=m("input").parts("addon","field","element");m("list").parts("container","item","icon");var dd=m("menu").parts("button","list","item").extend("groupTitle","command","divider"),cd=m("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),bd=m("numberinput").parts("root","field","stepperGroup","stepper");m("pininput").parts("field");var ud=m("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),vd=m("progress").parts("label","filledTrack","track");m("radio").parts("container","control","label");var fd=m("select").parts("field","icon"),md=m("slider").parts("container","track","thumb","filledTrack","mark");m("stat").parts("container","label","helpText","number","icon");var gd=m("switch").parts("container","track","thumb");m("table").parts("table","thead","tbody","tr","th","td","tfoot","caption");var hd=m("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator");m("tag").parts("container","label","closeButton");m("card").parts("container","header","body","footer");const{definePartsStyle:pd,defineMultiStyleConfig:yd}=b(id.keys),Sd=o({border:"none"}),xd=o(e=>{const{colorScheme:r}=e;return{fontWeight:"600",fontSize:"sm",border:"none",borderRadius:"base",bg:`${r}.800`,color:"base.100",_hover:{bg:`${r}.700`},_expanded:{bg:`${r}.750`,borderBottomRadius:"none",_hover:{bg:`${r}.700`}}}}),$d=o(e=>{const{colorScheme:r}=e;return{bg:`${r}.800`,borderRadius:"base",borderTopRadius:"none"}}),kd=o({}),_d=pd(e=>({container:Sd,button:xd(e),panel:$d(e),icon:kd})),wd=yd({variants:{invokeAI:_d},defaultProps:{variant:"invokeAI",colorScheme:"base"}}),Cd=o(e=>{const{colorScheme:r}=e,t={bg:`${r}.600`,color:`${r}.100`,svg:{fill:`${r}.100`}};return{bg:`${r}.700`,color:`${r}.100`,borderRadius:"base",svg:{fill:`${r}.100`},_disabled:t,_hover:{bg:`${r}.650`,color:`${r}.50`,svg:{fill:`${r}.50`},_disabled:t},_checked:{bg:"accent.700",color:"accent.100",svg:{fill:"accent.100"},_disabled:t,_hover:{bg:"accent.600",color:"accent.50",svg:{fill:"accent.50"},_disabled:t}}}}),zd=S({variants:{invokeAI:Cd},defaultProps:{variant:"invokeAI",colorScheme:"base"}}),{definePartsStyle:Ad,defineMultiStyleConfig:Pd}=b(ld.keys),Td=o(e=>{const{colorScheme:r}=e;return{_checked:{bg:`${r}.200`,borderColor:`${r}.200`,color:"base.900",_hover:{bg:`${r}.300`,borderColor:`${r}.300`},_disabled:{borderColor:"transparent",bg:"whiteAlpha.300",color:"whiteAlpha.500"}},_indeterminate:{bg:`${r}.200`,borderColor:`${r}.200`,color:"base.900"},_disabled:{bg:"whiteAlpha.100",borderColor:"transparent"},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:"red.300"}}}),Fd=Ad(e=>({control:Td(e)})),Id=Pd({variants:{invokeAI:Fd},defaultProps:{variant:"invokeAI",colorScheme:"accent"}}),Bd=o(e=>({fontSize:"sm",marginEnd:0,mb:1,fontWeight:"400",transitionProperty:"common",transitionDuration:"normal",whiteSpace:"nowrap",_disabled:{opacity:.4},color:"base.300"})),Md=S({variants:{invokeAI:Bd},defaultProps:{variant:"invokeAI"}}),Ee=e=>({outline:"none",borderWidth:2,borderStyle:"solid",borderColor:"base.800",bg:"base.900",borderRadius:"base",color:"base.100",boxShadow:"none",_hover:{borderColor:"base.600"},_focus:{borderColor:"accent.700",boxShadow:"none",_hover:{borderColor:"accent.600"}},_invalid:{borderColor:"error.700",boxShadow:"none",_hover:{borderColor:"error.600"}},_disabled:{borderColor:"base.700",bg:"base.700",color:"base.400",_hover:{borderColor:"base.700"}},_placeholder:{color:"base.400"}}),{definePartsStyle:Ed,defineMultiStyleConfig:Dd}=b(sd.keys),jd=Ed(e=>({field:Ee()})),Rd=Dd({variants:{invokeAI:jd},defaultProps:{size:"sm",variant:"invokeAI"}}),{definePartsStyle:Wd,defineMultiStyleConfig:Hd}=b(dd.keys),Ld=Wd({button:{fontWeight:"600",bg:"base.500",color:"base.200",_hover:{bg:"base.600",color:"white"}},list:{zIndex:9999,bg:"base.800"},item:{fontSize:"sm",bg:"base.800",_hover:{bg:"base.750"},_focus:{bg:"base.700"}}}),Vd=Hd({variants:{invokeAI:Ld},defaultProps:{variant:"invokeAI"}}),{defineMultiStyleConfig:Od,definePartsStyle:qd}=b(cd.keys),Nd=o({bg:"blackAlpha.600"}),Gd=o({}),Ud=o(e=>({bg:"base.850",maxH:"80vh"})),Yd=o(e=>({fontWeight:"600",fontSize:"lg",color:"base.200"})),Xd=o({}),Kd=o({overflowY:"scroll"}),Qd=o({}),Zd=qd(e=>({overlay:Nd,dialogContainer:Gd,dialog:Ud(e),header:Yd(e),closeButton:Xd,body:Kd,footer:Qd})),Jd=Od({variants:{invokeAI:Zd},defaultProps:{variant:"invokeAI",size:"lg"}}),{defineMultiStyleConfig:ec,definePartsStyle:rc}=b(bd.keys),tc=o(e=>({height:8})),oc=o(e=>({border:"none",fontWeight:"600",height:"auto",py:1,ps:2,pe:6,...Ee()})),ac=o(e=>({display:"flex"})),nc=o(e=>({border:"none",px:2,py:0,mx:-2,my:0,svg:{color:"base.300",width:2.5,height:2.5,_hover:{color:"base.50"}}})),ic=rc(e=>({root:tc(e),field:oc(e),stepperGroup:ac(e),stepper:nc(e)})),lc=ec({variants:{invokeAI:ic},defaultProps:{size:"sm",variant:"invokeAI"}});function sc(e){return!Number.isInteger(parseFloat(e.toString()))}function dc(e,r="-"){return e.replace(/\s+/g,r)}function dt(e){const r=dc(e.toString());return r.includes("\\.")?e:sc(e)?r.replace(".","\\."):e}function cc(e,r=""){return[r,dt(e)].filter(Boolean).join("-")}function bc(e,r){return`var(${dt(e)}${r?`, ${r}`:""})`}function uc(e,r=""){return`--${cc(e,r)}`}function ar(e,r){const t=uc(e,r==null?void 0:r.prefix);return{variable:t,reference:bc(t,vc(r==null?void 0:r.fallback))}}function vc(e){return typeof e=="string"?e:e==null?void 0:e.reference}const{defineMultiStyleConfig:fc,definePartsStyle:mc}=b(ud.keys),gc=ar("popper-bg"),hc=ar("popper-arrow-bg"),pc=ar("popper-arrow-shadow-color"),yc=o(e=>({[hc.variable]:"colors.base.800",[gc.variable]:"colors.base.800",[pc.variable]:"colors.base.600",minW:"unset",width:"unset",p:4,borderWidth:"2px",borderStyle:"solid",borderColor:"base.600",bg:"base.800"})),Sc=mc(e=>({content:yc(e)})),xc=fc({variants:{invokeAI:Sc},defaultProps:{variant:"invokeAI"}}),{defineMultiStyleConfig:$c,definePartsStyle:kc}=b(vd.keys),_c=o(e=>({bg:"accent.600",transition:"width 0.2s ease-in-out",_indeterminate:{bgGradient:"linear(to-r, transparent 0%, accent.600 50%, transparent 100%);"}})),wc=o(e=>({bg:"base.800"})),Cc=kc(e=>({filledTrack:_c(e),track:wc(e)})),zc=$c({variants:{invokeAI:Cc},defaultProps:{variant:"invokeAI"}}),Ac={"::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"},{definePartsStyle:Pc,defineMultiStyleConfig:Tc}=b(fd.keys),Fc=o(e=>({color:"base.300"})),Ic=o(e=>({fontWeight:"600",...Ee()})),Bc=Pc(e=>({field:Ic(e),icon:Fc(e)})),Mc=Tc({variants:{invokeAI:Bc},defaultProps:{size:"sm",variant:"invokeAI"}}),{definePartsStyle:Ec,defineMultiStyleConfig:Dc}=b(md.keys),jc=o(e=>({bg:"base.400",h:1.5})),Rc=o(e=>{const{colorScheme:r}=e;return{bg:`${r}.600`,h:1.5}}),Wc=o(e=>({w:2,h:4})),Hc=o(e=>({fontSize:"xs",fontWeight:"500",color:"base.200",mt:2,insetInlineStart:"unset"})),Lc=Ec(e=>({track:jc(e),filledTrack:Rc(e),thumb:Wc(e),mark:Hc(e)})),Vc=Dc({variants:{invokeAI:Lc},defaultProps:{variant:"invokeAI",colorScheme:"accent"}}),{defineMultiStyleConfig:Oc,definePartsStyle:qc}=b(gd.keys),Nc=o(e=>{const{colorScheme:r}=e;return{bg:"base.600",_focusVisible:{boxShadow:"none"},_checked:{bg:`${r}.600`}}}),Gc=o(e=>{const{colorScheme:r}=e;return{bg:`${r}.50`}}),Uc=qc(e=>({container:{},track:Nc(e),thumb:Gc(e)})),Yc=Oc({variants:{invokeAI:Uc},defaultProps:{size:"md",variant:"invokeAI",colorScheme:"accent"}}),{defineMultiStyleConfig:Xc,definePartsStyle:Kc}=b(hd.keys),Qc=o(e=>({display:"flex",columnGap:4})),Zc=o(e=>({})),Jc=o(e=>({display:"flex",flexDirection:"column",gap:1,color:"base.700",button:{fontSize:"sm",padding:2,borderRadius:"base",_selected:{bg:"accent.700",color:"accent.100",_hover:{bg:"accent.600",color:"accent.50"}},_hover:{bg:"base.600",color:"base.50"}}})),e0=o(e=>({padding:0,height:"100%"})),r0=Kc(e=>({root:Qc(e),tab:Zc(e),tablist:Jc(e),tabpanel:e0(e)})),t0=Xc({variants:{invokeAI:r0},defaultProps:{variant:"invokeAI"}}),o0=o(e=>({color:"base.400"})),a0=S({variants:{subtext:o0}}),n0=o(e=>Ee()),i0=S({variants:{invokeAI:n0},defaultProps:{size:"md",variant:"invokeAI"}}),l0={config:{cssVarPrefix:"invokeai"},styles:{global:e=>({body:{bg:"base.900",color:"base.50",overflow:"hidden"},"*":{...Ac}})},direction:"ltr",fonts:{body:"'Inter', 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)"}},colors:{...st},components:{Button:zd,Input:Rd,Textarea:i0,Tabs:t0,Progress:zc,Accordion:wd,FormLabel:Md,Switch:Yc,NumberInput:lc,Select:Mc,Slider:Vc,Popover:xc,Modal:Jd,Checkbox:Id,Menu:Vd,Text:a0}},s0={base:p(223,10),accent:p(155,80),working:p(47,68),warning:p(28,75),ok:p(122,49),error:p(0,50),gridLineColor:"rgba(255, 255, 255, 0.2)"},d0={base:p(223,10,!0),accent:p(40,80,!0),working:p(47,68,!0),warning:p(28,75,!0),ok:p(122,49,!0),error:p(0,50,!0),gridLineColor:"rgba(0, 0, 0, 0.2)"},c0={base:p(220,30),accent:p(210,80),working:p(47,68),warning:p(28,75),ok:p(122,49),error:p(0,100),gridLineColor:"rgba(136, 148, 184, 0.2)"},b0={dark:st,light:d0,green:s0,ocean:c0};function f0({children:e}){const{i18n:r}=pt(),t=kt(i=>i.ui.currentTheme),a=r.dir(),n=Qs({...l0,colors:b0[t],direction:a});return _.useEffect(()=>{document.body.dir=a},[a]),y.jsx(nd,{theme:n,children:e})}export{f0 as default};
|