diff --git a/cmd/cli/ui/assets/favicon.17e50649.svg b/cmd/cli/ui/assets/favicon.17e50649.svg new file mode 100644 index 0000000..de4aedd --- /dev/null +++ b/cmd/cli/ui/assets/favicon.17e50649.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/cmd/cli/ui/assets/index.7e4cf562.css b/cmd/cli/ui/assets/index.7e4cf562.css new file mode 100644 index 0000000..7222962 --- /dev/null +++ b/cmd/cli/ui/assets/index.7e4cf562.css @@ -0,0 +1 @@ +.container{align-items:center;display:flex;flex-direction:column;justify-content:center;min-height:100vh;padding:0 2rem}.main{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;min-height:80vh}.title{color:var(--text-title-color);margin:0;line-height:1.15;font-size:3rem;padding-top:4rem}.subtitle{color:var(--text-subtitle-color);margin:4rem 0 2rem;line-height:1.15;font-size:2rem}.title,.description{text-align:center}.description{line-height:1.5;font-size:.8rem;padding:.3rem 0 .5rem}.description time{border-bottom:1px dashed #ccc}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(275px,1fr));grid-gap:32px;max-width:1000px;margin-top:3rem;width:100%}.card{border-radius:8px;border:2px solid #111;margin:1rem 0 3rem;padding:64px 1.5rem 1.5rem;position:relative;text-align:center;cursor:pointer}.card header{border-radius:5000px;left:0;margin:auto;overflow:hidden;position:absolute;right:0;top:-36px;width:80px}.card section{display:flex;flex-direction:column;height:100%;justify-content:space-between}.card h3{font-size:1.5rem;margin:0}.card h4{font-size:1.3rem;margin:1rem 0 0}.card p{font-weight:bold;margin:0;font-size:2rem;line-height:1.5}.card .secondary{font-size:1.9rem}.card small{align-items:center;display:flex;font-size:1rem;font-weight:bold;justify-content:center;padding:.3rem 0}.card small>span{margin-left:8px}@media (max-width: 600px){.grid{width:100%;flex-direction:column}}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-thumb{border-radius:10px;background-color:#2196f3;box-shadow:inset 0 0 6px #00000080}::-webkit-scrollbar-track{border-radius:10px;background-color:#d5f7f7;box-shadow:inset 0 0 6px #0006} diff --git a/cmd/cli/ui/assets/index.fa2a9744.js b/cmd/cli/ui/assets/index.fa2a9744.js new file mode 100644 index 0000000..c3a2460 --- /dev/null +++ b/cmd/cli/ui/assets/index.fa2a9744.js @@ -0,0 +1 @@ +var H=Object.defineProperty,N=Object.defineProperties;var B=Object.getOwnPropertyDescriptors;var f=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var w=(t,n,r)=>n in t?H(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,h=(t,n)=>{for(var r in n||(n={}))g.call(n,r)&&w(t,r,n[r]);if(f)for(var r of f(n))x.call(n,r)&&w(t,r,n[r]);return t},p=(t,n)=>N(t,B(n));var v=(t,n)=>{var r={};for(var l in t)g.call(t,l)&&n.indexOf(l)<0&&(r[l]=t[l]);if(t!=null&&f)for(var l of f(t))n.indexOf(l)<0&&x.call(t,l)&&(r[l]=t[l]);return r};import{j as e,B as c,T as y,u as I,a as A,R as b,b as E,c as o,S,I as j,F as W,d as Z,e as O,C as L,f as u,g as P,h as D,i as M,k as R,l as V,m,n as Q,r as C,o as q,p as K,H as k,q as U,s as Y,Q as _,t as G,v as J,w as X,x as $}from"./vendor.9edb2f74.js";import z from"https://cdn.skypack.dev/url-parse";const ee=function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))l(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&l(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerpolicy&&(a.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?a.credentials="include":i.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function l(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}};ee();function te(t){return e(c,p(h({},t),{children:e(y,{as:"span",fontSize:"sm",fontWeight:"bold",children:"ngonx"})}))}const T=()=>{const t=I("#282828","#fff"),[n]=A("(max-width: 600px)");return{border:t,isMobileDevice:n}},ne=t=>{const[n,r]=b.useState(!1),l=()=>r(!n),{border:i}=T(),{colorMode:a,toggleColorMode:s}=E();return o(oe,p(h({},t),{children:[e(te,{w:"50px"}),e(ie,{toggle:l,isOpen:n,colorFill:i}),e(ae,{isOpen:n,colorMode:a,toggleColorMode:s})]}))},re=({fill:t})=>o("svg",{width:"24",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",children:[e("title",{children:"Close"}),e("path",{fill:t,d:"M9.00023 7.58599L13.9502 2.63599L15.3642 4.04999L10.4142 8.99999L15.3642 13.95L13.9502 15.364L9.00023 10.414L4.05023 15.364L2.63623 13.95L7.58623 8.99999L2.63623 4.04999L4.05023 2.63599L9.00023 7.58599Z"})]}),le=({fill:t})=>o("svg",{width:"24px",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:t,children:[e("title",{children:"Menu"}),e("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]}),ie=({toggle:t,isOpen:n,colorFill:r})=>e(c,{display:{base:"block",md:"none"},onClick:t,children:n?e(re,{fill:r}):e(le,{fill:r})}),ae=({isOpen:t,colorMode:n,toggleColorMode:r})=>e(c,{display:{base:t?"block":"none",md:"block"},flexBasis:{base:"100%",md:"auto"},children:e(S,{spacing:8,align:"center",justify:["center","space-between","flex-end","flex-end"],direction:["column","row","row","row"],pt:[4,4,0,0],children:e(j,{"aria-label":"",mr:"4",className:"icon-button-name",size:"sm",icon:n==="light"?e(W,{}):e(Z,{}),isRound:!0,onClick:r,alignSelf:"flex-end"})})}),oe=r=>{var l=r,{children:t}=l,n=v(l,["children"]);return e(O,p(h({as:"nav",align:"center",justify:"space-between",wrap:"wrap",w:"100%",p:8},n),{children:t}))};function se(){const{border:t,colorBase:n}=T();return e(c,{pt:"20",color:t,children:e(L,{children:e(S,{spacing:6,children:o(y,{fontSize:"sm",children:["\xA9 ",new Date().getFullYear()," @kenriortega web page. All rights reserved"]})})})})}const ce=({id:t,path_url:n,status:r})=>{const{pathname:l,hostname:i,protocol:a}=new z(n);return e(u,{children:e("span",{className:"card",children:o(c,{w:"500",children:[e("h1",{children:r?"\u2620\uFE0F Down":"\u2705 UP"}),o("h3",{children:["Path: ",l]}),o("h4",{children:["Host: ",i]})]})})})},de=({endpoints:t,onSelectedRow:n})=>e(u,{children:o(P,{variant:"simple",children:[e(D,{children:e(M,{children:Object.keys(t[0]).map(r=>e(R,{children:r},r))})}),e(V,{children:t.map(r=>o(M,{onClick:()=>n(r),children:[e(m,{cursor:"pointer",color:"green",children:e(Q,{label:"go to ...",placement:"left",children:r.id.split("-")[0]})}),e(m,{children:z(r.path_url).pathname}),e(m,{children:r.status?"\u2620\uFE0F down":"\u2705 up"})]},r.id))})]})});function F({primary:t="",border:n="",width:r,height:l}){return o("svg",{id:"b21613c9-2bf0-4d37-bef0-3b193d34fc5d","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:r,height:l,viewBox:"0 0 647.63626 632.17383",children:[e("path",{d:"M687.3279,276.08691H512.81813a15.01828,15.01828,0,0,0-15,15v387.85l-2,.61005-42.81006,13.11a8.00676,8.00676,0,0,1-9.98974-5.31L315.678,271.39691a8.00313,8.00313,0,0,1,5.31006-9.99l65.97022-20.2,191.25-58.54,65.96972-20.2a7.98927,7.98927,0,0,1,9.99024,5.3l32.5498,106.32Z",transform:"translate(-276.18187 -133.91309)",fill:"#f2f2f2"}),e("path",{d:"M725.408,274.08691l-39.23-128.14a16.99368,16.99368,0,0,0-21.23-11.28l-92.75,28.39L380.95827,221.60693l-92.75,28.4a17.0152,17.0152,0,0,0-11.28028,21.23l134.08008,437.93a17.02661,17.02661,0,0,0,16.26026,12.03,16.78926,16.78926,0,0,0,4.96972-.75l63.58008-19.46,2-.62v-2.09l-2,.61-64.16992,19.65a15.01489,15.01489,0,0,1-18.73-9.95l-134.06983-437.94a14.97935,14.97935,0,0,1,9.94971-18.73l92.75-28.4,191.24024-58.54,92.75-28.4a15.15551,15.15551,0,0,1,4.40966-.66,15.01461,15.01461,0,0,1,14.32032,10.61l39.0498,127.56.62012,2h2.08008Z",transform:"translate(-276.18187 -133.91309)",fill:"#3f3d56"}),e("path",{d:"M398.86279,261.73389a9.0157,9.0157,0,0,1-8.61133-6.3667l-12.88037-42.07178a8.99884,8.99884,0,0,1,5.9712-11.24023l175.939-53.86377a9.00867,9.00867,0,0,1,11.24072,5.9707l12.88037,42.07227a9.01029,9.01029,0,0,1-5.9707,11.24072L401.49219,261.33887A8.976,8.976,0,0,1,398.86279,261.73389Z",transform:"translate(-276.18187 -133.91309)",fill:"#6c63ff"}),e("circle",{cx:"190.15351",cy:"24.95465",r:"20",fill:"#6c63ff"}),e("circle",{cx:"190.15351",cy:"24.95465",r:"12.66462",fill:"#fff"}),e("path",{d:"M878.81836,716.08691h-338a8.50981,8.50981,0,0,1-8.5-8.5v-405a8.50951,8.50951,0,0,1,8.5-8.5h338a8.50982,8.50982,0,0,1,8.5,8.5v405A8.51013,8.51013,0,0,1,878.81836,716.08691Z",transform:"translate(-276.18187 -133.91309)",fill:"#e6e6e6"}),e("path",{d:"M723.31813,274.08691h-210.5a17.02411,17.02411,0,0,0-17,17v407.8l2-.61v-407.19a15.01828,15.01828,0,0,1,15-15H723.93825Zm183.5,0h-394a17.02411,17.02411,0,0,0-17,17v458a17.0241,17.0241,0,0,0,17,17h394a17.0241,17.0241,0,0,0,17-17v-458A17.02411,17.02411,0,0,0,906.81813,274.08691Zm15,475a15.01828,15.01828,0,0,1-15,15h-394a15.01828,15.01828,0,0,1-15-15v-458a15.01828,15.01828,0,0,1,15-15h394a15.01828,15.01828,0,0,1,15,15Z",transform:"translate(-276.18187 -133.91309)",fill:"#3f3d56"}),e("path",{d:"M801.81836,318.08691h-184a9.01015,9.01015,0,0,1-9-9v-44a9.01016,9.01016,0,0,1,9-9h184a9.01016,9.01016,0,0,1,9,9v44A9.01015,9.01015,0,0,1,801.81836,318.08691Z",transform:"translate(-276.18187 -133.91309)",fill:"#6c63ff"}),e("circle",{cx:"433.63626",cy:"105.17383",r:"20",fill:"#6c63ff"}),e("circle",{cx:"433.63626",cy:"105.17383",r:"12.18187",fill:"#fff"})]})}const he=()=>{const[t,n]=C.exports.useState(!1),r=()=>{n(!t)},l=d=>{console.log(d)},{isLoading:i,error:a,data:s}=q("endpointsData",()=>fetch("/api/v1/mngt/").then(d=>d.json()));return i?"Loading...":a?"An error has occurred: "+a.message:e(u,{children:o(K,{maxW:"container.1sm",px:[0,4],children:[e(k,{as:"h2",m:8,size:"md",children:"Ngonx Proxy!!"}),e(k,{as:"h1",m:8,size:"2xl",children:"Service Discovery"}),o(u,{children:[e(c,{onClick:r,cursor:"pointer",children:t?e(U,{size:23}):e(Y,{size:23})}),t?e(c,{p:23,children:s.length>0?e(de,{endpoints:s,onSelectedRow:l}):e(F,{width:"300",height:"300"})}):e("div",{children:s.length>0?e("div",{className:"grid",children:s.map(d=>e(C.exports.Fragment,{children:e(ce,h({},d))},d.id))}):e(L,{children:e(F,{width:"300",height:"300"})})})]})]})})},fe=new _;function pe(){return o(G,{client:fe,children:[e(ne,{}),e("main",{className:"main",children:e(he,{})}),e(se,{})]})}const ue=J({styles:{global:t=>({"html, body":{fontSize:"sm",color:t.colorMode==="dark"?"white":"spotify.700",lineHeight:"tall",bg:t.colorMode==="dark"?"spotify.700":"white"}})},config:{initialColorMode:"system",useSystemColorMode:!0},colors:{spotify:{700:"#282828"}},sizes:{container:{sectionLanding:"1250px",desktop:"1250px",desktopInput:"450px","1sm":"700px","2sm":"850px","1xl":"1250px","2xl":"1440px"}},textStyles:{filterListItem:{fontSize:["18px","24px"],fontWeight:"semibold",lineHeight:"110%",letterSpacing:"-1%",paddingLeft:"23px"},brandName:{fontSize:["18px","24px"],fontWeight:"semibold",lineHeight:"110%",letterSpacing:"-1%"},linkName:{fontSize:["12px","14px"],fontWeight:"semibold",lineHeight:"110%",letterSpacing:"-1%",justifyContent:"center",padding:"4px 16px"},cardText:{fontSize:["14px","16px","18px","24px"],fontWeight:"semibold",lineHeight:"110%",letterSpacing:"-1%"},cardTextSmall:{fontSize:["10px","12px","12px","14px"],fontWeight:"500",lineHeight:"110%",letterSpacing:"-1%"},cardTextVerySmall:{fontSize:["10px","10px"],fontWeight:"500",letterSpacing:"-1%"}}});X.render(e(b.StrictMode,{children:e($,{theme:ue,children:e(pe,{})})}),document.getElementById("root")); diff --git a/cmd/cli/ui/assets/vendor.9edb2f74.js b/cmd/cli/ui/assets/vendor.9edb2f74.js new file mode 100644 index 0000000..cd69a5e --- /dev/null +++ b/cmd/cli/ui/assets/vendor.9edb2f74.js @@ -0,0 +1,352 @@ +var tS=Object.defineProperty;var Av=Object.getOwnPropertySymbols;var rS=Object.prototype.hasOwnProperty,nS=Object.prototype.propertyIsEnumerable;var Mv=(e,t,r)=>t in e?tS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Fv=(e,t)=>{for(var r in t||(t={}))rS.call(t,r)&&Mv(e,r,t[r]);if(Av)for(var r of Av(t))nS.call(t,r)&&Mv(e,r,t[r]);return e};var Wo=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},S={exports:{}},ne={};/* +object-assign +(c) Sindre Sorhus +@license MIT +*/var Lv=Object.getOwnPropertySymbols,aS=Object.prototype.hasOwnProperty,iS=Object.prototype.propertyIsEnumerable;function oS(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function sS(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(n.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(i){a[i]=i}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Dv=sS()?Object.assign:function(e,t){for(var r,n=oS(e),a,i=1;i=h},a=function(){},e.unstable_forceFrameRate=function(L){0>L||125>>1,Z=L[q];if(Z!==void 0&&0R(Ke,I))Ge!==void 0&&0>R(Ge,Ke)?(L[q]=Ge,L[Le]=I,q=Le):(L[q]=Ke,L[Fe]=I,q=Fe);else if(Ge!==void 0&&0>R(Ge,I))L[q]=Ge,L[Le]=I,q=Le;else break e}}return z}return null}function R(L,z){var I=L.sortIndex-z.sortIndex;return I!==0?I:L.id-z.id}var k=[],A=[],j=1,U=null,V=3,K=!1,X=!1,H=!1;function J(L){for(var z=C(A);z!==null;){if(z.callback===null)T(A);else if(z.startTime<=L)T(A),z.sortIndex=z.expirationTime,P(k,z);else break;z=C(A)}}function ee(L){if(H=!1,J(L),!X)if(C(k)!==null)X=!0,t(ue);else{var z=C(A);z!==null&&r(ee,z.startTime-L)}}function ue(L,z){X=!1,H&&(H=!1,n()),K=!0;var I=V;try{for(J(z),U=C(k);U!==null&&(!(U.expirationTime>z)||L&&!e.unstable_shouldYield());){var q=U.callback;if(typeof q=="function"){U.callback=null,V=U.priorityLevel;var Z=q(U.expirationTime<=z);z=e.unstable_now(),typeof Z=="function"?U.callback=Z:U===C(k)&&T(k),J(z)}else T(k);U=C(k)}if(U!==null)var Fe=!0;else{var Ke=C(A);Ke!==null&&r(ee,Ke.startTime-z),Fe=!1}return Fe}finally{U=null,V=I,K=!1}}var pe=a;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){X||K||(X=!0,t(ue))},e.unstable_getCurrentPriorityLevel=function(){return V},e.unstable_getFirstCallbackNode=function(){return C(k)},e.unstable_next=function(L){switch(V){case 1:case 2:case 3:var z=3;break;default:z=V}var I=V;V=z;try{return L()}finally{V=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=pe,e.unstable_runWithPriority=function(L,z){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var I=V;V=L;try{return z()}finally{V=I}},e.unstable_scheduleCallback=function(L,z,I){var q=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0q?(L.sortIndex=I,P(A,L),C(k)===null&&L===C(A)&&(H?n():H=!0,r(ee,I-q))):(L.sortIndex=Z,P(k,L),X||K||(X=!0,t(ue))),L},e.unstable_wrapCallback=function(L){var z=V;return function(){var I=V;V=z;try{return L.apply(this,arguments)}finally{V=I}}}})(Zv);Xv.exports=Zv;/** @license React v17.0.2 + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ko=S.exports,Se=Dv,Be=Xv.exports;function $(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;rt}return!1}function tt(e,t,r,n,a,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var He={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){He[e]=new tt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];He[t]=new tt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){He[e]=new tt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){He[e]=new tt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){He[e]=new tt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){He[e]=new tt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){He[e]=new tt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){He[e]=new tt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){He[e]=new tt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Kl=/[\-:]([a-z])/g;function Gl(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Kl,Gl);He[t]=new tt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Kl,Gl);He[t]=new tt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Kl,Gl);He[t]=new tt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){He[e]=new tt(e,1,!1,e.toLowerCase(),null,!1,!1)});He.xlinkHref=new tt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){He[e]=new tt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Yl(e,t,r,n){var a=He.hasOwnProperty(t)?He[t]:null,i=a!==null?a.type===0:n?!1:!(!(2s||a[o]!==i[s])return` +`+a[o].replace(" at new "," at ");while(1<=o&&0<=s);break}}}finally{oc=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ua(e):""}function gS(e){switch(e.tag){case 5:return Ua(e.type);case 16:return Ua("Lazy");case 13:return Ua("Suspense");case 19:return Ua("SuspenseList");case 0:case 2:case 15:return e=Zo(e.type,!1),e;case 11:return e=Zo(e.type.render,!1),e;case 22:return e=Zo(e.type._render,!1),e;case 1:return e=Zo(e.type,!0),e;default:return""}}function Vn(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Or:return"Fragment";case cn:return"Portal";case Va:return"Profiler";case Xl:return"StrictMode";case Ha:return"Suspense";case Yo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Jl:return(e.displayName||"Context")+".Consumer";case Zl:return(e._context.displayName||"Context")+".Provider";case Go:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Xo:return Vn(e.type);case tc:return Vn(e._render);case ec:t=e._payload,e=e._init;try{return Vn(e(t))}catch{}}return null}function Tr(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ih(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function yS(e){var t=ih(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r!="undefined"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){n=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jo(e){e._valueTracker||(e._valueTracker=yS(e))}function oh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=ih(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function es(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch{return e.body}}function sc(e,t){var r=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:e._wrapperState.initialChecked})}function sh(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Tr(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function uh(e,t){t=t.checked,t!=null&&Yl(e,"checked",t,!1)}function uc(e,t){uh(e,t);var r=Tr(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?lc(e,t.type,r):t.hasOwnProperty("defaultValue")&&lc(e,t.type,Tr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function lh(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function lc(e,t,r){(t!=="number"||es(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function bS(e){var t="";return Ko.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function cc(e,t){return e=Se({children:void 0},t),(t=bS(t.children))&&(e.children=t),e}function Hn(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a=r.length))throw Error($(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Tr(r)}}function fh(e,t){var r=Tr(t.value),n=Tr(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function dh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var dc={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function ph(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ph(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ts,vh=function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(t,r,n,a){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,a)})}:e}(function(e,t){if(e.namespaceURI!==dc.svg||"innerHTML"in e)e.innerHTML=t;else{for(ts=ts||document.createElement("div"),ts.innerHTML=""+t.valueOf().toString()+"",t=ts.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qa(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var qa={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xS=["Webkit","ms","Moz","O"];Object.keys(qa).forEach(function(e){xS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qa[t]=qa[e]})});function hh(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||qa.hasOwnProperty(e)&&qa[e]?(""+t).trim():t+"px"}function mh(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=hh(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var wS=Se({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vc(e,t){if(t){if(wS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error($(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error($(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error($(61))}if(t.style!=null&&typeof t.style!="object")throw Error($(62))}}function hc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function mc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gc=null,Wn=null,Un=null;function gh(e){if(e=di(e)){if(typeof gc!="function")throw Error($(280));var t=e.stateNode;t&&(t=bs(t),gc(e.stateNode,e.type,t))}}function yh(e){Wn?Un?Un.push(e):Un=[e]:Wn=e}function bh(){if(Wn){var e=Wn,t=Un;if(Un=Wn=null,gh(e),t)for(e=0;en?0:1<r;r++)t.push(e);return t}function us(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-Ar(t),e[t]=r}var Ar=Math.clz32?Math.clz32:$S,DS=Math.log,IS=Math.LN2;function $S(e){return e===0?32:31-(DS(e)/IS|0)|0}var jS=Be.unstable_UserBlockingPriority,BS=Be.unstable_runWithPriority,ls=!0;function zS(e,t,r,n){fn||bc();var a=Ac,i=fn;fn=!0;try{xh(a,e,t,r,n)}finally{(fn=i)||wc()}}function NS(e,t,r,n){BS(jS,Ac.bind(null,e,t,r,n))}function Ac(e,t,r,n){if(ls){var a;if((a=(t&4)==0)&&0=ii),Qh=String.fromCharCode(32),qh=!1;function Kh(e,t){switch(e){case"keyup":return cC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yn=!1;function dC(e,t){switch(e){case"compositionend":return Gh(t);case"keypress":return t.which!==32?null:(qh=!0,Qh);case"textInput":return e=t.data,e===Qh&&qh?null:e;default:return null}}function pC(e,t){if(Yn)return e==="compositionend"||!Bc&&Kh(e,t)?(e=zh(),cs=Fc=Mr=null,Yn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=rm(r)}}function am(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?am(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function im(){for(var e=window,t=es();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=es(e.document)}return t}function Vc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var CC=fr&&"documentMode"in document&&11>=document.documentMode,Xn=null,Hc=null,li=null,Wc=!1;function om(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Wc||Xn==null||Xn!==es(n)||(n=Xn,"selectionStart"in n&&Vc(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),li&&ui(li,n)||(li=n,n=hs(Hc,"onSelect"),0ra||(e.current=Xc[ra],Xc[ra]=null,ra--)}function Te(e,t){ra++,Xc[ra]=e.current,e.current=t}var Dr={},Ye=Lr(Dr),st=Lr(!1),vn=Dr;function na(e,t){var r=e.type.contextTypes;if(!r)return Dr;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in r)a[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function ut(e){return e=e.childContextTypes,e!=null}function xs(){ye(st),ye(Ye)}function Sm(e,t,r){if(Ye.current!==Dr)throw Error($(168));Te(Ye,t),Te(st,r)}function Cm(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in e))throw Error($(108,Vn(t)||"Unknown",a));return Se({},r,n)}function ws(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dr,vn=Ye.current,Te(Ye,e),Te(st,st.current),!0}function Em(e,t,r){var n=e.stateNode;if(!n)throw Error($(169));r?(e=Cm(e,t,vn),n.__reactInternalMemoizedMergedChildContext=e,ye(st),ye(Ye),Te(Ye,e)):ye(st),Te(st,r)}var Zc=null,hn=null,OC=Be.unstable_runWithPriority,Jc=Be.unstable_scheduleCallback,ef=Be.unstable_cancelCallback,TC=Be.unstable_shouldYield,Pm=Be.unstable_requestPaint,tf=Be.unstable_now,kC=Be.unstable_getCurrentPriorityLevel,Ss=Be.unstable_ImmediatePriority,Om=Be.unstable_UserBlockingPriority,Tm=Be.unstable_NormalPriority,km=Be.unstable_LowPriority,_m=Be.unstable_IdlePriority,rf={},_C=Pm!==void 0?Pm:function(){},dr=null,Cs=null,nf=!1,Rm=tf(),Xe=1e4>Rm?tf:function(){return tf()-Rm};function aa(){switch(kC()){case Ss:return 99;case Om:return 98;case Tm:return 97;case km:return 96;case _m:return 95;default:throw Error($(332))}}function Am(e){switch(e){case 99:return Ss;case 98:return Om;case 97:return Tm;case 96:return km;case 95:return _m;default:throw Error($(332))}}function mn(e,t){return e=Am(e),OC(e,t)}function pi(e,t,r){return e=Am(e),Jc(e,t,r)}function qt(){if(Cs!==null){var e=Cs;Cs=null,ef(e)}Mm()}function Mm(){if(!nf&&dr!==null){nf=!0;var e=0;try{var t=dr;mn(99,function(){for(;eT?(R=C,C=null):R=C.sibling;var k=p(d,C,h[T],x);if(k===null){C===null&&(C=R);break}e&&C&&k.alternate===null&&t(d,C),f=i(k,f,T),P===null?w=k:P.sibling=k,P=k,C=R}if(T===h.length)return r(d,C),w;if(C===null){for(;TT?(R=C,C=null):R=C.sibling;var A=p(d,C,k.value,x);if(A===null){C===null&&(C=R);break}e&&C&&A.alternate===null&&t(d,C),f=i(A,f,T),P===null?w=A:P.sibling=A,P=A,C=R}if(k.done)return r(d,C),w;if(C===null){for(;!k.done;T++,k=h.next())k=v(d,k.value,x),k!==null&&(f=i(k,f,T),P===null?w=k:P.sibling=k,P=k);return w}for(C=n(d,C);!k.done;T++,k=h.next())k=g(C,d,T,k.value,x),k!==null&&(e&&k.alternate!==null&&C.delete(k.key===null?T:k.key),f=i(k,f,T),P===null?w=k:P.sibling=k,P=k);return e&&C.forEach(function(j){return t(d,j)}),w}return function(d,f,h,x){var w=typeof h=="object"&&h!==null&&h.type===Or&&h.key===null;w&&(h=h.props.children);var P=typeof h=="object"&&h!==null;if(P)switch(h.$$typeof){case Na:e:{for(P=h.key,w=f;w!==null;){if(w.key===P){switch(w.tag){case 7:if(h.type===Or){r(d,w.sibling),f=a(w,h.props.children),f.return=d,d=f;break e}break;default:if(w.elementType===h.type){r(d,w.sibling),f=a(w,h.props),f.ref=hi(d,w,h),f.return=d,d=f;break e}}r(d,w);break}else t(d,w);w=w.sibling}h.type===Or?(f=va(h.props.children,d.mode,x,h.key),f.return=d,d=f):(x=Ks(h.type,h.key,h.props,null,d.mode,x),x.ref=hi(d,f,h),x.return=d,d=x)}return o(d);case cn:e:{for(w=h.key;f!==null;){if(f.key===w)if(f.tag===4&&f.stateNode.containerInfo===h.containerInfo&&f.stateNode.implementation===h.implementation){r(d,f.sibling),f=a(f,h.children||[]),f.return=d,d=f;break e}else{r(d,f);break}else t(d,f);f=f.sibling}f=Uf(h,d.mode,x),f.return=d,d=f}return o(d)}if(typeof h=="string"||typeof h=="number")return h=""+h,f!==null&&f.tag===6?(r(d,f.sibling),f=a(f,h),f.return=d,d=f):(r(d,f),f=Wf(h,d.mode,x),f.return=d,d=f),o(d);if(_s(h))return m(d,f,h,x);if(Wa(h))return y(d,f,h,x);if(P&&Rs(d,h),typeof h=="undefined"&&!w)switch(d.tag){case 1:case 22:case 0:case 11:case 15:throw Error($(152,Vn(d.type)||"Component"))}return r(d,f)}}var As=Nm(!0),Vm=Nm(!1),mi={},Kt=Lr(mi),gi=Lr(mi),yi=Lr(mi);function gn(e){if(e===mi)throw Error($(174));return e}function lf(e,t){switch(Te(yi,t),Te(gi,e),Te(Kt,mi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=pc(t,e)}ye(Kt),Te(Kt,t)}function sa(){ye(Kt),ye(gi),ye(yi)}function Hm(e){gn(yi.current);var t=gn(Kt.current),r=pc(t,e.type);t!==r&&(Te(gi,e),Te(Kt,r))}function cf(e){gi.current===e&&(ye(Kt),ye(gi))}var ke=Lr(0);function Ms(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&64)!=0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var pr=null,Br=null,Gt=!1;function Wm(e,t){var r=_t(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function Um(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function ff(e){if(Gt){var t=Br;if(t){var r=t;if(!Um(e,t)){if(t=Jn(r.nextSibling),!t||!Um(e,t)){e.flags=e.flags&-1025|2,Gt=!1,pr=e;return}Wm(pr,r)}pr=e,Br=Jn(t.firstChild)}else e.flags=e.flags&-1025|2,Gt=!1,pr=e}}function Qm(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;pr=e}function Fs(e){if(e!==pr)return!1;if(!Gt)return Qm(e),Gt=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Kc(t,e.memoizedProps))for(t=Br;t;)Wm(e,t),t=Jn(t.nextSibling);if(Qm(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error($(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Br=Jn(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Br=null}}else Br=pr?Jn(e.stateNode.nextSibling):null;return!0}function df(){Br=pr=null,Gt=!1}var ua=[];function pf(){for(var e=0;ei))throw Error($(301));i+=1,We=Ze=null,t.updateQueue=null,bi.current=LC,e=r(n,a)}while(wi)}if(bi.current=js,t=Ze!==null&&Ze.next!==null,xi=0,We=Ze=Me=null,Ls=!1,t)throw Error($(300));return e}function yn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?Me.memoizedState=We=e:We=We.next=e,We}function bn(){if(Ze===null){var e=Me.alternate;e=e!==null?e.memoizedState:null}else e=Ze.next;var t=We===null?Me.memoizedState:We.next;if(t!==null)We=t,Ze=e;else{if(e===null)throw Error($(310));Ze=e,e={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},We===null?Me.memoizedState=We=e:We=We.next=e}return We}function Yt(e,t){return typeof t=="function"?t(e):t}function Si(e){var t=bn(),r=t.queue;if(r===null)throw Error($(311));r.lastRenderedReducer=e;var n=Ze,a=n.baseQueue,i=r.pending;if(i!==null){if(a!==null){var o=a.next;a.next=i.next,i.next=o}n.baseQueue=a=i,r.pending=null}if(a!==null){a=a.next,n=n.baseState;var s=o=i=null,u=a;do{var l=u.lane;if((xi&l)===l)s!==null&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),n=u.eagerReducer===e?u.eagerState:e(n,u.action);else{var c={lane:l,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};s===null?(o=s=c,i=n):s=s.next=c,Me.lanes|=l,Oi|=l}u=u.next}while(u!==null&&u!==a);s===null?i=n:s.next=o,Pt(n,t.memoizedState)||($t=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=s,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function Ci(e){var t=bn(),r=t.queue;if(r===null)throw Error($(311));r.lastRenderedReducer=e;var n=r.dispatch,a=r.pending,i=t.memoizedState;if(a!==null){r.pending=null;var o=a=a.next;do i=e(i,o.action),o=o.next;while(o!==a);Pt(i,t.memoizedState)||($t=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function qm(e,t,r){var n=t._getVersion;n=n(t._source);var a=t._workInProgressVersionPrimary;if(a!==null?e=a===n:(e=e.mutableReadLanes,(e=(xi&e)===e)&&(t._workInProgressVersionPrimary=n,ua.push(t))),e)return r(t._source);throw ua.push(t),Error($(350))}function Km(e,t,r,n){var a=rt;if(a===null)throw Error($(349));var i=t._getVersion,o=i(t._source),s=bi.current,u=s.useState(function(){return qm(a,t,r)}),l=u[1],c=u[0];u=We;var v=e.memoizedState,p=v.refs,g=p.getSnapshot,m=v.source;v=v.subscribe;var y=Me;return e.memoizedState={refs:p,source:t,subscribe:n},s.useEffect(function(){p.getSnapshot=r,p.setSnapshot=l;var d=i(t._source);if(!Pt(o,d)){d=r(t._source),Pt(c,d)||(l(d),d=Nr(y),a.mutableReadLanes|=d&a.pendingLanes),d=a.mutableReadLanes,a.entangledLanes|=d;for(var f=a.entanglements,h=d;0r?98:r,function(){e(!0)}),mn(97<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Fr]=t,e[ys]=n,h0(e,t,!1,!1),t.stateNode=e,o=hc(r,n),r){case"dialog":ge("cancel",e),ge("close",e),a=n;break;case"iframe":case"object":case"embed":ge("load",e),a=n;break;case"video":case"audio":for(a=0;aDf&&(t.flags|=64,i=!0,Pi(n,!1),t.lanes=33554432)}else{if(!i)if(e=Ms(o),e!==null){if(t.flags|=64,i=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Pi(n,!0),n.tail===null&&n.tailMode==="hidden"&&!o.alternate&&!Gt)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*Xe()-n.renderingStartTime>Df&&r!==1073741824&&(t.flags|=64,i=!0,Pi(n,!1),t.lanes=33554432);n.isBackwards?(o.sibling=t.child,t.child=o):(r=n.last,r!==null?r.sibling=o:t.child=o,n.last=o)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Xe(),r.sibling=null,t=ke.current,Te(ke,i?t&1|2:t&1),r):null;case 23:case 24:return Nf(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error($(156,t.tag))}function $C(e){switch(e.tag){case 1:ut(e.type)&&xs();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(sa(),ye(st),ye(Ye),pf(),t=e.flags,(t&64)!=0)throw Error($(285));return e.flags=t&-4097|64,e;case 5:return cf(e),null;case 13:return ye(ke),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return ye(ke),null;case 4:return sa(),null;case 10:return of(e),null;case 23:case 24:return Nf(),null;default:return null}}function Pf(e,t){try{var r="",n=t;do r+=gS(n),n=n.return;while(n);var a=r}catch(i){a=` +Error generating stack: `+i.message+` +`+i.stack}return{value:e,source:t,stack:a}}function Of(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var jC=typeof WeakMap=="function"?WeakMap:Map;function y0(e,t,r){r=$r(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Vs||(Vs=!0,If=n),Of(e,t)},r}function b0(e,t,r){r=$r(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var a=t.value;r.payload=function(){return Of(e,t),n(a)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(Xt===null?Xt=new Set([this]):Xt.add(this),Of(e,t));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}var BC=typeof WeakSet=="function"?WeakSet:Set;function x0(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Wr(e,r)}else t.current=null}function zC(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var r=e.memoizedProps,n=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?r:It(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&Gc(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error($(163))}function NC(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)==3){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var a=e;n=a.next,a=a.tag,(a&4)!=0&&(a&1)!=0&&(D0(r,e),GC(r,e)),e=n}while(e!==t)}return;case 1:e=r.stateNode,r.flags&4&&(t===null?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:It(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&Im(r,t,e);return;case 3:if(t=r.updateQueue,t!==null){if(e=null,r.child!==null)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}Im(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&gm(r.type,r.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:r.memoizedState===null&&(r=r.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&Mh(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error($(163))}function w0(e,t){for(var r=e;;){if(r.tag===5){var n=r.stateNode;if(t)n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var a=r.memoizedProps.style;a=a!=null&&a.hasOwnProperty("display")?a.display:null,n.style.display=hh("display",a)}}else if(r.tag===6)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((r.tag!==23&&r.tag!==24||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function S0(e,t){if(hn&&typeof hn.onCommitFiberUnmount=="function")try{hn.onCommitFiberUnmount(Zc,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e=e.next;do{var n=r,a=n.destroy;if(n=n.tag,a!==void 0)if((n&4)!=0)D0(t,r);else{n=t;try{a()}catch(i){Wr(n,i)}}r=r.next}while(r!==e)}break;case 1:if(x0(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(i){Wr(t,i)}break;case 5:x0(t);break;case 4:O0(e,t)}}function C0(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function E0(e){return e.tag===5||e.tag===3||e.tag===4}function P0(e){e:{for(var t=e.return;t!==null;){if(E0(t))break e;t=t.return}throw Error($(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:t=t.containerInfo,n=!0;break;case 4:t=t.containerInfo,n=!0;break;default:throw Error($(161))}r.flags&16&&(Qa(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||E0(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.flags&2)){r=r.stateNode;break e}}n?Tf(e,r,t):kf(e,r,t)}function Tf(e,t,r){var n=e.tag,a=n===5||n===6;if(a)e=a?e.stateNode:e.stateNode.instance,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=ms));else if(n!==4&&(e=e.child,e!==null))for(Tf(e,t,r),e=e.sibling;e!==null;)Tf(e,t,r),e=e.sibling}function kf(e,t,r){var n=e.tag,a=n===5||n===6;if(a)e=a?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(kf(e,t,r),e=e.sibling;e!==null;)kf(e,t,r),e=e.sibling}function O0(e,t){for(var r=t,n=!1,a,i;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error($(160));switch(a=n.stateNode,n.tag){case 5:i=!1;break e;case 3:a=a.containerInfo,i=!0;break e;case 4:a=a.containerInfo,i=!0;break e}n=n.return}n=!0}if(r.tag===5||r.tag===6){e:for(var o=e,s=r,u=s;;)if(S0(o,u),u.child!==null&&u.tag!==4)u.child.return=u,u=u.child;else{if(u===s)break e;for(;u.sibling===null;){if(u.return===null||u.return===s)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}i?(o=a,s=r.stateNode,o.nodeType===8?o.parentNode.removeChild(s):o.removeChild(s)):a.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){a=r.stateNode.containerInfo,i=!0,r.child.return=r,r=r.child;continue}}else if(S0(e,r),r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return,r.tag===4&&(n=!1)}r.sibling.return=r.return,r=r.sibling}}function _f(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var n=r=r.next;do(n.tag&3)==3&&(e=n.destroy,n.destroy=void 0,e!==void 0&&e()),n=n.next;while(n!==r)}return;case 1:return;case 5:if(r=t.stateNode,r!=null){n=t.memoizedProps;var a=e!==null?e.memoizedProps:n;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,i!==null){for(r[ys]=n,e==="input"&&n.type==="radio"&&n.name!=null&&uh(r,n),hc(e,a),t=hc(e,n),a=0;aa&&(a=o),r&=~i}if(r=a,r=Xe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*HC(r/1960))-r,10 component higher in the tree to provide a loading indicator or placeholder to display.`)}Ue!==5&&(Ue=2),u=Pf(u,s),p=o;do{switch(p.tag){case 3:i=u,p.flags|=4096,t&=-t,p.lanes|=t;var P=y0(p,i,t);Dm(p,P);break e;case 1:i=u;var C=p.type,T=p.stateNode;if((p.flags&64)==0&&(typeof C.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(Xt===null||!Xt.has(T)))){p.flags|=4096,t&=-t,p.lanes|=t;var R=b0(p,i,t);Dm(p,R);break e}}p=p.return}while(p!==null)}L0(r)}catch(k){t=k,Ie===r&&r!==null&&(Ie=r=r.return);continue}break}while(1)}function M0(){var e=zs.current;return zs.current=js,e===null?js:e}function Ai(e,t){var r=G;G|=16;var n=M0();rt===e&&Je===t||pa(e,t);do try{UC();break}catch(a){A0(e,a)}while(1);if(af(),G=r,zs.current=n,Ie!==null)throw Error($(261));return rt=null,Je=0,Ue}function UC(){for(;Ie!==null;)F0(Ie)}function QC(){for(;Ie!==null&&!TC();)F0(Ie)}function F0(e){var t=$0(e.alternate,e,xn);e.memoizedProps=e.pendingProps,t===null?L0(e):Ie=t,Rf.current=null}function L0(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&2048)==0){if(r=IC(r,t,xn),r!==null){Ie=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||(xn&1073741824)!=0||(r.mode&4)==0){for(var n=0,a=r.child;a!==null;)n|=a.lanes|a.childLanes,a=a.sibling;r.childLanes=n}e!==null&&(e.flags&2048)==0&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1o&&(s=o,o=P,P=s),s=nm(h,P),i=nm(h,o),s&&i&&(w.rangeCount!==1||w.anchorNode!==s.node||w.anchorOffset!==s.offset||w.focusNode!==i.node||w.focusOffset!==i.offset)&&(x=x.createRange(),x.setStart(s.node,s.offset),w.removeAllRanges(),P>o?(w.addRange(x),w.extend(i.node,i.offset)):(x.setEnd(i.node,i.offset),w.addRange(x)))))),x=[],w=h;w=w.parentNode;)w.nodeType===1&&x.push({element:w,left:w.scrollLeft,top:w.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;hXe()-Lf?pa(e,0):Mf|=r),kt(e,t)}function ZC(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,(t&2)==0?t=1:(t&4)==0?t=aa()===99?1:2:(mr===0&&(mr=la),t=Kn(62914560&~mr),t===0&&(t=4194304))),r=gt(),e=Qs(e,t),e!==null&&(us(e,t,r),kt(e,r))}var $0;$0=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||st.current)$t=!0;else if((r&n)!=0)$t=(e.flags&16384)!=0;else{switch($t=!1,t.tag){case 3:u0(t),df();break;case 5:Hm(t);break;case 1:ut(t.type)&&ws(t);break;case 4:lf(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var a=t.type._context;Te(Es,a._currentValue),a._currentValue=n;break;case 13:if(t.memoizedState!==null)return(r&t.child.childLanes)!=0?l0(e,t,r):(Te(ke,ke.current&1),t=vr(e,t,r),t!==null?t.sibling:null);Te(ke,ke.current&1);break;case 19:if(n=(r&t.childLanes)!=0,(e.flags&64)!=0){if(n)return v0(e,t,r);t.flags|=64}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Te(ke,ke.current),n)break;return null;case 23:case 24:return t.lanes=0,xf(e,t,r)}return vr(e,t,r)}else $t=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=na(t,Ye.current),oa(t,r),a=hf(null,t,n,e,a,r),t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ut(n)){var i=!0;ws(t)}else i=!1;t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,sf(t);var o=n.getDerivedStateFromProps;typeof o=="function"&&Ts(t,n,o,e),a.updater=ks,t.stateNode=a,a._reactInternals=t,uf(t,n,e,r),t=Sf(null,t,n,!0,i,r)}else t.tag=0,ct(null,t,a,r),t=t.child;return t;case 16:a=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=a._init,a=i(a._payload),t.type=a,i=t.tag=eE(a),e=It(a,e),i){case 0:t=wf(null,t,a,e,r);break e;case 1:t=s0(null,t,a,e,r);break e;case 11:t=n0(null,t,a,e,r);break e;case 14:t=a0(null,t,a,It(a.type,e),n,r);break e}throw Error($(306,a,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:It(n,a),wf(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:It(n,a),s0(e,t,n,a,r);case 3:if(u0(t),n=t.updateQueue,e===null||n===null)throw Error($(282));if(n=t.pendingProps,a=t.memoizedState,a=a!==null?a.element:null,Lm(e,t),vi(t,n,null,r),n=t.memoizedState.element,n===a)df(),t=vr(e,t,r);else{if(a=t.stateNode,(i=a.hydrate)&&(Br=Jn(t.stateNode.containerInfo.firstChild),pr=t,i=Gt=!0),i){if(e=a.mutableSourceEagerHydrationData,e!=null)for(a=0;a0?ft(ma,--dt):0,ha--,De===10&&(ha=1,tu--),De}function yt(){return De=dt2||$i(De)>3?"":" "}function bE(e,t){for(;--t&&yt()&&!(De<48||De>102||De>57&&De<65||De>70&&De<97););return Ii(e,nu()+(t<6&&Jt()==32&&yt()==32))}function Jf(e){for(;yt();)switch(De){case e:return dt;case 34:case 39:return Jf(e===34||e===39?e:De);case 40:e===41&&Jf(e);break;case 92:yt();break}return dt}function xE(e,t){for(;yt()&&e+De!==47+10;)if(e+De===42+42&&Jt()===47)break;return"/*"+Ii(t,dt-1)+"*"+Js(e===47?e:yt())}function wE(e){for(;!$i(Jt());)yt();return Ii(e,dt)}function SE(e){return q0(au("",null,null,null,[""],e=Q0(e),0,[0],e))}function au(e,t,r,n,a,i,o,s,u){for(var l=0,c=0,v=o,p=0,g=0,m=0,y=1,d=1,f=1,h=0,x="",w=a,P=i,C=n,T=x;d;)switch(m=h,h=yt()){case 34:case 39:case 91:case 40:T+=Zf(h);break;case 9:case 10:case 13:case 32:T+=yE(m);break;case 92:T+=bE(nu()-1,7);continue;case 47:switch(Jt()){case 42:case 47:eu(CE(xE(yt(),nu()),t,r),u);break;default:T+="/"}break;case 123*y:s[l++]=Zt(T)*f;case 125*y:case 59:case 0:switch(h){case 0:case 125:d=0;case 59+c:g>0&&Zt(T)-v&&eu(g>32?G0(T+";",n,r,v-1):G0(le(T," ","")+";",n,r,v-2),u);break;case 59:T+=";";default:if(eu(C=K0(T,t,r,l,c,a,s,x,w=[],P=[],v),i),h===123)if(c===0)au(T,t,C,C,w,i,v,s,P);else switch(p){case 100:case 109:case 115:au(e,C,C,n&&eu(K0(e,C,C,0,0,a,s,x,a,w=[],v),P),a,P,v,s,n?w:P);break;default:au(T,C,C,C,[""],P,v,s,P)}}l=c=g=0,y=f=1,x=T="",v=o;break;case 58:v=1+Zt(T),g=m;default:if(y<1){if(h==123)--y;else if(h==125&&y++==0&&gE()==125)continue}switch(T+=Js(h),h*y){case 38:f=c>0?1:(T+="\f",-1);break;case 44:s[l++]=(Zt(T)-1)*f,f=1;break;case 64:Jt()===45&&(T+=Zf(yt())),p=Jt(),c=Zt(x=T+=wE(nu())),h++;break;case 45:m===45&&Zt(T)==2&&(y=0)}}return i}function K0(e,t,r,n,a,i,o,s,u,l,c){for(var v=a-1,p=a===0?i:[""],g=Xf(p),m=0,y=0,d=0;m0?p[f]+" "+h:le(h,/&\f/g,p[f])))&&(u[d++]=x);return ru(e,t,r,a===0?Gf:s,u,l,c)}function CE(e,t,r){return ru(e,t,r,V0,Js(mE()),Li(e,2,-2),0)}function G0(e,t,r,n){return ru(e,t,r,Yf,Li(e,0,n),Li(e,n+1,-1),n)}function Y0(e,t){switch(pE(e,t)){case 5103:return oe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return oe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return oe+e+Zs+e+et+e+e;case 6828:case 4268:return oe+e+et+e+e;case 6165:return oe+e+et+"flex-"+e+e;case 5187:return oe+e+le(e,/(\w+).+(:[^]+)/,oe+"box-$1$2"+et+"flex-$1$2")+e;case 5443:return oe+e+et+"flex-item-"+le(e,/flex-|-self/,"")+e;case 4675:return oe+e+et+"flex-line-pack"+le(e,/align-content|flex-|-self/,"")+e;case 5548:return oe+e+et+le(e,"shrink","negative")+e;case 5292:return oe+e+et+le(e,"basis","preferred-size")+e;case 6060:return oe+"box-"+le(e,"-grow","")+oe+e+et+le(e,"grow","positive")+e;case 4554:return oe+le(e,/([^-])(transform)/g,"$1"+oe+"$2")+e;case 6187:return le(le(le(e,/(zoom-|grab)/,oe+"$1"),/(image-set)/,oe+"$1"),e,"")+e;case 5495:case 3959:return le(e,/(image-set\([^]*)/,oe+"$1$`$1");case 4968:return le(le(e,/(.+:)(flex-)?(.*)/,oe+"box-pack:$3"+et+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+oe+e+e;case 4095:case 3583:case 4068:case 2532:return le(e,/(.+)-inline(.+)/,oe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Zt(e)-1-t>6)switch(ft(e,t+1)){case 109:if(ft(e,t+4)!==45)break;case 102:return le(e,/(.+:)(.+)-([^]+)/,"$1"+oe+"$2-$3$1"+Zs+(ft(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~W0(e,"stretch")?Y0(le(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ft(e,t+1)!==115)break;case 6444:switch(ft(e,Zt(e)-3-(~W0(e,"!important")&&10))){case 107:return le(e,":",":"+oe)+e;case 101:return le(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+oe+(ft(e,14)===45?"inline-":"")+"box$3$1"+oe+"$2$3$1"+et+"$2box$3")+e}break;case 5936:switch(ft(e,t+11)){case 114:return oe+e+et+le(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return oe+e+et+le(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return oe+e+et+le(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return oe+e+et+e+e}return e}function ji(e,t){for(var r="",n=Xf(e),a=0;a=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var UE={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},QE=/[A-Z]|^ms/g,qE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ig=function(t){return t.charCodeAt(1)===45},og=function(t){return t!=null&&typeof t!="boolean"},nd=Z0(function(e){return ig(e)?e:e.replace(QE,"-$&").toLowerCase()}),sg=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(qE,function(n,a,i){return er={name:a,styles:i,next:er},a})}return UE[t]!==1&&!ig(t)&&typeof r=="number"&&r!==0?r+"px":r};function Bi(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return er={name:r.name,styles:r.styles,next:er},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)er={name:n.name,styles:n.styles,next:er},n=n.next;var a=r.styles+";";return a}return KE(e,t,r)}case"function":{if(e!==void 0){var i=er,o=r(e);return er=i,Bi(e,t,o)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function KE(e,t,r){var n="";if(Array.isArray(r))for(var a=0;aS.exports.createElement(id,{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; + vertical-align: middle; + } + + img, + video { + max-width: 100%; + height: auto; + } + + [data-js-focus-visible] :focus:not([data-focus-visible-added]) { + outline: none; + box-shadow: none; + } + + select::-ms-expand { + display: none; + } + `}),eP=JE;function tP(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function Ni(e){return typeof e=="number"}function od(e){return Array.isArray(e)}function Sn(e){return typeof e=="function"}function Rt(e){var t=typeof e;return e!=null&&(t==="object"||t==="function")&&!od(e)}function rP(e){return Rt(e)&&Object.keys(e).length===0}function hu(e){return Object.prototype.toString.call(e)==="[object String]"}function dg(e){return/^var\(--.+\)$/.test(e)}var nP=!1,sd={exports:{}};(function(e,t){var r=200,n="__lodash_hash_undefined__",a=800,i=16,o=9007199254740991,s="[object Arguments]",u="[object Array]",l="[object AsyncFunction]",c="[object Boolean]",v="[object Date]",p="[object Error]",g="[object Function]",m="[object GeneratorFunction]",y="[object Map]",d="[object Number]",f="[object Null]",h="[object Object]",x="[object Proxy]",w="[object RegExp]",P="[object Set]",C="[object String]",T="[object Undefined]",R="[object WeakMap]",k="[object ArrayBuffer]",A="[object DataView]",j="[object Float32Array]",U="[object Float64Array]",V="[object Int8Array]",K="[object Int16Array]",X="[object Int32Array]",H="[object Uint8Array]",J="[object Uint8ClampedArray]",ee="[object Uint16Array]",ue="[object Uint32Array]",pe=/[\\^$.*+?()[\]{}|]/g,L=/^\[object .+?Constructor\]$/,z=/^(?:0|[1-9]\d*)$/,I={};I[j]=I[U]=I[V]=I[K]=I[X]=I[H]=I[J]=I[ee]=I[ue]=!0,I[s]=I[u]=I[k]=I[c]=I[A]=I[v]=I[p]=I[g]=I[y]=I[d]=I[h]=I[w]=I[P]=I[C]=I[R]=!1;var q=typeof Wo=="object"&&Wo&&Wo.Object===Object&&Wo,Z=typeof self=="object"&&self&&self.Object===Object&&self,Fe=q||Z||Function("return this")(),Ke=t&&!t.nodeType&&t,Le=Ke&&!0&&e&&!e.nodeType&&e,Ge=Le&&Le.exports===Ke,Ut=Ge&&q.process,rn=function(){try{var b=Le&&Le.require&&Le.require("util").types;return b||Ut&&Ut.binding&&Ut.binding("util")}catch{}}(),nn=rn&&rn.isTypedArray;function Er(b,E,_){switch(_.length){case 0:return b.call(E);case 1:return b.call(E,_[0]);case 2:return b.call(E,_[0],_[1]);case 3:return b.call(E,_[0],_[1],_[2])}return b.apply(E,_)}function Q(b,E){for(var _=-1,N=Array(b);++_-1}function fw(b,E){var _=this.__data__,N=zo(_,b);return N<0?(++this.size,_.push([b,E])):_[N][1]=E,this}lr.prototype.clear=sw,lr.prototype.delete=uw,lr.prototype.get=lw,lr.prototype.has=cw,lr.prototype.set=fw;function $n(b){var E=-1,_=b==null?0:b.length;for(this.clear();++E<_;){var N=b[E];this.set(N[0],N[1])}}function dw(){this.size=0,this.__data__={hash:new on,map:new(xv||lr),string:new on}}function pw(b){var E=Vo(this,b).delete(b);return this.size-=E?1:0,E}function vw(b){return Vo(this,b).get(b)}function hw(b){return Vo(this,b).has(b)}function mw(b,E){var _=Vo(this,b),N=_.size;return _.set(b,E),this.size+=_.size==N?0:1,this}$n.prototype.clear=dw,$n.prototype.delete=pw,$n.prototype.get=vw,$n.prototype.has=hw,$n.prototype.set=mw;function jn(b){var E=this.__data__=new lr(b);this.size=E.size}function gw(){this.__data__=new lr,this.size=0}function yw(b){var E=this.__data__,_=E.delete(b);return this.size=E.size,_}function bw(b){return this.__data__.get(b)}function xw(b){return this.__data__.has(b)}function ww(b,E){var _=this.__data__;if(_ instanceof lr){var N=_.__data__;if(!xv||N.length1?_[re-1]:void 0,xe=re>2?_[2]:void 0;for(ve=b.length>3&&typeof ve=="function"?(re--,ve):void 0,xe&&zw(_[0],_[1],xe)&&(ve=re<3?void 0:ve,re=1),E=Object(E);++N-1&&b%1==0&&b0){if(++E>=a)return arguments[0]}else E=0;return b.apply(void 0,arguments)}}function Kw(b){if(b!=null){try{return ur.call(b)}catch{}try{return b+""}catch{}}return""}function Ho(b,E){return b===E||b!==b&&E!==E}var Il=wv(function(){return arguments}())?wv:function(b){return $a(b)&&ot.call(b,"callee")&&!Xx.call(b,"callee")},$l=Array.isArray;function jl(b){return b!=null&&Ov(b.length)&&!Bl(b)}function Gw(b){return $a(b)&&jl(b)}var Pv=Jx||eS;function Bl(b){if(!sn(b))return!1;var E=No(b);return E==g||E==m||E==l||E==x}function Ov(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=o}function sn(b){var E=typeof b;return b!=null&&(E=="object"||E=="function")}function $a(b){return b!=null&&typeof b=="object"}function Yw(b){if(!$a(b)||No(b)!=h)return!1;var E=gv(b);if(E===null)return!0;var _=ot.call(E,"constructor")&&E.constructor;return typeof _=="function"&&_ instanceof _&&ur.call(_)==Gx}var Tv=nn?D(nn):Ow;function Xw(b){return Dw(b,kv(b))}function kv(b){return jl(b)?Sw(b,!0):Tw(b)}var Zw=Iw(function(b,E,_,N){Sv(b,E,_,N)});function Jw(b){return function(){return b}}function _v(b){return b}function eS(){return!1}e.exports=Zw})(sd,sd.exports);var tr=sd.exports;function ud(e,t){var r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function pg(e,t){var r={};return t.forEach(n=>{n in e&&(r[n]=e[n])}),r}function aP(e,t,r,n){var a=typeof t=="string"?t.split("."):[t];for(n=0;n{var t=new WeakMap,r=(n,a,i,o)=>{if(typeof n=="undefined")return e(n,a,i);t.has(n)||t.set(n,new Map);var s=t.get(n);if(s.has(a))return s.get(a);var u=e(n,a,i,o);return s.set(a,u),u};return r},mu=iP(aP);function vg(e,t){var r={};return Object.keys(e).forEach(n=>{var a=e[n],i=t(a,n,e);i&&(r[n]=a)}),r}var ld=e=>vg(e,t=>t!=null),cd=e=>Object.keys(e),oP=e=>e.reduce((t,r)=>{var[n,a]=r;return t[n]=a,t},{}),sP=(e,t,r)=>{var n,a;return(n=(a=e.__cssMap[t+"."+r])==null?void 0:a.varRef)!=null?n:r};function uP(e){var t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function gu(e){if(e==null)return e;var{unitless:t}=uP(e);return t||Ni(e)?e+"px":e}var hg=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,fd=e=>oP(Object.entries(e).sort(hg));function mg(e){var t=fd(e);return Object.assign(Object.values(t),t)}function lP(e){var t=Object.keys(fd(e));return new Set(t)}function cP(e){var t;if(!e)return e;e=(t=gu(e))!=null?t:e;var r=e.endsWith("px")?-1:-.0635;return Ni(e)?""+(e+r):e.replace(/([0-9]+\.?[0-9]*)/,n=>""+(parseFloat(n)+r))}function yu(e,t){var r=[];return e&&r.push("@media screen and (min-width: "+gu(e)+")"),r.length>0&&t&&r.push("and"),t&&r.push("@media screen and (max-width: "+gu(t)+")"),r.join(" ")}function fP(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";var r=mg(e),n=Object.entries(e).sort(hg).map((o,s,u)=>{var l,[c,v]=o,[,p]=(l=u[s+1])!=null?l:[];return p=parseFloat(p)>0?cP(p):void 0,{breakpoint:c,minW:v,maxW:p,maxWQuery:yu(null,p),minWQuery:yu(v),minMaxQuery:yu(v,p)}}),a=lP(e),i=Array.from(a.values());return{keys:a,normalized:r,isResponsive(o){var s=Object.keys(o);return s.length>0&&s.every(u=>a.has(u))},asObject:fd(e),asArray:mg(e),details:n,media:[null,...r.map(o=>yu(o)).slice(1)],toArrayValue(o){if(!Rt(o))throw new Error("toArrayValue: value must be an object");for(var s=i.map(u=>{var l;return(l=o[u])!=null?l:null});tP(s)===null;)s.pop();return s},toObjectValue(o){if(!Array.isArray(o))throw new Error("toObjectValue: value must be an array");return o.reduce((s,u,l)=>{var c=i[l];return c!=null&&u!=null&&(s[c]=u),s},{})}}}function dP(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Qr=dP(),gg=e=>e?"":void 0,gr=function(){for(var t=arguments.length,r=new Array(t),n=0;n1?t-1:0),n=1;n(i==null||i(a),a==null?void 0:a.defaultPrevented))}}function pP(e){var t;return function(){if(e){for(var n=arguments.length,a=new Array(n),i=0;i{},vP=pP(e=>()=>{var{condition:t,message:r}=e;t&&nP&&console.warn(r)}),hP=function(){for(var t=arguments.length,r=new Array(t),n=0;nr.reduce((i,o)=>o(i),a)},yg=1/60*1e3,mP=typeof performance!="undefined"?function(){return performance.now()}:function(){return Date.now()},bg=typeof window!="undefined"?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout(function(){return e(mP())},yg)};function gP(e){var t=[],r=[],n=0,a=!1,i=new WeakSet,o={schedule:function(s,u,l){u===void 0&&(u=!1),l===void 0&&(l=!1);var c=l&&a,v=c?t:r;return u&&i.add(s),v.indexOf(s)===-1&&(v.push(s),c&&a&&(n=t.length)),s},cancel:function(s){var u=r.indexOf(s);u!==-1&&r.splice(u,1),i.delete(s)},process:function(s){var u;if(a=!0,u=[r,t],t=u[0],r=u[1],r.length=0,n=t.length,n)for(var l=0;lr===null?null:t(r)):Rt(e)?cd(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):e!=null?t(e):null}function wP(e,t){function r(n,a){return a===void 0&&(a=[]),od(n)?n.map((i,o)=>r(i,[...a,String(o)])):Rt(n)?Object.fromEntries(Object.entries(n).map(i=>{var[o,s]=i;return[o,r(s,[...a,o])]})):t(n,a)}return r(e)}function SP(e,t){if(e!=null){if(Sn(e)){e(t);return}try{e.current=t}catch{throw new Error("Cannot assign value '"+t+"' to ref '"+e+"'")}}}function vd(){for(var e=arguments.length,t=new Array(e),r=0;r{t.forEach(a=>SP(a,n))}}function wu(e){e===void 0&&(e={});var{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,a=S.exports.createContext(void 0);a.displayName=n;function i(){var o=S.exports.useContext(a);if(!o&&t){var s=new Error(r);throw s.name="ContextError",Error.captureStackTrace==null||Error.captureStackTrace(s,i),s}return o}return[a.Provider,i,a]}function CP(e){return S.exports.Children.toArray(e).filter(t=>S.exports.isValidElement(t))}var[EP,PP]=wu({strict:!1,name:"PortalManagerContext"});function OP(e){var{children:t,zIndex:r}=e;return S.exports.createElement(EP,{value:{zIndex:r}},t)}var Su=Qr?S.exports.useLayoutEffect:S.exports.useEffect;function TP(e,t){t===void 0&&(t=[]);var r=S.exports.useRef(e);return Su(()=>{r.current=e}),S.exports.useCallback(function(){for(var n=arguments.length,a=new Array(n),i=0;i{var{children:t}=e,r=S.exports.useContext(hd),n=r===Sg,a=S.exports.useMemo(()=>({prefix:n?0:++r.prefix,current:0}),[n,r]);return S.exports.createElement(hd.Provider,{value:a},t)});function Cg(e,t){var r=S.exports.useContext(hd);return S.exports.useMemo(()=>e||[t,r.prefix,++r.current].filter(Boolean).join("-"),[e,t])}function Cu(){return Cu=Object.assign||function(e){for(var t=1;t{s||o(!1),t==null||t()},[s,t]),v=S.exports.useCallback(()=>{s||o(!0),r==null||r()},[s,r]),p=S.exports.useCallback(()=>{var g=u?c:v;g()},[u,v,c]);return{isOpen:!!u,onOpen:v,onClose:c,onToggle:p,isControlled:s,getButtonProps:function(m){return m===void 0&&(m={}),Cu({},m,{"aria-expanded":"true","aria-controls":l,onClick:ga(m.onClick,p)})},getDisclosureProps:function(m){return m===void 0&&(m={}),Cu({},m,{hidden:!u,id:l})}}}function Eg(e,t,r,n){var a=TP(t);return S.exports.useEffect(()=>{var i,o=(i=At(r))!=null?i:document;return o.addEventListener(e,a,n),()=>{o.removeEventListener(e,a,n)}},[e,r,n,a]),()=>{var i,o=(i=At(r))!=null?i:document;o.removeEventListener(e,a,n)}}function AP(e,t){return t===void 0&&(t=[]),S.exports.useEffect(()=>()=>e(),t)}function Pg(){var e=S.exports.useRef(!1),[t,r]=S.exports.useState(0);return AP(()=>{e.current=!0}),S.exports.useCallback(()=>{e.current||r(t+1)},[t])}function MP(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error("Cannot assign value '"+t+"' to ref '"+e+"'")}}}function FP(){for(var e=arguments.length,t=new Array(e),r=0;rt.every(n=>n==null)?null:n=>{t.forEach(a=>{a&&MP(a,n)})},t)}function md(){return md=Object.assign||function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}var[Og,DP]=wu({strict:!1,name:"PortalContext"}),gd="chakra-portal",IP=".chakra-portal",$P=e=>S.exports.createElement("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0}},e.children),jP=e=>{var{appendToParentPortal:t,children:r}=e,n=S.exports.useRef(null),a=S.exports.useRef(null),i=Pg(),o=DP(),s=PP();Su(()=>{if(!!n.current){var l=n.current.ownerDocument,c=t&&o!=null?o:l.body;if(!!c){a.current=l.createElement("div"),a.current.className=gd,c.appendChild(a.current),i();var v=a.current;return()=>{c.contains(v)&&c.removeChild(v)}}}},[]);var u=s!=null&&s.zIndex?S.exports.createElement($P,{zIndex:s==null?void 0:s.zIndex},r):r;return a.current?qo.exports.createPortal(S.exports.createElement(Og,{value:a.current},u),a.current):S.exports.createElement("span",{ref:n})},BP=e=>{var{children:t,containerRef:r,appendToParentPortal:n}=e,a=r.current,i=a!=null?a:Qr?document.body:void 0,o=S.exports.useMemo(()=>{var u=a==null?void 0:a.ownerDocument.createElement("div");return u&&(u.className=gd),u},[a]),s=Pg();return Su(()=>{s()},[]),Su(()=>{if(!(!o||!i))return i.appendChild(o),()=>{i.removeChild(o)}},[o,i]),i&&o?qo.exports.createPortal(S.exports.createElement(Og,{value:n?o:null},t),o):null};function Eu(e){var{containerRef:t}=e,r=LP(e,["containerRef"]);return t?S.exports.createElement(BP,md({containerRef:t},r)):S.exports.createElement(jP,r)}Eu.defaultProps={appendToParentPortal:!0};Eu.className=gd;Eu.selector=IP;var Pu={light:"chakra-ui-light",dark:"chakra-ui-dark"},zP={classList:{add:Vi,remove:Vi}},NP=()=>Qr?document.body:zP;function VP(e){var t=NP();t.classList.add(e?Pu.dark:Pu.light),t.classList.remove(e?Pu.light:Pu.dark)}function HP(e){var t=window.matchMedia==null?void 0:window.matchMedia(e);if(!!t)return!!t.media===t.matches}var Tg={light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)"};function WP(e){var t,r=(t=HP(Tg.dark))!=null?t:e==="dark";return r?"dark":"light"}function UP(e){if(!("matchMedia"in window))return Vi;var t=window.matchMedia(Tg.dark),r=()=>{e(t.matches?"dark":"light")};return r(),t.addListener(r),()=>{t.removeListener(r)}}var kg={get:()=>document.documentElement.style.getPropertyValue("--chakra-ui-color-mode"),set:e=>{Qr&&document.documentElement.style.setProperty("--chakra-ui-color-mode",e)}},_g=()=>typeof Storage!="undefined",Rg="chakra-ui-color-mode",QP={get(e){if(!_g())return e;try{var t=localStorage.getItem(Rg);return t!=null?t:e}catch{return e}},set(e){if(!!_g())try{localStorage.setItem(Rg,e)}catch{}},type:"localStorage"},Ag=S.exports.createContext({}),yd=()=>{var e=S.exports.useContext(Ag);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e};function qP(e){var{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:a},colorModeManager:i=QP}=e,[o,s]=S.exports.useState(i.type==="cookie"?i.get(a):a);S.exports.useEffect(()=>{if(Qr&&i.type==="localStorage"){var v=n?WP(a):kg.get()||i.get();v&&s(v)}},[i,n,a]),S.exports.useEffect(()=>{var v=o==="dark";VP(v),kg.set(v?"dark":"light")},[o]);var u=S.exports.useCallback(v=>{i.set(v),s(v)},[i]),l=S.exports.useCallback(()=>{u(o==="light"?"dark":"light")},[o,u]);S.exports.useEffect(()=>{var v;return n&&(v=UP(u)),()=>{v&&n&&v()}},[u,n]);var c=S.exports.useMemo(()=>({colorMode:t!=null?t:o,toggleColorMode:t?Vi:l,setColorMode:t?Vi:u}),[o,u,l,t]);return S.exports.createElement(Ag.Provider,{value:c},r)}function wD(e,t){var{colorMode:r}=yd();return r==="dark"?t:e}var KP=(e,t)=>r=>{var n=String(t),a=e?e+"."+n:n;return Rt(r.__cssMap)&&a in r.__cssMap?r.__cssMap[a].varRef:t};function Qi(e){var{scale:t,transform:r,compose:n}=e,a=(i,o)=>{var s,u=KP(t,i)(o),l=(s=r==null?void 0:r(u,o))!=null?s:u;return n&&(l=n(l,o)),l};return a}function jt(e,t){return r=>{var n={property:r,scale:e};return n.transform=Qi({scale:e,transform:t}),n}}var GP=e=>{var{rtl:t,ltr:r}=e;return n=>n.direction==="rtl"?t:r};function YP(e){var{property:t,scale:r,transform:n}=e;return{scale:r,property:GP(t),transform:r?Qi({scale:r,compose:n}):n}}var Mg=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function XP(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...Mg].join(" ")}function ZP(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...Mg].join(" ")}var JP={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},e2={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function t2(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var r2={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Fg="& > :not(style) ~ :not(style)",n2={[Fg]:{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},a2={[Fg]:{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}};function bd(e,t){bd=function(u,l){return new i(u,void 0,l)};var r=xd(RegExp),n=RegExp.prototype,a=new WeakMap;function i(s,u,l){var c=r.call(this,s,u);return a.set(c,l||a.get(s)),c}i2(i,r),i.prototype.exec=function(s){var u=n.exec.call(this,s);return u&&(u.groups=o(u,this)),u},i.prototype[Symbol.replace]=function(s,u){if(typeof u=="string"){var l=a.get(this);return n[Symbol.replace].call(this,s,u.replace(/\$<([^>]+)>/g,function(v,p){return"$"+l[p]}))}else if(typeof u=="function"){var c=this;return n[Symbol.replace].call(this,s,function(){var v=[];return v.push.apply(v,arguments),typeof v[v.length-1]!="object"&&v.push(o(v,c)),u.apply(this,v)})}else return n[Symbol.replace].call(this,s,u)};function o(s,u){var l=a.get(u);return Object.keys(l).reduce(function(c,v){return c[v]=s[l[v]],c},Object.create(null))}return bd.apply(this,arguments)}function i2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qi(e,t)}function xd(e){var t=typeof Map=="function"?new Map:void 0;return xd=function(n){if(n===null||!s2(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return Ou(n,arguments,wd(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),qi(a,n)},xd(e)}function Ou(e,t,r){return o2()?Ou=Reflect.construct:Ou=function(a,i,o){var s=[null];s.push.apply(s,i);var u=Function.bind.apply(a,s),l=new u;return o&&qi(l,o.prototype),l},Ou.apply(null,arguments)}function o2(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function s2(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function qi(e,t){return qi=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},qi(e,t)}function wd(e){return wd=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},wd(e)}var Sd={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},u2=new Set(Object.values(Sd)),Lg=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),l2=e=>e.trim();function c2(e,t){var r,n;if(e==null||Lg.has(e))return e;var a=bd(/(^[\x2DA-Za-z]+)\(((.*))\)/g,{type:1,values:2}),{type:i,values:o}=(r=(n=a.exec(e))==null?void 0:n.groups)!=null?r:{};if(!i||!o)return e;var s=i.includes("-gradient")?i:i+"-gradient",[u,...l]=o.split(",").map(l2).filter(Boolean);if((l==null?void 0:l.length)===0)return e;var c=u in Sd?Sd[u]:u;l.unshift(c);var v=l.map(p=>{if(u2.has(p))return p;var g=p.indexOf(" "),[m,y]=g!==-1?[p.substr(0,g),p.substr(g+1)]:[p],d=Dg(y)?y:y&&y.split(" "),f="colors."+m,h=f in t.__cssMap?t.__cssMap[f].varRef:m;return d?[h,d].join(" "):h});return s+"("+v.join(", ")+")"}var Dg=e=>hu(e)&&e.includes("(")&&e.includes(")"),f2=(e,t)=>c2(e,t!=null?t:{}),d2=e=>{var t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},nr=e=>t=>e+"("+t+")",fe={filter(e){return e!=="auto"?e:JP},backdropFilter(e){return e!=="auto"?e:e2},ring(e){return t2(fe.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?XP():e==="auto-gpu"?ZP():e},px(e){if(e==null)return e;var{unitless:t}=d2(e);return t||Ni(e)?e+"px":e},fraction(e){return!Ni(e)||e>1?e:e*100+"%"},float(e,t){var r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(dg(e)||e==null)return e;var t=hu(e)&&!e.endsWith("deg");return Ni(e)||t?e+"deg":e},gradient:f2,blur:nr("blur"),opacity:nr("opacity"),brightness:nr("brightness"),contrast:nr("contrast"),dropShadow:nr("drop-shadow"),grayscale:nr("grayscale"),hueRotate:nr("hue-rotate"),invert:nr("invert"),saturate:nr("saturate"),sepia:nr("sepia"),bgImage(e){if(e==null)return e;var t=Dg(e)||Lg.has(e);return t?e:"url("+e+")"},outline(e){var t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t,{space:r,divide:n}=(t=r2[e])!=null?t:{},a={flexDirection:e};return r&&(a[r]=1),n&&(a[n]=1),a}};function Cd(){return Cd=Object.assign||function(e){for(var t=1;te!==null?{"--chakra-space-x":e}:null})},experimental_spaceY:{static:a2,transform:Qi({scale:"space",transform:e=>e!=null?{"--chakra-space-y":e}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:O.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0};Object.assign(ku,{flexDir:ku.flexDirection});var Ig={gridGap:O.space("gridGap"),gridColumnGap:O.space("gridColumnGap"),gridRowGap:O.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},h2={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:fe.outline},outlineOffset:!0,outlineColor:O.colors("outlineColor")},Mt={width:O.sizesT("width"),inlineSize:O.sizesT("inlineSize"),height:O.sizes("height"),blockSize:O.sizes("blockSize"),boxSize:O.sizes(["width","height"]),minWidth:O.sizes("minWidth"),minInlineSize:O.sizes("minInlineSize"),minHeight:O.sizes("minHeight"),minBlockSize:O.sizes("minBlockSize"),maxWidth:O.sizes("maxWidth"),maxInlineSize:O.sizes("maxInlineSize"),maxHeight:O.sizes("maxHeight"),maxBlockSize:O.sizes("maxBlockSize"),d:O.prop("display"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:O.propT("float",fe.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Mt,{w:Mt.width,h:Mt.height,minW:Mt.minWidth,maxW:Mt.maxWidth,minH:Mt.minHeight,maxH:Mt.maxHeight,overscroll:Mt.overscrollBehavior,overscrollX:Mt.overscrollBehaviorX,overscrollY:Mt.overscrollBehaviorY});var m2={listStyleType:!0,listStylePosition:!0,listStylePos:O.prop("listStylePosition"),listStyleImage:!0,listStyleImg:O.prop("listStyleImage")},g2={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},y2={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Pd=(e,t,r)=>{var n={},a=mu(e,t,{});for(var i in a){var o=i in r&&r[i]!=null;o||(n[i]=a[i])}return n},b2={srOnly:{transform(e){return e===!0?g2:e==="focusable"?y2:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>Pd(t,"layerStyles."+e,r)},textStyle:{processResult:!0,transform:(e,t,r)=>Pd(t,"textStyles."+e,r)},apply:{processResult:!0,transform:(e,t,r)=>Pd(t,e,r)}},Ki={position:!0,pos:O.prop("position"),zIndex:O.prop("zIndex","zIndices"),inset:O.spaceT(["top","right","bottom","left"]),insetX:O.spaceT(["left","right"]),insetInline:O.spaceT("insetInline"),insetY:O.spaceT(["top","bottom"]),insetBlock:O.spaceT("insetBlock"),top:O.spaceT("top"),insetBlockStart:O.spaceT("insetBlockStart"),bottom:O.spaceT("bottom"),insetBlockEnd:O.spaceT("insetBlockEnd"),left:O.spaceT("left"),insetInlineStart:O.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:O.spaceT("right"),insetInlineEnd:O.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Ki,{insetStart:Ki.insetInlineStart,insetEnd:Ki.insetInlineEnd});var x2={ring:{transform:fe.ring},ringColor:O.colors("--chakra-ring-color"),ringOffset:O.prop("--chakra-ring-offset-width"),ringOffsetColor:O.colors("--chakra-ring-offset-color"),ringInset:O.prop("--chakra-ring-inset")},be={margin:O.spaceT("margin"),marginTop:O.spaceT("marginTop"),marginBlockStart:O.spaceT("marginBlockStart"),marginRight:O.spaceT("marginRight"),marginInlineEnd:O.spaceT("marginInlineEnd"),marginBottom:O.spaceT("marginBottom"),marginBlockEnd:O.spaceT("marginBlockEnd"),marginLeft:O.spaceT("marginLeft"),marginInlineStart:O.spaceT("marginInlineStart"),marginX:O.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:O.spaceT("marginInline"),marginY:O.spaceT(["marginTop","marginBottom"]),marginBlock:O.spaceT("marginBlock"),padding:O.space("padding"),paddingTop:O.space("paddingTop"),paddingBlockStart:O.space("paddingBlockStart"),paddingRight:O.space("paddingRight"),paddingBottom:O.space("paddingBottom"),paddingBlockEnd:O.space("paddingBlockEnd"),paddingLeft:O.space("paddingLeft"),paddingInlineStart:O.space("paddingInlineStart"),paddingInlineEnd:O.space("paddingInlineEnd"),paddingX:O.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:O.space("paddingInline"),paddingY:O.space(["paddingTop","paddingBottom"]),paddingBlock:O.space("paddingBlock")};Object.assign(be,{m:be.margin,mt:be.marginTop,mr:be.marginRight,me:be.marginInlineEnd,marginEnd:be.marginInlineEnd,mb:be.marginBottom,ml:be.marginLeft,ms:be.marginInlineStart,marginStart:be.marginInlineStart,mx:be.marginX,my:be.marginY,p:be.padding,pt:be.paddingTop,py:be.paddingY,px:be.paddingX,pb:be.paddingBottom,pl:be.paddingLeft,ps:be.paddingInlineStart,paddingStart:be.paddingInlineStart,pr:be.paddingRight,pe:be.paddingInlineEnd,paddingEnd:be.paddingInlineEnd});var w2={textDecorationColor:O.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:O.shadows("textShadow")},S2={clipPath:!0,transform:O.propT("transform",fe.transform),transformOrigin:!0,translateX:O.spaceT("--chakra-translate-x"),translateY:O.spaceT("--chakra-translate-y"),skewX:O.degreeT("--chakra-skew-x"),skewY:O.degreeT("--chakra-skew-y"),scaleX:O.prop("--chakra-scale-x"),scaleY:O.prop("--chakra-scale-y"),scale:O.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:O.degreeT("--chakra-rotate")},C2={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:O.prop("transitionDuration","transition.duration"),transitionProperty:O.prop("transitionProperty","transition.property"),transitionTimingFunction:O.prop("transitionTimingFunction","transition.easing")},E2={fontFamily:O.prop("fontFamily","fonts"),fontSize:O.prop("fontSize","fontSizes",fe.px),fontWeight:O.prop("fontWeight","fontWeights"),lineHeight:O.prop("lineHeight","lineHeights"),letterSpacing:O.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"},isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}}},xa={hover:e=>e+":hover &, "+e+"[data-hover] &",focus:e=>e+":focus &, "+e+"[data-focus] &",active:e=>e+":active &, "+e+"[data-active] &",disabled:e=>e+":disabled &, "+e+"[data-disabled] &",invalid:e=>e+":invalid &, "+e+"[data-invalid] &",checked:e=>e+":checked &, "+e+"[data-checked] &",indeterminate:e=>e+":indeterminate &, "+e+"[aria-checked=mixed] &, "+e+"[data-indeterminate] &",readOnly:e=>e+":read-only &, "+e+"[readonly] &, "+e+"[data-read-only] &",expanded:e=>e+":read-only &, "+e+"[aria-expanded=true] &, "+e+"[data-expanded] &"},wa=e=>P2(e,"[role=group]","[data-group]",".group"),P2=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;ae in k2,R2=e=>t=>{if(!t.__breakpoints)return e;var{isResponsive:r,toArrayValue:n,media:a}=t.__breakpoints,i={};for(var o in e){var s=At(e[o],t);if(s!=null){if(s=Rt(s)&&r(s)?n(s):s,!Array.isArray(s)){i[o]=s;continue}for(var u=s.slice(0,a.length).length,l=0;le.startsWith("--")&&hu(t)&&!dg(t),M2=(e,t)=>{var r,n;if(t==null)return t;var a=l=>{var c,v;return(c=e.__cssMap)==null||(v=c[l])==null?void 0:v.varRef},i=l=>{var c;return(c=a(l))!=null?c:l},o=t.split(",").map(l=>l.trim()),[s,u]=o;return t=(r=(n=a(s))!=null?n:i(u))!=null?r:i(t),t};function F2(e){var{configs:t={},pseudos:r={},theme:n}=e,a=function i(o,s){s===void 0&&(s=!1);var u=At(o,n),l=R2(u)(n),c={};for(var v in l){var p,g,m,y,d,f=l[v],h=At(f,n);v in r&&(v=r[v]),A2(v,h)&&(h=M2(n,h));var x=t[v];if(x===!0&&(x={property:v}),Rt(h)){var w;c[v]=(w=c[v])!=null?w:{},c[v]=tr({},c[v],i(h,!0));continue}var P=(p=(g=x)==null||g.transform==null?void 0:g.transform(h,n,u))!=null?p:h;P=(m=x)!=null&&m.processResult?i(P,!0):P;var C=At((y=x)==null?void 0:y.property,n);if(!s&&(d=x)!=null&&d.static){var T=At(x.static,n);c=tr({},c,T)}if(C&&Array.isArray(C)){for(var R of C)c[R]=P;continue}if(C){C==="&"&&Rt(P)?c=tr({},c,P):c[C]=P;continue}if(Rt(P)){c=tr({},c,P);continue}c[v]=P}return c};return a}var $g=e=>t=>{var r=F2({theme:t,pseudos:Od,configs:kd});return r(e)};function jg(e){return Rt(e)&&e.reference?e.reference:String(e)}var _u=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a{var t=jg(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):"-"+t:_d(t,-1)},Cn=Object.assign(e=>({add:function(){for(var r=arguments.length,n=new Array(r),a=0;aCn(Vg(e)),toString:()=>e.toString()}),{add:Bg,subtract:zg,multiply:_d,divide:Ng,negate:Vg});function L2(e,t){return t===void 0&&(t="-"),e.replace(/\s+/g,t)}function Hg(e){var t=L2(e.toString());if(t.includes("\\."))return e;var r=!Number.isInteger(parseFloat(e.toString()));return r?t.replace(".","\\."):e}function D2(e,t){return t===void 0&&(t=""),[t,Hg(e)].filter(Boolean).join("-")}function I2(e,t){return"var("+Hg(e)+(t?", "+t:"")+")"}function $2(e,t){return t===void 0&&(t=""),"--"+D2(e,t)}function Wg(e,t,r){var n=$2(e,r);return{variable:n,reference:I2(n,t)}}function Rd(){return Rd=Object.assign||function(e){for(var t=1;t{var i,[o]=a,s=(i=Ad[o])!=null?i:Ad.defaultHandler,{cssVars:u,cssMap:l}=s(a,n,t);Object.assign(r.cssVars,u),Object.assign(r.cssMap,l)}),r}var Ad={space:(e,t,r)=>{var n=Ad.defaultHandler(e,t,r),[a,...i]=e,o=a+".-"+i.join("."),s=e.join("-"),{variable:u,reference:l}=Wg(s,void 0,r.cssVarPrefix),c=Cn.negate(t),v=Cn.negate(l);return{cssVars:n.cssVars,cssMap:Rd({},n.cssMap,{[o]:{value:""+c,var:""+u,varRef:v}})}},defaultHandler:(e,t,r)=>{var n=e.join("."),a=e.join("-"),{variable:i,reference:o}=Wg(a,void 0,r.cssVarPrefix);return{cssVars:{[i]:t},cssMap:{[n]:{value:t,var:i,varRef:o}}}}};function B2(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}var z2=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function N2(e){var t=z2;return pg(e,t)}function V2(e){var t=B2(e,["__cssMap","__cssVars","__breakpoints"]);return t}function Md(){return Md=Object.assign||function(e){for(var t=1;t{var{cssVarsRoot:t=":host, :root",theme:r,children:n}=e,a=S.exports.useMemo(()=>H2(r),[r]);return S.exports.createElement(XE,{theme:a},S.exports.createElement(id,{styles:i=>({[t]:i.__cssVars})}),n)};function Ug(){var e=S.exports.useContext(zi);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var[Y2,Gi]=wu({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "}),X2=()=>{var{colorMode:e}=yd();return S.exports.createElement(id,{styles:t=>{var r=mu(t,"styles.global"),n=At(r,{theme:t,colorMode:e});if(!!n){var a=$g(n)(t);return a}}})},Z2=["a","b","article","aside","blockquote","button","caption","cite","circle","code","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","img","input","kbd","label","li","main","mark","nav","ol","p","path","pre","q","rect","s","svg","section","select","strong","small","span","sub","sup","table","tbody","td","textarea","tfoot","th","thead","tr","ul"];function En(e){return ud(e,["styleConfig","size","variant","colorScheme"])}function Fd(){return Fd=Object.assign||function(e){for(var t=1;t96?rO:nO},qg=function(t,r,n){var a;if(r){var i=r.shouldForwardProp;a=t.__emotion_forwardProp&&i?function(o){return t.__emotion_forwardProp(o)&&i(o)}:i}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},aO=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,i,o;r!==void 0&&(i=r.label,o=r.target);var s=qg(t,r,n),u=s||Qg(a),l=!u("as");return function(){var c=arguments,v=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&v.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)v.push.apply(v,c);else{v.push(c[0][0]);for(var p=c.length,g=1;gsO.has(e)||!oO.has(e);function Kg(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}var lO=e=>{var{baseStyle:t}=e;return r=>{var{css:n,__css:a,sx:i}=r,o=Kg(r,["theme","css","__css","sx"]),s=vg(o,(v,p)=>_2(p)),u=At(t,r),l=Object.assign({},a,u,ld(s),i),c=$g(l)(r.theme);return n?[c,n]:c}};function cO(e,t){var r=t!=null?t:{},{baseStyle:n}=r,a=Kg(r,["baseStyle"]);a.shouldForwardProp||(a.shouldForwardProp=uO);var i=lO({baseStyle:n});return Ld(e,a)(i)}var de=cO;Z2.forEach(e=>{de[e]=de(e)});function nt(e){return S.exports.forwardRef(e)}function fO(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function Pn(e,t,r){var n;t===void 0&&(t={}),r===void 0&&(r={});var{styleConfig:a}=t,i=fO(t,["styleConfig"]),{theme:o,colorMode:s}=J2(),u=mu(o,"components."+e),l=a||u,c=tr({theme:o,colorMode:s},(n=l==null?void 0:l.defaultProps)!=null?n:{},ld(ud(i,["children"]))),v=S.exports.useRef({});if(l){var p,g,m,y,d,f,h=At((p=l.baseStyle)!=null?p:{},c),x=At((g=(m=l.variants)==null?void 0:m[c.variant])!=null?g:{},c),w=At((y=(d=l.sizes)==null?void 0:d[c.size])!=null?y:{},c),P=tr({},h,w,x);(f=r)!=null&&f.isMultiPart&&l.parts&&l.parts.forEach(T=>{var R;P[T]=(R=P[T])!=null?R:{}});var C=K2(v.current,P);C||(v.current=P)}return v.current}function dO(e,t){return Pn(e,t,{isMultiPart:!0})}var pO={body:{classList:{add(){},remove(){}}},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}}},Gg=pO,Sa=()=>{},vO={document:Gg,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:Sa,removeEventListener:Sa,getComputedStyle(){return{getPropertyValue(){return""}}},matchMedia(){return{matches:!1,addListener:Sa,removeListener:Sa}},requestAnimationFrame(e){return typeof setTimeout=="undefined"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout!="undefined"&&clearTimeout(e)},setTimeout:()=>0,clearTimeout:Sa,setInterval:()=>0,clearInterval:Sa},hO=vO,Au={exports:{}},Yi={};/** @license React v17.0.2 + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var mO=S.exports,Yg=60103;Yi.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var Xg=Symbol.for;Yg=Xg("react.element"),Yi.Fragment=Xg("react.fragment")}var gO=mO.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,yO=Object.prototype.hasOwnProperty,bO={key:!0,ref:!0,__self:!0,__source:!0};function Zg(e,t,r){var n,a={},i=null,o=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)yO.call(t,n)&&!bO.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)a[n]===void 0&&(a[n]=t[n]);return{$$typeof:Yg,type:e,key:i,ref:o,props:a,_owner:gO.current}}Yi.jsx=Zg;Yi.jsxs=Zg;Au.exports=Yi;const Jg=Au.exports.jsx,xO=Au.exports.jsxs,SD=Au.exports.Fragment;var wO={window:hO,document:Gg},ey=Qr?{window,document}:wO,ty=S.exports.createContext(ey);function SO(){return S.exports.useContext(ty)}function CO(e){var{children:t,environment:r}=e,[n,a]=S.exports.useState(null),i=S.exports.useMemo(()=>{var s,u=n==null?void 0:n.ownerDocument,l=n==null?void 0:n.ownerDocument.defaultView,c=u?{document:u,window:l}:void 0,v=(s=r!=null?r:c)!=null?s:ey;return v},[n,r]),o=!n&&!r;return xO(ty.Provider,{value:i,children:[t,o&&Jg("span",{ref:s=>{s&&a(s)}})]})}var EO=e=>{var{children:t,colorModeManager:r,portalZIndex:n,resetCSS:a=!0,theme:i={},environment:o,cssVarsRoot:s}=e,u=S.exports.createElement(CO,{environment:o},t);return S.exports.createElement(_P,null,S.exports.createElement(G2,{theme:i,cssVarsRoot:s},S.exports.createElement(qP,{colorModeManager:r,options:i.config},a&&S.exports.createElement(eP,null),S.exports.createElement(X2,null),n?S.exports.createElement(OP,{zIndex:n},u):u)))};function Qe(e,t){PO(e)&&(e="100%");var r=OO(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Mu(e){return Math.min(1,Math.max(0,e))}function PO(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function OO(e){return typeof e=="string"&&e.indexOf("%")!==-1}function ry(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Fu(e){return e<=1?Number(e)*100+"%":e}function On(e){return e.length===1?"0"+e:String(e)}function TO(e,t,r){return{r:Qe(e,255)*255,g:Qe(t,255)*255,b:Qe(r,255)*255}}function ny(e,t,r){e=Qe(e,255),t=Qe(t,255),r=Qe(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,o=0,s=(n+a)/2;if(n===a)o=0,i=0;else{var u=n-a;switch(o=s>.5?u/(2-n-a):u/(n+a),n){case e:i=(t-r)/u+(t1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function kO(e,t,r){var n,a,i;if(e=Qe(e,360),t=Qe(t,100),r=Qe(r,100),t===0)a=r,i=r,n=r;else{var o=r<.5?r*(1+t):r+t-r*t,s=2*r-o;n=Dd(s,o,e+1/3),a=Dd(s,o,e),i=Dd(s,o,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function ay(e,t,r){e=Qe(e,255),t=Qe(t,255),r=Qe(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,o=n,s=n-a,u=n===0?0:s/n;if(n===a)i=0;else{switch(n){case e:i=(t-r)/s+(t>16,g:(e&65280)>>8,b:e&255}}var Id={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function FO(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,i=null,o=!1,s=!1;return typeof e=="string"&&(e=IO(e)),typeof e=="object"&&(yr(e.r)&&yr(e.g)&&yr(e.b)?(t=TO(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):yr(e.h)&&yr(e.s)&&yr(e.v)?(n=Fu(e.s),a=Fu(e.v),t=_O(e.h,n,a),o=!0,s="hsv"):yr(e.h)&&yr(e.s)&&yr(e.l)&&(n=Fu(e.s),i=Fu(e.l),t=kO(e.h,n,i),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=ry(r),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var LO="[-\\+]?\\d+%?",DO="[-\\+]?\\d*\\.\\d+%?",qr="(?:"+DO+")|(?:"+LO+")",$d="[\\s|\\(]+("+qr+")[,|\\s]+("+qr+")[,|\\s]+("+qr+")\\s*\\)?",jd="[\\s|\\(]+("+qr+")[,|\\s]+("+qr+")[,|\\s]+("+qr+")[,|\\s]+("+qr+")\\s*\\)?",Bt={CSS_UNIT:new RegExp(qr),rgb:new RegExp("rgb"+$d),rgba:new RegExp("rgba"+jd),hsl:new RegExp("hsl"+$d),hsla:new RegExp("hsla"+jd),hsv:new RegExp("hsv"+$d),hsva:new RegExp("hsva"+jd),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function IO(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Id[e])e=Id[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=Bt.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=Bt.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Bt.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=Bt.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Bt.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=Bt.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Bt.hex8.exec(e),r?{r:xt(r[1]),g:xt(r[2]),b:xt(r[3]),a:oy(r[4]),format:t?"name":"hex8"}:(r=Bt.hex6.exec(e),r?{r:xt(r[1]),g:xt(r[2]),b:xt(r[3]),format:t?"name":"hex"}:(r=Bt.hex4.exec(e),r?{r:xt(r[1]+r[1]),g:xt(r[2]+r[2]),b:xt(r[3]+r[3]),a:oy(r[4]+r[4]),format:t?"name":"hex8"}:(r=Bt.hex3.exec(e),r?{r:xt(r[1]+r[1]),g:xt(r[2]+r[2]),b:xt(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function yr(e){return Boolean(Bt.CSS_UNIT.exec(String(e)))}var Xi=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=MO(t)),this.originalInput=t;var a=FO(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:a.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,a,i=t.r/255,o=t.g/255,s=t.b/255;return i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=ry(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var t=ay(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=ay(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv("+r+", "+n+"%, "+a+"%)":"hsva("+r+", "+n+"%, "+a+"%, "+this.roundA+")"},e.prototype.toHsl=function(){var t=ny(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=ny(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl("+r+", "+n+"%, "+a+"%)":"hsla("+r+", "+n+"%, "+a+"%, "+this.roundA+")"},e.prototype.toHex=function(t){return t===void 0&&(t=!1),iy(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),RO(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb("+t+", "+r+", "+n+")":"rgba("+t+", "+r+", "+n+", "+this.roundA+")"},e.prototype.toPercentageRgb=function(){var t=function(r){return Math.round(Qe(r,255)*100)+"%"};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(Qe(r,255)*100)};return this.a===1?"rgb("+t(this.r)+"%, "+t(this.g)+"%, "+t(this.b)+"%)":"rgba("+t(this.r)+"%, "+t(this.g)+"%, "+t(this.b)+"%, "+this.roundA+")"},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+iy(this.r,this.g,this.b,!1),r=0,n=Object.entries(Id);r=0,i=!r&&a&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=Mu(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=Mu(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=Mu(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=Mu(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),a=new e(t).toRgb(),i=r/100,o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return new e(o)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),a=360/r,i=[this];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(new e(n));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/t;t--;)o.push(new e({h:n,s:a,v:i})),i=(i+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb();return new e({r:n.r+(r.r-n.r)*r.a,g:n.g+(r.g-n.g)*r.a,b:n.b+(r.b-n.b)*r.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,a=[this],i=360/t,o=1;or.length;)e.count=null,e.seed&&(e.seed+=1),r.push(sy(e));return e.count=t,r}var n=$O(e.hue,e.seed),a=jO(n,e),i=BO(n,a,e),o={h:n,s:a,v:i};return e.alpha!==void 0&&(o.a=e.alpha),new Xi(o)}function $O(e,t){var r=NO(e),n=Lu(r,t);return n<0&&(n=360+n),n}function jO(e,t){if(t.hue==="monochrome")return 0;if(t.luminosity==="random")return Lu([0,100],t.seed);var r=uy(e).saturationRange,n=r[0],a=r[1];switch(t.luminosity){case"bright":n=55;break;case"dark":n=a-10;break;case"light":a=55;break}return Lu([n,a],t.seed)}function BO(e,t,r){var n=zO(e,t),a=100;switch(r.luminosity){case"dark":a=n+20;break;case"light":n=(a+n)/2;break;case"random":n=0,a=100;break}return Lu([n,a],r.seed)}function zO(e,t){for(var r=uy(e).lowerBounds,n=0;n=a&&t<=o){var u=(s-i)/(o-a),l=i-u*a;return u*t+l}}return 0}function NO(e){var t=parseInt(e,10);if(!Number.isNaN(t)&&t<360&&t>0)return[t,t];if(typeof e=="string"){var r=cy.find(function(o){return o.name===e});if(r){var n=ly(r);if(n.hueRange)return n.hueRange}var a=new Xi(e);if(a.isValid){var i=a.toHsv().h;return[i,i]}}return[0,360]}function uy(e){e>=334&&e<=360&&(e-=360);for(var t=0,r=cy;t=a.hueRange[0]&&e<=a.hueRange[1])return a}throw Error("Color not found")}function Lu(e,t){if(t===void 0)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var r=e[1]||1,n=e[0]||0;t=(t*9301+49297)%233280;var a=t/233280;return Math.floor(n+a*(r-n))}function ly(e){var t=e.lowerBounds[0][0],r=e.lowerBounds[e.lowerBounds.length-1][0],n=e.lowerBounds[e.lowerBounds.length-1][1],a=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[t,r],brightnessRange:[n,a]}}var cy=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}],$e=(e,t,r)=>{var n=mu(e,"colors."+t,t),{isValid:a}=new Xi(n);return a?n:r},VO=e=>t=>{var r=$e(t,e),n=new Xi(r).isDark();return n?"dark":"light"},HO=e=>t=>VO(e)(t)==="dark",Ca=(e,t)=>r=>{var n=$e(r,e);return new Xi(n).setAlpha(t).toRgbString()};function fy(e,t){return e===void 0&&(e="1rem"),t===void 0&&(t="rgba(255, 255, 255, 0.15)"),{backgroundImage:`linear-gradient( + 45deg, + `+t+` 25%, + transparent 25%, + transparent 50%, + `+t+` 50%, + `+t+` 75%, + transparent 75%, + transparent + )`,backgroundSize:e+" "+e}}function WO(e){var t=sy().toHexString();return!e||rP(e)?t:e.string&&e.colors?QO(e.string,e.colors):e.string&&!e.colors?UO(e.string):e.colors&&!e.string?qO(e.colors):t}function UO(e){var t=0;if(e.length===0)return t.toString();for(var r=0;r>a*8&255;n+=("00"+i.toString(16)).substr(-2)}return n}function QO(e,t){var r=0;if(e.length===0)return t[0];for(var n=0;nr.colorMode==="dark"?t:e}function Zi(e){var{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function Bd(){return Bd=Object.assign||function(e){for(var t=1;t(vP({condition:!0,message:["[chakra-ui]: createBreakpoints(...) will be deprecated pretty soon","simply pass the breakpoints as an object. Remove the createBreakpoint(..) call"].join("")}),Bd({base:"0em"},e));function Tn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class GO{constructor(t){var r=this;this.name=t,Tn(this,"map",{}),Tn(this,"called",!1),Tn(this,"assert",()=>{if(!this.called){this.called=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}),Tn(this,"parts",function(){r.assert();for(var n=arguments.length,a=new Array(n),i=0;i{var a=["container","root"].includes(n!=null?n:"")?[this.name]:[this.name,n],i=a.filter(Boolean).join("__"),o="chakra-"+i,s={className:o,selector:"."+o,toString:()=>n};return s}),Tn(this,"__type",{})}get selectors(){var t=Object.fromEntries(Object.entries(this.map).map(r=>{var[n,a]=r;return[n,a.selector]}));return t}get classNames(){var t=Object.fromEntries(Object.entries(this.map).map(r=>{var[n,a]=r;return[n,a.className]}));return t}get keys(){return Object.keys(this.map)}}function he(e){return new GO(e)}function dy(e){return Rt(e)&&e.reference?e.reference:String(e)}var Du=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a{var t=dy(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):"-"+t:zd(t,-1)},br=Object.assign(e=>({add:function(){for(var r=arguments.length,n=new Array(r),a=0;abr(my(e)),toString:()=>e.toString()}),{add:py,subtract:vy,multiply:zd,divide:hy,negate:my});function YO(e){return!Number.isInteger(parseFloat(e.toString()))}function XO(e,t){return t===void 0&&(t="-"),e.replace(/\s+/g,t)}function gy(e){var t=XO(e.toString());return t.includes("\\.")?e:YO(e)?t.replace(".","\\."):e}function ZO(e,t){return t===void 0&&(t=""),[t,gy(e)].filter(Boolean).join("-")}function JO(e,t){return"var("+gy(e)+(t?", "+t:"")+")"}function eT(e,t){return t===void 0&&(t=""),"--"+ZO(e,t)}function wt(e,t){var r=eT(e,t==null?void 0:t.prefix);return{variable:r,reference:JO(r,tT(t==null?void 0:t.fallback))}}function tT(e){return typeof e=="string"?e:e==null?void 0:e.reference}var rT=he("accordion").parts("container","item","button","panel").extend("icon"),nT=he("alert").parts("title","description","container").extend("icon"),aT=he("avatar").parts("label","badge","container").extend("excessLabel","group"),iT=he("breadcrumb").parts("link","item","container").extend("separator");he("button").parts();var oT=he("checkbox").parts("control","icon","container").extend("label");he("progress").parts("track","filledTrack").extend("label");var sT=he("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),uT=he("editable").parts("preview","input"),lT=he("form").parts("container","requiredIndicator","helperText"),cT=he("formError").parts("text","icon"),fT=he("input").parts("addon","field","element"),dT=he("list").parts("container","item","icon"),pT=he("menu").parts("button","list","item").extend("groupTitle","command","divider"),vT=he("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),hT=he("numberinput").parts("root","field","stepperGroup","stepper");he("pininput").parts("field");var mT=he("popover").parts("content","header","body","footer").extend("popper","arrow"),gT=he("progress").parts("label","filledTrack","track"),yT=he("radio").parts("container","control","label"),bT=he("select").parts("field","icon"),xT=he("slider").parts("container","track","thumb","filledTrack"),wT=he("stat").parts("container","label","helpText","number","icon"),ST=he("switch").parts("container","track","thumb"),CT=he("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),ET=he("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),PT=he("tag").parts("container","label","closeButton"),OT={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},TT={transitionProperty:"common",transitionDuration:"normal",fontSize:"1rem",_focus:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:4,py:2},kT={pt:2,px:4,pb:5},_T={fontSize:"1.25em"},RT={container:OT,button:TT,panel:kT,icon:_T},AT={parts:rT.keys,baseStyle:RT},MT={container:{px:4,py:3},title:{fontWeight:"bold",lineHeight:6,marginEnd:2},description:{lineHeight:6},icon:{flexShrink:0,marginEnd:3,w:5,h:6}};function Nd(e){var{theme:t,colorScheme:r}=e,n=$e(t,r+".100",r),a=Ca(r+".200",.16)(t);return M(n,a)(e)}var FT=e=>{var{colorScheme:t}=e;return{container:{bg:Nd(e)},icon:{color:M(t+".500",t+".200")(e)}}},LT=e=>{var{colorScheme:t}=e;return{container:{paddingStart:3,borderStartWidth:"4px",borderStartColor:M(t+".500",t+".200")(e),bg:Nd(e)},icon:{color:M(t+".500",t+".200")(e)}}},DT=e=>{var{colorScheme:t}=e;return{container:{pt:2,borderTopWidth:"4px",borderTopColor:M(t+".500",t+".200")(e),bg:Nd(e)},icon:{color:M(t+".500",t+".200")(e)}}},IT=e=>{var{colorScheme:t}=e;return{container:{bg:M(t+".500",t+".200")(e),color:M("white","gray.900")(e)}}},$T={subtle:FT,"left-accent":LT,"top-accent":DT,solid:IT},jT={variant:"subtle",colorScheme:"blue"},BT={parts:nT.keys,baseStyle:MT,variants:$T,defaultProps:jT},yy={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"};function Vd(){return Vd=Object.assign||function(e){for(var t=1;t({transform:"translate(25%, 25%)",borderRadius:"full",border:"0.2em solid",borderColor:M("white","gray.800")(e)}),WT=e=>({bg:M("gray.200","whiteAlpha.400")(e)}),UT=e=>{var{name:t,theme:r}=e,n=t?WO({string:t}):"gray.400",a=HO(n)(r),i="white";a||(i="gray.800");var o=M("white","gray.800")(e);return{bg:n,color:i,borderColor:o,verticalAlign:"top"}},QT=e=>({badge:HT(e),excessLabel:WT(e),container:UT(e)});function Kr(e){var t=by[e];return{container:{width:e,height:e,fontSize:"calc("+(t!=null?t:e)+" / 2.5)"},excessLabel:{width:e,height:e},label:{fontSize:"calc("+(t!=null?t:e)+" / 2.5)",lineHeight:e!=="100%"?t!=null?t:e:void 0}}}var qT={"2xs":Kr("4"),xs:Kr("6"),sm:Kr("8"),md:Kr("12"),lg:Kr("16"),xl:Kr("24"),"2xl":Kr("32"),full:Kr("100%")},KT={size:"md"},GT={parts:aT.keys,baseStyle:QT,sizes:qT,defaultProps:KT},YT={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},XT=e=>{var{colorScheme:t,theme:r}=e,n=Ca(t+".500",.6)(r);return{bg:M(t+".500",n)(e),color:M("white","whiteAlpha.800")(e)}},ZT=e=>{var{colorScheme:t,theme:r}=e,n=Ca(t+".200",.16)(r);return{bg:M(t+".100",n)(e),color:M(t+".800",t+".200")(e)}},JT=e=>{var{colorScheme:t,theme:r}=e,n=Ca(t+".200",.8)(r),a=$e(r,t+".500"),i=M(a,n)(e);return{color:i,boxShadow:"inset 0 0 0px 1px "+i}},ek={solid:XT,subtle:ZT,outline:JT},tk={variant:"subtle",colorScheme:"gray"},Ji={baseStyle:YT,variants:ek,defaultProps:tk},rk={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focus:{boxShadow:"outline"}},nk={link:rk},ak={parts:iT.keys,baseStyle:nk};function Hd(){return Hd=Object.assign||function(e){for(var t=1;t{var{colorScheme:t,theme:r}=e;if(t==="gray")return{color:M("inherit","whiteAlpha.900")(e),_hover:{bg:M("gray.100","whiteAlpha.200")(e)},_active:{bg:M("gray.200","whiteAlpha.300")(e)}};var n=Ca(t+".200",.12)(r),a=Ca(t+".200",.24)(r);return{color:M(t+".600",t+".200")(e),bg:"transparent",_hover:{bg:M(t+".50",n)(e)},_active:{bg:M(t+".100",a)(e)}}},ok=e=>{var{colorScheme:t}=e,r=M("gray.200","whiteAlpha.300")(e);return Hd({border:"1px solid",borderColor:t==="gray"?r:"currentColor"},xy(e))},sk={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},uk=e=>{var t,{colorScheme:r}=e;if(r==="gray"){var n=M("gray.100","whiteAlpha.200")(e);return{bg:n,_hover:{bg:M("gray.200","whiteAlpha.300")(e),_disabled:{bg:n}},_active:{bg:M("gray.300","whiteAlpha.400")(e)}}}var{bg:a=r+".500",color:i="white",hoverBg:o=r+".600",activeBg:s=r+".700"}=(t=sk[r])!=null?t:{},u=M(a,r+".200")(e);return{bg:u,color:M(i,"gray.800")(e),_hover:{bg:M(o,r+".300")(e),_disabled:{bg:u}},_active:{bg:M(s,r+".400")(e)}}},lk=e=>{var{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:M(t+".500",t+".200")(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:M(t+".700",t+".500")(e)}}},ck={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:0,p:0},fk={ghost:xy,outline:ok,solid:uk,link:lk,unstyled:ck},dk={lg:{h:12,minW:12,fontSize:"lg",px:6},md:{h:10,minW:10,fontSize:"md",px:4},sm:{h:8,minW:8,fontSize:"sm",px:3},xs:{h:6,minW:6,fontSize:"xs",px:2}},pk={variant:"solid",size:"md",colorScheme:"gray"},vk={baseStyle:ik,variants:fk,sizes:dk,defaultProps:pk},hk=e=>{var{colorScheme:t}=e;return{w:"100%",transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:M(t+".500",t+".200")(e),borderColor:M(t+".500",t+".200")(e),color:M("white","gray.900")(e),_hover:{bg:M(t+".600",t+".300")(e),borderColor:M(t+".600",t+".300")(e)},_disabled:{borderColor:M("gray.200","transparent")(e),bg:M("gray.200","whiteAlpha.300")(e),color:M("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:M(t+".500",t+".200")(e),borderColor:M(t+".500",t+".200")(e),color:M("white","gray.900")(e)},_disabled:{bg:M("gray.100","whiteAlpha.100")(e),borderColor:M("gray.100","transparent")(e)},_focus:{boxShadow:"outline"},_invalid:{borderColor:M("red.500","red.300")(e)}}},mk={userSelect:"none",_disabled:{opacity:.4}},gk={transitionProperty:"transform",transitionDuration:"normal"},yk=e=>({icon:gk,control:hk(e),label:mk}),bk={sm:{control:{h:3,w:3},label:{fontSize:"sm"},icon:{fontSize:"0.45rem"}},md:{control:{w:4,h:4},label:{fontSize:"md"},icon:{fontSize:"0.625rem"}},lg:{control:{w:5,h:5},label:{fontSize:"lg"},icon:{fontSize:"0.625rem"}}},xk={size:"md",colorScheme:"blue"},Wd={parts:oT.keys,baseStyle:yk,sizes:bk,defaultProps:xk},eo=wt("close-button-size"),wk=e=>{var t=M("blackAlpha.100","whiteAlpha.100")(e),r=M("blackAlpha.200","whiteAlpha.200")(e);return{w:[eo.reference],h:[eo.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{bg:t},_active:{bg:r},_focus:{boxShadow:"outline"}}},Sk={lg:{[eo.variable]:"40px",fontSize:"16px"},md:{[eo.variable]:"32px",fontSize:"12px"},sm:{[eo.variable]:"24px",fontSize:"10px"}},Ck={size:"md"},Ek={baseStyle:wk,sizes:Sk,defaultProps:Ck},{variants:Pk,defaultProps:Ok}=Ji,Tk={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},kk={baseStyle:Tk,variants:Pk,defaultProps:Ok},_k={w:"100%",mx:"auto",maxW:"60ch",px:"1rem"},Rk={baseStyle:_k},Ak={opacity:.6,borderColor:"inherit"},Mk={borderStyle:"solid"},Fk={borderStyle:"dashed"},Lk={solid:Mk,dashed:Fk},Dk={variant:"solid"},Ik={baseStyle:Ak,variants:Lk,defaultProps:Dk};function Ud(){return Ud=Object.assign||function(e){for(var t=1;t{var{isFullHeight:t}=e;return Ud({},t&&{height:"100vh"},{zIndex:"modal",maxH:"100vh",bg:M("white","gray.700")(e),color:"inherit",boxShadow:M("lg","dark-lg")(e)})},zk={px:6,py:4,fontSize:"xl",fontWeight:"semibold"},Nk={position:"absolute",top:2,insetEnd:3},Vk={px:6,py:2,flex:1,overflow:"auto"},Hk={px:6,py:4},Wk=e=>({overlay:$k,dialogContainer:jk,dialog:Bk(e),header:zk,closeButton:Nk,body:Vk,footer:Hk}),Uk={xs:Ea("xs"),sm:Ea("md"),md:Ea("lg"),lg:Ea("2xl"),xl:Ea("4xl"),full:Ea("full")},Qk={size:"xs"},qk={parts:sT.keys,baseStyle:Wk,sizes:Uk,defaultProps:Qk},Kk={borderRadius:"md",py:"3px",transitionProperty:"common",transitionDuration:"normal"},Gk={borderRadius:"md",py:"3px",transitionProperty:"common",transitionDuration:"normal",width:"full",_focus:{boxShadow:"outline"},_placeholder:{opacity:.6}},Yk={preview:Kk,input:Gk},Xk={parts:uT.keys,baseStyle:Yk},Zk=e=>({marginStart:1,color:M("red.500","red.300")(e)}),Jk=e=>({mt:2,color:M("gray.500","whiteAlpha.600")(e),lineHeight:"normal",fontSize:"sm"}),e_=e=>({container:{width:"100%",position:"relative"},requiredIndicator:Zk(e),helperText:Jk(e)}),t_={parts:lT.keys,baseStyle:e_},r_={fontSize:"md",marginEnd:3,mb:2,fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},n_={baseStyle:r_},a_={fontFamily:"heading",fontWeight:"bold"},i_={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},o_={size:"xl"},s_={baseStyle:a_,sizes:i_,defaultProps:o_},u_={field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal"}},Gr={lg:{fontSize:"lg",px:4,h:12,borderRadius:"md"},md:{fontSize:"md",px:4,h:10,borderRadius:"md"},sm:{fontSize:"sm",px:3,h:8,borderRadius:"sm"},xs:{fontSize:"xs",px:2,h:6,borderRadius:"sm"}},l_={lg:{field:Gr.lg,addon:Gr.lg},md:{field:Gr.md,addon:Gr.md},sm:{field:Gr.sm,addon:Gr.sm},xs:{field:Gr.xs,addon:Gr.xs}};function Qd(e){var{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||M("blue.500","blue.300")(e),errorBorderColor:r||M("red.500","red.300")(e)}}var c_=e=>{var{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=Qd(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:M("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_disabled:{opacity:.4,cursor:"not-allowed"},_invalid:{borderColor:$e(t,n),boxShadow:"0 0 0 1px "+$e(t,n)},_focus:{zIndex:1,borderColor:$e(t,r),boxShadow:"0 0 0 1px "+$e(t,r)}},addon:{border:"1px solid",borderColor:M("inherit","whiteAlpha.50")(e),bg:M("gray.100","whiteAlpha.300")(e)}}},f_=e=>{var{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=Qd(e);return{field:{border:"2px solid",borderColor:"transparent",bg:M("gray.100","whiteAlpha.50")(e),_hover:{bg:M("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_disabled:{opacity:.4,cursor:"not-allowed"},_invalid:{borderColor:$e(t,n)},_focus:{bg:"transparent",borderColor:$e(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:M("gray.100","whiteAlpha.50")(e)}}},d_=e=>{var{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=Qd(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:0,px:0,bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:$e(t,n),boxShadow:"0px 1px 0px 0px "+$e(t,n)},_focus:{borderColor:$e(t,r),boxShadow:"0px 1px 0px 0px "+$e(t,r)}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:0,px:0,bg:"transparent"}}},p_={field:{bg:"transparent",px:0,height:"auto"},addon:{bg:"transparent",px:0,height:"auto"}},v_={outline:c_,filled:f_,flushed:d_,unstyled:p_},h_={size:"md",variant:"outline"},Ce={parts:fT.keys,baseStyle:u_,sizes:l_,variants:v_,defaultProps:h_},m_=e=>({bg:M("gray.100","whiteAlpha")(e),borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),g_={baseStyle:m_},y_={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focus:{boxShadow:"outline"}},b_={baseStyle:y_},x_={marginEnd:"0.5rem",display:"inline",verticalAlign:"text-bottom"},w_={container:{},item:{},icon:x_},S_={parts:dT.keys,baseStyle:w_},C_=e=>({bg:M("#fff","gray.700")(e),boxShadow:M("sm","dark-lg")(e),color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px"}),E_=e=>({py:"0.4rem",px:"0.8rem",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{bg:M("gray.100","whiteAlpha.100")(e)},_active:{bg:M("gray.200","whiteAlpha.200")(e)},_expanded:{bg:M("gray.100","whiteAlpha.100")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}),P_={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},O_={opacity:.6},T_={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"0.5rem",opacity:.6},k_={transitionProperty:"common",transitionDuration:"normal"},__=e=>({button:k_,list:C_(e),item:E_(e),groupTitle:P_,command:O_,divider:T_}),R_={parts:pT.keys,baseStyle:__},A_={bg:"blackAlpha.600",zIndex:"modal"},M_=e=>{var{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto"}},F_=e=>{var{scrollBehavior:t}=e;return{borderRadius:"md",bg:M("white","gray.700")(e),color:"inherit",my:"3.75rem",zIndex:"modal",maxH:t==="inside"?"calc(100% - 7.5rem)":void 0,boxShadow:M("lg","dark-lg")(e)}},L_={px:6,py:4,fontSize:"xl",fontWeight:"semibold"},D_={position:"absolute",top:2,insetEnd:3},I_=e=>{var{scrollBehavior:t}=e;return{px:6,py:2,flex:1,overflow:t==="inside"?"auto":void 0}},$_={px:6,py:4},j_=e=>({overlay:A_,dialogContainer:M_(e),dialog:F_(e),header:L_,closeButton:D_,body:I_(e),footer:$_});function zt(e){return e==="full"?{dialog:{maxW:"100vw",minH:"100vh",my:0}}:{dialog:{maxW:e}}}var B_={xs:zt("xs"),sm:zt("sm"),md:zt("md"),lg:zt("lg"),xl:zt("xl"),"2xl":zt("2xl"),"3xl":zt("3xl"),"4xl":zt("4xl"),"5xl":zt("5xl"),"6xl":zt("6xl"),full:zt("full")},z_={size:"md"},N_={parts:vT.keys,baseStyle:j_,sizes:B_,defaultProps:z_},V_={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:{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"}},wy=V_,Sy,Cy;function qd(){return qd=Object.assign||function(e){for(var t=1;t({borderStart:"1px solid",borderStartColor:M("inherit","whiteAlpha.300")(e),color:M("inherit","whiteAlpha.800")(e),_active:{bg:M("gray.200","whiteAlpha.300")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}),Y_=e=>({root:Q_,field:q_,stepperGroup:K_,stepper:G_(e)});function Iu(e){var t,r,n=Ce.sizes[e],a={lg:"md",md:"md",sm:"sm",xs:"sm"},i=(t=(r=n.field)==null?void 0:r.fontSize)!=null?t:"md",o=wy.fontSizes[i.toString()];return{field:qd({},n.field,{paddingInlineEnd:Ey.reference,verticalAlign:"top"}),stepper:{fontSize:br(o).multiply(.75).toString(),_first:{borderTopEndRadius:a[e]},_last:{borderBottomEndRadius:a[e],mt:"-1px",borderTopWidth:1}}}}var X_={xs:Iu("xs"),sm:Iu("sm"),md:Iu("md"),lg:Iu("lg")},Z_={parts:hT.keys,baseStyle:Y_,sizes:X_,variants:H_,defaultProps:W_},Py;function Gd(){return Gd=Object.assign||function(e){for(var t=1;t{var t;return(t=Ce.variants.outline(e).field)!=null?t:{}},flushed:e=>{var t;return(t=Ce.variants.flushed(e).field)!=null?t:{}},filled:e=>{var t;return(t=Ce.variants.filled(e).field)!=null?t:{}},unstyled:(Py=Ce.variants.unstyled.field)!=null?Py:{}},r5=Ce.defaultProps,n5={baseStyle:J_,sizes:e5,variants:t5,defaultProps:r5},Yd=wt("popper-bg"),a5=wt("popper-arrow-bg"),i5=wt("popper-arrow-shadow-color"),o5={zIndex:10},s5=e=>{var t=M("white","gray.700")(e),r=M("gray.200","whiteAlpha.300")(e);return{[Yd.variable]:"colors."+t,bg:Yd.reference,[a5.variable]:Yd.reference,[i5.variable]:"colors."+r,width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focus:{outline:0,boxShadow:"outline"}}},u5={px:3,py:2,borderBottomWidth:"1px"},l5={px:3,py:2},c5={px:3,py:2,borderTopWidth:"1px"},f5=e=>({popper:o5,content:s5(e),header:u5,body:l5,footer:c5,arrow:{}}),d5={parts:mT.keys,baseStyle:f5};function $u(){return $u=Object.assign||function(e){for(var t=1;t({bg:M("gray.100","whiteAlpha.300")(e)}),m5=e=>$u({transitionProperty:"common",transitionDuration:"slow"},p5(e)),g5=e=>({label:v5,filledTrack:m5(e),track:h5(e)}),y5={xs:{track:{h:"0.25rem"}},sm:{track:{h:"0.5rem"}},md:{track:{h:"0.75rem"}},lg:{track:{h:"1rem"}}},b5={size:"md",colorScheme:"blue"},x5={parts:gT.keys,sizes:y5,baseStyle:g5,defaultProps:b5};function ju(){return ju=Object.assign||function(e){for(var t=1;t{var{control:t={}}=Wd.baseStyle(e);return ju({},t,{borderRadius:"full",_checked:ju({},t._checked,{_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}})})},S5=e=>({label:Wd.baseStyle(e).label,control:w5(e)}),C5={md:{control:{w:4,h:4},label:{fontSize:"md"}},lg:{control:{w:5,h:5},label:{fontSize:"lg"}},sm:{control:{width:3,height:3},label:{fontSize:"sm"}}},E5={size:"md",colorScheme:"blue"},P5={parts:yT.keys,baseStyle:S5,sizes:C5,defaultProps:E5};function to(){return to=Object.assign||function(e){for(var t=1;tto({},Ce.baseStyle.field,{bg:M("white","gray.700")(e),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:M("white","gray.700")(e)}}),T5={width:"1.5rem",height:"100%",insetEnd:"0.5rem",position:"relative",color:"currentColor",fontSize:"1.25rem",_disabled:{opacity:.5}},k5=e=>({field:O5(e),icon:T5}),_5=to({},Ce.sizes,{xs:to({},Ce.sizes.xs,{icon:{insetEnd:"0.25rem"}})}),R5={parts:bT.keys,baseStyle:k5,sizes:_5,variants:Ce.variants,defaultProps:Ce.defaultProps},A5=(e,t)=>fg({from:{borderColor:e,background:e},to:{borderColor:t,background:t}}),M5=e=>{var t=M("gray.100","gray.800")(e),r=M("gray.400","gray.600")(e),{startColor:n=t,endColor:a=r,speed:i,theme:o}=e,s=$e(o,n),u=$e(o,a);return{opacity:.7,borderRadius:"2px",borderColor:s,background:u,animation:i+"s linear infinite alternate "+A5(s,u)}},F5={baseStyle:M5},L5=e=>({borderRadius:"md",fontWeight:"semibold",_focus:{boxShadow:"outline",padding:"1rem",position:"fixed",top:"1.5rem",insetStart:"1.5rem",bg:M("white","gray.700")(e)}}),D5={baseStyle:L5};function Bu(){return Bu=Object.assign||function(e){for(var t=1;t{var{orientation:t}=e;return Bu({display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"}},Zi({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}}))},j5=e=>({overflow:"hidden",borderRadius:"sm",bg:M("gray.200","whiteAlpha.200")(e),_disabled:{bg:M("gray.300","whiteAlpha.300")(e)}}),B5=e=>Bu({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",_focus:{boxShadow:"outline"},_disabled:{bg:"gray.300"}},I5(e)),z5=e=>{var{colorScheme:t}=e;return{width:"inherit",height:"inherit",bg:M(t+".500",t+".200")(e)}},N5=e=>({container:$5(e),track:j5(e),thumb:B5(e),filledTrack:z5(e)}),V5=e=>({thumb:{w:"16px",h:"16px"},track:Zi({orientation:e.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}),H5=e=>({thumb:{w:"14px",h:"14px"},track:Zi({orientation:e.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}),W5=e=>({thumb:{w:"10px",h:"10px"},track:Zi({orientation:e.orientation,horizontal:{h:"2px"},vertical:{w:"2px"}})}),U5={lg:V5,md:H5,sm:W5},Q5={size:"md",colorScheme:"blue"},q5={parts:xT.keys,sizes:U5,baseStyle:N5,defaultProps:Q5},kn=wt("spinner-size"),K5={width:[kn.reference],height:[kn.reference]},G5={xs:{[kn.variable]:"0.75rem"},sm:{[kn.variable]:"1rem"},md:{[kn.variable]:"1.5rem"},lg:{[kn.variable]:"2rem"},xl:{[kn.variable]:"3rem"}},Y5={size:"md"},X5={baseStyle:K5,sizes:G5,defaultProps:Y5},Z5={fontWeight:"medium"},J5={opacity:.8,marginBottom:2},eR={verticalAlign:"baseline",fontWeight:"semibold"},tR={marginEnd:1,w:"14px",h:"14px",verticalAlign:"middle"},rR={container:{},label:Z5,helpText:J5,number:eR,icon:tR},nR={md:{label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}}},aR={size:"md"},iR={parts:wT.keys,baseStyle:rR,sizes:nR,defaultProps:aR},ro=wt("switch-track-width"),_n=wt("switch-track-height"),Xd=wt("switch-track-diff"),oR=br.subtract(ro,_n),Zd=wt("switch-thumb-x"),sR=e=>{var{colorScheme:t}=e;return{borderRadius:"full",p:"2px",width:[ro.reference],height:[_n.reference],transitionProperty:"common",transitionDuration:"fast",bg:M("gray.300","whiteAlpha.400")(e),_focus:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{bg:M(t+".500",t+".200")(e)}}},uR={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[_n.reference],height:[_n.reference],_checked:{transform:"translateX("+Zd.reference+")"}},lR=e=>({container:{[Xd.variable]:oR,[Zd.variable]:Xd.reference,_rtl:{[Zd.variable]:br(Xd).negate().toString()}},track:sR(e),thumb:uR}),cR={sm:{container:{[ro.variable]:"1.375rem",[_n.variable]:"0.75rem"}},md:{container:{[ro.variable]:"1.875rem",[_n.variable]:"1rem"}},lg:{container:{[ro.variable]:"2.875rem",[_n.variable]:"1.5rem"}}},fR={size:"md",colorScheme:"blue"},dR={parts:ST.keys,baseStyle:lR,sizes:cR,defaultProps:fR};function Pa(){return Pa=Object.assign||function(e){for(var t=1;t{var{colorScheme:t}=e;return{th:Pa({color:M("gray.600","gray.400")(e),borderBottom:"1px",borderColor:M(t+".100",t+".700")(e)},zu),td:Pa({borderBottom:"1px",borderColor:M(t+".100",t+".700")(e)},zu),caption:{color:M("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},hR=e=>{var{colorScheme:t}=e;return{th:Pa({color:M("gray.600","gray.400")(e),borderBottom:"1px",borderColor:M(t+".100",t+".700")(e)},zu),td:Pa({borderBottom:"1px",borderColor:M(t+".100",t+".700")(e)},zu),caption:{color:M("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:M(t+".100",t+".700")(e)},td:{background:M(t+".100",t+".700")(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},mR={simple:vR,striped:hR,unstyled:{}},gR={sm:{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:{th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}},lg:{th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}}},yR={variant:"simple",size:"md",colorScheme:"gray"},bR={parts:CT.keys,baseStyle:pR,variants:mR,sizes:gR,defaultProps:yR},xR=e=>{var{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},wR=e=>{var{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focus:{zIndex:1,boxShadow:"outline"}}},SR=e=>{var{align:t="start",orientation:r}=e,n={end:"flex-end",center:"center",start:"flex-start"};return{justifyContent:n[t],flexDirection:r==="vertical"?"column":"row"}},CR={p:4},ER=e=>({root:xR(e),tab:wR(e),tablist:SR(e),tabpanel:CR}),PR={sm:{tab:{py:1,px:4,fontSize:"sm"}},md:{tab:{fontSize:"md",py:2,px:4}},lg:{tab:{fontSize:"lg",py:3,px:4}}},OR=e=>{var{colorScheme:t,orientation:r}=e,n=r==="vertical",a=r==="vertical"?"borderStart":"borderBottom",i=n?"marginStart":"marginBottom";return{tablist:{[a]:"2px solid",borderColor:"inherit"},tab:{[a]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{color:M(t+".600",t+".300")(e),borderColor:"currentColor"},_active:{bg:M("gray.200","whiteAlpha.300")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}}},TR=e=>{var{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:M(t+".600",t+".300")(e),borderColor:"inherit",borderBottomColor:M("white","gray.800")(e)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},kR=e=>{var{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",bg:M("gray.50","whiteAlpha.50")(e),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:M("#fff","gray.800")(e),color:M(t+".600",t+".300")(e),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},_R=e=>{var{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:$e(r,t+".700"),bg:$e(r,t+".100")}}}},RR=e=>{var{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:M("gray.600","inherit")(e),_selected:{color:M("#fff","gray.800")(e),bg:M(t+".600",t+".300")(e)}}}},AR={},MR={line:OR,enclosed:TR,"enclosed-colored":kR,"soft-rounded":_R,"solid-rounded":RR,unstyled:AR},FR={size:"md",variant:"line",colorScheme:"blue"},LR={parts:ET.keys,baseStyle:ER,sizes:PR,variants:MR,defaultProps:FR},DR={fontWeight:"medium",lineHeight:1.2,outline:0,_focus:{boxShadow:"outline"}},IR={lineHeight:1.2,overflow:"visible"},$R={fontSize:"18px",w:"1.25rem",h:"1.25rem",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"0.375rem",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focus:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},jR={container:DR,label:IR,closeButton:$R},BR={sm:{container:{minH:"1.25rem",minW:"1.25rem",fontSize:"xs",px:2,borderRadius:"md"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}},md:{container:{minH:"1.5rem",minW:"1.5rem",fontSize:"sm",borderRadius:"md",px:2}},lg:{container:{minH:8,minW:8,fontSize:"md",borderRadius:"md",px:3}}},zR={subtle:e=>({container:Ji.variants.subtle(e)}),solid:e=>({container:Ji.variants.solid(e)}),outline:e=>({container:Ji.variants.outline(e)})},NR={size:"md",variant:"subtle",colorScheme:"gray"},VR={parts:PT.keys,variants:zR,baseStyle:jR,sizes:BR,defaultProps:NR},Oy,Ty,ky,_y,Ry;function Jd(){return Jd=Object.assign||function(e){for(var t=1;t{var t;return(t=Ce.variants.outline(e).field)!=null?t:{}},flushed:e=>{var t;return(t=Ce.variants.flushed(e).field)!=null?t:{}},filled:e=>{var t;return(t=Ce.variants.filled(e).field)!=null?t:{}},unstyled:(Oy=Ce.variants.unstyled.field)!=null?Oy:{}},UR={xs:(Ty=Ce.sizes.xs.field)!=null?Ty:{},sm:(ky=Ce.sizes.sm.field)!=null?ky:{},md:(_y=Ce.sizes.md.field)!=null?_y:{},lg:(Ry=Ce.sizes.lg.field)!=null?Ry:{}},QR={size:"md",variant:"outline"},qR={baseStyle:HR,sizes:UR,variants:WR,defaultProps:QR},ep=wt("tooltip-bg"),KR=wt("popper-arrow-bg"),GR=e=>{var t=M("gray.700","gray.300")(e);return{[ep.variable]:"colors."+t,px:"8px",py:"2px",bg:[ep.reference],[KR.variable]:[ep.reference],color:M("whiteAlpha.900","gray.900")(e),borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"320px",zIndex:"tooltip"}},YR={baseStyle:GR},XR=e=>({color:M("red.500","red.300")(e),mt:2,fontSize:"sm"}),ZR=e=>({marginEnd:"0.5em",color:M("red.500","red.300")(e)}),JR=e=>({text:XR(e),icon:ZR(e)}),eA={parts:cT.keys,baseStyle:JR},tA={Accordion:AT,Alert:BT,Avatar:GT,Badge:Ji,Breadcrumb:ak,Button:vk,Checkbox:Wd,CloseButton:Ek,Code:kk,Container:Rk,Divider:Ik,Drawer:qk,Editable:Xk,Form:t_,FormLabel:n_,Heading:s_,Input:Ce,Kbd:g_,Link:b_,List:S_,Menu:R_,Modal:N_,NumberInput:Z_,PinInput:n5,Popover:d5,Progress:x5,Radio:P5,Select:R5,Skeleton:F5,SkipLink:D5,Slider:q5,Spinner:X5,Stat:iR,Switch:dR,Table:bR,Tabs:LR,Tag:VR,Textarea:qR,Tooltip:YR,FormError:eA},rA={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},nA=rA,aA=KO({sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"}),iA=aA,oA={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"}},sA=oA,uA={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},lA=uA,cA={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"},fA=cA,dA={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"},pA={"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)"},vA={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},hA={property:dA,easing:pA,duration:vA},mA=hA,gA={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},yA=gA,bA={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},xA=bA;function tp(){return tp=Object.assign||function(e){for(var t=1;t({body:{fontFamily:"body",color:M("gray.800","whiteAlpha.900")(e),bg:M("white","gray.800")(e),transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:M("gray.400","whiteAlpha.400")(e)},"*, *::before, &::after":{borderColor:M("gray.200","whiteAlpha.300")(e),wordWrap:"break-word"}})},EA=CA,PA=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function OA(e){return Rt(e)?PA.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}function rp(){return rp=Object.assign||function(e){for(var t=1;t1?n=n.slice(0,n.length-1):a=Ay,hP(...n.map(i=>o=>Sn(i)?i(o):AA(o,i)))(a)}function AA(){for(var e=arguments.length,t=new Array(e),r=0;r0)&&!(a=n.next()).done;)i.push(a.value)}catch(s){o={error:s}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i}function at(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n-1||/[A-Z]/.test(e))}var so={};function XA(e){for(var t in e)so[t]=e[t]}var ZA=["","X","Y","Z"],JA=["translate","scale","rotate","skew"],uo=["transformPerspective","x","y","z"];JA.forEach(function(e){return ZA.forEach(function(t){return uo.push(e+t)})});function e3(e,t){return uo.indexOf(e)-uo.indexOf(t)}var t3=new Set(uo);function Uu(e){return t3.has(e)}var r3=new Set(["originX","originY","originZ"]);function Vy(e){return r3.has(e)}function Hy(e,t){var r=t.layout,n=t.layoutId;return Uu(e)||Vy(e)||(r||n!==void 0)&&(!!so[e]||e==="opacity")}var Yr=function(e){return e!==null&&typeof e=="object"&&e.getVelocity},n3={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function a3(e,t,r,n){var a=e.transform,i=e.transformKeys,o=t.enableHardwareAcceleration,s=o===void 0?!0:o,u=t.allowTransformNone,l=u===void 0?!0:u,c="";i.sort(e3);for(var v=!1,p=i.length,g=0;g5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),a=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),a=e.substr(4,1),t+=t,r+=r,n+=n,a+=a),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:a?parseInt(a,16)/255:1}}var cp={test:up("#"),parse:f3,transform:ka.transform},it={test:function(e){return ka.test(e)||cp.test(e)||Ta.test(e)},parse:function(e){return ka.test(e)?ka.parse(e):Ta.test(e)?Ta.parse(e):cp.parse(e)},transform:function(e){return fo(e)?e:e.hasOwnProperty("red")?ka.transform(e):Ta.transform(e)}},Ky="${c}",Gy="${n}";function d3(e){var t,r,n,a;return isNaN(e)&&fo(e)&&((r=(t=e.match(co))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((a=(n=e.match(sp))===null||n===void 0?void 0:n.length)!==null&&a!==void 0?a:0)>0}function Yy(e){var t=[],r=0,n=e.match(sp);n&&(r=n.length,e=e.replace(sp,Ky),t.push.apply(t,n.map(it.parse)));var a=e.match(co);return a&&(e=e.replace(co,Gy),t.push.apply(t,a.map(Rn.parse))),{values:t,numColors:r,tokenised:e}}function Xy(e){return Yy(e).values}function Zy(e){var t=Yy(e),r=t.values,n=t.numColors,a=t.tokenised,i=r.length;return function(o){for(var s=a,u=0;u0?-1:1;return C*((h-x)*w)/P}):(l=function(y){var d=Math.exp(-y*r),f=(y-o)*r+1;return-Sp+d*f},c=function(y){var d=Math.exp(-y*r),f=(o-y)*(r*r);return d*f});var p=5/r,g=a4(l,c,p);if(r=r*1e3,isNaN(g))return{stiffness:100,damping:10,duration:r};var m=Math.pow(g,2)*u;return{stiffness:m,damping:v*2*Math.sqrt(u*m),duration:r}}var n4=12;function a4(e,t,r){for(var n=r,a=1;a=y;else{var C=h(w)*1e3,T=Math.abs(C)<=o,R=Math.abs(a-P)<=s;l.done=T&&R}return l.value=l.done?a:P,l},flipTarget:function(){var w;m=-m,w=[a,r],r=w[0],a=w[1],x()}}}Ep.needsInterpolation=function(e,t){return typeof e=="string"||typeof t=="string"};var Eb=function(e){return 0},mo=function(e,t,r){var n=t-e;return n===0?1:(r-e)/n},pt=function(e,t,r){return-r*e+r*t+e},u4=function(e,t,r){var n=e*e,a=t*t;return Math.sqrt(Math.max(0,r*(a-n)+n))},l4=[cp,ka,Ta],Pb=function(e){return l4.find(function(t){return t.test(e)})},Ob=function(e,t){var r=Pb(e),n=Pb(t);no(r.transform===n.transform);var a=r.parse(e),i=n.parse(t),o=F({},a),s=r===Ta?pt:u4;return function(u){for(var l in o)l!=="alpha"&&(o[l]=s(a[l],i[l],u));return o.alpha=pt(a.alpha,i.alpha,u),r.transform(o)}},Pp=function(e){return typeof e=="number"},c4=function(e,t){return function(r){return t(e(r))}},go=function(){for(var e=[],t=0;t=e[n]&&(i=n-1,o=!0),!o){for(var s=1;sa||s===n);s++);i=s-1}var u=mo(e[i],e[i+1],a);return t[i](u)}}function Ab(e,t,r){var n=r===void 0?{}:r,a=n.clamp,i=a===void 0?!0:a,o=n.ease,s=n.mixer,u=e.length;no(u===t.length),no(!o||!Array.isArray(o)||o.length===u-1),e[0]>e[u-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var l=v4(t,o,s),c=u===2?h4(e,l):m4(e,l);return i?function(v){return c(Gu(e[0],e[u-1],v))}:c}var Yu=function(e){return function(t){return 1-e(1-t)}},Op=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},g4=function(e){return function(t){return Math.pow(t,e)}},Mb=function(e){return function(t){return t*t*((e+1)*t-e)}},y4=function(e){var t=Mb(e);return function(r){return(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))}},Fb=1.525,b4=4/11,x4=8/11,w4=9/10,Lb=function(e){return e},Tp=g4(2),S4=Yu(Tp),Db=Op(Tp),Ib=function(e){return 1-Math.sin(Math.acos(e))},$b=Yu(Ib),C4=Op($b),kp=Mb(Fb),E4=Yu(kp),P4=Op(kp),O4=y4(Fb),T4=4356/361,k4=35442/1805,_4=16061/1805,Xu=function(e){if(e===1||e===0)return e;var t=e*e;return e=u,l},flipTarget:function(){c.reverse(),g=p()}}}function D4(e){var t=e.velocity,r=t===void 0?0:t,n=e.from,a=n===void 0?0:n,i=e.power,o=i===void 0?.8:i,s=e.timeConstant,u=s===void 0?350:s,l=e.restDelta,c=l===void 0?.5:l,v=e.modifyTarget,p={done:!1,value:a},g=o*r,m=a+g,y=v===void 0?m:v(m);return y!==m&&(g=y-a),{next:function(d){var f=-g*Math.exp(-d/u);return p.done=!(f>c||f<-c),p.value=p.done?y:y+f,p},flipTarget:function(){}}}var jb={keyframes:Zu,spring:Ep,decay:D4};function I4(e){if(Array.isArray(e.to))return Zu;if(jb[e.type])return jb[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Zu:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Ep:Zu}function Bb(e,t,r){return r===void 0&&(r=0),e-t-r}function $4(e,t,r,n){return r===void 0&&(r=0),n===void 0&&(n=!0),n?Bb(t+-e,t,r):t-(e-t)+r}function j4(e,t,r,n){return n?e>=t+r:e<=-r}var B4=function(e){var t=function(r){var n=r.delta;return e(n)};return{start:function(){return rr.update(t,!0)},stop:function(){return Ui.update(t)}}};function zb(e){var t,r,n=e.from,a=e.autoplay,i=a===void 0?!0:a,o=e.driver,s=o===void 0?B4:o,u=e.elapsed,l=u===void 0?0:u,c=e.repeat,v=c===void 0?0:c,p=e.repeatType,g=p===void 0?"loop":p,m=e.repeatDelay,y=m===void 0?0:m,d=e.onPlay,f=e.onStop,h=e.onComplete,x=e.onRepeat,w=e.onUpdate,P=St(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),C=P.to,T,R=0,k=P.duration,A,j=!1,U=!0,V,K=I4(P);((r=(t=K).needsInterpolation)===null||r===void 0?void 0:r.call(t,n,C))&&(V=Ab([0,100],[n,C],{clamp:!1}),n=0,C=100);var X=K(F(F({},P),{from:n,to:C}));function H(){R++,g==="reverse"?(U=R%2==0,l=$4(l,k,y,U)):(l=Bb(l,k,y),g==="mirror"&&X.flipTarget()),j=!1,x&&x()}function J(){T.stop(),h&&h()}function ee(pe){if(U||(pe=-pe),l+=pe,!j){var L=X.next(Math.max(0,l));A=L.value,V&&(A=V(A)),j=U?L.done:l<=0}w==null||w(A),j&&(R===0&&(k!=null||(k=l)),Ro}function T(H){return i===void 0?o:o===void 0||Math.abs(i-H)j||U===-1&&H0?r=o:t=o;while(Math.abs(i)>N4&&++s=U4?Q4(s,p,e,r):g===0?p:H4(s,u,u+rl,e,r)}return function(s){return s===0||s===1?s:el(o(s),t,n)}}function K4(e){var t=e.onTap,r=e.onTapStart,n=e.onTapCancel,a=e.whileTap,i=e.visualElement,o=t||r||n||a,s=S.exports.useRef(!1),u=S.exports.useRef(null);function l(){var m;(m=u.current)===null||m===void 0||m.call(u),u.current=null}function c(){var m;return l(),s.current=!1,(m=i.animationState)===null||m===void 0||m.setActive(_e.Tap,!1),!xb()}function v(m,y){!c()||(Sb(i.getInstance(),m.target)?t==null||t(m,y):n==null||n(m,y))}function p(m,y){!c()||n==null||n(m,y)}function g(m,y){var d;l(),!s.current&&(s.current=!0,u.current=go(_a(window,"pointerup",v),_a(window,"pointercancel",p)),r==null||r(m,y),(d=i.animationState)===null||d===void 0||d.setActive(_e.Tap,!0))}Ku(i,"pointerdown",o?g:void 0),wp(l)}var An=function(e){return function(t){return e(t),null}},G4={tap:An(K4),focus:An(z3),hover:An(X3)};function Kb(e,t){if(!Array.isArray(t))return!1;var r=t.length;if(r!==e.length)return!1;for(var n=0;n-1&&e.splice(r,1)}var ol=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(t){var r=this;return e1(this.subscriptions,t),function(){return t1(r.subscriptions,t)}},e.prototype.notify=function(t,r,n){var a=this.subscriptions.length;if(!!a)if(a===1)this.subscriptions[0](t,r,n);else for(var i=0;ih&&j,X=Array.isArray(A)?A:[A],H=X.reduce(i,{});U===!1&&(H={});var J=k.prevResolvedValues,ee=J===void 0?{}:J,ue=F(F({},ee),H),pe=function(q){K=!0,d.delete(q),k.needsAnimating[q]=!0};for(var L in ue){var z=H[L],I=ee[L];f.hasOwnProperty(L)||(z!==I?ho(z)&&ho(I)?Kb(z,I)?k.protectedKeys[L]=!0:pe(L):z!==void 0?pe(L):d.add(L):z!==void 0&&d.has(L)?pe(L):k.protectedKeys[L]=!0)}k.prevProp=A,k.prevResolvedValues=H,k.isActive&&(f=F(F({},f),H)),a&&e.blockInitialAnimation&&(K=!1),K&&!V&&y.push.apply(y,at([],Pe(X.map(function(q){return{animation:q,options:F({type:R},c)}}))))},w=0;w=3;if(!(!g&&!m)){var y=p.point,d=xu().timestamp;a.history.push(F(F({},y),{timestamp:d}));var f=a.handlers,h=f.onStart,x=f.onMove;g||(h&&h(a.lastMoveEvent,p),a.startEvent=a.lastMoveEvent),x&&x(a.lastMoveEvent,p)}}},this.handlePointerMove=function(p,g){if(a.lastMoveEvent=p,a.lastMoveEventInfo=Ip(g,a.transformPagePoint),db(p)&&p.buttons===0){a.handlePointerUp(p,g);return}rr.update(a.updatePoint,!0)},this.handlePointerUp=function(p,g){a.end();var m=a.handlers,y=m.onEnd,d=m.onSessionEnd,f=$p(Ip(g,a.transformPagePoint),a.history);a.startEvent&&y&&y(p,f),d&&d(p,f)},!(pb(t)&&t.touches.length>1)){this.handlers=r,this.transformPagePoint=o;var s=xp(t),u=Ip(s,this.transformPagePoint),l=u.point,c=xu().timestamp;this.history=[F(F({},l),{timestamp:c})];var v=r.onSessionStart;v&&v(t,$p(u,this.history)),this.removeListeners=go(_a(window,"pointermove",this.handlePointerMove),_a(window,"pointerup",this.handlePointerUp),_a(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(t){this.handlers=t},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Ui.update(this.updatePoint)},e}();function Ip(e,t){return t?{point:t(e.point)}:e}function o1(e,t){return{x:e.x-t.x,y:e.y-t.y}}function $p(e,t){var r=e.point;return{point:r,delta:o1(r,s1(t)),offset:o1(r,_M(t)),velocity:RM(t,.1)}}function _M(e){return e[0]}function s1(e){return e[e.length-1]}function RM(e,t){if(e.length<2)return{x:0,y:0};for(var r=e.length-1,n=null,a=s1(e);r>=0&&(n=e[r],!(a.timestamp-n.timestamp>nl(t)));)r--;if(!n)return{x:0,y:0};var i=(a.timestamp-n.timestamp)/1e3;if(i===0)return{x:0,y:0};var o={x:(a.x-n.x)/i,y:(a.y-n.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function AM(e){return e}function u1(e){var t=e.top,r=e.left,n=e.right,a=e.bottom;return{x:{min:r,max:n},y:{min:t,max:a}}}function MM(e){var t=e.x,r=e.y;return{top:r.min,bottom:r.max,left:t.min,right:t.max}}function FM(e,t){var r=e.top,n=e.left,a=e.bottom,i=e.right;t===void 0&&(t=AM);var o=t({x:n,y:r}),s=t({x:i,y:a});return{top:o.y,left:o.x,bottom:s.y,right:s.x}}function Zr(){return{x:{min:0,max:1},y:{min:0,max:1}}}function LM(e){return{x:F({},e.x),y:F({},e.y)}}var l1={translate:0,scale:1,origin:0,originPoint:0};function c1(){return{x:F({},l1),y:F({},l1)}}function vt(e){return[e("x"),e("y")]}function f1(e,t,r){var n=t.min,a=t.max;return n!==void 0&&ea&&(e=r?pt(a,e,r.max):Math.min(e,a)),e}function DM(e,t,r,n,a){var i=e-t*r;return n?f1(i,n,a):i}function d1(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function IM(e,t){var r=t.top,n=t.left,a=t.bottom,i=t.right;return{x:d1(e.x,n,i),y:d1(e.y,r,a)}}function p1(e,t){var r,n=t.min-e.min,a=t.max-e.max;return t.max-t.minn?r=mo(t.min,t.max-n,e.min):n>a&&(r=mo(e.min,e.max-a,t.min)),NM(r)}function b1(e,t,r,n){n===void 0&&(n=.5),e.origin=n,e.originPoint=pt(t.min,t.max,e.origin),e.scale=yo(r)/yo(t),y1(e.scale,1,1e-4)&&(e.scale=1),e.translate=pt(r.min,r.max,e.origin)-e.originPoint,y1(e.translate)&&(e.translate=0)}function x1(e,t,r,n){b1(e.x,t.x,r.x,w1(n.originX)),b1(e.y,t.y,r.y,w1(n.originY))}function w1(e){return typeof e=="number"?e:.5}function S1(e,t,r){e.min=r.min+t.min,e.max=e.min+yo(t)}function HM(e,t){S1(e.target.x,e.relativeTarget.x,t.target.x),S1(e.target.y,e.relativeTarget.y,t.target.y)}var jp=function(e,t){return e.depth-t.depth};function C1(e){var t=e.projection.isEnabled;return t||e.shouldResetTransform()}function ul(e,t){t===void 0&&(t=[]);var r=e.parent;return r&&ul(r,t),C1(e)&&t.push(e),t}function WM(e){var t=[],r=function(n){C1(n)&&t.push(n),n.children.forEach(r)};return e.children.forEach(r),t.sort(jp)}function ll(e){if(!e.shouldResetTransform()){var t=e.getLayoutState();e.notifyBeforeLayoutMeasure(t.layout),t.isHydrated=!0,t.layout=e.measureViewportBox(),t.layoutCorrected=LM(t.layout),e.notifyLayoutMeasure(t.layout,e.prevViewportBox||t.layout),rr.update(function(){return e.rebaseProjectionTarget()})}}function UM(e){e.shouldResetTransform()||(e.prevViewportBox=e.measureViewportBox(!1),e.rebaseProjectionTarget(!1,e.prevViewportBox))}function QM(e,t,r,n){e.min=pt(t.min,r.min,n),e.max=pt(t.max,r.max,n)}function E1(e,t){return{min:t.min-e.min,max:t.max-e.min}}function Aa(e,t){return{x:E1(e.x,t.x),y:E1(e.y,t.y)}}function qM(e,t){var r=e.getLayoutId(),n=t.getLayoutId();return r!==n||n===void 0&&e!==t}function P1(e){var t=e.getProps(),r=t.drag,n=t._dragX;return r&&!n}function O1(e,t){e.min=t.min,e.max=t.max}function KM(e,t){O1(e.x,t.x),O1(e.y,t.y)}function cl(e,t,r){var n=e-r,a=t*n;return r+a}function T1(e,t,r,n,a){return a!==void 0&&(e=cl(e,a,n)),cl(e,r,n)+t}function Bp(e,t,r,n,a){t===void 0&&(t=0),r===void 0&&(r=1),e.min=T1(e.min,t,r,n,a),e.max=T1(e.max,t,r,n,a)}function GM(e,t){var r=t.x,n=t.y;Bp(e.x,r.translate,r.scale,r.originPoint),Bp(e.y,n.translate,n.scale,n.originPoint)}function k1(e,t,r,n){var a=Pe(n,3),i=a[0],o=a[1],s=a[2];e.min=t.min,e.max=t.max;var u=r[s]!==void 0?r[s]:.5,l=pt(t.min,t.max,u);Bp(e,r[i],r[o],l,r.scale)}var _1=["x","scaleX","originX"],R1=["y","scaleY","originY"];function zp(e,t,r){k1(e.x,t.x,r,_1),k1(e.y,t.y,r,R1)}function A1(e,t,r,n,a){return e-=t,e=cl(e,1/r,n),a!==void 0&&(e=cl(e,1/a,n)),e}function YM(e,t,r,n,a){t===void 0&&(t=0),r===void 0&&(r=1),n===void 0&&(n=.5);var i=pt(e.min,e.max,n)-t;e.min=A1(e.min,t,r,i,a),e.max=A1(e.max,t,r,i,a)}function M1(e,t,r){var n=Pe(r,3),a=n[0],i=n[1],o=n[2];YM(e,t[a],t[i],t[o],t.scale)}function F1(e,t){M1(e.x,t,_1),M1(e.y,t,R1)}function XM(e,t,r){var n=r.length;if(!!n){t.x=t.y=1;for(var a,i,o=0;ot?r="y":Math.abs(e.x)>t&&(r="x"),r}function r6(e){var t=e.dragControls,r=e.visualElement,n=S.exports.useContext(Nu).transformPagePoint,a=io(function(){return new e6({visualElement:r})});a.setProps(F(F({},e),{transformPagePoint:n})),S.exports.useEffect(function(){return t&&t.subscribe(a)},[a]),S.exports.useEffect(function(){return a.mount(r)},[])}function n6(e){var t=e.onPan,r=e.onPanStart,n=e.onPanEnd,a=e.onPanSessionStart,i=e.visualElement,o=t||r||n||a,s=S.exports.useRef(null),u=S.exports.useContext(Nu).transformPagePoint,l={onSessionStart:a,onStart:r,onMove:t,onEnd:function(v,p){s.current=null,n&&n(v,p)}};S.exports.useEffect(function(){s.current!==null&&s.current.updateHandlers(l)});function c(v){s.current=new i1(v,l,{transformPagePoint:u})}Ku(i,"pointerdown",o&&c),wp(function(){return s.current&&s.current.end()})}var a6={pan:An(n6),drag:An(r6)},xo;(function(e){e[e.Entering=0]="Entering",e[e.Present=1]="Present",e[e.Exiting=2]="Exiting"})(xo||(xo={}));var Hp;(function(e){e[e.Hide=0]="Hide",e[e.Show=1]="Show"})(Hp||(Hp={}));function Wp(e){return typeof e=="string"&&e.startsWith("var(--")}var $1=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function i6(e){var t=$1.exec(e);if(!t)return[,];var r=Pe(t,3),n=r[1],a=r[2];return[n,a]}function Up(e,t,r){var n=Pe(i6(e),2),a=n[0],i=n[1];if(!!a){var o=window.getComputedStyle(t).getPropertyValue(a);return o?o.trim():Wp(i)?Up(i,t):i}}function o6(e,t,r){var n,a=St(t,[]),i=e.getInstance();if(!(i instanceof HTMLElement))return{target:a,transitionEnd:r};r&&(r=F({},r)),e.forEachValue(function(l){var c=l.get();if(!!Wp(c)){var v=Up(c,i);v&&l.set(v)}});for(var o in a){var s=a[o];if(!!Wp(s)){var u=Up(s,i);!u||(a[o]=u,r&&((n=r[o])!==null&&n!==void 0||(r[o]=s)))}}return{target:a,transitionEnd:r}}function j1(e,t){return e/(t.max-t.min)*100}function s6(e,t,r){var n=r.target;if(typeof e=="string")if(Y.test(e))e=parseFloat(e);else return e;var a=j1(e,n.x),i=j1(e,n.y);return a+"% "+i+"%"}var B1="_$css";function u6(e,t){var r=t.delta,n=t.treeScale,a=e,i=e.includes("var("),o=[];i&&(e=e.replace($1,function(y){return o.push(y),B1}));var s=wr.parse(e);if(s.length>5)return a;var u=wr.createTransformer(e),l=typeof s[0]!="number"?1:0,c=r.x.scale*n.x,v=r.y.scale*n.y;s[0+l]/=c,s[1+l]/=v;var p=pt(c,v,.5);typeof s[2+l]=="number"&&(s[2+l]/=p),typeof s[3+l]=="number"&&(s[3+l]/=p);var g=u(s);if(i){var m=0;g=g.replace(B1,function(){var y=o[m];return m++,y})}return g}var wo={process:s6},l6={borderRadius:F(F({},wo),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:wo,borderTopRightRadius:wo,borderBottomLeftRadius:wo,borderBottomRightRadius:wo,boxShadow:{process:u6}},z1=1e3,c6=function(e){Fy(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.frameTarget=Zr(),r.currentAnimationTarget=Zr(),r.isAnimating={x:!1,y:!1},r.stopAxisAnimation={x:void 0,y:void 0},r.isAnimatingTree=!1,r.animate=function(n,a,i){i===void 0&&(i={});var o=i.originBox,s=i.targetBox,u=i.visibilityAction,l=i.shouldStackAnimate,c=i.onComplete,v=i.prevParent,p=St(i,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete","prevParent"]),g=r.props,m=g.visualElement,y=g.layout;if(l===!1)return r.isAnimatingTree=!1,r.safeToRemove();if(!(r.isAnimatingTree&&l!==!0)){l&&(r.isAnimatingTree=!0),a=o||a,n=s||n;var d=!1,f=m.getProjectionParent();if(f){var h=f.prevViewportBox,x=f.getLayoutState().layout;v&&(s&&(x=v.getLayoutState().layout),o&&!qM(v,f)&&v.prevViewportBox&&(h=v.prevViewportBox)),h&&v6(v,o,s)&&(d=!0,a=Aa(h,a),n=Aa(x,n))}var w=d6(a,n),P=vt(function(C){var T,R;if(y==="position"){var k=n[C].max-n[C].min;a[C].max=a[C].min+k}if(!m.projection.isTargetLocked)if(u!==void 0)m.setVisibility(u===Hp.Show);else return w?r.animateAxis(C,n[C],a[C],F(F({},p),{isRelative:d})):((R=(T=r.stopAxisAnimation)[C])===null||R===void 0||R.call(T),m.setProjectionTargetAxis(C,n[C].min,n[C].max,d))});return m.syncRender(),Promise.all(P).then(function(){r.isAnimatingTree=!1,c&&c(),m.notifyLayoutAnimationComplete()})}},r}return t.prototype.componentDidMount=function(){var r=this,n=this.props.visualElement;n.animateMotionValue=il,n.enableLayoutProjection(),this.unsubLayoutReady=n.onLayoutUpdate(this.animate),n.layoutSafeToRemove=function(){return r.safeToRemove()},XA(l6)},t.prototype.componentWillUnmount=function(){var r=this;this.unsubLayoutReady(),vt(function(n){var a,i;return(i=(a=r.stopAxisAnimation)[n])===null||i===void 0?void 0:i.call(a)})},t.prototype.animateAxis=function(r,n,a,i){var o=this,s,u,l=i===void 0?{}:i,c=l.transition,v=l.isRelative;if(!(this.isAnimating[r]&&So(n,this.currentAnimationTarget[r]))){(u=(s=this.stopAxisAnimation)[r])===null||u===void 0||u.call(s),this.isAnimating[r]=!0;var p=this.props.visualElement,g=this.frameTarget[r],m=p.getProjectionAnimationProgress()[r];m.clearListeners(),m.set(0),m.set(0);var y=function(){var x=m.get()/z1;QM(g,a,n,x),p.setProjectionTargetAxis(r,g.min,g.max,v)};y();var d=m.onChange(y);this.stopAxisAnimation[r]=function(){o.isAnimating[r]=!1,m.stop(),d()},this.currentAnimationTarget[r]=n;var f=c||p.getDefaultTransition()||p6,h=il(r==="x"?"layoutX":"layoutY",m,z1,f&&Fp(f,"layout")).then(this.stopAxisAnimation[r]);return h}},t.prototype.safeToRemove=function(){var r,n;(n=(r=this.props).safeToRemove)===null||n===void 0||n.call(r)},t.prototype.render=function(){return null},t}(S.exports.Component);function f6(e){var t=Pe(Iy(),2),r=t[1];return S.exports.createElement(c6,F({},e,{safeToRemove:r}))}function d6(e,t){return!V1(e)&&!V1(t)&&(!So(e.x,t.x)||!So(e.y,t.y))}var N1={min:0,max:0};function V1(e){return So(e.x,N1)&&So(e.y,N1)}function So(e,t){return e.min===t.min&&e.max===t.max}var p6={duration:.45,ease:[.4,0,.1,1]};function v6(e,t,r){return e||!e&&!(t||r)}var h6={layoutReady:function(e){return e.notifyLayoutReady()}};function H1(){var e=new Set;return{add:function(t){return e.add(t)},flush:function(t){var r=t===void 0?h6:t,n=r.layoutReady,a=r.parent;Np(function(i,o){var s=Array.from(e).sort(jp),u=a?ul(a):[];o(function(){var l=at(at([],Pe(u)),Pe(s));l.forEach(function(c){return c.resetTransform()})}),i(function(){s.forEach(ll)}),o(function(){u.forEach(function(l){return l.restoreTransform()}),s.forEach(n)}),i(function(){s.forEach(function(l){l.isPresent&&(l.presence=xo.Present)})}),o(function(){ba.preRender(),ba.render()}),i(function(){rr.postRender(function(){return s.forEach(m6)}),e.clear()})}),Vp()}}}function m6(e){e.prevViewportBox=e.projection.target}var W1=S.exports.createContext(H1()),g6=S.exports.createContext(H1());function Ln(e){return!!e.forceUpdate}var y6=function(e){Fy(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){var r=this.props,n=r.syncLayout,a=r.framerSyncLayout,i=r.visualElement;Ln(n)&&n.register(i),Ln(a)&&a.register(i),i.onUnmount(function(){Ln(n)&&n.remove(i),Ln(a)&&a.remove(i)})},t.prototype.getSnapshotBeforeUpdate=function(){var r=this.props,n=r.syncLayout,a=r.visualElement;return Ln(n)?n.syncUpdate():(UM(a),n.add(a)),null},t.prototype.componentDidUpdate=function(){var r=this.props.syncLayout;Ln(r)||r.flush()},t.prototype.render=function(){return null},t}(Oe.Component);function b6(e){var t=S.exports.useContext(W1),r=S.exports.useContext(g6);return Jg(y6,Fv({},F({},e,{syncLayout:t,framerSyncLayout:r})))}var x6={measureLayout:b6,layoutAnimation:f6},w6=function(){return{isEnabled:!1,isHydrated:!1,isTargetLocked:!1,target:Zr(),targetFinal:Zr()}};function U1(){return{isHydrated:!1,layout:Zr(),layoutCorrected:Zr(),treeScale:{x:1,y:1},delta:c1(),deltaFinal:c1(),deltaTransform:""}}var Q1=U1();function dl(e,t,r){var n=e.x,a=e.y,i=n.translate/t.x,o=a.translate/t.y,s="translate3d("+i+"px, "+o+"px, 0) ";if(r){var u=r.rotate,l=r.rotateX,c=r.rotateY;u&&(s+="rotate("+u+") "),l&&(s+="rotateX("+l+") "),c&&(s+="rotateY("+c+") ")}return s+="scale("+n.scale+", "+a.scale+")",!r&&s===S6?"":s}function q1(e){var t=e.deltaFinal;return t.x.origin*100+"% "+t.y.origin*100+"% 0"}var S6=dl(Q1.delta,Q1.treeScale,{x:1,y:1}),pl=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];function C6(){var e=pl.map(function(){return new ol}),t={},r={clearAllListeners:function(){return e.forEach(function(n){return n.clear()})},updatePropListeners:function(n){return pl.forEach(function(a){var i;(i=t[a])===null||i===void 0||i.call(t);var o="on"+a,s=n[o];s&&(t[a]=r[o](s))})}};return e.forEach(function(n,a){r["on"+pl[a]]=function(i){return n.add(i)},r["notify"+pl[a]]=function(){for(var i=[],o=0;o=0;B--){var ie=Q.path[B];if(ie.projection.isEnabled){D=ie;break}}A=D}return A},resolveRelativeTargetBox:function(){var D=Q.getProjectionParent();if(!(!k.relativeTarget||!D)&&(HM(k,D.projection),P1(D))){var B=k.target;zp(B,B,D.getLatestValues())}},shouldResetTransform:function(){return Boolean(f._layoutResetTransform)},pointTo:function(D){j=D.projection,U=D.getLatestValues(),V==null||V(),V=go(D.onSetAxisTarget(Q.scheduleUpdateLayoutProjection),D.onLayoutAnimationComplete(function(){var B;Q.isPresent?Q.presence=xo.Present:(B=Q.layoutSafeToRemove)===null||B===void 0||B.call(Q)}))},isPresent:!0,presence:xo.Entering});return Q}};function k6(e){e.resolveRelativeTargetBox()}function _6(e){e.updateLayoutProjection()}var G1=at(["initial"],Pe(Dp)),R6=G1.length,A6=new Set(["width","height","top","left","right","bottom","x","y"]),Y1=function(e){return A6.has(e)},M6=function(e){return Object.keys(e).some(Y1)},X1=function(e,t){e.set(t,!1),e.set(t)},Z1=function(e){return e===Rn||e===Y},J1;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(J1||(J1={}));var ex=function(e,t){return parseFloat(e.split(", ")[t])},tx=function(e,t){return function(r,n){var a=n.transform;if(a==="none"||!a)return 0;var i=a.match(/^matrix3d\((.+)\)$/);if(i)return ex(i[1],t);var o=a.match(/^matrix\((.+)\)$/);return o?ex(o[1],e):0}},F6=new Set(["x","y","z"]),L6=uo.filter(function(e){return!F6.has(e)});function D6(e){var t=[];return L6.forEach(function(r){var n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}var rx={width:function(e){var t=e.x;return t.max-t.min},height:function(e){var t=e.y;return t.max-t.min},top:function(e,t){var r=t.top;return parseFloat(r)},left:function(e,t){var r=t.left;return parseFloat(r)},bottom:function(e,t){var r=e.y,n=t.top;return parseFloat(n)+(r.max-r.min)},right:function(e,t){var r=e.x,n=t.left;return parseFloat(n)+(r.max-r.min)},x:tx(4,13),y:tx(5,14)},I6=function(e,t,r){var n=t.measureViewportBox(),a=t.getInstance(),i=getComputedStyle(a),o=i.display,s=i.top,u=i.left,l=i.bottom,c=i.right,v=i.transform,p={top:s,left:u,bottom:l,right:c,transform:v};o==="none"&&t.setStaticValue("display",e.display||"block"),t.syncRender();var g=t.measureViewportBox();return r.forEach(function(m){var y=t.getValue(m);X1(y,rx[m](n,p)),e[m]=rx[m](g,i)}),e},$6=function(e,t,r,n){r===void 0&&(r={}),n===void 0&&(n={}),t=F({},t),n=F({},n);var a=Object.keys(t).filter(Y1),i=[],o=!1,s=[];if(a.forEach(function(l){var c=e.getValue(l);if(!!e.hasValue(l)){var v=r[l],p=t[l],g=sl(v),m;if(ho(p))for(var y=p.length,d=p[0]===null?1:0;d=0)&&(r[a]=e[a]);return r}var eF=fg({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),tF=nt((e,t)=>{var r=Pn("Spinner",e),n=En(e),{label:a="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:s="transparent",className:u}=n,l=J6(n,["label","thickness","speed","emptyColor","className"]),c=gr("chakra-spinner",u),v=vl({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:s,borderLeftColor:s,animation:eF+" "+o+" linear infinite"},r);return S.exports.createElement(de.div,vl({ref:t,__css:v,className:c},l),a&&S.exports.createElement(ox,null,a))});function hl(){return hl=Object.assign||function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}var sx=e=>{var{label:t,placement:r,children:n=S.exports.createElement(tF,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:i}=e,o=rF(e,["label","placement","spacing","children","className","__css"]),s=gr("chakra-button__spinner",a),u=r==="start"?"marginEnd":"marginStart",l=S.exports.useMemo(()=>hl({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?"0.5rem":0,fontSize:"1em",lineHeight:"normal"},i),[i,t,u]);return S.exports.createElement(de.div,hl({className:s},o,{__css:l}),n)};function qp(){return qp=Object.assign||function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}var ux=e=>{var{children:t,className:r}=e,n=nF(e,["children","className"]),a=S.exports.isValidElement(t)?S.exports.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=gr("chakra-button__icon",r);return S.exports.createElement(de.span,qp({display:"inline-flex",alignSelf:"center",flexShrink:0},n,{className:i}),a)};function aF(e){var[t,r]=S.exports.useState(!e),n=S.exports.useCallback(i=>{!i||r(i.tagName==="BUTTON")},[]),a=t?"button":void 0;return{ref:n,type:a}}function iF(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function Co(){return Co=Object.assign||function(e){for(var t=1;t{var r=Z6(),n=Pn("Button",Co({},r,e)),a=En(e),{isDisabled:i=r==null?void 0:r.isDisabled,isLoading:o,isActive:s,isFullWidth:u,children:l,leftIcon:c,rightIcon:v,loadingText:p,iconSpacing:g="0.5rem",type:m,spinner:y,spinnerPlacement:d="start",className:f,as:h}=a,x=iF(a,["isDisabled","isLoading","isActive","isFullWidth","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"]),w=S.exports.useMemo(()=>{var R,k=tr({},(R=n==null?void 0:n._focus)!=null?R:{},{zIndex:1});return Co({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",width:u?"100%":"auto"},n,!!r&&{_focus:k})},[n,r,u]),{ref:P,type:C}=aF(h),T={rightIcon:v,leftIcon:c,iconSpacing:g,children:l};return S.exports.createElement(de.button,Co({disabled:i||o,ref:FP(t,P),as:h,type:m!=null?m:C,"data-active":gg(s),"data-loading":gg(o),__css:w,className:gr("chakra-button",f)},x),o&&d==="start"&&S.exports.createElement(sx,{className:"chakra-button__spinner--start",label:p,placement:"start"},y),o?p||S.exports.createElement(de.span,{opacity:0},S.exports.createElement(lx,T)):S.exports.createElement(lx,T),o&&d==="end"&&S.exports.createElement(sx,{className:"chakra-button__spinner--end",label:p,placement:"end"},y))});function lx(e){var{leftIcon:t,rightIcon:r,children:n,iconSpacing:a}=e;return S.exports.createElement(S.exports.Fragment,null,t&&S.exports.createElement(ux,{marginEnd:a},t),n,r&&S.exports.createElement(ux,{marginStart:a},r))}function Kp(){return Kp=Object.assign||function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}var PD=nt((e,t)=>{var{icon:r,children:n,isRound:a,"aria-label":i}=e,o=sF(e,["icon","children","isRound","aria-label"]),s=r||n,u=S.exports.isValidElement(s)?S.exports.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;return S.exports.createElement(oF,Kp({padding:"0",borderRadius:a?"full":void 0,ref:t,"aria-label":i},o),u)}),OD=de("div"),TD=de("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});function ml(){return ml=Object.assign||function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}var kD=nt((e,t)=>{var r=En(e),{className:n,centerContent:a}=r,i=uF(r,["className","centerContent"]),o=Pn("Container",e);return S.exports.createElement(de.div,ml({ref:t,className:gr("chakra-container",n)},i,{__css:ml({},o,a&&{display:"flex",flexDirection:"column",alignItems:"center"})}))});function Gp(){return Gp=Object.assign||function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}var _D=nt((e,t)=>{var{direction:r,align:n,justify:a,wrap:i,basis:o,grow:s,shrink:u}=e,l=lF(e,["direction","align","justify","wrap","basis","grow","shrink"]),c={display:"flex",flexDirection:r,alignItems:n,justifyContent:a,flexWrap:i,flexBasis:o,flexGrow:s,flexShrink:u};return S.exports.createElement(de.div,Gp({ref:t,__css:c},l))});function Yp(){return Yp=Object.assign||function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}var RD=nt((e,t)=>{var r=Pn("Heading",e),n=En(e),a=cF(n,["className"]);return S.exports.createElement(de.h2,Yp({ref:t,className:gr("chakra-heading",e.className)},a,{__css:r}))}),Xp="& > *:not(style) ~ *:not(style)";function fF(e){var{spacing:t,direction:r}=e,n={column:{marginTop:t,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:t},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:t,marginStart:0},"row-reverse":{marginTop:0,marginEnd:t,marginBottom:0,marginStart:0}};return{flexDirection:r,[Xp]:wg(r,a=>n[a])}}function dF(e){var{spacing:t,direction:r}=e,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":wg(r,a=>n[a])}}function pF(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function Eo(){return Eo=Object.assign||function(e){for(var t=1;tS.exports.createElement(de.div,Eo({className:"chakra-stack__item"},e,{__css:Eo({display:"inline-block",flex:"0 0 auto",minWidth:0},e.__css)})),AD=nt((e,t)=>{var{isInline:r,direction:n,align:a,justify:i,spacing:o="0.5rem",wrap:s,children:u,divider:l,className:c,shouldWrapChildren:v}=e,p=pF(e,["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"]),g=r?"row":n!=null?n:"column",m=S.exports.useMemo(()=>fF({direction:g,spacing:o}),[g,o]),y=S.exports.useMemo(()=>dF({spacing:o,direction:g}),[o,g]),d=!!l,f=!v&&!d,h=CP(u),x=f?h:h.map((P,C)=>{var T=typeof P.key!="undefined"?P.key:C,R=C+1===h.length,k=S.exports.createElement(vF,{key:T},P),A=v?k:P;if(!d)return A;var j=S.exports.cloneElement(l,{__css:y}),U=R?null:j;return S.exports.createElement(S.exports.Fragment,{key:T},A,U)}),w=gr("chakra-stack",c);return S.exports.createElement(de.div,Eo({ref:t,display:"flex",alignItems:a,justifyContent:i,flexDirection:m.flexDirection,flexWrap:s,className:w,__css:d?{}:{[Xp]:m[Xp]}},p),x)});function Zp(){return Zp=Object.assign||function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}var MD=nt((e,t)=>{var r=Pn("Text",e),n=En(e),a=hF(n,["className","align","decoration","casing"]),i=ld({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return S.exports.createElement(de.p,Zp({ref:t,className:gr("chakra-text",e.className)},i,a,{__css:r}))}),mF=Qr?S.exports.useLayoutEffect:S.exports.useEffect;function FD(e){var t=SO(),r=Array.isArray(e)?e:[e],n=Qr&&"matchMedia"in t.window,[a,i]=S.exports.useState(r.map(o=>n?!!t.window.matchMedia(o).matches:!1));return mF(()=>{if(!!n){var o=r.map(u=>t.window.matchMedia(u)),s=o.map((u,l)=>{var c=()=>i(v=>v.map((p,g)=>l===g?!!u.matches:p));return u.addListener(c),c});return()=>{o.forEach((u,l)=>{u.removeListener(s[l])})}}},[e]),a}function Jr(){return Jr=Object.assign||function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}var LD=nt((e,t)=>{var r=dO("Table",e),n=En(e),{className:a}=n,i=Jp(n,["className"]);return S.exports.createElement(Y2,{value:r},S.exports.createElement(de.table,Jr({role:"table",ref:t,__css:r.table,className:gr("chakra-table",a)},i)))}),DD=nt((e,t)=>{var r=Gi();return S.exports.createElement(de.thead,Jr({},e,{ref:t,__css:r.thead}))}),ID=nt((e,t)=>{var r=Gi();return S.exports.createElement(de.tbody,Jr({},e,{ref:t,__css:r.tbody}))}),$D=nt((e,t)=>{var{isNumeric:r}=e,n=Jp(e,["isNumeric"]),a=Gi();return S.exports.createElement(de.th,Jr({},n,{ref:t,__css:a.th,"data-is-numeric":r}))}),jD=nt((e,t)=>{var r=Gi();return S.exports.createElement(de.tr,Jr({role:"row"},e,{ref:t,__css:r.tr}))}),BD=nt((e,t)=>{var{isNumeric:r}=e,n=Jp(e,["isNumeric"]),a=Gi();return S.exports.createElement(de.td,Jr({role:"gridcell"},n,{ref:t,__css:a.td,"data-is-numeric":r}))});function Po(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function ar(e){if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t?t.defaultView:window}return e}function ev(e){var t=ar(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Oo(e){var t=ar(e).Element;return e instanceof t||e instanceof Element}function ir(e){var t=ar(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function gF(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function yF(e){return e===ar(e)||!ir(e)?ev(e):gF(e)}function Vt(e){return e?(e.nodeName||"").toLowerCase():null}function Sr(e){return(Oo(e)?e.ownerDocument:e.document).documentElement}function tv(e){return Po(Sr(e)).left+ev(e).scrollLeft}function Cr(e){return ar(e).getComputedStyle(e)}function rv(e){var t=Cr(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function bF(e,t,r){r===void 0&&(r=!1);var n=Sr(t),a=Po(e),i=ir(t),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(i||!i&&!r)&&((Vt(t)!=="body"||rv(n))&&(o=yF(t)),ir(t)?(s=Po(t),s.x+=t.clientLeft,s.y+=t.clientTop):n&&(s.x=tv(n))),{x:a.left+o.scrollLeft-s.x,y:a.top+o.scrollTop-s.y,width:a.width,height:a.height}}function nv(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function gl(e){return Vt(e)==="html"?e:e.assignedSlot||e.parentNode||e.host||Sr(e)}function cx(e){return["html","body","#document"].indexOf(Vt(e))>=0?e.ownerDocument.body:ir(e)&&rv(e)?e:cx(gl(e))}function To(e,t){t===void 0&&(t=[]);var r=cx(e),n=Vt(r)==="body",a=ar(r),i=n?[a].concat(a.visualViewport||[],rv(r)?r:[]):r,o=t.concat(i);return n?o:o.concat(To(gl(i)))}function xF(e){return["table","td","th"].indexOf(Vt(e))>=0}function fx(e){if(!ir(e)||Cr(e).position==="fixed")return null;var t=e.offsetParent;if(t){var r=Sr(t);if(Vt(t)==="body"&&Cr(t).position==="static"&&Cr(r).position!=="static")return r}return t}function wF(e){for(var t=gl(e);ir(t)&&["html","body"].indexOf(Vt(t))<0;){var r=Cr(t);if(r.transform!=="none"||r.perspective!=="none"||r.willChange&&r.willChange!=="auto")return t;t=t.parentNode}return null}function ko(e){for(var t=ar(e),r=fx(e);r&&xF(r)&&Cr(r).position==="static";)r=fx(r);return r&&Vt(r)==="body"&&Cr(r).position==="static"?t:r||wF(e)||t}var Ft="top",Ht="bottom",Wt="right",Lt="left",av="auto",_o=[Ft,Ht,Wt,Lt],Fa="start",iv="end",SF="clippingParents",dx="viewport",Ro="popper",CF="reference",px=_o.reduce(function(e,t){return e.concat([t+"-"+Fa,t+"-"+iv])},[]),vx=[].concat(_o,[av]).reduce(function(e,t){return e.concat([t,t+"-"+Fa,t+"-"+iv])},[]),EF="beforeRead",PF="read",OF="afterRead",TF="beforeMain",kF="main",_F="afterMain",RF="beforeWrite",AF="write",MF="afterWrite",FF=[EF,PF,OF,TF,kF,_F,RF,AF,MF];function LF(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function a(i){r.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&a(u)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||a(i)}),n}function DF(e){var t=LF(e);return FF.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function IF(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function or(e){return e.split("-")[0]}function $F(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign(Object.assign(Object.assign({},a),n),{},{options:Object.assign(Object.assign({},a.options),n.options),data:Object.assign(Object.assign({},a.data),n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}function jF(e){var t=ar(e),r=Sr(e),n=t.visualViewport,a=r.clientWidth,i=r.clientHeight,o=0,s=0;return n&&(a=n.width,i=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=n.offsetLeft,s=n.offsetTop)),{width:a,height:i,x:o+tv(e),y:s}}function BF(e){var t=Sr(e),r=ev(e),n=e.ownerDocument.body,a=Math.max(t.scrollWidth,t.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),i=Math.max(t.scrollHeight,t.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),o=-r.scrollLeft+tv(e),s=-r.scrollTop;return Cr(n||t).direction==="rtl"&&(o+=Math.max(t.clientWidth,n?n.clientWidth:0)-a),{width:a,height:i,x:o,y:s}}function hx(e,t){var r=Boolean(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(r){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ov(e){return Object.assign(Object.assign({},e),{},{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zF(e){var t=Po(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function mx(e,t){return t===dx?ov(jF(e)):ir(t)?zF(t):ov(BF(Sr(e)))}function NF(e){var t=To(gl(e)),r=["absolute","fixed"].indexOf(Cr(e).position)>=0,n=r&&ir(e)?ko(e):e;return Oo(n)?t.filter(function(a){return Oo(a)&&hx(a,n)&&Vt(a)!=="body"}):[]}function VF(e,t,r){var n=t==="clippingParents"?NF(e):[].concat(t),a=[].concat(n,[r]),i=a[0],o=a.reduce(function(s,u){var l=mx(e,u);return s.top=Math.max(l.top,s.top),s.right=Math.min(l.right,s.right),s.bottom=Math.min(l.bottom,s.bottom),s.left=Math.max(l.left,s.left),s},mx(e,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Ao(e){return e.split("-")[1]}function sv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function gx(e){var t=e.reference,r=e.element,n=e.placement,a=n?or(n):null,i=n?Ao(n):null,o=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(a){case Ft:u={x:o,y:t.y-r.height};break;case Ht:u={x:o,y:t.y+t.height};break;case Wt:u={x:t.x+t.width,y:s};break;case Lt:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var l=a?sv(a):null;if(l!=null){var c=l==="y"?"height":"width";switch(i){case Fa:u[l]=Math.floor(u[l])-Math.floor(t[c]/2-r[c]/2);break;case iv:u[l]=Math.floor(u[l])+Math.ceil(t[c]/2-r[c]/2);break}}return u}function yx(){return{top:0,right:0,bottom:0,left:0}}function bx(e){return Object.assign(Object.assign({},yx()),e)}function xx(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}function Mo(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,i=r.boundary,o=i===void 0?SF:i,s=r.rootBoundary,u=s===void 0?dx:s,l=r.elementContext,c=l===void 0?Ro:l,v=r.altBoundary,p=v===void 0?!1:v,g=r.padding,m=g===void 0?0:g,y=bx(typeof m!="number"?m:xx(m,_o)),d=c===Ro?CF:Ro,f=e.elements.reference,h=e.rects.popper,x=e.elements[p?d:c],w=VF(Oo(x)?x:x.contextElement||Sr(e.elements.popper),o,u),P=Po(f),C=gx({reference:P,element:h,strategy:"absolute",placement:a}),T=ov(Object.assign(Object.assign({},h),C)),R=c===Ro?T:P,k={top:w.top-R.top+y.top,bottom:R.bottom-w.bottom+y.bottom,left:w.left-R.left+y.left,right:R.right-w.right+y.right},A=e.modifiersData.offset;if(c===Ro&&A){var j=A[a];Object.keys(k).forEach(function(U){var V=[Wt,Ht].indexOf(U)>=0?1:-1,K=[Ft,Ht].indexOf(U)>=0?"y":"x";k[U]+=j[K]*V})}return k}var wx={placement:"bottom",modifiers:[],strategy:"absolute"};function Sx(){for(var e=arguments.length,t=new Array(e),r=0;r=0?-1:1,i=typeof r=="function"?r(Object.assign(Object.assign({},t),{},{placement:e})):r,o=i[0],s=i[1];return o=o||0,s=(s||0)*a,[Lt,Wt].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function rL(e){var t=e.state,r=e.options,n=e.name,a=r.offset,i=a===void 0?[0,0]:a,o=vx.reduce(function(c,v){return c[v]=tL(v,t.rects,i),c},{}),s=o[t.placement],u=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=o}var nL={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:rL},aL={left:"right",right:"left",bottom:"top",top:"bottom"};function bl(e){return e.replace(/left|right|bottom|top/g,function(t){return aL[t]})}var iL={start:"end",end:"start"};function Ex(e){return e.replace(/start|end/g,function(t){return iL[t]})}function oL(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,i=r.rootBoundary,o=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,l=u===void 0?vx:u,c=Ao(n),v=c?s?px:px.filter(function(m){return Ao(m)===c}):_o,p=v.filter(function(m){return l.indexOf(m)>=0});p.length===0&&(p=v);var g=p.reduce(function(m,y){return m[y]=Mo(e,{placement:y,boundary:a,rootBoundary:i,padding:o})[or(y)],m},{});return Object.keys(g).sort(function(m,y){return g[m]-g[y]})}function sL(e){if(or(e)===av)return[];var t=bl(e);return[Ex(e),t,Ex(t)]}function uL(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,i=a===void 0?!0:a,o=r.altAxis,s=o===void 0?!0:o,u=r.fallbackPlacements,l=r.padding,c=r.boundary,v=r.rootBoundary,p=r.altBoundary,g=r.flipVariations,m=g===void 0?!0:g,y=r.allowedAutoPlacements,d=t.options.placement,f=or(d),h=f===d,x=u||(h||!m?[bl(d)]:sL(d)),w=[d].concat(x).reduce(function(q,Z){return q.concat(or(Z)===av?oL(t,{placement:Z,boundary:c,rootBoundary:v,padding:l,flipVariations:m,allowedAutoPlacements:y}):Z)},[]),P=t.rects.reference,C=t.rects.popper,T=new Map,R=!0,k=w[0],A=0;A=0,X=K?"width":"height",H=Mo(t,{placement:j,boundary:c,rootBoundary:v,altBoundary:p,padding:l}),J=K?V?Wt:Lt:V?Ht:Ft;P[X]>C[X]&&(J=bl(J));var ee=bl(J),ue=[];if(i&&ue.push(H[U]<=0),s&&ue.push(H[J]<=0,H[ee]<=0),ue.every(function(q){return q})){k=j,R=!1;break}T.set(j,ue)}if(R)for(var pe=m?3:1,L=function(Z){var Fe=w.find(function(Ke){var Le=T.get(Ke);if(Le)return Le.slice(0,Z).every(function(Ge){return Ge})});if(Fe)return k=Fe,"break"},z=pe;z>0;z--){var I=L(z);if(I==="break")break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}}var lL={name:"flip",enabled:!0,phase:"main",fn:uL,requiresIfExists:["offset"],data:{_skip:!1}};function cL(e){return e==="x"?"y":"x"}function xl(e,t,r){return Math.max(e,Math.min(t,r))}function fL(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,i=a===void 0?!0:a,o=r.altAxis,s=o===void 0?!1:o,u=r.boundary,l=r.rootBoundary,c=r.altBoundary,v=r.padding,p=r.tether,g=p===void 0?!0:p,m=r.tetherOffset,y=m===void 0?0:m,d=Mo(t,{boundary:u,rootBoundary:l,padding:v,altBoundary:c}),f=or(t.placement),h=Ao(t.placement),x=!h,w=sv(f),P=cL(w),C=t.modifiersData.popperOffsets,T=t.rects.reference,R=t.rects.popper,k=typeof y=="function"?y(Object.assign(Object.assign({},t.rects),{},{placement:t.placement})):y,A={x:0,y:0};if(!!C){if(i){var j=w==="y"?Ft:Lt,U=w==="y"?Ht:Wt,V=w==="y"?"height":"width",K=C[w],X=C[w]+d[j],H=C[w]-d[U],J=g?-R[V]/2:0,ee=h===Fa?T[V]:R[V],ue=h===Fa?-R[V]:-T[V],pe=t.elements.arrow,L=g&&pe?nv(pe):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:yx(),I=z[j],q=z[U],Z=xl(0,T[V],L[V]),Fe=x?T[V]/2-J-Z-I-k:ee-Z-I-k,Ke=x?-T[V]/2+J+Z+q+k:ue+Z+q+k,Le=t.elements.arrow&&ko(t.elements.arrow),Ge=Le?w==="y"?Le.clientTop||0:Le.clientLeft||0:0,Ut=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0,rn=C[w]+Fe-Ut-Ge,nn=C[w]+Ke-Ut,Er=xl(g?Math.min(X,rn):X,K,g?Math.max(H,nn):H);C[w]=Er,A[w]=Er-K}if(s){var Q=w==="x"?Ft:Lt,D=w==="x"?Ht:Wt,B=C[P],ie=B+d[Q],Ee=B-d[D],Ae=xl(ie,B,Ee);C[P]=Ae,A[P]=Ae-B}t.modifiersData[n]=A}}var dL={name:"preventOverflow",enabled:!0,phase:"main",fn:fL,requiresIfExists:["offset"]};function pL(e){var t,r=e.state,n=e.name,a=r.elements.arrow,i=r.modifiersData.popperOffsets,o=or(r.placement),s=sv(o),u=[Lt,Wt].indexOf(o)>=0,l=u?"height":"width";if(!(!a||!i)){var c=r.modifiersData[n+"#persistent"].padding,v=nv(a),p=s==="y"?Ft:Lt,g=s==="y"?Ht:Wt,m=r.rects.reference[l]+r.rects.reference[s]-i[s]-r.rects.popper[l],y=i[s]-r.rects.reference[s],d=ko(a),f=d?s==="y"?d.clientHeight||0:d.clientWidth||0:0,h=m/2-y/2,x=c[p],w=f-v[l]-c[g],P=f/2-v[l]/2+h,C=xl(x,P,w),T=s;r.modifiersData[n]=(t={},t[T]=C,t.centerOffset=C-P,t)}}function vL(e){var t=e.state,r=e.options,n=e.name,a=r.element,i=a===void 0?"[data-popper-arrow]":a,o=r.padding,s=o===void 0?0:o;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!hx(t.elements.popper,i)||(t.elements.arrow=i,t.modifiersData[n+"#persistent"]={padding:bx(typeof s!="number"?s:xx(s,_o))}))}var hL={name:"arrow",enabled:!0,phase:"main",fn:pL,effect:vL,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Px(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Ox(e){return[Ft,Wt,Ht,Lt].some(function(t){return e[t]>=0})}function mL(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,o=Mo(t,{elementContext:"reference"}),s=Mo(t,{altBoundary:!0}),u=Px(o,n),l=Px(s,a,i),c=Ox(u),v=Ox(l);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:v},t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-reference-hidden":c,"data-popper-escaped":v})}var gL={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:mL},yL=[UF,qF,XF,eL,nL,lL,dL,hL,gL],bL=HF({defaultModifiers:yL});function uv(){return uv=Object.assign||function(e){for(var t=1;t({var:e,varRef:t?"var("+e+", "+t+")":"var("+e+")"}),qe={arrowShadowColor:La("--popper-arrow-shadow-color"),arrowSize:La("--popper-arrow-size","8px"),arrowSizeHalf:La("--popper-arrow-size-half"),arrowBg:La("--popper-arrow-bg"),transformOrigin:La("--popper-transform-origin"),arrowOffset:La("--popper-arrow-offset")};function xL(e){if(e.includes("top"))return"1px 1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 1px 0 var(--popper-arrow-shadow-color)"}var wL={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},SL=e=>wL[e],Tx={scroll:!0,resize:!0};function CL(e){var t;return typeof e=="object"?t={enabled:!0,options:uv({},Tx,e)}:t={enabled:e,options:Tx},t}var EL={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:e=>{var{state:t}=e;t.styles.popper.width=t.rects.reference.width+"px"},effect:e=>{var{state:t}=e;return()=>{var r=t.elements.reference;t.elements.popper.style.width=r.offsetWidth+"px"}}},PL={name:"transformOrigin",enabled:!0,phase:"write",fn:e=>{var{state:t}=e;kx(t)},effect:e=>{var{state:t}=e;return()=>{kx(t)}}},kx=e=>{e.elements.popper.style.setProperty(qe.transformOrigin.var,SL(e.placement))},OL={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:e=>{var{state:t}=e;TL(t)}},TL=e=>{var t;if(!!e.placement){var r=kL(e.placement);if((t=e.elements)!=null&&t.arrow&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:qe.arrowSize.varRef,height:qe.arrowSize.varRef,zIndex:-1});var n={[qe.arrowSizeHalf.var]:"calc("+qe.arrowSize.varRef+" / 2)",[qe.arrowOffset.var]:"calc("+qe.arrowSizeHalf.varRef+" * -1)"};for(var a in n)e.elements.arrow.style.setProperty(a,n[a])}}},kL=e=>{if(e.startsWith("top"))return{property:"bottom",value:qe.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:qe.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:qe.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:qe.arrowOffset.varRef}},_L={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:e=>{var{state:t}=e;_x(t)},effect:e=>{var{state:t}=e;return()=>{_x(t)}}},_x=e=>{if(!!e.elements.arrow){var t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");!t||Object.assign(t.style,{transform:"rotate(45deg)",background:qe.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:xL(e.placement)})}},RL={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},AL={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function ML(e,t){var r,n;t===void 0&&(t="ltr");var a=((r=RL[e])==null?void 0:r[t])||e;return t==="ltr"?a:(n=AL[e])!=null?n:a}function FL(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function sr(){return sr=Object.assign||function(e){for(var t=1;t{}),x=S.exports.useCallback(()=>{!t||!m.current||!y.current||(h.current==null||h.current(),d.current=bL(m.current,y.current,{placement:f,modifiers:[_L,OL,PL,sr({},EL,{enabled:!!p}),sr({name:"eventListeners"},CL(o)),{name:"arrow",options:{padding:i}},{name:"offset",options:{offset:s!=null?s:[0,u]}},{name:"flip",enabled:!!l,options:{padding:8}},{name:"preventOverflow",enabled:!!v,options:{boundary:c}},...r],strategy:a}),d.current.forceUpdate(),h.current=d.current.destroy)},[f,t,r,p,o,i,s,u,l,v,c,a]);S.exports.useEffect(()=>()=>{if(!m.current&&!y.current){var A;(A=d.current)==null||A.destroy(),d.current=null}},[]);var w=S.exports.useCallback(A=>{m.current=A,x()},[x]),P=S.exports.useCallback(function(A,j){return A===void 0&&(A={}),j===void 0&&(j=null),sr({},A,{ref:vd(w,j)})},[w]),C=S.exports.useCallback(A=>{y.current=A,x()},[x]),T=S.exports.useCallback(function(A,j){return A===void 0&&(A={}),j===void 0&&(j=null),sr({},A,{ref:vd(C,j),style:sr({},A.style,{position:a,minWidth:"max-content",inset:"0 auto auto 0"})})},[a,C]),R=S.exports.useCallback(function(A,j){A===void 0&&(A={}),j===void 0&&(j=null);var U=FL(A,["size","shadowColor","bg","style"]);return sr({},U,{ref:j,"data-popper-arrow":"",style:DL(A)})},[]),k=S.exports.useCallback(function(A,j){return A===void 0&&(A={}),j===void 0&&(j=null),sr({},A,{ref:j,"data-popper-arrow-inner":""})},[]);return{update(){var A;(A=d.current)==null||A.update()},forceUpdate(){var A;(A=d.current)==null||A.forceUpdate()},transformOrigin:qe.transformOrigin.varRef,referenceRef:w,popperRef:C,getPopperProps:T,getArrowProps:R,getArrowInnerProps:k,getReferenceProps:P}}function DL(e){var{size:t,shadowColor:r,bg:n,style:a}=e,i=sr({},a,{position:"absolute"});return t&&(i["--popper-arrow-size"]=t),r&&(i["--popper-arrow-shadow-color"]=r),n&&(i["--popper-arrow-bg"]=n),i}function lv(e,t){return lv=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},lv(e,t)}function Fo(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,lv(e,t)}var IL={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}};function Dn(){return Dn=Object.assign||function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}function jL(e){e===void 0&&(e={});var{openDelay:t=0,closeDelay:r=0,closeOnClick:n=!0,closeOnMouseDown:a,onOpen:i,onClose:o,placement:s,id:u,isOpen:l,defaultIsOpen:c,arrowSize:v=10,arrowShadowColor:p,arrowPadding:g,modifiers:m,isDisabled:y,gutter:d,offset:f,direction:h}=e,x=$L(e,["openDelay","closeDelay","closeOnClick","closeOnMouseDown","onOpen","onClose","placement","id","isOpen","defaultIsOpen","arrowSize","arrowShadowColor","arrowPadding","modifiers","isDisabled","gutter","offset","direction"]),{isOpen:w,onOpen:P,onClose:C}=RP({isOpen:l,defaultIsOpen:c,onOpen:i,onClose:o}),{referenceRef:T,getPopperProps:R,getArrowInnerProps:k,getArrowProps:A}=LL({enabled:w,placement:s,arrowPadding:g,modifiers:m,gutter:d,offset:f,direction:h}),j=Cg(u,"tooltip"),U=S.exports.useRef(null),V=S.exports.useRef(),K=S.exports.useRef(),X=S.exports.useCallback(()=>{y||(V.current=window.setTimeout(P,t))},[y,P,t]),H=S.exports.useCallback(()=>{V.current&&clearTimeout(V.current),K.current=window.setTimeout(C,r)},[r,C]),J=S.exports.useCallback(()=>{n&&H()},[n,H]),ee=S.exports.useCallback(()=>{a&&H()},[a,H]),ue=I=>{w&&I.key==="Escape"&&H()};Eg("keydown",ue),S.exports.useEffect(()=>()=>{clearTimeout(V.current),clearTimeout(K.current)},[]),Eg("mouseleave",H,()=>U.current);var pe=S.exports.useCallback(function(I,q){I===void 0&&(I={}),q===void 0&&(q=null);var Z=Dn({},I,{ref:vd(U,q,T),onMouseEnter:ga(I.onMouseEnter,X),onClick:ga(I.onClick,J),onMouseDown:ga(I.onMouseDown,ee),onFocus:ga(I.onFocus,X),onBlur:ga(I.onBlur,H),"aria-describedby":w?j:void 0});return Z},[X,H,ee,w,j,J,T]),L=S.exports.useCallback(function(I,q){return I===void 0&&(I={}),q===void 0&&(q=null),R(Dn({},I,{style:Dn({},I.style,{[qe.arrowSize.var]:v?gu(v):void 0,[qe.arrowShadowColor.var]:p})}),q)},[R,v,p]),z=S.exports.useCallback(function(I,q){I===void 0&&(I={}),q===void 0&&(q=null);var Z=Dn({ref:q},x,I,{id:j,role:"tooltip",style:Dn({},I.style,{position:"relative",transformOrigin:qe.transformOrigin.varRef})});return Z},[x,j]);return{isOpen:w,show:X,hide:H,getTriggerProps:pe,getTooltipProps:z,getTooltipPositionerProps:L,getArrowProps:A,getArrowInnerProps:k}}function Da(){return Da=Object.assign||function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}var zL=de(U6.div),zD=nt((e,t)=>{var r=Pn("Tooltip",e),n=En(e),a=Ug(),{children:i,label:o,shouldWrapChildren:s,"aria-label":u,hasArrow:l,bg:c,portalProps:v}=n,p=BL(n,["children","label","shouldWrapChildren","aria-label","hasArrow","bg","portalProps"]);c&&(r.bg=c,r[qe.arrowBg.var]=sP(a,"colors",c));var g=jL(Da({},p,{direction:a.direction})),m=hu(i)||s,y;if(m)y=S.exports.createElement(de.span,Da({tabIndex:0},g.getTriggerProps()),i);else{var d=S.exports.Children.only(i);y=S.exports.cloneElement(d,g.getTriggerProps(d.props,d.ref))}var f=!!u,h=g.getTooltipProps({},t),x=f?ud(h,["role","id"]):h,w=pg(h,["role","id"]);return o?S.exports.createElement(S.exports.Fragment,null,y,S.exports.createElement(X6,null,g.isOpen&&S.exports.createElement(Eu,v,S.exports.createElement(de.div,Da({},g.getTooltipPositionerProps(),{__css:{zIndex:r.zIndex,pointerEvents:"none"}}),S.exports.createElement(zL,Da({variants:IL},x,{initial:"exit",animate:"enter",exit:"exit",__css:r}),o,f&&S.exports.createElement(ox,w,u),l&&S.exports.createElement(de.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper"},S.exports.createElement(de.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:r.bg}}))))))):S.exports.createElement(S.exports.Fragment,null,i)}),Rx={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ax=Oe.createContext&&Oe.createContext(Rx),en=globalThis&&globalThis.__assign||function(){return en=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}(),Sl=typeof window=="undefined";function je(){}function HL(e,t){return typeof e=="function"?e(t):e}function cv(e){return typeof e=="number"&&e>=0&&e!==1/0}function Cl(e){return Array.isArray(e)?e:[e]}function Fx(e,t){return Math.max(e+(t||0)-Date.now(),0)}function El(e,t,r){return Tl(e)?typeof t=="function"?ae({},r,{queryKey:e,queryFn:t}):ae({},t,{queryKey:e}):e}function tn(e,t,r){return Tl(e)?[ae({},t,{queryKey:e}),r]:[e||{},t]}function WL(e,t){if(e===!0&&t===!0||e==null&&t==null)return"all";if(e===!1&&t===!1)return"none";var r=e!=null?e:!t;return r?"active":"inactive"}function Lx(e,t){var r=e.active,n=e.exact,a=e.fetching,i=e.inactive,o=e.predicate,s=e.queryKey,u=e.stale;if(Tl(s)){if(n){if(t.queryHash!==fv(s,t.options))return!1}else if(!Pl(t.queryKey,s))return!1}var l=WL(r,i);if(l==="none")return!1;if(l!=="all"){var c=t.isActive();if(l==="active"&&!c||l==="inactive"&&c)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||typeof a=="boolean"&&t.isFetching()!==a||o&&!o(t))}function Dx(e,t){var r=e.exact,n=e.fetching,a=e.predicate,i=e.mutationKey;if(Tl(i)){if(!t.options.mutationKey)return!1;if(r){if(In(t.options.mutationKey)!==In(i))return!1}else if(!Pl(t.options.mutationKey,i))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||a&&!a(t))}function fv(e,t){var r=(t==null?void 0:t.queryKeyHashFn)||In;return r(e)}function In(e){var t=Cl(e);return UL(t)}function UL(e){return JSON.stringify(e,function(t,r){return dv(r)?Object.keys(r).sort().reduce(function(n,a){return n[a]=r[a],n},{}):r})}function Pl(e,t){return Ix(Cl(e),Cl(t))}function Ix(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(function(r){return!Ix(e[r],t[r])}):!1}function Ol(e,t){if(e===t)return e;var r=Array.isArray(e)&&Array.isArray(t);if(r||dv(e)&&dv(t)){for(var n=r?e.length:Object.keys(e).length,a=r?t:Object.keys(t),i=a.length,o=r?[]:{},s=0,u=0;u0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>p.dataUpdateCount||m.errorUpdateCount>p.errorUpdateCount,isFetching:h,isRefetching:h&&x!=="loading",isLoadingError:x==="error"&&m.dataUpdatedAt===0,isPlaceholderData:P,isPreviousData:w,isRefetchError:x==="error"&&m.dataUpdatedAt!==0,isStale:Io(a,i),refetch:this.refetch,remove:this.remove};return j},r.shouldNotifyListeners=function(a,i){if(!i)return!0;if(a===i)return!1;var o=this.options,s=o.notifyOnChangeProps,u=o.notifyOnChangePropsExclusions;if(!s&&!u||s==="tracked"&&!this.trackedProps.length)return!0;var l=s==="tracked"?this.trackedProps:s;return Object.keys(a).some(function(c){var v=c,p=a[v]!==i[v],g=l==null?void 0:l.some(function(y){return y===c}),m=u==null?void 0:u.some(function(y){return y===c});return p&&!m&&(!l||g)})},r.updateResult=function(a){var i=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!QL(this.currentResult,i)){var o={cache:!0};(a==null?void 0:a.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,i)&&(o.listeners=!0),this.notify(ae({},o,a))}},r.updateQuery=function(){var a=this.client.getQueryCache().build(this.client,this.options);if(a!==this.currentQuery){var i=this.currentQuery;this.currentQuery=a,this.currentQueryInitialState=a.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(i==null||i.removeObserver(this),a.addObserver(this))}},r.onQueryUpdate=function(a){var i={};a.type==="success"?i.onSuccess=!0:a.type==="error"&&!Rl(a.error)&&(i.onError=!0),this.updateResult(i),this.hasListeners()&&this.updateTimers()},r.notify=function(a){var i=this;Re.batch(function(){a.onSuccess?(i.options.onSuccess==null||i.options.onSuccess(i.currentResult.data),i.options.onSettled==null||i.options.onSettled(i.currentResult.data,null)):a.onError&&(i.options.onError==null||i.options.onError(i.currentResult.error),i.options.onSettled==null||i.options.onSettled(void 0,i.currentResult.error)),a.listeners&&i.listeners.forEach(function(o){o(i.currentResult)}),a.cache&&i.client.getQueryCache().notify({query:i.currentQuery,type:"observerResultsUpdated"})})},t}(Lo);function uD(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function lD(e,t){return t.enabled!==!1&&e.state.dataUpdatedAt>0&&(t.refetchOnMount==="always"||t.refetchOnMount!==!1&&Io(e,t))}function Wx(e,t){return uD(e,t)||lD(e,t)}function cD(e,t){return t.enabled!==!1&&(t.refetchOnReconnect==="always"||t.refetchOnReconnect!==!1&&Io(e,t))}function fD(e,t){return t.enabled!==!1&&(t.refetchOnWindowFocus==="always"||t.refetchOnWindowFocus!==!1&&Io(e,t))}function Ux(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error"||n.enabled===!1)&&Io(e,r)}function Io(e,t){return e.isStaleByTime(t.staleTime)}var dD=sE.unstable_batchedUpdates;Re.setBatchNotifyFunction(dD);var pD=console;ZL(pD);var Qx=Oe.createContext(void 0),qx=Oe.createContext(!1);function Kx(e){return e&&typeof window!="undefined"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Qx),window.ReactQueryClientContext):Qx}var vD=function(){var t=Oe.useContext(Kx(Oe.useContext(qx)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},QD=function(t){var r=t.client,n=t.contextSharing,a=n===void 0?!1:n,i=t.children;Oe.useEffect(function(){return r.mount(),function(){r.unmount()}},[r]);var o=Kx(a);return Oe.createElement(qx.Provider,{value:a},Oe.createElement(o.Provider,{value:r},i))};function hD(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var mD=Oe.createContext(hD()),gD=function(){return Oe.useContext(mD)};function yD(e,t,r){return typeof t=="function"?t(r):typeof t=="boolean"?t:!!e}function bD(e,t){var r=Oe.useRef(!1),n=Oe.useState(0),a=n[1],i=vD(),o=gD(),s=i.defaultQueryObserverOptions(e);s.optimisticResults=!0,s.onError&&(s.onError=Re.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=Re.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=Re.batchCalls(s.onSettled)),s.suspense&&(typeof s.staleTime!="number"&&(s.staleTime=1e3),s.cacheTime===0&&(s.cacheTime=1)),(s.suspense||s.useErrorBoundary)&&(o.isReset()||(s.retryOnMount=!1));var u=Oe.useState(function(){return new t(i,s)}),l=u[0],c=l.getOptimisticResult(s);if(Oe.useEffect(function(){r.current=!0,o.clearReset();var v=l.subscribe(Re.batchCalls(function(){r.current&&a(function(p){return p+1})}));return l.updateResult(),function(){r.current=!1,v()}},[o,l]),Oe.useEffect(function(){l.setOptions(s,{listeners:!1})},[s,l]),s.suspense&&c.isLoading)throw l.fetchOptimistic(s).then(function(v){var p=v.data;s.onSuccess==null||s.onSuccess(p),s.onSettled==null||s.onSettled(p,null)}).catch(function(v){o.clearReset(),s.onError==null||s.onError(v),s.onSettled==null||s.onSettled(void 0,v)});if(c.isError&&!c.isFetching&&yD(s.suspense,s.useErrorBoundary,c.error))throw c.error;return s.notifyOnChangeProps==="tracked"&&(c=l.trackResult(c)),c}function qD(e,t,r){var n=El(e,t,r);return bD(n,sD)}export{OD as B,TD as C,HD as F,RD as H,PD as I,UD as Q,Oe as R,AD as S,MD as T,FD as a,yd as b,xO as c,VD as d,_D as e,SD as f,LD as g,DD as h,jD as i,Jg as j,$D as k,ID as l,BD as m,zD as n,qD as o,kD as p,ND as q,S as r,WD as s,QD as t,wD as u,CD as v,sE as w,RA as x}; diff --git a/cmd/cli/ui/index.html b/cmd/cli/ui/index.html new file mode 100644 index 0000000..fce237c --- /dev/null +++ b/cmd/cli/ui/index.html @@ -0,0 +1,16 @@ + + + + + + + Vite App + + + + + +
+ + + diff --git a/web/package.json b/web/package.json index 8abcaeb..d79c76d 100644 --- a/web/package.json +++ b/web/package.json @@ -13,10 +13,11 @@ "framer-motion": "^4", "react": "^17.0.0", "react-dom": "^17.0.0", - "react-icons": "^4.2.0" + "react-icons": "^4.2.0", + "react-query": "^3.32.0" }, "devDependencies": { "@vitejs/plugin-react": "^1.0.0", "vite": "^2.6.4" } -} \ No newline at end of file +} diff --git a/web/src/App.jsx b/web/src/App.jsx index b55664f..56e0b7d 100644 --- a/web/src/App.jsx +++ b/web/src/App.jsx @@ -2,15 +2,17 @@ import { useState } from 'react' import Header from './components/Header' import Footer from './components/Footer' import Endpoints from './components/Endpoints' +import { QueryClient, QueryClientProvider, useQuery } from 'react-query' +const queryClient = new QueryClient() function App() { return ( - <> +