diff --git a/assets/Cart-Dp-s2XBF.js b/assets/Cart-Dp-s2XBF.js new file mode 100644 index 0000000..4068837 --- /dev/null +++ b/assets/Cart-Dp-s2XBF.js @@ -0,0 +1 @@ +import{j as e,u as h,r as m}from"./index-Eg2EyhEo.js";const f="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='128'%20height='128'%20fill='none'%20viewBox='0%200%20128%20128'%3e%3cpath%20fill='%23260F08'%20d='M8.436%20110.406c0%201.061%204.636%202.079%2012.887%202.829%208.252.75%2019.444%201.171%2031.113%201.171%2011.67%200%2022.861-.421%2031.113-1.171%208.251-.75%2012.887-1.768%2012.887-2.829%200-1.061-4.636-2.078-12.887-2.828-8.252-.75-19.443-1.172-31.113-1.172-11.67%200-22.861.422-31.113%201.172-8.251.75-12.887%201.767-12.887%202.828Z'%20opacity='.15'/%3e%3cpath%20fill='%2387635A'%20d='m119.983%2024.22-47.147%205.76%204.32%2035.36%2044.773-5.467a2.377%202.377%200%200%200%202.017-1.734c.083-.304.104-.62.063-.933l-4.026-32.986Z'/%3e%3cpath%20fill='%23AD8A85'%20d='m74.561%2044.142%2047.147-5.754%201.435%2011.778-47.142%205.758-1.44-11.782Z'/%3e%3cpath%20fill='%23CAAFA7'%20d='M85.636%2036.78a2.4%202.4%200%200%200-2.667-2.054%202.375%202.375%200%200%200-2.053%202.667l.293%202.347a3.574%203.574%200%200%201-7.066.88l-1.307-10.667%2014.48-16.88c19.253-.693%2034.133%203.6%2035.013%2010.8l1.28%2010.533a1.172%201.172%200%200%201-1.333%201.307%204.696%204.696%200%200%201-3.787-4.08%202.378%202.378%200%201%200-4.72.587l.294%202.346a2.389%202.389%200%200%201-.484%201.755%202.387%202.387%200%200%201-1.583.899%202.383%202.383%200%200%201-1.755-.484%202.378%202.378%200%200%201-.898-1.583%202.371%202.371%200%200%200-1.716-2.008%202.374%202.374%200%200%200-2.511.817%202.374%202.374%200%200%200-.493%201.751l.293%202.373a4.753%204.753%200%200%201-7.652%204.317%204.755%204.755%200%200%201-1.788-3.17l-.427-3.547a2.346%202.346%200%200%200-2.666-2.053%202.4%202.4%200%200%200-2.08%202.667l.16%201.173a2.378%202.378%200%201%201-4.72.587l-.107-1.28Z'/%3e%3cpath%20stroke='%23fff'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='.974'%20d='m81.076%2028.966%2034.187-4.16'/%3e%3cpath%20fill='%2387635A'%20d='M7.45%2051.793c-.96%208.48%2016.746%2017.44%2039.466%2019.947%2022.72%202.506%2042.08-2.16%2043.04-10.667l-3.947%2035.493c-.96%208.48-20.24%2013.334-43.04%2010.667S2.463%2095.74%203.423%2087.18l4.026-35.387Z'/%3e%3cpath%20fill='%23AD8A85'%20d='M5.823%2065.953c-.96%208.453%2016.746%2017.44%2039.573%2020.027%2022.827%202.586%2042.053-2.187%2043.013-10.667L87.076%2087.1c-.96%208.48-20.24%2013.333-43.04%2010.666C21.236%2095.1%203.53%2086.22%204.49%2077.74l1.334-11.787Z'/%3e%3cpath%20fill='%23CAAFA7'%20d='M60.836%2042.78a119.963%20119.963%200%200%200-10.347-1.627c-24-2.667-44.453%201.893-45.333%2010.373l-2.133%2018.88a3.556%203.556%200%201%200%207.066.8%203.574%203.574%200%201%201%207.094.8l-.8%207.094a5.93%205.93%200%201%200%2011.786%201.333%203.556%203.556%200%200%201%207.067.8l-.267%202.347a3.573%203.573%200%200%200%207.094.826l.133-1.2a5.932%205.932%200%201%201%2011.787%201.36l-.4%203.52a3.573%203.573%200%200%200%207.093.827l.933-8.267a1.174%201.174%200%200%201%201.307-.906%201.146%201.146%200%200%201%201.04%201.306%205.947%205.947%200%200%200%2011.813%201.334l.534-4.72a3.556%203.556%200%200%201%207.066.8%203.573%203.573%200%200%200%207.094.826l1.786-15.546a2.373%202.373%200%200%200-2.08-2.667L44.143%2055.74l16.693-12.96Z'/%3e%3cpath%20fill='%2387635A'%20d='m59.156%2057.66%201.68-14.88-16.827%2013.173%2015.147%201.707Z'/%3e%3cpath%20stroke='%23fff'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='.974'%20d='M9.796%2052.06c-.667%205.866%2016.24%2012.586%2037.733%2015.04%2014.774%201.68%2027.867.906%2034.854-1.654'/%3e%3c/svg%3e",p="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='10'%20height='10'%20fill='none'%20viewBox='0%200%2010%2010'%3e%3cpath%20fill='%23CAAFA7'%20d='M8.375%209.375%205%206%201.625%209.375l-1-1L4%205%20.625%201.625l1-1L5%204%208.375.625l1%201L6%205l3.375%203.375-1%201Z'/%3e%3c/svg%3e";function u({item:t,removeItemFromCartCompletely:l}){const r=t.name,n=t.count,o=t.price,c=(n*o).toFixed(2);return e.jsxs("div",{className:"flex flex-row items-center justify-between mt-5 border-b-2 border-rose100 pb-3",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold",children:r}),e.jsxs("p",{className:"mt-1",children:[e.jsxs("span",{className:"text-redGiven font-semibold",children:[n,"x"]}),e.jsxs("span",{className:"font-thin text-rose900 ml-5 text-sm",children:["@ $",o]}),e.jsxs("span",{className:"font-extralight text-rose900 ml-3 text-sm",children:["$",c]})]})]}),e.jsx("button",{className:"rounded-full",onClick:()=>{l(r)},children:e.jsx("img",{src:p,alt:"Remove item",className:"border border-rose300 rounded-full h-4 p-[2px] hover:border-rose900 "})})]})}const v="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='21'%20height='20'%20fill='none'%20viewBox='0%200%2021%2020'%3e%3cpath%20fill='%231EA575'%20d='M8%2018.75H6.125V17.5H8V9.729L5.803%208.41l.644-1.072%202.196%201.318a1.256%201.256%200%200%201%20.607%201.072V17.5A1.25%201.25%200%200%201%208%2018.75Z'/%3e%3cpath%20fill='%231EA575'%20d='M14.25%2018.75h-1.875a1.25%201.25%200%200%201-1.25-1.25v-6.875h3.75a2.498%202.498%200%200%200%202.488-2.747%202.594%202.594%200%200%200-2.622-2.253h-.99l-.11-.487C13.283%203.56%2011.769%202.5%209.875%202.5a3.762%203.762%200%200%200-3.4%202.179l-.194.417-.54-.072A1.876%201.876%200%200%200%205.5%205a2.5%202.5%200%201%200%200%205v1.25a3.75%203.75%200%200%201%200-7.5h.05a5.019%205.019%200%200%201%204.325-2.5c2.3%200%204.182%201.236%204.845%203.125h.02a3.852%203.852%200%200%201%203.868%203.384%203.75%203.75%200%200%201-3.733%204.116h-2.5V17.5h1.875v1.25Z'/%3e%3c/svg%3e";function g({totalOrderPrice:t,setOrderConfirmed:l}){return e.jsxs("div",{className:"my-6",children:[e.jsxs("p",{className:"text-sm flex items-center justify-between",children:[e.jsx("span",{children:"Order Total"}),e.jsxs("span",{className:"font-extrabold text-xl",children:["$",t.toFixed(2)]})]}),e.jsxs("div",{className:"text-center my-6 p-3 rounded-lg flex items-center justify-center gap-2 bg-rose100",children:[e.jsx("img",{src:v,alt:"Carbon neutral delivery",className:"h-6"}),e.jsxs("p",{className:"text-rose500 font-medium",children:["This is a ",e.jsx("span",{className:"font-semibold text-sm text-rose900",children:"carbon-neutral"})," delivery"]})]}),e.jsx("button",{className:"bg-redGiven w-full py-3 px-2 rounded-3xl text-rose50 font-semibold hover:opacity-80",onClick:()=>{l(!0)},children:"Confirm Order"})]})}function w(){const{cartItems:t,setCartItems:l,setOrderConfirmed:r,totalOrderPrice:n,setTotalOrderPrice:o}=h(),[c,d]=m.useState(0);m.useEffect(()=>{let s=0,i=0;t.forEach(a=>{s+=a.count,i+=a.price*a.count}),d(s),o(i)},[t]);const x=s=>{l(i=>i.filter(a=>a.name!==s))};return e.jsx("div",{className:"relative flex-grow max-w-[90vw] sm:max-w-96 min-w-fit sm:mr-2",children:e.jsxs("div",{className:"bg-rose50 sticky top-0 left-0 w-full min-h-56 mt-4 sm:m-4 p-4 pb-1 rounded-lg",children:[e.jsxs("p",{className:"text-redGiven font-bold text-2xl mb-4",children:["Your Cart (",c,")"]}),c<=0?e.jsxs(e.Fragment,{children:[e.jsx("img",{src:f,alt:"Empty Cart",className:"mx-auto mt-6"}),e.jsx("p",{className:"mt-4 mb-6 text-center text-rose500 font-semibold",children:"Your added items will appear here"})]}):e.jsxs(e.Fragment,{children:[t.map(s=>s.count>0?e.jsx(u,{item:s,removeItemFromCartCompletely:x},s.name):null),e.jsx(g,{totalOrderPrice:n,setOrderConfirmed:r})]})]})})}export{w as default}; diff --git a/assets/DessertContainer-COJbiqgu.js b/assets/DessertContainer-COJbiqgu.js new file mode 100644 index 0000000..013f8a1 --- /dev/null +++ b/assets/DessertContainer-COJbiqgu.js @@ -0,0 +1 @@ +import{j as e,u as p,r as a,a as j,L as b}from"./index-Eg2EyhEo.js";const C="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='21'%20height='20'%20fill='none'%20viewBox='0%200%2021%2020'%3e%3cg%20fill='%23C73B0F'%20clip-path='url(%23a)'%3e%3cpath%20d='M6.583%2018.75a1.25%201.25%200%201%200%200-2.5%201.25%201.25%200%200%200%200%202.5ZM15.334%2018.75a1.25%201.25%200%201%200%200-2.5%201.25%201.25%200%200%200%200%202.5ZM3.446%201.752a.625.625%200%200%200-.613-.502h-2.5V2.5h1.988l2.4%2011.998a.625.625%200%200%200%20.612.502h11.25v-1.25H5.847l-.5-2.5h11.238a.625.625%200%200%200%20.61-.49l1.417-6.385h-1.28L16.083%2010H5.096l-1.65-8.248Z'/%3e%3cpath%20d='M11.584%203.75v-2.5h-1.25v2.5h-2.5V5h2.5v2.5h1.25V5h2.5V3.75h-2.5Z'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M.333%200h20v20h-20z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",y="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='10'%20height='10'%20fill='none'%20viewBox='0%200%2010%2010'%3e%3cpath%20fill='%23fff'%20d='M10%204.375H5.625V0h-1.25v4.375H0v1.25h4.375V10h1.25V5.625H10v-1.25Z'/%3e%3c/svg%3e",N="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='10'%20height='2'%20fill='none'%20viewBox='0%200%2010%202'%3e%3cpath%20fill='%23fff'%20d='M0%20.375h10v1.25H0V.375Z'/%3e%3c/svg%3e";function I({addedInCartCount:s,addItemToCart:r,removeItemFromCart:o}){return e.jsx(e.Fragment,{children:s<=0?e.jsxs("button",{className:"flex items-center min-w-36 gap-2 border border-rose400 py-3 px-5 mx-auto -translate-y-1/2 rounded-3xl bg-rose50 hover:text-redGiven hover:border-redGiven",onClick:r,children:[e.jsx("img",{src:C,alt:"Add to cart"}),e.jsx("span",{children:"Add to Cart"})]}):e.jsxs("div",{className:"flex items-center justify-between w-36 py-3 px-5 mx-auto -translate-y-1/2 rounded-3xl bg-redGiven border border-redGiven text-rose50",children:[e.jsx("button",{className:"flex items-center justify-center rounded-full border border-rose50 h-5 w-5 p-1 hover:opacity-65",onClick:o,children:e.jsx("img",{src:N,alt:"Decrease quantity",className:"w-full"})}),e.jsx("span",{children:s}),e.jsx("button",{className:"flex items-center justify-center rounded-full border border-rose50 h-5 w-5 p-1 hover:opacity-65",onClick:r,children:e.jsx("img",{src:y,alt:"Increase quantity",className:"w-full"})})]})})}function D({dessertItem:s}){const r=s.name,o=s.category,i=s.price,d=s.image.thumbnail,{cartItems:l,setCartItems:n}=p(),[c,h]=a.useState(0);a.useEffect(()=>{[...l].findIndex(x=>x.name===r)<0&&h(0)},[l]),a.useEffect(()=>{const t=[...l],m=t.findIndex(x=>x.name===r);m>=0?t[m]={name:r,price:i,count:c,thumbnail:`/Product-listing-with-cart/${d}`}:c>0&&t.push({name:r,price:i,count:c,thumbnail:`/Product-listing-with-cart/${d}`}),n(t)},[c]);const u=t=>t>=1024?`/Product-listing-with-cart/${s.image.desktop}`:t>=768?`/Product-listing-with-cart/${s.image.tablet}`:`/Product-listing-with-cart/${s.image.mobile}`,[f,g]=a.useState(u(window.innerWidth));a.useEffect(()=>{const t=()=>{g(u(window.innerWidth))};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[]);const w=()=>{h(t=>t+1)},v=()=>{h(t=>t-1)};return e.jsxs("div",{className:"w-52 max-w-[90vw] mx-4 my-4",children:[e.jsx("img",{src:f,alt:r,className:`rounded-lg w-full border-2 ${c>0?"border-redGiven":"border-transparent"}`}),e.jsx(I,{addedInCartCount:c,addItemToCart:w,removeItemFromCart:v}),e.jsxs("div",{children:[e.jsx("p",{className:"text-rose500 text-sm -mt-2",children:o}),e.jsx("p",{className:"text-rose900 font-semibold",children:r}),e.jsxs("p",{className:"text-redGiven font-semibold",children:["$",i.toFixed(2)]})]})]})}function E(){return e.jsxs("div",{className:"sm:w-[40vw] w-[100vw] text-redGiven font-semibold",children:[e.jsx("p",{className:"text-2xl mt-8",children:"Something went wrong"}),e.jsx("p",{className:"text-xl",children:"Try refreshing the page!!"})]})}function V(){const{dessertData:s,setDessertData:r}=j(),[o,i]=a.useState(!0),[d,l]=a.useState(!1);return a.useEffect(()=>{fetch("/Product-listing-with-cart/data.json").then(n=>n.json()).then(n=>{r(n),i(!1)}).catch(n=>{console.log(n),l(!0),i(!1)})},[]),e.jsxs("div",{className:"max-w-[750px]",children:[e.jsx("h1",{className:"ml-14 mr-14 mb-3 text-rose900 text-3xl font-bold",children:"Desserts"}),e.jsx("div",{className:"flex flex-wrap relative justify-center min-w-10",children:o?e.jsx(b,{height:"100vh"}):d?e.jsx(E,{}):s.map(n=>e.jsx(D,{dessertItem:n},n.name))})]})}export{V as default}; diff --git a/assets/OrderConfirmedWindow-D5tYrl2q.js b/assets/OrderConfirmedWindow-D5tYrl2q.js new file mode 100644 index 0000000..2321c93 --- /dev/null +++ b/assets/OrderConfirmedWindow-D5tYrl2q.js @@ -0,0 +1 @@ +import{j as e,u as i,r as a}from"./index-Eg2EyhEo.js";const m="data:image/svg+xml,%3csvg%20width='48'%20height='48'%20viewBox='0%200%2048%2048'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M21%2032.121L13.5%2024.6195L15.6195%2022.5L21%2027.879L32.3775%2016.5L34.5%2018.6225L21%2032.121Z'%20fill='%231EA575'/%3e%3cpath%20d='M24%203C19.8466%203%2015.7865%204.23163%2012.333%206.53914C8.8796%208.84665%206.18798%2012.1264%204.59854%2015.9636C3.0091%2019.8009%202.59323%2024.0233%203.40352%2028.0969C4.21381%2032.1705%206.21386%2035.9123%209.15077%2038.8492C12.0877%2041.7861%2015.8295%2043.7862%2019.9031%2044.5965C23.9767%2045.4068%2028.1991%2044.9909%2032.0364%2043.4015C35.8736%2041.812%2039.1534%2039.1204%2041.4609%2035.667C43.7684%2032.2135%2045%2028.1534%2045%2024C45%2018.4305%2042.7875%2013.089%2038.8493%209.15076C34.911%205.21249%2029.5696%203%2024%203ZM24%2042C20.4399%2042%2016.9598%2040.9443%2013.9997%2038.9665C11.0397%2036.9886%208.73256%2034.1774%207.37018%2030.8883C6.0078%2027.5992%205.65134%2023.98%206.34587%2020.4884C7.04041%2016.9967%208.75474%2013.7894%2011.2721%2011.2721C13.7894%208.75473%2016.9967%207.0404%2020.4884%206.34587C23.98%205.65133%2027.5992%206.00779%2030.8883%207.37017C34.1774%208.73255%2036.9886%2011.0397%2038.9665%2013.9997C40.9443%2016.9598%2042%2020.4399%2042%2024C42%2028.7739%2040.1036%2033.3523%2036.7279%2036.7279C33.3523%2040.1036%2028.7739%2042%2024%2042Z'%20fill='%231EA575'/%3e%3c/svg%3e";function c({cartItem:s}){const l=s.thumbnail,t=s.name,r=s.price,o=s.count;return e.jsxs("div",{className:"flex flex-row items-center justify-between mt-4 px-2 sm:px-4 pb-4 border-b",children:[e.jsxs("div",{className:"flex flex-row items-center gap-4",children:[e.jsx("img",{src:l,alt:t,className:"w-10 sm:w-14 rounded-md"}),e.jsxs("div",{className:"flex flex-col justify-between gap-1 text-sm sm:gap-2",children:[e.jsx("p",{className:"font-semibold text-rose900 max-w-[70%] text-ellipsis overflow-hidden whitespace-nowrap sm:max-w-fit",children:t}),e.jsxs("p",{children:[e.jsxs("span",{className:"text-redGiven font-semibold mr-4",children:[o,"x"]}),e.jsxs("span",{className:"text-rose900 font-light",children:["@ $",r.toFixed(2)]})]})]})]}),e.jsxs("p",{className:"font-semibold text-rose900",children:["$",(o*r).toFixed(2)]})]})}function f(){const{cartItems:s,totalOrderPrice:l,setTotalOrderPrice:t,setCartItems:r,setOrderConfirmed:o}=i(),n=()=>{r([]),t(0),o(!1)};return a.useEffect(()=>(window.scrollTo({top:0,behavior:"smooth"}),document.querySelector("body").classList.add("overflow-y-hidden"),()=>{document.querySelector("body").classList.remove("overflow-y-hidden")}),[]),e.jsx("div",{className:"absolute top-0 left-0 bottom-0 right-0 w-full py-5 bg-black bg-opacity-30 min-h-[100vh] flex flex-col justify-center items-center overflow-auto",children:e.jsxs("div",{className:"fixed bottom-0 sm:static bg-rose50 p-4 w-[550px] max-w-[100vw] rounded-bl-none rounded-br-none rounded-xl mt-32 sm:px-8 sm:rounded-br-xl sm:rounded-bl-xl",children:[e.jsx("img",{src:m,alt:"Order confirmed"}),e.jsx("p",{className:"mt-6 font-bold text-rose900 text-4xl",children:"Order Confirmed"}),e.jsx("p",{className:"mt-3 text-rose500 font-semibold",children:"We hope you enjoy your food!"}),e.jsxs("div",{className:"bg-rose100 rounded-lg p-2 mt-6",children:[e.jsx("div",{className:"max-h-[300px] overflow-auto",children:s.map(d=>e.jsx(c,{cartItem:d},d.name))}),e.jsxs("div",{className:"flex flex-row items-center justify-between m-4 my-6 text-rose900",children:[e.jsx("span",{className:"text-sm",children:"Order Total"}),e.jsxs("span",{className:"font-extrabold text-2xl",children:["$",l.toFixed(2)]})]})]}),e.jsx("button",{className:"bg-redGiven w-full py-3 px-2 rounded-3xl text-rose50 font-semibold mt-8 mb-4 hover:opacity-80",onClick:n,children:"Start New Order"})]})})}export{f as default}; diff --git a/assets/index-DZV40AFI.css b/assets/index-DZV40AFI.css new file mode 100644 index 0000000..9977388 --- /dev/null +++ b/assets/index-DZV40AFI.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.m-4{margin:1rem}.m-\[5px\]{margin:5px}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-4{margin-top:1rem;margin-bottom:1rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.-mt-2{margin-top:-.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-14{margin-left:3.5rem}.ml-3{margin-left:.75rem}.ml-5{margin-left:1.25rem}.mr-14{margin-right:3.5rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-3{margin-top:.75rem}.mt-32{margin-top:8rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.flex{display:flex}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-full{height:100%}.max-h-\[300px\]{max-height:300px}.min-h-56{min-height:14rem}.min-h-\[100vh\]{min-height:100vh}.w-10{width:2.5rem}.w-3{width:.75rem}.w-36{width:9rem}.w-5{width:1.25rem}.w-52{width:13rem}.w-\[100vw\]{width:100vw}.w-\[550px\]{width:550px}.w-full{width:100%}.min-w-10{min-width:2.5rem}.min-w-36{min-width:9rem}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.max-w-\[100vw\]{max-width:100vw}.max-w-\[70\%\]{max-width:70%}.max-w-\[750px\]{max-width:750px}.max-w-\[90vw\]{max-width:90vw}.flex-grow{flex-grow:1}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-0{--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.animate-load-1{animation:loading 1s ease-in-out infinite}.animate-load-2{animation:loading 1s ease-in-out .2s infinite}@keyframes loading{0%{transform:scale(1);opacity:1}50%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}.animate-load-3{animation:loading 1s ease-in-out .4s infinite}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-bl-none{border-bottom-left-radius:0}.rounded-br-none{border-bottom-right-radius:0}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-redGiven{--tw-border-opacity: 1;border-color:hsl(14 86% 42% / var(--tw-border-opacity))}.border-rose100{--tw-border-opacity: 1;border-color:hsl(13 31% 94% / var(--tw-border-opacity))}.border-rose300{--tw-border-opacity: 1;border-color:hsl(14 25% 72% / var(--tw-border-opacity))}.border-rose400{--tw-border-opacity: 1;border-color:hsl(7 20% 60% / var(--tw-border-opacity))}.border-rose50{--tw-border-opacity: 1;border-color:hsl(20 50% 98% / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-redGiven{--tw-bg-opacity: 1;background-color:hsl(14 86% 42% / var(--tw-bg-opacity))}.bg-rose100{--tw-bg-opacity: 1;background-color:hsl(13 31% 94% / var(--tw-bg-opacity))}.bg-rose50{--tw-bg-opacity: 1;background-color:hsl(20 50% 98% / var(--tw-bg-opacity))}.bg-rose900{--tw-bg-opacity: 1;background-color:hsl(14 65% 9% / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-opacity-30{--tw-bg-opacity: .3}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-8{padding:2rem}.p-\[2px\]{padding:2px}.px-2{padding-left:.5rem;padding-right:.5rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.pb-1{padding-bottom:.25rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.text-center{text-align:center}.font-red-hat-text{font-family:Red Hat Text,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-extralight{font-weight:200}.font-light{font-weight:300}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-thin{font-weight:100}.text-redGiven{--tw-text-opacity: 1;color:hsl(14 86% 42% / var(--tw-text-opacity))}.text-rose50{--tw-text-opacity: 1;color:hsl(20 50% 98% / var(--tw-text-opacity))}.text-rose500{--tw-text-opacity: 1;color:hsl(12 20% 44% / var(--tw-text-opacity))}.text-rose900{--tw-text-opacity: 1;color:hsl(14 65% 9% / var(--tw-text-opacity))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\:border-redGiven:hover{--tw-border-opacity: 1;border-color:hsl(14 86% 42% / var(--tw-border-opacity))}.hover\:border-rose900:hover{--tw-border-opacity: 1;border-color:hsl(14 65% 9% / var(--tw-border-opacity))}.hover\:text-redGiven:hover{--tw-text-opacity: 1;color:hsl(14 86% 42% / var(--tw-text-opacity))}.hover\:opacity-65:hover{opacity:.65}.hover\:opacity-80:hover{opacity:.8}@media (min-width: 640px){.sm\:static{position:static}.sm\:m-4{margin:1rem}.sm\:mr-2{margin-right:.5rem}.sm\:w-14{width:3.5rem}.sm\:w-\[40vw\]{width:40vw}.sm\:max-w-96{max-width:24rem}.sm\:max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.sm\:flex-row{flex-direction:row}.sm\:items-start{align-items:flex-start}.sm\:gap-2{gap:.5rem}.sm\:rounded-bl-xl{border-bottom-left-radius:.75rem}.sm\:rounded-br-xl{border-bottom-right-radius:.75rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width: 1280px){.xl\:p-12{padding:3rem}} diff --git a/assets/index-Eg2EyhEo.js b/assets/index-Eg2EyhEo.js new file mode 100644 index 0000000..c75ede0 --- /dev/null +++ b/assets/index-Eg2EyhEo.js @@ -0,0 +1,40 @@ +(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function t(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=t(l);fetch(l.href,o)}})();function uc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qi={exports:{}},el={},Ki={exports:{}},L={};/** + * @license React + * react.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 Xt=Symbol.for("react.element"),ic=Symbol.for("react.portal"),sc=Symbol.for("react.fragment"),ac=Symbol.for("react.strict_mode"),cc=Symbol.for("react.profiler"),fc=Symbol.for("react.provider"),dc=Symbol.for("react.context"),pc=Symbol.for("react.forward_ref"),mc=Symbol.for("react.suspense"),vc=Symbol.for("react.memo"),hc=Symbol.for("react.lazy"),Iu=Symbol.iterator;function yc(e){return e===null||typeof e!="object"?null:(e=Iu&&e[Iu]||e["@@iterator"],typeof e=="function"?e:null)}var Yi={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Xi=Object.assign,Gi={};function ot(e,n,t){this.props=e,this.context=n,this.refs=Gi,this.updater=t||Yi}ot.prototype.isReactComponent={};ot.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")};ot.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Zi(){}Zi.prototype=ot.prototype;function $o(e,n,t){this.props=e,this.context=n,this.refs=Gi,this.updater=t||Yi}var Ao=$o.prototype=new Zi;Ao.constructor=$o;Xi(Ao,ot.prototype);Ao.isPureReactComponent=!0;var ju=Array.isArray,Ji=Object.prototype.hasOwnProperty,Vo={current:null},qi={key:!0,ref:!0,__self:!0,__source:!0};function bi(e,n,t){var r,l={},o=null,u=null;if(n!=null)for(r in n.ref!==void 0&&(u=n.ref),n.key!==void 0&&(o=""+n.key),n)Ji.call(n,r)&&!qi.hasOwnProperty(r)&&(l[r]=n[r]);var i=arguments.length-2;if(i===1)l.children=t;else if(1>>1,X=C[H];if(0>>1;Hl(gl,z))gnl(er,gl)?(C[H]=er,C[gn]=z,H=gn):(C[H]=gl,C[yn]=z,H=yn);else if(gnl(er,z))C[H]=er,C[gn]=z,H=gn;else break e}}return N}function l(C,N){var z=C.sortIndex-N.sortIndex;return z!==0?z:C.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var u=Date,i=u.now();e.unstable_now=function(){return u.now()-i}}var s=[],c=[],m=1,v=null,p=3,g=!1,w=!1,S=!1,j=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(C){for(var N=t(c);N!==null;){if(N.callback===null)r(c);else if(N.startTime<=C)r(c),N.sortIndex=N.expirationTime,n(s,N);else break;N=t(c)}}function h(C){if(S=!1,d(C),!w)if(t(s)!==null)w=!0,hl(E);else{var N=t(c);N!==null&&yl(h,N.startTime-C)}}function E(C,N){w=!1,S&&(S=!1,f(P),P=-1),g=!0;var z=p;try{for(d(N),v=t(s);v!==null&&(!(v.expirationTime>N)||C&&!Ne());){var H=v.callback;if(typeof H=="function"){v.callback=null,p=v.priorityLevel;var X=H(v.expirationTime<=N);N=e.unstable_now(),typeof X=="function"?v.callback=X:v===t(s)&&r(s),d(N)}else r(s);v=t(s)}if(v!==null)var bt=!0;else{var yn=t(c);yn!==null&&yl(h,yn.startTime-N),bt=!1}return bt}finally{v=null,p=z,g=!1}}var _=!1,x=null,P=-1,B=5,T=-1;function Ne(){return!(e.unstable_now()-TC||125H?(C.sortIndex=z,n(c,C),t(s)===null&&C===t(c)&&(S?(f(P),P=-1):S=!0,yl(h,z-H))):(C.sortIndex=X,n(s,C),w||g||(w=!0,hl(E))),C},e.unstable_shouldYield=Ne,e.unstable_wrapCallback=function(C){var N=p;return function(){var z=p;p=N;try{return C.apply(this,arguments)}finally{p=z}}}})(ls);rs.exports=ls;var Lc=rs.exports;/** + * @license React + * 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 Tc=ue,ge=Lc;function y(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Kl=Object.prototype.hasOwnProperty,Rc=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Uu={},$u={};function Oc(e){return Kl.call($u,e)?!0:Kl.call(Uu,e)?!1:Rc.test(e)?$u[e]=!0:(Uu[e]=!0,!1)}function Dc(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Mc(e,n,t,r){if(n===null||typeof n>"u"||Dc(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function ae(e,n,t,r,l,o,u){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=o,this.removeEmptyString=u}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){b[e]=new ae(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];b[n]=new ae(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){b[e]=new ae(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){b[e]=new ae(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){b[e]=new ae(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){b[e]=new ae(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){b[e]=new ae(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){b[e]=new ae(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){b[e]=new ae(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ho=/[\-:]([a-z])/g;function Wo(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 n=e.replace(Ho,Wo);b[n]=new ae(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(Ho,Wo);b[n]=new ae(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(Ho,Wo);b[n]=new ae(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){b[e]=new ae(e,1,!1,e.toLowerCase(),null,!1,!1)});b.xlinkHref=new ae("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){b[e]=new ae(e,1,!1,e.toLowerCase(),null,!0,!0)});function Qo(e,n,t,r){var l=b.hasOwnProperty(n)?b[n]:null;(l!==null?l.type!==0:r||!(2i||l[u]!==o[i]){var s=` +`+l[u].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=u&&0<=i);break}}}finally{kl=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?gt(e):""}function Ic(e){switch(e.tag){case 5:return gt(e.type);case 16:return gt("Lazy");case 13:return gt("Suspense");case 19:return gt("SuspenseList");case 0:case 2:case 15:return e=El(e.type,!1),e;case 11:return e=El(e.type.render,!1),e;case 1:return e=El(e.type,!0),e;default:return""}}function Zl(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 In:return"Fragment";case Mn:return"Portal";case Yl:return"Profiler";case Ko:return"StrictMode";case Xl:return"Suspense";case Gl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case is:return(e.displayName||"Context")+".Consumer";case us:return(e._context.displayName||"Context")+".Provider";case Yo:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Xo:return n=e.displayName||null,n!==null?n:Zl(e.type)||"Memo";case Je:n=e._payload,e=e._init;try{return Zl(e(n))}catch{}}return null}function jc(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Zl(n);case 8:return n===Ko?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function dn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function as(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Fc(e){var n=as(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,o=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(u){r=""+u,o.call(this,u)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function rr(e){e._valueTracker||(e._valueTracker=Fc(e))}function cs(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=as(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Tr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Jl(e,n){var t=n.checked;return A({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function Vu(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=dn(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function fs(e,n){n=n.checked,n!=null&&Qo(e,"checked",n,!1)}function ql(e,n){fs(e,n);var t=dn(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?bl(e,n.type,t):n.hasOwnProperty("defaultValue")&&bl(e,n.type,dn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Bu(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function bl(e,n,t){(n!=="number"||Tr(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var wt=Array.isArray;function Kn(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=lr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Ot(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var Et={animationIterationCount:!0,aspectRatio:!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},Uc=["Webkit","ms","Moz","O"];Object.keys(Et).forEach(function(e){Uc.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Et[n]=Et[e]})});function vs(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||Et.hasOwnProperty(e)&&Et[e]?(""+n).trim():n+"px"}function hs(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=vs(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var $c=A({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 to(e,n){if(n){if($c[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(y(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(y(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(y(61))}if(n.style!=null&&typeof n.style!="object")throw Error(y(62))}}function ro(e,n){if(e.indexOf("-")===-1)return typeof n.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}}var lo=null;function Go(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oo=null,Yn=null,Xn=null;function Qu(e){if(e=Jt(e)){if(typeof oo!="function")throw Error(y(280));var n=e.stateNode;n&&(n=ol(n),oo(e.stateNode,e.type,n))}}function ys(e){Yn?Xn?Xn.push(e):Xn=[e]:Yn=e}function gs(){if(Yn){var e=Yn,n=Xn;if(Xn=Yn=null,Qu(e),n)for(e=0;e>>=0,e===0?32:31-(Zc(e)/Jc|0)|0}var or=64,ur=4194304;function St(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Mr(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,u=t&268435455;if(u!==0){var i=u&~l;i!==0?r=St(i):(o&=u,o!==0&&(r=St(o)))}else u=t&~l,u!==0?r=St(u):o!==0&&(r=St(o));if(r===0)return 0;if(n!==0&&n!==r&&!(n&l)&&(l=r&-r,o=n&-n,l>=o||l===16&&(o&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Gt(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Oe(n),e[n]=t}function nf(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=_t),ei=" ",ni=!1;function Us(e,n){switch(e){case"keyup":return Tf.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $s(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jn=!1;function Of(e,n){switch(e){case"compositionend":return $s(n);case"keypress":return n.which!==32?null:(ni=!0,ei);case"textInput":return e=n.data,e===ei&&ni?null:e;default:return null}}function Df(e,n){if(jn)return e==="compositionend"||!ru&&Us(e,n)?(e=js(),kr=eu=nn=null,jn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=oi(t)}}function Hs(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Hs(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Ws(){for(var e=window,n=Tr();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Tr(e.document)}return n}function lu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Bf(e){var n=Ws(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Hs(t.ownerDocument.documentElement,t)){if(r!==null&&lu(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=t.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=ui(t,o);var u=ui(t,r);l&&u&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(n),e.extend(u.node,u.offset)):(n.setEnd(u.node,u.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,Fn=null,fo=null,Pt=null,po=!1;function ii(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;po||Fn==null||Fn!==Tr(r)||(r=Fn,"selectionStart"in r&&lu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Pt&&Ut(Pt,r)||(Pt=r,r=Fr(fo,"onSelect"),0An||(e.current=wo[An],wo[An]=null,An--)}function D(e,n){An++,wo[An]=e.current,e.current=n}var pn={},le=vn(pn),de=vn(!1),Pn=pn;function bn(e,n){var t=e.type.contextTypes;if(!t)return pn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in t)l[o]=n[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function pe(e){return e=e.childContextTypes,e!=null}function $r(){I(de),I(le)}function mi(e,n,t){if(le.current!==pn)throw Error(y(168));D(le,n),D(de,t)}function bs(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(y(108,jc(e)||"Unknown",l));return A({},t,r)}function Ar(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pn,Pn=le.current,D(le,e),D(de,de.current),!0}function vi(e,n,t){var r=e.stateNode;if(!r)throw Error(y(169));t?(e=bs(e,n,Pn),r.__reactInternalMemoizedMergedChildContext=e,I(de),I(le),D(le,e)):I(de),D(de,t)}var Ve=null,ul=!1,jl=!1;function ea(e){Ve===null?Ve=[e]:Ve.push(e)}function ed(e){ul=!0,ea(e)}function hn(){if(!jl&&Ve!==null){jl=!0;var e=0,n=O;try{var t=Ve;for(O=1;e>=u,l-=u,Be=1<<32-Oe(n)+l|t<P?(B=x,x=null):B=x.sibling;var T=p(f,x,d[P],h);if(T===null){x===null&&(x=B);break}e&&x&&T.alternate===null&&n(f,x),a=o(T,a,P),_===null?E=T:_.sibling=T,_=T,x=B}if(P===d.length)return t(f,x),F&&wn(f,P),E;if(x===null){for(;PP?(B=x,x=null):B=x.sibling;var Ne=p(f,x,T.value,h);if(Ne===null){x===null&&(x=B);break}e&&x&&Ne.alternate===null&&n(f,x),a=o(Ne,a,P),_===null?E=Ne:_.sibling=Ne,_=Ne,x=B}if(T.done)return t(f,x),F&&wn(f,P),E;if(x===null){for(;!T.done;P++,T=d.next())T=v(f,T.value,h),T!==null&&(a=o(T,a,P),_===null?E=T:_.sibling=T,_=T);return F&&wn(f,P),E}for(x=r(f,x);!T.done;P++,T=d.next())T=g(x,f,P,T.value,h),T!==null&&(e&&T.alternate!==null&&x.delete(T.key===null?P:T.key),a=o(T,a,P),_===null?E=T:_.sibling=T,_=T);return e&&x.forEach(function(st){return n(f,st)}),F&&wn(f,P),E}function j(f,a,d,h){if(typeof d=="object"&&d!==null&&d.type===In&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case tr:e:{for(var E=d.key,_=a;_!==null;){if(_.key===E){if(E=d.type,E===In){if(_.tag===7){t(f,_.sibling),a=l(_,d.props.children),a.return=f,f=a;break e}}else if(_.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Je&&gi(E)===_.type){t(f,_.sibling),a=l(_,d.props),a.ref=vt(f,_,d),a.return=f,f=a;break e}t(f,_);break}else n(f,_);_=_.sibling}d.type===In?(a=xn(d.props.children,f.mode,h,d.key),a.return=f,f=a):(h=Lr(d.type,d.key,d.props,null,f.mode,h),h.ref=vt(f,a,d),h.return=f,f=h)}return u(f);case Mn:e:{for(_=d.key;a!==null;){if(a.key===_)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){t(f,a.sibling),a=l(a,d.children||[]),a.return=f,f=a;break e}else{t(f,a);break}else n(f,a);a=a.sibling}a=Wl(d,f.mode,h),a.return=f,f=a}return u(f);case Je:return _=d._init,j(f,a,_(d._payload),h)}if(wt(d))return w(f,a,d,h);if(ct(d))return S(f,a,d,h);pr(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(t(f,a.sibling),a=l(a,d),a.return=f,f=a):(t(f,a),a=Hl(d,f.mode,h),a.return=f,f=a),u(f)):t(f,a)}return j}var nt=la(!0),oa=la(!1),Hr=vn(null),Wr=null,Hn=null,su=null;function au(){su=Hn=Wr=null}function cu(e){var n=Hr.current;I(Hr),e._currentValue=n}function Eo(e,n,t){for(;e!==null;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,r!==null&&(r.childLanes|=n)):r!==null&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function Zn(e,n){Wr=e,su=Hn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&n&&(fe=!0),e.firstContext=null)}function xe(e){var n=e._currentValue;if(su!==e)if(e={context:e,memoizedValue:n,next:null},Hn===null){if(Wr===null)throw Error(y(308));Hn=e,Wr.dependencies={lanes:0,firstContext:e}}else Hn=Hn.next=e;return n}var En=null;function fu(e){En===null?En=[e]:En.push(e)}function ua(e,n,t,r){var l=n.interleaved;return l===null?(t.next=t,fu(n)):(t.next=l.next,l.next=t),n.interleaved=t,Ye(e,r)}function Ye(e,n){e.lanes|=n;var t=e.alternate;for(t!==null&&(t.lanes|=n),t=e,e=e.return;e!==null;)e.childLanes|=n,t=e.alternate,t!==null&&(t.childLanes|=n),t=e,e=e.return;return t.tag===3?t.stateNode:null}var qe=!1;function du(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ia(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function We(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function sn(e,n,t){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,R&2){var l=r.pending;return l===null?n.next=n:(n.next=l.next,l.next=n),r.pending=n,Ye(e,t)}return l=r.interleaved,l===null?(n.next=n,fu(r)):(n.next=l.next,l.next=n),r.interleaved=n,Ye(e,t)}function Cr(e,n,t){if(n=n.updateQueue,n!==null&&(n=n.shared,(t&4194240)!==0)){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,Jo(e,t)}}function wi(e,n){var t=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,t===r)){var l=null,o=null;if(t=t.firstBaseUpdate,t!==null){do{var u={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};o===null?l=o=u:o=o.next=u,t=t.next}while(t!==null);o===null?l=o=n:o=o.next=n}else l=o=n;t={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=t;return}e=t.lastBaseUpdate,e===null?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function Qr(e,n,t,r){var l=e.updateQueue;qe=!1;var o=l.firstBaseUpdate,u=l.lastBaseUpdate,i=l.shared.pending;if(i!==null){l.shared.pending=null;var s=i,c=s.next;s.next=null,u===null?o=c:u.next=c,u=s;var m=e.alternate;m!==null&&(m=m.updateQueue,i=m.lastBaseUpdate,i!==u&&(i===null?m.firstBaseUpdate=c:i.next=c,m.lastBaseUpdate=s))}if(o!==null){var v=l.baseState;u=0,m=c=s=null,i=o;do{var p=i.lane,g=i.eventTime;if((r&p)===p){m!==null&&(m=m.next={eventTime:g,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var w=e,S=i;switch(p=n,g=t,S.tag){case 1:if(w=S.payload,typeof w=="function"){v=w.call(g,v,p);break e}v=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=S.payload,p=typeof w=="function"?w.call(g,v,p):w,p==null)break e;v=A({},v,p);break e;case 2:qe=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,p=l.effects,p===null?l.effects=[i]:p.push(i))}else g={eventTime:g,lane:p,tag:i.tag,payload:i.payload,callback:i.callback,next:null},m===null?(c=m=g,s=v):m=m.next=g,u|=p;if(i=i.next,i===null){if(i=l.shared.pending,i===null)break;p=i,i=p.next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}while(!0);if(m===null&&(s=v),l.baseState=s,l.firstBaseUpdate=c,l.lastBaseUpdate=m,n=l.shared.interleaved,n!==null){l=n;do u|=l.lane,l=l.next;while(l!==n)}else o===null&&(l.shared.lanes=0);Ln|=u,e.lanes=u,e.memoizedState=v}}function Si(e,n,t){if(e=n.effects,n.effects=null,e!==null)for(n=0;nt?t:4,e(!0);var r=Ul.transition;Ul.transition={};try{e(!1),n()}finally{O=t,Ul.transition=r}}function _a(){return Pe().memoizedState}function ld(e,n,t){var r=cn(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},xa(e))Pa(n,t);else if(t=ua(e,n,t,r),t!==null){var l=ie();De(t,e,r,l),Na(t,n,r)}}function od(e,n,t){var r=cn(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(xa(e))Pa(n,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=n.lastRenderedReducer,o!==null))try{var u=n.lastRenderedState,i=o(u,t);if(l.hasEagerState=!0,l.eagerState=i,Me(i,u)){var s=n.interleaved;s===null?(l.next=l,fu(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=ua(e,n,l,r),t!==null&&(l=ie(),De(t,e,r,l),Na(t,n,r))}}function xa(e){var n=e.alternate;return e===$||n!==null&&n===$}function Pa(e,n){Nt=Yr=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Na(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,Jo(e,t)}}var Xr={readContext:xe,useCallback:ee,useContext:ee,useEffect:ee,useImperativeHandle:ee,useInsertionEffect:ee,useLayoutEffect:ee,useMemo:ee,useReducer:ee,useRef:ee,useState:ee,useDebugValue:ee,useDeferredValue:ee,useTransition:ee,useMutableSource:ee,useSyncExternalStore:ee,useId:ee,unstable_isNewReconciler:!1},ud={readContext:xe,useCallback:function(e,n){return je().memoizedState=[e,n===void 0?null:n],e},useContext:xe,useEffect:Ei,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,xr(4194308,4,wa.bind(null,n,e),t)},useLayoutEffect:function(e,n){return xr(4194308,4,e,n)},useInsertionEffect:function(e,n){return xr(4,2,e,n)},useMemo:function(e,n){var t=je();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=je();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=ld.bind(null,$,e),[r.memoizedState,e]},useRef:function(e){var n=je();return e={current:e},n.memoizedState=e},useState:ki,useDebugValue:Su,useDeferredValue:function(e){return je().memoizedState=e},useTransition:function(){var e=ki(!1),n=e[0];return e=rd.bind(null,e[1]),je().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=$,l=je();if(F){if(t===void 0)throw Error(y(407));t=t()}else{if(t=n(),Z===null)throw Error(y(349));zn&30||fa(r,n,t)}l.memoizedState=t;var o={value:t,getSnapshot:n};return l.queue=o,Ei(pa.bind(null,r,o,e),[e]),r.flags|=2048,Kt(9,da.bind(null,r,o,t,n),void 0,null),t},useId:function(){var e=je(),n=Z.identifierPrefix;if(F){var t=He,r=Be;t=(r&~(1<<32-Oe(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Wt++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(t,{is:r.is}):(e=u.createElement(t),t==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,t),e[Fe]=n,e[Vt]=r,Fa(e,n,!1,!1),n.stateNode=e;e:{switch(u=ro(t,r),t){case"dialog":M("cancel",e),M("close",e),l=r;break;case"iframe":case"object":case"embed":M("load",e),l=r;break;case"video":case"audio":for(l=0;llt&&(n.flags|=128,r=!0,ht(o,!1),n.lanes=4194304)}else{if(!r)if(e=Kr(u),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),ht(o,!0),o.tail===null&&o.tailMode==="hidden"&&!u.alternate&&!F)return ne(n),null}else 2*W()-o.renderingStartTime>lt&&t!==1073741824&&(n.flags|=128,r=!0,ht(o,!1),n.lanes=4194304);o.isBackwards?(u.sibling=n.child,n.child=u):(t=o.last,t!==null?t.sibling=u:n.child=u,o.last=u)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.renderingStartTime=W(),n.sibling=null,t=U.current,D(U,r?t&1|2:t&1),n):(ne(n),null);case 22:case 23:return Pu(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?ve&1073741824&&(ne(n),n.subtreeFlags&6&&(n.flags|=8192)):ne(n),null;case 24:return null;case 25:return null}throw Error(y(156,n.tag))}function md(e,n){switch(uu(n),n.tag){case 1:return pe(n.type)&&$r(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return tt(),I(de),I(le),vu(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return mu(n),null;case 13:if(I(U),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(y(340));et()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return I(U),null;case 4:return tt(),null;case 10:return cu(n.type._context),null;case 22:case 23:return Pu(),null;case 24:return null;default:return null}}var vr=!1,re=!1,vd=typeof WeakSet=="function"?WeakSet:Set,k=null;function Wn(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){V(e,n,r)}else t.current=null}function Ro(e,n,t){try{t()}catch(r){V(e,n,r)}}var Di=!1;function hd(e,n){if(mo=Ir,e=Ws(),lu(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{t.nodeType,o.nodeType}catch{t=null;break e}var u=0,i=-1,s=-1,c=0,m=0,v=e,p=null;n:for(;;){for(var g;v!==t||l!==0&&v.nodeType!==3||(i=u+l),v!==o||r!==0&&v.nodeType!==3||(s=u+r),v.nodeType===3&&(u+=v.nodeValue.length),(g=v.firstChild)!==null;)p=v,v=g;for(;;){if(v===e)break n;if(p===t&&++c===l&&(i=u),p===o&&++m===r&&(s=u),(g=v.nextSibling)!==null)break;v=p,p=v.parentNode}v=g}t=i===-1||s===-1?null:{start:i,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(vo={focusedElem:e,selectionRange:t},Ir=!1,k=n;k!==null;)if(n=k,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,k=e;else for(;k!==null;){n=k;try{var w=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var S=w.memoizedProps,j=w.memoizedState,f=n.stateNode,a=f.getSnapshotBeforeUpdate(n.elementType===n.type?S:Le(n.type,S),j);f.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=n.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(y(163))}}catch(h){V(n,n.return,h)}if(e=n.sibling,e!==null){e.return=n.return,k=e;break}k=n.return}return w=Di,Di=!1,w}function zt(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Ro(n,t,o)}l=l.next}while(l!==r)}}function al(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function Oo(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function Aa(e){var n=e.alternate;n!==null&&(e.alternate=null,Aa(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Fe],delete n[Vt],delete n[go],delete n[qf],delete n[bf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Va(e){return e.tag===5||e.tag===3||e.tag===4}function Mi(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Va(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Do(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=Ur));else if(r!==4&&(e=e.child,e!==null))for(Do(e,n,t),e=e.sibling;e!==null;)Do(e,n,t),e=e.sibling}function Mo(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Mo(e,n,t),e=e.sibling;e!==null;)Mo(e,n,t),e=e.sibling}var J=null,Te=!1;function Ze(e,n,t){for(t=t.child;t!==null;)Ba(e,n,t),t=t.sibling}function Ba(e,n,t){if(Ue&&typeof Ue.onCommitFiberUnmount=="function")try{Ue.onCommitFiberUnmount(nl,t)}catch{}switch(t.tag){case 5:re||Wn(t,n);case 6:var r=J,l=Te;J=null,Ze(e,n,t),J=r,Te=l,J!==null&&(Te?(e=J,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):J.removeChild(t.stateNode));break;case 18:J!==null&&(Te?(e=J,t=t.stateNode,e.nodeType===8?Il(e.parentNode,t):e.nodeType===1&&Il(e,t),jt(e)):Il(J,t.stateNode));break;case 4:r=J,l=Te,J=t.stateNode.containerInfo,Te=!0,Ze(e,n,t),J=r,Te=l;break;case 0:case 11:case 14:case 15:if(!re&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,u=o.destroy;o=o.tag,u!==void 0&&(o&2||o&4)&&Ro(t,n,u),l=l.next}while(l!==r)}Ze(e,n,t);break;case 1:if(!re&&(Wn(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(i){V(t,n,i)}Ze(e,n,t);break;case 21:Ze(e,n,t);break;case 22:t.mode&1?(re=(r=re)||t.memoizedState!==null,Ze(e,n,t),re=r):Ze(e,n,t);break;default:Ze(e,n,t)}}function Ii(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new vd),n.forEach(function(r){var l=xd.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function ze(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=u),r&=~o}if(r=l,r=W()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*gd(r/1960))-r,10e?16:e,tn===null)var r=!1;else{if(e=tn,tn=null,Jr=0,R&6)throw Error(y(331));var l=R;for(R|=4,k=e.current;k!==null;){var o=k,u=o.child;if(k.flags&16){var i=o.deletions;if(i!==null){for(var s=0;sW()-_u?_n(e,0):Cu|=t),me(e,n)}function Za(e,n){n===0&&(e.mode&1?(n=ur,ur<<=1,!(ur&130023424)&&(ur=4194304)):n=1);var t=ie();e=Ye(e,n),e!==null&&(Gt(e,n,t),me(e,t))}function _d(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),Za(e,t)}function xd(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(y(314))}r!==null&&r.delete(n),Za(e,t)}var Ja;Ja=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||de.current)fe=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return fe=!1,dd(e,n,t);fe=!!(e.flags&131072)}else fe=!1,F&&n.flags&1048576&&na(n,Br,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;Pr(e,n),e=n.pendingProps;var l=bn(n,le.current);Zn(n,t),l=yu(null,n,r,e,l,t);var o=gu();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,pe(r)?(o=!0,Ar(n)):o=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,du(n),l.updater=sl,n.stateNode=l,l._reactInternals=n,_o(n,r,e,t),n=No(null,n,r,!0,o,t)):(n.tag=0,F&&o&&ou(n),oe(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(Pr(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=Nd(r),e=Le(r,e),l){case 0:n=Po(null,n,r,e,t);break e;case 1:n=Ti(null,n,r,e,t);break e;case 11:n=zi(null,n,r,e,t);break e;case 14:n=Li(null,n,r,Le(r.type,e),t);break e}throw Error(y(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Le(r,l),Po(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Le(r,l),Ti(e,n,r,l,t);case 3:e:{if(Ma(n),e===null)throw Error(y(387));r=n.pendingProps,o=n.memoizedState,l=o.element,ia(e,n),Qr(n,r,null,t);var u=n.memoizedState;if(r=u.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},n.updateQueue.baseState=o,n.memoizedState=o,n.flags&256){l=rt(Error(y(423)),n),n=Ri(e,n,r,t,l);break e}else if(r!==l){l=rt(Error(y(424)),n),n=Ri(e,n,r,t,l);break e}else for(he=un(n.stateNode.containerInfo.firstChild),ye=n,F=!0,Re=null,t=oa(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(et(),r===l){n=Xe(e,n,t);break e}oe(e,n,r,t)}n=n.child}return n;case 5:return sa(n),e===null&&ko(n),r=n.type,l=n.pendingProps,o=e!==null?e.memoizedProps:null,u=l.children,ho(r,l)?u=null:o!==null&&ho(r,o)&&(n.flags|=32),Da(e,n),oe(e,n,u,t),n.child;case 6:return e===null&&ko(n),null;case 13:return Ia(e,n,t);case 4:return pu(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=nt(n,null,r,t):oe(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Le(r,l),zi(e,n,r,l,t);case 7:return oe(e,n,n.pendingProps,t),n.child;case 8:return oe(e,n,n.pendingProps.children,t),n.child;case 12:return oe(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,o=n.memoizedProps,u=l.value,D(Hr,r._currentValue),r._currentValue=u,o!==null)if(Me(o.value,u)){if(o.children===l.children&&!de.current){n=Xe(e,n,t);break e}}else for(o=n.child,o!==null&&(o.return=n);o!==null;){var i=o.dependencies;if(i!==null){u=o.child;for(var s=i.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=We(-1,t&-t),s.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var m=c.pending;m===null?s.next=s:(s.next=m.next,m.next=s),c.pending=s}}o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),Eo(o.return,t,n),i.lanes|=t;break}s=s.next}}else if(o.tag===10)u=o.type===n.type?null:o.child;else if(o.tag===18){if(u=o.return,u===null)throw Error(y(341));u.lanes|=t,i=u.alternate,i!==null&&(i.lanes|=t),Eo(u,t,n),u=o.sibling}else u=o.child;if(u!==null)u.return=o;else for(u=o;u!==null;){if(u===n){u=null;break}if(o=u.sibling,o!==null){o.return=u.return,u=o;break}u=u.return}o=u}oe(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,Zn(n,t),l=xe(l),r=r(l),n.flags|=1,oe(e,n,r,t),n.child;case 14:return r=n.type,l=Le(r,n.pendingProps),l=Le(r.type,l),Li(e,n,r,l,t);case 15:return Ra(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Le(r,l),Pr(e,n),n.tag=1,pe(r)?(e=!0,Ar(n)):e=!1,Zn(n,t),za(n,r,l),_o(n,r,l,t),No(null,n,r,!0,e,t);case 19:return ja(e,n,t);case 22:return Oa(e,n,t)}throw Error(y(156,n.tag))};function qa(e,n){return xs(e,n)}function Pd(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ce(e,n,t,r){return new Pd(e,n,t,r)}function zu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Nd(e){if(typeof e=="function")return zu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Yo)return 11;if(e===Xo)return 14}return 2}function fn(e,n){var t=e.alternate;return t===null?(t=Ce(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Lr(e,n,t,r,l,o){var u=2;if(r=e,typeof e=="function")zu(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case In:return xn(t.children,l,o,n);case Ko:u=8,l|=8;break;case Yl:return e=Ce(12,t,n,l|2),e.elementType=Yl,e.lanes=o,e;case Xl:return e=Ce(13,t,n,l),e.elementType=Xl,e.lanes=o,e;case Gl:return e=Ce(19,t,n,l),e.elementType=Gl,e.lanes=o,e;case ss:return fl(t,l,o,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case us:u=10;break e;case is:u=9;break e;case Yo:u=11;break e;case Xo:u=14;break e;case Je:u=16,r=null;break e}throw Error(y(130,e==null?e:typeof e,""))}return n=Ce(u,t,n,l),n.elementType=e,n.type=r,n.lanes=o,n}function xn(e,n,t,r){return e=Ce(7,e,r,n),e.lanes=t,e}function fl(e,n,t,r){return e=Ce(22,e,r,n),e.elementType=ss,e.lanes=t,e.stateNode={isHidden:!1},e}function Hl(e,n,t){return e=Ce(6,e,null,n),e.lanes=t,e}function Wl(e,n,t){return n=Ce(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function zd(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_l(0),this.expirationTimes=_l(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_l(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Lu(e,n,t,r,l,o,u,i,s){return e=new zd(e,n,t,i,s),n===1?(n=1,o===!0&&(n|=8)):n=0,o=Ce(3,null,null,n),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},du(o),e}function Ld(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(tc)}catch(e){console.error(e)}}tc(),ts.exports=we;var Md=ts.exports,Hi=Md;Ql.createRoot=Hi.createRoot,Ql.hydrateRoot=Hi.hydrateRoot;const Id="modulepreload",jd=function(e){return"/Product-listing-with-cart/"+e},Wi={},Du=function(n,t,r){let l=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),u=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));l=Promise.all(t.map(i=>{if(i=jd(i),i in Wi)return;Wi[i]=!0;const s=i.endsWith(".css"),c=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${c}`))return;const m=document.createElement("link");if(m.rel=s?"stylesheet":Id,s||(m.as="script",m.crossOrigin=""),m.href=i,u&&m.setAttribute("nonce",u),document.head.appendChild(m),s)return new Promise((v,p)=>{m.addEventListener("load",v),m.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${i}`)))})}))}return l.then(()=>n()).catch(o=>{const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=o,window.dispatchEvent(u),!u.defaultPrevented)throw o})},rc=ue.createContext({}),Fd=({children:e,values:n})=>te.jsx(rc.Provider,{value:n,children:e}),Wd=()=>ue.useContext(rc),lc=ue.createContext({}),Ud=({children:e,values:n})=>te.jsx(lc.Provider,{value:n,children:e}),Qd=()=>ue.useContext(lc);function $d({height:e}){return te.jsxs("div",{className:`absolute top-0 left-0 w-full ${e?`h-[${e}]`:"h-full"} bg-transparent flex flex-row items-center justify-center`,children:[te.jsx("div",{className:"w-3 h-3 bg-rose900 m-[5px] rounded-full animate-load-1 scale-0"}),te.jsx("div",{className:"w-3 h-3 bg-rose900 m-[5px] rounded-full animate-load-2 scale-0"}),te.jsx("div",{className:"w-3 h-3 bg-rose900 m-[5px] rounded-full animate-load-3 scale-0"})]})}const Ad=ue.lazy(()=>Du(()=>import("./Cart-Dp-s2XBF.js"),[])),Vd=ue.lazy(()=>Du(()=>import("./DessertContainer-COJbiqgu.js"),[])),Bd=ue.lazy(()=>Du(()=>import("./OrderConfirmedWindow-D5tYrl2q.js"),[]));function Hd(){const[e,n]=ue.useState(null),[t,r]=ue.useState([]),[l,o]=ue.useState(0),[u,i]=ue.useState(!1);return te.jsx(Fd,{values:{dessertData:e,setDessertData:n},children:te.jsx(Ud,{values:{cartItems:t,setCartItems:r,orderConfirmed:u,setOrderConfirmed:i,totalOrderPrice:l,setTotalOrderPrice:o},children:te.jsx("div",{className:"bg-rose100 p-8 xl:p-12 min-h-[100vh] w-full overflow-x-hidden flex justify-center items-center flex-col sm:flex-row sm:items-start font-red-hat-text",children:te.jsxs(ue.Suspense,{fallback:te.jsx($d,{height:"100vh"}),children:[te.jsx(Vd,{}),te.jsx(Ad,{}),u?te.jsx(Bd,{}):null]})})})})}Ql.createRoot(document.getElementById("root")).render(te.jsx(Ec.StrictMode,{children:te.jsx(Hd,{})}));export{$d as L,Wd as a,te as j,ue as r,Qd as u}; diff --git a/data.json b/data.json new file mode 100644 index 0000000..9f14a3e --- /dev/null +++ b/data.json @@ -0,0 +1,101 @@ +[ + { + "image": { + "thumbnail": "/src/images/image-waffle-thumbnail.jpg", + "mobile": "/src/images/image-waffle-mobile.jpg", + "tablet": "/src/images/image-waffle-tablet.jpg", + "desktop": "/src/images/image-waffle-desktop.jpg" + }, + "name": "Waffle with Berries", + "category": "Waffle", + "price": 6.50 + }, + { + "image": { + "thumbnail": "/src/images/image-creme-brulee-thumbnail.jpg", + "mobile": "/src/images/image-creme-brulee-mobile.jpg", + "tablet": "/src/images/image-creme-brulee-tablet.jpg", + "desktop": "/src/images/image-creme-brulee-desktop.jpg" + }, + "name": "Vanilla Bean Crème Brûlée", + "category": "Crème Brûlée", + "price": 7.00 + }, + { + "image": { + "thumbnail": "/src/images/image-macaron-thumbnail.jpg", + "mobile": "/src/images/image-macaron-mobile.jpg", + "tablet": "/src/images/image-macaron-tablet.jpg", + "desktop": "/src/images/image-macaron-desktop.jpg" + }, + "name": "Macaron Mix of Five", + "category": "Macaron", + "price": 8.00 + }, + { + "image": { + "thumbnail": "/src/images/image-tiramisu-thumbnail.jpg", + "mobile": "/src/images/image-tiramisu-mobile.jpg", + "tablet": "/src/images/image-tiramisu-tablet.jpg", + "desktop": "/src/images/image-tiramisu-desktop.jpg" + }, + "name": "Classic Tiramisu", + "category": "Tiramisu", + "price": 5.50 + }, + { + "image": { + "thumbnail": "/src/images/image-baklava-thumbnail.jpg", + "mobile": "/src/images/image-baklava-mobile.jpg", + "tablet": "/src/images/image-baklava-tablet.jpg", + "desktop": "/src/images/image-baklava-desktop.jpg" + }, + "name": "Pistachio Baklava", + "category": "Baklava", + "price": 4.00 + }, + { + "image": { + "thumbnail": "/src/images/image-meringue-thumbnail.jpg", + "mobile": "/src/images/image-meringue-mobile.jpg", + "tablet": "/src/images/image-meringue-tablet.jpg", + "desktop": "/src/images/image-meringue-desktop.jpg" + }, + "name": "Lemon Meringue Pie", + "category": "Pie", + "price": 5.00 + }, + { + "image": { + "thumbnail": "/src/images/image-cake-thumbnail.jpg", + "mobile": "/src/images/image-cake-mobile.jpg", + "tablet": "/src/images/image-cake-tablet.jpg", + "desktop": "/src/images/image-cake-desktop.jpg" + }, + "name": "Red Velvet Cake", + "category": "Cake", + "price": 4.50 + }, + { + "image": { + "thumbnail": "/src/images/image-brownie-thumbnail.jpg", + "mobile": "/src/images/image-brownie-mobile.jpg", + "tablet": "/src/images/image-brownie-tablet.jpg", + "desktop": "/src/images/image-brownie-desktop.jpg" + }, + "name": "Salted Caramel Brownie", + "category": "Brownie", + "price": 4.50 + }, + { + "image": { + "thumbnail": "/src/images/image-panna-cotta-thumbnail.jpg", + "mobile": "/src/images/image-panna-cotta-mobile.jpg", + "tablet": "/src/images/image-panna-cotta-tablet.jpg", + "desktop": "/src/images/image-panna-cotta-desktop.jpg" + }, + "name": "Vanilla Panna Cotta", + "category": "Panna Cotta", + "price": 6.50 + } +] \ No newline at end of file diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..31a1345 Binary files /dev/null and b/favicon.ico differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..bc5a1b7 --- /dev/null +++ b/index.html @@ -0,0 +1,22 @@ + + + + + + + + + + + + Product Listing With Cart + + + + + +
+ + + \ No newline at end of file