2023-09-19 18:03:22 +00:00
|
|
|
import{v as m,hj as Je,u as y,Y as Xa,hk as Ja,a7 as ua,ab as d,hl as b,hm as o,hn as Qa,ho as h,hp as fa,hq as Za,hr as eo,aE as ro,hs as ao,a4 as oo,ht as to}from"./index-f6c3f475.js";import{s as ha,n as t,t as io,o as ma,p as no,q as ga,v as ya,w as pa,x as lo,y as Sa,z as xa,A as xr,B as so,D as co,E as bo,F as $a,G as ka,H as _a,J as vo,K as wa,L as uo,M as fo,N as ho,O as mo,Q as za,R as go,S as yo,T as po,U as So,V as xo,W as $o,e as ko,X as _o}from"./menu-c9cc8c3d.js";var Ca=String.raw,Aa=Ca`
|
2023-08-30 21:35:58 +00:00
|
|
|
: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;
|
|
|
|
}
|
|
|
|
}
|
2023-09-06 21:16:01 +00:00
|
|
|
`,wo=()=>m.jsx(Je,{styles:Aa}),zo=({scope:e=""})=>m.jsx(Je,{styles:Ca`
|
2023-08-30 21:35:58 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
${Aa}
|
2023-09-06 21:16:01 +00:00
|
|
|
`}),Ce={light:"chakra-ui-light",dark:"chakra-ui-dark"};function Co(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 Ao="chakra-ui-color-mode";function Pa(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 Po=Pa(Ao),Pr=()=>{};function Tr(e,r){return e.type==="cookie"&&e.ssr?e.get(r):r}function Ta(e){const{value:r,children:a,options:{useSystemColorMode:i,initialColorMode:n,disableTransitionOnChange:l}={},colorModeManager:s=Po}=e,c=n==="dark"?"dark":"light",[v,x]=y.useState(()=>Tr(s,c)),[T,N]=y.useState(()=>Tr(s)),{getSystemTheme:te,setClassName:_e,setDataset:zr,addListener:Cr}=y.useMemo(()=>Co({preventTransition:l}),[l]),we=n==="system"&&!v?T:v,C=y.useCallback(ie=>{const ze=ie==="system"?te():ie;x(ze),_e(ze==="dark"),zr(ze),s.set(ze)},[s,te,_e,zr]);Xa(()=>{n==="system"&&N(te())},[]),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 Ka=y.useMemo(()=>({colorMode:r??we,toggleColorMode:r?Pr:Ar,setColorMode:r?Pr:C,forced:r!==void 0}),[we,Ar,C,r]);return m.jsx(Ja.Provider,{value:Ka,children:a})}Ta.displayName="ColorModeProvider";var To=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function Fo(e){return ua(e)?To.every(r=>Object.prototype.hasOwnProperty.call(e,r)):!1}var Io={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"},Mo={"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)"},Bo={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},Eo={property:Io,easing:Mo,duration:Bo},Do=Eo,Ro={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},jo=Ro,Ho={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},Wo=Ho,Vo={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},Lo=Vo,qo={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,
|
2023-08-30 21:35:58 +00:00
|
|
|
45deg,
|
|
|
|
${r} 25%,
|
|
|
|
transparent 25%,
|
|
|
|
transparent 50%,
|
|
|
|
${r} 50%,
|
|
|
|
${r} 75%,
|
|
|
|
transparent 75%,
|
|
|
|
transparent
|
2023-09-06 21:16:01 +00:00
|
|
|
)`,backgroundSize:`${e} ${e}`}}var kt=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function _t(e){const r=kt();return!e||pt(e)?r:e.string&&e.colors?zt(e.string,e.colors):e.string&&!e.colors?wt(e.string):e.colors&&!e.string?Ct(e.colors):r}function wt(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 zt(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 Ct(e){return e[Math.floor(Math.random()*e.length)]}function Ba(e){return ua(e)&&e.reference?e.reference:String(e)}var Qe=(e,...r)=>r.map(Ba).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=Ba(e);return r!=null&&!Number.isNaN(parseFloat(r))?String(r).startsWith("-")?String(r).slice(1):`-${r}`:gr(r,-1)},I=Object.assign(e=>({add:(...r)=>I(Br(e,...r)),subtract:(...r)=>I(Er(e,...r)),multiply:(...r)=>I(gr(e,...r)),divide:(...r)=>I(Dr(e,...r)),negate:()=>I(Rr(e)),toString:()=>e.toString()}),{add:Br,subtract:Er,multiply:gr,divide:Dr,negate:Rr});function At(e){return!Number.isInteger(parseFloat(e.toString()))}function Pt(e,r="-"){return e.replace(/\s+/g,r)}function Ea(e){const r=Pt(e.toString());return r.includes("\\.")?e:At(e)?r.replace(".","\\."):e}function Tt(e,r=""){return[r,Ea(e)].filter(Boolean).join("-")}function Ft(e,r){return`var(${Ea(e)}${r?`, ${r}`:""})`}function It(e,r=""){return`--${Tt(e,r)}`}function f(e,r){const a=It(e,r==null?void 0:r.prefix);return{variable:a,reference:Ft(a,Mt(r==null?void 0:r.fallback))}}function Mt(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:Bt,definePartsStyle:We}=b(ha.keys),fe=f("switch-track-width"),V=f("switch-track-height"),rr=f("switch-track-diff"),Et=I.subtract(fe,V),yr=f("switch-thumb-x"),le=f("switch-bg"),Dt=o(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}}),Rt=o({bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[V.reference],height:[V.reference],_checked:{transform:`translateX(${yr.reference})`}}),jt=We(e=>({container:{[rr.variable]:Et,[yr.variable]:rr.reference,_rtl:{[yr.variable]:I(rr).negate().toString()}},track:Dt(e),thumb:Rt})),Ht={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"}})},Wt=Bt({baseStyle:jt,sizes:Ht,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Vt,definePartsStyle:Q}=b(io.keys),Lt=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"}}),Ye=o({"&[data-is-numeric=true]":{textAlign:"end"}}),qt=Q(e=>{const{colorScheme:r}=e;return{th:{color:t("gray.600","gray.400")(e),borderBottom:"1px",borderColor:t(`${r}.100`,`${r}.700`)(e),...Ye},td:{borderBottom:"1px",borderColor:t(`${r}.100`,`${r}.700`)(e),...Ye},caption:{color:t("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Nt=Q(e=>{const{colorScheme:r}=e;return{th:{color:t("gray.600","gray.400")(e),borderBottom:"1px",borderColor:t(`${r}.100`,`${r}.700`)(e),...Ye},td:{borderBottom:"1px",borderColor:t(`${r}.100`,`${r}.700`)(e),...Ye},captio
|
2023-08-30 21:35:58 +00:00
|
|
|
to right,
|
|
|
|
transparent 0%,
|
|
|
|
${p(a,s)} 50%,
|
|
|
|
transparent 100%
|
2023-09-06 21:16:01 +00:00
|
|
|
)`;return{...!i&&n&&l,...i?{bgImage:c}:{bgColor:s}}}),Hi=o({lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"}),Wi=o(e=>({bg:t("gray.100","whiteAlpha.300")(e)})),Vi=o(e=>({transitionProperty:"common",transitionDuration:"slow",...ji(e)})),Li=ve(e=>({label:Hi,filledTrack:Vi(e),track:Wi(e)})),qi={xs:ve({track:{h:"1"}}),sm:ve({track:{h:"2"}}),md:ve({track:{h:"3"}}),lg:ve({track:{h:"4"}})},Ni=Ri({sizes:qi,baseStyle:Li,defaultProps:{size:"md",colorScheme:"blue"}}),Oi=e=>typeof e=="function";function S(e,...r){return Oi(e)?e(...r):e}var{definePartsStyle:Oe,defineMultiStyleConfig:Gi}=b(pa.keys),me=d("checkbox-size"),Ui=o(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:t(`${r}.500`,`${r}.200`)(e),borderColor:t(`${r}.500`,`${r}.200`)(e),color:t("white","gray.900")(e),_hover:{bg:t(`${r}.600`,`${r}.300`)(e),borderColor:t(`${r}.600`,`${r}.300`)(e)},_disabled:{borderColor:t("gray.200","transparent")(e),bg:t("gray.200","whiteAlpha.300")(e),color:t("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:t(`${r}.500`,`${r}.200`)(e),borderColor:t(`${r}.500`,`${r}.200`)(e),color:t("white","gray.900")(e)},_disabled:{bg:t("gray.100","whiteAlpha.100")(e),borderColor:t("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:t("red.500","red.300")(e)}}}),Yi=o({_disabled:{cursor:"not-allowed"}}),Ki=o({userSelect:"none",_disabled:{opacity:.4}}),Xi=o({transitionProperty:"transform",transitionDuration:"normal"}),Ji=Oe(e=>({icon:Xi,container:Yi,control:S(Ui,e),label:Ki})),Qi={sm:Oe({control:{[me.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Oe({control:{[me.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Oe({control:{[me.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Ke=Gi({baseStyle:Ji,sizes:Qi,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Zi,definePartsStyle:Ge}=b(lo.keys),en=o(e=>{var r;const a=(r=S(Ke.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"}}}}),rn=Ge(e=>{var r,a,i,n;return{label:(a=(r=Ke).baseStyle)==null?void 0:a.call(r,e).label,container:(n=(i=Ke).baseStyle)==null?void 0:n.call(i,e).container,control:en(e)}}),an={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"}})},on=Zi({baseStyle:rn,sizes:an,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:tn,definePartsStyle:nn}=b(Sa.keys),Te=d("select-bg"),Jr,ln=o({...(Jr=u.baseStyle)==null?void 0:Jr.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Te.reference,[Te.variable]:"colors.white",_dark:{[Te.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Te.reference}}),sn=o({width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}}),dn=nn({field:ln,icon:sn}),Fe=o({paddingInlineEnd:"8"}),Qr,Zr,ea,ra,aa,oa,ta,ia,cn={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:{...(oa=u.sizes)==null?void 0:oa.sm.field,...Fe}},xs:{...(ta=u.sizes)==null?void 0:ta.xs,field:{...(ia=u.sizes)==null?void 0:ia.xs.field,...Fe},icon:{insetEnd:"1"}}},bn=tn({baseStyle:dn,sizes:cn,variants:u.variants,defaultProps:u.defaultProps}),tr=d("skeleton-start-color"),ir=d("skeleton-end-color"),vn=o({[tr.variable]:"colors.gray.100",[ir.variable]:"colors.gray.400",_dark:{[tr.variable]:"colors.gray.800",[ir.variable]:"colors.gray.600"},background:tr.reference,borderColor:ir.reference,opacity:.7,borderRadius:"sm"}),un=h({baseStyle:vn}),nr=d("skip-link-bg"),fn=o({borderRadius:"md",
|
2023-08-30 21:35:58 +00:00
|
|
|
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%,
|
2023-09-06 21:16:01 +00:00
|
|
|
var(--invokeai-colors-base-800) 100%)`}}},p:2})),Ac=h({variants:{invokeAI:Cc},defaultProps:{size:"md",variant:"invokeAI"}}),Pc=f("popper-arrow-bg"),Tc=o(e=>({borderRadius:"base",shadow:"dark-lg",bg:t("base.700","base.200")(e),[Pc.variable]:t("colors.base.700","colors.base.200")(e),pb:1.5})),Fc=h({baseStyle:Tc}),va={backgroundColor:"accentAlpha.150 !important",borderColor:"accentAlpha.700 !important",borderRadius:"base !important",borderStyle:"dashed !important",_dark:{borderColor:"accent.400 !important"}},Ic={".react-flow__nodesselection-rect":{...va,padding:"1rem !important",boxSizing:"content-box !important",transform:"translate(-1rem, -1rem) !important"},".react-flow__selection":va},Mc={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"}},third:{bg:"base.300",color:"base.900",".chakra-ui-dark &":{bg:"base.750",color:"base.100"}},nodeBody:{bg:"base.100",color:"base.900",".chakra-ui-dark &":{bg:"base.800",color:"base.100"}},nodeHeader:{bg:"base.200",color:"base.900",".chakra-ui-dark &":{bg:"base.900",color:"base.100"}},nodeFooter:{bg:"base.200",color:"base.900",".chakra-ui-dark &":{bg:"base.900",color:"base.100"}}},styles:{global:()=>({layerStyle:"body","*":{...Yd},...Ic})},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)"},nodeSelected:{light:"0 0 0 3px var(--invokeai-colors-accent-400)",dark:"0 0 0 3px var(--invokeai-colors-accent-500)"},nodeHovered:{light:"0 0 0 2px var(--invokeai-colors-accent-500)",dark:"0 0 0 2px var(--invokeai-colors-accent-400)"},nodeHoveredSelected:{light:"0 0 0 3px var(--invokeai-colors-accent-500)",dark:"0 0 0 3px var(--invokeai-colors-accent-400)"},nodeInProgress:{light:"0 0 0 2px var(--invokeai-colors-accent-500), 0 0 10px 2px var(--invokeai-colors-accent-600)",dark:"0 0 0 2px var(--invokeai-colors-yellow-400), 0 0 20px 2px var(--invokeai-colors-orange-700)"}},colors:H0,components:{Button:X0,Input:fd,Editable:sd,Textarea:Ac,Tabs:_c,Progress:Ud,Accordion:U0,FormLabel:cd,Switch:mc,NumberInput:Md,Select:ec,Skeleton:ac,Slider:cc,Popover:Vd,Modal:wd,Checkbox:rd,Menu:$o,Text:zc,Tooltip:Fc}};const Bc=()=>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)"}}}}}),[]),Ec=Pa("@@invokeai-color-mode");function Dc({children:e}){const{i18n:r}=ko(),a=r.dir(),i=y.useMemo(()=>T0({...Mc,direction:a}),[a]);y.useEffect(()=>{document.body.dir=a},[a]);const n=B
|