2023-07-21 11:48:30 +00:00
|
|
|
import{v as g,gm as Ke,s as x,L as Ba,gn as Ea,ae as ca,ah as c,go as b,gp as Da,gq as t,gr as Ra,gs as h,gt as ba,gu as ja,gv as Ha,b2 as Wa,gw as Va,Z as La,gx as qa,gy as Oa,gz as Na,gA as Ga,aY as Ua}from"./index-e2437518.js";import{e as n,o as Sr,h as Ya,i as Ka,j as Xa,k as Za,l as Ja,n as Qa,p as et,q as rt,s as at,t as tt,v as ot,w as nt,x as it,M as lt}from"./MantineProvider-b5842fc1.js";var va=String.raw,ua=va`
|
2023-07-18 12:12:41 +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-07-21 11:48:30 +00:00
|
|
|
`,st=()=>g.jsx(Ke,{styles:ua}),dt=({scope:e=""})=>g.jsx(Ke,{styles:va`
|
2023-07-18 12:12:41 +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;
|
|
|
|
}
|
|
|
|
|
|
|
|
${ua}
|
2023-07-21 11:48:30 +00:00
|
|
|
`}),_e={light:"chakra-ui-light",dark:"chakra-ui-dark"};function ct(e={}){const{preventTransition:r=!0}=e,a={setDataset:o=>{const i=r?a.preventTransition():void 0;document.documentElement.dataset.theme=o,document.documentElement.style.colorScheme=o,i==null||i()},setClassName(o){document.body.classList.add(o?_e.dark:_e.light),document.body.classList.remove(o?_e.light:_e.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(o){var i;return((i=a.query().matches)!=null?i:o==="dark")?"dark":"light"},addListener(o){const i=a.query(),l=s=>{o(s.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(l):i.addEventListener("change",l),()=>{typeof i.removeListener=="function"?i.removeListener(l):i.removeEventListener("change",l)}},preventTransition(){const o=document.createElement("style");return o.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(o),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(o)})})}}};return a}var bt="chakra-ui-color-mode";function fa(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 vt=fa(bt),Cr=()=>{};function Ar(e,r){return e.type==="cookie"&&e.ssr?e.get(r):r}function ma(e){const{value:r,children:a,options:{useSystemColorMode:o,initialColorMode:i,disableTransitionOnChange:l}={},colorModeManager:s=vt}=e,d=i==="dark"?"dark":"light",[v,$]=x.useState(()=>Ar(s,d)),[p,S]=x.useState(()=>Ar(s)),{getSystemTheme:T,setClassName:L,setDataset:Qe,addListener:wr}=x.useMemo(()=>ct({preventTransition:l}),[l]),$e=i==="system"&&!v?p:v,F=x.useCallback(te=>{const ke=te==="system"?T():te;$(ke),L(ke==="dark"),Qe(ke),s.set(ke)},[s,T,L,Qe]);Ba(()=>{i==="system"&&S(T())},[]),x.useEffect(()=>{const te=s.get();if(te){F(te);return}if(i==="system"){F("system");return}F(d)},[s,d,i,F]);const zr=x.useCallback(()=>{F($e==="dark"?"light":"dark")},[$e,F]);x.useEffect(()=>{if(o)return wr(F)},[o,wr,F]);const Ma=x.useMemo(()=>({colorMode:r??$e,toggleColorMode:r?Cr:zr,setColorMode:r?Cr:F,forced:r!==void 0}),[$e,zr,F,r]);return g.jsx(Ea.Provider,{value:Ma,children:a})}ma.displayName="ColorModeProvider";var ut=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function ft(e){return ca(e)?ut.every(r=>Object.prototype.hasOwnProperty.call(e,r)):!1}var mt={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"},ht={"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)"},gt={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},yt={property:mt,easing:ht,duration:gt},pt=yt,St={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},xt=St,$t={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},kt=$t,_t={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},wt=_t,zt={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)"}
|
2023-07-18 12:12:41 +00:00
|
|
|
45deg,
|
|
|
|
${r} 25%,
|
|
|
|
transparent 25%,
|
|
|
|
transparent 50%,
|
|
|
|
${r} 50%,
|
|
|
|
${r} 75%,
|
|
|
|
transparent 75%,
|
|
|
|
transparent
|
2023-07-21 11:48:30 +00:00
|
|
|
)`,backgroundSize:`${e} ${e}`}}var Io=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function Mo(e){const r=Io();return!e||Ao(e)?r:e.string&&e.colors?Eo(e.string,e.colors):e.string&&!e.colors?Bo(e.string):e.colors&&!e.string?Do(e.colors):r}function Bo(e){let r=0;if(e.length===0)return r.toString();for(let o=0;o<e.length;o+=1)r=e.charCodeAt(o)+((r<<5)-r),r=r&r;let a="#";for(let o=0;o<3;o+=1){const i=r>>o*8&255;a+=`00${i.toString(16)}`.substr(-2)}return a}function Eo(e,r){let a=0;if(e.length===0)return r[0];for(let o=0;o<e.length;o+=1)a=e.charCodeAt(o)+((a<<5)-a),a=a&a;return a=(a%r.length+r.length)%r.length,r[a]}function Do(e){return e[Math.floor(Math.random()*e.length)]}function pa(e){return ca(e)&&e.reference?e.reference:String(e)}var Xe=(e,...r)=>r.map(pa).join(` ${e} `).replace(/calc/g,""),Ir=(...e)=>`calc(${Xe("+",...e)})`,Mr=(...e)=>`calc(${Xe("-",...e)})`,hr=(...e)=>`calc(${Xe("*",...e)})`,Br=(...e)=>`calc(${Xe("/",...e)})`,Er=e=>{const r=pa(e);return r!=null&&!Number.isNaN(parseFloat(r))?String(r).startsWith("-")?String(r).slice(1):`-${r}`:hr(r,-1)},E=Object.assign(e=>({add:(...r)=>E(Ir(e,...r)),subtract:(...r)=>E(Mr(e,...r)),multiply:(...r)=>E(hr(e,...r)),divide:(...r)=>E(Br(e,...r)),negate:()=>E(Er(e)),toString:()=>e.toString()}),{add:Ir,subtract:Mr,multiply:hr,divide:Br,negate:Er});function Ro(e){return!Number.isInteger(parseFloat(e.toString()))}function jo(e,r="-"){return e.replace(/\s+/g,r)}function Sa(e){const r=jo(e.toString());return r.includes("\\.")?e:Ro(e)?r.replace(".","\\."):e}function Ho(e,r=""){return[r,Sa(e)].filter(Boolean).join("-")}function Wo(e,r){return`var(${Sa(e)}${r?`, ${r}`:""})`}function Vo(e,r=""){return`--${Ho(e,r)}`}function m(e,r){const a=Vo(e,r==null?void 0:r.prefix);return{variable:a,reference:Wo(a,Lo(r==null?void 0:r.fallback))}}function Lo(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:qo,definePartsStyle:Re}=b(so.keys),ve=m("switch-track-width"),N=m("switch-track-height"),er=m("switch-track-diff"),Oo=E.subtract(ve,N),gr=m("switch-thumb-x"),ne=m("switch-bg"),No=t(e=>{const{colorScheme:r}=e;return{borderRadius:"full",p:"0.5",width:[ve.reference],height:[N.reference],transitionProperty:"common",transitionDuration:"fast",[ne.variable]:"colors.gray.300",_dark:{[ne.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[ne.variable]:`colors.${r}.500`,_dark:{[ne.variable]:`colors.${r}.200`}},bg:ne.reference}}),Go=t({bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[N.reference],height:[N.reference],_checked:{transform:`translateX(${gr.reference})`}}),Uo=Re(e=>({container:{[er.variable]:Oo,[gr.variable]:er.reference,_rtl:{[gr.variable]:E(er).negate().toString()}},track:No(e),thumb:Go})),Yo={sm:Re({container:{[ve.variable]:"1.375rem",[N.variable]:"sizes.3"}}),md:Re({container:{[ve.variable]:"1.875rem",[N.variable]:"sizes.4"}}),lg:Re({container:{[ve.variable]:"2.875rem",[N.variable]:"sizes.6"}})},Ko=qo({baseStyle:Uo,sizes:Yo,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Xo,definePartsStyle:Z}=b(co.keys),Zo=Z({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"}}),Ge=t({"&[data-is-numeric=true]":{textAlign:"end"}}),Jo=Z(e=>{const{colorScheme:r}=e;return{th:{color:n("gray.600","gray.400")(e),borderBottom:"1px",borderColor:n(`${r}.100`,`${r}.700`)(e),...Ge},td:{borderBottom:"1px",borderColor:n(`${r}.100`,`${r}.700`)(e),...Ge},caption:{color:n("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Qo=Z(e=>{const{colorScheme:r}=e;return{th:{color:n("gray.600","gray.400")(e),borderBottom:"1px",borderColor:n(`${r}.100`,`${r}.700`)(e),...Ge},td:{borderBottom:"1px",borderColor:n(`${r}.100`,`${r}.700`)(e),...Ge},captio
|
2023-07-18 12:12:41 +00:00
|
|
|
to right,
|
|
|
|
transparent 0%,
|
|
|
|
${P(a,s)} 50%,
|
|
|
|
transparent 100%
|
2023-07-21 11:48:30 +00:00
|
|
|
)`;return{...!o&&i&&l,...o?{bgImage:d}:{bgColor:s}}}),Kn=t({lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"}),Xn=t(e=>({bg:n("gray.100","whiteAlpha.300")(e)})),Zn=t(e=>({transitionProperty:"common",transitionDuration:"slow",...Yn(e)})),Jn=ce(e=>({label:Kn,filledTrack:Zn(e),track:Xn(e)})),Qn={xs:ce({track:{h:"1"}}),sm:ce({track:{h:"2"}}),md:ce({track:{h:"3"}}),lg:ce({track:{h:"4"}})},ei=Un({sizes:Qn,baseStyle:Jn,defaultProps:{size:"md",colorScheme:"blue"}}),ri=e=>typeof e=="function";function k(e,...r){return ri(e)?e(...r):e}var{definePartsStyle:Le,defineMultiStyleConfig:ai}=b(Gt.keys),fe=c("checkbox-size"),ti=t(e=>{const{colorScheme:r}=e;return{w:fe.reference,h:fe.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:n(`${r}.500`,`${r}.200`)(e),borderColor:n(`${r}.500`,`${r}.200`)(e),color:n("white","gray.900")(e),_hover:{bg:n(`${r}.600`,`${r}.300`)(e),borderColor:n(`${r}.600`,`${r}.300`)(e)},_disabled:{borderColor:n("gray.200","transparent")(e),bg:n("gray.200","whiteAlpha.300")(e),color:n("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:n(`${r}.500`,`${r}.200`)(e),borderColor:n(`${r}.500`,`${r}.200`)(e),color:n("white","gray.900")(e)},_disabled:{bg:n("gray.100","whiteAlpha.100")(e),borderColor:n("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:n("red.500","red.300")(e)}}}),oi=t({_disabled:{cursor:"not-allowed"}}),ni=t({userSelect:"none",_disabled:{opacity:.4}}),ii=t({transitionProperty:"transform",transitionDuration:"normal"}),li=Le(e=>({icon:ii,container:oi,control:k(ti,e),label:ni})),si={sm:Le({control:{[fe.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Le({control:{[fe.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Le({control:{[fe.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Ue=ai({baseStyle:li,sizes:si,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:di,definePartsStyle:qe}=b(oo.keys),ci=t(e=>{var r;const a=(r=k(Ue.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"}}}}),bi=qe(e=>{var r,a,o,i;return{label:(a=(r=Ue).baseStyle)==null?void 0:a.call(r,e).label,container:(i=(o=Ue).baseStyle)==null?void 0:i.call(o,e).container,control:ci(e)}}),vi={md:qe({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:qe({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:qe({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},ui=di({baseStyle:bi,sizes:vi,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:fi,definePartsStyle:mi}=b(no.keys),Ce=c("select-bg"),Kr,hi=t({...(Kr=u.baseStyle)==null?void 0:Kr.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Ce.reference,[Ce.variable]:"colors.white",_dark:{[Ce.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Ce.reference}}),gi=t({width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}}),yi=mi({field:hi,icon:gi}),Ae=t({paddingInlineEnd:"8"}),Xr,Zr,Jr,Qr,ea,ra,aa,ta,pi={lg:{...(Xr=u.sizes)==null?void 0:Xr.lg,field:{...(Zr=u.sizes)==null?void 0:Zr.lg.field,...Ae}},md:{...(Jr=u.sizes)==null?void 0:Jr.md,field:{...(Qr=u.sizes)==null?void 0:Qr.md.field,...Ae}},sm:{...(ea=u.sizes)==null?void 0:ea.sm,field:{...(ra=u.sizes)==null?void 0:ra.sm.field,...Ae}},xs:{...(aa=u.sizes)==null?void 0:aa.xs,field:{...(ta=u.sizes)==null?void 0:ta.xs.field,...Ae},icon:{insetEnd:"1"}}},Si=fi({baseStyle:yi,sizes:pi,variants:u.variants,defaultProps:u.defaultProps}),tr=c("skeleton-start-color"),or=c("skeleton-end-color"),xi=t({[tr.variable]:"colors.gray.100",[or.variable]:"colors.gray.400",_dark:{[tr.variable]:"colors.gray.800",[or.variable]:"colors.gray.600"},background:tr.reference,borderColor:or.reference,opacity:.7,borderRadius:"sm"}),$i=h({baseStyle:xi}),nr=c("skip-link-bg"),ki=t({borderRadius:"md",
|
2023-07-18 12:12:41 +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%)`},_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%,
|
2023-07-21 11:48:30 +00:00
|
|
|
var(--invokeai-colors-base-800) 100%)`}}})),Dc=h({variants:{invokeAI:Ec},defaultProps:{size:"md",variant:"invokeAI"}}),Rc=m("popper-arrow-bg"),jc=t(e=>({borderRadius:"base",shadow:"dark-lg",bg:n("base.700","base.200")(e),[Rc.variable]:n("colors.base.700","colors.base.200")(e),pb:1.5})),Hc=h({baseStyle:jc}),Wc={config:{cssVarPrefix:"invokeai",initialColorMode:"dark",useSystemColorMode:!1},layerStyles:{body:{bg:"base.50",color:"base.900",".chakra-ui-dark &":{bg:"base.900",color:"base.50"}},first:{bg:"base.100",color:"base.900",".chakra-ui-dark &":{bg:"base.850",color:"base.100"}},second:{bg:"base.200",color:"base.900",".chakra-ui-dark &":{bg:"base.800",color:"base.100"}}},styles:{global:()=>({layerStyle:"body","*":{...ac}})},direction:"ltr",fonts:{body:"'Inter Variable', sans-serif"},shadows:{light:{accent:"0 0 10px 0 var(--invokeai-colors-accent-300)",accentHover:"0 0 10px 0 var(--invokeai-colors-accent-400)",ok:"0 0 7px var(--invokeai-colors-ok-600)",working:"0 0 7px var(--invokeai-colors-working-600)",error:"0 0 7px var(--invokeai-colors-error-600)"},dark:{accent:"0 0 10px 0 var(--invokeai-colors-accent-600)",accentHover:"0 0 10px 0 var(--invokeai-colors-accent-500)",ok:"0 0 7px var(--invokeai-colors-ok-400)",working:"0 0 7px var(--invokeai-colors-working-400)",error:"0 0 7px var(--invokeai-colors-error-400)"},selected:{light:"0px 0px 0px 1px var(--invokeai-colors-base-150), 0px 0px 0px 4px var(--invokeai-colors-accent-400)",dark:"0px 0px 0px 1px var(--invokeai-colors-base-900), 0px 0px 0px 4px var(--invokeai-colors-accent-500)"},hoverSelected:{light:"0px 0px 0px 1px var(--invokeai-colors-base-150), 0px 0px 0px 4px var(--invokeai-colors-accent-500)",dark:"0px 0px 0px 1px var(--invokeai-colors-base-900), 0px 0px 0px 4px var(--invokeai-colors-accent-400)"},hoverUnselected:{light:"0px 0px 0px 1px var(--invokeai-colors-base-150), 0px 0px 0px 3px var(--invokeai-colors-accent-500)",dark:"0px 0px 0px 1px var(--invokeai-colors-base-900), 0px 0px 0px 3px var(--invokeai-colors-accent-400)"},nodeSelectedOutline:"0 0 0 2px var(--invokeai-colors-accent-450)"},colors:U0,components:{Button:od,Input:$d,Editable:hd,Textarea:Dc,Tabs:Ic,Progress:rc,Accordion:rd,FormLabel:yd,Switch:_c,NumberInput:Vd,Select:sc,Skeleton:cc,Slider:yc,Popover:Kd,Modal:Md,Checkbox:dd,Menu:it,Text:Bc,Tooltip:Hc}};const Vc=()=>x.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)"}}}}}),[]),Lc=fa("@@invokeai-color-mode");function Nc({children:e}){const{i18n:r}=Ua(),a=r.dir(),o=x.useMemo(()=>j0({...Wc,direction:a}),[a]);x.useEffect(()=>{document.body.dir=a},[a]);const i=Vc();return g.jsx(lt,{theme:i,children:g.jsx(G0,{theme:o,colorModeManager:Lc,children:e})})}export{Nc as default};
|